Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvjeantet <valere.jeantet@gmail.com>2020-09-10 22:29:59 +0300
committervjeantet <valere.jeantet@gmail.com>2020-09-10 22:29:59 +0300
commit20dd6fd67dc18c9604ad3e6a4e230061ac321730 (patch)
tree33332b641a9be29370eedb93ea2aed288be69bf4
parent3c5d8497da978c51ddd0c304f23054512d08e11b (diff)
netlify cms support
-rw-r--r--exampleSite/config-template.toml25
-rw-r--r--exampleSite/config.toml22
-rw-r--r--exampleSite/content/_layout/netlifycms/_index.md4
-rw-r--r--exampleSite/content/_layout/netlifycms/config.md10
-rw-r--r--exampleSite/content/_layout/netlifycms/root.md (renamed from exampleSite/static/admin/index.html)37
-rw-r--r--exampleSite/content/examples/page without next page/_index.md2
-rw-r--r--exampleSite/static/admin/config.yml40
-rw-r--r--layouts/_default/single.netlifyyaml.yml48
-rw-r--r--layouts/partials/body-article-sidepage.html2
-rw-r--r--layouts/shortcodes/static.html5
-rw-r--r--static/admin/shortcode/alert.js (renamed from exampleSite/static/admin/shortcode/alert.js)0
-rw-r--r--static/admin/shortcode/button.js (renamed from exampleSite/static/admin/shortcode/button.js)0
-rw-r--r--static/admin/shortcode/expand.js (renamed from exampleSite/static/admin/shortcode/expand.js)0
-rw-r--r--static/admin/shortcode/panel.js (renamed from exampleSite/static/admin/shortcode/panel.js)0
-rw-r--r--static/vendor/netlify-cms/2.10.56-dist/netlify-cms.js600
15 files changed, 734 insertions, 61 deletions
diff --git a/exampleSite/config-template.toml b/exampleSite/config-template.toml
index 5ec5a61..60f11be 100644
--- a/exampleSite/config-template.toml
+++ b/exampleSite/config-template.toml
@@ -27,9 +27,32 @@ disableSearch = false # default is false
disableNavChevron = false # set true to hide next/prev chevron, default is false
menushortcutsnewtab = false # set true to open shortcuts links to a new tab/window
-editURL = "https://github.com/vjeantet/hugo-theme-docport/edit/master/exampleSite/content/"
+#editURL = "https://github.com/vjeantet/hugo-theme-docport/edit/master/exampleSite/content/"
enableGitInfo = true
+# NetlifyCMS Options
+#editWithNetlifyCMSURL = "admin/#/collections/pages/entries/"
+#netlifycms_backend_name = "github"
+#netlifycms_backend_repo = "vjeantet/hugo-theme-docport"
+#netlifycms_backend_branch = "master"
+#netlifycms_backend_open_authoring = true
+#netlifycms_backend_authtype = " implicit"
+#netlifycms_backend_api_id = "L4M2L3K4ML23K4ML3K42LK342L3M4K23MLK42L3MK4"
+#netlifycms_backend_api_root = " https://xxxxxxxxxx/api/v4"
+#netlifycms_backend_base_url = "https://xxxxxxxxxxxxx"
+#netlifycms_backend_auth_endpoint = "oauth/authorize"
+
+[mediaTypes]
+ [mediaTypes."application/netlifyconfig"]
+ suffixes = ["yml"]
+
+[outputFormats]
+[outputFormats.netlifyyaml]
+mediaType = "application/netlifyconfig"
+isPlainText = true
+isHTML = false
+notAlternative = true
+
[markup.goldmark.renderer]
unsafe = true
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index a0567a3..669853e 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -33,9 +33,29 @@ disableNavChevron = false # set true to hide next/prev chevron, default is false
menushortcutsnewtab = false # set true to open shortcuts links to a new tab/window
#editURL = "https://github.com/vjeantet/hugo-theme-docport/edit/master/exampleSite/content/"
-editWithNetlifyCMSURL = "https://docport.netlify.app/admin/#/collections/pages/entries/"
+editWithNetlifyCMSURL = "admin/#/collections/pages/entries/"
enableGitInfo = true
+netlifycms_backend_name = "github"
+netlifycms_backend_repo = "vjeantet/hugo-theme-docport"
+netlifycms_backend_branch = "master"
+netlifycms_backend_open_authoring = true
+#netlifycms_backend_authtype = " implicit"
+#netlifycms_backend_api_id = "L4M2L3K4ML23K4ML3K42LK342L3M4K23MLK42L3MK4"
+#netlifycms_backend_api_root = " https://xxxxxxxxxx/api/v4"
+#netlifycms_backend_base_url = "https://xxxxxxxxxxxxx"
+#netlifycms_backend_auth_endpoint = "oauth/authorize"
+
+[mediaTypes]
+ [mediaTypes."application/netlifyconfig"]
+ suffixes = ["yml"]
+
+[outputFormats]
+[outputFormats.netlifyyaml]
+mediaType = "application/netlifyconfig"
+isPlainText = true
+isHTML = false
+notAlternative = true
[outputs]
home = [ "HTML", "RSS", "JSON"]
diff --git a/exampleSite/content/_layout/netlifycms/_index.md b/exampleSite/content/_layout/netlifycms/_index.md
new file mode 100644
index 0000000..a0b7431
--- /dev/null
+++ b/exampleSite/content/_layout/netlifycms/_index.md
@@ -0,0 +1,4 @@
+---
+
+---
+fake \ No newline at end of file
diff --git a/exampleSite/content/_layout/netlifycms/config.md b/exampleSite/content/_layout/netlifycms/config.md
new file mode 100644
index 0000000..e344010
--- /dev/null
+++ b/exampleSite/content/_layout/netlifycms/config.md
@@ -0,0 +1,10 @@
+---
+title: "Netlify config file"
+url: /admin/config.yml
+outputs:
+ - netlifyyaml
+
+netlifycms_content_folder : "exampleSite/content"
+
+---
+
diff --git a/exampleSite/static/admin/index.html b/exampleSite/content/_layout/netlifycms/root.md
index bf5704b..c12b7cb 100644
--- a/exampleSite/static/admin/index.html
+++ b/exampleSite/content/_layout/netlifycms/root.md
@@ -1,17 +1,20 @@
-<!doctype html>
-<html>
-<head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Content Manager</title>
- <script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
-</head>
-<body>
- <!-- Include the script that builds the page and powers Netlify CMS -->
- <script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
- <script src="./shortcode/alert.js"></script>
- <script src="./shortcode/expand.js"></script>
- <script src="./shortcode/panel.js"></script>
- <script src="./shortcode/button.js"></script>
-</body>
-</html> \ No newline at end of file
+---
+render: raw
+title: Content Manager
+url: /admin/index.html
+---
+<html>
+<head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+</head>
+<body>
+ <!-- Include the script that builds the page and powers Netlify CMS -->
+ <!-- <script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script> -->
+ <script src="{{< static "/vendor/netlify-cms/2.10.56-dist/netlify-cms.js" >}}"></script>
+ <script src="./shortcode/alert.js"></script>
+ <script src="./shortcode/expand.js"></script>
+ <script src="./shortcode/panel.js"></script>
+ <script src="./shortcode/button.js"></script>
+</body>
+</html>
diff --git a/exampleSite/content/examples/page without next page/_index.md b/exampleSite/content/examples/page without next page/_index.md
index 165b946..563406e 100644
--- a/exampleSite/content/examples/page without next page/_index.md
+++ b/exampleSite/content/examples/page without next page/_index.md
@@ -22,7 +22,7 @@ hide: nextpage
## Chapter 2
-[Click here to GOTO to the next example]({{%relref "page without any"%}})
+[Click here to GOTO to the next example]({{%relref "page-without-any"%}})
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
diff --git a/exampleSite/static/admin/config.yml b/exampleSite/static/admin/config.yml
deleted file mode 100644
index 4719e46..0000000
--- a/exampleSite/static/admin/config.yml
+++ /dev/null
@@ -1,40 +0,0 @@
-backend:
- name: github
- repo: vjeantet/hugo-theme-docport
- open_authoring: true
-media_folder: static/images/uploads
-public_folder: /images/uploads
-publish_mode: editorial_workflow
-site_url: https://docport.netlify.app
-nested:
- depth: 100 # max depth to show in the collection tree
- summary: '{{title}}' # optional summary for a tree node, defaults to the inferred title field
-collections:
- - name: 'pages'
- label: 'Home'
- label_singular: 'Page'
- folder: 'exampleSite/content'
- create: true
- media_folder: ''
- public_folder: ''
- nested:
- depth: 100 # max depth to show in the collection tree
- summary: '{{title}}' # how menu is displayed in menu tree
- summary: '{{title}}' # how page names are displayed
- editor:
- preview: true
- fields:
- - { label: 'Title', name: 'title', widget: 'string', default: '' }
- - { label: 'Description', name: 'description', widget: 'string' }
- - { label: 'Publish Date', name: 'date', widget: 'datetime' }
- - { label: 'Order', name: 'weight', widget: 'number', default: 10,required: false }
- - { label: 'Body', name: 'body', widget: 'markdown' }
- - { label: 'Hide page components', name: 'hide', widget: 'select',required: false, multiple: true, hint: 'Choose how to layout your content', options: [{ label: "Header", value: "header" },{ label: "Left menu ", value: "nav" }, { label: "breadcrumb", value: "breadcrumb" }, { label: "right bar with table of content", value: "breadcrumb" }, { label: "Next Page Helper", value: "nextpage" }, { label: "footer", value: "footer" }]}
- - { label: 'Force display as a subpage ?', name: 'subpage', widget: 'boolean',required: false, default: false, hint: 'Display this page as subcontent' }
- - { label: 'Is Hidden ?', name: 'hidden', widget: 'boolean',required: false, default: false, hint: 'Hide this page from any menu' }
- - { label: 'Menu Entry Head', name: 'head', widget: 'string', required: false, hint: 'Display something before menu entry' }
- - { label: 'Menu label Prefix', name: 'pre', widget: 'string', required: false, hint: 'Display something before menu label' }
- - { label: 'Menu label Suffix', name: 'post', widget: 'string', required: false, hint: 'Display something after menu label' }
- - { label: 'Menu - Always open', name: 'alwaysopen', widget: 'boolean', required: false, default: false, hint: 'Open menu by default' }
- meta: { path: { widget: string, label: 'Path', index_file: '_index', pattern: ['.*', "Error"] } }
-
diff --git a/layouts/_default/single.netlifyyaml.yml b/layouts/_default/single.netlifyyaml.yml
new file mode 100644
index 0000000..5ca29a1
--- /dev/null
+++ b/layouts/_default/single.netlifyyaml.yml
@@ -0,0 +1,48 @@
+media_folder: "static/images/uploads" # Media files will be stored in the repo under images/uploads
+public_folder: "/images/uploads" # The src attribute for uploaded media will begin with /images/uploads
+publish_mode: editorial_workflow
+backend:
+ {{if ne nil .Site.Params.netlifycms_backend_name}}name: {{.Site.Params.netlifycms_backend_name}}{{end}}
+ {{- if ne nil .Site.Params.netlifycms_backend_repo}}
+ repo: {{.Site.Params.netlifycms_backend_repo}}{{end}}
+ {{- if ne nil .Site.Params.netlifycms_backend_branch}}
+ branch: {{.Site.Params.netlifycms_backend_branch}}{{end}}
+ {{- if ne nil .Site.Params.netlifycms_backend_authtype}}
+ auth_type: {{.Site.Params.netlifycms_backend_authtype}}{{end}}
+ {{- if ne nil .Site.Params.netlifycms_backend_api_id}}
+ app_id: {{.Site.Params.netlifycms_backend_api_id}}{{end}}
+ {{- if ne nil .Site.Params.netlifycms_backend_api_root}}
+ api_root: {{.Site.Params.netlifycms_backend_api_root}}{{end}}
+ {{- if ne nil .Site.Params.netlifycms_backend_base_url}}
+ base_url: {{.Site.Params.netlifycms_backend_base_url}}{{end}}
+ {{- if ne nil .Site.Params.netlifycms_backend_auth_endpoint}}
+ auth_endpoint: {{.Site.Params.netlifycms_backend_auth_endpoint}}{{end}}
+ {{- if ne nil .Site.Params.netlifycms_backend_open_authoring}}
+ open_authoring: {{.Site.Params.netlifycms_backend_open_authoring}}{{end}}
+
+collections:
+ - name: "pages"
+ label: "Pages"
+ folder: "{{.Params.netlifycms_content_folder}}"
+ create: true
+ media_folder: ''
+ public_folder: ''
+ editor:
+ preview: true
+ nested: { depth: 100 } # accepts an optional summary template
+ fields:
+ - { label: 'Title', name: 'title', widget: 'string' }
+ - { label: 'Description', name: 'description', widget: 'string' }
+ - { label: "Publish Date", name: "date", widget: "datetime"}
+ - { label: 'Order', name: 'weight', widget: 'number', default: 10,required: false }
+ - { label: "Body", name: "body", widget: "markdown"}
+ - { label: 'Is Hidden ?', name: 'hidden', widget: 'boolean',required: false, default: false, hint: 'Hide this page from any menu' }
+ - { label: 'Hide page components', name: 'hide', widget: 'select',required: false, multiple: true, hint: 'Choose how to layout your content', options: [{ label: "Header", value: "header" },{ label: "Left menu ", value: "nav" }, { label: "breadcrumb", value: "breadcrumb" }, { label: "right bar with table of content", value: "breadcrumb" }, { label: "Next Page Helper", value: "nextpage" }, { label: "footer", value: "footer" }]}
+ - { label: 'Render', name: 'render', widget: 'select',required: false, hint: 'Choose how to layout your content', options: [{ label: "Default (empty value)", value: "" },{ label: "Raw - Full HTML", value: "raw" }]}
+ - { label: 'Force display as a subpage ?', name: 'subpage', widget: 'boolean',required: false, default: false, hint: 'Display this page as subcontent' }
+ - { label: 'Menu Entry Head', name: 'head', widget: 'string', required: false, hint: 'Display something before menu entry' }
+ - { label: 'Menu label Prefix', name: 'pre', widget: 'string', required: false, hint: 'Display something before menu label' }
+ - { label: 'Menu label Suffix', name: 'post', widget: 'string', required: false, hint: 'Display something after menu label' }
+ - { label: 'Menu - Always open', name: 'alwaysopen', widget: 'boolean', required: false, default: false, hint: 'Open menu by default' }
+ - { label: 'Redirection', name: 'redirect', widget: 'string', required: false }
+ meta: { path: { widget: string, label: 'Path', index_file: '_index', pattern: ['.*', "Error"] } }
diff --git a/layouts/partials/body-article-sidepage.html b/layouts/partials/body-article-sidepage.html
index d675571..6f2e0f2 100644
--- a/layouts/partials/body-article-sidepage.html
+++ b/layouts/partials/body-article-sidepage.html
@@ -25,7 +25,7 @@
{{ if .Site.Params.editWithNetlifyCMSURL }}
<li>
- <a href="{{ .Site.Params.editWithNetlifyCMSURL }}{{with .File}}{{ replace .Dir "\\" "/" | safeURL }}{{ .BaseFileName }}{{end}}" target="blank">
+ <a href="{{ .Site.BaseURL }}{{ .Site.Params.editWithNetlifyCMSURL }}{{with .File}}{{ replace .Dir "\\" "/" | safeURL }}{{ .BaseFileName }}{{end}}" target="blank">
<i class="fab fa-github"></i>
{{T "Edit-this-page"}}</a>
</li>
diff --git a/layouts/shortcodes/static.html b/layouts/shortcodes/static.html
new file mode 100644
index 0000000..f73e477
--- /dev/null
+++ b/layouts/shortcodes/static.html
@@ -0,0 +1,5 @@
+{{- .Scratch.Set "path" (.Get 0) -}}
+{{- if hasPrefix (.Scratch.Get "path") "/" -}}
+ {{- .Scratch.Set "path" (slicestr (.Scratch.Get "path") 1) -}}
+{{- end -}}
+{{- .Scratch.Get "path" | absLangURL -}} \ No newline at end of file
diff --git a/exampleSite/static/admin/shortcode/alert.js b/static/admin/shortcode/alert.js
index 2c3a471..2c3a471 100644
--- a/exampleSite/static/admin/shortcode/alert.js
+++ b/static/admin/shortcode/alert.js
diff --git a/exampleSite/static/admin/shortcode/button.js b/static/admin/shortcode/button.js
index 458df1b..458df1b 100644
--- a/exampleSite/static/admin/shortcode/button.js
+++ b/static/admin/shortcode/button.js
diff --git a/exampleSite/static/admin/shortcode/expand.js b/static/admin/shortcode/expand.js
index e665254..e665254 100644
--- a/exampleSite/static/admin/shortcode/expand.js
+++ b/static/admin/shortcode/expand.js
diff --git a/exampleSite/static/admin/shortcode/panel.js b/static/admin/shortcode/panel.js
index cf63dbe..cf63dbe 100644
--- a/exampleSite/static/admin/shortcode/panel.js
+++ b/static/admin/shortcode/panel.js
diff --git a/static/vendor/netlify-cms/2.10.56-dist/netlify-cms.js b/static/vendor/netlify-cms/2.10.56-dist/netlify-cms.js
new file mode 100644
index 0000000..85d0e4e
--- /dev/null
+++ b/static/vendor/netlify-cms/2.10.56-dist/netlify-cms.js
@@ -0,0 +1,600 @@
+!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("NetlifyCms",[],t):"object"==typeof exports?exports.NetlifyCms=t():e.NetlifyCms=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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=1681)}([function(e,t,n){"use strict";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 i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(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&&c(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){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}}function f(e,t,n){return(f=d()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i}).apply(null,arguments)}function p(e){var t="function"==typeof Map?new Map:void 0;return(p=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return f(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?h(e):t}function g(e){var t=d();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function v(e,t,n){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function y(e,t){return _(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||w(e,t)||k()}function b(e){return _(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||w(e)||k()}function _(e){if(Array.isArray(e))return e}function w(e,t){if(e){if("string"==typeof e)return x(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)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(){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 E(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=w(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return j})),n.d(t,"c",(function(){return z})),n.d(t,"d",(function(){return I})),n.d(t,"e",(function(){return O})),n.d(t,"f",(function(){return F})),n.d(t,"g",(function(){return E})),n.d(t,"h",(function(){return r})),n.d(t,"i",(function(){return a})),n.d(t,"j",(function(){return i})),n.d(t,"k",(function(){return T})),n.d(t,"l",(function(){return s})),n.d(t,"m",(function(){return B})),n.d(t,"n",(function(){return N})),n.d(t,"o",(function(){return y})),n.d(t,"p",(function(){return D})),n.d(t,"q",(function(){return l})),n.d(t,"r",(function(){return g})),n.d(t,"s",(function(){return v})),n.d(t,"t",(function(){return u})),n.d(t,"u",(function(){return C})),n.d(t,"v",(function(){return L})),n.d(t,"w",(function(){return h})),n.d(t,"x",(function(){return b})),n.d(t,"y",(function(){return m}));var S={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},O={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},T="tag:yaml.org,2002:",C={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function A(e){for(var t=[0],n=e.indexOf("\n");-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function P(e){var t,n;return"string"==typeof e?(t=A(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=A(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function R(e,t){if("number"!=typeof e||e<0)return null;var n=P(t),r=n.lineStarts,i=n.src;if(!r||!i||e>i.length)return null;for(var o=0;o<r.length;++o){var a=r[o];if(e<a)return{line:o,col:e-r[o-1]+1};if(e===a)return{line:o+1,col:1}}var s=r.length;return{line:s,col:e-r[s-1]+1}}function M(e,t){var n=P(t),r=n.lineStarts,i=n.src;if(!r||!(e>=1)||e>r.length)return null;for(var o=r[e-1],a=r[e];a&&a>o&&"\n"===i[a-1];)--a;return i.slice(o,a)}var I=function(){function e(t,n){i(this,e),this.start=t,this.end=n||t}return a(e,null,[{key:"copy",value:function(t){return new e(t.start,t.end)}}]),a(e,[{key:"isEmpty",value:function(){return"number"!=typeof this.start||!this.end||this.end<=this.start}},{key:"setOrigRange",value:function(e,t){var n=this.start,r=this.end;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;for(var i=t;i<e.length&&!(e[i]>n);)++i;this.origStart=n+i;for(var o=i;i<e.length&&!(e[i]>=r);)++i;return this.origEnd=r+i,o}}]),e}(),j=function(){function e(t,n,r){i(this,e),Object.defineProperty(this,"context",{value:r||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=t,this.value=null}return a(e,null,[{key:"addStringTerminator",value:function(t,n,r){if("\n"===r[r.length-1])return r;var i=e.endOfWhiteSpace(t,n);return i>=t.length||"\n"===t[i]?r+"\n":r}},{key:"atDocumentBoundary",value:function(e,t,n){var r=e[t];if(!r)return!0;var i=e[t-1];if(i&&"\n"!==i)return!1;if(n){if(r!==n)return!1}else if(r!==S.DIRECTIVES_END&&r!==S.DOCUMENT_END)return!1;var o=e[t+1],a=e[t+2];if(o!==r||a!==r)return!1;var s=e[t+3];return!s||"\n"===s||"\t"===s||" "===s}},{key:"endOfIdentifier",value:function(e,t){for(var n=e[t],r="<"===n,i=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];n&&-1===i.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}},{key:"endOfIndent",value:function(e,t){for(var n=e[t];" "===n;)n=e[t+=1];return t}},{key:"endOfLine",value:function(e,t){for(var n=e[t];n&&"\n"!==n;)n=e[t+=1];return t}},{key:"endOfWhiteSpace",value:function(e,t){for(var n=e[t];"\t"===n||" "===n;)n=e[t+=1];return t}},{key:"startOfLine",value:function(e,t){var n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}},{key:"endOfBlockIndent",value:function(t,n,r){var i=e.endOfIndent(t,r);if(i>r+n)return i;var o=e.endOfWhiteSpace(t,i),a=t[o];return a&&"\n"!==a?null:o}},{key:"atBlank",value:function(e,t,n){var r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}},{key:"nextNodeIsIndented",value:function(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}},{key:"normalizeOffset",value:function(t,n){var r=t[n];return r?"\n"!==r&&"\n"===t[n-1]?n-1:e.endOfWhiteSpace(t,n):n}},{key:"foldNewline",value:function(t,n,r){for(var i=0,o=!1,a="",s=t[n+1];" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":i=0,n+=1,a+="\n";break;case"\t":i<=r&&(o=!0),n=e.endOfWhiteSpace(t,n+2)-1;break;case" ":i+=1,n+=1}s=t[n+1]}return a||(a=" "),s&&i<=r&&(o=!0),{fold:a,offset:n,error:o}}}]),a(e,[{key:"getPropValue",value:function(e,t,n){if(!this.context)return null;var r=this.context.src,i=this.props[e];return i&&r[i.start]===t?r.slice(i.start+(n?1:0),i.end):null}},{key:"commentHasRequiredWhitespace",value:function(t){var n=this.context.src;if(this.header&&t===this.header.end)return!1;if(!this.valueRange)return!1;var r=this.valueRange.end;return t!==r||e.atBlank(n,r-1)}},{key:"parseComment",value:function(t){var n=this.context.src;if(n[t]===S.COMMENT){var r=e.endOfLine(n,t+1),i=new I(t,r);return this.props.push(i),r}return t}},{key:"setOrigRanges",value:function(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach((function(n){return n.setOrigRange(e,t)})),t}},{key:"toString",value:function(){var t=this.context.src,n=this.range,r=this.value;if(null!=r)return r;var i=t.slice(n.start,n.end);return e.addStringTerminator(t,n.end,i)}},{key:"anchor",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,S.ANCHOR,!0);if(null!=t)return t}return null}},{key:"comment",get:function(){for(var e=[],t=0;t<this.props.length;++t){var n=this.getPropValue(t,S.COMMENT,!0);null!=n&&e.push(n)}return e.length>0?e.join("\n"):null}},{key:"hasComment",get:function(){if(this.context)for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]===S.COMMENT)return!0;return!1}},{key:"hasProps",get:function(){if(this.context)for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]!==S.COMMENT)return!0;return!1}},{key:"includesTrailingLines",get:function(){return!1}},{key:"jsonLike",get:function(){return-1!==[O.FLOW_MAP,O.FLOW_SEQ,O.QUOTE_DOUBLE,O.QUOTE_SINGLE].indexOf(this.type)}},{key:"rangeAsLinePos",get:function(){if(this.range&&this.context){var e=R(this.range.start,this.context.root);if(e)return{start:e,end:R(this.range.end,this.context.root)}}}},{key:"rawValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end;return this.context.src.slice(t,n)}},{key:"tag",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,S.TAG,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};var n=y(t.match(/^(.*!)([^!]*)$/),3);n[0];return{handle:n[1],suffix:n[2]}}}return null}},{key:"valueRangeContainsNewline",get:function(){if(!this.valueRange||!this.context)return!1;for(var e=this.valueRange,t=e.start,n=e.end,r=this.context.src,i=t;i<n;++i)if("\n"===r[i])return!0;return!1}}]),e}(),D=function(e){l(n,e);var t=g(n);function n(e,r,o){var a;if(i(this,n),!(o&&r instanceof j))throw new Error("Invalid arguments for new ".concat(e));return(a=t.call(this)).name=e,a.message=o,a.source=r,a}return a(n,[{key:"makePretty",value:function(){if(this.source){this.nodeType=this.source.type;var e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new I(this.offset,this.offset+1);var t=e&&R(this.offset,e);if(t){var n={line:t.line,col:t.col+1};this.linePos={start:t,end:n}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){var r=this.linePos.start,i=r.line,o=r.col;this.message+=" at line ".concat(i,", column ").concat(o);var a=e&&function(e,t){var n=e.start,r=e.end,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:80,o=M(n.line,t);if(!o)return null;var a=n.col;if(o.length>i)if(a<=i-10)o=o.substr(0,i-1)+"…";else{var s=Math.round(i/2);o.length>a+s&&(o=o.substr(0,a+s-1)+"…"),a-=o.length-i,o="…"+o.substr(1-i)}var l=1,u="";r&&(r.line===n.line&&a+(r.col-n.col)<=i+1?l=r.col-n.col:(l=Math.min(o.length+1,i)-a,u="…"));var c=a>1?" ".repeat(a-1):"",d="^".repeat(l);return"".concat(o,"\n").concat(c).concat(d).concat(u)}(this.linePos,e);a&&(this.message+=":\n\n".concat(a,"\n"))}delete this.source}}}]),n}(p(Error)),L=function(e){l(n,e);var t=g(n);function n(e,r){return i(this,n),t.call(this,"YAMLReferenceError",e,r)}return n}(D),N=function(e){l(n,e);var t=g(n);function n(e,r){return i(this,n),t.call(this,"YAMLSemanticError",e,r)}return n}(D),F=function(e){l(n,e);var t=g(n);function n(e,r){return i(this,n),t.call(this,"YAMLSyntaxError",e,r)}return n}(D),B=function(e){l(n,e);var t=g(n);function n(e,r){return i(this,n),t.call(this,"YAMLWarning",e,r)}return n}(D),z=function(e){l(n,e);var t=g(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"parseBlockValue",value:function(e){for(var t=this.context,r=t.indent,i=t.inFlow,o=t.src,a=e,s=e,l=o[a];"\n"===l&&!j.atDocumentBoundary(o,a+1);l=o[a]){var u=j.endOfBlockIndent(o,r,a+1);if(null===u||"#"===o[u])break;a="\n"===o[u]?u:s=n.endOfLine(o,u,i)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=s,s}},{key:"parse",value:function(e,t){this.context=e;var r=e.inFlow,i=e.src,o=t,a=i[o];return a&&"#"!==a&&"\n"!==a&&(o=n.endOfLine(i,t,r)),this.valueRange=new I(t,o),o=j.endOfWhiteSpace(i,o),o=this.parseComment(o),this.hasComment&&!this.valueRange.isEmpty()||(o=this.parseBlockValue(o)),o}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var e=this.valueRange,t=e.start,n=e.end,r=this.context.src,i=r[n-1];t<n&&("\n"===i||"\t"===i||" "===i);)i=r[--n-1];for(var o="",a=t;a<n;++a){var s=r[a];if("\n"===s){var l=j.foldNewline(r,a,-1);o+=l.fold,a=l.offset}else if(" "===s||"\t"===s){for(var u=a,c=r[a+1];a<n&&(" "===c||"\t"===c);)c=r[(a+=1)+1];"\n"!==c&&(o+=a>u?r.slice(u,a+1):s)}else o+=s}var d=r[t];switch(d){case"\t":return{errors:[new N(this,"Plain value cannot start with a tab character")],str:o};case"@":case"`":var f="Plain value cannot start with reserved character ".concat(d);return{errors:[new N(this,f)],str:o};default:return o}}}],[{key:"endOfLine",value:function(e,t,n){for(var r=e[t],i=t;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){var o=e[i+1];if(":"===r&&(!o||"\n"===o||"\t"===o||" "===o||n&&","===o))break;if((" "===r||"\t"===r)&&"#"===o)break;i+=1,r=o}return i}}]),n}(j)},function(e,t,n){"use strict";e.exports=n(684)},function(e,t,n){e.exports=n(692)()},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"h",(function(){return f})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"l",(function(){return g})),n.d(t,"m",(function(){return v})),n.d(t,"n",(function(){return y})),n.d(t,"o",(function(){return b})),n.d(t,"p",(function(){return _})),n.d(t,"q",(function(){return w})),n.d(t,"r",(function(){return x})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return O})),n.d(t,"u",(function(){return T})),n.d(t,"v",(function(){return C})),n.d(t,"w",(function(){return A})),n.d(t,"x",(function(){return P})),n.d(t,"y",(function(){return R})),n.d(t,"z",(function(){return M})),n.d(t,"A",(function(){return I})),n.d(t,"B",(function(){return j})),n.d(t,"C",(function(){return D})),n.d(t,"D",(function(){return L})),n.d(t,"E",(function(){return N})),n.d(t,"F",(function(){return F})),n.d(t,"H",(function(){return B})),n.d(t,"I",(function(){return z})),n.d(t,"J",(function(){return U})),n.d(t,"G",(function(){return q})),n.d(t,"a",(function(){return H}));var r=n(27),i=n(176),o=n(55);function a(e){for(var t=h(),n=0,r=e.length;n<r;++n)x(t,e[n]);return t}function s(e,t,n){return n?(n[0]=e[0]-t,n[1]=e[1]-t,n[2]=e[2]+t,n[3]=e[3]+t,n):[e[0]-t,e[1]-t,e[2]+t,e[3]+t]}function l(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e.slice()}function u(e,t,n){var r,i;return(r=t<e[0]?e[0]-t:e[2]<t?t-e[2]:0)*r+(i=n<e[1]?e[1]-n:e[3]<n?n-e[3]:0)*i}function c(e,t){return f(e,t[0],t[1])}function d(e,t){return e[0]<=t[0]&&t[2]<=e[2]&&e[1]<=t[1]&&t[3]<=e[3]}function f(e,t,n){return e[0]<=t&&t<=e[2]&&e[1]<=n&&n<=e[3]}function p(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],s=t[0],l=t[1],u=o.a.UNKNOWN;return s<n?u|=o.a.LEFT:s>i&&(u|=o.a.RIGHT),l<r?u|=o.a.BELOW:l>a&&(u|=o.a.ABOVE),u===o.a.UNKNOWN&&(u=o.a.INTERSECTING),u}function h(){return[1/0,1/0,-1/0,-1/0]}function m(e,t,n,r,i){return i?(i[0]=e,i[1]=t,i[2]=n,i[3]=r,i):[e,t,n,r]}function g(e){return m(1/0,1/0,-1/0,-1/0,e)}function v(e,t){var n=e[0],r=e[1];return m(n,r,n,r,t)}function y(e,t){return k(g(t),e)}function b(e,t,n,r,i){return E(g(i),e,t,n,r)}function _(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function w(e,t){return t[0]<e[0]&&(e[0]=t[0]),t[2]>e[2]&&(e[2]=t[2]),t[1]<e[1]&&(e[1]=t[1]),t[3]>e[3]&&(e[3]=t[3]),e}function x(e,t){t[0]<e[0]&&(e[0]=t[0]),t[0]>e[2]&&(e[2]=t[0]),t[1]<e[1]&&(e[1]=t[1]),t[1]>e[3]&&(e[3]=t[1])}function k(e,t){for(var n=0,r=t.length;n<r;++n)x(e,t[n]);return e}function E(e,t,n,r,i){for(;n<r;n+=i)S(e,t[n],t[n+1]);return e}function S(e,t,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],n),e[2]=Math.max(e[2],t),e[3]=Math.max(e[3],n)}function O(e,t,n){var r;return(r=t.call(n,C(e)))||(r=t.call(n,A(e)))||(r=t.call(n,L(e)))?r:(r=t.call(n,D(e)))||!1}function T(e){var t=0;return B(e)||(t=N(e)*I(e)),t}function C(e){return[e[0],e[1]]}function A(e){return[e[2],e[1]]}function P(e){return[(e[0]+e[2])/2,(e[1]+e[3])/2]}function R(e,t){var n;return t===i.a.BOTTOM_LEFT?n=C(e):t===i.a.BOTTOM_RIGHT?n=A(e):t===i.a.TOP_LEFT?n=D(e):t===i.a.TOP_RIGHT?n=L(e):Object(r.a)(!1,13),n}function M(e,t,n,r,i){var o=t*r[0]/2,a=t*r[1]/2,s=Math.cos(n),l=Math.sin(n),u=o*s,c=o*l,d=a*s,f=a*l,p=e[0],h=e[1],g=p-u+f,v=p-u-f,y=p+u-f,b=p+u+f,_=h-c-d,w=h-c+d,x=h+c+d,k=h+c-d;return m(Math.min(g,v,y,b),Math.min(_,w,x,k),Math.max(g,v,y,b),Math.max(_,w,x,k),i)}function I(e){return e[3]-e[1]}function j(e,t,n){var r=n||[1/0,1/0,-1/0,-1/0];return F(e,t)?(e[0]>t[0]?r[0]=e[0]:r[0]=t[0],e[1]>t[1]?r[1]=e[1]:r[1]=t[1],e[2]<t[2]?r[2]=e[2]:r[2]=t[2],e[3]<t[3]?r[3]=e[3]:r[3]=t[3]):g(r),r}function D(e){return[e[0],e[3]]}function L(e){return[e[2],e[3]]}function N(e){return e[2]-e[0]}function F(e,t){return e[0]<=t[2]&&e[2]>=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function B(e){return e[2]<e[0]||e[3]<e[1]}function z(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e}function U(e,t){var n=(e[2]-e[0])/2*(t-1),r=(e[3]-e[1])/2*(t-1);e[0]-=n,e[2]+=n,e[1]-=r,e[3]+=r}function q(e,t,n){var r=!1,i=p(e,t),a=p(e,n);if(i===o.a.INTERSECTING||a===o.a.INTERSECTING)r=!0;else{var s,l,u=e[0],c=e[1],d=e[2],f=e[3],h=t[0],m=t[1],g=n[0],v=n[1],y=(v-m)/(g-h);a&o.a.ABOVE&&!(i&o.a.ABOVE)&&(r=(s=g-(v-f)/y)>=u&&s<=d),r||!(a&o.a.RIGHT)||i&o.a.RIGHT||(r=(l=v-(g-d)*y)>=c&&l<=f),r||!(a&o.a.BELOW)||i&o.a.BELOW||(r=(s=g-(v-c)/y)>=u&&s<=d),r||!(a&o.a.LEFT)||i&o.a.LEFT||(r=(l=v-(g-u)*y)>=c&&l<=f)}return r}function H(e,t,n){var r=[e[0],e[1],e[0],e[3],e[2],e[1],e[2],e[3]];return t(r,r,2),function(e,t,n){return m(Math.min.apply(null,e),Math.min.apply(null,t),Math.max.apply(null,e),Math.max.apply(null,t),n)}([r[0],r[2],r[4],r[6]],[r[1],r[3],r[5],r[7]],n)}},function(e,t,n){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:q(e)}function r(e){return s(e)?e:H(e)}function i(e){return l(e)?e:W(e)}function o(e){return a(e)&&!u(e)?e:V(e)}function a(e){return!(!e||!e[d])}function s(e){return!(!e||!e[f])}function l(e){return!(!e||!e[p])}function u(e){return s(e)||l(e)}function c(e){return!(!e||!e[h])}t(r,n),t(i,n),t(o,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=l,n.isAssociative=u,n.isOrdered=c,n.Keyed=r,n.Indexed=i,n.Set=o;var d="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",m={},g={value:!1},v={value:!1};function y(e){return e.value=!1,e}function b(e){e&&(e.value=!0)}function _(){}function w(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function x(e){return void 0===e.size&&(e.size=e.__iterate(E)),e.size}function k(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?x(e)+t:t}function E(){return!0}function S(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function O(e,t){return C(e,t,0)}function T(e,t){return C(e,t,t)}function C(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var A,P,R,M="function"==typeof Symbol&&Symbol.iterator,I=M||"@@iterator";function j(e){this.next=e}function D(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function L(){return{value:void 0,done:!0}}function N(e){return!!z(e)}function F(e){return e&&"function"==typeof e.next}function B(e){var t=z(e);return t&&t.call(e)}function z(e){var t=e&&(M&&e[M]||e["@@iterator"]);if("function"==typeof t)return t}function U(e){return e&&"number"==typeof e.length}function q(e){return null==e?X():a(e)?e.toSeq():function(e){var t=ee(e)||"object"==typeof e&&new G(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function H(e){return null==e?X().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():J(e)}function W(e){return null==e?X():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():Z(e)}function V(e){return(null==e?X():a(e)?s(e)?e.entrySeq():e:Z(e)).toSetSeq()}function $(e){this._array=e,this.size=e.length}function G(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function K(e){this._iterable=e,this.size=e.length||e.size}function Y(e){this._iterator=e,this._iteratorCache=[]}function Q(e){return!(!e||!e["@@__IMMUTABLE_SEQ__@@"])}function X(){return A||(A=new $([]))}function J(e){var t=Array.isArray(e)?new $(e).fromEntrySeq():F(e)?new Y(e).fromEntrySeq():N(e)?new K(e).fromEntrySeq():"object"==typeof e?new G(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function Z(e){var t=ee(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ee(e){return U(e)?new $(e):F(e)?new Y(e):N(e)?new K(e):void 0}function te(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function ne(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new j((function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:D(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function re(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,W(n).map((function(r,i){return e(t,r,i,n)}))):oe(n)?t.call(i,r,H(n).map((function(r,i){return e(t,r,i,n)}))):n}(t,e,"",{"":e}):ie(e)}function ie(e){return Array.isArray(e)?W(e).map(ie).toList():oe(e)?H(e).map(ie).toMap():e}function oe(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ae(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function se(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every((function(e,t){var i=r.next().value;return i&&ae(i[1],e)&&(n||ae(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var d=!0,f=t.__iterate((function(t,r){if(n?!e.has(t):i?!ae(t,e.get(r,m)):!ae(e.get(r,m),t))return d=!1,!1}));return d&&e.size===f}function le(e,t){if(!(this instanceof le))return new le(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(P)return P;P=this}}function ue(e,t){if(!e)throw new Error(t)}function ce(e,t,n){if(!(this instanceof ce))return new ce(e,t,n);if(ue(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(R)return R;R=this}}function de(){throw TypeError("Abstract")}function fe(){}function pe(){}function he(){}j.prototype.toString=function(){return"[Iterator]"},j.KEYS=0,j.VALUES=1,j.ENTRIES=2,j.prototype.inspect=j.prototype.toSource=function(){return this.toString()},j.prototype[I]=function(){return this},t(q,n),q.of=function(){return q(arguments)},q.prototype.toSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq {","}")},q.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},q.prototype.__iterate=function(e,t){return te(this,e,t,!0)},q.prototype.__iterator=function(e,t){return ne(this,e,t,!0)},t(H,q),H.prototype.toKeyedSeq=function(){return this},t(W,q),W.of=function(){return W(arguments)},W.prototype.toIndexedSeq=function(){return this},W.prototype.toString=function(){return this.__toString("Seq [","]")},W.prototype.__iterate=function(e,t){return te(this,e,t,!1)},W.prototype.__iterator=function(e,t){return ne(this,e,t,!1)},t(V,q),V.of=function(){return V(arguments)},V.prototype.toSetSeq=function(){return this},q.isSeq=Q,q.Keyed=H,q.Set=V,q.Indexed=W,q.prototype["@@__IMMUTABLE_SEQ__@@"]=!0,t($,W),$.prototype.get=function(e,t){return this.has(e)?this._array[k(this,e)]:t},$.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(!1===e(n[t?r-i:i],i,this))return i+1;return i},$.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,i=0;return new j((function(){return i>r?{value:void 0,done:!0}:D(e,i,n[t?r-i++:i++])}))},t(G,H),G.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},G.prototype.has=function(e){return this._object.hasOwnProperty(e)},G.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},G.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new j((function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:D(e,a,n[a])}))},G.prototype[h]=!0,t(K,W),K.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=B(this._iterable),r=0;if(F(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},K.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=B(this._iterable);if(!F(n))return new j(L);var r=0;return new j((function(){var t=n.next();return t.done?t:D(e,r++,t.value)}))},t(Y,W),Y.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===e(i[o],o++,this))return o;for(;!(n=r.next()).done;){var a=n.value;if(i[o]=a,!1===e(a,o++,this))break}return o},Y.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,i=0;return new j((function(){if(i>=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return D(e,i,r[i++])}))},t(le,W),le.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},le.prototype.get=function(e,t){return this.has(e)?this._value:t},le.prototype.includes=function(e){return ae(this._value,e)},le.prototype.slice=function(e,t){var n=this.size;return S(e,t,n)?this:new le(this._value,T(t,n)-O(e,n))},le.prototype.reverse=function(){return this},le.prototype.indexOf=function(e){return ae(this._value,e)?0:-1},le.prototype.lastIndexOf=function(e){return ae(this._value,e)?this.size:-1},le.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},le.prototype.__iterator=function(e,t){var n=this,r=0;return new j((function(){return r<n.size?D(e,r++,n._value):{value:void 0,done:!0}}))},le.prototype.equals=function(e){return e instanceof le?ae(this._value,e._value):se(e)},t(ce,W),ce.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},ce.prototype.get=function(e,t){return this.has(e)?this._start+k(this,e)*this._step:t},ce.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},ce.prototype.slice=function(e,t){return S(e,t,this.size)?this:(e=O(e,this.size),(t=T(t,this.size))<=e?new ce(0,0):new ce(this.get(e,this._end),this.get(t,this._end),this._step))},ce.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},ce.prototype.lastIndexOf=function(e){return this.indexOf(e)},ce.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;o<=n;o++){if(!1===e(i,o,this))return o+1;i+=t?-r:r}return o},ce.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;return new j((function(){var a=i;return i+=t?-r:r,o>n?{value:void 0,done:!0}:D(e,o++,a)}))},ce.prototype.equals=function(e){return e instanceof ce?this._start===e._start&&this._end===e._end&&this._step===e._step:se(this,e)},t(de,n),t(fe,de),t(pe,de),t(he,de),de.Keyed=fe,de.Indexed=pe,de.Set=he;var me="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ge(e){return e>>>1&1073741824|3221225471&e}function ve(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return ge(n)}if("string"===t)return e.length>Se?function(e){var t=Ce[e];return void 0===t&&(t=ye(e),Te===Oe&&(Te=0,Ce={}),Te++,Ce[e]=t),t}(e):ye(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(xe&&void 0!==(t=be.get(e)))return t;if(void 0!==(t=e[Ee]))return t;if(!we){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ee]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++ke,1073741824&ke&&(ke=0),xe)be.set(e,t);else{if(void 0!==_e&&!1===_e(e))throw new Error("Non-extensible objects are not allowed as keys.");if(we)Object.defineProperty(e,Ee,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ee]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ee]=t}}return t}(e);if("function"==typeof e.toString)return ye(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ye(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ge(t)}var be,_e=Object.isExtensible,we=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),xe="function"==typeof WeakMap;xe&&(be=new WeakMap);var ke=0,Ee="__immutablehash__";"function"==typeof Symbol&&(Ee=Symbol(Ee));var Se=16,Oe=255,Te=0,Ce={};function Ae(e){ue(e!==1/0,"Cannot perform this action with an infinite size.")}function Pe(e){return null==e?We():Re(e)&&!c(e)?e:We().withMutations((function(t){var n=r(e);Ae(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Re(e){return!(!e||!e[Ie])}t(Pe,fe),Pe.of=function(){var t=e.call(arguments,0);return We().withMutations((function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},Pe.prototype.toString=function(){return this.__toString("Map {","}")},Pe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Pe.prototype.set=function(e,t){return Ve(this,e,t)},Pe.prototype.setIn=function(e,t){return this.updateIn(e,m,(function(){return t}))},Pe.prototype.remove=function(e){return Ve(this,e,m)},Pe.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return m}))},Pe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Pe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===m,a=n.next();if(a.done){var s=o?r:t,l=i(s);return l===s?t:l}ue(o||t&&t.set,"invalid keyPath");var u=a.value,c=o?m:t.get(u,m),d=e(c,n,r,i);return d===c?t:d===m?t.remove(u):(o?We():t).set(u,d)}(this,Yt(e),t,n);return r===m?void 0:r},Pe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):We()},Pe.prototype.merge=function(){return Ye(this,void 0,arguments)},Pe.prototype.mergeWith=function(t){var n=e.call(arguments,1);return Ye(this,t,n)},Pe.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,We(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Pe.prototype.mergeDeep=function(){return Ye(this,Qe,arguments)},Pe.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Ye(this,Xe(t),n)},Pe.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,We(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Pe.prototype.sort=function(e){return wt(Ft(this,e))},Pe.prototype.sortBy=function(e,t){return wt(Ft(this,t,e))},Pe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Pe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new _)},Pe.prototype.asImmutable=function(){return this.__ensureOwner()},Pe.prototype.wasAltered=function(){return this.__altered},Pe.prototype.__iterator=function(e,t){return new ze(this,e,t)},Pe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Pe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?He(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Pe.isMap=Re;var Me,Ie="@@__IMMUTABLE_MAP__@@",je=Pe.prototype;function De(e,t){this.ownerID=e,this.entries=t}function Le(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Ne(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Fe(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Be(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function ze(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&qe(e._root)}function Ue(e,t){return D(e,t[0],t[1])}function qe(e,t){return{node:e,index:0,__prev:t}}function He(e,t,n,r){var i=Object.create(je);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function We(){return Me||(Me=He(0))}function Ve(e,t,n){var r,i;if(e._root){var o=y(g),a=y(v);if(r=$e(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===m?-1:1:0)}else{if(n===m)return e;i=1,r=new De(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?He(i,r):We()}function $e(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===m?e:(b(s),b(a),new Be(t,r,[i,o]))}function Ge(e){return e.constructor===Be||e.constructor===Fe}function Ke(e,t,n,r,i){if(e.keyHash===r)return new Fe(t,r,[e.entry,i]);var o,a=31&(0===n?e.keyHash:e.keyHash>>>n),s=31&(0===n?r:r>>>n);return new Le(t,1<<a|1<<s,a===s?[Ke(e,t,n+5,r,i)]:(o=new Be(t,r,i),a<s?[e,o]:[o,e]))}function Ye(e,t,n){for(var i=[],o=0;o<n.length;o++){var s=n[o],l=r(s);a(s)||(l=l.map((function(e){return re(e)}))),i.push(l)}return Je(e,t,i)}function Qe(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ae(e,t)?e:t}function Xe(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var i=e(t,n,r);return ae(t,i)?t:i}}function Je(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,m,(function(e){return e===m?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},i=0;i<n.length;i++)n[i].forEach(r)})):e.constructor(n[0])}function Ze(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function et(e,t,n,r){var i=r?e:w(e);return i[t]=n,i}je[Ie]=!0,je.delete=je.remove,je.removeIn=je.deleteIn,De.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(ae(n,i[o][0]))return i[o][1];return r},De.prototype.update=function(e,t,n,r,i,o,a){for(var s=i===m,l=this.entries,u=0,c=l.length;u<c&&!ae(r,l[u][0]);u++);var d=u<c;if(d?l[u][1]===i:s)return this;if(b(a),(s||!d)&&b(o),!s||1!==l.length){if(!d&&!s&&l.length>=tt)return function(e,t,n,r){e||(e=new _);for(var i=new Be(e,ve(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}(e,l,r,i);var f=e&&e===this.ownerID,p=f?l:w(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[r,i]:p.push([r,i]),f?(this.entries=p,this):new De(e,p)}},Le.prototype.get=function(e,t,n,r){void 0===t&&(t=ve(n));var i=1<<(31&(0===e?t:t>>>e)),o=this.bitmap;return 0==(o&i)?r:this.nodes[Ze(o&i-1)].get(e+5,t,n,r)},Le.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=ve(r));var s=31&(0===t?n:n>>>t),l=1<<s,u=this.bitmap,c=0!=(u&l);if(!c&&i===m)return this;var d=Ze(u&l-1),f=this.nodes,p=c?f[d]:void 0,h=$e(p,e,t+5,n,r,i,o,a);if(h===p)return this;if(!c&&h&&f.length>=nt)return function(e,t,n,r,i){for(var o=0,a=new Array(32),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new Ne(e,o+1,a)}(e,f,u,s,h);if(c&&!h&&2===f.length&&Ge(f[1^d]))return f[1^d];if(c&&h&&1===f.length&&Ge(h))return h;var g=e&&e===this.ownerID,v=c?h?u:u^l:u|l,y=c?h?et(f,d,h,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}(f,d,g):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}(f,d,h,g);return g?(this.bitmap=v,this.nodes=y,this):new Le(e,v,y)},Ne.prototype.get=function(e,t,n,r){void 0===t&&(t=ve(n));var i=31&(0===e?t:t>>>e),o=this.nodes[i];return o?o.get(e+5,t,n,r):r},Ne.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=ve(r));var s=31&(0===t?n:n>>>t),l=i===m,u=this.nodes,c=u[s];if(l&&!c)return this;var d=$e(c,e,t+5,n,r,i,o,a);if(d===c)return this;var f=this.count;if(c){if(!d&&--f<rt)return function(e,t,n,r){for(var i=0,o=0,a=new Array(n),s=0,l=1,u=t.length;s<u;s++,l<<=1){var c=t[s];void 0!==c&&s!==r&&(i|=l,a[o++]=c)}return new Le(e,i,a)}(e,u,f,s)}else f++;var p=e&&e===this.ownerID,h=et(u,s,d,p);return p?(this.count=f,this.nodes=h,this):new Ne(e,f,h)},Fe.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(ae(n,i[o][0]))return i[o][1];return r},Fe.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=ve(r));var s=i===m;if(n!==this.keyHash)return s?this:(b(a),b(o),Ke(this,e,t,n,[r,i]));for(var l=this.entries,u=0,c=l.length;u<c&&!ae(r,l[u][0]);u++);var d=u<c;if(d?l[u][1]===i:s)return this;if(b(a),(s||!d)&&b(o),s&&2===c)return new Be(e,this.keyHash,l[1^u]);var f=e&&e===this.ownerID,p=f?l:w(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[r,i]:p.push([r,i]),f?(this.entries=p,this):new Fe(e,this.keyHash,p)},Be.prototype.get=function(e,t,n,r){return ae(n,this.entry[0])?this.entry[1]:r},Be.prototype.update=function(e,t,n,r,i,o,a){var s=i===m,l=ae(r,this.entry[0]);return(l?i===this.entry[1]:s)?this:(b(a),s?void b(o):l?e&&e===this.ownerID?(this.entry[1]=i,this):new Be(e,this.keyHash,[r,i]):(b(o),Ke(this,e,t,ve(r),[r,i])))},De.prototype.iterate=Fe.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Le.prototype.iterate=Ne.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},Be.prototype.iterate=function(e,t){return e(this.entry)},t(ze,j),ze.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,i=t.index++;if(r.entry){if(0===i)return Ue(e,r.entry)}else if(r.entries){if(i<=(n=r.entries.length-1))return Ue(e,r.entries[this._reverse?n-i:i])}else if(i<=(n=r.nodes.length-1)){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return Ue(e,o.entry);t=this._stack=qe(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var tt=8,nt=16,rt=8;function it(e){var t=ht();if(null==e)return t;if(ot(e))return e;var n=i(e),r=n.size;return 0===r?t:(Ae(r),r>0&&r<32?pt(0,r,5,null,new lt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function ot(e){return!(!e||!e[at])}t(it,pe),it.of=function(){return this(arguments)},it.prototype.toString=function(){return this.__toString("List [","]")},it.prototype.get=function(e,t){if((e=k(this,e))>=0&&e<this.size){var n=vt(this,e+=this._origin);return n&&n.array[31&e]}return t},it.prototype.set=function(e,t){return function(e,t,n){if((t=k(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?yt(e,t).set(0,n):yt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,o=y(v);return t>=_t(e._capacity)?r=mt(r,e.__ownerID,0,t,n,o):i=mt(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):pt(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},it.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},it.prototype.insert=function(e,t){return this.splice(e,0,t)},it.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):ht()},it.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){yt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},it.prototype.pop=function(){return yt(this,0,-1)},it.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){yt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},it.prototype.shift=function(){return yt(this,1)},it.prototype.merge=function(){return bt(this,void 0,arguments)},it.prototype.mergeWith=function(t){var n=e.call(arguments,1);return bt(this,t,n)},it.prototype.mergeDeep=function(){return bt(this,Qe,arguments)},it.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return bt(this,Xe(t),n)},it.prototype.setSize=function(e){return yt(this,0,e)},it.prototype.slice=function(e,t){var n=this.size;return S(e,t,n)?this:yt(this,O(e,n),T(t,n))},it.prototype.__iterator=function(e,t){var n=0,r=ft(this,t);return new j((function(){var t=r();return t===dt?{value:void 0,done:!0}:D(e,n++,t)}))},it.prototype.__iterate=function(e,t){for(var n,r=0,i=ft(this,t);(n=i())!==dt&&!1!==e(n,r++,this););return r},it.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?pt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},it.isList=ot;var at="@@__IMMUTABLE_LIST__@@",st=it.prototype;function lt(e,t){this.array=e,this.ownerID=t}st[at]=!0,st.delete=st.remove,st.setIn=je.setIn,st.deleteIn=st.removeIn=je.removeIn,st.update=je.update,st.updateIn=je.updateIn,st.mergeIn=je.mergeIn,st.mergeDeepIn=je.mergeDeepIn,st.withMutations=je.withMutations,st.asMutable=je.asMutable,st.asImmutable=je.asImmutable,st.wasAltered=je.wasAltered,lt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&31;if(r>=this.array.length)return new lt([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-5,n))===a&&o)return this}if(o&&!i)return this;var s=gt(this,e);if(!o)for(var l=0;l<r;l++)s.array[l]=void 0;return i&&(s.array[r]=i),s},lt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&31;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-5,n))===o&&i===this.array.length-1)return this}var a=gt(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var ut,ct,dt={};function ft(e,t){var n=e._origin,r=e._capacity,i=_t(r),o=e._tail;return a(e._root,e._level,0);function a(e,s,l){return 0===s?function(e,a){var s=a===i?o&&o.array:e&&e.array,l=a>n?0:n-a,u=r-a;return u>32&&(u=32),function(){if(l===u)return dt;var e=t?--u:l++;return s&&s[e]}}(e,l):function(e,i,o){var s,l=e&&e.array,u=o>n?0:n-o>>i,c=1+(r-o>>i);return c>32&&(c=32),function(){for(;;){if(s){var e=s();if(e!==dt)return e;s=null}if(u===c)return dt;var n=t?--c:u++;s=a(l&&l[n],i-5,o+(n<<i))}}}(e,s,l)}}function pt(e,t,n,r,i,o,a){var s=Object.create(st);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function ht(){return ut||(ut=pt(0,0,5))}function mt(e,t,n,r,i,o){var a,s=r>>>n&31,l=e&&s<e.array.length;if(!l&&void 0===i)return e;if(n>0){var u=e&&e.array[s],c=mt(u,t,n-5,r,i,o);return c===u?e:((a=gt(e,t)).array[s]=c,a)}return l&&e.array[s]===i?e:(b(o),a=gt(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function gt(e,t){return t&&e&&t===e.ownerID?e:new lt(e?e.array.slice():[],t)}function vt(e,t){if(t>=_t(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&31],r-=5;return n}}function yt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new _,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new lt(u&&u.array.length?[void 0,u]:[],r),c+=1<<(l+=5);c&&(a+=c,i+=c,s+=c,o+=c);for(var d=_t(o),f=_t(s);f>=1<<l+5;)u=new lt(u&&u.array.length?[u]:[],r),l+=5;var p=e._tail,h=f<d?vt(e,s-1):f>d?new lt([],r):p;if(p&&f>d&&a<o&&p.array.length){for(var m=u=gt(u,r),g=l;g>5;g-=5){var v=d>>>g&31;m=m.array[v]=gt(m.array[v],r)}m.array[d>>>5&31]=p}if(s<o&&(h=h&&h.removeAfter(r,0,s)),a>=f)a-=f,s-=f,l=5,u=null,h=h&&h.removeBefore(r,0,a);else if(a>i||f<d){for(c=0;u;){var y=a>>>l&31;if(y!==f>>>l&31)break;y&&(c+=(1<<l)*y),l-=5,u=u.array[y]}u&&a>i&&(u=u.removeBefore(r,l,a-c)),u&&f<d&&(u=u.removeAfter(r,l,f-c)),c&&(a-=c,s-=c)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=l,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):pt(a,s,l,u,h)}function bt(e,t,n){for(var r=[],o=0,s=0;s<n.length;s++){var l=n[s],u=i(l);u.size>o&&(o=u.size),a(l)||(u=u.map((function(e){return re(e)}))),r.push(u)}return o>e.size&&(e=e.setSize(o)),Je(e,t,r)}function _t(e){return e<32?0:e-1>>>5<<5}function wt(e){return null==e?Et():xt(e)?e:Et().withMutations((function(t){var n=r(e);Ae(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function xt(e){return Re(e)&&c(e)}function kt(e,t,n,r){var i=Object.create(wt.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function Et(){return ct||(ct=kt(We(),ht()))}function St(e,t,n){var r,i,o=e._map,a=e._list,s=o.get(t),l=void 0!==s;if(n===m){if(!l)return e;a.size>=32&&a.size>=2*o.size?(r=(i=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):kt(r,i)}function Ot(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Tt(e){this._iter=e,this.size=e.size}function Ct(e){this._iter=e,this.size=e.size}function At(e){this._iter=e,this.size=e.size}function Pt(e){var t=$t(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Gt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new j((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Rt(e,t,n){var r=$t(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,m);return o===m?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate((function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(2,i);return new j((function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return D(r,s,t.call(n,a[1],s,e),i)}))},r}function Mt(e,t){var n=$t(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Pt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Gt,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function It(e,t,n,r){var i=$t(e);return r&&(i.has=function(r){var i=e.get(r,m);return i!==m&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,m);return o!==m&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate((function(e,o,l){if(t.call(n,e,o,l))return s++,i(e,r?o:s-1,a)}),o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(2,o),s=0;return new j((function(){for(;;){var o=a.next();if(o.done)return o;var l=o.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return D(i,r?u:s++,c,o)}}))},i}function jt(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),S(t,n,i))return e;var o=O(t,i),a=T(n,i);if(o!=o||a!=a)return jt(e.toSeq().cacheResult(),t,n,r);var s,l=a-o;l==l&&(s=l<0?0:l);var u=$t(e);return u.size=0===s?s:e.size&&s||void 0,!r&&Q(e)&&s>=0&&(u.get=function(t,n){return(t=k(this,t))>=0&&t<s?e.get(t+o,n):n}),u.__iterateUncached=function(t,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,l=!0,u=0;return e.__iterate((function(e,n){if(!l||!(l=a++<o))return u++,!1!==t(e,r?n:u-1,i)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var i=0!==s&&e.__iterator(t,n),a=0,l=0;return new j((function(){for(;a++<o;)i.next();if(++l>s)return{value:void 0,done:!0};var e=i.next();return r||1===t?e:D(t,l-1,0===t?void 0:e.value[1],e)}))},u}function Dt(e,t,n,r){var i=$t(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,l=0;return e.__iterate((function(e,o,u){if(!s||!(s=t.call(n,e,o,u)))return l++,i(e,r?o:l-1,a)})),l},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(2,o),l=!0,u=0;return new j((function(){var e,o,c;do{if((e=s.next()).done)return r||1===i?e:D(i,u++,0===i?void 0:e.value[1],e);var d=e.value;o=d[0],c=d[1],l&&(l=t.call(n,c,o,a))}while(l);return 2===i?e:D(i,o,c,e)}))},i}function Lt(e,t){var n=s(e),i=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?J(e):Z(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===i.length)return e;if(1===i.length){var o=i[0];if(o===e||n&&s(o)||l(e)&&l(o))return o}var u=new $(i);return n?u=u.toKeyedSeq():l(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=i.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function Nt(e,t,n){var r=$t(e);return r.__iterateUncached=function(r,i){var o=0,s=!1;return function e(l,u){var c=this;l.__iterate((function(i,l){return(!t||u<t)&&a(i)?e(i,u+1):!1===r(i,n?l:o++,c)&&(s=!0),!s}),i)}(e,0),o},r.__iteratorUncached=function(r,i){var o=e.__iterator(r,i),s=[],l=0;return new j((function(){for(;o;){var e=o.next();if(!1===e.done){var u=e.value;if(2===r&&(u=u[1]),t&&!(s.length<t)||!a(u))return n?e:D(r,l++,u,e);s.push(o),o=u.__iterator(r,i)}else o=s.pop()}return{value:void 0,done:!0}}))},r}function Ft(e,t,n){t||(t=Kt);var r=s(e),i=0,o=e.toSeq().map((function(t,r){return[r,t,i++,n?n(t,r,e):t]})).toArray();return o.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?H(o):l(e)?W(o):V(o)}function Bt(e,t,n){if(t||(t=Kt),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return zt(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return zt(t,e,n)?n:e}))}function zt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Ut(e,t,r){var i=$t(e);return i.size=new $(r).map((function(e){return e.size})).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map((function(e){return e=n(e),B(i?e.reverse():e)})),a=0,s=!1;return new j((function(){var n;return s||(n=o.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:D(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function qt(e,t){return Q(e)?t:e.constructor(t)}function Ht(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Wt(e){return Ae(e.size),x(e)}function Vt(e){return s(e)?r:l(e)?i:o}function $t(e){return Object.create((s(e)?H:l(e)?W:V).prototype)}function Gt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function Kt(e,t){return e>t?1:e<t?-1:0}function Yt(e){var t=B(e);if(!t){if(!U(e))throw new TypeError("Expected iterable or array-like: "+e);t=B(n(e))}return t}function Qt(e,t){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var a=Object.keys(e);!function(e,t){try{t.forEach(en.bind(void 0,e))}catch(e){}}(i,a),i.size=a.length,i._name=t,i._keys=a,i._defaultValues=e}this._map=Pe(o)},i=r.prototype=Object.create(Xt);return i.constructor=r,r}t(wt,Pe),wt.of=function(){return this(arguments)},wt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},wt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},wt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Et()},wt.prototype.set=function(e,t){return St(this,e,t)},wt.prototype.remove=function(e){return St(this,e,m)},wt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},wt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},wt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},wt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?kt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},wt.isOrderedMap=xt,wt.prototype[h]=!0,wt.prototype.delete=wt.prototype.remove,t(Ot,H),Ot.prototype.get=function(e,t){return this._iter.get(e,t)},Ot.prototype.has=function(e){return this._iter.has(e)},Ot.prototype.valueSeq=function(){return this._iter.valueSeq()},Ot.prototype.reverse=function(){var e=this,t=Mt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Ot.prototype.map=function(e,t){var n=this,r=Rt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Ot.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Wt(this):0,function(i){return e(i,t?--n:n++,r)}),t)},Ot.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(1,t),r=t?Wt(this):0;return new j((function(){var i=n.next();return i.done?i:D(e,t?--r:r++,i.value,i)}))},Ot.prototype[h]=!0,t(Tt,W),Tt.prototype.includes=function(e){return this._iter.includes(e)},Tt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Tt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t),r=0;return new j((function(){var t=n.next();return t.done?t:D(e,r++,t.value,t)}))},t(Ct,V),Ct.prototype.has=function(e){return this._iter.includes(e)},Ct.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Ct.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new j((function(){var t=n.next();return t.done?t:D(e,t.value,t.value,t)}))},t(At,H),At.prototype.entrySeq=function(){return this._iter.toSeq()},At.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Ht(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},At.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new j((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ht(r);var i=a(r);return D(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}}))},Tt.prototype.cacheResult=Ot.prototype.cacheResult=Ct.prototype.cacheResult=At.prototype.cacheResult=Gt,t(Qt,fe),Qt.prototype.toString=function(){return this.__toString(Zt(this)+" {","}")},Qt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Qt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Qt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Jt(this,We()))},Qt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Zt(this));if(this._map&&!this._map.has(e)&&t===this._defaultValues[e])return this;var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Jt(this,n)},Qt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Jt(this,t)},Qt.prototype.wasAltered=function(){return this._map.wasAltered()},Qt.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Qt.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Qt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Jt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Xt=Qt.prototype;function Jt(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Zt(e){return e._name||e.constructor.name||"Record"}function en(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){ue(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function tn(e){return null==e?un():nn(e)&&!c(e)?e:un().withMutations((function(t){var n=o(e);Ae(n.size),n.forEach((function(e){return t.add(e)}))}))}function nn(e){return!(!e||!e[on])}Xt.delete=Xt.remove,Xt.deleteIn=Xt.removeIn=je.removeIn,Xt.merge=je.merge,Xt.mergeWith=je.mergeWith,Xt.mergeIn=je.mergeIn,Xt.mergeDeep=je.mergeDeep,Xt.mergeDeepWith=je.mergeDeepWith,Xt.mergeDeepIn=je.mergeDeepIn,Xt.setIn=je.setIn,Xt.update=je.update,Xt.updateIn=je.updateIn,Xt.withMutations=je.withMutations,Xt.asMutable=je.asMutable,Xt.asImmutable=je.asImmutable,t(tn,he),tn.of=function(){return this(arguments)},tn.fromKeys=function(e){return this(r(e).keySeq())},tn.prototype.toString=function(){return this.__toString("Set {","}")},tn.prototype.has=function(e){return this._map.has(e)},tn.prototype.add=function(e){return sn(this,this._map.set(e,!0))},tn.prototype.remove=function(e){return sn(this,this._map.remove(e))},tn.prototype.clear=function(){return sn(this,this._map.clear())},tn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)o(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},tn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return o(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},tn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return o(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},tn.prototype.merge=function(){return this.union.apply(this,arguments)},tn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},tn.prototype.sort=function(e){return cn(Ft(this,e))},tn.prototype.sortBy=function(e,t){return cn(Ft(this,t,e))},tn.prototype.wasAltered=function(){return this._map.wasAltered()},tn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},tn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},tn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},tn.isSet=nn;var rn,on="@@__IMMUTABLE_SET__@@",an=tn.prototype;function sn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function ln(e,t){var n=Object.create(an);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function un(){return rn||(rn=ln(We()))}function cn(e){return null==e?mn():dn(e)?e:mn().withMutations((function(t){var n=o(e);Ae(n.size),n.forEach((function(e){return t.add(e)}))}))}function dn(e){return nn(e)&&c(e)}an[on]=!0,an.delete=an.remove,an.mergeDeep=an.merge,an.mergeDeepWith=an.mergeWith,an.withMutations=je.withMutations,an.asMutable=je.asMutable,an.asImmutable=je.asImmutable,an.__empty=un,an.__make=ln,t(cn,tn),cn.of=function(){return this(arguments)},cn.fromKeys=function(e){return this(r(e).keySeq())},cn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},cn.isOrderedSet=dn;var fn,pn=cn.prototype;function hn(e,t){var n=Object.create(pn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function mn(){return fn||(fn=hn(Et()))}function gn(e){return null==e?xn():vn(e)?e:xn().unshiftAll(e)}function vn(e){return!(!e||!e[bn])}pn[h]=!0,pn.__empty=mn,pn.__make=hn,t(gn,pe),gn.of=function(){return this(arguments)},gn.prototype.toString=function(){return this.__toString("Stack [","]")},gn.prototype.get=function(e,t){var n=this._head;for(e=k(this,e);n&&e--;)n=n.next;return n?n.value:t},gn.prototype.peek=function(){return this._head&&this._head.value},gn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):wn(e,t)},gn.prototype.pushAll=function(e){if(0===(e=i(e)).size)return this;Ae(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):wn(t,n)},gn.prototype.pop=function(){return this.slice(1)},gn.prototype.unshift=function(){return this.push.apply(this,arguments)},gn.prototype.unshiftAll=function(e){return this.pushAll(e)},gn.prototype.shift=function(){return this.pop.apply(this,arguments)},gn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):xn()},gn.prototype.slice=function(e,t){if(S(e,t,this.size))return this;var n=O(e,this.size);if(T(t,this.size)!==this.size)return pe.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):wn(r,i)},gn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?wn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},gn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},gn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new j((function(){if(r){var t=r.value;return r=r.next,D(e,n++,t)}return{value:void 0,done:!0}}))},gn.isStack=vn;var yn,bn="@@__IMMUTABLE_STACK__@@",_n=gn.prototype;function wn(e,t,n,r){var i=Object.create(_n);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function xn(){return yn||(yn=wn(0))}function kn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}_n[bn]=!0,_n.withMutations=je.withMutations,_n.asMutable=je.asMutable,_n.asImmutable=je.asImmutable,_n.wasAltered=je.wasAltered,n.Iterator=j,kn(n,{toArray:function(){Ae(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Tt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Ot(this,!0)},toMap:function(){return Pe(this.toKeyedSeq())},toObject:function(){Ae(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return wt(this.toKeyedSeq())},toOrderedSet:function(){return cn(s(this)?this.valueSeq():this)},toSet:function(){return tn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Ct(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return gn(s(this)?this.valueSeq():this)},toList:function(){return it(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return qt(this,Lt(this,t))},includes:function(e){return this.some((function(t){return ae(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Ae(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1})),n},filter:function(e,t){return qt(this,It(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Ae(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ae(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return qt(this,Rt(this,e,t))},reduce:function(e,t,n){var r,i;return Ae(this.size),arguments.length<2?i=!0:r=t,this.__iterate((function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return qt(this,Mt(this,!0))},slice:function(e,t){return qt(this,jt(this,e,t,!0))},some:function(e,t){return!this.every(Cn(e),t)},sort:function(e){return qt(this,Ft(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return x(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Pe().asMutable();return e.__iterate((function(i,o){r.update(t.call(n,i,o,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return se(this,e)},entrySeq:function(){var e=this;if(e._cache)return new $(e._cache);var t=e.toSeq().map(Tn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Cn(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(E)},flatMap:function(e,t){return qt(this,function(e,t,n){var r=Vt(e);return e.toSeq().map((function(i,o){return r(t.call(n,i,o,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return qt(this,Nt(this,e,!0))},fromEntrySeq:function(){return new At(this)},get:function(e,t){return this.find((function(t,n){return ae(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,i=Yt(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,m):m)===m)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),i=(c(e)?wt():Pe()).asMutable();e.__iterate((function(o,a){i.update(t.call(n,o,a,e),(function(e){return(e=e||[]).push(r?[a,o]:o),e}))}));var o=Vt(e);return i.map((function(t){return qt(e,o(t))}))}(this,e,t)},has:function(e){return this.get(e,m)!==m},hasIn:function(e){return this.getIn(e,m)!==m},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return ae(t,e)}))},keySeq:function(){return this.toSeq().map(On).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Bt(this,e)},maxBy:function(e,t){return Bt(this,t,e)},min:function(e){return Bt(this,e?An(e):Mn)},minBy:function(e,t){return Bt(this,t?An(t):Mn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return qt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return qt(this,Dt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Cn(e),t)},sortBy:function(e,t){return qt(this,Ft(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return qt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return qt(this,function(e,t,n){var r=$t(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate((function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)})),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(2,i),s=!0;return new j((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,l=i[0],u=i[1];return t.call(n,u,l,o)?2===r?e:D(r,l,u,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Cn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=c(e),n=s(e),r=t?1:0;return function(e,t){return t=me(t,3432918353),t=me(t<<15|t>>>-15,461845907),t=me(t<<13|t>>>-13,5),t=me((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ge((t=me(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+In(ve(e),ve(t))|0}:function(e,t){r=r+In(ve(e),ve(t))|0}:t?function(e){r=31*r+ve(e)|0}:function(e){r=r+ve(e)|0}),r)}(this))}});var En=n.prototype;En[d]=!0,En[I]=En.values,En.__toJS=En.toArray,En.__toStringMapper=Pn,En.inspect=En.toSource=function(){return this.toString()},En.chain=En.flatMap,En.contains=En.includes,kn(r,{flip:function(){return qt(this,Pt(this))},mapEntries:function(e,t){var n=this,r=0;return qt(this,this.toSeq().map((function(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return qt(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var Sn=r.prototype;function On(e,t){return t}function Tn(e,t){return[t,e]}function Cn(e){return function(){return!e.apply(this,arguments)}}function An(e){return function(){return-e.apply(this,arguments)}}function Pn(e){return"string"==typeof e?JSON.stringify(e):String(e)}function Rn(){return w(arguments)}function Mn(e,t){return e<t?1:e>t?-1:0}function In(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Sn[f]=!0,Sn[I]=En.entries,Sn.__toJS=En.toObject,Sn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Pn(e)},kn(i,{toKeyedSeq:function(){return new Ot(this,!1)},filter:function(e,t){return qt(this,It(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return qt(this,Mt(this,!1))},slice:function(e,t){return qt(this,jt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=O(e,e<0?this.count():this.size);var r=this.slice(0,e);return qt(this,1===n?r:r.concat(w(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return qt(this,Nt(this,e,!1))},get:function(e,t){return(e=k(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=k(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return qt(this,function(e,t){var n=$t(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate((function(e,r){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)}),r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(1,r),a=0;return new j((function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?D(n,a++,t):D(n,a++,i.value,i)}))},n}(this,e))},interleave:function(){var e=[this].concat(w(arguments)),t=Ut(this.toSeq(),W.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),qt(this,n)},keySeq:function(){return ce(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return qt(this,Dt(this,e,t,!1))},zip:function(){var e=[this].concat(w(arguments));return qt(this,Ut(this,Rn,e))},zipWith:function(e){var t=w(arguments);return t[0]=this,qt(this,Ut(this,e,t))}}),i.prototype[p]=!0,i.prototype[h]=!0,kn(o,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=En.includes,o.prototype.contains=o.prototype.includes,kn(H,r.prototype),kn(W,i.prototype),kn(V,o.prototype),kn(fe,r.prototype),kn(pe,i.prototype),kn(he,o.prototype),{Iterable:n,Seq:q,Collection:de,Map:Pe,OrderedMap:wt,List:it,Stack:gn,Set:tn,OrderedSet:cn,Record:Qt,Range:ce,Repeat:le,is:ae,fromJS:re}}()},function(e,t,n){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),d=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),g=/Android/.test(e),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),_=/win/i.test(t),w=d&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(d=!1,l=!0);var x=y&&(u||d&&(null==w||w<12.11)),k=n||a&&s>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,O=function(e,t){var n=e.className,r=E(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function T(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function C(e,t){return T(e).appendChild(t)}function A(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function P(e,t,n,r){var i=A(e,t,n,r);return i.setAttribute("role","presentation"),i}function R(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function M(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function I(e,t){var n=e.className;E(t).test(n)||(e.className+=(n?" ":"")+t)}function j(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!E(n[r]).test(t)&&(t+=" "+n[r]);return t}S=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var D=function(e){e.select()};function L(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function N(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function F(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?D=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(D=function(e){try{e.select()}catch(e){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=L(this.onTimeout,this)};function z(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}B.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},B.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var U={toString:function(){return"CodeMirror.Pass"}},q={scroll:!1},H={origin:"*mouse"},W={origin:"+move"};function V(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var $=[""];function G(e){for(;$.length<=e;)$.push(K($)+" ");return $[e]}function K(e){return e[e.length-1]}function Y(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function Q(){}function X(e,t){var n;return Object.create?n=Object.create(e):(Q.prototype=e,n=new Q),t&&N(t,n),n}var J=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Z(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||J.test(e))}function ee(e,t){return t?!!(t.source.indexOf("\\w")>-1&&Z(e))||t.test(e):Z(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function re(e){return e.charCodeAt(0)>=768&&ne.test(e)}function ie(e,t,n){for(;(n<0?t>0:t<e.length)&&re(e.charAt(t));)t+=n;return t}function oe(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ae=null;function se(e,t,n){var r;ae=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ae=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ae=i)}return null!=r?r:ae}var le=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var l="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var u,c=a.length,d=[],f=0;f<c;++f)d.push((u=a.charCodeAt(f))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":8204==u?"b":"L");for(var p=0,h=l;p<c;++p){var m=d[p];"m"==m?d[p]=h:h=m}for(var g=0,v=l;g<c;++g){var y=d[g];"1"==y&&"r"==v?d[g]="n":n.test(y)&&(v=y,"r"==y&&(d[g]="R"))}for(var b=1,_=d[0];b<c-1;++b){var w=d[b];"+"==w&&"1"==_&&"1"==d[b+1]?d[b]="1":","!=w||_!=d[b+1]||"1"!=_&&"n"!=_||(d[b]=_),_=w}for(var x=0;x<c;++x){var k=d[x];if(","==k)d[x]="N";else if("%"==k){var E=void 0;for(E=x+1;E<c&&"%"==d[E];++E);for(var S=x&&"!"==d[x-1]||E<c&&"1"==d[E]?"1":"N",O=x;O<E;++O)d[O]=S;x=E-1}}for(var T=0,C=l;T<c;++T){var A=d[T];"L"==C&&"1"==A?d[T]="L":n.test(A)&&(C=A)}for(var P=0;P<c;++P)if(t.test(d[P])){var R=void 0;for(R=P+1;R<c&&t.test(d[R]);++R);for(var M="L"==(P?d[P-1]:l),I=M==("L"==(R<c?d[R]:l))?M?"L":"R":l,j=P;j<R;++j)d[j]=I;P=R-1}for(var D,L=[],N=0;N<c;)if(r.test(d[N])){var F=N;for(++N;N<c&&r.test(d[N]);++N);L.push(new o(0,F,N))}else{var B=N,z=L.length,U="rtl"==s?1:0;for(++N;N<c&&"L"!=d[N];++N);for(var q=B;q<N;)if(i.test(d[q])){B<q&&(L.splice(z,0,new o(1,B,q)),z+=U);var H=q;for(++q;q<N&&i.test(d[q]);++q);L.splice(z,0,new o(2,H,q)),z+=U,B=q}else++q;B<N&&L.splice(z,0,new o(1,B,N))}return"ltr"==s&&(1==L[0].level&&(D=a.match(/^\s+/))&&(L[0].from=D[0].length,L.unshift(new o(0,0,D[0].length))),1==K(L).level&&(D=a.match(/\s+$/))&&(K(L).to-=D[0].length,L.push(new o(0,c-D[0].length,c)))),"rtl"==s?L.reverse():L}}();function ue(e,t){var n=e.order;return null==n&&(n=e.order=le(e.text,t)),n}var ce=[],de=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||ce).concat(n)}};function fe(e,t){return e._handlers&&e._handlers[t]||ce}function pe(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=z(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function he(e,t){var n=fe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function me(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),he(e,n||t.type,e,t),we(t)||t.codemirrorIgnore}function ge(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==z(n,t[r])&&n.push(t[r])}function ve(e,t){return fe(e,t).length>0}function ye(e){e.prototype.on=function(e,t){de(this,e,t)},e.prototype.off=function(e,t){pe(this,e,t)}}function be(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function _e(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function we(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function xe(e){be(e),_e(e)}function ke(e){return e.target||e.srcElement}function Ee(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Se,Oe,Te=function(){if(a&&s<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function Ce(e){if(null==Se){var t=A("span","​");C(e,A("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Se=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Se?A("span","​"):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ae(e){if(null!=Oe)return Oe;var t=C(e,document.createTextNode("AخA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return T(e),!(!n||n.left==n.right)&&(Oe=r.right-n.right<3)}var Pe,Re=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Me=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ie="oncopy"in(Pe=A("div"))||(Pe.setAttribute("oncopy","return;"),"function"==typeof Pe.oncopy),je=null,De={},Le={};function Ne(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),De[e]=t}function Fe(e){if("string"==typeof e&&Le.hasOwnProperty(e))e=Le[e];else if(e&&"string"==typeof e.name&&Le.hasOwnProperty(e.name)){var t=Le[e.name];"string"==typeof t&&(t={name:t}),(e=X(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Fe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Fe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Be(e,t){t=Fe(t);var n=De[t.name];if(!n)return Be(e,"text/plain");var r=n(e,t);if(ze.hasOwnProperty(t.name)){var i=ze[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var ze={};function Ue(e,t){N(t,ze.hasOwnProperty(e)?ze[e]:ze[e]={})}function qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function He(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function We(e,t,n){return!e.startState||e.startState(t,n)}var Ve=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function $e(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Ge(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Ke(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function Ye(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function Qe(e){if(null==e.parent)return null;for(var t=e.parent,n=z(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function Xe(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function Je(e,t){return t>=e.first&&t<e.first+e.size}function Ze(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function et(e,t,n){if(void 0===n&&(n=null),!(this instanceof et))return new et(e,t,n);this.line=e,this.ch=t,this.sticky=n}function tt(e,t){return e.line-t.line||e.ch-t.ch}function nt(e,t){return e.sticky==t.sticky&&0==tt(e,t)}function rt(e){return et(e.line,e.ch)}function it(e,t){return tt(e,t)<0?t:e}function ot(e,t){return tt(e,t)<0?e:t}function at(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function st(e,t){if(t.line<e.first)return et(e.first,0);var n=e.first+e.size-1;return t.line>n?et(n,$e(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,$e(e,t.line).text.length)}function lt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=st(e,t[r]);return n}Ve.prototype.eol=function(){return this.pos>=this.string.length},Ve.prototype.sol=function(){return this.pos==this.lineStart},Ve.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ve.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ve.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ve.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ve.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ve.prototype.skipToEnd=function(){this.pos=this.string.length},Ve.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ve.prototype.backUp=function(e){this.pos-=e},Ve.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=F(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?F(this.string,this.lineStart,this.tabSize):0)},Ve.prototype.indentation=function(){return F(this.string,null,this.tabSize)-(this.lineStart?F(this.string,this.lineStart,this.tabSize):0)},Ve.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ve.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ve.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ve.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ve.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ut=function(e,t){this.state=e,this.lookAhead=t},ct=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function dt(e,t,n,r){var i=[e.state.modeGen],o={};_t(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,_t(e,t.text,s.mode,n,(function(e,t){for(var n=l;u<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function ft(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=pt(e,Qe(t)),i=t.text.length>e.options.maxHighlightLength&&qe(e.doc.mode,r.state),o=dt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function pt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ct(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=$e(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof ut?u.lookAhead:0)<=o.modeFrontier))return s;var c=F(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}(e,t,n),a=o>r.first&&$e(r,o-1).stateAfter,s=a?ct.fromSaved(r,a,o):new ct(r,We(r.mode),o);return r.iter(o,t,(function(n){ht(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function ht(e,t,n,r){var i=e.doc.mode,o=new Ve(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&mt(i,n.state);!o.eol();)gt(i,o,n.state),o.start=o.pos}function mt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=He(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function gt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=He(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ct.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ct.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ct.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ct.fromSaved=function(e,t,n){return t instanceof ut?new ct(e,qe(e.mode,t.state),n,t.lookAhead):new ct(e,qe(e.mode,t),n)},ct.prototype.save=function(e){var t=!1!==e?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ut(t,this.maxLookAhead):t};var vt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function yt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=$e(a,(t=st(a,t)).line),u=pt(e,t.line,n),c=new Ve(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=gt(s,c,u.state),r&&o.push(new vt(c,i,qe(a.mode,u.state)));return r?o:new vt(c,i,u.state)}function bt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function _t(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,u=0,c=null,d=new Ve(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];for(""==t&&bt(mt(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&ht(e,t,r,d.pos),d.pos=t.length,l=null):l=bt(gt(n,d,r.state,f),o),f){var p=f[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||c!=l){for(;u<d.start;)i(u=Math.min(d.start,u+5e3),c);c=l}d.start=d.pos}for(;u<d.pos;){var h=Math.min(d.pos,u+5e3);i(h,c),u=h}}var wt=!1,xt=!1;function kt(e,t,n){this.marker=e,this.from=t,this.to=n}function Et(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function St(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Ot(e,t){if(t.full)return null;var n=Je(e,t.from.line)&&$e(e,t.from.line).markedSpans,r=Je(e,t.to.line)&&$e(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==tt(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new kt(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new kt(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),u=1==t.text.length,c=K(t.text).length+(u?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(null==f.to){var p=Et(l,f.marker);p?u&&(f.to=null==p.to?null:p.to+c):f.to=i}}if(l)for(var h=0;h<l.length;++h){var m=l[h];null!=m.to&&(m.to+=c),null==m.from?Et(s,m.marker)||(m.from=c,u&&(s||(s=[])).push(m)):(m.from+=c,u&&(s||(s=[])).push(m))}s&&(s=Tt(s)),l&&l!=s&&(l=Tt(l));var g=[s];if(!u){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new kt(s[b].marker,null,null));for(var _=0;_<y;++_)g.push(v);g.push(l)}return g}function Tt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Ct(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function At(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Pt(e){return e.inclusiveLeft?-1:0}function Rt(e){return e.inclusiveRight?1:0}function Mt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=tt(r.from,i.from)||Pt(e)-Pt(t);if(o)return-o;var a=tt(r.to,i.to)||Rt(e)-Rt(t);return a||t.id-e.id}function It(e,t){var n,r=xt&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Mt(n,i.marker)<0)&&(n=i.marker);return n}function jt(e){return It(e,!0)}function Dt(e){return It(e,!1)}function Lt(e,t){var n,r=xt&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Mt(n,o.marker)<0)&&(n=o.marker)}return n}function Nt(e,t,n,r,i){var o=$e(e,t),a=xt&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=tt(u.from,n)||Pt(l.marker)-Pt(i),d=tt(u.to,r)||Rt(l.marker)-Rt(i);if(!(c>=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?tt(u.to,n)>=0:tt(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?tt(u.from,r)<=0:tt(u.from,r)<0)))return!0}}}function Ft(e){for(var t;t=jt(e);)e=t.find(-1,!0).line;return e}function Bt(e,t){var n=$e(e,t),r=Ft(n);return n==r?t:Qe(r)}function zt(e,t){if(t>e.lastLine())return t;var n,r=$e(e,t);if(!Ut(e,r))return t;for(;n=Dt(r);)r=n.find(1,!0).line;return Qe(r)+1}function Ut(e,t){var n=xt&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&qt(e,t,r))return!0}}function qt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return qt(e,r.line,Et(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&qt(e,t,i))return!0}function Ht(e){for(var t=0,n=(e=Ft(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function Wt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=jt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Dt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Vt(e){var t=e.display,n=e.doc;t.maxLine=$e(n,n.first),t.maxLineLength=Wt(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=Wt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var $t=function(e,t,n){this.text=e,At(this,t),this.height=n?n(this):1};function Gt(e){e.parent=null,Ct(e)}$t.prototype.lineNo=function(){return Qe(this)},ye($t);var Kt={},Yt={};function Qt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Yt:Kt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Xt(e,t){var n=P("span",null,null,l?"padding-right: .1px":null),r={pre:P("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=Zt,Ae(e.display.measure)&&(a=ue(o,e.doc.direction))&&(r.addToken=en(r.addToken,a)),r.map=[],nn(o,r,ft(e,o,t!=e.display.externalMeasured&&Qe(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=j(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=j(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ce(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return he(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=j(r.pre.className,r.textClass||"")),r}function Jt(e){var t=A("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Zt(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){u=document.createDocumentFragment();for(var p=0;;){d.lastIndex=p;var h=d.exec(t),m=h?h.index-p:t.length-p;if(m){var g=document.createTextNode(c.slice(p,p+m));a&&s<9?u.appendChild(A("span",[g])):u.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=u.appendChild(A("span",G(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=u.appendChild(A("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?u.appendChild(A("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||f||o){var _=n||"";r&&(_+=r),i&&(_+=i);var w=A("span",[u],_,o);if(l)for(var x in l)l.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&w.setAttribute(x,l[x]);return e.content.appendChild(w)}e.content.appendChild(u)}}function en(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var d=void 0,f=0;f<t.length&&!((d=t[f]).to>u&&d.from<=u);f++);if(d.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-u),i,o,null,s,l),o=null,r=r.slice(d.to-u),u=d.to}}}function tn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,d,f,p=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=u=c=s="",f=null,d=null,v=1/0;for(var y=[],b=void 0,_=0;_<r.length;++_){var w=r[_],x=w.marker;if("bookmark"==x.type&&w.from==h&&x.widgetNode)y.push(x);else if(w.from<=h&&(null==w.to||w.to>h||x.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&v>w.to&&(v=w.to,u=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==h&&(c+=" "+x.startStyle),x.endStyle&&w.to==v&&(b||(b=[])).push(x.endStyle,w.to),x.title&&((f||(f={})).title=x.title),x.attributes)for(var k in x.attributes)(f||(f={}))[k]=x.attributes[k];x.collapsed&&(!d||Mt(d.marker,x)<0)&&(d=w)}else w.from>h&&v>w.from&&(v=w.from)}if(b)for(var E=0;E<b.length;E+=2)b[E+1]==v&&(u+=" "+b[E]);if(!d||d.from==h)for(var S=0;S<y.length;++S)tn(t,0,y[S]);if(d&&(d.from||0)==h){if(tn(t,(null==d.to?p+1:d.to)-h,d.marker,null==d.from),null==d.to)return;d.to==h&&(d=!1)}}if(h>=p)break;for(var O=Math.min(p,v);;){if(g){var T=h+g.length;if(!d){var C=T>O?g.slice(0,O-h):g;t.addToken(t,C,a?a+l:l,c,h+C.length==v?u:"",s,f)}if(T>=O){g=g.slice(O-h),h=O;break}h=T,c=""}g=i.slice(o,o=n[m++]),a=Qt(n[m++],t.cm.options)}}else for(var A=1;A<n.length;A+=2)t.addToken(t,i.slice(o,o=n[A]),Qt(n[A+1],t.cm.options))}function rn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Dt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?Qe(K(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ut(e,t)}function on(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new rn(e.doc,$e(e.doc,o),o);r=o+a.size,i.push(a)}return i}var an=null,sn=null;function ln(e,t){var n=fe(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);an?r=an.delayedCallbacks:sn?r=sn:(r=sn=[],setTimeout(un,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function un(){var e=sn;sn=null;for(var t=0;t<e.length;++t)e[t]()}function cn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?pn(e,t):"gutter"==o?mn(e,t,n,r):"class"==o?hn(e,t):"widget"==o&&gn(e,t,r)}t.changes=null}function dn(e){return e.node==e.text&&(e.node=A("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function fn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Xt(e,t)}function pn(e,t){var n=t.text.className,r=fn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,hn(e,t)):n&&(t.text.className=n)}function hn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=dn(t);t.background=r.insertBefore(A("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?dn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function mn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=dn(t);t.gutterBackground=A("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=dn(t),s=t.gutter=A("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(A("div",Ze(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var u=e.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(A("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function gn(e,t,n){t.alignable&&(t.alignable=null);for(var r=E("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);yn(e,t,n)}function vn(e,t,n,r){var i=fn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),hn(e,t),mn(e,t,n,r),yn(e,t,r),t.node}function yn(e,t,n){if(bn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)bn(e,t.rest[r],t,n,!1)}function bn(e,t,n,r,i){if(t.widgets)for(var o=dn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],u=A("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),_n(l,u,n,r),e.display.input.setUneditable(u),i&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),ln(l,"redraw")}}function _n(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function wn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!R(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),C(t.display.measure,A("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function xn(e,t){for(var n=ke(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function kn(e){return e.lineSpace.offsetTop}function En(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Sn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=C(e.measure,A("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function On(e){return 50-e.display.nativeBarWidth}function Tn(e){return e.display.scroller.clientWidth-On(e)-e.display.barWidth}function Cn(e){return e.display.scroller.clientHeight-On(e)-e.display.barHeight}function An(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(Qe(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Pn(e,t,n,r){return In(e,Mn(e,t),n,r)}function Rn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[cr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Mn(e,t){var n=Qe(t),r=Rn(e,n);r&&!r.text?r=null:r&&r.changes&&(cn(e,r,n,or(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=Qe(t=Ft(t)),r=e.display.externalMeasured=new rn(e.doc,t,n);r.lineN=n;var i=r.built=Xt(e,r);return r.text=i.pre,C(e.display.lineMeasure,i.pre),r}(e,t));var i=An(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function In(e,t,n,r,i){t.before&&(n=-1);var o,l=n+(r||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,i=r&&Tn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Ln(t.map,n,r),l=o.node,u=o.start,c=o.end,d=o.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){for(;u&&re(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&re(t.line.text.charAt(o.coverStart+c));)++c;if((i=a&&s<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():Nn(S(l,u,c).getClientRects(),r)).left||i.right||0==u)break;c=u,u-=1,d="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=je)return je;var t=C(e,A("span","x")),n=t.getBoundingClientRect(),r=S(t,0,1).getBoundingClientRect();return je=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var p;u>0&&(d=r="right"),i=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+ir(e.display),top:h.top,bottom:h.bottom}:Dn}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var _=b?y[b-1]:0,w=y[b],x={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:_,bottom:w};return i.left||i.right||(x.bogus=!0),e.options.singleCursorHeightPerLine||(x.rtop=m,x.rbottom=g),x}(e,t,n,r)).bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var jn,Dn={left:0,right:0,top:0,bottom:0};function Ln(e,t,n){for(var r,i,o,a,s,l,u=0;u<e.length;u+=3)if(s=e[u],l=e[u+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(u==e.length-3||t==l&&e[u+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function Nn(e,t){var n=Dn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Fn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Bn(e){e.display.externalMeasure=null,T(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Fn(e.display.view[t])}function zn(e){Bn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Un(){return c&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function qn(){return c&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Hn(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=wn(e.widgets[n]));return t}function Wn(e,t,n,r,i){if(!i){var o=Hn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Ht(t);if("local"==r?a+=kn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:qn());var l=s.left+("window"==r?0:Un());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Vn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Un(),i-=qn();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function $n(e,t,n,r,i){return r||(r=$e(e.doc,t.line)),Wn(e,r,Pn(e,r,t.ch,i),n)}function Gn(e,t,n,r,i,o){function a(t,a){var s=In(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Wn(e,r,s,n)}r=r||$e(e.doc,t.line),i||(i=Mn(e,r));var s=ue(r,e.doc.direction),l=t.ch,u=t.sticky;if(l>=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var d=se(s,l,u),f=ae,p=c(l,d,"before"==u);return null!=f&&(p.other=c(l,f,"before"!=u)),p}function Kn(e,t){var n=0;t=st(e.doc,t),e.options.lineWrapping||(n=ir(e.display)*t.ch);var r=$e(e.doc,t.line),i=Ht(r)+kn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Yn(e,t,n,r,i){var o=et(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Qn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Yn(r.first,0,null,-1,-1);var i=Xe(r,n),o=r.first+r.size-1;if(i>o)return Yn(r.first+r.size-1,$e(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=$e(r,i);;){var s=er(e,a,i,t,n),l=Lt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=$e(r,i=u.line)}}function Xn(e,t,n,r){r-=Hn(t);var i=t.text.length,o=oe((function(t){return In(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=oe((function(t){return In(e,n,t).top>r}),o,i)}}function Jn(e,t,n,r){return n||(n=Mn(e,t)),Xn(e,t,n,Wn(e,t,In(e,n,r),"line").top)}function Zn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function er(e,t,n,r,i){i-=Ht(t);var o=Mn(e,t),a=Hn(t),s=0,l=t.text.length,u=!0,c=ue(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?nr:tr)(e,t,n,o,c,r,i);s=(u=1!=d.level)?d.from:d.to-1,l=u?d.to:d.from-1}var f,p,h=null,m=null,g=oe((function(t){var n=In(e,o,t);return n.top+=a,n.bottom+=a,!!Zn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,l),v=!1;if(m){var y=r-m.left<m.right-r,b=y==u;g=h+(b?0:1),p=b?"after":"before",f=y?m.left:m.right}else{u||g!=l&&g!=s||g++,p=0==g?"after":g==t.text.length?"before":In(e,o,g-(u?1:0)).bottom+a<=i==u?"after":"before";var _=Gn(e,et(n,g,p),"line",t,o);f=_.left,v=i<_.top?-1:i>=_.bottom?1:0}return Yn(n,g=ie(t.text,g,1),p,v,r-f)}function tr(e,t,n,r,i,o,a){var s=oe((function(s){var l=i[s],u=1!=l.level;return Zn(Gn(e,et(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=Gn(e,et(n,u?l.from:l.to,u?"after":"before"),"line",t,r);Zn(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function nr(e,t,n,r,i,o,a){var s=Xn(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,d=null,f=0;f<i.length;f++){var p=i[f];if(!(p.from>=u||p.to<=l)){var h=In(e,r,1!=p.level?Math.min(u,p.to)-1:Math.max(l,p.from)).right,m=h<o?o-h+1e9:h-o;(!c||d>m)&&(c=p,d=m)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function rr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==jn){jn=A("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)jn.appendChild(document.createTextNode("x")),jn.appendChild(A("br"));jn.appendChild(document.createTextNode("x"))}C(e.measure,jn);var n=jn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),T(e.measure),n||1}function ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),n=A("pre",[t],"CodeMirror-line-like");C(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function or(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:ar(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function sr(e){var t=rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ir(e.display)-3);return function(i){if(Ut(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function lr(e){var t=e.doc,n=sr(e);t.iter((function(e){var t=n(e);t!=e.height&&Ye(e,t)}))}function ur(e,t,n,r){var i=e.display;if(!n&&"true"==ke(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,u=Qn(e,o,a);if(r&&u.xRel>0&&(l=$e(e.doc,u.line).text).length==u.ch){var c=F(l,l.length,e.options.tabSize)-l.length;u=et(u.line,Math.max(0,Math.round((o-Sn(e.display).left)/ir(e.display))-c))}return u}function cr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function dr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)xt&&Bt(e.doc,t)<i.viewTo&&pr(e);else if(n<=i.viewFrom)xt&&zt(e.doc,n+r)>i.viewFrom?pr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)pr(e);else if(t<=i.viewFrom){var o=hr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):pr(e)}else if(n>=i.viewTo){var a=hr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):pr(e)}else{var s=hr(e,t,t,-1),l=hr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(on(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):pr(e)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(i.externalMeasured=null))}function fr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[cr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==z(a,n)&&a.push(n)}}}function pr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function hr(e,t,n,r){var i,o=cr(e,t),a=e.display.view;if(!xt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Bt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function mr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function gr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function vr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var l=s.empty();(l||e.options.showCursorWhenSelecting)&&yr(e,s.head,i),l||_r(e,s,o)}}return r}function yr(e,t,n){var r=Gn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(A("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(A("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function br(e,t){return e.top-t.top||e.left-t.left}function _r(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Sn(e.display),s=a.left,l=Math.max(r.sizerWidth,Tn(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(A("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=$e(i,t),f=d.text.length;function p(n,r){return $n(e,et(t,n),"div",d,r)}function h(t,n,r){var i=Jn(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return p("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var m=ue(d,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?f:r,(function(e,t,i,d){var g="ltr"==i,v=p(e,g?"left":"right"),y=p(t-1,g?"right":"left"),b=null==n&&0==e,_=null==r&&t==f,w=0==d,x=!m||d==m.length-1;if(y.top-v.top<=3){var k=(u?_:b)&&x,E=(u?b:_)&&w?s:(g?v:y).left,S=k?l:(g?y:v).right;c(E,v.top,S-E,v.bottom)}else{var O,T,C,A;g?(O=u&&b&&w?s:v.left,T=u?l:h(e,i,"before"),C=u?s:h(t,i,"after"),A=u&&_&&x?l:y.right):(O=u?h(e,i,"before"):s,T=!u&&b&&w?l:v.right,C=!u&&_&&x?s:y.left,A=u?h(t,i,"after"):l),c(O,v.top,T-O,v.bottom),v.bottom<y.top&&c(s,v.bottom,null,y.top),c(C,y.top,A-C,y.bottom)}(!o||br(v,o)<0)&&(o=v),br(y,o)<0&&(o=y),(!a||br(v,a)<0)&&(a=v),br(y,a)<0&&(a=y)})),{start:o,end:a}}var f=t.from(),p=t.to();if(f.line==p.line)d(f.line,f.ch,p.ch);else{var h=$e(i,f.line),m=$e(i,p.line),g=Ft(h)==Ft(m),v=d(f.line,f.ch,g?h.text.length+1:null).end,y=d(p.line,g?0:null,p.ch).start;g&&(v.top<y.top-2?(c(v.right,v.top,null,v.bottom),c(s,y.top,y.left,y.bottom)):c(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&c(s,v.bottom,null,y.top)}n.appendChild(o)}function wr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function xr(e){e.state.focused||(e.display.input.focus(),Er(e))}function kr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Sr(e))}),100)}function Er(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(he(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),wr(e))}function Sr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(he(e,"blur",e,t),e.state.focused=!1,O(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Or(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=e.options.lineWrapping,l=void 0,u=0;if(!i.hidden){if(a&&s<8){var c=i.node.offsetTop+i.node.offsetHeight;l=c-n,n=c}else{var d=i.node.getBoundingClientRect();l=d.bottom-d.top,!o&&i.text.firstChild&&(u=i.text.firstChild.getBoundingClientRect().right-d.left-1)}var f=i.line.height-l;if((f>.005||f<-.005)&&(Ye(i.line,l),Tr(i.line),i.rest))for(var p=0;p<i.rest.length;p++)Tr(i.rest[p]);if(u>e.display.sizerWidth){var h=Math.ceil(u/ir(e.display));h>e.display.maxLineLength&&(e.display.maxLineLength=h,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Tr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Cr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-kn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=Xe(t,r),a=Xe(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=Xe(t,Ht($e(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=Xe(t,Ht($e(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Ar(e,t){var n=e.display,r=rr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Cn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+En(n),l=t.top<r,u=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,f=Tn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),p=t.right-t.left>f;return p&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.left<d?a.scrollLeft=Math.max(0,t.left-(p?0:10)):t.right>f+d-3&&(a.scrollLeft=t.right+(p?0:10)-f),a}function Pr(e,t){null!=t&&(Ir(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Rr(e){Ir(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Mr(e,t,n){null==t&&null==n||Ir(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Ir(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,jr(e,Kn(e,t.from),Kn(e,t.to),t.margin))}function jr(e,t,n,r){var i=Ar(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Mr(e,i.scrollLeft,i.scrollTop)}function Dr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||li(e,{top:t}),Lr(e,t,!0),n&&li(e),ri(e,100))}function Lr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Nr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,di(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Fr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+En(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+On(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Br=function(e,t,n){this.cm=n;var r=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),de(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),de(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Br.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Br.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Br.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Br.prototype.zeroWidthHack=function(){var e=y&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},Br.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}))},Br.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var zr=function(){};function Ur(e,t){t||(t=Fr(e));var n=e.display.barWidth,r=e.display.barHeight;qr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Or(e),qr(e,Fr(e)),n=e.display.barWidth,r=e.display.barHeight}function qr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}zr.prototype.update=function(){return{bottom:0,right:0}},zr.prototype.setScrollLeft=function(){},zr.prototype.setScrollTop=function(){},zr.prototype.clear=function(){};var Hr={native:Br,null:zr};function Wr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&O(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Hr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),de(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?Nr(e,t):Dr(e,t)}),e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var Vr=0;function $r(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Vr},t=e.curOp,an?an.ops.push(t):t.ownsGroup=an={ops:[t],delayedCallbacks:[]}}function Gr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{an=null,t(n)}}(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Kr(t[n]);for(var r=0;r<t.length;r++)Yr(t[r]);for(var i=0;i<t.length;i++)Qr(t[i]);for(var o=0;o<t.length;o++)Xr(t[o]);for(var a=0;a<t.length;a++)Jr(t[a])}(e)}))}function Kr(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=On(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=On(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Vt(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new oi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Yr(e){e.updatedDisplay=e.mustUpdate&&ai(e.cm,e.update)}function Qr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Or(t),e.barMeasure=Fr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Pn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+On(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Tn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Xr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Nr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==M();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ur(t,e.barMeasure),e.updatedDisplay&&ci(t,e.barMeasure),e.selectionChanged&&wr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&xr(e.cm)}function Jr(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&si(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Lr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Nr(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!me(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=A("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-kn(e.display))+"px;\n height: "+(t.bottom-t.top+On(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?et(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=Gn(e,t),l=n&&n!=t?Gn(e,n):s,u=Ar(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=u.scrollTop&&(Dr(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(Nr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}(t,st(r,e.scrollToPos.from),st(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||he(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&he(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&he(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Zr(e,t){if(e.curOp)return t();$r(e);try{return t()}finally{Gr(e)}}function ei(e,t){return function(){if(e.curOp)return t.apply(e,arguments);$r(e);try{return t.apply(e,arguments)}finally{Gr(e)}}}function ti(e){return function(){if(this.curOp)return e.apply(this,arguments);$r(this);try{return e.apply(this,arguments)}finally{Gr(this)}}}function ni(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);$r(t);try{return e.apply(this,arguments)}finally{Gr(t)}}}function ri(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,L(ii,e))}function ii(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=pt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?qe(t.mode,r.state):null,l=dt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),f=0;!d&&f<a.length;++f)d=a[f]!=o.styles[f];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&ht(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ri(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Zr(e,(function(){for(var t=0;t<i.length;t++)fr(e,i[t],"text")}))}}var oi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Cr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Tn(e),this.force=n,this.dims=or(e),this.events=[]};function ai(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return pr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==mr(e))return!1;fi(e)&&(pr(e),t.dims=or(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),xt&&(o=Bt(e.doc,o),a=zt(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=on(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=on(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(cr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(on(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,cr(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=Ht($e(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=mr(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=M();if(!t||!R(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&R(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,d=0;d<u.length;d++){var f=u[d];if(f.hidden);else if(f.node&&f.node.parentNode==o){for(;a!=f.node;)a=s(a);var p=i&&null!=t&&t<=c&&f.lineNumber;f.changes&&(z(f.changes,"gutter")>-1&&(p=!1),cn(e,f,c,n)),p&&(T(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(Ze(e.options,c)))),a=f.node.nextSibling}else{var h=vn(e,f,c,n);o.insertBefore(h,a)}c+=f.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=M()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&R(document.body,e.anchorNode)&&R(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(c),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ri(e,400)),n.updateLineNumbers=null,!0}function si(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Tn(e))r&&(t.visible=Cr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+En(e.display)-Cn(e),n.top)}),t.visible=Cr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ai(e,t))break;Or(e);var i=Fr(e);gr(e),Ur(e,i),ci(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function li(e,t){var n=new oi(e,t);if(ai(e,n)){Or(e),si(e,n);var r=Fr(e);gr(e),Ur(e,r),ci(e,r),n.finish()}}function ui(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function ci(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+On(e)+"px"}function di(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=ar(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function fi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=Ze(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(A("div",[A("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",ui(e.display),!0}return!1}function pi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function hi(e){var t=e.gutters,n=e.gutterSpecs;T(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(A("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",ui(e)}function mi(e){hi(e.display),dr(e),di(e)}function gi(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=A("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=A("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=P("div",null,"CodeMirror-code"),o.selectionDiv=A("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=A("div",null,"CodeMirror-cursors"),o.measure=A("div",null,"CodeMirror-measure"),o.lineMeasure=A("div",null,"CodeMirror-measure"),o.lineSpace=P("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var u=P("div",[o.lineSpace],"CodeMirror-lines");o.mover=A("div",[u],null,"position: relative"),o.sizer=A("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=A("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=A("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=A("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=A("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&v||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=pi(i.gutters,i.lineNumbers),hi(o),r.init(o)}oi.prototype.signal=function(e,t){ve(e,t)&&this.events.push(arguments)},oi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)he.apply(null,this.events[e])};var vi=0,yi=null;function bi(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function _i(e){var t=bi(e);return t.x*=yi,t.y*=yi,t}function wi(e,t){var r=bi(t),i=r.x,o=r.y,a=e.display,s=a.scroller,u=s.scrollWidth>s.clientWidth,c=s.scrollHeight>s.clientHeight;if(i&&u||o&&c){if(o&&y&&l)e:for(var f=t.target,p=a.view;f!=s;f=f.parentNode)for(var h=0;h<p.length;h++)if(p[h].node==f){e.display.currentWheelTarget=f;break e}if(i&&!n&&!d&&null!=yi)return o&&c&&Dr(e,Math.max(0,s.scrollTop+o*yi)),Nr(e,Math.max(0,s.scrollLeft+i*yi)),(!o||o&&c)&&be(t),void(a.wheelStartX=null);if(o&&null!=yi){var m=o*yi,g=e.doc.scrollTop,v=g+a.wrapper.clientHeight;m<0?g=Math.max(0,g+m-50):v=Math.min(e.doc.height,v+m+50),li(e,{top:g,bottom:v})}vi<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var e=s.scrollLeft-a.wheelStartX,t=s.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(yi=(yi*vi+n)/(vi+1),++vi)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?yi=-.53:n?yi=15:c?yi=-.7:f&&(yi=-1/3);var xi=function(e,t){this.ranges=e,this.primIndex=t};xi.prototype.primary=function(){return this.ranges[this.primIndex]},xi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!nt(n.anchor,r.anchor)||!nt(n.head,r.head))return!1}return!0},xi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new ki(rt(this.ranges[t].anchor),rt(this.ranges[t].head));return new xi(e,this.primIndex)},xi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},xi.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(tt(t,r.from())>=0&&tt(e,r.to())<=0)return n}return-1};var ki=function(e,t){this.anchor=e,this.head=t};function Ei(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return tt(e.from(),t.from())})),n=z(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=tt(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var u=ot(s.from(),a.from()),c=it(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new ki(d?c:u,d?u:c))}}return new xi(t,n)}function Si(e,t){return new xi([new ki(e,t||e)],0)}function Oi(e){return e.text?et(e.from.line+e.text.length-1,K(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ti(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return Oi(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Oi(t).ch-t.to.ch),et(n,r)}function Ci(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new ki(Ti(i.anchor,t),Ti(i.head,t)))}return Ei(e.cm,n,e.sel.primIndex)}function Ai(e,t,n){return e.line==t.line?et(n.line,e.ch-t.ch+n.ch):et(n.line+(e.line-t.line),e.ch)}function Pi(e){e.doc.mode=Be(e.options,e.doc.modeOption),Ri(e)}function Ri(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ri(e,100),e.state.modeGen++,e.curOp&&dr(e)}function Mi(e,t){return 0==t.from.ch&&0==t.to.ch&&""==K(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ii(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ct(e),At(e,n);var i=r?r(e):1;i!=e.height&&Ye(e,i)}(e,n,i,r),ln(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new $t(u[o],i(o),r));return n}var s=t.from,l=t.to,u=t.text,c=$e(e,s.line),d=$e(e,l.line),f=K(u),p=i(u.length-1),h=l.line-s.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(Mi(e,t)){var m=a(0,u.length-1);o(d,d.text,p),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(c==d)if(1==u.length)o(c,c.text.slice(0,s.ch)+f+c.text.slice(l.ch),p);else{var g=a(1,u.length-1);g.push(new $t(f+c.text.slice(l.ch),p,r)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),e.insert(s.line+1,g)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,h);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(d,f+d.text.slice(l.ch),p);var v=a(1,u.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}ln(e,"change",e,t)}function ji(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),e(s.doc,r,l))}}}(e,null,!0)}function Di(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,lr(e),Pi(e),Li(e),e.options.lineWrapping||Vt(e),e.options.mode=t.modeOption,dr(e)}function Li(e){("rtl"==e.doc.direction?I:O)(e.display.lineDiv,"CodeMirror-rtl")}function Ni(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Fi(e,t){var n={from:rt(t.from),to:Oi(t),text:Ge(e,t.from,t.to)};return Hi(e,n,t.from.line,t.to.line+1),ji(e,(function(e){return Hi(e,n,t.from.line,t.to.line+1)}),!0),n}function Bi(e){for(;e.length&&K(e).ranges;)e.pop()}function zi(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Bi(e.done),K(e.done)):e.done.length&&!K(e.done).ranges?K(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),K(e.done)):void 0}(i,i.lastOp==r)))a=K(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,a.to)?a.to=Oi(t):o.changes.push(Fi(e,t));else{var l=K(i.done);for(l&&l.ranges||qi(e.sel,i.done),o={changes:[Fi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||he(e,"historyAdded")}function Ui(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,K(i.done),t))?i.done[i.done.length-1]=t:qi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Bi(i.undone)}function qi(e,t){var n=K(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Hi(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Wi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Vi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Wi(n[i]));return r}(e,t),r=Ot(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function $i(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?xi.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var d in u)(c=d.match(/^spans_(\d+)$/))&&z(t,Number(c[1]))>-1&&(K(s)[d]=u[d],delete u[d])}}}return r}function Gi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=tt(t,i)<0;o!=tt(n,i)<0?(i=t,t=n):o!=tt(t,n)<0&&(t=n)}return new ki(i,t)}return new ki(n||t,t)}function Ki(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Zi(e,new xi([Gi(e.sel.primary(),t,n,i)],0),r)}function Yi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Gi(e.sel.ranges[o],t[o],null,i);Zi(e,Ei(e.cm,r,e.sel.primIndex),n)}function Qi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Zi(e,Ei(e.cm,i,e.sel.primIndex),r)}function Xi(e,t,n,r){Zi(e,Si(t,n),r)}function Ji(e,t,n){var r=e.history.done,i=K(r);i&&i.ranges?(r[r.length-1]=t,eo(e,t,n)):Zi(e,t,n)}function Zi(e,t,n){eo(e,t,n),Ui(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function eo(e,t,n){(ve(e,"beforeSelectionChange")||e.cm&&ve(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new ki(st(e,t[n].anchor),st(e,t[n].head))},origin:n&&n.origin};return he(e,"beforeSelectionChange",e,r),e.cm&&he(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Ei(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(tt(t.primary().head,e.sel.primary().head)<0?-1:1);to(e,ro(e,t,r,!0)),n&&!1===n.scroll||!e.cm||Rr(e.cm)}function to(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ge(e.cm)),ln(e,"cursorActivity",e))}function no(e){to(e,ro(e,e.sel,null,!1))}function ro(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=oo(e,a.anchor,s&&s.anchor,n,r),u=oo(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new ki(l,u))}return i?Ei(e.cm,i,t.primIndex):t}function io(e,t,n,r,i){var o=$e(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(u?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c?s.to>=t.ch:s.to>t.ch))){if(i&&(he(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?c:u)&&(d=ao(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=tt(d,n))&&(r<0?f<0:f>0))return io(e,d,t,r,i)}var p=l.find(r<0?-1:1);return(r<0?u:c)&&(p=ao(e,p,r,p.line==t.line?o:null)),p?io(e,p,t,r,i):null}}return t}function oo(e,t,n,r,i){var o=r||1,a=io(e,t,n,o,i)||!i&&io(e,t,n,o,!0)||io(e,t,n,-o,i)||!i&&io(e,t,n,-o,!0);return a||(e.cantEdit=!0,et(e.first,0))}function ao(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?st(e,et(t.line-1)):null:n>0&&t.ch==(r||$e(e,t.line)).text.length?t.line<e.first+e.size-1?et(t.line+1,0):null:new et(t.line,t.ch+n)}function so(e){e.setSelection(et(e.firstLine(),0),et(e.lastLine()),q)}function lo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=st(e,t)),n&&(r.to=st(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),he(e,"beforeChange",e,r),e.cm&&he(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function uo(e,t,n){if(e.cm){if(!e.cm.curOp)return ei(e.cm,uo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ve(e,"beforeChange")||e.cm&&ve(e.cm,"beforeChange"))||(t=lo(e,t,!0))){var r=wt&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=z(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var u=i[l];if(!(tt(u.to,s.from)<0||tt(u.from,s.to)>0)){var c=[l,1],d=tt(u.from,s.from),f=tt(u.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)co(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else co(e,t)}}function co(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=Ci(e,t);zi(e,t,n,e.cm?e.cm.curOp.id:NaN),ho(e,t,n,Ot(e,t));var r=[];ji(e,(function(e,n){n||-1!=z(r,e.history)||(yo(e.history,t),r.push(e.history)),ho(e,t,null,Ot(e,t))}))}}function fo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u<s.length&&(i=s[u],n?!i.ranges||i.equals(e.sel):i.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(qi(i,l),n&&!i.equals(e.sel))return void Zi(e,i,{clearRedo:!1});a=i}var c=[];qi(a,l),l.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=ve(e,"beforeChange")||e.cm&&ve(e.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=t,d&&!lo(e,r,!1))return s.length=0,{};c.push(Fi(e,r));var o=n?Ci(e,r):K(s);ho(e,r,o,Vi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Oi(r)});var a=[];ji(e,(function(e,t){t||-1!=z(a,e.history)||(yo(e.history,r),a.push(e.history)),ho(e,r,null,Vi(e,r))}))},p=i.changes.length-1;p>=0;--p){var h=f(p);if(h)return h.v}}}}function po(e,t){if(0!=t&&(e.first+=t,e.sel=new xi(Y(e.sel.ranges,(function(e){return new ki(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){dr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)fr(e.cm,r,"gutter")}}function ho(e,t,n,r){if(e.cm&&!e.cm.curOp)return ei(e.cm,ho)(e,t,n,r);if(t.to.line<e.first)po(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);po(e,i),t={from:et(e.first,0),to:et(t.to.line+i,t.to.ch),text:[K(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:et(o,$e(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ge(e,t.from,t.to),n||(n=Ci(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=Qe(Ft($e(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ge(e),Ii(r,t,n,sr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=Wt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=$e(e,r).stateAfter;if(i&&(!(i instanceof ut)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),ri(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?dr(e):o.line!=a.line||1!=t.text.length||Mi(e.doc,t)?dr(e,o.line,a.line+1,u):fr(e,o.line,"text");var c=ve(e,"changes"),d=ve(e,"change");if(d||c){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&ln(e,"change",e,f),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}(e.cm,t,r):Ii(e,t,r),eo(e,n,q),e.cantEdit&&oo(e,et(e.firstLine(),0))&&(e.cantEdit=!1)}}function mo(e,t,n,r,i){var o;r||(r=n),tt(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),uo(e,{from:n,to:r,text:t,origin:i})}function go(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function vo(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)go(o.ranges[s].anchor,t,n,r),go(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=et(u.from.line+r,u.from.ch),u.to=et(u.to.line+r,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function yo(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;vo(e.done,n,r,i),vo(e.undone,n,r,i)}function bo(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=$e(e,at(e,t)):i=Qe(t),null==i?null:(r(o,i)&&e.cm&&fr(e.cm,i,n),o)}function _o(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function wo(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}ki.prototype.from=function(){return ot(this.anchor,this.head)},ki.prototype.to=function(){return it(this.anchor,this.head)},ki.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},_o.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Gt(i),ln(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},wo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof _o))){var s=[];this.collapse(s),this.children=[new _o(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new _o(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new wo(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=z(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new wo(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var xo=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function ko(e,t,n){Ht(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Pr(e,n)}xo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=Qe(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=wn(this);Ye(n,Math.max(0,n.height-o)),e&&(Zr(e,(function(){ko(e,n,-o),fr(e,r,"widget")})),ln(e,"lineWidgetCleared",e,this,r))}},xo.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=wn(this)-t;i&&(Ut(this.doc,r)||Ye(r,r.height+i),n&&Zr(n,(function(){n.curOp.forceUpdate=!0,ko(n,r,i),ln(n,"lineWidgetChanged",n,e,Qe(r))})))},ye(xo);var Eo=0,So=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Eo};function Oo(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=N(r)).shared=!1;var o=[Oo(e,t,n,r,i)],a=o[0],s=r.widgetNode;return ji(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(Oo(e,st(e,t),st(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=K(o)})),new To(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ei(e.cm,Oo)(e,t,n,r,i);var o=new So(e,i),a=tt(t,n);if(r&&N(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=P("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Nt(e,t.line,t,n,o)||t.line!=n.line&&Nt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");xt=!0}o.addToHistory&&zi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(e){u&&o.collapsed&&!u.options.lineWrapping&&Ft(e)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Ye(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new kt(o,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Ut(e,t)&&Ye(t,0)})),o.clearOnEnter&&de(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(wt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Eo,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)dr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)fr(u,c,"text");o.atomic&&no(u.doc),ln(u,"markerAdded",u,o)}return o}So.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&$r(e),ve(this,"clear")){var n=this.find();n&&ln(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Et(a.markedSpans,this);e&&!this.collapsed?fr(e,Qe(a),"text"):e&&(null!=s.to&&(i=Qe(a)),null!=s.from&&(r=Qe(a))),a.markedSpans=St(a.markedSpans,s),null==s.from&&this.collapsed&&!Ut(this.doc,a)&&e&&Ye(a,rr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=Ft(this.lines[l]),c=Wt(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&dr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&no(e.doc)),e&&ln(e,"markerCleared",e,this,r,i),t&&Gr(e),this.parent&&this.parent.clear()}},So.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Et(o.markedSpans,this);if(null!=a.from&&(n=et(t?o:Qe(o),a.from),-1==e))return n;if(null!=a.to&&(r=et(t?o:Qe(o),a.to),1==e))return r}return n&&{from:n,to:r}},So.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Zr(r,(function(){var i=t.line,o=Qe(t.line),a=Rn(r,o);if(a&&(Fn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Ut(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=wn(n)-s;l&&Ye(i,i.height+l)}ln(r,"markerChanged",r,e)}))},So.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=z(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},So.prototype.detachLine=function(e){if(this.lines.splice(z(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},ye(So);var To=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Co(e){return e.findMarks(et(e.first,0),e.clipPos(et(e.lastLine())),(function(e){return e.parent}))}function Ao(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];ji(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==z(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}To.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ln(this,"clear")}},To.prototype.find=function(e,t){return this.primary.find(e,t)},ye(To);var Po=0,Ro=function(e,t,n,r,i){if(!(this instanceof Ro))return new Ro(e,t,n,r,i);null==n&&(n=0),wo.call(this,[new _o([new $t("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=et(n,0);this.sel=Si(o),this.history=new Ni(null),this.id=++Po,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Ii(this,{from:o,to:o,text:e}),Zi(this,Si(o),q)};Ro.prototype=X(wo.prototype,{constructor:Ro,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ke(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:ni((function(e){var t=et(this.first,0),n=this.first+this.size-1;uo(this,{from:t,to:et(n,$e(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Mr(this.cm,0,0),Zi(this,Si(t),q)})),replaceRange:function(e,t,n,r){mo(this,e,t=st(this,t),n=n?st(this,n):t,r)},getRange:function(e,t,n){var r=Ge(this,st(this,e),st(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Je(this,e))return $e(this,e)},getLineNumber:function(e){return Qe(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=$e(this,e)),Ft(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return st(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ni((function(e,t,n){Xi(this,st(this,"number"==typeof e?et(e,t||0):e),null,n)})),setSelection:ni((function(e,t,n){Xi(this,st(this,e),st(this,t||e),n)})),extendSelection:ni((function(e,t,n){Ki(this,st(this,e),t&&st(this,t),n)})),extendSelections:ni((function(e,t){Yi(this,lt(this,e),t)})),extendSelectionsBy:ni((function(e,t){Yi(this,lt(this,Y(this.sel.ranges,e)),t)})),setSelections:ni((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new ki(st(this,e[i].anchor),st(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Zi(this,Ei(this.cm,r,t),n)}})),addSelection:ni((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new ki(st(this,e),st(this,t||e))),Zi(this,Ei(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Ge(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Ge(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ni((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=et(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=Ai(s.from,i,o),u=Ai(Oi(s),i,o);if(i=s.to,o=u,"around"==n){var c=e.sel.ranges[a],d=tt(c.head,c.anchor)<0;r[a]=new ki(d?u:l,d?l:u)}else r[a]=new ki(l,l)}return new xi(r,e.sel.primIndex)}(this,r,t),l=r.length-1;l>=0;l--)uo(this,r[l]);s?Ji(this,s):this.cm&&Rr(this.cm)})),undo:ni((function(){fo(this,"undo")})),redo:ni((function(){fo(this,"redo")})),undoSelection:ni((function(){fo(this,"undo",!0)})),redoSelection:ni((function(){fo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Ni(this.history.maxGeneration),ji(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:$i(this.history.done),undone:$i(this.history.undone)}},setHistory:function(e){var t=this.history=new Ni(this.history.maxGeneration);t.done=$i(e.done.slice(0),null,!0),t.undone=$i(e.undone.slice(0),null,!0)},setGutterMarker:ni((function(e,t,n){return bo(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&te(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:ni((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&bo(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,te(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!Je(this,e))return null;if(t=e,!(e=$e(this,e)))return null}else if(null==(t=Qe(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ni((function(e,t,n){return bo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(E(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:ni((function(e,t,n){return bo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(E(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:ni((function(e,t,n){return function(e,t,n,r){var i=new xo(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),bo(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Ut(e,t)){var r=Ht(t)<e.scrollTop;Ye(t,t.height+wn(i)),r&&Pr(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&ln(o,"lineWidgetAdded",o,i,"number"==typeof t?t:Qe(t)),i}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Oo(this,st(this,e),st(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return Oo(this,e=st(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=$e(this,(e=st(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=st(this,e),t=st(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),st(this,et(n,t))},indexFromPos:function(e){var t=(e=st(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new Ro(Ke(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Ro(Ke(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(tt(o,a)){var s=Oo(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,Co(this)),r},unlinkDoc:function(e){if(e instanceof Ta&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Ao(Co(this));break}if(e.history==this.history){var n=[e.id];ji(e,(function(e){return n.push(e.id)}),!0),e.history=new Ni(null),e.history.done=$i(this.history.done,n),e.history.undone=$i(this.history.undone,n)}},iterLinkedDocs:function(e){ji(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Re(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ni((function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&Zr(t=this.cm,(function(){Li(t),dr(t)})))}))}),Ro.prototype.eachLine=Ro.prototype.iter;var Mo=0;function Io(e){var t=this;if(jo(t),!me(t,e)&&!xn(t.display,e)){be(e),a&&(Mo=+new Date);var n=ur(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&ei(t,(function(){var e={from:n=st(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};uo(t.doc,e),Ji(t.doc,Si(st(t.doc,n),st(t.doc,Oi(e))))}))()},u=function(e,n){if(t.options.allowDropFileTypes&&-1==z(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},c=0;c<r.length;c++)u(r[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),eo(t.doc,Si(n,n)),f)for(var p=0;p<f.length;++p)mo(t.doc,"",f[p].anchor,f[p].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function jo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Do(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Lo=!1;function No(){var e;Lo||(de(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Do(Fo)}),100))})),de(window,"blur",(function(){return Do(Sr)})),Lo=!0)}function Fo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Bo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},zo=0;zo<10;zo++)Bo[zo+48]=Bo[zo+96]=String(zo);for(var Uo=65;Uo<=90;Uo++)Bo[Uo]=String.fromCharCode(Uo);for(var qo=1;qo<=12;qo++)Bo[qo+111]=Bo[qo+63235]="F"+qo;var Ho={};function Wo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Vo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=Y(n.split(" "),Wo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var u in t)e[u]=t[u];return e}function $o(e,t,n,r){var i=(t=Qo(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return $o(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=$o(e,t.fallthrough[o],n,r);if(a)return a}}}function Go(e){var t="string"==typeof e?e:Bo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Ko(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(x?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(x?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Yo(e,t){if(d&&34==e.keyCode&&e.char)return!1;var n=Bo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Ko(n,e,t))}function Qo(e){return"string"==typeof e?Ho[e]:e}function Xo(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&tt(o.from,K(r).to)<=0;){var a=r.pop();if(tt(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Zr(e,(function(){for(var t=r.length-1;t>=0;t--)mo(e.doc,"",r[t].from,r[t].to,"+delete");Rr(e)}))}function Jo(e,t,n){var r=ie(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Zo(e,t,n){var r=Jo(e,t.ch,n);return null==r?null:new et(t.line,r,n<0?"after":"before")}function ea(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ue(n,t.doc.direction);if(o){var a,s=i<0?K(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=Mn(t,n);a=i<0?n.text.length-1:0;var c=In(t,u,a).top;a=oe((function(e){return In(t,u,e).top==c}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Jo(n,a,1))}else a=i<0?s.to:s.from;return new et(r,a,l)}}return new et(r,i<0?n.text.length:0,i<0?"before":"after")}Ho.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ho.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ho.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ho.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ho.default=y?Ho.macDefault:Ho.pcDefault;var ta={selectAll:so,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),q)},killLine:function(e){return Xo(e,(function(t){if(t.empty()){var n=$e(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:et(t.head.line+1,0)}:{from:t.head,to:et(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Xo(e,(function(t){return{from:et(t.from().line,0),to:st(e.doc,et(t.to().line+1,0))}}))},delLineLeft:function(e){return Xo(e,(function(e){return{from:et(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Xo(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Xo(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(et(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(et(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return na(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return ra(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return function(e,t){var n=$e(e.doc,t),r=function(e){for(var t;t=Dt(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=Qe(r)),ea(!0,e,n,t,-1)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),W)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),W)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?ra(e,t.head):r}),W)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=F(e.getLine(o.line),o.ch,r);t.push(G(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Zr(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=$e(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new et(i.line,i.ch-1)),i.ch>0)i=new et(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),et(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=$e(e.doc,i.line-1).text;a&&(i=new et(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),et(i.line-1,a.length-1),i,"+transpose"))}n.push(new ki(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Zr(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Rr(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function na(e,t){var n=$e(e.doc,t),r=Ft(n);return r!=n&&(t=Qe(r)),ea(!0,e,r,t,1)}function ra(e,t){var n=na(e,t.line),r=$e(e.doc,n.line),i=ue(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return et(n.line,a?0:o,n.sticky)}return n}function ia(e,t,n){if("string"==typeof t&&!(t=ta[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=U}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var oa=new B;function aa(e,t,n,r){var i=e.state.keySeq;if(i){if(Go(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:oa.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),sa(e,i+" "+t,n,r))return!0}return sa(e,t,n,r)}function sa(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=$o(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&$o(t,e.options.extraKeys,n,e)||$o(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&ln(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(be(n),wr(e)),!!i}function la(e,t){var n=Yo(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?aa(e,"Shift-"+n,t,(function(t){return ia(e,t,!0)}))||aa(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ia(e,t)})):aa(e,n,t,(function(t){return ia(e,t)})))}var ua=null;function ca(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=M(),me(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=la(t,e);d&&(ua=i?r:null,i||88!=r||Ie||!(y?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!y&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(O(t,"CodeMirror-crosshair"),pe(document,"keyup",n),pe(document,"mouseover",n))}I(t,"CodeMirror-crosshair"),de(document,"keyup",n),de(document,"mouseover",n)}(t)}}function da(e){16==e.keyCode&&(this.doc.sel.shift=!1),me(this,e)}function fa(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||xn(t.display,e)||me(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(d&&n==ua)return ua=null,void be(e);if(!d||e.which&&!(e.which<10)||!la(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return aa(e,"'"+n+"'",t,(function(t){return ia(e,t,!0)}))}(t,e,i)||t.display.input.onKeyPress(e))}}}var pa,ha,ma=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ga(e){var t=this,n=t.display;if(!(me(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,xn(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!ba(t,e)){var r=ur(t,e),i=Ee(e),o=r?function(e,t){var n=+new Date;return ha&&ha.compare(n,e,t)?(pa=ha=null,"triple"):pa&&pa.compare(n,e,t)?(ha=new ma(n,e,t),pa=null,"double"):(pa=new ma(n,e,t),ha=null,"single")}(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),aa(e,Ko(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=ta[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=U}finally{e.state.suppressEdits=!1}return r}))}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(L(xr,e),0):e.curOp.focus=M();var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=b?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey)),i}(e,n,r),u=e.doc.sel;e.options.dragDrop&&Te&&!e.isReadOnly()&&"single"==n&&(i=u.contains(t))>-1&&(tt((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(tt(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,u=ei(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,pe(i.wrapper.ownerDocument,"mouseup",u),pe(i.wrapper.ownerDocument,"mousemove",c),pe(i.scroller,"dragstart",d),pe(i.scroller,"drop",u),o||(be(t),r.addNew||Ki(e.doc,n,null,null,r.extend),l&&!f||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),de(i.wrapper.ownerDocument,"mouseup",u),de(i.wrapper.ownerDocument,"mousemove",c),de(i.scroller,"dragstart",d),de(i.scroller,"drop",u),kr(e),setTimeout((function(){return i.input.focus()}),20)}(e,r,t,o):function(e,t,n,r){var i=e.display,o=e.doc;be(t);var a,s,l=o.sel,u=l.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?u[s]:new ki(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new ki(n,n)),n=ur(e,t,!0,!0),s=-1;else{var c=va(e,n,r.unit);a=r.extend?Gi(a,c.anchor,c.head,r.extend):c}r.addNew?-1==s?(s=u.length,Zi(o,Ei(e,u.concat([a]),s),{scroll:!1,origin:"*mouse"})):u.length>1&&u[s].empty()&&"char"==r.unit&&!r.extend?(Zi(o,Ei(e,u.slice(0,s).concat(u.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Qi(o,s,a,H):(s=0,Zi(o,new xi([a],0),H),l=o.sel);var d=n;function f(t){if(0!=tt(d,t))if(d=t,"rectangle"==r.unit){for(var i=[],u=e.options.tabSize,c=F($e(o,n.line).text,n.ch,u),f=F($e(o,t.line).text,t.ch,u),p=Math.min(c,f),h=Math.max(c,f),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=$e(o,m).text,y=V(v,p,u);p==h?i.push(new ki(et(m,y),et(m,y))):v.length>y&&i.push(new ki(et(m,y),et(m,V(v,h,u))))}i.length||i.push(new ki(n,n)),Zi(o,Ei(e,l.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,_=a,w=va(e,t,r.unit),x=_.anchor;tt(w.anchor,x)>0?(b=w.head,x=ot(_.from(),w.anchor)):(b=w.anchor,x=it(_.to(),w.head));var k=l.ranges.slice(0);k[s]=function(e,t){var n=t.anchor,r=t.head,i=$e(e.doc,n.line);if(0==tt(n,r)&&n.sticky==r.sticky)return t;var o=ue(i);if(!o)return t;var a=se(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=se(o,r.ch,r.sticky),d=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?d<0:d>0}var f=o[u+(l?-1:0)],p=l==(1==f.level),h=p?f.from:f.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new ki(new et(n.line,h,m),r)}(e,new ki(st(o,x),b)),Zi(o,Ei(e,k,s),H)}}var p=i.wrapper.getBoundingClientRect(),h=0;function m(t){e.state.selectingText=!1,h=1/0,t&&(be(t),i.input.focus()),pe(i.wrapper.ownerDocument,"mousemove",g),pe(i.wrapper.ownerDocument,"mouseup",v),o.history.lastSelOrigin=null}var g=ei(e,(function(t){0!==t.buttons&&Ee(t)?function t(n){var a=++h,s=ur(e,n,!0,"rectangle"==r.unit);if(s)if(0!=tt(s,d)){e.curOp.focus=M(),f(s);var l=Cr(i,o);(s.line>=l.to||s.line<l.from)&&setTimeout(ei(e,(function(){h==a&&t(n)})),150)}else{var u=n.clientY<p.top?-20:n.clientY>p.bottom?20:0;u&&setTimeout(ei(e,(function(){h==a&&(i.scroller.scrollTop+=u,t(n))})),50)}}(t):m(t)})),v=ei(e,m);e.state.selectingText=v,de(i.wrapper.ownerDocument,"mousemove",g),de(i.wrapper.ownerDocument,"mouseup",v)}(e,r,t,o)}(t,r,o,e):ke(e)==n.scroller&&be(e):2==i?(r&&Ki(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(k?t.display.input.onContextMenu(e):kr(t)))}}function va(e,t,n){if("char"==n)return new ki(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ki(et(t.line,0),st(e.doc,et(t.line+1,0)));var r=n(e,t);return new ki(r.from,r.to)}function ya(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&be(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ve(e,n))return we(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i)return he(e,n,e,Xe(e.doc,o),e.display.gutterSpecs[l].className,t),we(t)}}function ba(e,t){return ya(e,t,"gutterClick",!0)}function _a(e,t){xn(e.display,t)||function(e,t){return!!ve(e,"gutterContextMenu")&&ya(e,t,"gutterContextMenu",!1)}(e,t)||me(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function wa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),zn(e)}ma.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var xa={toString:function(){return"CodeMirror.Init"}},ka={},Ea={};function Sa(e,t,n){if(!t!=!(n&&n!=xa)){var r=e.display.dragFunctions,i=t?de:pe;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Oa(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(O(e.display.wrapper,"CodeMirror-wrap"),Vt(e)),lr(e),dr(e),zn(e),setTimeout((function(){return Ur(e)}),100)}function Ta(e,t){var n=this;if(!(this instanceof Ta))return new Ta(e,t);this.options=t=t?N(t):{},N(ka,t,!1);var r=t.value;"string"==typeof r?r=new Ro(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ta.inputStyles[t.inputStyle](this),o=this.display=new gi(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,wa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},t.autofocus&&!v&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;de(t.scroller,"mousedown",ei(e,ga)),de(t.scroller,"dblclick",a&&s<11?ei(e,(function(t){if(!me(e,t)){var n=ur(e,t);if(n&&!ba(e,t)&&!xn(e.display,t)){be(t);var r=e.findWordAt(n);Ki(e.doc,r.anchor,r.head)}}})):function(t){return me(e,t)||be(t)}),de(t.scroller,"contextmenu",(function(t){return _a(e,t)})),de(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||_a(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}de(t.scroller,"touchstart",(function(i){if(!me(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!ba(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),de(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),de(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!xn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new ki(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new ki(et(s.line,0),st(e.doc,et(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),be(n)}i()})),de(t.scroller,"touchcancel",i),de(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Dr(e,t.scroller.scrollTop),Nr(e,t.scroller.scrollLeft,!0),he(e,"scroll",e))})),de(t.scroller,"mousewheel",(function(t){return wi(e,t)})),de(t.scroller,"DOMMouseScroll",(function(t){return wi(e,t)})),de(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){me(e,t)||xe(t)},over:function(t){me(e,t)||(function(e,t){var n=ur(e,t);if(n){var r=document.createDocumentFragment();yr(e,n,r),e.display.dragCursor||(e.display.dragCursor=A("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),C(e.display.dragCursor,r)}}(e,t),xe(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Mo<100))xe(t);else if(!me(e,t)&&!xn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=A("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}(e,t)},drop:ei(e,Io),leave:function(t){me(e,t)||jo(e)}};var l=t.input.getField();de(l,"keyup",(function(t){return da.call(e,t)})),de(l,"keydown",ei(e,ca)),de(l,"keypress",ei(e,fa)),de(l,"focus",(function(t){return Er(e,t)})),de(l,"blur",(function(t){return Sr(e,t)}))}(this),No(),$r(this),this.curOp.forceUpdate=!0,Di(this,r),t.autofocus&&!v||this.hasFocus()?setTimeout(L(Er,this),20):Sr(this),Ea)Ea.hasOwnProperty(u)&&Ea[u](this,t[u],xa);fi(this),t.finishInit&&t.finishInit(this);for(var c=0;c<Ca.length;++c)Ca[c](this);Gr(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Ta.defaults=ka,Ta.optionHandlers=Ea;var Ca=[];function Aa(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=pt(e,t).state:n="prev");var a=e.options.tabSize,s=$e(o,t),l=F(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==U||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?F($e(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)f+=a,d+="\t";if(f<u&&(d+=G(u-f)),d!=c)return mo(o,d,et(t,0),et(t,c.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<c.length){var g=et(t,c.length);Qi(o,h,new ki(g,g));break}}}Ta.defineInitHook=function(e){return Ca.push(e)};var Pa=null;function Ra(e){Pa=e}function Ma(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Re(t),u=null;if(s&&r.ranges.length>1)if(Pa&&Pa.text.join("\n")==t){if(r.ranges.length%Pa.text.length==0){u=[];for(var c=0;c<Pa.text.length;c++)u.push(o.splitLines(Pa.text[c]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=Y(l,(function(e){return[e]})));for(var d=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var p=r.ranges[f],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=et(h.line,h.ch-n):e.state.overwrite&&!s?m=et(m.line,Math.min($e(o,m.line).text.length,m.ch+K(l).length)):s&&Pa&&Pa.lineWise&&Pa.text.join("\n")==l.join("\n")&&(h=m=et(h.line,0)));var g={from:h,to:m,text:u?u[f%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};uo(e.doc,g),ln(e,"inputRead",e,g)}t&&!s&&ja(e,t),Rr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ia(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Zr(t,(function(){return Ma(t,n,0,null,"paste")})),!0}function ja(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Aa(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test($e(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Aa(e,i.head.line,"smart"));a&&ln(e,"electricInput",e,i.head.line)}}}function Da(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:et(i,0),head:et(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function La(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Na(){var e=A("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=A("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),La(e),t}function Fa(e,t,n,r,i){var o=t,a=n,s=$e(e,t.line),l=i&&"rtl"==e.direction?-n:n;function u(r){var o;if(null==(o=i?function(e,t,n,r){var i=ue(t,e.doc.direction);if(!i)return Zo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=se(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Zo(t,n,r);var s,l=function(e,n){return Jo(t,e instanceof et?e.ch:e,n)},u=function(n){return e.options.lineWrapping?(s=s||Mn(e,t),Jn(e,t,s,n)):{begin:0,end:t.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,f=l(n,d?1:-1);if(null!=f&&(d?f<=a.to&&f<=c.end:f>=a.from&&f>=c.begin)){var p=d?"before":"after";return new et(n.line,f,p)}}var h=function(e,t,r){for(var o=function(e,t){return t?new et(n.line,l(e,1),"before"):new et(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u<a.to)return o(u,s);if(u=s?a.from:l(a.to,-1),r.begin<=u&&u<r.end)return o(u,s)}},m=h(o+r,r,c);if(m)return m;var g=r>0?c.end:l(c.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:i.length-1,r,u(g)))?null:m}(e.cm,s,t,n):Zo(s,t,n))){if(r||!function(){var n=t.line+l;return!(n<e.first||n>=e.first+e.size)&&(t=new et(n,t.ch,t.sticky),s=$e(e,n))}())return!1;t=ea(i,e.cm,s,t.line,l)}else t=o;return!0}if("char"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var h=s.text.charAt(t.ch)||"\n",m=ee(h,f)?"w":d&&"\n"==h?"n":!d||/\s/.test(h)?null:"p";if(!d||p||m||(m="s"),c&&c!=m){n<0&&(n=1,u(),t.sticky="after");break}if(m&&(c=m),n>0&&!u(!p))break}var g=oo(e,t,o,a,!0);return nt(o,g)&&(g.hitSide=!0),g}function Ba(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*rr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Qn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var za=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ua(e,t){var n=Rn(e,t.line);if(!n||n.hidden)return null;var r=$e(e.doc,t.line),i=An(n,r,t.line),o=ue(r,e.doc.direction),a="left";o&&(a=se(o,t.ch)%2?"right":"left");var s=Ln(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function qa(e,t){return t&&(e.bad=!0),e}function Ha(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return qa(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Wa(o,t,n)}}function Wa(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!R(r,t))return qa(et(Qe(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?K(e.rest):e.line;return qa(et(Qe(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,u=l.maps;function c(t,n,r){for(var i=-1;i<(u?u.length:0);i++)for(var o=i<0?l.map:u[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var c=Qe(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),et(c,d)}}}var d=c(a,s,n);if(d)return qa(d,i);for(var f=s.nextSibling,p=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(d=c(f,f.firstChild,0))return qa(et(d.line,d.ch-p),i);p+=f.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(d=c(h,h.firstChild,-1))return qa(et(d.line,d.ch+m),i);m+=h.textContent.length}}za.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!me(r,e)){if(r.somethingSelected())Ra({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Da(r);Ra({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,q),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Pa.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Na(),l=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Pa.text.join("\n");var u=document.activeElement;D(l),setTimeout((function(){r.display.lineSpace.removeChild(s),u.focus(),u==i&&n.showPrimarySelection()}),50)}}La(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),de(i,"paste",(function(e){!o(e)||me(r,e)||Ia(e,r)||s<=11&&setTimeout(ei(r,(function(){return t.updateFromDOM()})),20)})),de(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),de(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),de(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),de(i,"touchstart",(function(){return n.forceCompositionEnd()})),de(i,"input",(function(){t.composing||t.readFromDOMSoon()})),de(i,"copy",a),de(i,"cut",a)},za.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},za.prototype.prepareSelection=function(){var e=vr(this.cm,!1);return e.focus=document.activeElement==this.div,e},za.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},za.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},za.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=Ha(t,e.anchorNode,e.anchorOffset),s=Ha(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=tt(ot(a,s),i)||0!=tt(it(a,s),o)){var l=t.display.view,u=i.line>=t.display.viewFrom&&Ua(t,i)||{node:l[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Ua(t,o);if(!c){var d=l[l.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;c={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(u&&c){var p,h=e.rangeCount&&e.getRangeAt(0);try{p=S(u.node,u.offset,c.offset,c.node)}catch(e){}p&&(!n&&t.state.focused?(e.collapse(u.node,u.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},za.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},za.prototype.showMultipleSelections=function(e){C(this.cm.display.cursorDiv,e.cursors),C(this.cm.display.selectionDiv,e.selection)},za.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},za.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return R(this.div,t)},za.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},za.prototype.blur=function(){this.div.blur()},za.prototype.getField=function(){return this.div},za.prototype.supportsTouch=function(){return!0},za.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Zr(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}))},za.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},za.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(g&&c&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Ha(t,e.anchorNode,e.anchorOffset),r=Ha(t,e.focusNode,e.focusOffset);n&&r&&Zr(t,(function(){Zi(t.doc,Si(n,r),q),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},za.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=et(a.line-1,$e(r.doc,a.line-1).length)),s.ch==$e(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=et(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=cr(r,a.line))?(t=Qe(i.view[0].line),n=i.view[0].node):(t=Qe(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=cr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=Qe(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function c(e){e&&(u(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void c(n);var o,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(et(r,0),et(i+1,0),(g=+f,function(e){return e.id==g}));return void(p.length&&(o=p[0].find(0))&&c(Ge(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&u();for(var m=0;m<t.childNodes.length;m++)d(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),h&&(a=!0)}else 3==t.nodeType&&c(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var g}for(;d(t),t!=n;)t=t.nextSibling,l=!1;return o}(r,n,u,t,l)),f=Ge(r.doc,et(t,0),et(l,$e(r.doc,l).text.length));d.length>1&&f.length>1;)if(K(d)==K(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var p=0,h=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);p<v&&m.charCodeAt(p)==g.charCodeAt(p);)++p;for(var y=K(d),b=K(f),_=Math.min(y.length-(1==d.length?p:0),b.length-(1==f.length?p:0));h<_&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==d.length&&1==f.length&&t==a.line)for(;p&&p>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;d[d.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var w=et(t,p),x=et(l,f.length?K(f).length-h:0);return d.length>1||d[0]||tt(w,x)?(mo(r.doc,d,w,x,"+input"),!0):void 0},za.prototype.ensurePolled=function(){this.forceCompositionEnd()},za.prototype.reset=function(){this.forceCompositionEnd()},za.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},za.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},za.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Zr(this.cm,(function(){return dr(e.cm)}))},za.prototype.setUneditable=function(e){e.contentEditable="false"},za.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ei(this.cm,Ma)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},za.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},za.prototype.onContextMenu=function(){},za.prototype.resetPosition=function(){},za.prototype.needsContentAttribute=!0;var Va=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null};Va.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!me(r,e)){if(r.somethingSelected())Ra({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Da(r);Ra({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,q):(n.prevInput="",i.value=t.text.join("\n"),D(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),de(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),de(i,"paste",(function(e){me(r,e)||Ia(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),de(i,"cut",o),de(i,"copy",o),de(e.scroller,"paste",(function(t){if(!xn(e,t)&&!me(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),de(e.lineSpace,"selectstart",(function(t){xn(e,t)||be(t)})),de(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),de(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Va.prototype.createField=function(e){this.wrapper=Na(),this.textarea=this.wrapper.firstChild},Va.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Va.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=vr(e);if(e.options.moveInputWithCursor){var i=Gn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Va.prototype.showSelection=function(e){var t=this.cm.display;C(t.cursorDiv,e.cursors),C(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Va.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&D(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Va.prototype.getField=function(){return this.textarea},Va.prototype.supportsTouch=function(){return!1},Va.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||M()!=this.textarea))try{this.textarea.focus()}catch(e){}},Va.prototype.blur=function(){this.textarea.blur()},Va.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Va.prototype.receivedFocus=function(){this.slowPoll()},Va.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Va.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Va.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Me(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l<u&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return Zr(t,(function(){Ma(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Va.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Va.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Va.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=ur(n,e),u=r.scroller.scrollTop;if(o&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ei(n,Zi)(n.doc,Si(o),q);var c,f=i.style.cssText,p=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=window.scrollY),r.input.focus(),l&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),k){xe(e);var m=function(){pe(window,"mouseup",m),setTimeout(v,20)};de(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=f,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ei(n,so)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Va.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Va.prototype.setUneditable=function(){},Va.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=xa&&i(e,t,n)}:i)}e.defineOption=n,e.Init=xa,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Pi(e)}),!0),n("indentUnit",2,Pi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Ri(e),zn(e),dr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(et(r,o))}r++}));for(var i=n.length-1;i>=0;i--)mo(e.doc,t,n[i],et(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=xa&&e.refresh()})),n("specialCharPlaceholder",Jt,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!_),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){wa(e),mi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Qo(t),i=n!=xa&&Qo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Oa,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=pi(t,e.options.lineNumbers),mi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?ar(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Ur(e)}),!0),n("scrollbarStyle","native",(function(e){Wr(e),Ur(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=pi(e.options.gutters,t),mi(e)}),!0),n("firstLineNumber",1,mi,!0),n("lineNumberFormatter",(function(e){return e}),mi,!0),n("showCursorWhenSelecting",!1,gr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Sr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Sa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,gr,!0),n("singleCursorHeightPerLine",!0,gr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Ri,!0),n("addModeClass",!1,Ri,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Ri,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(Ta),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ei(this,t[e])(this,n,i),he(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Qo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:ti((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,dr(this)})),removeOverlay:ti((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void dr(this)}})),indentLine:ti((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),Je(this.doc,e)&&Aa(this,e,t,n)})),indentSelection:ti((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Aa(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Rr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Aa(this,l,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&Qi(this.doc,r,new ki(o,u[r].to()),q)}}})),getTokenAt:function(e,t){return yt(this,e,t)},getLineTokens:function(e,t){return yt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=st(this.doc,e);var t,n=ft(this,$e(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var u=i._global[l];u.pred(o,this)&&-1==z(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(e,t){var n=this.doc;return pt(this,(e=at(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Gn(this,null==e?n.head:"object"==typeof e?st(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return $n(this,st(this.doc,e),t||"page")},coordsChar:function(e,t){return Qn(this,(e=Vn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Vn(this,{top:e,left:0},t||"page").top,Xe(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=$e(this.doc,e)}else r=e;return Wn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Ht(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,l=this.display,u=(e=Gn(this,st(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),l.sizer.appendChild(t),"over"==r)u=e.top;else if("above"==r||"near"==r){var d=Math.max(l.wrapper.clientHeight,this.doc.height),f=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>d)&&e.top>t.offsetHeight?u=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=d&&(u=e.bottom),c+t.offsetWidth>f&&(c=f-t.offsetWidth)}t.style.top=u+"px",t.style.left=t.style.right="","right"==i?(c=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(o=this,a={left:c,top:u,right:c+t.offsetWidth,bottom:u+t.offsetHeight},null!=(s=Ar(o,a)).scrollTop&&Dr(o,s.scrollTop),null!=s.scrollLeft&&Nr(o,s.scrollLeft))},triggerOnKeyDown:ti(ca),triggerOnKeyPress:ti(fa),triggerOnKeyUp:da,triggerOnMouseDown:ti(ga),execCommand:function(e){if(ta.hasOwnProperty(e))return ta[e].call(null,this)},triggerElectric:ti((function(e){ja(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=st(this.doc,e),a=0;a<t&&!(o=Fa(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:ti((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Fa(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),W)})),deleteH:ti((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Xo(this,(function(n){var i=Fa(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=st(this.doc,e),s=0;s<t;++s){var l=Gn(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Ba(this,l,i,n)).hitSide)break}return a},moveV:ti((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=Gn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Ba(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Pr(n,$n(n,l,"div").top-s.top),l}),W),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=$e(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ee(o,i)?function(e){return ee(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ee(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new ki(et(e.line,n),et(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?I(this.display.cursorDiv,"CodeMirror-overwrite"):O(this.display.cursorDiv,"CodeMirror-overwrite"),he(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==M()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ti((function(e,t){Mr(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-On(this)-this.display.barHeight,width:e.scrollWidth-On(this)-this.display.barWidth,clientHeight:Cn(this),clientWidth:Tn(this)}},scrollIntoView:ti((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:et(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Ir(e),e.curOp.scrollToPos=t}(this,e):jr(this,e.from,e.to,e.margin)})),setSize:ti((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Bn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){fr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,he(this,"refresh",this)})),operation:function(e){return Zr(this,e)},startOperation:function(){return $r(this)},endOperation:function(){return Gr(this)},refresh:ti((function(){var e=this.display.cachedTextHeight;dr(this),this.curOp.forceUpdate=!0,zn(this),Mr(this,this.doc.scrollLeft,this.doc.scrollTop),ui(this.display),(null==e||Math.abs(e-rr(this.display))>.5||this.options.lineWrapping)&&lr(this),he(this,"refresh",this)})),swapDoc:ti((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Di(this,e),zn(this),this.display.input.reset(),Mr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,ln(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ye(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Ta);var $a="iter insert remove copy getEditor constructor".split(" ");for(var Ga in Ro.prototype)Ro.prototype.hasOwnProperty(Ga)&&z($a,Ga)<0&&(Ta.prototype[Ga]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ro.prototype[Ga]));return ye(Ro),Ta.inputStyles={textarea:Va,contenteditable:za},Ta.defineMode=function(e){Ta.defaults.mode||"null"==e||(Ta.defaults.mode=e),Ne.apply(this,arguments)},Ta.defineMIME=function(e,t){Le[e]=t},Ta.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ta.defineMIME("text/plain","null"),Ta.defineExtension=function(e,t){Ta.prototype[e]=t},Ta.defineDocExtension=function(e,t){Ro.prototype[e]=t},Ta.fromTextArea=function(e,t){if((t=t?N(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=M();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(de(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(pe(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Ta((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=pe,e.on=de,e.wheelEventPixels=_i,e.Doc=Ro,e.splitLines=Re,e.countColumn=F,e.findColumn=V,e.isWordChar=Z,e.Pass=U,e.signal=he,e.Line=$t,e.changeEnd=Oi,e.scrollbarModel=Hr,e.Pos=et,e.cmpPos=tt,e.modes=De,e.mimeModes=Le,e.resolveMode=Fe,e.getMode=Be,e.modeExtensions=ze,e.extendMode=Ue,e.copyState=qe,e.startState=We,e.innerMode=He,e.commands=ta,e.keyMap=Ho,e.keyName=Yo,e.isModifierKey=Go,e.lookupKey=$o,e.normalizeKeyMap=Vo,e.StringStream=Ve,e.SharedTextMarker=To,e.TextMarker=So,e.LineWidget=xo,e.e_preventDefault=be,e.e_stopPropagation=_e,e.e_stop=xe,e.addClass=I,e.contains=R,e.rmClass=O,e.keyNames=Bo}(Ta),Ta.version="5.56.0",Ta}()},function(e,t,n){"use strict";function r(){return function(){throw new Error("Unimplemented abstract method.")}()}n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var i=0;function o(e){return e.ol_uid||(e.ol_uid=String(++i))}var a="5.3.3"},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"f",(function(){return u}));
+/*! *****************************************************************************
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+***************************************************************************** */
+var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function u(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return _})),n.d(t,"i",(function(){return b})),n.d(t,"j",(function(){return M})),n.d(t,"k",(function(){return v})),n.d(t,"l",(function(){return u})),n.d(t,"m",(function(){return i})),n.d(t,"n",(function(){return W})),n.d(t,"o",(function(){return $})),n.d(t,"p",(function(){return w})),n.d(t,"q",(function(){return F})),n.d(t,"r",(function(){return I})),n.d(t,"s",(function(){return g})),n.d(t,"t",(function(){return x})),n.d(t,"u",(function(){return H})),n.d(t,"v",(function(){return k})),n.d(t,"w",(function(){return a}));var r=n(0);function i(e,t,n){return n?-1===n.indexOf("\n")?"".concat(e," #").concat(n):"".concat(e,"\n")+n.replace(/^/gm,"".concat(t||"","#")):e}var o=function e(){Object(r.j)(this,e)};function a(e,t,n){if(Array.isArray(e))return e.map((function(e,t){return a(e,String(t),n)}));if(e&&"function"==typeof e.toJSON){var r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=function(e){r.res=e,delete n.onCreate});var i=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(i),i}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}var s=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e){var i;return Object(r.j)(this,n),(i=t.call(this)).value=e,i}return Object(r.i)(n,[{key:"toJSON",value:function(e,t){return t&&t.keep?this.value:a(this.value,e,t)}},{key:"toString",value:function(){return String(this.value)}}]),n}(o);function l(e,t,n){for(var r=n,i=t.length-1;i>=0;--i){var o=t[i],a=Number.isInteger(o)&&o>=0?[]:{};a[o]=r,r=a}return e.createNode(r,!1)}var u=function(e){return null==e||"object"===Object(r.h)(e)&&e[Symbol.iterator]().next().done},c=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e){var i;return Object(r.j)(this,n),i=t.call(this),Object(r.l)(Object(r.w)(i),"items",[]),i.schema=e,i}return Object(r.i)(n,[{key:"addIn",value:function(e,t){if(u(e))this.add(t);else{var i=Object(r.x)(e),o=i[0],a=i.slice(1),s=this.get(o,!0);if(s instanceof n)s.addIn(a,t);else{if(void 0!==s||!this.schema)throw new Error("Expected YAML collection at ".concat(o,". Remaining path: ").concat(a));this.set(o,l(this.schema,a,t))}}}},{key:"deleteIn",value:function(e){var t=Object(r.x)(e),i=t[0],o=t.slice(1);if(0===o.length)return this.delete(i);var a=this.get(i,!0);if(a instanceof n)return a.deleteIn(o);throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(o))}},{key:"getIn",value:function(e,t){var i=Object(r.x)(e),o=i[0],a=i.slice(1),l=this.get(o,!0);return 0===a.length?!t&&l instanceof s?l.value:l:l instanceof n?l.getIn(a,t):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every((function(e){if(!e||"PAIR"!==e.type)return!1;var t=e.value;return null==t||t instanceof s&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}},{key:"hasIn",value:function(e){var t=Object(r.x)(e),i=t[0],o=t.slice(1);if(0===o.length)return this.has(i);var a=this.get(i,!0);return a instanceof n&&a.hasIn(o)}},{key:"setIn",value:function(e,t){var i=Object(r.x)(e),o=i[0],a=i.slice(1);if(0===a.length)this.set(o,t);else{var s=this.get(o,!0);if(s instanceof n)s.setIn(a,t);else{if(void 0!==s||!this.schema)throw new Error("Expected YAML collection at ".concat(o,". Remaining path: ").concat(a));this.set(o,l(this.schema,a,t))}}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(e,t,o,a){var s=this,l=t.blockItem,u=t.flowChars,c=t.isMap,d=t.itemIndent,f=e,p=f.indent,h=f.indentStep,m=f.stringify,g=this.type===r.e.FLOW_MAP||this.type===r.e.FLOW_SEQ||e.inFlow;g&&(d+=h);var v=c&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:v,indent:d,inFlow:g,type:null});var y,b=!1,_=!1,w=this.items.reduce((function(t,n,r){var o;n&&(!b&&n.spaceBefore&&t.push({type:"comment",str:""}),n.commentBefore&&n.commentBefore.match(/^.*$/gm).forEach((function(e){t.push({type:"comment",str:"#".concat(e)})})),n.comment&&(o=n.comment),g&&(!b&&n.spaceBefore||n.commentBefore||n.comment||n.key&&(n.key.commentBefore||n.key.comment)||n.value&&(n.value.commentBefore||n.value.comment))&&(_=!0)),b=!1;var a=m(n,e,(function(){return o=null}),(function(){return b=!0}));return g&&!_&&a.includes("\n")&&(_=!0),g&&r<s.items.length-1&&(a+=","),a=i(a,d,o),b&&(o||g)&&(b=!1),t.push({type:"item",str:a}),t}),[]);if(0===w.length)y=u.start+u.end;else if(g){var x=u.start,k=u.end,E=w.map((function(e){return e.str}));if(_||E.reduce((function(e,t){return e+t.length+2}),2)>n.maxFlowStringSingleLineLength){y=x;var S,O=Object(r.g)(E);try{for(O.s();!(S=O.n()).done;){var T=S.value;y+=T?"\n".concat(h).concat(p).concat(T):"\n"}}catch(e){O.e(e)}finally{O.f()}y+="\n".concat(p).concat(k)}else y="".concat(x," ").concat(E.join(" ")," ").concat(k)}else{var C=w.map(l);y=C.shift();var A,P=Object(r.g)(C);try{for(P.s();!(A=P.n()).done;){var R=A.value;y+=R?"\n".concat(p).concat(R):"\n"}}catch(e){P.e(e)}finally{P.f()}}return this.comment?(y+="\n"+this.comment.replace(/^/gm,"".concat(p,"#")),o&&o()):b&&a&&a(),y}}]),n}(o);function d(e){var t=e instanceof s?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}Object(r.l)(c,"maxFlowStringSingleLineLength",60);var f=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){return Object(r.j)(this,n),t.apply(this,arguments)}return Object(r.i)(n,[{key:"add",value:function(e){this.items.push(e)}},{key:"delete",value:function(e){var t=d(e);return"number"==typeof t&&this.items.splice(t,1).length>0}},{key:"get",value:function(e,t){var n=d(e);if("number"==typeof n){var r=this.items[n];return!t&&r instanceof s?r.value:r}}},{key:"has",value:function(e){var t=d(e);return"number"==typeof t&&t<this.items.length}},{key:"set",value:function(e,t){var n=d(e);if("number"!=typeof n)throw new Error("Expected a valid index, not ".concat(e,"."));this.items[n]=t}},{key:"toJSON",value:function(e,t){var n=[];t&&t.onCreate&&t.onCreate(n);var i,o=0,s=Object(r.g)(this.items);try{for(s.s();!(i=s.n()).done;){var l=i.value;n.push(a(l,String(o++),t))}}catch(e){s.e(e)}finally{s.f()}return n}},{key:"toString",value:function(e,t,i){return e?Object(r.s)(Object(r.t)(n.prototype),"toString",this).call(this,e,{blockItem:function(e){return"comment"===e.type?e.str:"- ".concat(e.str)},flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,i):JSON.stringify(this)}}]),n}(c),p=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Object(r.j)(this,n),(i=t.call(this)).key=e,i.value=o,i.type=n.Type.PAIR,i}return Object(r.i)(n,[{key:"addToJSMap",value:function(e,t){var n=a(this.key,"",e);if(t instanceof Map){var i=a(this.value,n,e);t.set(n,i)}else if(t instanceof Set)t.add(n);else{var s=function(e,t,n){return null===t?"":"object"!==Object(r.h)(t)?String(t):e instanceof o&&n&&n.doc?e.toString({anchors:{},doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(t)}(this.key,n,e);t[s]=a(this.value,s,e)}return t}},{key:"toJSON",value:function(e,t){var n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}},{key:"toString",value:function(e,t,n){if(!e||!e.doc)return JSON.stringify(this);var a=e.doc.options,l=a.indent,u=a.indentSeq,d=a.simpleKeys,p=this.key,h=this.value,m=p instanceof o&&p.comment;if(d){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(p instanceof c){throw new Error("With simple keys, collection cannot be used as a key value")}}var g=!d&&(!p||m||p instanceof c||p.type===r.e.BLOCK_FOLDED||p.type===r.e.BLOCK_LITERAL),v=e,y=v.doc,b=v.indent,_=v.indentStep,w=v.stringify;e=Object.assign({},e,{implicitKey:!g,indent:b+_});var x=!1,k=w(p,e,(function(){return m=null}),(function(){return x=!0}));if(k=i(k,e.indent,m),e.allNullValues&&!d)return this.comment?(k=i(k,e.indent,this.comment),t&&t()):x&&!m&&n&&n(),e.inFlow?k:"? ".concat(k);k=g?"? ".concat(k,"\n").concat(b,":"):"".concat(k,":"),this.comment&&(k=i(k,e.indent,this.comment),t&&t());var E="",S=null;if(h instanceof o){if(h.spaceBefore&&(E="\n"),h.commentBefore){var O=h.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));E+="\n".concat(O)}S=h.comment}else h&&"object"===Object(r.h)(h)&&(h=y.schema.createNode(h,!0));e.implicitKey=!1,!g&&!this.comment&&h instanceof s&&(e.indentAtStart=k.length+1),x=!1,!u&&l>=2&&!e.inFlow&&!g&&h instanceof f&&h.type!==r.e.FLOW_SEQ&&!h.tag&&!y.anchors.getName(h)&&(e.indent=e.indent.substr(2));var T=w(h,e,(function(){return S=null}),(function(){return x=!0})),C=" ";if(E||this.comment)C="".concat(E,"\n").concat(e.indent);else if(!g&&h instanceof c){("["===T[0]||"{"===T[0])&&!T.includes("\n")||(C="\n".concat(e.indent))}return x&&!S&&n&&n(),i(k+C+T,e.indent,S)}},{key:"commentBefore",get:function(){return this.key instanceof o?this.key.commentBefore:void 0},set:function(e){if(null==this.key&&(this.key=new s(null)),!(this.key instanceof o)){throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.")}this.key.commentBefore=e}}]),n}(o);Object(r.l)(p,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var h=function e(t,n){if(t instanceof m){var i=n.get(t.source);return i.count*i.aliasCount}if(t instanceof c){var o,a=0,s=Object(r.g)(t.items);try{for(s.s();!(o=s.n()).done;){var l=e(o.value,n);l>a&&(a=l)}}catch(e){s.e(e)}finally{s.f()}return a}if(t instanceof p){var u=e(t.key,n),d=e(t.value,n);return Math.max(u,d)}return 1},m=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e){var i;return Object(r.j)(this,n),(i=t.call(this)).source=e,i.type=r.e.ALIAS,i}return Object(r.i)(n,null,[{key:"stringify",value:function(e,t){var n=e.range,r=e.source,i=t.anchors,o=t.doc,a=t.implicitKey,s=t.inStringifyKey,l=Object.keys(i).find((function(e){return i[e]===r}));if(!l&&s&&(l=o.anchors.getName(r)||o.anchors.newName()),l)return"*".concat(l).concat(a?" ":"");var u=o.anchors.getName(r)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(u," [").concat(n,"]"))}}]),Object(r.i)(n,[{key:"toJSON",value:function(e,t){if(!t)return a(this.source,e,t);var n=t.anchors,i=t.maxAliasCount,o=n.get(this.source);if(!o||void 0===o.res){var s="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new r.v(this.cstNode,s):new ReferenceError(s)}if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=h(this.source,n)),o.count*o.aliasCount>i)){var l="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new r.v(this.cstNode,l):new ReferenceError(l)}return o.res}},{key:"toString",value:function(e){return n.stringify(this,e)}},{key:"tag",set:function(e){throw new Error("Alias nodes cannot have tags")}}]),n}(o);function g(e,t){var n,i=t instanceof s?t.value:t,o=Object(r.g)(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a instanceof p){if(a.key===t||a.key===i)return a;if(a.key&&a.key.value===i)return a}}}catch(e){o.e(e)}finally{o.f()}}Object(r.l)(m,"default",!0);var v=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){return Object(r.j)(this,n),t.apply(this,arguments)}return Object(r.i)(n,[{key:"add",value:function(e,t){e?e instanceof p||(e=new p(e.key||e,e.value)):e=new p(e);var n=g(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error("Key ".concat(e.key," already set"));n.value=e.value}else if(r){var i=this.items.findIndex((function(t){return r(e,t)<0}));-1===i?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}},{key:"delete",value:function(e){var t=g(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}},{key:"get",value:function(e,t){var n=g(this.items,e),r=n&&n.value;return!t&&r instanceof s?r.value:r}},{key:"has",value:function(e){return!!g(this.items,e)}},{key:"set",value:function(e,t){this.add(new p(e,t),!0)}},{key:"toJSON",value:function(e,t,n){var i=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(i);var o,a=Object(r.g)(this.items);try{for(a.s();!(o=a.n()).done;){o.value.addToJSMap(t,i)}}catch(e){a.e(e)}finally{a.f()}return i}},{key:"toString",value:function(e,t,i){if(!e)return JSON.stringify(this);var o,a=Object(r.g)(this.items);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(!(s instanceof p))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(s)," instead"))}}catch(e){a.e(e)}finally{a.f()}return Object(r.s)(Object(r.t)(n.prototype),"toString",this).call(this,e,{blockItem:function(e){return e.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,i)}}]),n}(c),y=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e){var i;if(Object(r.j)(this,n),e instanceof p){var o=e.value;o instanceof f||((o=new f).items.push(e.value),o.range=e.value.range),(i=t.call(this,e.key,o)).range=e.range}else i=t.call(this,new s("<<"),new f);return i.type=p.Type.MERGE_PAIR,Object(r.y)(i)}return Object(r.i)(n,[{key:"addToJSMap",value:function(e,t){var n,i=Object(r.g)(this.value.items);try{for(i.s();!(n=i.n()).done;){var o=n.value.source;if(!(o instanceof v))throw new Error("Merge sources must be maps");var a,s=o.toJSON(null,e,Map),l=Object(r.g)(s);try{for(l.s();!(a=l.n()).done;){var u=Object(r.o)(a.value,2),c=u[0],d=u[1];t instanceof Map?t.has(c)||t.set(c,d):t instanceof Set?t.add(c):Object.prototype.hasOwnProperty.call(t,c)||(t[c]=d)}}catch(e){l.e(e)}finally{l.f()}}}catch(e){i.e(e)}finally{i.f()}return t}},{key:"toString",value:function(e,t){var i=this.value;if(i.items.length>1)return Object(r.s)(Object(r.t)(n.prototype),"toString",this).call(this,e,t);this.value=i.items[0];var o=Object(r.s)(Object(r.t)(n.prototype),"toString",this).call(this,e,t);return this.value=i,o}}]),n}(p),b={defaultType:r.e.BLOCK_LITERAL,lineWidth:76},_={trueStr:"true",falseStr:"false"},w={asBigInt:!1},x={nullStr:"null"},k={defaultType:r.e.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function E(e,t,n){var i,o=Object(r.g)(t);try{for(o.s();!(i=o.n()).done;){var a=i.value,l=a.format,u=a.test,c=a.resolve;if(u){var d=e.match(u);if(d){var f=c.apply(null,d);return f instanceof s||(f=new s(f)),l&&(f.format=l),f}}}}catch(e){o.e(e)}finally{o.f()}return n&&(e=n(e)),new s(e)}var S=function(e,t){for(var n=e[t+1];" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t};function O(e,t,n,r){var i=r.indentAtStart,o=r.lineWidth,a=void 0===o?80:o,s=r.minContentWidth,l=void 0===s?20:s,u=r.onFold,c=r.onOverflow;if(!a||a<0)return e;var d=Math.max(1+l,1+a-t.length);if(e.length<=d)return e;var f,p=[],h={},m=a-("number"==typeof i?i:t.length),g=void 0,v=void 0,y=!1,b=-1;for("block"===n&&-1!==(b=S(e,b))&&(m=b+d);f=e[b+=1];){if("quoted"===n&&"\\"===f)switch(e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}if("\n"===f)"block"===n&&(b=S(e,b)),m=b+d,g=void 0;else{if(" "===f&&v&&" "!==v&&"\n"!==v&&"\t"!==v){var _=e[b+1];_&&" "!==_&&"\n"!==_&&"\t"!==_&&(g=b)}if(b>=m)if(g)p.push(g),m=g+d,g=void 0;else if("quoted"===n){for(;" "===v||"\t"===v;)v=f,f=e[b+=1],y=!0;p.push(b-2),h[b-2]=!0,m=b-2+d,g=void 0}else y=!0}v=f}if(y&&c&&c(),0===p.length)return e;u&&u();for(var w=e.slice(0,p[0]),x=0;x<p.length;++x){var k=p[x],E=p[x+1]||e.length;"quoted"===n&&h[k]&&(w+="".concat(e[k],"\\")),w+="\n".concat(t).concat(e.slice(k+1,E))}return w}var T=function(e){var t=e.indentAtStart;return t?Object.assign({indentAtStart:t},k.fold):k.fold},C=function(e){return/^(%|---|\.\.\.)/m.test(e)};function A(e,t){var n=t.implicitKey,r=k.doubleQuoted,i=r.jsonEncoding,o=r.minMultiLineLength,a=JSON.stringify(e);if(i)return a;for(var s=t.indent||(C(e)?" ":""),l="",u=0,c=0,d=a[c];d;d=a[++c])if(" "===d&&"\\"===a[c+1]&&"n"===a[c+2]&&(l+=a.slice(u,c)+"\\ ",u=c+=1,d="\\"),"\\"===d)switch(a[c+1]){case"u":l+=a.slice(u,c);var f=a.substr(c+2,4);switch(f){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:"00"===f.substr(0,2)?l+="\\x"+f.substr(2):l+=a.substr(c,6)}u=(c+=5)+1;break;case"n":if(n||'"'===a[c+2]||a.length<o)c+=1;else{for(l+=a.slice(u,c)+"\n\n";"\\"===a[c+2]&&"n"===a[c+3]&&'"'!==a[c+4];)l+="\n",c+=2;l+=s," "===a[c+2]&&(l+="\\"),u=(c+=1)+1}break;default:c+=1}return l=u?l+a.slice(u):a,n?l:O(l,s,"quoted",T(t))}function P(e,t){if(t.implicitKey){if(/\n/.test(e))return A(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return A(e,t);var n=t.indent||(C(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,"$&\n".concat(n))+"'";return t.implicitKey?r:O(r,n,"flow",T(t))}function R(e,t,n,i){var o=e.comment,a=e.type,s=e.value;if(/\n[\t ]+$/.test(s)||/^\s*$/.test(s))return A(s,t);var l=t.indent||(t.forceBlockIndent||C(s)?" ":""),u=l?"2":"1",c=a!==r.e.BLOCK_FOLDED&&(a===r.e.BLOCK_LITERAL||!function(e,t){var n=e.length;if(n<=t)return!1;for(var r=0,i=0;r<n;++r)if("\n"===e[r]){if(r-i>t)return!0;if(n-(i=r+1)<=t)return!1}return!0}(s,k.fold.lineWidth-l.length)),d=c?"|":">";if(!s)return d+"\n";var f="",p="";if(s=s.replace(/[\n\t ]*$/,(function(e){var t=e.indexOf("\n");return-1===t?d+="-":s!==e&&t===e.length-1||(d+="+",i&&i()),p=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(function(e){-1!==e.indexOf(" ")&&(d+=u);var t=e.match(/ +$/);return t?(f=e.slice(0,-t[0].length),t[0]):(f=e,"")})),p&&(p=p.replace(/\n+(?!\n|$)/g,"$&".concat(l))),f&&(f=f.replace(/\n+/g,"$&".concat(l))),o&&(d+=" #"+o.replace(/ ?[\r\n]+/g," "),n&&n()),!s)return"".concat(d).concat(u,"\n").concat(l).concat(p);if(c)return s=s.replace(/\n+/g,"$&".concat(l)),"".concat(d,"\n").concat(l).concat(f).concat(s).concat(p);s=s.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(l));var h=O("".concat(f).concat(s).concat(p),l,"block",k.fold);return"".concat(d,"\n").concat(l).concat(h)}function M(e,t,n,i){var o=k.defaultType,a=t.implicitKey,s=t.inFlow,l=e,u=l.type,c=l.value;"string"!=typeof c&&(c=String(c),e=Object.assign({},e,{value:c}));var d=function(o){switch(o){case r.e.BLOCK_FOLDED:case r.e.BLOCK_LITERAL:return R(e,t,n,i);case r.e.QUOTE_DOUBLE:return A(c,t);case r.e.QUOTE_SINGLE:return P(c,t);case r.e.PLAIN:return function(e,t,n,i){var o=e.comment,a=e.type,s=e.value,l=t.actualString,u=t.implicitKey,c=t.indent,d=t.inFlow;if(u&&/[\n[\]{},]/.test(s)||d&&/[[\]{},]/.test(s))return A(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return u||d||-1===s.indexOf("\n")?-1!==s.indexOf('"')&&-1===s.indexOf("'")?P(s,t):A(s,t):R(e,t,n,i);if(!u&&!d&&a!==r.e.PLAIN&&-1!==s.indexOf("\n"))return R(e,t,n,i);if(""===c&&C(s))return t.forceBlockIndent=!0,R(e,t,n,i);var f=s.replace(/\n+/g,"$&\n".concat(c));if(l){var p=t.doc.schema.tags;if("string"!=typeof E(f,p,p.scalarFallback).value)return A(s,t)}var h=u?f:O(f,c,"flow",T(t));return!o||d||-1===h.indexOf("\n")&&-1===o.indexOf("\n")?h:(n&&n(),function(e,t,n){if(!n)return e;var r=n.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(r,"\n").concat(t).concat(e)}(h,c,o))}(e,t,n,i);default:return null}};u!==r.e.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)?u=r.e.QUOTE_DOUBLE:!a&&!s||u!==r.e.BLOCK_FOLDED&&u!==r.e.BLOCK_LITERAL||(u=r.e.QUOTE_DOUBLE);var f=d(u);if(null===f&&null===(f=d(o)))throw new Error("Unsupported default string type ".concat(o));return f}function I(e){var t=e.format,n=e.minFractionDigits,r=e.tag,i=e.value;if("bigint"==typeof i)return String(i);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";var o=JSON.stringify(i);if(!t&&n&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(o)){var a=o.indexOf(".");a<0&&(a=o.length,o+=".");for(var s=n-(o.length-a-1);s-- >0;)o+="0"}return o}function j(e,t){var n,i,o;switch(t.type){case r.e.FLOW_MAP:n="}",i="flow map";break;case r.e.FLOW_SEQ:n="]",i="flow sequence";break;default:return void e.push(new r.n(t,"Not a flow collection!?"))}for(var a=t.items.length-1;a>=0;--a){var s=t.items[a];if(!s||s.type!==r.e.COMMENT){o=s;break}}if(o&&o.char!==n){var l,u="Expected ".concat(i," to end with ").concat(n);"number"==typeof o.offset?(l=new r.n(t,u)).offset=o.offset+1:(l=new r.n(o,u),o.range&&o.range.end&&(l.offset=o.range.end-o.range.start)),e.push(l)}}function D(e,t){var n=t.context.src[t.range.start-1];if("\n"!==n&&"\t"!==n&&" "!==n){e.push(new r.n(t,"Comments must be separated from other tokens by white space characters"))}}function L(e,t){var n=String(t),i=n.substr(0,8)+"..."+n.substr(-8);return new r.n(e,'The "'.concat(i,'" key is too long'))}function N(e,t){var n,i=Object(r.g)(t);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.afterKey,s=o.before,l=o.comment,u=e.items[s];u?(a&&u.value&&(u=u.value),void 0===l?!a&&u.commentBefore||(u.spaceBefore=!0):u.commentBefore?u.commentBefore+="\n"+l:u.commentBefore=l):void 0!==l&&(e.comment?e.comment+="\n"+l:e.comment=l)}}catch(e){i.e(e)}finally{i.f()}}function F(e,t){var n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((function(n){n.source||(n.source=t),e.errors.push(n)})),n.str):""}function B(e,t){var n=t.tag,i=t.type,o=!1;if(n){var a=n.handle,s=n.suffix,l=n.verbatim;if(l){if("!"!==l&&"!!"!==l)return l;var u="Verbatim tags aren't resolved, so ".concat(l," is invalid.");e.errors.push(new r.n(t,u))}else if("!"!==a||s)try{return function(e,t){var n=t.tag,i=n.handle,o=n.suffix,a=e.tagPrefixes.find((function(e){return e.handle===i}));if(!a){var s=e.getDefaults().tagPrefixes;if(s&&(a=s.find((function(e){return e.handle===i}))),!a)throw new r.n(t,"The ".concat(i," tag handle is non-default and was not declared."))}if(!o)throw new r.n(t,"The ".concat(i," tag has no suffix."));if("!"===i&&"1.0"===(e.version||e.options.version)){if("^"===o[0])return e.warnings.push(new r.m(t,"YAML 1.0 ^ tag expansion is not supported")),o;if(/[:/]/.test(o)){var l=o.match(/^([a-z0-9-]+)\/(.*)/i);return l?"tag:".concat(l[1],".yaml.org,2002:").concat(l[2]):"tag:".concat(o)}}return a.prefix+decodeURIComponent(o)}(e,t)}catch(t){e.errors.push(t)}else o=!0}switch(i){case r.e.BLOCK_FOLDED:case r.e.BLOCK_LITERAL:case r.e.QUOTE_DOUBLE:case r.e.QUOTE_SINGLE:return r.u.STR;case r.e.FLOW_MAP:case r.e.MAP:return r.u.MAP;case r.e.FLOW_SEQ:case r.e.SEQ:return r.u.SEQ;case r.e.PLAIN:return o?r.u.STR:null;default:return null}}function z(e,t,n){var i,o=e.schema.tags,a=[],l=Object(r.g)(o);try{for(l.s();!(i=l.n()).done;){var u=i.value;if(u.tag===n){if(!u.test){var d=u.resolve(e,t);return d instanceof c?d:new s(d)}a.push(u)}}}catch(e){l.e(e)}finally{l.f()}var f=F(e,t);return"string"==typeof f&&a.length>0?E(f,a,o.scalarFallback):null}function U(e,t,n){try{var i=z(e,t,n);if(i)return n&&t.tag&&(i.tag=n),i}catch(n){return n.source||(n.source=t),e.errors.push(n),null}try{var o=function(e){switch(e.type){case r.e.FLOW_MAP:case r.e.MAP:return r.u.MAP;case r.e.FLOW_SEQ:case r.e.SEQ:return r.u.SEQ;default:return r.u.STR}}(t);if(!o)throw new Error("The tag ".concat(n," is unavailable"));var a="The tag ".concat(n," is unavailable, falling back to ").concat(o);e.warnings.push(new r.m(t,a));var s=z(e,t,o);return s.tag=n,s}catch(n){var l=new r.v(t,n.message);return l.stack=n.stack,e.errors.push(l),null}}function q(e,t){var n,i={before:[],after:[]},o=!1,a=!1,s=function(e){if(!e)return!1;var t=e.type;return t===r.e.MAP_KEY||t===r.e.MAP_VALUE||t===r.e.SEQ_ITEM}(t.context.parent)?t.context.parent.props.concat(t.props):t.props,l=Object(r.g)(s);try{for(l.s();!(n=l.n()).done;){var u=n.value,c=u.start,d=u.end;switch(t.context.src[c]){case r.a.COMMENT:if(!t.commentHasRequiredWhitespace(c)){e.push(new r.n(t,"Comments must be separated from other tokens by white space characters"))}var f=t.header,p=t.valueRange;(p&&(c>p.start||f&&c>f.start)?i.after:i.before).push(t.context.src.slice(c+1,d));break;case r.a.ANCHOR:if(o){e.push(new r.n(t,"A node can have at most one anchor"))}o=!0;break;case r.a.TAG:if(a){e.push(new r.n(t,"A node can have at most one tag"))}a=!0}}}catch(e){l.e(e)}finally{l.f()}return{comments:i,hasAnchor:o,hasTag:a}}function H(e,t){if(!t)return null;t.error&&e.errors.push(t.error);var n=q(e.errors,t),i=n.comments,o=n.hasAnchor,a=n.hasTag;if(o){var s=e.anchors,l=t.anchor,u=s.getNode(l);u&&(s.map[s.newName(l)]=u),s.map[l]=t}if(t.type===r.e.ALIAS&&(o||a)){e.errors.push(new r.n(t,"An alias node must not specify any properties"))}var c=function(e,t){var n=e.anchors,i=e.errors,o=e.schema;if(t.type===r.e.ALIAS){var a=t.rawValue,s=n.getNode(a);if(!s){var l="Aliased anchor not found: ".concat(a);return i.push(new r.v(t,l)),null}var u=new m(s);return n._cstAliases.push(u),u}var c=B(e,t);if(c)return U(e,t,c);if(t.type!==r.e.PLAIN){var d="Failed to resolve ".concat(t.type," node here");return i.push(new r.f(t,d)),null}try{return E(F(e,t),o.tags,o.tags.scalarFallback)}catch(e){return e.source||(e.source=t),i.push(e),null}}(e,t);if(c){c.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(c.cstNode=t),e.options.keepNodeTypes&&(c.type=t.type);var d=i.before.join("\n");d&&(c.commentBefore=c.commentBefore?"".concat(c.commentBefore,"\n").concat(d):d);var f=i.after.join("\n");f&&(c.comment=c.comment?"".concat(c.comment,"\n").concat(f):f)}return t.resolved=c}function W(e,t){if(t.type!==r.e.MAP&&t.type!==r.e.FLOW_MAP){var n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new r.f(t,n)),null}var i=t.type===r.e.FLOW_MAP?function(e,t){for(var n=[],i=[],o=void 0,a=!1,s="{",l=0;l<t.items.length;++l){var u=t.items[l];if("string"==typeof u.char){var c=u.char,d=u.offset;if("?"===c&&void 0===o&&!a){a=!0,s=":";continue}if(":"===c){if(void 0===o&&(o=null),":"===s){s=",";continue}}else if(a&&(void 0===o&&","!==c&&(o=null),a=!1),void 0!==o&&(i.push(new p(o)),o=void 0,","===c)){s=":";continue}if("}"===c){if(l===t.items.length-1)continue}else if(c===s){s=":";continue}var f="Flow map contains an unexpected ".concat(c),h=new r.f(t,f);h.offset=d,e.errors.push(h)}else u.type===r.e.BLANK_LINE?n.push({afterKey:!!o,before:i.length}):u.type===r.e.COMMENT?(D(e.errors,u),n.push({afterKey:!!o,before:i.length,comment:u.comment})):void 0===o?(","===s&&e.errors.push(new r.n(u,"Separator , missing in flow map")),o=H(e,u)):(","!==s&&e.errors.push(new r.n(u,"Indicator : missing in flow map entry")),i.push(new p(o,H(e,u))),o=void 0,a=!1)}j(e.errors,t),void 0!==o&&i.push(new p(o));return{comments:n,items:i}}(e,t):function(e,t){for(var n=[],i=[],o=void 0,a=null,s=0;s<t.items.length;++s){var l=t.items[s];switch(l.type){case r.e.BLANK_LINE:n.push({afterKey:!!o,before:i.length});break;case r.e.COMMENT:n.push({afterKey:!!o,before:i.length,comment:l.comment});break;case r.e.MAP_KEY:void 0!==o&&i.push(new p(o)),l.error&&e.errors.push(l.error),o=H(e,l.node),a=null;break;case r.e.MAP_VALUE:if(void 0===o&&(o=null),l.error&&e.errors.push(l.error),!l.context.atLineStart&&l.node&&l.node.type===r.e.MAP&&!l.node.context.atLineStart){e.errors.push(new r.n(l.node,"Nested mappings are not allowed in compact mappings"))}var u=l.node;if(!u&&l.props.length>0){(u=new r.c(r.e.PLAIN,[])).context={parent:l,src:l.context.src};var c=l.range.start+1;if(u.range={start:c,end:c},u.valueRange={start:c,end:c},"number"==typeof l.range.origStart){var d=l.range.origStart+1;u.range.origStart=u.range.origEnd=d,u.valueRange.origStart=u.valueRange.origEnd=d}}var f=new p(o,H(e,u));V(l,f),i.push(f),o&&"number"==typeof a&&l.range.start>a+1024&&e.errors.push(L(t,o)),o=void 0,a=null;break;default:void 0!==o&&i.push(new p(o)),o=H(e,l),a=l.range.start,l.error&&e.errors.push(l.error);e:for(var h=s+1;;++h){var m=t.items[h];switch(m&&m.type){case r.e.BLANK_LINE:case r.e.COMMENT:continue e;case r.e.MAP_VALUE:break e;default:e.errors.push(new r.n(l,"Implicit map keys need to be followed by map values"));break e}}if(l.valueRangeContainsNewline){e.errors.push(new r.n(l,"Implicit map keys need to be on a single line"))}}}void 0!==o&&i.push(new p(o));return{comments:n,items:i}}(e,t),o=i.comments,a=i.items,s=new v;s.items=a,N(s,o);for(var l=!1,u=0;u<a.length;++u){var d=a[u].key;if(d instanceof c&&(l=!0),e.schema.merge&&d&&"<<"===d.value){a[u]=new y(a[u]);var f=a[u].value.items,h=null;f.some((function(e){if(e instanceof m){var t=e.source.type;return t!==r.e.MAP&&t!==r.e.FLOW_MAP&&(h="Merge nodes aliases can only point to maps")}return h="Merge nodes can only have Alias nodes as values"})),h&&e.errors.push(new r.n(t,h))}else for(var g=u+1;g<a.length;++g){var b=a[g].key;if(d===b||d&&b&&Object.prototype.hasOwnProperty.call(d,"value")&&d.value===b.value){var _='Map keys must be unique; "'.concat(d,'" is repeated');e.errors.push(new r.n(t,_));break}}}if(l&&!e.options.mapAsMap){e.warnings.push(new r.m(t,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."))}return t.resolved=s,s}function V(e,t){if(function(e){var t=e.context,n=t.lineStart,i=t.node,o=t.src,a=e.props;if(0===a.length)return!1;var s=a[0].start;if(i&&s>i.valueRange.start)return!1;if(o[s]!==r.a.COMMENT)return!1;for(var l=n;l<s;++l)if("\n"===o[l])return!1;return!0}(e)){var n=e.getPropValue(0,r.a.COMMENT,!0),i=!1,o=t.value.commentBefore;if(o&&o.startsWith(n))t.value.commentBefore=o.substr(n.length+1),i=!0;else{var a=t.value.comment;!e.node&&a&&a.startsWith(n)&&(t.value.comment=a.substr(n.length+1),i=!0)}i&&(t.comment=n)}}function $(e,t){if(t.type!==r.e.SEQ&&t.type!==r.e.FLOW_SEQ){var n="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new r.f(t,n)),null}var i=t.type===r.e.FLOW_SEQ?function(e,t){for(var n=[],i=[],o=!1,a=void 0,s=null,l="[",u=null,c=0;c<t.items.length;++c){var d=t.items[c];if("string"==typeof d.char){var f=d.char,h=d.offset;if(":"===f||!o&&void 0===a||(o&&void 0===a&&(a=l?i.pop():null),i.push(new p(a)),o=!1,a=void 0,s=null),f===l)l=null;else if(l||"?"!==f){if("["!==l&&":"===f&&void 0===a){if(","===l){if((a=i.pop())instanceof p){var m=new r.n(t,"Chaining flow sequence pairs is invalid");m.offset=h,e.errors.push(m)}if(!o&&"number"==typeof s){var g=d.range?d.range.start:d.offset;g>s+1024&&e.errors.push(L(t,a));for(var v=u.context.src,y=s;y<g;++y)if("\n"===v[y]){e.errors.push(new r.n(u,"Implicit keys of flow sequence pairs need to be on a single line"));break}}}else a=null;s=null,o=!1,l=null}else if("["===l||"]"!==f||c<t.items.length-1){var b="Flow sequence contains an unexpected ".concat(f),_=new r.f(t,b);_.offset=h,e.errors.push(_)}}else o=!0}else if(d.type===r.e.BLANK_LINE)n.push({before:i.length});else if(d.type===r.e.COMMENT)D(e.errors,d),n.push({comment:d.comment,before:i.length});else{if(l){var w="Expected a ".concat(l," in flow sequence");e.errors.push(new r.n(d,w))}var x=H(e,d);void 0===a?(i.push(x),u=d):(i.push(new p(a,x)),a=void 0),s=d.range.start,l=","}}j(e.errors,t),void 0!==a&&i.push(new p(a));return{comments:n,items:i}}(e,t):function(e,t){for(var n=[],i=[],o=0;o<t.items.length;++o){var a=t.items[o];switch(a.type){case r.e.BLANK_LINE:n.push({before:i.length});break;case r.e.COMMENT:n.push({comment:a.comment,before:i.length});break;case r.e.SEQ_ITEM:if(a.error&&e.errors.push(a.error),i.push(H(e,a.node)),a.hasProps){e.errors.push(new r.n(a,"Sequence items cannot have tags or anchors before the - indicator"))}break;default:a.error&&e.errors.push(a.error),e.errors.push(new r.f(a,"Unexpected ".concat(a.type," node in sequence")))}}return{comments:n,items:i}}(e,t),o=i.comments,a=i.items,s=new f;if(s.items=a,N(s,o),!e.options.mapAsMap&&a.some((function(e){return e instanceof p&&e.key instanceof c}))){e.warnings.push(new r.m(t,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."))}return t.resolved=s,s}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return f}));var r=n(22);function i(e,t,n,r){for(var i,o=0,a=e.length;o<a;++o)if((i=e[o]).listener===t&&i.bindTo===n)return r&&(i.deleteIndex=o),i}function o(e,t){var n=a(e);return n?n[t]:void 0}function a(e,t){var n=e.ol_lm;return!n&&t&&(n=e.ol_lm={}),n}function s(e,t){var n=o(e,t);if(n){for(var i=0,s=n.length;i<s;++i)e.removeEventListener(t,n[i].boundListener),Object(r.b)(n[i]);n.length=0;var l=a(e);l&&(delete l[t],0===Object.keys(l).length&&function(e){delete e.ol_lm}(e))}}function l(e,t,n,r,o){var s=a(e,!0),l=s[t];l||(l=s[t]=[]);var u=i(l,n,r,!1);return u?o||(u.callOnce=!1):(u={bindTo:r,callOnce:!!o,listener:n,target:e,type:t},e.addEventListener(t,function(e){var t=function(t){var n=e.listener,r=e.bindTo||e.target;return e.callOnce&&d(e),n.call(r,t)};return e.boundListener=t,t}(u)),l.push(u)),u}function u(e,t,n,r){return l(e,t,n,r,!0)}function c(e,t,n,r){var a=o(e,t);if(a){var s=i(a,n,r,!0);s&&d(s)}}function d(e){if(e&&e.target){e.target.removeEventListener(e.type,e.boundListener);var t=o(e.target,e.type);if(t){var n="deleteIndex"in e?e.deleteIndex:t.indexOf(e);-1!==n&&t.splice(n,1),0===t.length&&s(e.target,e.type)}Object(r.b)(e)}}function f(e){var t=a(e);if(t)for(var n in t)s(e,n)}},function(e,t,n){"use strict";t.a={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"}},function(e,t,n){"use strict";n.r(t),n.d(t,"css",(function(){return h.default})),n.d(t,"CacheProvider",(function(){return v})),n.d(t,"ClassNames",(function(){return A})),n.d(t,"Global",(function(){return E})),n.d(t,"ThemeContext",(function(){return g})),n.d(t,"jsx",(function(){return k})),n.d(t,"keyframes",(function(){return O})),n.d(t,"withEmotionCache",(function(){return y}));var r=n(664),i=n.n(r),o=n(1);var a=function(){function e(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.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=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}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=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]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,o?0:i.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var s=function(e){function t(e,t,r){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var u=0;u<a;++u)t[l++]=n(e[u]+" ",i[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,o){var a=e+";",s=2*t+3*n+4*o;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===A||2===A&&i(l,1)?"-webkit-"+l+l:l}if(0===A||2===A&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(S,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(b,"tb");break;case 232:l=a.replace(b,"tb-rl");break;case 220:l=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(x,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(x,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+o&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?r:r.replace(k,"$1"),n,t)}function o(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,i,o,a,s,u,c){for(var d,f=0,p=t;f<M;++f)switch(d=R[f].call(l,e,p,n,r,i,o,a,s,u,c)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?A=1:(A=2,I=e):A=0),s}function l(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<M){var l=a(-1,n,s,s,T,O,0,0,0,0);void 0!==l&&"string"==typeof l&&(n=l)}var d=function e(n,s,l,d,f){for(var p,h,m,b,w,x=0,k=0,E=0,S=0,R=0,I=0,D=m=p=0,L=0,N=0,F=0,B=0,z=l.length,U=z-1,q="",H="",W="",V="";L<z;){if(h=l.charCodeAt(L),L===U&&0!==k+S+E+x&&(0!==k&&(h=47===k?10:47),S=E=x=0,z++,U++),0===k+S+E+x){if(L===U&&(0<N&&(q=q.replace(c,"")),0<q.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:q+=l.charAt(L)}h=59}switch(h){case 123:for(p=(q=q.trim()).charCodeAt(0),m=1,B=++L;L<z;){switch(h=l.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(L+1)){case 42:case 47:e:{for(D=L+1;D<U;++D)switch(l.charCodeAt(D)){case 47:if(42===h&&42===l.charCodeAt(D-1)&&L+2!==D){L=D+1;break e}break;case 10:if(47===h){L=D+1;break e}}L=D}}break;case 91:h++;case 40:h++;case 34:case 39:for(;L++<U&&l.charCodeAt(L)!==h;);}if(0===m)break;L++}switch(m=l.substring(B,L),0===p&&(p=(q=q.replace(u,"").trim()).charCodeAt(0)),p){case 64:switch(0<N&&(q=q.replace(c,"")),h=q.charCodeAt(1)){case 100:case 109:case 115:case 45:N=s;break;default:N=P}if(B=(m=e(s,N,m,h,f+1)).length,0<M&&(w=a(3,m,N=t(P,q,F),s,T,O,B,h,f,d),q=N.join(""),void 0!==w&&0===(B=(m=w.trim()).length)&&(h=0,m="")),0<B)switch(h){case 115:q=q.replace(_,o);case 100:case 109:case 45:m=q+"{"+m+"}";break;case 107:m=(q=q.replace(g,"$1 $2"))+"{"+m+"}",m=1===A||2===A&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=q+m,112===d&&(H+=m,m="")}else m="";break;default:m=e(s,t(s,q,F),m,d,f+1)}W+=m,m=F=N=D=p=0,q="",h=l.charCodeAt(++L);break;case 125:case 59:if(1<(B=(q=(0<N?q.replace(c,""):q).trim()).length))switch(0===D&&(p=q.charCodeAt(0),45===p||96<p&&123>p)&&(B=(q=q.replace(" ",":")).length),0<M&&void 0!==(w=a(1,q,s,n,T,O,H.length,d,f,d))&&0===(B=(q=w.trim()).length)&&(q="\0\0"),p=q.charCodeAt(0),h=q.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){V+=q+l.charAt(L);break}default:58!==q.charCodeAt(B-1)&&(H+=r(q,p,h,q.charCodeAt(2)))}F=N=D=p=0,q="",h=l.charCodeAt(++L)}}switch(h){case 13:case 10:47===k?k=0:0===1+p&&107!==d&&0<q.length&&(N=1,q+="\0"),0<M*j&&a(0,q,s,n,T,O,H.length,d,f,d),O=1,T++;break;case 59:case 125:if(0===k+S+E+x){O++;break}default:switch(O++,b=l.charAt(L),h){case 9:case 32:if(0===S+x+k)switch(R){case 44:case 58:case 9:case 32:b="";break;default:32!==h&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===S+k+x&&(N=F=1,b="\f"+b);break;case 108:if(0===S+k+x+C&&0<D)switch(L-D){case 2:112===R&&58===l.charCodeAt(L-3)&&(C=R);case 8:111===I&&(C=I)}break;case 58:0===S+k+x&&(D=L);break;case 44:0===k+E+S+x&&(N=1,b+="\r");break;case 34:case 39:0===k&&(S=S===h?0:0===S?h:S);break;case 91:0===S+k+E&&x++;break;case 93:0===S+k+E&&x--;break;case 41:0===S+k+x&&E--;break;case 40:if(0===S+k+x){if(0===p)switch(2*R+3*I){case 533:break;default:p=1}E++}break;case 64:0===k+E+S+x+D+m&&(m=1);break;case 42:case 47:if(!(0<S+x+E))switch(k){case 0:switch(2*h+3*l.charCodeAt(L+1)){case 235:k=47;break;case 220:B=L,k=42}break;case 42:47===h&&42===R&&B+2!==L&&(33===l.charCodeAt(B+2)&&(H+=l.substring(B,L+1)),b="",k=0)}}0===k&&(q+=b)}I=R,R=h,L++}if(0<(B=H.length)){if(N=s,0<M&&(void 0!==(w=a(2,H,N,n,T,O,B,d,f,d))&&0===(H=w).length))return V+H+W;if(H=N.join(",")+"{"+H+"}",0!=A*C){switch(2!==A||i(H,2)||(C=0),C){case 111:H=H.replace(y,":-moz-$1")+H;break;case 112:H=H.replace(v,"::-webkit-input-$1")+H.replace(v,"::-moz-$1")+H.replace(v,":-ms-input-$1")+H}C=0}}return V+H+W}(P,s,n,0,0);return 0<M&&(void 0!==(l=a(-2,d,s,s,T,O,d.length,0,0,0))&&(d=l)),"",C=0,O=T=1,d}var u=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,x=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,O=1,T=1,C=0,A=1,P=[],R=[],M=0,I=null,j=0;return l.use=function e(t){switch(t){case void 0:case null:M=R.length=0;break;default:if("function"==typeof t)R[M++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else j=0|!!t}return e},l.set=s,void 0!==e&&s(e),l};function l(e){e&&u.current.insert(e+"}")}var u={current:null},c=function(e,t,n,r,i,o,a,s,c,d){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return u.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return u.current.insert(n[0]+t),"";default:return t+(0===d?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(l)}},d=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new s(t);var i,o={};i=e.container||document.head;var l,d=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(d,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==i&&i.appendChild(e)})),r.use(e.stylisPlugins)(c),l=function(e,t,n,i){var o=t.name;u.current=n,r(e,t.styles),i&&(f.inserted[o]=!0)};var f={key:n,sheet:new a({key:n,container:i,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:l};return f},f=n(131),p=n(129),h=n(173),m=Object(o.createContext)("undefined"!=typeof HTMLElement?d():null),g=Object(o.createContext)({}),v=m.Provider,y=function(e){return Object(o.forwardRef)((function(t,n){return Object(o.createElement)(m.Consumer,null,(function(r){return e(t,r,n)}))}))},b="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_=Object.prototype.hasOwnProperty,w=function(e,t,n,r){var i=null===n?t.css:t.css(n);"string"==typeof i&&void 0!==e.registered[i]&&(i=e.registered[i]);var a=t[b],s=[i],l="";"string"==typeof t.className?l=Object(f.a)(e.registered,s,t.className):null!=t.className&&(l=t.className+" ");var u=Object(p.a)(s);Object(f.b)(e,u,"string"==typeof a);l+=e.key+"-"+u.name;var c={};for(var d in t)_.call(t,d)&&"css"!==d&&d!==b&&(c[d]=t[d]);return c.ref=r,c.className=l,Object(o.createElement)(a,c)},x=y((function(e,t,n){return"function"==typeof e.css?Object(o.createElement)(g.Consumer,null,(function(r){return w(t,e,r,n)})):w(t,e,null,n)}));var k=function(e,t){var n=arguments;if(null==t||!_.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=x;var a={};for(var s in t)_.call(t,s)&&(a[s]=t[s]);a[b]=e,i[1]=a;for(var l=2;l<r;l++)i[l]=n[l];return o.createElement.apply(null,i)},E=y((function(e,t){var n=e.styles;if("function"==typeof n)return Object(o.createElement)(g.Consumer,null,(function(e){var r=Object(p.a)([n(e)]);return Object(o.createElement)(S,{serialized:r,cache:t})}));var r=Object(p.a)([n]);return Object(o.createElement)(S,{serialized:r,cache:t})})),S=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}i()(t,e);var n=t.prototype;return n.componentDidMount=function(){this.sheet=new a({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var e=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==e&&this.sheet.tags.push(e),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},n.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},n.insertStyles=function(){if(void 0!==this.props.serialized.next&&Object(f.b)(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var e=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=e,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},n.componentWillUnmount=function(){this.sheet.flush()},n.render=function(){return null},t}(o.Component),O=function(){var e=h.default.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_"}}},T=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function C(e,t,n){var r=[],i=Object(f.a)(e,r,n);return r.length<2?n:i+t(r)}var A=y((function(e,t){return Object(o.createElement)(g.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=Object(p.a)(n,t.registered);return Object(f.b)(t,i,!1),t.key+"-"+i.name},i={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return C(t.registered,r,T(n))},theme:n},o=e.children(i);return!0,o}))}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return p})),n.d(t,"i",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"l",(function(){return g})),n.d(t,"m",(function(){return v})),n.d(t,"j",(function(){return y})),n.d(t,"h",(function(){return b})),n.d(t,"o",(function(){return _})),n.d(t,"a",(function(){return E})),n.d(t,"p",(function(){return C})),n.d(t,"q",(function(){return A})),n.d(t,"s",(function(){return P})),n.d(t,"r",(function(){return R})),n.d(t,"n",(function(){return M}));var r=n(58),i=n(34),o=n(22),a=n(300),s=n(19),l="10px sans-serif",u=[0,0,0,1],c="round",d=[],f=0,p="round",h=10,m=[0,0,0,1],g="center",v="middle",y=[0,0,0,0],b=1,_=new a.a,w={},x=null,k={},E=function(){var e,t,n=w,i=["monospace","serif"],a=i.length,s="wmytzilWMYTZIL@#/&?$%10";function l(e){for(var n=S(),r=100;r<=700;r+=300){for(var o=r+" ",l=!0,u=0;u<a;++u){var c=i[u];if(n.font=o+"32px "+c,t=n.measureText(s).width,e!=c){n.font=o+"32px "+e+","+c;var d=n.measureText(s).width;l=l&&d!=t}}if(l)return!0}return!1}function u(){var t=!0;for(var r in n)n[r]<60&&(l(r)?(n[r]=60,Object(o.b)(k),x=null,_.clear()):(++n[r],t=!1));t&&(clearInterval(e),e=void 0)}return function(t){var i=Object(r.e)(t);if(i)for(var o=0,a=i.length;o<a;++o){var s=i[o];s in n||(n[s]=60,l(s)||(n[s]=0,void 0===e&&(e=setInterval(u,32))))}}}();function S(){return x||(x=Object(i.a)(1,1)),x}var O,T,C=(T=k,function(e){var t=T[e];return null==t&&(O||((O=document.createElement("span")).textContent="M",O.style.margin=O.style.padding="0 !important",O.style.position="absolute !important",O.style.left="-99999px !important"),O.style.font=e,document.body.appendChild(O),t=T[e]=O.offsetHeight,document.body.removeChild(O)),t});function A(e,t){var n=S();return e!=n.font&&(n.font=e),n.measureText(t).width}function P(e,t,n,r){0!==t&&(e.translate(n,r),e.rotate(t),e.translate(-n,-r))}var R=Object(s.c)();function M(e,t,n,r,i,o,a,s,l,u,c){var d;1!=n&&(d=e.globalAlpha,e.globalAlpha=d*n),t&&e.setTransform.apply(e,t),e.drawImage(r,i,o,a,s,l,u,a*c,s*c),d&&(e.globalAlpha=d),t&&e.setTransform.apply(e,R)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return B})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return S})),n.d(t,"d",(function(){return q})),n.d(t,"e",(function(){return W})),n.d(t,"f",(function(){return $})),n.d(t,"g",(function(){return M})),n.d(t,"h",(function(){return I})),n.d(t,"i",(function(){return b})),n.d(t,"j",(function(){return A})),n.d(t,"k",(function(){return E})),n.d(t,"l",(function(){return R})),n.d(t,"m",(function(){return T})),n.d(t,"n",(function(){return C})),n.d(t,"o",(function(){return P})),n.d(t,"p",(function(){return d})),n.d(t,"q",(function(){return X})),n.d(t,"r",(function(){return x})),n.d(t,"s",(function(){return w})),n.d(t,"t",(function(){return h})),n.d(t,"u",(function(){return g})),n.d(t,"v",(function(){return m})),n.d(t,"w",(function(){return y})),n.d(t,"x",(function(){return K})),n.d(t,"y",(function(){return Y})),n.d(t,"z",(function(){return J})),n.d(t,"A",(function(){return ee})),n.d(t,"B",(function(){return te})),n.d(t,"C",(function(){return H})),n.d(t,"D",(function(){return U})),n.d(t,"E",(function(){return p})),n.d(t,"F",(function(){return _})),n.d(t,"G",(function(){return u})),n.d(t,"H",(function(){return v})),n.d(t,"I",(function(){return Q}));var r=n(92),i=n(20),o=n(7),a=n(292),s=n.n(a);n(132);function l(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map((function(e){return l(o,e.name,e.value,r)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return l(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new i.a(17);e[t.value]=null}}function u(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return l(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return l(r,n,i,t)}))),d(e.name.value,r,n)}var c=["connection","include","skip","client","rest","export"];function d(e,t,n){if(n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i=t,o={};return r.forEach((function(e){o[e]=i[e]})),n.connection.key+"("+JSON.stringify(o)+")"}return n.connection.key}var a=e;if(t){var l=s()(t);a+="("+l+")"}return n&&Object.keys(n).forEach((function(e){-1===c.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+JSON.stringify(n[e])+")":a+="@"+e)})),a}function f(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return l(n,r,i,t)})),n}return null}function p(e){return e.alias?e.alias.value:e.name.value}function h(e){return"Field"===e.kind}function m(e){return"InlineFragment"===e.kind}function g(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function v(e,t){return void 0===t&&(t=!1),Object(o.a)({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function y(e){return null!=e&&"object"==typeof e&&"json"===e.type}function b(e,t){if(e.directives&&e.directives.length){var n={};return e.directives.forEach((function(e){n[e.name.value]=f(e,t)})),n}return null}function _(e,t){return void 0===t&&(t={}),(n=e.directives,n?n.filter(k).map((function(e){var t=e.arguments;e.name.value,Object(i.b)(t&&1===t.length,14);var n=t[0];Object(i.b)(n.name&&"if"===n.name.value,15);var r=n.value;return Object(i.b)(r&&("Variable"===r.kind||"BooleanValue"===r.kind),16),{directive:e,ifArgument:n}})):[]).every((function(e){var n=e.directive,r=e.ifArgument,o=!1;return"Variable"===r.value.kind?(o=t[r.value.name.value],Object(i.b)(void 0!==o,13)):o=r.value.value,"skip"===n.name.value?!o:o}));var n}function w(e,t){return function(e){var t=[];return Object(r.visit)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function x(e){return e&&w(["client"],e)&&w(["export"],e)}function k(e){var t=e.name.value;return"skip"===t||"include"===t}function E(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.a(11);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(Object(i.b)(1===r.length,12),n=r[0].name.value),Object(o.a)(Object(o.a)({},e),{definitions:Object(o.f)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function S(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){null!=t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function O(e){Object(i.b)(e&&"Document"===e.kind,2);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw new i.a(3);return e}));return Object(i.b)(t.length<=1,4),e}function T(e){return O(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function C(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function A(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function P(e){var t=T(e);return Object(i.b)(t&&"query"===t.operation,6),t}function R(e){var t;O(e);for(var n=0,r=e.definitions;n<r.length;n++){var o=r[n];if("OperationDefinition"===o.kind){var a=o.operation;if("query"===a||"mutation"===a||"subscription"===a)return o}"FragmentDefinition"!==o.kind||t||(t=o)}if(t)return t;throw new i.a(10)}function M(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function I(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter((function(e){return e.defaultValue})).map((function(e){var t=e.variable,n=e.defaultValue,r={};return l(r,t.name,n),r}));return S.apply(void 0,Object(o.f)([{}],t))}return{}}function j(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var D={kind:"Field",name:{kind:"Name",value:"__typename"}};function L(e){return function e(t,n){return t.selectionSet.selections.every((function(t){return"FragmentSpread"===t.kind&&e(n[t.name.value],n)}))}(T(e)||function(e){Object(i.b)("Document"===e.kind,7),Object(i.b)(e.definitions.length<=1,8);var t=e.definitions[0];return Object(i.b)("FragmentDefinition"===t.kind,9),t}(e),M(A(e)))?null:e}function N(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function F(e,t){var n=Object.create(null),i=[],a=Object.create(null),s=[],l=L(Object(r.visit)(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(N(e))))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&i.push({name:e.value.name.value})})),t.selectionSet&&function e(t){var n=[];return t.selections.forEach((function(t){(h(t)||m(t))&&t.selectionSet?e(t.selectionSet).forEach((function(e){return n.push(e)})):"FragmentSpread"===t.kind&&n.push(t)})),n}(t.selectionSet).forEach((function(e){s.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){a[e.name.value]=!0}},Directive:{enter:function(t){if(N(e)(t))return null}}}));return l&&j(i,(function(e){return!n[e.name]})).length&&(l=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return L(Object(r.visit)(t,{OperationDefinition:{enter:function(t){return Object(o.a)(Object(o.a)({},t),{variableDefinitions:t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))}))})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(i,l)),l&&j(s,(function(e){return!a[e.name]})).length&&(l=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return L(Object(r.visit)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(s,l)),l}function B(e){return Object(r.visit)(O(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r)if(!r.some((function(e){return h(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(h(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return Object(o.a)(Object(o.a)({},e),{selections:Object(o.f)(r,[D])})}}}}})}var z={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some((function(e){return"key"===e.name.value}))),t}};function U(e){return F([z],O(e))}function q(e){return"query"===R(e).operation?e:Object(r.visit)(e,{OperationDefinition:{enter:function(e){return Object(o.a)(Object(o.a)({},e),{operation:"query"})}}})}function H(e){O(e);var t=F([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=Object(r.visit)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return h(e)&&"__typename"===e.name.value})))return null}}})),t}var W="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),V=Object.prototype.toString;function $(e){return function e(t,n){switch(V.call(t)){case"[object Array]":if(n.has(t))return n.get(t);var r=t.slice(0);return n.set(t,r),r.forEach((function(t,i){r[i]=e(t,n)})),r;case"[object Object]":if(n.has(t))return n.get(t);var i=Object.create(Object.getPrototypeOf(t));return n.set(t,i),Object.keys(t).forEach((function(r){i[r]=e(t[r],n)})),i;default:return t}}(e,new Map)}function G(t){return(void 0!==e?"production":"development")===t}function K(){return!0===G("production")}function Y(){return!0===G("test")}function Q(e){try{return e()}catch(e){console.error&&console.error(e)}}function X(e){return e.errors&&e.errors.length}function J(e){if((!0===G("development")||Y())&&!("function"==typeof Symbol&&"string"==typeof Symbol("")))return function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(n){null===t[n]||"object"!=typeof t[n]&&"function"!=typeof t[n]||Object.isFrozen(t[n])||e(t[n])})),t}(e);return e}var Z=Object.prototype.hasOwnProperty;function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return te(e)}function te(e){var t=e[0]||{},n=e.length;if(n>1){var r=[];t=ie(t,r);for(var i=1;i<n;++i)t=re(t,e[i],r)}return t}function ne(e){return null!==e&&"object"==typeof e}function re(e,t,n){return ne(t)&&ne(e)?(Object.isExtensible&&!Object.isExtensible(e)&&(e=ie(e,n)),Object.keys(t).forEach((function(r){var i=t[r];if(Z.call(e,r)){var o=e[r];i!==o&&(e[r]=re(ie(o,n),i,n))}else e[r]=i})),e):t}function ie(e,t){return null!==e&&"object"==typeof e&&t.indexOf(e)<0&&(e=Array.isArray(e)?e.slice(0):Object(o.a)({__proto__:Object.getPrototypeOf(e)},e),t.push(e)),e}Object.create({})}).call(this,n(70))},function(e,t,n){"use strict";t.a={CHANGE:"change",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",ERROR:"error",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",MOUSEDOWN:"mousedown",MOUSEMOVE:"mousemove",MOUSEOUT:"mouseout",MOUSEUP:"mouseup",MOUSEWHEEL:"mousewheel",MSPOINTERDOWN:"MSPointerDown",RESIZE:"resize",TOUCHSTART:"touchstart",TOUCHMOVE:"touchmove",TOUCHEND:"touchend",WHEEL:"wheel"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"g",(function(){return o})),n.d(t,"f",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return d}));n(27);function r(e,t,n){return Math.min(Math.max(e,t),n)}var i="cosh"in Math?Math.cosh:function(e){var t=Math.exp(e);return(t+1/t)/2};function o(e,t,n,r,i,o){var s=i-n,l=o-r;if(0!==s||0!==l){var u=((e-n)*s+(t-r)*l)/(s*s+l*l);u>1?(n=i,r=o):u>0&&(n+=s*u,r+=l*u)}return a(e,t,n,r)}function a(e,t,n,r){var i=n-e,o=r-t;return i*i+o*o}function s(e){for(var t=e.length,n=0;n<t;n++){for(var r=n,i=Math.abs(e[n][n]),o=n+1;o<t;o++){var a=Math.abs(e[o][n]);a>i&&(i=a,r=o)}if(0===i)return null;var s=e[r];e[r]=e[n],e[n]=s;for(var l=n+1;l<t;l++)for(var u=-e[l][n]/e[n][n],c=n;c<t+1;c++)n==c?e[l][c]=0:e[l][c]+=u*e[n][c]}for(var d=new Array(t),f=t-1;f>=0;f--){d[f]=e[f][t]/e[f][f];for(var p=f-1;p>=0;p--)e[p][t]-=e[p][f]*d[f]}return d}function l(e){return 180*e/Math.PI}function u(e){return e*Math.PI/180}function c(e,t){var n=e%t;return n*t<0?n+t:n}function d(e,t,n){return e+n*(t-e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Dropdown",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"DropdownItem",{enumerable:!0,get:function(){return r.DropdownItem}}),Object.defineProperty(t,"DropdownCheckedItem",{enumerable:!0,get:function(){return r.DropdownCheckedItem}}),Object.defineProperty(t,"DropdownButton",{enumerable:!0,get:function(){return r.DropdownButton}}),Object.defineProperty(t,"StyledDropdownButton",{enumerable:!0,get:function(){return r.StyledDropdownButton}}),Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"ListItemTopBar",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Loader",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"FieldLabel",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"IconButton",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Toggle",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"ToggleContainer",{enumerable:!0,get:function(){return u.ToggleContainer}}),Object.defineProperty(t,"ToggleBackground",{enumerable:!0,get:function(){return u.ToggleBackground}}),Object.defineProperty(t,"ToggleHandle",{enumerable:!0,get:function(){return u.ToggleHandle}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"WidgetPreviewContainer",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"ObjectWidgetTopBar",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"GoBackButton",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"fonts",{enumerable:!0,get:function(){return h.fonts}}),Object.defineProperty(t,"colorsRaw",{enumerable:!0,get:function(){return h.colorsRaw}}),Object.defineProperty(t,"colors",{enumerable:!0,get:function(){return h.colors}}),Object.defineProperty(t,"lengths",{enumerable:!0,get:function(){return h.lengths}}),Object.defineProperty(t,"components",{enumerable:!0,get:function(){return h.components}}),Object.defineProperty(t,"buttons",{enumerable:!0,get:function(){return h.buttons}}),Object.defineProperty(t,"text",{enumerable:!0,get:function(){return h.text}}),Object.defineProperty(t,"shadows",{enumerable:!0,get:function(){return h.shadows}}),Object.defineProperty(t,"borders",{enumerable:!0,get:function(){return h.borders}}),Object.defineProperty(t,"transitions",{enumerable:!0,get:function(){return h.transitions}}),Object.defineProperty(t,"effects",{enumerable:!0,get:function(){return h.effects}}),Object.defineProperty(t,"zIndex",{enumerable:!0,get:function(){return h.zIndex}}),Object.defineProperty(t,"reactSelectStyles",{enumerable:!0,get:function(){return h.reactSelectStyles}}),Object.defineProperty(t,"GlobalStyles",{enumerable:!0,get:function(){return h.GlobalStyles}}),t.NetlifyCmsUiDefault=void 0;var r=v(n(528)),i=m(n(167)),o=m(n(1014)),a=m(n(1015)),s=m(n(1016)),l=m(n(1017)),u=v(n(1018)),c=m(n(1020)),d=m(n(1021)),f=m(n(1022)),p=m(n(534)),h=n(111);function m(e){return e&&e.__esModule?e:{default:e}}function g(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return g=function(){return e},e}function v(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=g();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}const y={Dropdown:r.default,DropdownItem:r.DropdownItem,DropdownCheckedItem:r.DropdownCheckedItem,DropdownButton:r.DropdownButton,StyledDropdownButton:r.StyledDropdownButton,ListItemTopBar:o.default,FieldLabel:s.default,Icon:i.default,IconButton:l.default,Loader:a.default,Toggle:u.default,ToggleContainer:u.ToggleContainer,ToggleBackground:u.ToggleBackground,ToggleHandle:u.ToggleHandle,AuthenticationPage:c.default,WidgetPreviewContainer:d.default,ObjectWidgetTopBar:f.default,fonts:h.fonts,colorsRaw:h.colorsRaw,colors:h.colors,lengths:h.lengths,components:h.components,buttons:h.buttons,shadows:h.shadows,text:h.text,borders:h.borders,transitions:h.transitions,effects:h.effects,zIndex:h.zIndex,reactSelectStyles:h.reactSelectStyles,GlobalStyles:h.GlobalStyles};t.NetlifyCmsUiDefault=y},function(e,t,n){"use strict";t.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4,ABORT:5}},function(e,t,n){"use strict";n.r(t);var r=n(665),i=n.n(r),o=n(1);var a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(11),u=n(131),c=n(129),d=s,f=function(e){return"theme"!==e&&"innerRef"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?d:f};function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.default=function e(t,n){var r,i,a;void 0!==n&&(r=n.label,a=n.target,i=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var s=t.__emotion_real===t,d=s&&t.__emotion_base||t;"function"!=typeof i&&s&&(i=t.__emotion_forwardProp);var f=i||p(d),h=!f("as");return function(){var g=arguments,v=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&v.push("label:"+r+";"),null==g[0]||void 0===g[0].raw)v.push.apply(v,g);else{0,v.push(g[0][0]);for(var y=g.length,b=1;b<y;b++)v.push(g[b],g[0][b])}var _=Object(l.withEmotionCache)((function(e,t,n){return Object(o.createElement)(l.ThemeContext.Consumer,null,(function(r){var s=h&&e.as||d,l="",m=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=r}"string"==typeof e.className?l=Object(u.a)(t.registered,m,e.className):null!=e.className&&(l=e.className+" ");var b=Object(c.a)(v.concat(m),t.registered,g);Object(u.b)(t,b,"string"==typeof s);l+=t.key+"-"+b.name,void 0!==a&&(l+=" "+a);var _=h&&void 0===i?p(s):f,w={};for(var x in e)h&&"as"===x||_(x)&&(w[x]=e[x]);return w.className=l,w.ref=n||e.innerRef,Object(o.createElement)(s,w)}))}));return _.displayName=void 0!==r?r:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=d,_.__emotion_styles=v,_.__emotion_forwardProp=i,Object.defineProperty(_,"toString",{value:function(){return"."+a}}),_.withComponent=function(t,r){return e(t,void 0!==r?m({},n||{},{},r):n).apply(void 0,v)},_}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"g",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"h",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return h}));var r=n(27),i=new Array(6);function o(){return[1,0,0,1,0,0]}function a(e){return l(e,1,0,0,1,0,0)}function s(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=t[0],u=t[1],c=t[2],d=t[3],f=t[4],p=t[5];return e[0]=n*l+i*u,e[1]=r*l+o*u,e[2]=n*c+i*d,e[3]=r*c+o*d,e[4]=n*f+i*p+a,e[5]=r*f+o*p+s,e}function l(e,t,n,r,i,o,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=o,e[5]=a,e}function u(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function c(e,t){var n=t[0],r=t[1];return t[0]=e[0]*n+e[2]*r+e[4],t[1]=e[1]*n+e[3]*r+e[5],t}function d(e,t,n){return s(e,l(i,t,0,0,n,0,0))}function f(e,t,n){return s(e,l(i,1,0,0,1,t,n))}function p(e,t,n,r,i,o,a,s){var l=Math.sin(o),u=Math.cos(o);return e[0]=r*u,e[1]=i*l,e[2]=-r*l,e[3]=i*u,e[4]=a*r*u-s*r*l+t,e[5]=a*i*l+s*i*u+n,e}function h(e){var t,n=(t=e)[0]*t[3]-t[1]*t[2];Object(r.a)(0!==n,32);var i=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];return e[0]=s/n,e[1]=-o/n,e[2]=-a/n,e[3]=i/n,e[4]=(a*u-s*l)/n,e[5]=-(i*u-o*l)/n,e}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(7),i=Object.setPrototypeOf,o=void 0===i?function(e,t){return e.__proto__=t,e}:i,a=function(e){function t(n){void 0===n&&(n="Invariant Violation");var r=e.call(this,"number"==typeof n?"Invariant Violation: "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name="Invariant Violation",o(r,t.prototype),r}return Object(r.c)(t,e),t}(Error);function s(e,t){if(!e)throw new a(t)}function l(e){return function(){return console[e].apply(console,arguments)}}!function(e){e.warn=l("warn"),e.error=l("error")}(s||(s={}));var u={env:{}};if("object"==typeof e)u=e;else try{Function("stub","process = stub")(u)}catch(e){}}).call(this,n(70))},function(e,t,n){"use strict";t.a=function(e,t){0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a}));var r="function"==typeof Object.assign?Object.assign:function(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(e),i=1,o=arguments.length;i<o;++i){var a=n[i];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(r[s]=a[s])}return r};function i(e){for(var t in e)delete e[t]}function o(e){var t=[];for(var n in e)t.push(e[n]);return t}function a(e){var t;for(t in e)return!1;return!t}},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Annotation",(function(){return te})),n.d(t,"Block",(function(){return de})),n.d(t,"Change",(function(){return xe})),n.d(t,"Data",(function(){return H})),n.d(t,"Decoration",(function(){return G})),n.d(t,"Document",(function(){return re})),n.d(t,"Editor",(function(){return kt})),n.d(t,"Inline",(function(){return oe})),n.d(t,"KeyUtils",(function(){return _})),n.d(t,"Leaf",(function(){return Ct})),n.d(t,"Mark",(function(){return V})),n.d(t,"Node",(function(){return ue})),n.d(t,"Operation",(function(){return _e})),n.d(t,"PathUtils",(function(){return z})),n.d(t,"Point",(function(){return q})),n.d(t,"Range",(function(){return Z})),n.d(t,"resetMemoization",(function(){return Bt})),n.d(t,"Selection",(function(){return Y})),n.d(t,"Text",(function(){return le})),n.d(t,"TextUtils",(function(){return je})),n.d(t,"useMemoization",(function(){return zt})),n.d(t,"Value",(function(){return pe}));var r=n(4),i=n(42),o=n.n(i),a=n(21),s=n(33),l=n(308),u=n.n(l),c=n(415),d=n(147),f=n.n(d),p=n(144),h=n.n(p),m=n(671),g=n.n(m),v=void 0,y=void 0;function b(){v=0,y=function(){return""+v++}}b();var _={create:function(e){if(null==e)return y();if("string"==typeof e)return e;throw new Error("Keys must be strings, but you passed: "+e)},setGenerator:function(e){y=e},resetGenerator:b},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},x=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},k=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O=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=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},C=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},A=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},P=function(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 R(e,t){for(var n=B(e,t),r=0;r<n;r++){var i=e.get(r),o=t.get(r);if(i<o)return-1;if(i>o)return 1}return e.size===t.size?0:null}function M(e){if(null==e)return null;if(r.List.isList(e))return e;if(Array.isArray(e))return Object(r.List)(e);throw new Error("Paths can only be created from arrays or lists, but you passed: "+e)}function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:B(e,t),r=e.slice(0,n),i=t.slice(0,n);return[r,i]}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.size-1;return D(e,0-t,n)}function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.size-1,r=e.get(n),i=r+t,o=e.set(n,i);return o}function L(e,t){var n=I(e,t),r=A(n,2),i=r[0],o=r[1];return e.size<t.size&&0===R(i,o)}function N(e,t){return e.equals(t)}function F(e,t){var n=e.size-1,r=I(e,t,n),i=A(r,2),o=i[0],a=i[1],s=e.get(n),l=t.get(n);return N(o,a)&&s<l}function B(e,t){return Math.min(e.size,t.size)}var z={compare:R,create:M,crop:I,decrement:j,getAncestors:function(e){return Object(r.List)().withMutations((function(t){for(var n=0;n<e.size;n++)t.push(e.slice(0,n))}))},increment:D,isAbove:L,isAfter:function(e,t){var n=I(e,t),r=A(n,2);return 1===R(r[0],r[1])},isBefore:function(e,t){var n=I(e,t),r=A(n,2);return-1===R(r[0],r[1])},isEqual:N,isOlder:function(e,t){var n=e.size-1,r=I(e,t,n),i=A(r,2),o=i[0],a=i[1],s=e.get(n),l=t.get(n);return N(o,a)&&s>l},isPath:function(e){return(r.List.isList(e)||Array.isArray(e))&&e.every((function(e){return"number"==typeof e}))},isSibling:function(e,t){if(e.size!==t.size)return!1;var n=e.butLast(),r=t.butLast();return n.equals(r)},isYounger:F,lift:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.slice(0,-1*t);return n},drop:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.slice(t);return n},max:function(e,t){return Math.max(e.size,t.size)},min:B,relate:function(e,t){for(var n=[],r=0;r<e.size&&r<t.size;r++){var i=e.get(r);if(i!==t.get(r))break;n.push(i)}return M(n)},transform:function(e,t){var n=t.type,i=t.position,o=t.path;if("add_mark"===n||"insert_text"===n||"remove_mark"===n||"remove_text"===n||"set_mark"===n||"set_node"===n||"set_selection"===n||"set_value"===n||"add_annotation"===n||"remove_annotation"===n||"set_annotation"===n||0===e.size)return Object(r.List)([e]);var a=o.size-1,s=N(o,e),l=F(o,e),u=L(o,e);if("insert_node"===n&&(s||l||u)&&(e=D(e,1,a)),"remove_node"===n&&(l?e=j(e,1,a):(s||u)&&(e=[])),"merge_node"===n&&(s||l?e=j(e,1,a):u&&(e=D(e=j(e,1,a),i,a+1))),"split_node"===n&&(s?e=[e,D(e)]:l?e=D(e,1,a):u&&e.get(a+1)>=i&&(e=j(e=D(e,1,a),i,a+1))),"move_node"===n){var c=t.newPath;if(N(o,c))return Object(r.List)([e]);u||s?e=F(o,c)&&o.size<c.size?j(c,1,B(c,o)-1).concat(e.slice(o.size)):c.concat(e.slice(o.size)):(l&&(e=j(e,1,a)),(F(c,e)||N(c,e)||L(c,e))&&(e=D(e,1,c.size-1)))}var d=Array.isArray(e)?e:[e];return Object(r.List)(d)}},U={key:void 0,offset:void 0,path:void 0},q=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"isAfterPoint",value:function(e){return!this.isUnset&&(this.key===e.key&&this.offset>e.offset||1===z.compare(this.path,e.path))}},{key:"isAfterRange",value:function(e){return!this.isUnset&&this.isAfterPoint(e.end)}},{key:"isAtEndOfRange",value:function(e){return!this.isUnset&&this.equals(e.end)}},{key:"isAtStartOfRange",value:function(e){return!this.isUnset&&this.equals(e.start)}},{key:"isBeforePoint",value:function(e){return!this.isUnset&&(this.key===e.key&&this.offset<e.offset||-1===z.compare(this.path,e.path))}},{key:"isBeforeRange",value:function(e){return!this.isUnset&&this.isBeforePoint(e.start)}},{key:"isInRange",value:function(e){return!this.isUnset&&(this.equals(e.start)||this.equals(e.end)||this.isAfterPoint(e.start)&&this.isBeforePoint(e.end))}},{key:"isAtEndOfNode",value:function(e){if(this.isUnset)return!1;var t=e.getLastText();return this.key===t.key&&this.offset===t.text.length}},{key:"isAtStartOfNode",value:function(e){if(this.isUnset)return!1;if(0!==this.offset)return!1;var t=e.getFirstText();return this.key===t.key}},{key:"isInNode",value:function(e){return!this.isUnset&&("text"===e.object&&e.key===this.key||!!e.hasNode(this.key))}},{key:"moveBackward",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(0===e)return this;if(e<0)return this.moveForward(-e);var t=this.setOffset(this.offset-e);return t}},{key:"moveForward",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(0===e)return this;if(e<0)return this.moveBackward(-e);var t=this.setOffset(this.offset+e);return t}},{key:"moveTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.key;"number"==typeof e?(t=e,e=this.path):"string"==typeof e?e=(n=e)===this.key?this.path:null:n=e.equals(this.path)?this.key:null;var r=this.merge({key:n,path:e,offset:t});return r}},{key:"moveToStartOfNode",value:function(e){var t=e.getFirstText();return this.moveTo(t.key,0)}},{key:"moveToEndOfNode",value:function(e){var t=e.getLastText();return this.moveTo(t.key,t.text.length)}},{key:"normalize",value:function(e){if(null==this.key&&null==this.path)return this.setOffset(null);var n=this.key,r=this.offset,i=this.path,o=i&&e.getNode(i);if(!o&&(o=e.getNode(n)))return this.merge({path:e.getPath(n)});if(!o){Object(a.a)(!1,"A point's `path` or `key` invalid and was reset!");var s=e.getFirstText();return s?this.merge({key:s.key,offset:0,path:e.getPath(s.key)}):t.create()}if("text"!==o.object){Object(a.a)(!1,"A point should not reference a non-text node!");var l=o.getTextAtOffset(r),u=o.getOffset(l.key);return this.merge({offset:r-u,key:l.key,path:e.getPath(l.key)})}o&&i&&n&&n!==o.key&&Object(a.a)(!1,"A point's `key` did not match its `path`!");var c=this.merge({key:o.key,path:null==i?e.getPath(o.key):i,offset:null==r?0:Math.min(r,o.text.length)});if(c.offset===o.text.length){var d=e.getClosestBlock(c.path).getNextText();d&&(c=c.merge({key:d.key,path:e.getPath(d.key),offset:0}))}return c}},{key:"setKey",value:function(e){return null!=e&&(e=_.create(e)),this.set("key",e)}},{key:"setOffset",value:function(e){return this.set("offset",e)}},{key:"setPath",value:function(e){return null!=e&&(e=z.create(e)),this.set("path",e)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,key:this.key,offset:this.offset,path:this.path&&this.path.toArray()};return e.preserveKeys||delete t.key,t}},{key:"unset",value:function(){return this.merge({key:null,offset:null,path:null})}},{key:"isSet",get:function(){return null!=this.key&&null!=this.offset&&null!=this.path}},{key:"isUnset",get:function(){return!this.isSet}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isPoint(e))return e;if(o()(e))return t.fromJSON(e);throw new Error("`Point.create` only accepts objects or points, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isPoint(e))return{key:e.key,offset:e.offset,path:e.path};if(o()(e)){var n={};return"key"in e&&(n.key=e.key),"offset"in e&&(n.offset=e.offset),"path"in e&&(n.path=z.create(e.path)),"path"in e&&!("key"in e)&&(n.key=null),"key"in e&&!("path"in e)&&(n.path=null),n}throw new Error("`Point.createProperties` only accepts objects or points, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.key,r=void 0===n?null:n,i=e.offset,o=void 0===i?null:i,a=e.path,s=void 0===a?null:a;return new t({key:r,offset:o,path:z.create(s)})}}]),t}(Object(r.Record)(U)),H=function(){function e(){x(this,e)}return k(e,null,[{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.Map.isMap(t))return t;if(o()(t))return e.fromJSON(t);throw new Error("`Data.create` only accepts objects or maps, but you passed it: "+t)}},{key:"fromJSON",value:function(e){return new r.Map(e)}}]),e}();H.fromJS=H.fromJSON;var W={data:void 0,type:void 0},V=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"toJSON",value:function(){return{object:this.object,type:this.type,data:this.data.toJSON()}}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isMark(e))return e;if("string"==typeof e&&(e={type:e}),o()(e))return t.fromJSON(e);throw new Error("`Mark.create` only accepts objects, strings or marks, but you passed it: "+e)}},{key:"createSet",value:function(e){if(r.Set.isSet(e)||Array.isArray(e))return new r.Set(e.map(t.create));if(null==e)return Object(r.Set)();throw new Error("`Mark.createSet` only accepts sets, arrays or null, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isMark(e))return{data:e.data,type:e.type};if("string"==typeof e)return{type:e};if(o()(e)){var n={};return"type"in e&&(n.type=e.type),"data"in e&&(n.data=H.create(e.data)),n}throw new Error("`Mark.createProperties` only accepts objects, strings or marks, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.data,i=void 0===n?{}:n,o=e.type;if("string"!=typeof o)throw new Error("`Mark.fromJS` requires a `type` string.");return new t({type:o,data:new r.Map(i)})}},{key:"isMarkSet",value:function(e){return r.Set.isSet(e)&&e.every((function(e){return t.isMark(e)}))}}]),t}(Object(r.Record)(W)),$={type:void 0,data:void 0,anchor:void 0,focus:void 0},G=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"setProperties",value:function(e){return e=t.createProperties(e),this.merge(e)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,type:this.type,data:this.data.toJSON(),anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e)};return t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isDecoration(e))return e;if(Z.isRange(e))return t.fromJSON(Z.createProperties(e));if(o()(e))return t.fromJSON(e);throw new Error("`Decoration.create` only accepts objects or decorations, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.List.isList(e)||Array.isArray(e)){var n=new r.List(e.map(t.create));return n}throw new Error("`Decoration.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isDecoration(e))return{type:e.type,data:e.data,anchor:q.createProperties(e.anchor),focus:q.createProperties(e.focus),mark:V.create(e.mark)};if(o()(e)){var n={};return"type"in e&&(n.type=e.type),"data"in e&&(n.data=H.create(e.data)),"anchor"in e&&(n.anchor=q.create(e.anchor)),"focus"in e&&(n.focus=q.create(e.focus)),n}throw new Error("`Decoration.createProperties` only accepts objects or decorations, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.anchor,r=e.focus,i=e.type,o=e.data;if(e.mark&&!i&&(Object(a.a)(!1,"As of slate@0.47 the `decoration.mark` property has been changed to `decoration.type` and `decoration.data` directly."),i=e.mark.type,o=e.mark.data),!i)throw new Error("Decorations must be created with a `type`, but you passed: "+JSON.stringify(e));return new t({type:i,data:H.create(o||{}),anchor:q.fromJSON(n||{}),focus:q.fromJSON(r||{})})}}]),t}(Object(r.Record)($)),K={anchor:void 0,focus:void 0,isFocused:void 0,marks:void 0},Y=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"setIsFocused",value:function(e){return this.set("isFocused",e)}},{key:"setMarks",value:function(e){return this.set("marks",e)}},{key:"setProperties",value:function(e){var n=e=t.createProperties(e),r=n.anchor,i=n.focus,o=T(n,["anchor","focus"]);return r&&(o.anchor=q.create(r)),i&&(o.focus=q.create(i)),this.merge(o)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e),isFocused:this.isFocused,marks:null==this.marks?null:this.marks.toArray().map((function(e){return e.toJSON()}))};return t}},{key:"isBlurred",get:function(){return!this.isFocused}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isSelection(e))return e;if(Z.isRange(e))return t.fromJSON(Z.createProperties(e));if(o()(e))return t.fromJSON(e);throw new Error("`Selection.create` only accepts objects, ranges or selections, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isSelection(e))return{anchor:q.createProperties(e.anchor),focus:q.createProperties(e.focus),isFocused:e.isFocused,marks:e.marks};if(Z.isRange(e))return{anchor:q.createProperties(e.anchor),focus:q.createProperties(e.focus)};if(o()(e)){var n={};return"anchor"in e&&(n.anchor=q.create(e.anchor)),"focus"in e&&(n.focus=q.create(e.focus)),"isFocused"in e&&(n.isFocused=e.isFocused),"marks"in e&&(n.marks=null==e.marks?null:V.createSet(e.marks)),n}throw new Error("`Selection.createProperties` only accepts objects, ranges or selections, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.anchor,i=e.focus,o=e.isFocused,a=void 0!==o&&o,s=e.marks,l=void 0===s?null:s;return new t({anchor:q.fromJSON(n||{}),focus:q.fromJSON(i||{}),isFocused:a,marks:null==l?null:new r.Set(l.map(V.fromJSON))})}}]),t}(Object(r.Record)(K)),Q={annotation:"@@__SLATE_ANNOTATION__@@",block:"@@__SLATE_BLOCK__@@",change:"@@__SLATE_CHANGE__@@",decoration:"@@__SLATE_DECORATION__@@",document:"@@__SLATE_DOCUMENT__@@",editor:"@@__SLATE_EDITOR__@@",inline:"@@__SLATE_INLINE__@@",leaf:"@@__SLATE_LEAF__@@",mark:"@@__SLATE_MARK__@@",operation:"@@__SLATE_OPERATION__@@",point:"@@__SLATE_POINT__@@",range:"@@__SLATE_RANGE__@@",selection:"@@__SLATE_SELECTION__@@",text:"@@__SLATE_TEXT__@@",value:"@@__SLATE_VALUE__@@"};function X(e,t){return!(!t||!t[Q[e]])}var J={anchor:void 0,focus:void 0},Z=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e)};return t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isRange(e))return"range"===e.object?e:t.fromJSON(t.createProperties(e));if(o()(e))return t.fromJSON(e);throw new Error("`Range.create` only accepts objects or ranges, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.List.isList(e)||Array.isArray(e)){var n=new r.List(e.map(t.create));return n}throw new Error("`Range.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isRange(e))return{anchor:q.createProperties(e.anchor),focus:q.createProperties(e.focus)};if(o()(e)){var n={};return"anchor"in e&&(n.anchor=q.create(e.anchor)),"focus"in e&&(n.focus=q.create(e.focus)),n}throw new Error("`Range.createProperties` only accepts objects, annotations, decorations, ranges or selections, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.anchor,r=e.focus;return new t({anchor:q.fromJSON(n||{}),focus:q.fromJSON(r||{})})}},{key:"isRange",value:function(e){return X("range",e)||G.isDecoration(e)||Y.isSelection(e)}}]),t}(Object(r.Record)(J)),ee={key:void 0,type:void 0,data:void 0,anchor:void 0,focus:void 0},te=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"setProperties",value:function(e){return e=t.createProperties(e),this.merge(e)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,key:this.key,type:this.type,data:this.data.toJSON(),anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e)};return t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isAnnotation(e))return e;if(Z.isRange(e))return t.fromJSON(Z.createProperties(e));if(o()(e))return t.fromJSON(e);throw new Error("`Annotation.create` only accepts objects or annotations, but you passed it: "+e)}},{key:"createMap",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.Map.isMap(e))return e;if(o()(e)){var n={};for(var i in e){var a=e[i],s=t.create(a);n[i]=s}return Object(r.Map)(n)}throw new Error("`Annotation.createMap` only accepts arrays or lists, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isAnnotation(e))return{key:e.key,type:e.type,data:e.data,anchor:q.createProperties(e.anchor),focus:q.createProperties(e.focus)};if(o()(e)){var n={};return"key"in e&&(n.key=e.key),"type"in e&&(n.type=e.type),"data"in e&&(n.data=H.create(e.data)),"anchor"in e&&(n.anchor=q.create(e.anchor)),"focus"in e&&(n.focus=q.create(e.focus)),n}throw new Error("`Annotation.createProperties` only accepts objects or annotations, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.key,r=e.type,i=e.data,o=e.anchor,a=e.focus;if(!n)throw new Error("Annotations must be created with a `key`, but you passed: "+JSON.stringify(e));if(!r)throw new Error("Annotations must be created with a `type`, but you passed: "+JSON.stringify(e));return new t({key:n,type:r,data:H.create(i||{}),anchor:q.fromJSON(o||{}),focus:q.fromJSON(a||{})})}}]),t}(Object(r.Record)(ee)),ne={data:void 0,key:void 0,nodes:void 0},re=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,data:this.data.toJSON(),nodes:this.nodes.toArray().map((function(t){return t.toJSON(e)}))};return e.preserveKeys&&(t.key=this.key),t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isDocument(e))return e;if((r.List.isList(e)||Array.isArray(e))&&(e={nodes:e}),o()(e))return t.fromJSON(e);throw new Error("`Document.create` only accepts objects, arrays, lists or documents, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isDocument(e))return e;var n=e.data,i=void 0===n?{}:n,o=e.key,a=void 0===o?_.create():o,s=e.nodes,l=void 0===s?[]:s;return new t({key:a,data:new r.Map(i),nodes:ue.createList(l)})}}]),t}(Object(r.Record)(ne)),ie={data:void 0,key:void 0,nodes:void 0,type:void 0},oe=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,type:this.type,data:this.data.toJSON(),nodes:this.nodes.toArray().map((function(t){return t.toJSON(e)}))};return e.preserveKeys&&(t.key=this.key),t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isInline(e))return e;if("string"==typeof e&&(e={type:e}),o()(e))return t.fromJSON(e);throw new Error("`Inline.create` only accepts objects, strings or inlines, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.List.isList(e)||Array.isArray(e)){var n=new r.List(e.map(t.create));return n}throw new Error("`Inline.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isInline(e))return e;var n=e.data,i=void 0===n?{}:n,o=e.key,a=void 0===o?_.create():o,s=e.nodes,l=void 0===s?[]:s,u=e.type;if("string"!=typeof u)throw new Error("`Inline.fromJS` requires a `type` string.");return new t({key:a,type:u,data:new r.Map(i),nodes:ue.createList(l)})}},{key:"isInlineList",value:function(e){return r.List.isList(e)&&e.every((function(e){return t.isInline(e)}))}}]),t}(Object(r.Record)(ie)),ae={key:void 0,marks:void 0,text:void 0},se=Object(r.Record)({text:void 0,marks:void 0,annotations:void 0,decorations:void 0}),le=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"addMark",value:function(e){e=V.create(e);var t=this.marks.add(e);return this.set("marks",t)}},{key:"addMarks",value:function(e){return e=V.createSet(e),this.set("marks",this.marks.union(e))}},{key:"getLeaves",value:function(e,t){var n=[{text:this.text,marks:this.marks,annotations:[],decorations:[]}],i=function(e,t){return[{text:e.text.slice(0,t),marks:e.marks,annotations:[].concat(P(e.annotations)),decorations:[].concat(P(e.decorations))},{text:e.text.slice(t),marks:e.marks,annotations:[].concat(P(e.annotations)),decorations:[].concat(P(e.decorations))}]},o=function(r){var o="annotations"===r?e.values():t,a=!0,s=!1,l=void 0;try{for(var u,c=o[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value,f=d.start,p=d.end,h=[],m=0,g=!0,v=!1,y=void 0;try{for(var b,_=n[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){var w=b.value,x=w.text.length,k=m;if(m+=x,f.offset<=k&&p.offset>=k+x)w[r].push(d),h.push(w);else if(f.offset>k+x||p.offset<k||p.offset===k&&0!==k)h.push(w);else{var E=w,S=void 0,O=void 0;if(p.offset<k+x){var T=i(E,p.offset-k),C=A(T,2);E=C[0],O=C[1]}if(f.offset>k){var P=i(E,f.offset-k),R=A(P,2);S=R[0],E=R[1]}E[r].push(d),S&&h.push(S),h.push(E),O&&h.push(O)}}}catch(e){v=!0,y=e}finally{try{!g&&_.return&&_.return()}finally{if(v)throw y}}n=h}}catch(e){s=!0,l=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw l}}};return o("annotations"),o("decorations"),n=n.map((function(e){return new se(S({},e,{annotations:Object(r.List)(e.annotations),decorations:Object(r.List)(e.decorations)}))})),Object(r.List)(n)}},{key:"insertText",value:function(e,t){var n=this.text,r=n.slice(0,e)+t+n.slice(e);return this.set("text",r)}},{key:"removeMark",value:function(e){e=V.create(e);var t=this.marks.remove(e);return this.set("marks",t)}},{key:"removeText",value:function(e,t){var n=this.text,r=n.slice(0,e)+n.slice(e+t);return this.set("text",r)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,text:this.text,marks:this.marks.toArray().map((function(e){return e.toJSON()}))};return e.preserveKeys&&(t.key=this.key),t}},{key:"setMark",value:function(e,t){var n=this.marks,r=V.create(e),i=r.merge(t),o=n.remove(r).add(i);return this.set("marks",o)}},{key:"splitText",value:function(e){var t=this.text;return[this.set("text",t.slice(0,e)),this.set("text",t.slice(e)).regenerateKey()]}},{key:"mergeText",value:function(e){var t=this.text+e.text;return this.set("text",t)}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(t.isText(e))return e;if("string"==typeof e&&(e={text:e}),o()(e))return t.fromJSON(e);throw new Error("`Text.create` only accepts objects, arrays, strings or texts, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.List.isList(e)||Array.isArray(e)){var n=new r.List(e.map(t.create));return n}throw new Error("`Text.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isText(e))return e;Object(s.a)(null==e.leaves,"As of slate@0.46, the `leaves` property of text nodes has been removed! Each individual leaf should be created as a text node instead.");var n=e.text,r=void 0===n?"":n,i=e.marks,o=void 0===i?[]:i,a=e.key;return new t({key:void 0===a?_.create():a,text:r,marks:V.createSet(o)})}},{key:"isTextList",value:function(e){return r.List.isList(e)&&e.every((function(e){return t.isText(e)}))}}]),t}(Object(r.Record)(ae)),ue=function(){function e(){x(this,e)}return k(e,null,[{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.isNode(t))return t;if(o()(t)){var n=t.object;switch(!n&&t.kind&&(Object(a.a)(!1,"As of slate@0.32.0, the `kind` property of Slate objects has been renamed to `object`."),n=t.kind),n){case"block":return de.create(t);case"document":return re.create(t);case"inline":return oe.create(t);case"text":return le.create(t);default:throw new Error("`Node.create` requires a `object` string.")}}throw new Error("`Node.create` only accepts objects or nodes but you passed it: "+t)}},{key:"createList",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.List.isList(t)||Array.isArray(t)){var n=[];t.forEach((function(t){if(t&&"text"===t.object&&t.leaves&&Array.isArray(t.leaves)){Object(a.a)(!1,"As of slate@0.46, the `leaves` property of Text nodes has been removed. Instead, each text node contains a string of text and a unique set of marks and leaves are unnecessary.");var r=le.createList(t.leaves).toArray();n=n.concat(r)}else{var i=e.create(t);n.push(i)}}));var i=Object(r.List)(n);return i}throw new Error("`Node.createList` only accepts lists or arrays, but you passed it: "+t)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(de.isBlock(e)||oe.isInline(e))return{data:e.data,type:e.type};if("string"==typeof e)return{type:e};if(o()(e)){var t={};return"type"in e&&(t.type=e.type),"data"in e&&(t.data=H.create(e.data)),t}throw new Error("`Node.createProperties` only accepts objects, strings, blocks or inlines, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var t=e.object;switch(!t&&e.kind&&(Object(a.a)(!1,"As of slate@0.32.0, the `kind` property of Slate objects has been renamed to `object`."),t=e.kind),t){case"block":return de.fromJSON(e);case"document":return re.fromJSON(e);case"inline":return oe.fromJSON(e);case"text":return le.fromJSON(e);default:throw new Error("`Node.fromJSON` requires an `object` of either 'block', 'document', 'inline' or 'text', but you passed: "+e)}}},{key:"isNode",value:function(e){return de.isBlock(e)||re.isDocument(e)||oe.isInline(e)||le.isText(e)}},{key:"isNodeList",value:function(t){return r.List.isList(t)&&t.every((function(t){return e.isNode(t)}))}}]),e}(),ce={data:void 0,key:void 0,nodes:void 0,type:void 0},de=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,type:this.type,data:this.data.toJSON(),nodes:this.nodes.toArray().map((function(t){return t.toJSON(e)}))};return e.preserveKeys&&(t.key=this.key),t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isBlock(e))return e;if("string"==typeof e&&(e={type:e}),o()(e))return t.fromJSON(e);throw new Error("`Block.create` only accepts objects, strings or blocks, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.List.isList(e)||Array.isArray(e)){var n=new r.List(e.map(t.create));return n}throw new Error("`Block.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isBlock(e))return e;var n=e.data,i=void 0===n?{}:n,o=e.key,a=void 0===o?_.create():o,s=e.nodes,l=void 0===s?[]:s,u=e.type;if("string"!=typeof u)throw new Error("`Block.fromJSON` requires a `type` string.");return new t({key:a,type:u,data:Object(r.Map)(i),nodes:ue.createList(l)})}},{key:"isBlockList",value:function(e){return r.List.isList(e)&&e.every((function(e){return t.isBlock(e)}))}}]),t}(Object(r.Record)(ce)),fe={annotations:void 0,data:void 0,document:void 0,selection:void 0},pe=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"addAnnotation",value:function(e){e=te.create(e);var t=this,n=t,r=n.annotations,i=n.document,o=e.key;return e=e.updatePoints((function(e){return e.normalize(i)})),r=r.set(o,e),t=t.set("annotations",r)}},{key:"addMark",value:function(e,t){t=V.create(t);var n=this,r=n.document;return r=r.addMark(e,t),n=n.set("document",r)}},{key:"insertNode",value:function(e,t){var n=this,r=n.document;return r=r.insertNode(e,t),n=(n=n.set("document",r)).mapRanges((function(e){return e.updatePoints((function(e){return e.setPath(null)}))}))}},{key:"insertText",value:function(e,t,n){var r=this,i=r.document,o=i.assertNode(e);return i=i.insertText(e,t,n),o=i.assertNode(e),r=(r=r.set("document",i)).mapPoints((function(e){return e.key===o.key&&e.offset>=t?e.setOffset(e.offset+n.length):e}))}},{key:"mergeNode",value:function(e){var t=this,n=t.document,r=n.mergeNode(e);e=n.resolvePath(e);var i=z.decrement(e),o=n.getNode(i),a=n.getNode(e);return t=(t=t.set("document",r)).mapRanges((function(e){if("text"===a.object){var t=o.text.length;e.anchor.key===a.key&&(e=e.moveAnchorTo(o.key,t+e.anchor.offset)),e.focus.key===a.key&&(e=e.moveFocusTo(o.key,t+e.focus.offset))}return e=e.updatePoints((function(e){return e.setPath(null)}))}))}},{key:"moveNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this,i=r,o=i.document;return z.isEqual(e,t)?r:(o=o.moveNode(e,t,n),r=(r=r.set("document",o)).mapPoints((function(e){return e.setPath(null)})))}},{key:"removeAnnotation",value:function(e){e=te.create(e);var t=this,n=t.annotations,r=e.key;return n=n.delete(r),t=t.set("annotations",n)}},{key:"removeMark",value:function(e,t){t=V.create(t);var n=this,r=n.document;return r=r.removeMark(e,t),n=n.set("document",r)}},{key:"removeNode",value:function(e){var t=this,n=t.document,r=n.assertNode(e),i="text"===r.object?r:r.getFirstText()||r,o="text"===r.object?r:r.getLastText()||r,a=n.getPreviousText(i.key),s=n.getNextText(o.key);return n=n.removeNode(e),t=(t=t.set("document",n)).mapRanges((function(e){var t=e,n=t.anchor,i=t.focus;return r.hasNode(n.key)&&(e=a?e.moveAnchorTo(a.key,a.text.length):s?e.moveAnchorTo(s.key,0):e.unset()),r.hasNode(i.key)&&(e=a?e.moveFocusTo(a.key,a.text.length):s?e.moveFocusTo(s.key,0):e.unset()),e=e.updatePoints((function(e){return e.setPath(null)}))}))}},{key:"removeText",value:function(e,t,n){var r=this,i=r.document,o=i.assertNode(e);i=i.removeText(e,t,n),r=r.set("document",i);var a=n.length,s=t,l=t+a;return r=r.mapPoints((function(e){return e.key!==o.key?e:e.offset>=l?e.setOffset(e.offset-a):e.offset>s?e.setOffset(s):e}))}},{key:"setAnnotation",value:function(e,t){t=te.createProperties(t);var n=te.create(e),r=n.merge(t),i=this,o=i.annotations,a=n.key;return o=o.set(a,r),i=i.set("annotations",o)}},{key:"setNode",value:function(e,t){var n=this,r=n.document;return r=r.setNode(e,t),n=n.set("document",r)}},{key:"setMark",value:function(e,t,n){var r=this,i=r.document;return i=i.setMark(e,t,n),r=r.set("document",i)}},{key:"setProperties",value:function(e){var t=this,n=t.document,r=e.data,i=e.annotations,o={};return r&&(o.data=r),i&&(o.annotations=i.map((function(e){return e.isSet?e:n.resolveAnnotation(e)}))),t=t.merge(o)}},{key:"setSelection",value:function(e){var t=this,n=t,r=n.document,i=n.selection,o=i.setProperties(e);return i=r.resolveSelection(o),t=t.set("selection",i)}},{key:"splitNode",value:function(e,t,n){var r=this,i=r.document,o=i.splitNode(e,t,n),a=i.assertNode(e);return r=(r=r.set("document",o)).mapRanges((function(e){var n=o.getNextText(a.key),r=e,i=r.anchor,s=r.focus;return a.key===i.key&&t<=i.offset&&(e=e.moveAnchorTo(n.key,i.offset-t)),a.key===s.key&&t<=s.offset&&(e=e.moveFocusTo(n.key,s.offset-t)),e=e.updatePoints((function(e){return e.setPath(null)}))}))}},{key:"mapRanges",value:function(e){var t=this,n=t,r=n.document,i=n.selection,o=n.annotations,a=i.isSet?e(i):i;a||(a=i.unset()),a!==i&&(a=r.createSelection(a)),t=t.set("selection",a);var s=o.map((function(t){var n=t.isSet?e(t):t;return n&&n!==t&&(n=r.createAnnotation(n)),n}));return s=s.filter((function(e){return!!e})),t=t.set("annotations",s)}},{key:"mapPoints",value:function(e){return this.mapRanges((function(t){return t.updatePoints(e)}))}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,document:this.document.toJSON(e)};return e.preserveData&&(t.data=this.data.toJSON(e)),e.preserveAnnotations&&(t.annotations=this.annotations.map((function(t){return t.toJSON(e)})).toObject()),e.preserveSelection&&(t.selection=this.selection.toJSON(e)),t}},{key:"change",value:function(){Object(s.a)(!1,"As of Slate 0.42.0, value object are no longer schema-aware, and the `value.change()` method is no longer available. Use the `editor.change()` method on the new `Editor` controller instead.")}},{key:"startBlock",get:function(){return this.selection.start.key&&this.document.getClosestBlock(this.selection.start.key)}},{key:"endBlock",get:function(){return this.selection.end.key&&this.document.getClosestBlock(this.selection.end.key)}},{key:"anchorBlock",get:function(){return this.selection.anchor.key&&this.document.getClosestBlock(this.selection.anchor.key)}},{key:"focusBlock",get:function(){return this.selection.focus.key&&this.document.getClosestBlock(this.selection.focus.key)}},{key:"startInline",get:function(){return this.selection.start.key&&this.document.getClosestInline(this.selection.start.key)}},{key:"endInline",get:function(){return this.selection.end.key&&this.document.getClosestInline(this.selection.end.key)}},{key:"anchorInline",get:function(){return this.selection.anchor.key&&this.document.getClosestInline(this.selection.anchor.key)}},{key:"focusInline",get:function(){return this.selection.focus.key&&this.document.getClosestInline(this.selection.focus.key)}},{key:"startText",get:function(){return this.selection.start.key&&this.document.getDescendant(this.selection.start.key)}},{key:"endText",get:function(){return this.selection.end.key&&this.document.getDescendant(this.selection.end.key)}},{key:"anchorText",get:function(){return this.selection.anchor.key&&this.document.getDescendant(this.selection.anchor.key)}},{key:"focusText",get:function(){return this.selection.focus.key&&this.document.getDescendant(this.selection.focus.key)}},{key:"nextBlock",get:function(){return this.selection.end.key&&this.document.getNextBlock(this.selection.end.key)}},{key:"previousBlock",get:function(){return this.selection.start.key&&this.document.getPreviousBlock(this.selection.start.key)}},{key:"nextInline",get:function(){return this.selection.end.key&&this.document.getNextInline(this.selection.end.key)}},{key:"previousInline",get:function(){return this.selection.start.key&&this.document.getPreviousInline(this.selection.start.key)}},{key:"nextText",get:function(){return this.selection.end.key&&this.document.getNextText(this.selection.end.key)}},{key:"previousText",get:function(){return this.selection.start.key&&this.document.getPreviousText(this.selection.start.key)}},{key:"marks",get:function(){return this.selection.isUnset?new r.Set:this.selection.marks||this.document.getMarksAtRange(this.selection)}},{key:"activeMarks",get:function(){return this.selection.isUnset?new r.Set:this.selection.marks||this.document.getActiveMarksAtRange(this.selection)}},{key:"blocks",get:function(){return this.selection.isUnset?new r.List:this.document.getLeafBlocksAtRange(this.selection)}},{key:"fragment",get:function(){return this.selection.isUnset?re.create():this.document.getFragmentAtRange(this.selection)}},{key:"inlines",get:function(){return this.selection.isUnset?new r.List:this.document.getLeafInlinesAtRange(this.selection)}},{key:"texts",get:function(){return this.selection.isUnset?new r.List:this.document.getTextsAtRange(this.selection)}},{key:"history",get:function(){Object(s.a)(!1,"As of Slate 0.42.0, the `value.history` model no longer exists, and the history is stored in `value.data` instead using plugins.")}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.isValue(e))return e;if(o()(e))return t.fromJSON(e,n);throw new Error("`Value.create` only accepts objects or values, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isValue(e))return{annotations:e.annotations,data:e.data};if(o()(e)){var n={};return"annotations"in e&&(n.annotations=te.createMap(e.annotations)),"data"in e&&(n.data=H.create(e.data)),n}throw new Error("`Value.createProperties` only accepts objects or values, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.data,r=void 0===n?{}:n,i=e.annotations,o=void 0===i?{}:i,a=e.document,s=void 0===a?{}:a,l=e.selection,u=void 0===l?{}:l;if(r=H.fromJSON(r),u=(s=re.fromJSON(s)).createSelection(u),o=te.createMap(o),u.isUnset){var c=s.getFirstText();c&&(u=u.moveToStartOfNode(c)),u=s.createSelection(u)}return new t({annotations:o,data:r,document:s,selection:u})}}]),t}(Object(r.Record)(fe)),he=u()("slate:operation:apply");function me(e,t){var n=(t=_e.create(t)).type;switch(he(n,t),n){case"add_annotation":var r=t.annotation;return e.addAnnotation(r);case"add_mark":var i=t,o=i.path,a=i.mark;return e.addMark(o,a);case"insert_node":var s=t,l=s.path,u=s.node;return e.insertNode(l,u);case"insert_text":var c=t,d=c.path,f=c.offset,p=c.text,h=c.marks;return e.insertText(d,f,p,h);case"merge_node":var m=t.path;return e.mergeNode(m);case"move_node":var g=t,v=g.path,y=g.newPath;return e.moveNode(v,y);case"remove_annotation":var b=t.annotation;return e.removeAnnotation(b);case"remove_mark":var _=t,w=_.path,x=_.mark;return e.removeMark(w,x);case"remove_node":var k=t.path;return e.removeNode(k);case"remove_text":var E=t,S=E.path,O=E.offset,T=E.text;return e.removeText(S,O,T);case"set_annotation":var C=t,A=C.properties,P=C.newProperties;return e.setAnnotation(A,P);case"set_mark":var R=t,M=R.path,I=R.properties,j=R.newProperties;return e.setMark(M,I,j);case"set_node":var D=t,L=D.path,N=D.newProperties;return e.setNode(L,N);case"set_selection":var F=t.newProperties;return e.setSelection(F);case"set_value":var B=t.newProperties;return e.setProperties(B);case"split_node":var z=t,U=z.path,q=z.position,H=z.properties;return e.splitNode(U,q,H);default:throw new Error('Unknown operation type: "'+n+'".')}}var ge=u()("slate:operation:invert");function ve(e){var t=(e=_e.create(e)).type;switch(ge(t,e),t){case"move_node":var n=e,r=n.newPath,i=n.path;if(z.isEqual(r,i))return e;var o=z.transform(i,e).first(),a=z.transform(z.increment(i),e).first();return e.set("path",o).set("newPath",a);case"merge_node":var s=e.path,l=z.decrement(s);return e.set("type","split_node").set("path",l);case"split_node":var u=e.path,c=z.increment(u);return e.set("type","merge_node").set("path",c);case"set_annotation":case"set_node":case"set_value":case"set_selection":case"set_mark":var d=e,f=d.properties,p=d.newProperties;return e.set("properties",p).set("newProperties",f);case"insert_node":case"insert_text":return e.set("type",t.replace("insert_","remove_"));case"remove_node":case"remove_text":return e.set("type",t.replace("remove_","insert_"));case"add_annotation":case"add_mark":return e.set("type",t.replace("add_","remove_"));case"remove_annotation":case"remove_mark":return e.set("type",t.replace("remove_","add_"));default:throw new Error('Unknown operation type: "'+t+'".')}}var ye={add_mark:["path","mark","data"],add_annotation:["annotation","data"],insert_node:["path","node","data"],insert_text:["path","offset","text","data"],merge_node:["path","position","properties","target","data"],move_node:["path","newPath","data"],remove_annotation:["annotation","data"],remove_mark:["path","mark","data"],remove_node:["path","node","data"],remove_text:["path","offset","text","data"],set_annotation:["properties","newProperties","data"],set_mark:["path","properties","newProperties","data"],set_node:["path","properties","newProperties","data"],set_selection:["properties","newProperties","data"],set_value:["properties","newProperties","data"],split_node:["path","position","properties","target","data"]},be={annotation:void 0,data:void 0,length:void 0,mark:void 0,marks:void 0,newPath:void 0,newProperties:void 0,node:void 0,offset:void 0,path:void 0,position:void 0,properties:void 0,target:void 0,text:void 0,type:void 0},_e=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"apply",value:function(e){return me(e,this)}},{key:"invert",value:function(){return ve(this)}},{key:"toJSON",value:function(){var e=this.object,t=this.type,n={object:e,type:t},r=ye[t],i=!0,o=!1,a=void 0;try{for(var s,l=r[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var u=s.value,c=this[u];if("annotation"!==u&&"mark"!==u&&"marks"!==u&&"node"!==u&&"path"!==u&&"newPath"!==u||(c=c.toJSON()),"properties"===u&&"merge_node"===t){var d={};"data"in c&&(d.data=c.data.toJS()),"type"in c&&(d.type=c.type),c=d}if(("properties"===u||"newProperties"===u)&&"set_annotation"===t){var f={};"anchor"in c&&(f.anchor=c.anchor.toJS()),"focus"in c&&(f.focus=c.focus.toJS()),"key"in c&&(f.key=c.key),"data"in c&&(f.data=c.data.toJS()),"type"in c&&(f.type=c.type),c=f}if(("properties"===u||"newProperties"===u)&&"set_mark"===t){var p={};"data"in c&&(p.data=c.data.toJS()),"type"in c&&(p.type=c.type),c=p}if(("properties"===u||"newProperties"===u)&&"set_node"===t){var h={};"data"in c&&(h.data=c.data.toJS()),"type"in c&&(h.type=c.type),c=h}if(("properties"===u||"newProperties"===u)&&"set_selection"===t){var m={};"anchor"in c&&(m.anchor=c.anchor.toJSON()),"focus"in c&&(m.focus=c.focus.toJSON()),"isFocused"in c&&(m.isFocused=c.isFocused),"marks"in c&&(m.marks=c.marks&&c.marks.toJSON()),c=m}if(("properties"===u||"newProperties"===u)&&"set_value"===t){var g={};"data"in c&&(g.data=c.data.toJS()),c=g}if("properties"===u&&"split_node"===t){var v={};"data"in c&&(v.data=c.data.toJS()),"type"in c&&(v.type=c.type),c=v}"data"===u&&(c=c.toJSON()),n[u]=c}}catch(e){o=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw a}}return n}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isOperation(e))return e;if(o()(e))return t.fromJSON(e);throw new Error("`Operation.create` only accepts objects or operations, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.List.isList(e)||Array.isArray(e)){var n=new r.List(e.map(t.create));return n}throw new Error("`Operation.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isOperation(e))return e;var n=e.type,i=ye[n],o={type:n};if(!i)throw new Error('`Operation.fromJSON` was passed an unrecognized operation type: "'+n+'"');var a=!0,s=!1,l=void 0;try{for(var u,c=i[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value,f=e[d];if("data"===d&&void 0===f&&(f={}),void 0===f)throw new Error('`Operation.fromJSON` was passed a "'+n+'" operation without the required "'+d+'" attribute.');"annotation"===d&&(f=te.create(f)),"path"!==d&&"newPath"!==d||(f=z.create(f)),"mark"===d&&(f=V.create(f)),"node"===d&&(f=ue.create(f)),"properties"!==d&&"newProperties"!==d||"set_annotation"!==n||(f=te.createProperties(f)),"properties"!==d&&"newProperties"!==d||"set_mark"!==n||(f=V.createProperties(f)),"properties"!==d&&"newProperties"!==d||"set_node"!==n&&"merge_node"!==n&&"split_node"!==n||(f=ue.createProperties(f)),"properties"!==d&&"newProperties"!==d||"set_selection"!==n||(f=Y.createProperties(f)),"properties"!==d&&"newProperties"!==d||"set_value"!==n||(f=pe.createProperties(f)),"data"===d&&(f=Object(r.Map)(f)),o[d]=f}}catch(e){s=!0,l=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw l}}return new t(o)}},{key:"isOperationList",value:function(e){return r.List.isList(e)&&e.every((function(e){return t.isOperation(e)}))}}]),t}(Object(r.Record)(be)),we={operations:void 0,value:void 0},xe=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,value:this.value.toJSON(e),operations:this.operations.toArray().map((function(t){return t.toJSON(e)}))};return t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isChange(e))return e;if(o()(e))return t.fromJSON(e);throw new Error("`Change.create` only accepts objects or changes, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.value,r=e.operations,i=void 0===r?[]:r;return new t({value:pe.create(n),operations:_e.createList(i)})}}]),t}(Object(r.Record)(we));function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function t(t,n,r){var i=t.type,o=t.args,a=e[i];if(!a)return r();n.command.apply(n,[a].concat(P(o)))}function n(t,n){for(var r in e)t.registerCommand(r);return n()}return{onCommand:t,onConstruct:n}}var Ee=/\s/,Se=/['\u2018\u2019]/,Oe=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;function Te(e){return 55296<=e&&e<=57343}function Ce(e,t,n){if(55356===e){var r=t.charCodeAt(n+1);return r<=57343&&r>=57339}return!1}function Ae(e){return e<=65039&&e>=65024}function Pe(e,t){if(Ee.test(e))return!1;if(Se.test(e)){var n=t.charAt(0),r=Re(n);if(Pe(n=t.slice(0,r),t.slice(r)))return!0}return!Oe.test(e)}function Re(e){return Te(e.charCodeAt(0))?2:1}function Me(e,t,n){var r,i=0;if(""===e)return 1;for(var o=0;o<t;o++)for(var a=null,s=e.charCodeAt(i);s;)if(Te(s)){var l=Ce(s,e,i);if(n){if(!l&&a&&"ZWJ"!==a||l&&a&&"SURR"!==a)break}else if("SURR"===a||"BMP"===a)break;i+=2,a=l?"MOD":"SURR",s=e.charCodeAt(i)}else if(8205!==s)if(10084!==(r=s)&&9794!==r&&9792!==r&&9760!==r&&9877!==r&&9992!==r&&9711!==r){if(!Ae(s)){if(n){if(Ce(e.charCodeAt(i+1),e,i+1)){i+=3,a="MOD",s=e.charCodeAt(i);continue}}else if("MOD"===a){i+=1;break}null===a&&(i+=1);break}if(!n&&a&&"ZWJ"!==a)break;i+=1,a="VAR",s=e.charCodeAt(i)}else{if(n&&"VAR"===a||a&&"ZWJ"!==a&&"VAR"!==a)break;i+=1,a="BMP",s=e.charCodeAt(i)}else i+=1,a="ZWJ",s=e.charCodeAt(i);return i}function Ie(e){for(var t=0,n=0,r=!1,i=void 0;i=e.charAt(n);){var o=Re(i);if(Pe(i=e.slice(n,n+o),e.slice(n+o)))r=!0,t+=o;else{if(r)break;t+=o}n+=o}return t}var je={getCharLength:Re,getCharOffset:Me,getCharOffsetBackward:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e=e.slice(0,t),Me(e=Object(c.reverse)(e),n)},getCharOffsetForward:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Me(e=e.slice(t),n,!0)},getWordOffset:Ie,getWordOffsetBackward:function(e,t){return e=e.slice(0,t),Ie(e=Object(c.reverse)(e))},getWordOffsetForward:function(e,t){return Ie(e=e.slice(t))},isSurrogate:Te,isWord:Pe};function De(e,t){t.isExpanded&&e.deleteAtRange(t);var n=e.value.document,r=t,i=r.start,o=r.end;return t=n.hasDescendant(i.path)?t.moveToStart():t.moveTo(o.path,0).normalize(n)}var Le={addMarkAtRange:function(e,t,n){if(!t.isCollapsed){var r=e.value.document,i=t.start,o=t.end,a=r.getTextsAtRange(t);e.withoutNormalizing((function(){a.forEach((function(t){var r=t.key,a=0,s=t.text.length;r===i.key&&(a=i.offset),r===o.key&&(s=o.offset),r===i.key&&r===o.key&&(s=o.offset-i.offset),e.addMarkByKey(r,a,s,n)}))}))}},addMarksAtRange:function(e,t,n){n.forEach((function(n){return e.addMarkAtRange(t,n)}))},deleteAtRange:function(e,t){e.snapshotSelection();var n=e.value,r=t.start,i=t.end,o=r.key,a=r.offset,s=i.key,l=i.offset,u=n.document,c=u.hasVoidParent(o,e),d=u.hasVoidParent(s,e),f=u.getClosestBlock(o),p=u.getClosestBlock(s),h=0===a&&0===l&&!1===c&&o===f.getFirstText().key&&s===p.getFirstText().key&&o!==s;if(h&&d){var m=u.getPreviousText(s);s=m.key,l=m.text.length,d=u.hasVoidParent(s,e)}e.withoutNormalizing((function(){for(;c;){var t=u.getClosestVoid(o,e),n=u.getNextText(o);if(e.removeNodeByKey(t.key),o===s)return;if(!n)return;u=e.value.document,o=n.key,a=0,c=u.hasVoidParent(o,e)}for(;d;){var r=u.getClosestVoid(s,e),i=u.getPreviousText(s);e.removeNodeByKey(r.key),u=e.value.document,s=i.key,l=i.text.length,d=u.hasVoidParent(s,e)}if(o===s&&h)e.removeNodeByKey(f.key);else if(o!==s){f=u.getClosestBlock(o),p=u.getClosestBlock(s);var m=u.getNode(o),g=u.getNode(s),v=m.text.length-a,y=l,b=u.getCommonAncestor(o,s),_=b.getFurthestChild(o),w=b.getFurthestChild(s),x=u.getParent(f.key),k=x.nodes.indexOf(f),E=x.nodes.indexOf(p),S=void 0;for(S=m;S.key!==_.key;){var O=u.getParent(S.key),T=O.nodes.indexOf(S);O.nodes.slice(T+1).reverse().forEach((function(t){e.removeNodeByKey(t.key)})),S=O}var C=b.nodes.indexOf(_),P=b.nodes.indexOf(w);for(b.nodes.slice(C+1,P).reverse().forEach((function(t){e.removeNodeByKey(t.key)})),S=g;S.key!==w.key;){var R=u.getParent(S.key),M=R.nodes.indexOf(S);R.nodes.slice(0,M).reverse().forEach((function(t){e.removeNodeByKey(t.key)})),S=R}if(0!==v&&e.removeTextByKey(o,a,v),0!==y&&e.removeTextByKey(s,0,l),f.key!==p.key){u=e.value.document;var I=void 0,j=!0,D=!1,L=void 0;try{for(var N,F=u.ancestors(p.key)[Symbol.iterator]();!(j=(N=F.next()).done);j=!0){var B=N.value,z=A(B,1)[0];if(z.nodes.size>1)break;I=z}}catch(e){D=!0,L=e}finally{try{!j&&F.return&&F.return()}finally{if(D)throw L}}E!==k+1&&e.moveNodeByKey(p.key,x.key,k+1),h?e.removeNodeByKey(f.key):e.mergeNodeByKey(p.key),I&&e.removeNodeByKey(I.key)}}else{var U=a,q=l-a;e.removeTextByKey(o,U,q)}}))},deleteBackwardAtRange:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(0!==n){var r=e.value,i=r.document,o=t,a=o.start,s=o.focus;if(t.isExpanded)e.deleteAtRange(t);else{var l=i.getClosestVoid(a.path,e);if(l)e.removeNodeByKey(l.key);else if(!a.isAtStartOfNode(i)){var u=i.getClosestBlock(a.path);if(1!==i.nodes.size&&u&&""===u.text&&1===u.nodes.size)e.removeNodeByKey(u.key);else{var c=i.getDescendant(a.path);if(a.isAtStartOfNode(c)){var d=i.getPreviousText(c.key),f=i.getClosestInline(c.key);f&&""===d.text&&(d=i.getPreviousText(d.key));var p=i.getClosestBlock(d.key),h=i.getClosestVoid(d.key,e);if(h)return void e.removeNodeByKey(h.key);if(1===n&&p!==u)return t=t.moveAnchorTo(d.key,d.text.length),void e.deleteAtRange(t)}if(n<=s.offset)return t=t.moveFocusBackward(n),void e.deleteAtRange(t);for(var m=c,g=0,v=s.offset;n>v;){var y=v+(m=i.getPreviousText(m.key)).text.length;if(n<=y){g=y-n;break}v=y}t=t.moveAnchorTo(m.key,g),e.deleteAtRange(t)}}}}},deleteCharBackwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path),o=i.getOffset(r.key)+r.offset,a=i.text,s=je.getCharOffsetBackward(a,o);e.deleteBackwardAtRange(t,s)}},deleteCharForwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path),o=i.getOffset(r.key)+r.offset,a=i.text,s=je.getCharOffsetForward(a,o);e.deleteForwardAtRange(t,s)}},deleteForwardAtRange:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(0!==n){var r=e.value,i=r.document,o=t,a=o.start,s=o.focus;if(t.isExpanded)e.deleteAtRange(t);else{var l=i.getClosestVoid(a.path,e);if(l)e.removeNodeByKey(l.key);else{var u=i.getClosestBlock(a.path);if(u&&!e.isVoid(u)&&""===u.text&&1!==i.nodes.size){var c=i.getNextBlock(u.key);return e.removeNodeByKey(u.key),void(c&&c.key&&e.moveToStartOfNode(c))}if(!a.isAtEndOfNode(i)){var d=i.getDescendant(a.path);if(a.isAtEndOfNode(d)){var f=i.getNextText(d.key),p=i.getClosestBlock(f.key),h=i.getClosestVoid(f.key,e);if(h)return void e.removeNodeByKey(h.key);if(1===n&&p!==u)return t=t.moveFocusTo(f.key,0),void e.deleteAtRange(t)}if(n<=d.text.length-s.offset)return t=t.moveFocusForward(n),void e.deleteAtRange(t);for(var m=d,g=s.offset,v=d.text.length-s.offset;n>v;){var y=v+(m=i.getNextText(m.key)).text.length;if(n<=y){g=n-v;break}v=y}t=t.moveFocusTo(m.key,g),e.deleteAtRange(t)}}}}},deleteLineBackwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path).getOffset(r.key)+r.offset;e.deleteBackwardAtRange(t,i)}},deleteLineForwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path),o=i.getOffset(r.key)+r.offset;e.deleteForwardAtRange(t,i.text.length-o)}},deleteWordBackwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path),o=i.getOffset(r.key)+r.offset,a=i.text,s=0===o?1:je.getWordOffsetBackward(a,o);e.deleteBackwardAtRange(t,s)}},deleteWordForwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path),o=i.getOffset(r.key)+r.offset,a=i.text,s=je.getWordOffsetForward(a,o),l=0===s?1:s;e.deleteForwardAtRange(t,l)}},insertBlockAtRange:function(e,t,n){t=De(e,t),n=de.create(n);var r=e.value.document,i=t.start,o=i.key,a=i.offset,s=r.getClosestBlock(o),l=r.getClosestInline(o),u=r.getParent(s.key),c=u.nodes.indexOf(s),d=Ne(e,t);if("before"===d)e.insertNodeByKey(u.key,c,n);else if("behind"===d)e.insertNodeByKey(u.key,c+1,n);else{if(l&&e.isVoid(l)){var f=i.isAtEndOfNode(l),p=f?r.getNextText(o):r.getPreviousText(o),h=f?t.moveToStartOfNode(p):t.moveToEndOfNode(p);o=h.start.key,a=h.start.offset}e.withoutNormalizing((function(){e.splitDescendantsByKey(s.key,o,a),e.insertNodeByKey(u.key,c+1,n)}))}}},Ne=function(e,t){var n=e.value.document,r=t.start,i=r.key,o=n.getClosestBlock(i),a=n.getClosestInline(i);return e.isVoid(o)?r.isAtEndOfNode(o)?"behind":"before":a||""!==o.text?r.isAtStartOfNode(o)?"before":r.isAtEndOfNode(o)?"behind":"split":"behind"};Le.insertFragmentAtRange=function(e,t,n){e.withoutNormalizing((function(){if(t=De(e,t),n.nodes.size){n=n.mapDescendants((function(e){return e.regenerateKey()}));var i=t.start,o=e.value.document,a=o.getDescendant(i.path),s=o.getClosestBlock(a.key),l=s.getFurthestChild(a.key),u=i.isAtStartOfNode(s),c=o.getParent(s.key),d=c.nodes.indexOf(s),f=n.getBlocks(),p=n.nodes.first(),h=n.nodes.last(),m=f.first(),g=f.last(),v=Fe(n,o,s.key);if(m===g&&e.isVoid(m))e.insertBlockAtRange(t,m);else if(v!==n||!p.hasBlockChildren()&&!h.hasBlockChildren()){if(m!==g){var y=v.getFurthest(m.key,(function(e){return 1===e.nodes.size}))||m,b=c.nodes.indexOf(s);v.removeNode(y.key).nodes.forEach((function(t,n){var r=b+n+1;e.insertNodeByKey(c.key,r,t)}))}if(0!==i.offset&&e.splitDescendantsByKey(l.key,i.key,i.offset),a=(o=e.value.document).getDescendant(i.key),l=(s=o.getClosestBlock(i.key)).getFurthestChild(a.key),m!==g){var _=u?l:s.getNextSibling(l.key),w=_?s.nodes.skipUntil((function(e){return e.key===_.key})):Object(r.List)(),x=g.nodes.size;w.forEach((function(t,n){var r=x+n;e.moveNodeByKey(t.key,g.key,r)}))}if(e.isVoid(s)||""!==s.text||s.findDescendant((function(t){return e.isVoid(t)}))){var k=s.getFurthestChild(a.key),E=s.nodes.indexOf(k);m.nodes.forEach((function(t,n){var r=0===i.offset?0:1,o=E+n+r;e.insertNodeByKey(s.key,o,t)}))}else e.removeNodeByKey(s.key),e.insertNodeByKey(c.key,d,m)}else{("before"===Ne(e,t)?n.nodes:n.nodes.reverse()).forEach((function(n){e.insertBlockAtRange(t,n)}))}}}))};var Fe=function(e,t,n){var r=function(e,t){return t.size>=e.size&&e.every((function(e,n){return t.get(n).type===e.type}))},i=function(e,t){return e.getAncestors(t).slice(1).push(e.getNode(t)).reverse()},o=function(e){for(var t=e;1===t.nodes.size&&"block"===t.nodes.first().object;)t=t.nodes.first();return t===e?null:t}(e);return o?function(t,n){var i=t.size-n.size;if(i<0)return e;for(var o=0;o<n.size;o++)for(var a=0;a<=i;a++)if(r(n.slice(o),t.slice(a)))return n.get(o);return e}(i(t,n),i(e,o.key)):e};Le.insertInlineAtRange=function(e,t,n){n=oe.create(n),e.withoutNormalizing((function(){t=De(e,t);var r=e.value.document,i=t.start,o=r.getParent(i.path),a=r.assertDescendant(i.path),s=o.nodes.indexOf(a);e.isVoid(o)||(e.splitNodeByPath(i.path,i.offset),e.insertNodeByKey(o.key,s+1,n))}))},Le.insertTextAtRange=function(e,t,n,r){e.withoutNormalizing((function(){t=De(e,t);var i=e.value.document,o=t.start,a=o.offset,s=i.getParent(o.path);e.isVoid(s)||e.insertTextByPath(o.path,a,n,r)}))},Le.removeMarkAtRange=function(e,t,n){if(!t.isCollapsed){var r=e.value.document.getTextsAtRange(t),i=t.start,o=t.end;e.withoutNormalizing((function(){r.forEach((function(t){var r=t.key,a=0,s=t.text.length;r===i.key&&(a=i.offset),r===o.key&&(s=o.offset),r===i.key&&r===o.key&&(s=o.offset-i.offset),e.removeMarkByKey(r,a,s,n)}))}))}},Le.setBlocksAtRange=function(e,t,n){var r=e.value.document,i=r.getLeafBlocksAtRange(t),o=t.start,a=t.end,s=t.isCollapsed,l=r.hasVoidParent(o.path,e),u=r.getClosestBlock(o.path),c=r.getClosestBlock(a.key),d=!1===s&&0===o.offset&&0===a.offset&&!1===l&&o.key===u.getFirstText().key&&a.key===c.getFirstText().key?i.slice(0,-1):i;e.withoutNormalizing((function(){d.forEach((function(t){e.setNodeByKey(t.key,n)}))}))},Le.setInlinesAtRange=function(e,t,n){var r=e.value.document.getLeafInlinesAtRange(t);e.withoutNormalizing((function(){r.forEach((function(t){e.setNodeByKey(t.key,n)}))}))},Le.splitBlockAtRange=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=t=De(e,t),i=r.start,o=r.end,a=e.value,s=a,l=s.document,u=l.assertDescendant(i.path),c=l.getClosestBlock(u.key),d=0;c&&"block"===c.object&&d<n;)u=c,c=l.getClosestBlock(c.key),d++;e.withoutNormalizing((function(){if(e.splitDescendantsByKey(u.key,i.path,i.offset),a=e.value,l=a.document,t.isExpanded){t.isBackward&&(t=t.flip());var n=l.getNextBlock(u.key);t=(t=t.moveAnchorToStartOfNode(n)).setFocus(t.focus.setPath(null)),i.path.equals(o.path)&&(t=t.moveFocusTo(t.anchor.key,o.offset-i.offset)),t=l.resolveRange(t),e.deleteAtRange(t)}}))},Le.splitInlineAtRange=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=t=De(e,t),i=r.start,o=e.value,a=o.document,s=a.assertDescendant(i.path),l=a.getClosestInline(s.key),u=0;l&&"inline"===l.object&&u<n;)s=l,l=a.getClosestInline(l.key),u++;e.splitDescendantsByKey(s.key,i.path,i.offset)},Le.toggleMarkAtRange=function(e,t,n){t.isCollapsed||(n=V.create(n),e.value.document.getActiveMarksAtRange(t).some((function(e){return e.equals(n)}))?e.removeMarkAtRange(t,n):e.addMarkAtRange(t,n))},Le.unwrapBlockAtRange=function(e,t,n){n=ue.createProperties(n);var r=e.value.document,i=r.getLeafBlocksAtRange(t),o=i.map((function(e){return r.getClosest(e.key,(function(e){return"block"===e.object&&((null==n.type||e.type===n.type)&&!(null!=n.data&&!e.data.isSuperset(n.data)))}))})).filter((function(e){return e})).toOrderedSet().toList();e.withoutNormalizing((function(){o.forEach((function(t){var n=t.nodes.first(),o=t.nodes.last(),a=e.value.document.getParent(t.key),s=a.nodes.indexOf(t),l=t.nodes.filter((function(e){return i.some((function(t){return e===t||e.hasDescendant(t.key)}))})),u=l.first(),c=l.last();if(n===u&&o===c)t.nodes.forEach((function(t,n){e.moveNodeByKey(t.key,a.key,s+n)})),e.removeNodeByKey(t.key);else if(o===c)t.nodes.skipUntil((function(e){return e===u})).forEach((function(t,n){e.moveNodeByKey(t.key,a.key,s+1+n)}));else if(n===u)t.nodes.takeUntil((function(e){return e===c})).push(c).forEach((function(t,n){e.moveNodeByKey(t.key,a.key,s+n)}));else{var d=u.getFirstText();e.splitDescendantsByKey(t.key,d.key,0),r=e.value.document,l.forEach((function(t,n){if(0===n){var i=t;t=r.getNextBlock(t.key),e.removeNodeByKey(i.key)}e.moveNodeByKey(t.key,a.key,s+1+n)}))}}))}))},Le.unwrapInlineAtRange=function(e,t,n){n=ue.createProperties(n);var r=e.value.document,i=r.getTextsAtRange(t).map((function(e){return r.getClosest(e.key,(function(e){return"inline"===e.object&&((null==n.type||e.type===n.type)&&!(null!=n.data&&!e.data.isSuperset(n.data)))}))})).filter((function(e){return e})).toOrderedSet().toList();e.withoutNormalizing((function(){i.forEach((function(t){var n=e.value.document.getParent(t.key),r=n.nodes.indexOf(t);t.nodes.forEach((function(t,i){e.moveNodeByKey(t.key,n.key,r+i)})),e.removeNodeByKey(t.key)}))}))},Le.wrapBlockAtRange=function(e,t,n){n=(n=de.create(n)).set("nodes",n.nodes.clear());var r=e.value.document,i=r.getLeafBlocksAtRange(t),o=i.first(),a=i.last(),s=void 0,l=void 0,u=void 0;if(1===i.length?(s=r.getParent(o.key),l=i):s=r.getClosest(o.key,(function(e){return!!r.getClosest(a.key,(function(t){return e===t}))})),null==s&&(s=r),null==l){var c=s.nodes.reduce((function(e,t,n){return(t===o||t.hasDescendant(o.key))&&(e[0]=n),(t===a||t.hasDescendant(a.key))&&(e[1]=n),e}),[]);u=c[0],l=s.nodes.slice(c[0],c[1]+1)}null==u&&(u=s.nodes.indexOf(l.first())),e.withoutNormalizing((function(){e.insertNodeByKey(s.key,u,n),l.forEach((function(t,r){e.moveNodeByKey(t.key,n.key,r)}))}))},Le.wrapInlineAtRange=function(e,t,n){var r=e.value.document,i=t.start,o=t.end;if(t.isCollapsed){var a=r.getClosestInline(i.path);if(!a)return;if(!e.isVoid(a))return;return e.wrapInlineByKey(a.key,n)}n=(n=oe.create(n)).set("nodes",n.nodes.clear());var s=r.getLeafBlocksAtRange(t),l=r.getClosestBlock(i.path),u=r.getClosestBlock(o.path),c=r.getClosestInline(i.path),d=r.getClosestInline(o.path),f=l.getFurthestChild(i.key),p=u.getFurthestChild(o.key);e.withoutNormalizing((function(){c&&c===d||(e.splitDescendantsByKey(p.key,o.key,o.offset),e.splitDescendantsByKey(f.key,i.key,i.offset)),r=e.value.document,l=r.getDescendant(l.key),u=r.getDescendant(u.key),f=l.getFurthestChild(i.key),p=u.getFurthestChild(o.key);var a=l.nodes.indexOf(f),h=u.nodes.indexOf(p);if(c&&c===d){var m=l.getTextsAtRange(t).map((function(e){return i.key===e.key&&o.key===e.key?e.splitText(i.offset)[1].splitText(o.offset-i.offset)[0].regenerateKey():i.key===e.key?e.splitText(i.offset)[1].regenerateKey():o.key===e.key?e.splitText(o.offset)[0].regenerateKey():e.regenerateKey()}));n=n.set("nodes",m),e.insertInlineAtRange(t,n)}else if(l===u){r=e.value.document,l=r.getClosestBlock(i.key),f=l.getFurthestChild(i.key);var g=r.getNextSibling(f.key),v=l.nodes.indexOf(g),y=i.key===o.key?g:l.getFurthestChild(o.key),b=l.nodes.skipUntil((function(e){return e===g})).takeUntil((function(e){return e===y})).push(y),_=n.regenerateKey();e.insertNodeByKey(l.key,v,_),b.forEach((function(t,n){e.moveNodeByKey(t.key,_.key,n)}))}else{var w=l.nodes.slice(a+1),x=u.nodes.slice(0,h+1),k=n.regenerateKey(),E=n.regenerateKey();e.insertNodeByKey(l.key,a+1,k),e.insertNodeByKey(u.key,h,E),w.forEach((function(t,n){e.moveNodeByKey(t.key,k.key,n)})),x.forEach((function(t,n){e.moveNodeByKey(t.key,E.key,n)})),s.slice(1,-1).forEach((function(t){var r=n.regenerateKey();e.insertNodeByKey(t.key,0,r),t.nodes.forEach((function(t,n){e.moveNodeByKey(t.key,r.key,n)}))}))}}))},Le.wrapTextAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,i=t.start,o=t.end,a=t.moveToStart(),s=t.moveToEnd();i.path.equals(o.path)&&(s=s.moveForward(n.length)),e.withoutNormalizing((function(){e.insertTextAtRange(a,n),e.insertTextAtRange(s,r)}))};var Be={addMarkByPath:function(e,t,n,r,i){i=V.create(i),e.addMarksByPath(t,n,r,[i])},addMarksByPath:function(e,t,n,r,i){if((i=V.createSet(i)).size){var o=e.value.document.assertNode(t);e.withoutNormalizing((function(){n+r<o.text.length&&e.splitNodeByPath(t,n+r),n>0&&(e.splitNodeByPath(t,n),t=z.increment(t),n=0),i.forEach((function(n){e.applyOperation({type:"add_mark",path:t,mark:V.create(n)})}))}))}},replaceMarksByPath:function(e,t,n,r,i){var o=V.createSet(i),a=e.value.document.assertNode(t);a.marks.equals(o)||e.withoutNormalizing((function(){n+r<a.text.length&&e.splitNodeByPath(t,n+r),n>0&&(e.splitNodeByPath(t,n),t=z.increment(t),n=0);var i=o.subtract(a.marks);a.marks.subtract(o).forEach((function(n){e.applyOperation({type:"remove_mark",path:t,mark:V.create(n)})})),i.forEach((function(n){e.applyOperation({type:"add_mark",path:t,mark:V.create(n)})}))}))},insertFragmentByPath:function(e,t,n,r){r.nodes.forEach((function(r,i){e.insertNodeByPath(t,n+i,r)}))},insertNodeByPath:function(e,t,n,r){e.applyOperation({type:"insert_node",path:t.concat(n),node:r})},insertTextByPath:function(e,t,n,r,i){var o=e.value,a=o.annotations;o.document.assertNode(t),e.withoutNormalizing((function(){var o=!0,s=!1,l=void 0;try{for(var u,c=a.values()[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var d=u.value,f=d.start,p=d.end;e.isAtomic(d)&&(f.path.equals(t)&&f.offset<n&&(!p.path.equals(t)||p.offset>n)&&e.removeAnnotation(d))}}catch(e){s=!0,l=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw l}}e.applyOperation({type:"insert_text",path:t,offset:n,text:r}),i&&e.replaceMarksByPath(t,n,r.length,i)}))},mergeNodeByPath:function(e,t){var n=e.value.document,r=n.getDescendant(t),i=n.getPreviousSibling(t);if(!i)throw new Error('Unable to merge node with path "'+t+'", because it has no previous sibling.');var o="text"===i.object?i.text.length:i.nodes.size;e.applyOperation({type:"merge_node",path:t,position:o,properties:{type:r.type,data:r.data},target:null})},moveNodeByPath:function(e,t,n,r){if(z.isEqual(t,n))return e;var i=n.concat(r);if(z.isEqual(t,i))return e;e.applyOperation({type:"move_node",path:t,newPath:i})},removeMarkByPath:function(e,t,n,r,i){i=V.create(i),e.removeMarksByPath(t,n,r,[i])},removeMarksByPath:function(e,t,n,r,i){if((i=V.createSet(i)).size){var o=e.value.document.assertNode(t);i.intersect(o.marks).isEmpty()||e.withoutNormalizing((function(){n+r<o.text.length&&e.splitNodeByPath(t,n+r),n>0&&(e.splitNodeByPath(t,n),t=z.increment(t),n=0),i.forEach((function(i){e.applyOperation({type:"remove_mark",path:t,offset:n,length:r,mark:i})}))}))}},removeAllMarksByPath:function(e,t){var n=e.state.document.assertNode(t);e.withoutNormalizing((function(){if("text"!==n.object){var r=!0,i=!1,o=void 0;try{for(var a,s=n.texts()[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value,u=A(l,2),c=u[0],d=u[1],f=t.concat(d);e.removeMarksByPath(f,0,c.text.length,c.marks)}}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}}else e.removeMarksByPath(t,0,n.text.length,n.marks)}))},removeNodeByPath:function(e,t){var n=e.value.document.assertNode(t);e.applyOperation({type:"remove_node",path:t,node:n})},removeTextByPath:function(e,t,n,r){var i=e.value,o=i.document,a=i.annotations,s=o.assertNode(t).text.slice(n,n+r);e.withoutNormalizing((function(){var r=!0,i=!1,o=void 0;try{for(var l,u=a.values()[Symbol.iterator]();!(r=(l=u.next()).done);r=!0){var c=l.value,d=c.start,f=c.end;e.isAtomic(c)&&(d.path.equals(t)&&d.offset<n&&(!f.path.equals(t)||f.offset>n)&&e.removeAnnotation(c))}}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}e.applyOperation({type:"remove_text",path:t,offset:n,text:s})}))},replaceNodeByPath:function(e,t,n){n=ue.create(n);var r=t.last(),i=z.lift(t);e.withoutNormalizing((function(){e.removeNodeByPath(t),e.insertNodeByPath(i,r,n)}))},replaceTextByPath:function(e,t,n,r,i,o){e.withoutNormalizing((function(){e.removeTextByPath(t,n,r),e.insertTextByPath(t,n,i,o)}))},setMarkByPath:function(e,t,n,r,i,o){i=V.create(i),o=V.createProperties(o);var a=e.value.document.assertNode(t);e.withoutNormalizing((function(){n+r<a.text.length&&e.splitNodeByPath(t,n+r),n>0&&(e.splitNodeByPath(t,n),t=z.increment(t),n=0),e.applyOperation({type:"set_mark",path:t,properties:i,newProperties:o})}))},setNodeByPath:function(e,t,n){var r=e.value.document.assertNode(t);n=ue.createProperties(n);var i=f()(r,Object.keys(n));e.applyOperation({type:"set_node",path:t,properties:i,newProperties:n})},setTextByPath:function(e,t,n,r){var i=e.value.document.assertNode(t).text.length;e.replaceTextByPath(t,0,i,n,r)},splitNodeByPath:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.target,o=void 0===i?null:i,a=e.value,s=a.document,l=s.getDescendant(t);e.applyOperation({type:"split_node",path:t,position:n,target:o,properties:{type:l.type,data:l.data}})},splitDescendantsByPath:function(e,t,n,r){if(t.equals(n))e.splitNodeByPath(n,r);else{var i=e.value.document,o=r,a=n;e.withoutNormalizing((function(){e.splitNodeByKey(n,r);var s=!0,l=!1,u=void 0;try{for(var c,d=i.ancestors(n)[Symbol.iterator]();!(s=(c=d.next()).done);s=!0){var f=c.value,p=A(f,2)[1],h=o;if(o=a.last()+1,a=p,e.splitNodeByPath(p,o,{target:h}),p.equals(t))break}}catch(e){l=!0,u=e}finally{try{!s&&d.return&&d.return()}finally{if(l)throw u}}}))}},unwrapInlineByPath:function(e,t,n){var r=e.value,i=r.document,o=r.selection,a=i.assertNode(t),s=a.getFirstText(),l=a.getLastText(),u=o.moveToRangeOfNode(s,l);e.unwrapInlineAtRange(u,n)},unwrapBlockByPath:function(e,t,n){var r=e.value,i=r.document,o=r.selection,a=i.assertNode(t),s=a.getFirstText(),l=a.getLastText(),u=o.moveToRangeOfNode(s,l);e.unwrapBlockAtRange(u,n)},unwrapNodeByPath:function(e,t){var n=e.value.document;n.assertNode(t);var r=z.lift(t),i=n.assertNode(r),o=t.last(),a=r.last(),s=z.lift(r),l=0===o,u=o===i.nodes.size-1;e.withoutNormalizing((function(){if(1===i.nodes.size)e.moveNodeByPath(t,s,a+1),e.removeNodeByPath(r);else if(l)e.moveNodeByPath(t,s,a);else if(u)e.moveNodeByPath(t,s,a+1);else{var n=z.increment(t,1,r.size-1);n=n.set(n.size-1,0),e.splitNodeByPath(r,o),e.moveNodeByPath(n,s,a+1)}}))},unwrapChildrenByPath:function(e,t){t=z.create(t);var n=e.value.document.assertNode(t),r=z.lift(t),i=t.last(),o=n.nodes;e.withoutNormalizing((function(){o.reverse().forEach((function(n,a){var s=o.size-a-1,l=t.push(s);e.moveNodeByPath(l,r,i+1)})),e.removeNodeByPath(t)}))},wrapBlockByPath:function(e,t,n){n=(n=de.create(n)).set("nodes",n.nodes.clear());var r=z.lift(t),i=t.last(),o=z.increment(t);e.withoutNormalizing((function(){e.insertNodeByPath(r,i,n),e.moveNodeByPath(o,t,0)}))},wrapInlineByPath:function(e,t,n){n=(n=oe.create(n)).set("nodes",n.nodes.clear());var r=z.lift(t),i=t.last(),o=z.increment(t);e.withoutNormalizing((function(){e.insertNodeByPath(r,i,n),e.moveNodeByPath(o,t,0)}))},wrapNodeByPath:function(e,t,n){"block"===(n=ue.create(n)).object?e.wrapBlockByPath(t,n):"inline"===n.object&&e.wrapInlineByPath(t,n)}},ze=function(e){Be[e+"ByKey"]=function(t,n){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var a=t.value,s=a.document,l=s.assertPath(n);t[e+"ByPath"].apply(t,[l].concat(i))}},Ue=!0,qe=!1,He=void 0;try{for(var We,Ve=["addMark","insertFragment","insertNode","insertText","mergeNode","removeAllMarks","removeMark","removeNode","removeText","replaceMarks","replaceNode","replaceText","setMark","setNode","setText","splitNode","unwrapBlock","unwrapChildren","unwrapInline","unwrapNode","wrapBlock","wrapInline","wrapNode"][Symbol.iterator]();!(Ue=(We=Ve.next()).done);Ue=!0){ze(We.value)}}catch(e){qe=!0,He=e}finally{try{!Ue&&Ve.return&&Ve.return()}finally{if(qe)throw He}}Be.moveNodeByKey=function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var a=e.value,s=a.document,l=s.assertPath(t),u=s.assertPath(n);e.moveNodeByPath.apply(e,[l,u].concat(i))},Be.splitDescendantsByKey=function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var a=e.value,s=a.document,l=s.assertPath(t),u=s.assertPath(n);e.splitDescendantsByPath.apply(e,[l,u].concat(i))};var $e={};$e.save=function(e,t){var n=e.operations,i=e.value.data,o=e.tmp,a=o.save,s=o.merge;if(!1!==a&&function(e){if("set_selection"===e.type){var t=e.newProperties,n=t.isFocused,r=t.anchor,i=t.focus;if(void 0!==n&&!r&&!i)return!1}return!0}(t)){var l,u,c=i.get("undos")||Object(r.List)(),d=c.last(),f=d&&d.last();if(null==s&&(0!==n.size?s=!0:(l=t,s=!!(u=f)&&("set_selection"===l.type&&"set_selection"===u.type||"insert_text"===l.type&&"insert_text"===u.type&&l.offset===u.offset+u.text.length&&l.path.equals(u.path)||"remove_text"===l.type&&"remove_text"===u.type&&l.offset+l.text.length===u.offset&&l.path.equals(u.path)))),s&&d){var p=d.push(t);c=(c=c.pop()).push(p)}else{var h=Object(r.List)([t]);c=c.push(h)}c.size>100&&(c=c.takeLast(100)),e.withoutSaving((function(){var t=Object(r.List)(),n=i.set("undos",c).set("redos",t);e.setData(n)}))}},$e.redo=function(e){var t=e.value.data,n=t.get("redos")||Object(r.List)(),i=t.get("undos")||Object(r.List)(),o=n.last();o&&e.withoutSaving((function(){e.withoutNormalizing((function(){o.forEach((function(t){var n=t,r=n.type,i=n.newProperties;"set_selection"===r&&(t=t.set("newProperties",h()(i,"isFocused"))),e.applyOperation(t)})),n=n.pop(),i=i.push(o);var r=t.set("undos",i).set("redos",n);e.setData(r)}))}))},$e.undo=function(e){var t=e.value.data,n=t.get("redos")||Object(r.List)(),i=t.get("undos")||Object(r.List)(),o=i.last();o&&e.withoutSaving((function(){e.withoutNormalizing((function(){o.slice().reverse().map((function(e){return e.invert()})).forEach((function(t){var n=t,r=n.type,i=n.newProperties;"set_selection"===r&&(t=t.set("newProperties",h()(i,"isFocused"))),e.applyOperation(t)})),n=n.push(o),i=i.pop();var r=t.set("undos",i).set("redos",n);e.setData(r)}))}))},$e.withoutMerging=function(e,t){var n=e.tmp.merge;e.tmp.merge=!1,t(e),e.tmp.merge=n},$e.withoutSaving=function(e,t){var n=e.tmp.save;e.tmp.save=!1,t(e),e.tmp.save=n};var Ge={};function Ke(e,t){for(var n,r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var a=(n=e.value.selection)[t].apply(n,i);e.select(a)}function Ye(e,t,n,r){var i=t.slice(0,1).toUpperCase()+t.slice(1),o=n.slice(0,1).toUpperCase()+n.slice(1),a=r.slice(0,1).toUpperCase()+r.slice(1),s="move"+i+"To"+o+"OfNode",l="text"===r?"getNode":"getClosest"+a,u=e.value,c=u.document,d=u.selection[t],f=c[l](d.key);f&&e[s](f)}function Qe(e,t,n,r,i){var o=t.slice(0,1).toUpperCase()+t.slice(1),a=n.slice(0,1).toUpperCase()+n.slice(1),s=r.slice(0,1).toUpperCase()+r.slice(1),l=i.slice(0,1).toUpperCase()+i.slice(1),u="move"+o+"To"+a+"OfNode",c="text"===i?"getNode":"getClosest"+l,d="get"+s+l,f=e.value,p=f.document,h=f.selection[t],m=p[c](h.key);if(m){var g=p[d](m.key);g&&e[u](g)}}function Xe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(0!==n){if(n<0)return Je(e,t,-n);var r=t.slice(0,1).toUpperCase()+t.slice(1),i=e.value,o=i.document,a=i.selection,s=a[t],l=o.hasVoidParent(s.path,e);if(!l&&s.offset-n>=0){var u=a["move"+r+"Backward"](n);e.select(u)}else{var c=o.getPreviousText(s.path);if(c){var d=o.getClosestBlock(s.path),f=d.hasNode(c.key),p=c&&o.hasVoidParent(c.key,e);if(e["move"+r+"ToEndOfNode"](c),!l&&!p&&f){var h=e.value.selection["move"+r+"Backward"](n);e.select(h)}}}}}function Je(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(0!==n){if(n<0)return Xe(e,t,-n);var r=t.slice(0,1).toUpperCase()+t.slice(1),i=e.value,o=i.document,a=i.selection,s=a[t],l=o.getNode(s.path),u=o.hasVoidParent(s.path,e);if(!u&&s.offset+n<=l.text.length){var c=a["move"+r+"Forward"](n);e.select(c)}else{var d=o.getNextText(s.path);if(d){var f=o.getClosestBlock(s.path),p=f.hasNode(d.key),h=o.hasVoidParent(d.key,e);if(e["move"+r+"ToStartOfNode"](d),!u&&!h&&p){var m=e.value.selection["move"+r+"Forward"](n);e.select(m)}}}}}function Ze(e,t){var n=e.value,r=n.document,i=n.selection[t],o=r.getClosestBlock(i.key),a=o.getOffset(i.key)+i.offset,s=o.text,l=je.getWordOffsetBackward(s,a);e.command(Xe,t,l>0?l:1)}function et(e,t){var n=e.value,r=n.document,i=n.selection[t],o=r.getClosestBlock(i.key),a=o.getOffset(i.key)+i.offset,s=o.text,l=je.getWordOffsetForward(s,a);e.command(Je,t,l>0?l:1)}Ge.blur=function(e){e.select({isFocused:!1})},Ge.deselect=function(e){var t=Y.create();e.select(t)},Ge.focus=function(e){e.select({isFocused:!0})},Ge.flip=function(e){e.command(Ke,"flip")},Ge.moveAnchorBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Xe,"anchor"].concat(n))},Ge.moveAnchorWordBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ze,"anchor"].concat(n))},Ge.moveAnchorForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Je,"anchor"].concat(n))},Ge.moveAnchorWordForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[et,"anchor"].concat(n))},Ge.moveAnchorTo=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveAnchorTo"].concat(n))},Ge.moveAnchorToEndOfBlock=function(e){e.command(Ye,"anchor","end","block")},Ge.moveAnchorToEndOfInline=function(e){e.command(Ye,"anchor","end","inline")},Ge.moveAnchorToEndOfDocument=function(e){e.moveAnchorToEndOfNode(e.value.document).moveToAnchor()},Ge.moveAnchorToEndOfNextBlock=function(e){e.command(Qe,"anchor","end","next","block")},Ge.moveAnchorToEndOfNextInline=function(e){e.command(Qe,"anchor","end","next","inline")},Ge.moveAnchorToEndOfNextText=function(e){e.command(Qe,"anchor","end","next","text")},Ge.moveAnchorToEndOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveAnchorToEndOfNode"].concat(n))},Ge.moveAnchorToEndOfPreviousBlock=function(e){e.command(Qe,"anchor","end","previous","block")},Ge.moveAnchorToEndOfPreviousInline=function(e){e.command(Qe,"anchor","end","previous","inline")},Ge.moveAnchorToEndOfPreviousText=function(e){e.command(Qe,"anchor","end","previous","text")},Ge.moveAnchorToEndOfText=function(e){e.command(Ye,"anchor","end","text")},Ge.moveAnchorToStartOfBlock=function(e){e.command(Ye,"anchor","start","block")},Ge.moveAnchorToStartOfDocument=function(e){e.moveAnchorToStartOfNode(e.value.document).moveToAnchor()},Ge.moveAnchorToStartOfInline=function(e){e.command(Ye,"anchor","start","inline")},Ge.moveAnchorToStartOfNextBlock=function(e){e.command(Qe,"anchor","start","next","block")},Ge.moveAnchorToStartOfNextInline=function(e){e.command(Qe,"anchor","start","next","inline")},Ge.moveAnchorToStartOfNextText=function(e){e.command(Qe,"anchor","start","next","text")},Ge.moveAnchorToStartOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveAnchorToStartOfNode"].concat(n))},Ge.moveAnchorToStartOfPreviousBlock=function(e){e.command(Qe,"anchor","start","previous","block")},Ge.moveAnchorToStartOfPreviousInline=function(e){e.command(Qe,"anchor","start","previous","inline")},Ge.moveAnchorToStartOfPreviousText=function(e){e.command(Qe,"anchor","start","previous","text")},Ge.moveAnchorToStartOfText=function(e){e.command(Ye,"anchor","start","text")},Ge.moveBackward=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(0!==t){var n=e.value,r=n.document,i=n.selection,o=i.start,a=r.getClosestBlock(o.key),s=a.getOffset(o.key),l=s+o.offset,u=a.text,c=je.getCharOffsetBackward(u,l,t);e.moveAnchorBackward(c).moveFocusBackward(c)}},Ge.moveWordBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.moveFocusWordBackward.apply(e,n).moveToFocus()},Ge.moveEndBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Xe,"end"].concat(n))},Ge.moveEndWordBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ze,"end"].concat(n))},Ge.moveEndForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Je,"end"].concat(n))},Ge.moveEndWordForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[et,"end"].concat(n))},Ge.moveEndTo=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveEndTo"].concat(n))},Ge.moveEndToEndOfBlock=function(e){e.command(Ye,"end","end","block")},Ge.moveEndToEndOfDocument=function(e){e.moveEndToEndOfNode(e.value.document).moveToEnd()},Ge.moveEndToEndOfInline=function(e){e.command(Ye,"end","end","inline")},Ge.moveEndToEndOfNextBlock=function(e){e.command(Qe,"end","end","next","block")},Ge.moveEndToEndOfNextInline=function(e){e.command(Qe,"end","end","next","inline")},Ge.moveEndToEndOfNextText=function(e){e.command(Qe,"end","end","next","text")},Ge.moveEndToEndOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveEndToEndOfNode"].concat(n))},Ge.moveEndToEndOfPreviousBlock=function(e){e.command(Qe,"end","end","previous","block")},Ge.moveEndToEndOfPreviousInline=function(e){e.command(Qe,"end","end","previous","inline")},Ge.moveEndToEndOfPreviousText=function(e){e.command(Qe,"end","end","previous","text")},Ge.moveEndToEndOfText=function(e){e.command(Ye,"end","end","text")},Ge.moveEndToStartOfBlock=function(e){e.command(Ye,"end","start","block")},Ge.moveEndToStartOfDocument=function(e){e.moveEndToStartOfNode(e.value.document).moveToEnd()},Ge.moveEndToStartOfInline=function(e){e.command(Ye,"end","start","inline")},Ge.moveEndToStartOfNextBlock=function(e){e.command(Qe,"end","start","next","block")},Ge.moveEndToStartOfNextInline=function(e){e.command(Qe,"end","start","next","inline")},Ge.moveEndToStartOfNextText=function(e){e.command(Qe,"end","start","next","text")},Ge.moveEndToStartOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveEndToStartOfNode"].concat(n))},Ge.moveEndToStartOfPreviousBlock=function(e){e.command(Qe,"end","start","previous","block")},Ge.moveEndToStartOfPreviousInline=function(e){e.command(Qe,"end","start","previous","inline")},Ge.moveEndToStartOfPreviousText=function(e){e.command(Qe,"end","start","previous","text")},Ge.moveEndToStartOfText=function(e){e.command(Ye,"end","start","text")},Ge.moveFocusBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Xe,"focus"].concat(n))},Ge.moveFocusWordBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ze,"focus"].concat(n))},Ge.moveFocusForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Je,"focus"].concat(n))},Ge.moveFocusWordForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[et,"focus"].concat(n))},Ge.moveFocusTo=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveFocusTo"].concat(n))},Ge.moveFocusToEndOfBlock=function(e){e.command(Ye,"focus","end","block")},Ge.moveFocusToEndOfDocument=function(e){e.moveFocusToEndOfNode(e.value.document).moveToFocus()},Ge.moveFocusToEndOfInline=function(e){e.command(Ye,"focus","end","inline")},Ge.moveFocusToEndOfNextBlock=function(e){e.command(Qe,"focus","end","next","block")},Ge.moveFocusToEndOfNextInline=function(e){e.command(Qe,"focus","end","next","inline")},Ge.moveFocusToEndOfNextText=function(e){e.command(Qe,"focus","end","next","text")},Ge.moveFocusToEndOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveFocusToEndOfNode"].concat(n))},Ge.moveFocusToEndOfPreviousBlock=function(e){e.command(Qe,"focus","end","previous","block")},Ge.moveFocusToEndOfPreviousInline=function(e){e.command(Qe,"focus","end","previous","inline")},Ge.moveFocusToEndOfPreviousText=function(e){e.command(Qe,"focus","end","previous","text")},Ge.moveFocusToEndOfText=function(e){e.command(Ye,"focus","end","text")},Ge.moveFocusToStartOfBlock=function(e){e.command(Ye,"focus","start","block")},Ge.moveFocusToStartOfDocument=function(e){e.moveFocusToStartOfNode(e.value.document).moveToFocus()},Ge.moveFocusToStartOfInline=function(e){e.command(Ye,"focus","start","inline")},Ge.moveFocusToStartOfNextBlock=function(e){e.command(Qe,"focus","start","next","block")},Ge.moveFocusToStartOfNextInline=function(e){e.command(Qe,"focus","start","next","inline")},Ge.moveFocusToStartOfNextText=function(e){e.command(Qe,"focus","start","next","text")},Ge.moveFocusToStartOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveFocusToStartOfNode"].concat(n))},Ge.moveFocusToStartOfPreviousBlock=function(e){e.command(Qe,"focus","start","previous","block")},Ge.moveFocusToStartOfPreviousInline=function(e){e.command(Qe,"focus","start","previous","inline")},Ge.moveFocusToStartOfPreviousText=function(e){e.command(Qe,"focus","start","previous","text")},Ge.moveFocusToStartOfText=function(e){e.command(Ye,"focus","start","text")},Ge.moveForward=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(0!==t){var n=e.value,r=n.document,i=n.selection,o=i.start,a=r.getClosestBlock(o.path),s=a.getOffset(o.key),l=s+o.offset,u=a.text,c=je.getCharOffsetForward(u,l,t);e.moveAnchorForward(c).moveFocusForward(c)}},Ge.moveWordForward=function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=e.moveFocusWordForward.apply(e,r)).moveToFocus.apply(t,r)},Ge.moveStartBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Xe,"start"].concat(n))},Ge.moveStartWordBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ze,"start"].concat(n))},Ge.moveStartForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Je,"start"].concat(n))},Ge.moveStartWordForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[et,"start"].concat(n))},Ge.moveStartTo=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveStartTo"].concat(n))},Ge.moveStartToEndOfBlock=function(e){e.command(Ye,"start","end","block")},Ge.moveStartToEndOfDocument=function(e){e.moveStartToEndOfNode(e.value.document).moveToStart()},Ge.moveStartToEndOfInline=function(e){e.command(Ye,"start","end","inline")},Ge.moveStartToEndOfNextBlock=function(e){e.command(Qe,"start","end","next","block")},Ge.moveStartToEndOfNextInline=function(e){e.command(Qe,"start","end","next","inline")},Ge.moveStartToEndOfNextText=function(e){e.command(Qe,"start","end","next","text")},Ge.moveStartToEndOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveStartToEndOfNode"].concat(n))},Ge.moveStartToEndOfPreviousBlock=function(e){e.command(Qe,"start","end","previous","block")},Ge.moveStartToEndOfPreviousInline=function(e){e.command(Qe,"start","end","previous","inline")},Ge.moveStartToEndOfPreviousText=function(e){e.command(Qe,"start","end","previous","text")},Ge.moveStartToEndOfText=function(e){e.command(Ye,"start","end","text")},Ge.moveStartToStartOfBlock=function(e){e.command(Ye,"start","start","block")},Ge.moveStartToStartOfDocument=function(e){e.moveStartToStartOfNode(e.value.document).moveToStart()},Ge.moveStartToStartOfInline=function(e){e.command(Ye,"start","start","inline")},Ge.moveStartToStartOfNextBlock=function(e){e.command(Qe,"start","start","next","block")},Ge.moveStartToStartOfNextInline=function(e){e.command(Qe,"start","start","next","inline")},Ge.moveStartToStartOfNextText=function(e){e.command(Qe,"start","start","next","text")},Ge.moveStartToStartOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveStartToStartOfNode"].concat(n))},Ge.moveStartToStartOfPreviousBlock=function(e){e.command(Qe,"start","start","previous","block")},Ge.moveStartToStartOfPreviousInline=function(e){e.command(Qe,"start","start","previous","inline")},Ge.moveStartToStartOfPreviousText=function(e){e.command(Qe,"start","start","previous","text")},Ge.moveStartToStartOfText=function(e){e.command(Ye,"start","start","text")},Ge.moveTo=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveTo"].concat(n))},Ge.moveToAnchor=function(e){e.command(Ke,"moveToAnchor")},Ge.moveToEnd=function(e){e.command(Ke,"moveToEnd")},Ge.moveToEndOfBlock=function(e){e.moveEndToEndOfBlock().moveToEnd()},Ge.moveToEndOfDocument=function(e){e.moveEndToEndOfNode(e.value.document).moveToEnd()},Ge.moveToEndOfInline=function(e){e.moveEndToEndOfInline().moveToEnd()},Ge.moveToEndOfNextBlock=function(e){e.moveEndToEndOfNextBlock().moveToEnd()},Ge.moveToEndOfNextInline=function(e){e.moveEndToEndOfNextInline().moveToEnd()},Ge.moveToEndOfNextText=function(e){e.moveEndToEndOfNextText().moveToEnd()},Ge.moveToEndOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveToEndOfNode"].concat(n))},Ge.moveToEndOfPreviousBlock=function(e){e.moveStartToEndOfPreviousBlock().moveToStart()},Ge.moveToEndOfPreviousInline=function(e){e.moveStartToEndOfPreviousInline().moveToStart()},Ge.moveToEndOfPreviousText=function(e){e.moveStartToEndOfPreviousText().moveToStart()},Ge.moveToEndOfText=function(e){e.moveEndToEndOfText().moveToEnd()},Ge.moveToFocus=function(e){e.command(Ke,"moveToFocus")},Ge.moveToRangeOfDocument=function(e){e.moveToRangeOfNode(e.value.document)},Ge.moveToRangeOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveToRangeOfNode"].concat(n))},Ge.moveToStart=function(e){e.command(Ke,"moveToStart")},Ge.moveToStartOfBlock=function(e){e.moveStartToStartOfBlock().moveToStart()},Ge.moveToStartOfDocument=function(e){e.moveStartToStartOfNode(e.value.document).moveToStart()},Ge.moveToStartOfInline=function(e){e.moveStartToStartOfInline().moveToStart()},Ge.moveToStartOfNextBlock=function(e){e.moveEndToStartOfNextBlock().moveToEnd()},Ge.moveToStartOfNextInline=function(e){e.moveEndToStartOfNextInline().moveToEnd()},Ge.moveToStartOfNextText=function(e){e.moveEndToStartOfNextText().moveToEnd()},Ge.moveToStartOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveToStartOfNode"].concat(n))},Ge.moveToStartOfPreviousBlock=function(e){e.moveStartToStartOfPreviousBlock().moveToStart()},Ge.moveToStartOfPreviousInline=function(e){e.moveStartToStartOfPreviousInline().moveToStart()},Ge.moveToStartOfPreviousText=function(e){e.moveStartToStartOfPreviousText().moveToStart()},Ge.moveToStartOfText=function(e){e.moveStartToStartOfText().moveToStart()},Ge.select=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=Y.createProperties(t);var i=n.snapshot,o=void 0!==i&&i,a=e.value,s=a.document,l=a.selection,u={},c=l.setProperties(t);for(var d in c=s.resolveSelection(c),t=f()(c,Object.keys(t)))!0!==o&&Object(r.is)(t[d],l[d])||(u[d]=t[d]);if(l.marks&&!u.marks&&(u.anchor||u.focus)&&(u.marks=null),0!==Object.keys(u).length){var p=f()(l.toJSON(),Object.keys(u));e.applyOperation({type:"set_selection",value:a,properties:p,newProperties:u},o?{skip:!1,merge:!1}:{})}},Ge.setAnchor=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"setAnchor"].concat(n))},Ge.setEnd=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"setEnd"].concat(n))},Ge.setFocus=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"setFocus"].concat(n))},Ge.setStart=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"setStart"].concat(n))},Ge.snapshotSelection=function(e){e.withoutMerging((function(){e.select(e.value.selection,{snapshot:!0})}))};var tt={};function nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function t(t,n){for(var r in e)t.registerQuery(r);return n()}function n(t,n,r){var i=t.type,o=t.args,a=e[i];if(!a)return r();var s=a.apply(void 0,[n].concat(P(o)));return void 0===s?r():s}return{onConstruct:t,onQuery:n}}tt.setData=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.value,r=pe.createProperties({data:t}),i=f()(n,Object.keys(r));e.applyOperation({type:"set_value",properties:i,newProperties:r})},tt.addAnnotation=function(e,t){t=te.create(t),e.applyOperation({type:"add_annotation",annotation:t})},tt.removeAnnotation=function(e,t){t=te.create(t),e.applyOperation({type:"remove_annotation",annotation:t})},tt.setAnnotation=function(e,t,n){t=te.create(t),n=te.createProperties(n),e.applyOperation({type:"set_annotation",properties:t,newProperties:n})},tt.setAnnotations=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.value,r=pe.createProperties({annotations:t}),i=f()(n,Object.keys(r));e.applyOperation({type:"set_value",properties:i,newProperties:r})};var rt=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x(this,t);var r=C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));for(var i in r.code=e,n)r[i]=n[i];return Error.captureStackTrace?Error.captureStackTrace(r,r.constructor):r.stack=(new Error).stack,r}return O(t,e),t}(Error);function it(e){var t=e.rules,n=e.document,r=e.blocks,i=e.inlines,o=e.marks,a=e.annotations,s=e.decorations,l=[];if(t&&(l=l.concat(t)),n&&l.push(S({match:[{object:"document"}]},n)),r)for(var u in r)l.push(S({match:[{object:"block",type:u}]},r[u]));if(i)for(var c in i)l.push(S({match:[{object:"inline",type:c}]},i[c]));if(o)for(var d in o)l.push(S({match:[{object:"mark",type:d}]},o[d]));if(a)for(var f in a)l.push(S({match:[{object:"annotation",type:f}]},a[f]));if(s)for(var p in s)l.push(S({match:[{object:"decoration",type:p}]},s[p]));function h(e,t,n){var r=l.filter((function(t){return ot(e,t.match)})),i=at(e,r,l,{every:!0});return i?new rt(i.code,i):n()}return[{normalizeNode:function(e,t,n){var r=h(e,t,(function(){}));return r?function(){var e=r.rule,n=t.operations.size;e.normalize&&e.normalize(t,r),t.operations.size===n&&function(e,t){var n=t.code,r=t.node,i=t.child,o=t.next,a=t.previous,s=t.key,l=t.mark;switch(n){case"child_max_invalid":case"child_object_invalid":case"child_type_invalid":case"child_unknown":case"first_child_object_invalid":case"first_child_type_invalid":case"last_child_object_invalid":case"last_child_type_invalid":return"text"===i.object&&"block"===r.object&&1===r.nodes.size?e.removeNodeByKey(r.key):e.removeNodeByKey(i.key);case"previous_sibling_object_invalid":case"previous_sibling_type_invalid":return"text"===a.object&&"block"===r.object&&1===r.nodes.size?e.removeNodeByKey(r.key):e.removeNodeByKey(a.key);case"next_sibling_object_invalid":case"next_sibling_type_invalid":return"text"===o.object&&"block"===r.object&&1===r.nodes.size?e.removeNodeByKey(r.key):e.removeNodeByKey(o.key);case"child_min_invalid":case"node_text_invalid":case"parent_object_invalid":case"parent_type_invalid":return"document"===r.object?r.nodes.forEach((function(t){return e.removeNodeByKey(t.key)})):e.removeNodeByKey(r.key);case"node_data_invalid":return void 0===r.data.get(s)&&"document"!==r.object?e.removeNodeByKey(r.key):e.setNodeByKey(r.key,{data:r.data.delete(s)});case"node_mark_invalid":return r.getTexts().forEach((function(t){return e.removeMarkByKey(t.key,0,t.text.length,l)}));default:e.removeNodeByKey(r.key)}}(t,r)}:n()},validateNode:h},nt({isAtomic:function(e,t){var n=l.find((function(e){return"isAtomic"in e&&ot(t,e.match)}));return n&&n.isAtomic},isVoid:function(e,t){var n=l.find((function(e){return"isVoid"in e&&ot(t,e.match)}));return n&&n.isVoid}})]}function ot(e,t){return!at(e,t)}function at(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.every,o=void 0!==i&&i,a=r.match,s=void 0===a?null:a;if("function"==typeof t){var l=t(e,s);return l?null:yt("node_invalid",{rule:t,node:e})}if(Array.isArray(t)){var u=t.length?t:[{}],c=void 0,d=!0,f=!1,p=void 0;try{for(var h,m=u[Symbol.iterator]();!(d=(h=m.next()).done);d=!0){var g=h.value,v=at(e,g,n);if(c=c||v,o&&v)return v;if(!o&&!v)return}}catch(e){f=!0,p=e}finally{try{!d&&m.return&&m.return()}finally{if(f)throw p}}return c}var y=st(e,t)||lt(e,t)||ut(e,t)||ct(e,t)||dt(e,t)||ft(e,t)||pt(e,t)||ht(e,t,n);return y}function st(e,t){if(null!=t.object&&t.object!==e.object&&("function"!=typeof t.object||!t.object(e.object)))return yt("node_object_invalid",{rule:t,node:e})}function lt(e,t){if(null!=t.type&&t.type!==e.type&&("function"!=typeof t.type||!t.type(e.type)))return yt("node_type_invalid",{rule:t,node:e})}function ut(e,t){if(null!=t.data&&null!=e.data){if("function"==typeof t.data){if(t.data(e.data))return;return yt("node_data_invalid",{rule:t,node:e})}for(var n in t.data){var r=t.data[n],i=e.data&&e.data.get(n);if(!("function"==typeof r?r(i):r===i))return yt("node_data_invalid",{rule:t,node:e,key:n,value:i})}}}function ct(e,t){if(null!=t.marks){var n="text"===e.object?e.marks.toArray():e.getMarks().toArray(),r=function(n){return t.marks.some((function(e){return"function"==typeof e.type?e.type(n.type):e.type===n.type}))?"continue":{v:yt("node_mark_invalid",{rule:t,node:e,mark:n})}},i=!0,o=!1,a=void 0;try{for(var s,l=n[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var u=r(s.value);switch(u){case"continue":continue;default:if("object"===(void 0===u?"undefined":w(u)))return u.v}}}catch(e){o=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw a}}}}function dt(e,t){if(null!=t.text){var n=e.text;if(!("function"==typeof t.text?t.text(n):t.text.test(n)))return yt("node_text_invalid",{rule:t,node:e,text:n})}}function ft(e,t){if(null!=t.first){var n=e.nodes.first();if(n){var r=at(n,t.first);if(r)return r.rule=t,r.node=e,r.child=n,r.code=r.code.replace("node_","first_child_"),r}}}function pt(e,t){if(null!=t.last){var n=e.nodes.last();if(n){var r=at(n,t.last);if(r)return r.rule=t,r.node=e,r.child=n,r.code=r.code.replace("node_","last_child_"),r}}}function ht(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(null!=e.nodes){var r=e.nodes,i=null!=t.nodes?t.nodes.slice():[],o=0,a=0,s=null,l=-1,u=null,c=null,d=null,f=null,p=null;for(null!=t.nodes&&v();y();){var h=mt(e,d,n)||gt(e,d,f,l,n)||vt(e,d,p,l,n);if(h)return h;if(null!=t.nodes){if(!u)return yt("child_unknown",{rule:t,node:e,child:d,index:l});if(u.match){var m=at(d,u.match);if(m){if(null!=c&&o-1>c)return b(),yt("child_max_invalid",{rule:t,node:e,index:l,child:r.get(l),count:o,limit:c});var g=s;if(v()){if(a-1>=g){l-=1;continue}return null==at(d,u.match)?(b(),yt("child_min_invalid",{rule:t,node:e,index:l,count:a-1,limit:g})):(m.rule=t,m.node=e,m.child=d,m.index=l,m.code=m.code.replace("node_","child_"),m)}return null!=c&&o>c?yt("child_unknown",{rule:t,node:e,child:d,index:l}):(m.rule=t,m.node=e,m.child=d,m.index=l,m.code=m.code.replace("node_","child_"),m)}}}}if(null!=c&&o>c)return yt("child_max_invalid",{rule:t,node:e,index:l-1,count:o,child:r.get(l-1),limit:c});if(null!=t.nodes)do{if(o<s)return yt("child_min_invalid",{rule:t,node:e,index:l,count:o,limit:s})}while(v())}function v(){return 0!==i.length&&(u=i.shift(),a=o,o=0,s=u.min||null,c=u.max||null,!0)}function y(){return f=(l+=1)?r.get(l-1):null,d=r.get(l),p=r.get(l+1),!!d&&(a=o,o+=1,!0)}function b(){l>0&&(l-=1,o=a)}}function mt(e,t,n){var r=!0,i=!1,o=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;if(null!=l.parent&&ot(t,l.match)){var u=at(e,l.parent);if(u)return u.rule=l,u.parent=e,u.node=t,u.code=u.code.replace("node_","parent_"),u}}}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}}function gt(e,t,n,r,i){if(n){var o=!0,a=!1,s=void 0;try{for(var l,u=i[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var c=l.value;if(null!=c.previous&&ot(t,c.match)){var d=at(n,c.previous);if(d)return d.rule=c,d.node=e,d.child=t,d.index=r,d.previous=n,d.code=d.code.replace("node_","previous_sibling_"),d}}}catch(e){a=!0,s=e}finally{try{!o&&u.return&&u.return()}finally{if(a)throw s}}}}function vt(e,t,n,r,i){if(n){var o=!0,a=!1,s=void 0;try{for(var l,u=i[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var c=l.value;if(null!=c.next&&ot(t,c.match)){var d=at(n,c.next,[],{match:t});if(d)return d.rule=c,d.node=e,d.child=t,d.index=r,d.next=n,d.code=d.code.replace("node_","next_sibling_"),d}}}catch(e){a=!0,s=e}finally{try{!o&&u.return&&u.return()}finally{if(a)throw s}}}}function yt(e,t){return S({code:e},t)}function bt(e){e.value.selection.isExpanded&&e.delete()}var _t={};function wt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.plugins,n=void 0===t?[]:t,r=ke(S({},Le,Be,$e,Ge,tt,_t)),i=nt({isAtomic:function(){return!1},isVoid:function(){return!1}}),o=it({rules:[{match:{object:"document"},nodes:[{match:{object:"block"}}]},{match:{object:"block",first:{object:"block"}},nodes:[{match:{object:"block"}}]},{match:{object:"block",first:[{object:"inline"},{object:"text"}]},nodes:[{match:[{object:"inline"},{object:"text"}]}]},{match:{object:"inline"},nodes:[{match:[{object:"inline"},{object:"text"}]}]},{match:[{object:"block"},{object:"inline"}],nodes:[{min:1}],normalize:function(e,t){var n=t.code,r=t.node;"child_min_invalid"===n&&r.nodes.isEmpty()&&e.insertNodeByKey(r.key,0,le.create())}},{match:{object:"block"},first:[{object:"block"},{object:"text"}],last:[{object:"block"},{object:"text"}],normalize:function(e,t){var n=t.code,r=t.node,i=le.create(),o=void 0;if("first_child_object_invalid"===n)o=0;else{if("last_child_object_invalid"!==n)return;o=r.nodes.size}e.insertNodeByKey(r.key,o,i)}},{match:{object:"inline"},first:[{object:"block"},{object:"text"}],last:[{object:"block"},{object:"text"}],previous:[{object:"block"},{object:"text"}],next:[{object:"block"},{object:"text"}],normalize:function(e,t){var n=t.code,r=t.node,i=t.index,o=le.create(),a=void 0;if("first_child_object_invalid"===n)a=0;else if("last_child_object_invalid"===n)a=r.nodes.size;else if("previous_sibling_object_invalid"===n)a=i;else{if("next_sibling_object_invalid"!==n)return;a=i+1}e.insertNodeByKey(r.key,a,o)}},{match:{object:"text"},next:function(e,t){return"text"!==e.object||!t.marks.equals(e.marks)},normalize:function(e,t){var n=t.code,r=t.next;"next_sibling_invalid"===n&&e.mergeNodeByKey(r.key)}},{match:{object:"text"},previous:function(e){return"text"!==e.object||""!==e.text},next:function(e){return"text"!==e.object||""!==e.text},normalize:function(e,t){var n=t.code,r=t.next,i=t.previous;"next_sibling_invalid"===n?e.removeNodeByKey(r.key):"previous_sibling_invalid"===n&&e.removeNodeByKey(i.key)}}]});return[o].concat(P(n),[r,i])}_t.addMark=function(e,t){t=V.create(t);var n=e.value,r=n.document,i=n.selection;if(i.isExpanded)e.addMarkAtRange(i,t);else if(i.marks){var o=i.marks.add(t),a=i.set("marks",o);e.select(a)}else{var s=r.getActiveMarksAtRange(i).add(t),l=i.set("marks",s);e.select(l)}},_t.addMarks=function(e,t){t.forEach((function(t){return e.addMark(t)}))},_t.delete=function(e){var t=e.value.selection;e.deleteAtRange(t),e.moveToFocus()},_t.deleteBackward=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.value,r=n.selection;r.isExpanded?e.delete():e.deleteBackwardAtRange(r,t)},_t.deleteCharBackward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteCharBackwardAtRange(t)},_t.deleteLineBackward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteLineBackwardAtRange(t)},_t.deleteWordBackward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteWordBackwardAtRange(t)},_t.deleteForward=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.value,r=n.selection;r.isExpanded?e.delete():e.deleteForwardAtRange(r,t)},_t.deleteCharForward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteCharForwardAtRange(t)},_t.deleteLineForward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteLineForwardAtRange(t)},_t.deleteWordForward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteWordForwardAtRange(t)},_t.insertBlock=function(e,t){bt(e),t=de.create(t);var n=e.value.selection;e.insertBlockAtRange(n,t);var r=e.value.document.getNode(t.key);r&&e.moveToEndOfNode(r)},_t.insertFragment=function(e,t){if(t.nodes.size){bt(e);var n=e.value,r=n,i=r.document,o=r.selection,a=o.start,s=Array.from(i.texts(),(function(e){return A(e,1)[0].key}));e.insertFragmentAtRange(o,t);var l=(i=(n=e.value).document).getTexts().filter((function(e){return!s.includes(e.key)}));if(0!==l.size){var u=t.text.length,c=i.getNode(a.key)||l.first(),d=l.last()||c;if(c!==d){var f=i.getCommonAncestor(c.key,d.key),p=f.getOffset(c.key)+(a.key===c.key?a.offset:0);d=f.getTextAtOffset(p+u-1)||d,e.moveTo(d.key,p+u-f.getOffset(d.key))}else e.moveTo(d.key,u)}}},_t.insertInline=function(e,t){bt(e),t=oe.create(t);var n=e.value.selection;e.insertInlineAtRange(n,t);var r=e.value.document.getNode(t.key);r&&e.moveToEndOfNode(r)},_t.insertText=function(e,t,n){bt(e);var r=e.value,i=r.document,o=r.selection;n=n||o.marks||i.getInsertMarksAtRange(o),e.withoutNormalizing((function(){e.insertTextAtRange(o,t,n),o.marks&&i!==e.value.document&&e.select({marks:null})}))},_t.removeMark=function(e,t){t=V.create(t);var n=e.value,r=n.document,i=n.selection;if(i.isExpanded)e.removeMarkAtRange(i,t);else if(i.marks){var o=i.marks.remove(t),a=i.set("marks",o);e.select(a)}else{var s=r.getActiveMarksAtRange(i).remove(t),l=i.set("marks",s);e.select(l)}},_t.replaceMark=function(e,t,n){e.removeMark(t),e.addMark(n)},_t.setBlocks=function(e,t){var n=e.value.selection;e.setBlocksAtRange(n,t)},_t.setInlines=function(e,t){var n=e.value.selection;e.setInlinesAtRange(n,t)},_t.splitBlock=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;bt(e);var n=e.value,r=n.selection,i=n.document,o=r.marks||i.getInsertMarksAtRange(r);e.splitBlockAtRange(r,t).moveToEnd(),o&&0!==o.size&&e.select({marks:o})},_t.splitInline=function(e,t){bt(e);var n=e.value.selection;e.splitInlineAtRange(n,t)},_t.toggleMark=function(e,t){t=V.create(t),e.value.activeMarks.has(t)?e.removeMark(t):e.addMark(t)},_t.unwrapBlock=function(e,t){var n=e.value.selection;e.unwrapBlockAtRange(n,t)},_t.unwrapInline=function(e,t){var n=e.value.selection;e.unwrapInlineAtRange(n,t)},_t.wrapBlock=function(e,t){var n=e.value.selection;e.wrapBlockAtRange(n,t)},_t.wrapInline=function(e,t){var n=e.value.selection;e.wrapInlineAtRange(n,t)},_t.wrapText=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=e.value,i=r.selection;e.wrapTextAtRange(i,t,n),i.isCollapsed&&e.moveStartBackward(t.length),e.moveEndBackward(n.length),i.isForward!==e.value.selection.isForward&&e.flip()};var xt=u()("slate:editor"),kt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x(this,e);var i=n.controller,o=void 0===i?this:i,a=n.construct,s=void 0===a||a,l=t.onChange,u=void 0===l?function(){}:l,c=t.plugins,d=void 0===c?[]:c,f=t.readOnly,p=void 0!==f&&f,h=t.value,m=void 0===h?pe.create():h;this.controller=o,this.middleware={},this.onChange=u,this.operations=Object(r.List)(),this.readOnly=null,this.value=null,this.tmp={dirty:[],flushing:!1,merge:null,normalize:!0,save:!0};var g=wt({plugins:d});Ot(this,g),s&&(this.run("onConstruct"),this.setReadOnly(p),this.setValue(m,n))}return k(e,[{key:"applyOperation",value:function(e){var t=this,n=this.operations,r=this.controller,i=this.value;o()(e)&&(e=S({},e,{value:i})),e=_e.create(e),this.withoutNormalizing((function(){r.save(e),i=t.value})),xt("apply",{operation:e}),this.value=e.apply(i),this.operations=n.push(e);var a=function(e){var t=e.type,n=e.node,r=e.path,i=e.newPath;switch(t){case"add_mark":case"insert_text":case"remove_mark":case"remove_text":case"set_mark":case"set_node":var o=z.getAncestors(r).toArray();return[].concat(P(o),[r]);case"insert_node":var a=n.getKeysToPathsTable(),s=Object.values(a).map((function(e){return r.concat(e)})),l=z.getAncestors(r).toArray();return[].concat(P(l),[r],P(s));case"split_node":var u=z.getAncestors(r).toArray(),c=z.increment(r);return[].concat(P(u),[r,c]);case"merge_node":var d=z.getAncestors(r).toArray(),f=z.decrement(r);return[].concat(P(d),[f]);case"move_node":if(z.isEqual(r,i))return[];var p=z.getAncestors(r).reduce((function(t,n){return t.push.apply(t,P(z.transform(n,e).toArray())),t}),[]),h=z.getAncestors(i).reduce((function(t,n){return t.push.apply(t,P(z.transform(n,e).toArray())),t}),[]);return[].concat(P(p),P(h));case"remove_node":var m=z.getAncestors(r).toArray();return[].concat(P(m));default:return[]}}(e),s=this.tmp.dirty.map((function(t){return t=z.create(t),z.transform(t,e).toArray()})),l={},u=Array.prototype.concat.apply(a,s);return this.tmp.dirty=[],u.forEach((function(e){var n=e.join(",");l[n]||t.tmp.dirty.push(e),l[n]=!0})),this.tmp.flushing||(this.tmp.flushing=!0,Promise.resolve().then((function(){return t.flush()}))),r}},{key:"flush",value:function(){this.run("onChange");var e=this.value,t=this.operations,n=this.controller,i={value:e,operations:t};return this.operations=Object(r.List)(),this.tmp.flushing=!1,this.onChange(i),n}},{key:"command",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this.controller;if("function"==typeof e)return e.apply(void 0,[i].concat(n)),Et(this),i;xt("command",{type:e,args:n});var o={type:e,args:n};return this.run("onCommand",o),Et(this),i}},{key:"hasCommand",value:function(e){var t=this.controller;return e in t&&t[e].__command}},{key:"hasQuery",value:function(e){var t=this.controller;return e in t&&t[e].__query}},{key:"normalize",value:function(){var e=this.value,t=this.controller,n=e.document,r=n.getKeysToPathsTable(),i=Object.values(r).map(z.create);this.tmp.dirty=this.tmp.dirty.concat(i),Et(this);var o=e.selection;return n=e.document,o.isUnset&&n.nodes.size&&t.moveToStartOfDocument(),t}},{key:"query",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this.controller;if("function"==typeof e)return e.apply(void 0,[i].concat(n));xt("query",{type:e,args:n});var o={type:e,args:n};return this.run("onQuery",o)}},{key:"registerCommand",value:function(e){var t=this,n=this.controller;if(e in n&&n[e].__command)return n;Object(s.a)(!(e in n),"You cannot register a `"+e+"` command because it would overwrite an existing property of the `Editor`.");var r=function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.command.apply(t,[e].concat(r))};return n[e]=r,r.__command=!0,n}},{key:"registerQuery",value:function(e){var t=this,n=this.controller;if(e in n&&n[e].__query)return n;Object(s.a)(!(e in n),"You cannot register a `"+e+"` query because it would overwrite an existing property of the `Editor`.");var r=function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.query.apply(t,[e].concat(r))};return n[e]=r,r.__query=!0,n}},{key:"run",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this.controller,o=this.middleware,a=o[e]||[],l=0;function u(){var e=a[l++];if(e){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];r.length&&(n=r);var s=e.apply(void 0,P(n).concat([i,u]));return s}}return Object.defineProperty(u,"change",{get:function(){Object(s.a)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(u,"onChange",{get:function(){Object(s.a)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(u,"props",{get:function(){Object(s.a)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(u,"schema",{get:function(){Object(s.a)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(u,"stack",{get:function(){Object(s.a)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),u()}},{key:"setReadOnly",value:function(e){return this.readOnly=e,this}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.normalize,r=void 0===n?e!==this.value:n;return this.value=e,r&&this.normalize(),this}},{key:"withoutNormalizing",value:function(e){var t=this.controller,n=this.tmp.normalize;return this.tmp.normalize=!1,e(t),this.tmp.normalize=n,Et(this),t}},{key:"change",value:function(e){Object(a.a)(!1,"As of Slate 0.43 the `change` object has been replaced with `editor`, so the `editor.change()` method is deprecated.`");for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.apply(void 0,[this.controller].concat(n))}},{key:"call",value:function(e){Object(a.a)(!1,"As of Slate 0.43 the `editor.call(fn)` method has been deprecated, please use `editor.command(fn)` instead.");for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,[this.controller].concat(n)),this.controller}},{key:"applyOperations",value:function(e){var t=this;return Object(a.a)(!1,"As of Slate 0.43 the `applyOperations` method is deprecated, please apply each operation in a loop instead."),e.forEach((function(e){return t.applyOperation(e)})),this.controller}},{key:"setOperationFlag",value:function(e,t){return Object(a.a)(!1,"As of slate@0.41 the `change.setOperationFlag` method has been deprecated."),this.tmp[e]=t,this}},{key:"getFlag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)(!1,"As of slate@0.41 the `change.getFlag` method has been deprecated."),void 0!==t[e]?t[e]:this.tmp[e]}},{key:"unsetOperationFlag",value:function(e){return Object(a.a)(!1,"As of slate@0.41 the `change.unsetOperationFlag` method has been deprecated."),delete this.tmp[e],this}},{key:"withoutNormalization",value:function(e){return Object(a.a)(!1,"As of slate@0.41 the `change.withoutNormalization` helper has been renamed to `change.withoutNormalizing`."),this.withoutNormalizing(e)}},{key:"editor",get:function(){return Object(a.a)(!1,"As of Slate 0.43 the `change` object has been replaced with `editor`, so you don't need to access `change.editor`."),this.controller}}]),e}();function Et(e){e.tmp.normalize&&e.tmp.dirty.length&&e.withoutNormalizing((function(){for(;e.tmp.dirty.length;){var t=e.tmp.dirty.pop();St(e,t)}}))}function St(e,t){for(var n=e.controller,r=e.value,i=r.document,o=i.assertNode(t),a=0,s=100+("text"===o.object?1:o.nodes.size);o;){var l=o.normalize(n);if(!l)break;l(n),i=(r=e.value).document;var u=o.key,c=i.getDescendant(t);if(c&&c.key===u)o=c;else{if(!(c=i.getDescendant(u)))break;o=c,t=i.getPath(u)}if(++a>s)throw new Error("A schema rule could not be normalized after sufficient iterations. This is usually due to a `rule.normalize` or `plugin.normalizeNode` function of a schema being incorrectly written, causing an infinite loop.")}}function Ot(e,t){if(Array.isArray(t))t.forEach((function(t){return Ot(e,t)}));else if(null!=t){var n=t.commands,r=t.queries,i=t.schema,o=T(t,["commands","queries","schema"]);if(n){var a=ke(n);Ot(e,a)}if(r){var s=nt(r);Ot(e,s)}if(i){var l=it(i);Ot(e,l)}for(var u in o){var c=o[u];(e.middleware[u]=e.middleware[u]||[]).push(c)}}}var Tt={marks:void 0,text:void 0},Ct=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"updateMark",value:function(e,t){var n=this.marks;if(t.equals(e))return this;if(!n.has(e))return this;var r=n.withMutations((function(n){n.remove(e).add(t)}));return this.set("marks",r)}},{key:"addMark",value:function(e){var t=this.marks;return this.set("marks",t.add(e))}},{key:"addMarks",value:function(e){var t=this.marks;return this.set("marks",t.union(e))}},{key:"insertText",value:function(e,t){var n=this.text,r=n.slice(0,e)+t+n.slice(e);return this.set("text",r)}},{key:"removeMark",value:function(e){var t=this.marks;return this.set("marks",t.remove(e))}},{key:"toJSON",value:function(){return{object:this.object,text:this.text,marks:this.marks.toArray().map((function(e){return e.toJSON()}))}}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object(a.a)(!1,"As of slate@0.47 the `Leaf` model is deprecated."),t.isLeaf(e))return e;if("string"==typeof e&&(e={text:e}),o()(e))return t.fromJSON(e);throw new Error("`Leaf.create` only accepts objects, strings or leaves, but you passed it: "+e)}},{key:"createLeaves",value:function(e){if(e.size<=1)return e;var t=!1,n=Object(r.List)().withMutations((function(n){e.findLast((function(e,r){var i=n.first();if(i){if(i.marks.equals(e.marks))return t=!0,void n.set(0,i.set("text",""+e.text+i.text));if(""===i.text)return t=!0,void n.set(0,e);if(""===e.text)return void(t=!0)}n.unshift(e)}))}));return t?n:e}},{key:"splitLeaves",value:function(e,t){if(t<0)return[Object(r.List)(),e];if(0===e.size)return[Object(r.List)(),Object(r.List)()];var n=0,i=-1,o=void 0,a=void 0;return e.find((function(e){i++;var r=n,s=e.text;if((n+=s.length)<t)return!1;if(r>t)return!1;var l=t-r;return o=e.set("text",s.slice(0,l)),a=e.set("text",s.slice(l)),!0})),o?""===o.text?0===i?[r.List.of(o),e]:[e.take(i),e.skip(i)]:""===a.text?i===e.size-1?[e,r.List.of(a)]:[e.take(i+1),e.skip(i+1)]:[e.take(i).push(o),e.skip(i+1).unshift(a)]:[e,Object(r.List)()]}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.List.isList(e)||Array.isArray(e)){var n=new r.List(e.map(t.create));return n}throw new Error("`Leaf.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.text,i=void 0===n?"":n,o=e.marks,a=void 0===o?[]:o;return new t({text:i,marks:Object(r.Set)(a.map(V.fromJSON))})}},{key:"isLeafList",value:function(e){return r.List.isList(e)&&e.every((function(e){return t.isLeaf(e)}))}}]),t}(Object(r.Record)(Tt));function At(e,t){var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,l=!0,u=!1,c=void 0;try{for(var d,f=Object.getOwnPropertyNames(e)[Symbol.iterator]();!(l=(d=f.next()).done);l=!0){var p=d.value;if(!s.hasOwnProperty(p)){var h=Object.getOwnPropertyDescriptor(e,p);Object.defineProperty(s,p,h)}}}catch(e){u=!0,c=e}finally{try{!l&&f.return&&f.return()}finally{if(u)throw c}}var m=!0,g=!1,v=void 0;try{for(var y,b=Object.getOwnPropertyNames(e.prototype)[Symbol.iterator]();!(m=(y=b.next()).done);m=!0){var _=y.value;if(!s.prototype.hasOwnProperty(_)){h=Object.getOwnPropertyDescriptor(e.prototype,_);Object.defineProperty(s.prototype,_,h)}}}catch(e){g=!0,v=e}finally{try{!m&&b.return&&b.return()}finally{if(g)throw v}}}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}Object.entries({Annotation:te,Block:de,Change:xe,Decoration:G,Document:re,Editor:kt,Inline:oe,Leaf:Ct,Mark:V,Node:ue,Operation:_e,Point:q,Range:Z,Selection:Y,Text:le,Value:pe}).forEach((function(e){var t,n,r,i,o=A(e,2),a=o[0],s=o[1];return At((t=a.toLowerCase(),n=Q[t],r="is"+t.charAt(0).toUpperCase()+t.slice(1),(i=function(){function e(){x(this,e)}return k(e,[{key:"object",get:function(){return t}}]),e}())[r]=X.bind(null,t),i.prototype[n]=!0,i),[s])})),At(function(){function e(){x(this,e)}return k(e,[{key:"toJS",value:function(){return this.toJSON.apply(this,arguments)}}],[{key:"fromJS",value:function(){return this.fromJSON.apply(this,arguments)}}]),e}(),[te,de,G,re,oe,Ct,V,ue,_e,q,Z,Y,le,pe]);var Pt=!0,Rt=Symbol("LEAF"),Mt=Symbol("STORE_KEY"),It=Symbol("undefined"),jt=Symbol("null"),Dt=new WeakMap;function Lt(e,t){var n=function(t){var n=e[t];if(!n)throw new Error('Object does not have a property named "'+t+'".');e[t]=function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];if(!Pt)return n.apply(this,r);Dt.has(this)||Dt.set(this,{noArgs:{},hasArgs:{}});var o=Dt.get(this),a=o.noArgs,s=o.hasArgs,l=0!==r.length,u=void 0,c=void 0;if(void 0!==(u=l?Nt(s,c=[t].concat(r)):a[t]))return u===It?void 0:u;var d=n.apply(this,r),f=void 0===d?It:d;return l?Ft(s,c,f):a[t]=f,d}},r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){n(a.value)}}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}}function Nt(e,t){var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;if(void 0===s?s=It:null==s&&(s=jt),void 0===(e="object"===(void 0===s?"undefined":w(s))?e[Mt]&&e[Mt].get(s):e[s]))return}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return e[Rt]}function Ft(e,t,n){var r=e,i=!0,o=!1,a=void 0;try{for(var s,l=t[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var u=s.value;if(void 0===u?u=It:null==u&&(u=jt),"object"===(void 0===u?"undefined":w(u)))if(r[Mt]||(r[Mt]=new WeakMap),r[Mt].has(u))r=r[Mt].get(u);else{var c={};r[Mt].set(u,c),r=c}else r[u]||(r[u]={}),r=r[u]}}catch(e){o=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw a}}return r[Rt]=n,e}function Bt(){Dt=new WeakMap}function zt(e){Pt=e}var Ut=function(){function e(){x(this,e)}return k(e,[{key:"getFirstText",value:function(){if("text"===this.object)return this;var e=null,t=this.nodes.find((function(t){return"text"===t.object||!!(e=t.getFirstText())}));return e||t}},{key:"getKeysToPathsTable",value:function(){var e=E({},this.key,[]);return this.nodes&&this.nodes.forEach((function(t,n){var r=t.getKeysToPathsTable();for(var i in r){var o=r[i];Object(a.a)(!(i in e),'A node with a duplicate key of "'+i+'" was found! Duplicate keys are not allowed, you should use `node.regenerateKey` before inserting if you are reusing an existing node.'),e[i]=[n].concat(P(o))}})),e}},{key:"getLastText",value:function(){if("text"===this.object)return this;var e=null,t=this.nodes.findLast((function(t){return"text"===t.object||(e=t.getLastText())}));return e||t}},{key:"getNode",value:function(e){return(e=this.resolvePath(e))?"text"===this.object&&e.size?null:e.size?this.getDescendant(e):this:null}},{key:"getPath",value:function(e){if(r.List.isList(e))return e;if(ue.isNode(e)&&this.descendants){var t=!0,n=!1,i=void 0;try{for(var o,a=this.descendants()[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var s=o.value,l=A(s,2),u=l[0],c=l[1];if(e===u)return c}}catch(e){n=!0,i=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw i}}}var d=this.getKeysToPathsTable()[e];return d?Object(r.List)(d):null}},{key:"getText",value:function(){return"text"===this.object?this.text:this.nodes.reduce((function(e,t){return e+t.text}),"")}},{key:"hasNode",value:function(e){return!!this.getNode(e)}},{key:"normalize",value:function(e){return e.run("normalizeNode",this)}},{key:"regenerateKey",value:function(){var e=_.create();return this.set("key",e)}},{key:"resolvePath",value:function(e,t){return"string"==typeof e?(e=this.getPath(e),null!=t&&(e=e.concat(t))):e=z.create(e),e}},{key:"validate",value:function(e){return e.run("validateNode",this)}}]),e}();Lt(Ut.prototype,["getFirstText","getKeysToPathsTable","getLastText","getText","normalize","validate"]),At(Ut,[de,re,oe,le]);var qt=void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Ht(){return!0}var Wt=function(){function e(){x(this,e)}return k(e,[{key:"addMark",value:function(e,t){e=this.resolvePath(e);var n=this.assertDescendant(e);return n=n.addMark(t),this.replaceNode(e,n)}},{key:"ancestors",value:function(e){return this.createIterable({path:e,direction:null,downward:!1,includeTargetAncestors:!0,includeRoot:!0})}},{key:"blocks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onlyLeaves,n=e.onlyRoots,r=e.onlyTypes,i=e.match,o=T(e,["onlyLeaves","onlyRoots","onlyTypes","match"]),a=this.descendants(S({includeDocument:!1,includeInlines:!1,includeTexts:!1},o,{match:function(e,o){return!(r&&!r.includes(e.type))&&((!n||1===o.size)&&(!(t&&!e.isLeafBlock())&&!(i&&!i(e,o))))}}));return a}},{key:"createAnnotation",value:function(e){return e=te.createProperties(e),this.resolveAnnotation(e)}},{key:"createDecoration",value:function(e){return e=G.createProperties(e),this.resolveDecoration(e)}},{key:"createIterable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.direction,n=void 0===t?"forward":t,r=e.downward,i=void 0===r||r,o=e.upward,a=void 0===o||o,s=e.includeBlocks,l=void 0===s||s,u=e.includeDocument,c=void 0===u||u,d=e.includeInlines,f=void 0===d||d,p=e.includeRoot,h=void 0!==p&&p,m=e.includeTarget,g=void 0===m?!!e.range:m,v=e.includeTargetAncestors,y=void 0!==v&&v,b=e.includeTexts,_=void 0===b||b,w=e.match,x=void 0===w?null:w,k=this,S=null,O=null;e.range?(O=k.resolveRange(e.range),S=k.resolvePath(O.start.path)):e.path&&(S=k.resolvePath(e.path));var T=S&&k.assertNode(S),C="undefined"==typeof window?qt.Set:window.Set;return E({},Symbol.iterator,(function(){var e=new C,t=O&&O.start.path,r=O&&O.end.path,o=S,s=T,u=!1,d=!1,p=!1,m=function(){return o&&s?(h||s!==k)&&(l||"block"!==s.object)&&(c||"document"!==s.object)&&(f||"inline"!==s.object)&&(_||"text"!==s.object)?x&&!x(s,o)?v():{value:[s,o],done:!1}:v():{done:!0}},v=function l(){if(!o||!s)return m();if(t&&!d)return p?o.size===t.size-1?(d=!0,o=S,s=T,l()):(o=t.slice(0,o.size+1),s=k.assertNode(o),m()):(p=!0,o=z.create([]),s=k,m());if(g&&!u)return u=!0,m();if(r&&o.equals(r))return s=null,o=null,l();if(i&&s.nodes&&s.nodes.size&&!e.has(s)){e.add(s);var c="forward"===n?0:s.nodes.size-1;return o=o.push(c),s=k.assertNode(o),m()}if("forward"===n){var f=z.increment(o),h=k.getNode(f);if(h)return o=f,s=h,m()}if("backward"===n&&0!==o.last()){var v=z.decrement(o),b=k.getNode(v);if(b)return o=v,s=b,m()}return a&&o.size?(o=z.lift(o),s=k.assertNode(o),e.has(s)?l():(e.add(s),y?m():l())):(o=null,s=null,l())};return{next:v}}))}},{key:"createPoint",value:function(e){return e=q.createProperties(e),this.resolvePoint(e)}},{key:"createRange",value:function(e){return e=Z.createProperties(e),this.resolveRange(e)}},{key:"createSelection",value:function(e){return e=Y.createProperties(e),this.resolveSelection(e)}},{key:"descendants",value:function(e){return this.createIterable(S({path:[]},e))}},{key:"filterDescendants",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht,t=[],n=!0,i=!1,o=void 0;try{for(var a,s=this.descendants()[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value,u=A(l,2),c=u[0],d=u[1];e(c,d)&&t.push(c)}}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return Object(r.List)(t)}},{key:"findDescendant",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht,t=!0,n=!1,r=void 0;try{for(var i,o=this.descendants()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value,s=A(a,2),l=s[0],u=s[1];if(e(l,u))return l}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}return null}},{key:"forEachDescendant",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht,t=!0,n=!1,r=void 0;try{for(var i,o=this.descendants()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value,s=e.apply(void 0,P(a));if(!1===s)return}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}},{key:"getActiveMarksAtRange",value:function(e){if((e=this.resolveRange(e)).isUnset)return Object(r.Set)();if(e.isCollapsed){var t=e.start;return this.getInsertMarksAtPoint(t)}var n=e,i=n.start,o=n.end,a=i.path,s=i.offset,l=o.path,u=o.offset,c=this.getDescendant(a),d=this.getDescendant(l);if(!a.equals(l)){for(;!a.equals(l)&&0===u;){var f=this.texts({path:l,direction:"backward"}),p=A(f,1),h=A(p[0],2);d=h[0],l=h[1],u=d.text.length}for(;!a.equals(l)&&s===c.text.length;){var m=this.texts({path:a}),g=A(m,1),v=A(g[0],2);c=v[0],a=v[1],s=0}}if(a.equals(l))return c.marks;var y=c.marks;if(0===y.size)return Object(r.Set)();var b=d.marks,_=y.intersect(b);if(0===_.size)return _;var w=this.texts({path:a}),x=A(w,1),k=A(x[0],2);for(c=k[0],a=k[1];!a.equals(l);){if(0!==c.text.length&&0===(_=_.intersect(c.marks)).size)return Object(r.Set)();var E=this.texts({path:a}),S=A(E,1),O=A(S[0],2);c=O[0],a=O[1]}return _}},{key:"getAncestors",value:function(e){var t=this.ancestors(e),n=Array.from(t,(function(e){return A(e,1)[0]})).reverse();return Object(r.List)(n)}},{key:"getBlocks",value:function(){var e=this.blocks({onlyLeaves:!0}),t=Array.from(e,(function(e){return A(e,1)[0]}));return Object(r.List)(t)}},{key:"getBlocksByType",value:function(e){var t=this.blocks({onlyLeaves:!0,onlyTypes:[e]}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"getChild",value:function(e){return!(e=this.resolvePath(e))||e.size>1?null:this.nodes.get(e.first())}},{key:"getClosest",value:function(e,t){var n=!0,r=!1,i=void 0;try{for(var o,a=this.ancestors(e)[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,l=A(s,2),u=l[0];if(t(u,l[1]))return u}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return null}},{key:"getClosestBlock",value:function(e){return this.getClosest(e,(function(e){return"block"===e.object}))}},{key:"getClosestInline",value:function(e){return this.getClosest(e,(function(e){return"inline"===e.object}))}},{key:"getClosestVoid",value:function(e,t){return Object(s.a)(!pe.isValue(t),"As of Slate 0.42.0, the `node.getClosestVoid` method takes an `editor` instead of a `value`."),this.getClosest(e,(function(e){return t.isVoid(e)}))}},{key:"getCommonAncestor",value:function(e,t){if(e=this.resolvePath(e),t=this.resolvePath(t),!e||!t)return null;var n=z.relate(e,t);return this.getNode(n)}},{key:"getDecorations",value:function(e){var t=e.run("decorateNode",this);return t=G.createList(t)}},{key:"getDepth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!(e=this.resolvePath(e)))return null;var n=this.getNode(e),r=n?e.size-1+t:null;return r}},{key:"getDescendant",value:function(e){if(!(e=this.resolvePath(e))||!e.size)return null;var t=this;return e.forEach((function(e){return!!(t=t.getIn(["nodes",e]))})),t}},{key:"getDescendantsAtRange",value:function(e){var t=this.descendants({range:e}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"getFragmentAtRange",value:function(e){if((e=this.resolveRange(e)).isUnset)return re.create();for(var t=e,n=t.start,r=t.end,i=this,o=r.path,a=r.offset,s="end";o.size;){var l=o.last();i=i.splitNode(o,a),a=l+1,(o=z.lift(o)).size||"end"!==s||(o=n.path,a=n.offset,s="start")}var u=n.path.first()+1,c=r.path.first()+2,d=i.nodes.slice(u,c);return re.create({nodes:d})}},{key:"getFurthest",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ht,n=this.ancestors(e),r=Array.from(n).reverse(),i=!0,o=!1,a=void 0;try{for(var s,l=r[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var u=s.value,c=A(u,2),d=c[0],f=c[1];if(t(d,f))return d}}catch(e){o=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw a}}return null}},{key:"getFurthestBlock",value:function(e){return this.getFurthest(e,(function(e){return"block"===e.object}))}},{key:"getFurthestChild",value:function(e){return(e=this.resolvePath(e))&&e.size?this.nodes.get(e.first()):null}},{key:"getFurthestInline",value:function(e){return this.getFurthest(e,(function(e){return"inline"===e.object}))}},{key:"getInlines",value:function(){var e=this.inlines({onlyLeaves:!0}),t=Array.from(e,(function(e){return A(e,1)[0]}));return Object(r.List)(t)}},{key:"getInlinesByType",value:function(e){var t=this.inlines({onlyLeaves:!0,onlyTypes:[e]}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"getInsertMarksAtPoint",value:function(e){var t=e=this.resolvePoint(e),n=t.path,r=t.offset,i=this.getDescendant(n);if(0!==r)return i.marks;var o=void 0,a=void 0,s=!0,l=!1,u=void 0;try{for(var c,d=this.ancestors(n)[Symbol.iterator]();!(s=(c=d.next()).done);s=!0){var f=c.value,p=A(f,2),h=p[0],m=p[1];"block"===h.object&&(o=h,a=m)}}catch(e){l=!0,u=e}finally{try{!s&&d.return&&d.return()}finally{if(l)throw u}}var g=z.drop(n,a.size),v=o.texts({path:g,direction:"backward"}),y=A(v,1)[0];return y?A(y,1)[0].marks:i.marks}},{key:"getInsertMarksAtRange",value:function(e){var t=(e=this.resolveRange(e)).start;return e.isUnset?Object(r.Set)():e.isCollapsed?this.getInsertMarksAtPoint(t):this.getDescendant(t.path).marks}},{key:"getLeafBlocksAtRange",value:function(e){var t=this.blocks({range:e,onlyLeaves:!0}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"getLeafInlinesAtRange",value:function(e){var t=this.inlines({range:e,onlyLeaves:!0}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"getNodesToPathsMap",value:function(){var e="undefined"==typeof window?new qt.Map:new window.Map;return e.set(this,z.create([])),this.forEachDescendant((function(t,n){e.set(t,n)})),e}},{key:"getMarks",value:function(){var e=this.marks(),t=Array.from(e,(function(e){return A(e,1)[0]}));return Object(r.OrderedSet)(t)}},{key:"getMarksAtRange",value:function(e){var t=this.marks({range:e}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.OrderedSet)(n)}},{key:"getMarksByType",value:function(e){var t=this.marks({onlyTypes:[e]}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.OrderedSet)(n)}},{key:"getNextBlock",value:function(e){var t=this.blocks({path:e,onlyLeaves:!0}),n=A(t,1)[0];return n?n[0]:null}},{key:"getNextNode",value:function(e){var t=this.createIterable({path:e,downward:!1}),n=A(t,1)[0];return n?n[0]:null}},{key:"getNextSibling",value:function(e){var t=this.siblings(e),n=A(t,1)[0];return n?n[0]:null}},{key:"getNextText",value:function(e){var t=this.texts({path:e}),n=A(t,1)[0];return n?n[0]:null}},{key:"getOffset",value:function(e){e=this.resolvePath(e),this.assertDescendant(e);var t=e.first(),n=this.nodes.slice(0,t).reduce((function(e,t){return e+t.text.length}),0);return 1===e.size?n:n+this.nodes.get(t).getOffset(z.drop(e))}},{key:"getOffsetAtRange",value:function(e){if((e=this.resolveRange(e)).isUnset)throw new Error("The range cannot be unset to calculcate its offset.");if(e.isExpanded)throw new Error("The range must be collapsed to calculcate its offset.");var t=e.start;return this.getOffset(t.path)+t.offset}},{key:"getParent",value:function(e){if(!(e=this.resolvePath(e)))return null;if(!e.size)return null;var t=z.lift(e);return this.getNode(t)}},{key:"getPreviousBlock",value:function(e){var t=this.blocks({path:e,onlyLeaves:!0,direction:"backward"}),n=A(t,1)[0];return n?n[0]:null}},{key:"getPreviousNode",value:function(e){var t=this.createIterable({path:e,downward:!1,direction:"backward"}),n=A(t,1)[0];return n?n[0]:null}},{key:"getPreviousSibling",value:function(e){var t=this.siblings(e,{direction:"backward"}),n=A(t,1)[0];return n?n[0]:null}},{key:"getPreviousText",value:function(e){var t=this.texts({path:e,direction:"backward"}),n=A(t,1)[0];return n?n[0]:null}},{key:"getRootBlocksAtRange",value:function(e){var t=this.blocks({range:e,onlyRoots:!0}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"getRootInlinesAtRange",value:function(e){var t=this.inlines({range:e,onlyRoots:!0}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"getTextAtOffset",value:function(e){if(0===e)return this.getFirstText();if(e===this.text.length)return this.getLastText();if(e<0||e>this.text.length)return null;var t=0,n=!0,r=!1,i=void 0;try{for(var o,a=this.texts()[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,l=A(s,1)[0];if((t+=l.text.length)>e)return l}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return null}},{key:"getTextDirection",value:function(){var e=g()(this.text);return"neutral"===e?null:e}},{key:"getTexts",value:function(){var e=this.texts(),t=Array.from(e,(function(e){return A(e,1)[0]}));return Object(r.List)(t)}},{key:"getTextsAtRange",value:function(e){var t=this.texts({range:e}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"hasBlockChildren",value:function(){return!(!this.nodes||!this.nodes.find((function(e){return"block"===e.object})))}},{key:"hasChild",value:function(e){return!!this.getChild(e)}},{key:"hasInlineChildren",value:function(){return!(!this.nodes||!this.nodes.find((function(e){return"inline"===e.object||"text"===e.object})))}},{key:"hasDescendant",value:function(e){return!!this.getDescendant(e)}},{key:"hasVoidParent",value:function(e,t){return Object(s.a)(!pe.isValue(t),"As of Slate 0.42.0, the `node.hasVoidParent` method takes an `editor` instead of a `value`."),!!this.getClosestVoid(e,t)}},{key:"inlines",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.onlyLeaves,r=t.onlyRoots,i=t.onlyTypes,o=t.match,a=T(t,["onlyLeaves","onlyRoots","onlyTypes","match"]),s=this.descendants(S({includeBlocks:!1,includeTexts:!1,includeDocument:!1},a,{match:function(t,a){return!(i&&!i.includes(t.type))&&(!(n&&!t.isLeafInline())&&((!r||"block"===e.getParent(a).object)&&!(o&&!o(t,a))))}}));return s}},{key:"insertNode",value:function(e,t){var n=(e=this.resolvePath(e)).last(),r=z.lift(e),i=this.assertNode(r),o=i.nodes.splice(n,0,t);return i=i.set("nodes",o),this.replaceNode(r,i)}},{key:"insertText",value:function(e,t,n){e=this.resolvePath(e);var r=this.assertDescendant(e);return r=r.insertText(t,n),this.replaceNode(e,r)}},{key:"isLeafBlock",value:function(){return"block"===this.object&&!this.nodes.some((function(e){return"block"===e.object}))}},{key:"isLeafInline",value:function(){return"inline"===this.object&&!this.nodes.some((function(e){return"inline"===e.object}))}},{key:"isInRange",value:function(e,t){if(e=this.resolvePath(e),(t=this.resolveRange(t)).isUnset)return!1;var n=z.compare(e,t.start.path),r=z.compare(e,t.end.path),i=-1!==n&&1!==r;return i}},{key:"mapChildren",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht,n=this.nodes;n.forEach((function(r,i){var o=t(r,i,e.nodes);o!==r&&(n=n.set(o.key,o))}));var r=this.set("nodes",n);return r}},{key:"mapDescendants",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht,n=this.nodes;n.forEach((function(r,i){var o=r;"text"!==o.object&&(o=o.mapDescendants(t)),(o=t(o,i,e.nodes))!==r&&(n=n.set(i,o))}));var r=this.set("nodes",n);return r}},{key:"marks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onlyTypes,n=void 0===t?null:t,r=e.match,i=T(e,["onlyTypes","match"]),o=this.texts(i);return E({},Symbol.iterator,(function(){var e=o[Symbol.iterator](),t=null,i=null,a=[];return{next:function o(){if(a.length){var s=a.shift();return n&&!n.includes(s.type)||r&&!r(s,t,i)?o():{value:[s,t,i],done:!1}}var l=e.next(),u=l.value;if(l.done)return{done:!0};var c=A(u,2);return t=c[0],i=c[1],a=t.marks.toArray(),o()}}}))}},{key:"mergeNode",value:function(e){var t=this.assertNode(e);if(0===(e=this.resolvePath(e)).last())throw new Error("Unable to merge node because it has no previous sibling: "+t);var n=z.decrement(e),r=this.assertNode(n);if(r.object!==t.object)throw new Error("Unable to merge two different kinds of nodes: "+r+" and "+t);var i="text"===r.object?r.mergeText(t):r.set("nodes",r.nodes.concat(t.nodes)),o=this;return o=(o=(o=o.removeNode(e)).removeNode(n)).insertNode(n,i)}},{key:"moveNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.assertNode(e);e=this.resolvePath(e),t=this.resolvePath(t,n);var i=z.lift(t);this.assertNode(i);var o=_e.create({type:"move_node",path:e,newPath:t});t=z.transform(e,o).first();var a=this;return a=(a=a.removeNode(e)).insertNode(t,r)}},{key:"removeMark",value:function(e,t){e=this.resolvePath(e);var n=this.assertDescendant(e);return n=n.removeMark(t),this.replaceNode(e,n)}},{key:"removeNode",value:function(e){this.assertDescendant(e);var t=(e=this.resolvePath(e)).flatMap((function(e){return["nodes",e]}));return this.deleteIn(t)}},{key:"removeText",value:function(e,t,n){var r=this.assertDescendant(e);return r=r.removeText(t,n.length),this.replaceNode(e,r)}},{key:"replaceNode",value:function(e,t){if(!(e=this.resolvePath(e)))throw new Error("Unable to replace a node because it could not be found in the first place: "+e);if(!e.size)return t;this.assertNode(e);var n=e.flatMap((function(e){return["nodes",e]}));return this.setIn(n,t)}},{key:"resolveAnnotation",value:function(e){return e=(e=te.create(e)).normalize(this)}},{key:"resolveDecoration",value:function(e){return e=(e=G.create(e)).normalize(this)}},{key:"resolvePoint",value:function(e){return e=(e=q.create(e)).normalize(this)}},{key:"resolveRange",value:function(e){return e=(e=Z.create(e)).normalize(this)}},{key:"resolveSelection",value:function(e){return e=(e=Y.create(e)).normalize(this)}},{key:"setNode",value:function(e,t){var n=this.assertNode(e);return n=n.merge(t),this.replaceNode(e,n)}},{key:"setMark",value:function(e,t,n){e=this.resolvePath(e);var r=this.assertDescendant(e);return r=r.setMark(t,n),this.replaceNode(e,r)}},{key:"siblings",value:function(e,t){return this.createIterable(S({path:e,upward:!1,downward:!1},t))}},{key:"splitNode",value:function(e,t,n){var r=this.assertNode(e);e=this.resolvePath(e);var i=void 0,o=void 0;if("text"===r.object){var a=r.splitText(t),s=A(a,2);i=s[0],o=s[1]}else{var l=r.nodes.take(t),u=r.nodes.skip(t);i=r.set("nodes",l),o=r.set("nodes",u).regenerateKey()}n&&"text"!==r.object&&(o=o.merge(n));var c=this;return c=(c=(c=c.removeNode(e)).insertNode(e,o)).insertNode(e,i)}},{key:"texts",value:function(e){return this.descendants(S({includeBlocks:!1,includeInlines:!1,includeDocument:!1},e))}},{key:"getBlocksAtRange",value:function(e){return Object(a.a)(!1,"As of slate@0.44 the `node.getBlocksAtRange` method has been renamed to `getLeafBlocksAtRange`."),this.getLeafBlocksAtRange(e)}},{key:"getBlocksAtRangeAsArray",value:function(e){return Object(a.a)(!1,"As of slate@0.44 the `node.getBlocksAtRangeAsArray` method has been renamed to `getLeafBlocksAtRangeAsArray`."),this.getLeafBlocksAtRangeAsArray(e)}},{key:"getInlinesAtRange",value:function(e){return Object(a.a)(!1,"As of slate@0.44 the `node.getInlinesAtRange` method has been renamed to `getLeafInlinesAtRange`."),this.getLeafInlinesAtRange(e)}},{key:"getInlinesAtRangeAsArray",value:function(e){return Object(a.a)(!1,"As of slate@0.44 the `node.getInlinesAtRangeAsArray` method has been renamed to `getLeafInlinesAtRangeAsArray`."),this.getLeafInlinesAtRangeAsArray(e)}},{key:"getNextTextAndPath",value:function(e){return Object(a.a)(!1,"As of slate@0.47, the `getNextTextAndPath` method has been renamed to `getNextTextEntry`."),this.getNextTextEntry(e)}},{key:"getNextDeepMatchingNodeAndPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};Object(a.a)(!1,"As of slate@0.47, the `getNextDeepMatchingNodeAndPath` method is deprecated.");var n=this.getNextMatchingNodeAndPath(e);if(!n)return null;for(var r=A(n,2),i=r[0],o=r[1],s=void 0,l=function(){return s="text"!==i.object&&i.findFirstDescendantAndPath(t,o)};l(s);){var u=s,c=A(u,2);i=c[0],o=c[1]}return i?t(i)?[i,o]:this.getNextDeepMatchingNodeAndPath(n[1],t):null}},{key:"getPreviousTextAndPath",value:function(e){return Object(a.a)(!1,"As of slate@0.47, the `getPreviousTextAndPath` method has been renamed to `getPreviousTextEntry`."),this.getPreviousTextEntry(e)}},{key:"findFirstDescendantAndPath",value:function(e,t){return Object(a.a)(!1,"As of slate@0.47, the `findFirstDescendantAndPath` method is deprecated."),this.findDescendantAndPath(e,t,!1)}},{key:"getPreviousMatchingNodeAndPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};if(Object(a.a)(!1,"As of slate@0.47, the `getPreviousMatchingNodeAndPath` method is deprecated."),!e)return null;for(var n=e.size;n>0;n--){var r=e.slice(0,n);if(0!==r.last()){for(var i=z.decrement(r),o=this.getNode(i);o&&!t(o);)i=z.decrement(i),o=this.getNode(i);if(o)return[o,i]}}return null}},{key:"getPreviousDeepMatchingNodeAndPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};Object(a.a)(!1,"As of slate@0.47, the `getPreviousDeepMatchingNodeAndPath` method is deprecated.");var n=this.getPreviousMatchingNodeAndPath(e);if(!n)return null;for(var r=A(n,2),i=r[0],o=r[1],s=void 0,l=function(){return s="text"!==i.object&&i.findLastDescendantAndPath(t,o)};l(s);){var u=s,c=A(u,2);i=c[0],o=c[1]}return i?t(i)?[i,o]:this.getPreviousDeepMatchingNodeAndPath(n[1],t):null}},{key:"findLastDescendantAndPath",value:function(e,t){return Object(a.a)(!1,"As of slate@0.47, the `findLastDescendantAndPath` method is deprecated."),this.findDescendantAndPath(e,t,!0)}},{key:"findDescendantAndPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.create([]),n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Object(a.a)(!1,"As of slate@0.47, the `findDescendantAndPath` method is deprecated.");var r=void 0,i=void 0;return this.forEachDescendantWithPath((function(t,n,o){if(e(t,n,o))return r=t,i=n,!1}),t,n),r?[r,i]:null}},{key:"forEachDescendantWithPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.create([]),n=arguments[2];Object(a.a)(!1,"As of slate@0.47, the `forEachDescendantWithPath` method is deprecated.");var r=this.nodes,i=void 0;return n&&(r=r.reverse()),r.forEach((function(o,a){var s=t.concat(a);return!1===e(o,s,r)?(i=!1,!1):"text"!==o.object?i=o.forEachDescendantWithPath(e,s,n):void 0})),i}},{key:"getNextMatchingNodeAndPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};if(Object(a.a)(!1,"As of slate@0.47, the `getNextMatchingNodeAndPath` method is deprecated."),!e)return null;for(var n=e.size;n>0;n--){for(var r=e.slice(0,n),i=z.increment(r),o=this.getNode(i);o&&!t(o);)i=z.increment(i),o=this.getNode(i);if(o)return[o,i]}return null}},{key:"getSelectionIndexes",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Object(a.a)(!1,"As of slate@0.47, the `getSelectionIndexes` method is deprecated.");var n=e.start,r=e.end;if(!t)return null;if(e.isUnset)return null;if(n.path.equals(r.path)){var i=this.getFurthestAncestor(n.path),o=i?this.nodes.indexOf(i):null;return{start:o,end:o+1}}var s=null,l=null;return this.nodes.forEach((function(e,t){return"text"===e.object?(null==s&&e.key===n.key&&(s=t),null==l&&e.key===r.key&&(l=t+1)):(null==s&&e.hasDescendant(n.key)&&(s=t),null==l&&e.hasDescendant(r.key)&&(l=t+1)),null==s||null==l})),t&&null==s&&(s=0),t&&null==l&&(l=this.nodes.size),null==s?null:{start:s,end:l}}},{key:"getTextsBetweenPositionsAsArray",value:function(e,t){return Object(a.a)(!1,"As of slate@0.47, the `getTextsBetweenPositionsAsArray` method is deprecated."),e=this.resolvePath(e),t=this.resolvePath(t),this.getTextsBetweenPathPositionsAsArray(e,t)}},{key:"getOrderedMarksBetweenPositions",value:function(e,t,n,i){Object(a.a)(!1,"As of slate@0.47, the `getOrderedMarksBetweenPositions` method is deprecated."),e=this.resolvePath(e),n=this.resolvePath(n);var o=this.getDescendant(e);if(z.isEqual(e,n))return o.marks;var s=this.getTextsBetweenPathPositionsAsArray(e,n);return Object(r.OrderedSet)().withMutations((function(e){s.forEach((function(t){e.union(t.marks)}))}))}},{key:"getTextsBetweenPathPositionsAsArray",value:function(e,t){if(Object(a.a)(!1,"As of slate@0.47, the `getTextsBetweenPathPositionsAsArray` method is deprecated."),e&&t&&z.isEqual(e,t))return[this.getDescendant(e)];if(!e&&!t)return this.getTextsAsArray();var n=e?e.get(0,0):0,r=t?t.get(0,this.nodes.size-1):this.nodes.size-1,i=[];return this.nodes.slice(n,r+1).forEach((function(o,a){if("text"===o.object)i.push(o);else{var s=e&&0===a?z.drop(e):null,l=t&&a===r-n?z.drop(t):null;i=i.concat(o.getTextsBetweenPathPositionsAsArray(s,l))}})),i}},{key:"getFurthestAncestor",value:function(e){return Object(a.a)(!1,"As of slate@0.47, the `getFurthestAncestor` method has been renamed to `getFurthestChild`."),this.getFurthestChild(e)}},{key:"getLeafBlocksAtRangeAsArray",value:function(e){if(Object(a.a)(!1,"As of slate@0.47, the `getLeafBlocksAtRangeAsArray` method is deprecated."),(e=this.resolveRange(e)).isUnset)return[];var t=e,n=t.start,r=t.end;return this.getLeafBlocksBetweenPathPositionsAsArray(n.path,r.path)}},{key:"getLeafBlocksBetweenPathPositionsAsArray",value:function(e,t){if(Object(a.a)(!1,"As of slate@0.47, the `getLeafBlocksBetweenPathPositionsAsArray` method is deprecated."),e&&t&&z.isEqual(e,t))return[this.getClosestBlock(e)];if(!e&&!t)return this.getBlocksAsArray();var n=e?e.get(0,0):0,r=t?t.get(0,this.nodes.size-1):this.nodes.size-1,i=[];return this.nodes.slice(n,r+1).forEach((function(o,a){if("block"===o.object)if(o.isLeafBlock())i.push(o);else{var s=e&&0===a?z.drop(e):null,l=t&&a===r-n?z.drop(t):null;i=i.concat(o.getLeafBlocksBetweenPathPositionsAsArray(s,l))}})),i}},{key:"getBlocksAsArray",value:function(){Object(a.a)(!1,"As of slate@0.47, the `getBlocksAsArray` method is deprecated.");var e=this.blocks({onlyLeaves:!0});return Array.from(e,(function(e){return A(e,1)[0]}))}},{key:"getBlocksByTypeAsArray",value:function(e){Object(a.a)(!1,"As of slate@0.47, the `getBlocksByTypeAsArray` method is deprecated.");var t=this.blocks({onlyLeaves:!0,onlyTypes:[e]});return Array.from(t,(function(e){return A(e,1)[0]}))}},{key:"getFurthestOnlyChildAncestor",value:function(e){Object(a.a)(!1,"As of slate@0.47, the `getFurthestOnlyChildAncestor` method is deprecated.");var t=this.getAncestors(e);return t&&t.rest().reverse().takeUntil((function(e){return e.nodes.size>1})).last()||null}},{key:"getInlinesAsArray",value:function(){return Object(a.a)(!1,"As of slate@0.47, the `getInlinesAsArray` method is deprecated."),Array.from(this.inlines({onlyLeaves:!0}),(function(e){return A(e,1)[0]}))}},{key:"getInlinesByTypeAsArray",value:function(e){return Object(a.a)(!1,"As of slate@0.47, the `getInlinesByTypeAsArray` method is deprecated."),Array.from(this.inlines({onlyLeaves:!0,onlyTypes:[e]}),(function(e){return A(e,1)[0]}))}},{key:"getLeafInlinesAtRangeAsArray",value:function(e){var t=this;return Object(a.a)(!1,"As of slate@0.47, the `getLeafInlinesAtRangeAsArray` method is deprecated."),(e=this.resolveRange(e)).isUnset?[]:this.getTextsAtRangeAsArray(e).map((function(e){return t.getClosestInline(e.key)})).filter((function(e){return e}))}},{key:"getOrderedMarks",value:function(){return Object(a.a)(!1,"As of slate@0.47, the `getOrderedMarks` method has been folded into `getMarks`, which will now return an ordered set."),this.getMarks()}},{key:"getOrderedMarksAtRange",value:function(e){return Object(a.a)(!1,"As of slate@0.47, the `getOrderedMarksAtRange` method has been folded into `getMarksAtRange`, which will now return an ordered set."),this.getMarksAtRange(e)}},{key:"getOrderedMarksByType",value:function(e){return Object(a.a)(!1,"As of slate@0.47, the `getOrderedMarksByType` method has been folded into `getMarksByType`, which will now return an ordered set."),this.getMarksByType(e)}},{key:"getMarksByTypeAsArray",value:function(e){return Object(a.a)(!1,"As of slate@0.47, the `getMarksByTypeAsArray` method is deprecated."),this.nodes.reduce((function(t,n){return"text"===n.object?t.concat(n.marks.filter((function(t){return t.type===e}))):t.concat(n.getMarksByTypeAsArray(e))}),[])}},{key:"getMarksAsArray",value:function(){var e;Object(a.a)(!1,"As of slate@0.47, the `getMarksAsArray` method is deprecated.");var t=[],n=!0,r=!1,i=void 0;try{for(var o,s=this.texts()[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var l=o.value,u=A(l,1)[0];t.push(u.marks.toArray())}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return(e=[]).concat.apply(e,t)}},{key:"getRootInlinesAtRangeAsArray",value:function(e){var t=this;return Object(a.a)(!1,"As of slate@0.47, the `getRootInlinesAtRangeAsArray` method is deprecated."),(e=this.resolveRange(e)).isUnset?Object(r.List)():this.getTextsAtRangeAsArray(e).map((function(e){return t.getFurthestInline(e.key)})).filter((function(e){return e}))}},{key:"getTextsAsArray",value:function(){Object(a.a)(!1,"As of slate@0.47, the `getTextsAsArray` method is deprecated.");var e=this.texts();return Array.from(e,(function(e){return A(e,1)[0]}))}},{key:"getTextsAtRangeAsArray",value:function(e){Object(a.a)(!1,"As of slate@0.47, the `getTextsAtRangeAsArray` method is deprecated.");var t=this.texts({range:e});return Array.from(t,(function(e){return A(e,1)[0]}))}},{key:"getMarksAtPosition",value:function(e,t){Object(a.a)(!1,"As of slate@0.47, the `getMarksAtPosition` method is deprecated."),e=this.resolvePath(e);var n=this.getDescendant(e).marks;if(0!==t)return Object(r.OrderedSet)(n);var i=this.getClosestBlock(e);if(""===i.text)return Object(r.OrderedSet)(n);var o=this.texts({path:e,direction:"backward"}),s=A(o,1)[0];if(!s)return Object(r.OrderedSet)();var l=A(s,2),u=l[0],c=l[1];return i.hasDescendant(c)?Object(r.OrderedSet)(u.marks):Object(r.OrderedSet)(n)}},{key:"getNodesAtRange",value:function(e){Object(a.a)(!1,"As of slate@0.47, the `getNodesAtRange` method has been renamed to `getDescendantsAtRange`.");var t=this.descendants({range:e}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"isNodeInRange",value:function(e,t){return Object(a.a)(!1,"As of slate@0.47, the `isNodeInRange` method has been renamed to `isInRange`."),this.isInRange(e,t)}},{key:"text",get:function(){return this.getText()}}]),e}(),Vt=function(e){Wt.prototype["assert"+e]=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=this["get"+e].apply(this,[t].concat(r));if(null==o)throw new Error("`Node.assert"+e+"` could not find node with path or key: "+t);return o}},$t=!0,Gt=!1,Kt=void 0;try{for(var Yt,Qt=["Child","Depth","Descendant","Node","Parent","Path"][Symbol.iterator]();!($t=(Yt=Qt.next()).done);$t=!0){Vt(Yt.value)}}catch(e){Gt=!0,Kt=e}finally{try{!$t&&Qt.return&&Qt.return()}finally{if(Gt)throw Kt}}Lt(Wt.prototype,["getBlocksAsArray","getBlocksByTypeAsArray","getDecorations","getFragmentAtRange","getInlinesAsArray","getInlinesByTypeAsArray","getInsertMarksAtRange","getLeafBlocksAtRangeAsArray","getLeafBlocksAtRangeAsArray","getLeafInlinesAtRangeAsArray","getMarksAsArray","getMarksAtPosition","getMarksByTypeAsArray","getNextBlock","getNodesAtRange","getNodesToPathsMap","getOffset","getOffsetAtRange","getOrderedMarksBetweenPositions","getPreviousBlock","getRootBlocksAtRange","getRootInlinesAtRangeAsArray","getTextAtOffset","getTextDirection","getTextsAsArray","getTextsBetweenPathPositionsAsArray"]),At(Wt,[de,re,oe]),At(function(){function e(){x(this,e)}return k(e,[{key:"flip",value:function(){return this.setPoints([this.focus,this.anchor])}},{key:"moveForward",value:function(e){return this.updatePoints((function(t){return t.moveForward(e)}))}},{key:"moveBackward",value:function(e){return this.updatePoints((function(t){return t.moveBackward(e)}))}},{key:"moveAnchorBackward",value:function(e){return this.setAnchor(this.anchor.moveBackward(e))}},{key:"moveAnchorForward",value:function(e){return this.setAnchor(this.anchor.moveForward(e))}},{key:"moveAnchorTo",value:function(e,t){return this.setAnchor(this.anchor.moveTo(e,t))}},{key:"moveAnchorToStartOfNode",value:function(e){return this.setAnchor(this.anchor.moveToStartOfNode(e))}},{key:"moveAnchorToEndOfNode",value:function(e){return this.setAnchor(this.anchor.moveToEndOfNode(e))}},{key:"moveEndBackward",value:function(e){return this.setEnd(this.end.moveBackward(e))}},{key:"moveEndForward",value:function(e){return this.setEnd(this.end.moveForward(e))}},{key:"moveEndTo",value:function(e,t){return this.setEnd(this.end.moveTo(e,t))}},{key:"moveEndToStartOfNode",value:function(e){return this.setEnd(this.end.moveToStartOfNode(e))}},{key:"moveEndToEndOfNode",value:function(e){return this.setEnd(this.end.moveToEndOfNode(e))}},{key:"moveFocusBackward",value:function(e){return this.setFocus(this.focus.moveBackward(e))}},{key:"moveFocusForward",value:function(e){return this.setFocus(this.focus.moveForward(e))}},{key:"moveFocusTo",value:function(e,t){return this.setFocus(this.focus.moveTo(e,t))}},{key:"moveFocusToStartOfNode",value:function(e){return this.setFocus(this.focus.moveToStartOfNode(e))}},{key:"moveFocusToEndOfNode",value:function(e){return this.setFocus(this.focus.moveToEndOfNode(e))}},{key:"moveStartBackward",value:function(e){return this.setStart(this.start.moveBackward(e))}},{key:"moveStartForward",value:function(e){return this.setStart(this.start.moveForward(e))}},{key:"moveStartTo",value:function(e,t){return this.setStart(this.start.moveTo(e,t))}},{key:"moveStartToStartOfNode",value:function(e){return this.setStart(this.start.moveToStartOfNode(e))}},{key:"moveStartToEndOfNode",value:function(e){return this.setStart(this.start.moveToEndOfNode(e))}},{key:"moveTo",value:function(e,t){return this.updatePoints((function(n){return n.moveTo(e,t)}))}},{key:"moveToAnchor",value:function(){return this.setFocus(this.anchor)}},{key:"moveToEnd",value:function(){return this.setStart(this.end)}},{key:"moveToEndOfNode",value:function(e){return this.updatePoints((function(t){return t.moveToEndOfNode(e)}))}},{key:"moveToFocus",value:function(){return this.setAnchor(this.focus)}},{key:"moveToRangeOfNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.setPoints([this.anchor.moveToStartOfNode(e),this.focus.moveToEndOfNode(t)]);return n}},{key:"moveToStart",value:function(){return this.setEnd(this.start)}},{key:"moveToStartOfNode",value:function(e){return this.updatePoints((function(t){return t.moveToStartOfNode(e)}))}},{key:"normalize",value:function(e){return this.updatePoints((function(t){return t.normalize(e)}))}},{key:"setAnchor",value:function(e){return this.set("anchor",e)}},{key:"setEnd",value:function(e){return this.isBackward?this.setAnchor(e):this.setFocus(e)}},{key:"setFocus",value:function(e){return this.set("focus",e)}},{key:"setPoints",value:function(e){var t=A(e,2),n=t[0],r=t[1];return this.set("anchor",n).set("focus",r)}},{key:"updatePoints",value:function(e){var t=this.anchor,n=this.focus;return t=e(t),n=e(n),this.merge({anchor:t,focus:n})}},{key:"setStart",value:function(e){return this.isBackward?this.setFocus(e):this.setAnchor(e)}},{key:"setProperties",value:function(e){var t=e=Z.createProperties(e),n=t.anchor,r=t.focus,i=T(t,["anchor","focus"]);return n&&(i.anchor=q.create(n)),r&&(i.focus=q.create(r)),this.merge(i)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e)};return t}},{key:"toRange",value:function(){var e=Z.createProperties(this);return Z.create(e)}},{key:"unset",value:function(){return this.updatePoints((function(e){return e.unset()}))}},{key:"isCollapsed",get:function(){return this.anchor===this.focus||this.anchor.key===this.focus.key&&this.anchor.offset===this.focus.offset}},{key:"isExpanded",get:function(){return!this.isCollapsed}},{key:"isBackward",get:function(){var e=this.isUnset,t=this.anchor,n=this.focus;return e?null:t.key===n.key?t.offset>n.offset:z.isBefore(n.path,t.path)}},{key:"isForward",get:function(){var e=this.isBackward;return null==e?null:!e}},{key:"isUnset",get:function(){var e=this.anchor,t=this.focus;return e.isUnset||t.isUnset}},{key:"isSet",get:function(){return!this.isUnset}},{key:"start",get:function(){return this.isBackward?this.focus:this.anchor}},{key:"end",get:function(){return this.isBackward?this.anchor:this.focus}}]),e}(),[te,G,Z,Y]);var Xt={Annotation:te,Block:de,Change:xe,Data:H,Decoration:G,Document:re,Editor:kt,Inline:oe,KeyUtils:_,Leaf:Ct,Mark:V,Node:ue,Operation:_e,PathUtils:z,Point:q,Range:Z,resetMemoization:Bt,Selection:Y,Text:le,TextUtils:je,useMemoization:zt,Value:pe};t.default=Xt}.call(this,n(43))},function(e,t,n){"use strict";var r,i=n(4),o=function(){invariant(!1,"ImmutablePropTypes type checking code is stripped in production.")};o.isRequired=o;var a=function(){return o};function s(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":e instanceof i.Iterable?"Immutable."+e.toSource().split(" ")[0]:t}function l(e){function t(t,n,r,i,o,a){for(var s=arguments.length,l=Array(s>6?s-6:0),u=6;u<s;u++)l[u-6]=arguments[u];if(a=a||r,i=i||"<<anonymous>>",null!=n[r])return e.apply(void 0,[n,r,i,o,a].concat(l));var c=o;return t?new Error("Required "+c+" `"+a+"` was not specified in `"+i+"`."):void 0}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function u(e,t){return n="Iterable."+e,r=function(e){return i.Iterable.isIterable(e)&&t(e)},l((function(e,t,i,o,a){var l=e[t];if(!r(l)){var u=s(l);return new Error("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+i+"`, expected `"+n+"`.")}return null}));var n,r}(r={listOf:a,mapOf:a,orderedMapOf:a,setOf:a,orderedSetOf:a,stackOf:a,iterableOf:a,recordOf:a,shape:a,contains:a,mapContains:a,orderedMapContains:a,list:o,map:o,orderedMap:o,set:o,orderedSet:o,stack:o,seq:o,record:o,iterable:o}).iterable.indexed=u("Indexed",i.Iterable.isIndexed),r.iterable.keyed=u("Keyed",i.Iterable.isKeyed),e.exports=r},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n){for(var r,o,a=n||i,s=0,l=e.length,u=!1;s<l;)(o=+a(e[r=s+(l-s>>1)],t))<0?s=r+1:(l=r,u=!o);return u?s:~s}function i(e,t){return e>t?1:e<t?-1:0}function o(e,t){return e.indexOf(t)>=0}function a(e,t,n){var r,i=e.length;if(e[0]<=t)return 0;if(t<=e[i-1])return i-1;if(n>0){for(r=1;r<i;++r)if(e[r]<t)return r-1}else if(n<0){for(r=1;r<i;++r)if(e[r]<=t)return r}else for(r=1;r<i;++r){if(e[r]==t)return r;if(e[r]<t)return e[r-1]-t<t-e[r]?r-1:r}return i-1}function s(e,t,n){for(;t<n;){var r=e[t];e[t]=e[n],e[n]=r,++t,--n}}function l(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i=0;i<r;i++)e[e.length]=n[i]}function u(e,t){var n=e.indexOf(t),r=n>-1;return r&&e.splice(n,1),r}function c(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function d(e,t){var n,r=e.length,i=Array(e.length);for(n=0;n<r;n++)i[n]={index:n,value:e[n]};for(i.sort((function(e,n){return t(e.value,n.value)||e.index-n.index})),n=0;n<e.length;n++)e[n]=i[n].value}function f(e,t,n){var r=t||i;return e.every((function(t,i){if(0===i)return!0;var o=r(e[i-1],t);return!(o>0||n&&0===o)}))}n.d(t,"a",(function(){return r})),n.d(t,"g",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"f",(function(){return a})),n.d(t,"i",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"j",(function(){return d})),n.d(t,"e",(function(){return f}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(294);function i(e,t){if(!e)throw new r.a(t)}},function(e,t,n){"use strict";var r=n(14);t.a={SINGLECLICK:"singleclick",CLICK:r.a.CLICK,DBLCLICK:r.a.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},function(e,t,n){"use strict";t.a={ANIMATING:0,INTERACTING:1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a.a})),n.d(t,"d",(function(){return A})),n.d(t,"e",(function(){return P})),n.d(t,"b",(function(){return M})),n.d(t,"c",(function(){return I})),n.d(t,"f",(function(){return D})),n.d(t,"g",(function(){return L})),n.d(t,"h",(function(){return N}));var r=n(238),i=n(3),o=n(15),a=n(56),s=function(e){this.code_=e.code,this.units_=e.units,this.extent_=void 0!==e.extent?e.extent:null,this.worldExtent_=void 0!==e.worldExtent?e.worldExtent:null,this.axisOrientation_=void 0!==e.axisOrientation?e.axisOrientation:"enu",this.global_=void 0!==e.global&&e.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit};s.prototype.canWrapX=function(){return this.canWrapX_},s.prototype.getCode=function(){return this.code_},s.prototype.getExtent=function(){return this.extent_},s.prototype.getUnits=function(){return this.units_},s.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||a.a[this.units_]},s.prototype.getWorldExtent=function(){return this.worldExtent_},s.prototype.getAxisOrientation=function(){return this.axisOrientation_},s.prototype.isGlobal=function(){return this.global_},s.prototype.setGlobal=function(e){this.global_=e,this.canWrapX_=!(!e||!this.extent_)},s.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},s.prototype.setDefaultTileGrid=function(e){this.defaultTileGrid_=e},s.prototype.setExtent=function(e){this.extent_=e,this.canWrapX_=!(!this.global_||!e)},s.prototype.setWorldExtent=function(e){this.worldExtent_=e},s.prototype.setGetPointResolution=function(e){this.getPointResolutionFunc_=e},s.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_};var l=s,u=6378137*Math.PI,c=[-u,-u,u,u],d=[-180,-85,180,85],f=function(e){function t(t){e.call(this,{code:t,units:a.b.METERS,extent:c,global:!0,worldExtent:d,getPointResolution:function(e,t){return e/Object(o.b)(t[1]/6378137)}})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(l),p=[new f("EPSG:3857"),new f("EPSG:102100"),new f("EPSG:102113"),new f("EPSG:900913"),new f("urn:ogc:def:crs:EPSG:6.18:3:3857"),new f("urn:ogc:def:crs:EPSG::3857"),new f("http://www.opengis.net/gml/srs/epsg.xml#3857")];function h(e,t,n){var r=e.length,i=n>1?n:2,o=t;void 0===o&&(o=i>2?e.slice():new Array(r));for(var a=u,s=0;s<r;s+=i){o[s]=a*e[s]/180;var l=6378137*Math.log(Math.tan(Math.PI*(e[s+1]+90)/360));l>a?l=a:l<-a&&(l=-a),o[s+1]=l}return o}function m(e,t,n){var r=e.length,i=n>1?n:2,o=t;void 0===o&&(o=i>2?e.slice():new Array(r));for(var a=0;a<r;a+=i)o[a]=180*e[a]/u,o[a+1]=360*Math.atan(Math.exp(e[a+1]/6378137))/Math.PI-90;return o}var g=[-180,-90,180,90],v=6378137*Math.PI/180,y=function(e){function t(t,n){e.call(this,{code:t,units:a.b.DEGREES,extent:g,axisOrientation:n,global:!0,metersPerUnit:v,worldExtent:g})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(l),b=[new y("CRS:84"),new y("EPSG:4326","neu"),new y("urn:ogc:def:crs:EPSG::4326","neu"),new y("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new y("urn:ogc:def:crs:OGC:1.3:CRS84"),new y("urn:ogc:def:crs:OGC:2:84"),new y("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new y("urn:x-ogc:def:crs:EPSG:4326","neu")],_={};n(22);var w,x,k,E={};function S(e,t,n){var r=e.getCode(),i=t.getCode();r in E||(E[r]={}),E[r][i]=n}function O(e,t,n){var r;if(void 0!==t){for(var i=0,o=e.length;i<o;++i)t[i]=e[i];r=t}else r=e.slice();return r}function T(e,t,n){if(void 0!==t&&e!==t){for(var r=0,i=e.length;r<i;++r)t[r]=e[r];e=t}return e}function C(e){!function(e,t){_[e]=t}(e.getCode(),e),S(e,e,O)}function A(e){return"string"==typeof e?_[e]||null:e||null}function P(e,t,n,i){var o,s=(e=A(e)).getPointResolutionFunc();if(s)o=s(t,n);else if(e.getUnits()==a.b.DEGREES&&!i||i==a.b.DEGREES)o=t;else{var l=j(e,A("EPSG:4326")),u=[n[0]-t/2,n[1],n[0]+t/2,n[1],n[0],n[1]-t/2,n[0],n[1]+t/2];u=l(u,u,2),o=(Object(r.a)(u.slice(0,2),u.slice(2,4))+Object(r.a)(u.slice(4,6),u.slice(6,8)))/2;var c=i?a.a[i]:e.getMetersPerUnit();void 0!==c&&(o/=c)}return o}function R(e){!function(e){e.forEach(C)}(e),e.forEach((function(t){e.forEach((function(e){t!==e&&S(t,e,O)}))}))}function M(e,t){return e?"string"==typeof e?A(e):e:A(t)}function I(e,t){if(e===t)return!0;var n=e.getUnits()===t.getUnits();return(e.getCode()===t.getCode()||j(e,t)===O)&&n}function j(e,t){var n=function(e,t){var n;return e in E&&t in E[e]&&(n=E[e][t]),n}(e.getCode(),t.getCode());return n||(n=T),n}function D(e,t){return j(A(e),A(t))}function L(e,t,n){return D(t,n)(e,void 0,e.length)}function N(e,t,n){var r=D(t,n);return Object(i.a)(e,r)}R(p),R(b),w=p,x=h,k=m,b.forEach((function(e){w.forEach((function(t){S(e,t,x),S(t,e,k)}))}))},function(e,t,n){"use strict";function r(){return!0}function i(){return!1}function o(){}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o}))},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},function(e,t,n){"use strict";function r(e,t){var n=document.createElement("canvas");return e&&(n.width=e),t&&(n.height=t),n.getContext("2d")}function i(e,t){var n=t.parentNode;n&&n.replaceChild(e,t)}function o(e){return e&&e.parentNode?e.parentNode.removeChild(e):null}function a(e){for(;e.lastChild;)e.removeChild(e.lastChild)}n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return d}));var r=n(6),i=n(113),o=n(295),a=n(50),s=n(22),l=function(e){function t(t,n,r){e.call(this,t),this.key=n,this.oldValue=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(a.a),u=function(e){function t(t){e.call(this),Object(r.c)(this),this.values_={},void 0!==t&&this.setProperties(t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){var t;return this.values_.hasOwnProperty(e)&&(t=this.values_[e]),t},t.prototype.getKeys=function(){return Object.keys(this.values_)},t.prototype.getProperties=function(){return Object(s.a)({},this.values_)},t.prototype.notify=function(e,t){var n;n=d(e),this.dispatchEvent(new l(n,e,t)),n=i.a.PROPERTYCHANGE,this.dispatchEvent(new l(n,e,t))},t.prototype.set=function(e,t,n){if(n)this.values_[e]=t;else{var r=this.values_[e];this.values_[e]=t,r!==t&&this.notify(e,r)}},t.prototype.setProperties=function(e,t){for(var n in e)this.set(n,e[n],t)},t.prototype.unset=function(e,t){if(e in this.values_){var n=this.values_[e];delete this.values_[e],t||this.notify(e,n)}},t}(o.a),c={};function d(e){return c.hasOwnProperty(e)?c[e]:c[e]="change:"+e}t.a=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"h",(function(){return f})),n.d(t,"e",(function(){return p}));n(28);var r=n(27),i=n(31),o=n(41),a=function(e){var t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},s=function(e){return e.target.getTargetElement()===document.activeElement},l=i.b,u=function(e){var t=e.originalEvent;return 0==t.button&&!(o.i&&o.d&&t.ctrlKey)},c=(i.a,function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}),d=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},f=function(e){var t=e.originalEvent.target.tagName;return"INPUT"!==t&&"SELECT"!==t&&"TEXTAREA"!==t},p=function(e){var t=e.pointerEvent;return Object(r.a)(void 0!==t,56),"mouse"==t.pointerType}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"APIError",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Cursor",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"CURSOR_COMPATIBILITY_SYMBOL",{enumerable:!0,get:function(){return i.CURSOR_COMPATIBILITY_SYMBOL}}),Object.defineProperty(t,"EditorialWorkflowError",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"EDITORIAL_WORKFLOW_ERROR",{enumerable:!0,get:function(){return o.EDITORIAL_WORKFLOW_ERROR}}),Object.defineProperty(t,"AccessTokenError",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"localForage",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"isAbsolutePath",{enumerable:!0,get:function(){return l.isAbsolutePath}}),Object.defineProperty(t,"basename",{enumerable:!0,get:function(){return l.basename}}),Object.defineProperty(t,"fileExtensionWithSeparator",{enumerable:!0,get:function(){return l.fileExtensionWithSeparator}}),Object.defineProperty(t,"fileExtension",{enumerable:!0,get:function(){return l.fileExtension}}),Object.defineProperty(t,"onlySuccessfulPromises",{enumerable:!0,get:function(){return u.onlySuccessfulPromises}}),Object.defineProperty(t,"flowAsync",{enumerable:!0,get:function(){return u.flowAsync}}),Object.defineProperty(t,"then",{enumerable:!0,get:function(){return u.then}}),Object.defineProperty(t,"unsentRequest",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"filterByExtension",{enumerable:!0,get:function(){return d.filterByExtension}}),Object.defineProperty(t,"getAllResponses",{enumerable:!0,get:function(){return d.getAllResponses}}),Object.defineProperty(t,"parseLinkHeader",{enumerable:!0,get:function(){return d.parseLinkHeader}}),Object.defineProperty(t,"parseResponse",{enumerable:!0,get:function(){return d.parseResponse}}),Object.defineProperty(t,"responseParser",{enumerable:!0,get:function(){return d.responseParser}}),Object.defineProperty(t,"getPathDepth",{enumerable:!0,get:function(){return d.getPathDepth}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"getBlobSHA",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"asyncLock",{enumerable:!0,get:function(){return h.asyncLock}}),Object.defineProperty(t,"entriesByFiles",{enumerable:!0,get:function(){return m.entriesByFiles}}),Object.defineProperty(t,"entriesByFolder",{enumerable:!0,get:function(){return m.entriesByFolder}}),Object.defineProperty(t,"unpublishedEntries",{enumerable:!0,get:function(){return m.unpublishedEntries}}),Object.defineProperty(t,"getMediaDisplayURL",{enumerable:!0,get:function(){return m.getMediaDisplayURL}}),Object.defineProperty(t,"getMediaAsBlob",{enumerable:!0,get:function(){return m.getMediaAsBlob}}),Object.defineProperty(t,"runWithLock",{enumerable:!0,get:function(){return m.runWithLock}}),Object.defineProperty(t,"blobToFileObj",{enumerable:!0,get:function(){return m.blobToFileObj}}),Object.defineProperty(t,"allEntriesByFolder",{enumerable:!0,get:function(){return m.allEntriesByFolder}}),Object.defineProperty(t,"readFile",{enumerable:!0,get:function(){return g.readFile}}),Object.defineProperty(t,"readFileMetadata",{enumerable:!0,get:function(){return g.readFileMetadata}}),Object.defineProperty(t,"isPreviewContext",{enumerable:!0,get:function(){return g.isPreviewContext}}),Object.defineProperty(t,"getPreviewStatus",{enumerable:!0,get:function(){return g.getPreviewStatus}}),Object.defineProperty(t,"PreviewState",{enumerable:!0,get:function(){return g.PreviewState}}),Object.defineProperty(t,"requestWithBackoff",{enumerable:!0,get:function(){return g.requestWithBackoff}}),Object.defineProperty(t,"throwOnConflictingBranches",{enumerable:!0,get:function(){return g.throwOnConflictingBranches}}),Object.defineProperty(t,"CMS_BRANCH_PREFIX",{enumerable:!0,get:function(){return v.CMS_BRANCH_PREFIX}}),Object.defineProperty(t,"generateContentKey",{enumerable:!0,get:function(){return v.generateContentKey}}),Object.defineProperty(t,"isCMSLabel",{enumerable:!0,get:function(){return v.isCMSLabel}}),Object.defineProperty(t,"labelToStatus",{enumerable:!0,get:function(){return v.labelToStatus}}),Object.defineProperty(t,"statusToLabel",{enumerable:!0,get:function(){return v.statusToLabel}}),Object.defineProperty(t,"DEFAULT_PR_BODY",{enumerable:!0,get:function(){return v.DEFAULT_PR_BODY}}),Object.defineProperty(t,"MERGE_COMMIT_MESSAGE",{enumerable:!0,get:function(){return v.MERGE_COMMIT_MESSAGE}}),Object.defineProperty(t,"parseContentKey",{enumerable:!0,get:function(){return v.parseContentKey}}),Object.defineProperty(t,"branchFromContentKey",{enumerable:!0,get:function(){return v.branchFromContentKey}}),Object.defineProperty(t,"contentKeyFromBranch",{enumerable:!0,get:function(){return v.contentKeyFromBranch}}),Object.defineProperty(t,"createPointerFile",{enumerable:!0,get:function(){return y.createPointerFile}}),Object.defineProperty(t,"getLargeMediaFilteredMediaFiles",{enumerable:!0,get:function(){return y.getLargeMediaFilteredMediaFiles}}),Object.defineProperty(t,"getLargeMediaPatternsFromGitAttributesFile",{enumerable:!0,get:function(){return y.getLargeMediaPatternsFromGitAttributesFile}}),Object.defineProperty(t,"parsePointerFile",{enumerable:!0,get:function(){return y.parsePointerFile}}),Object.defineProperty(t,"getPointerFileForMediaFileObj",{enumerable:!0,get:function(){return y.getPointerFileForMediaFileObj}}),t.NetlifyCmsLibUtil=void 0;var r=w(n(346)),i=_(n(901)),o=_(n(902)),a=w(n(903)),s=w(n(904)),l=n(491),u=n(906),c=w(n(351)),d=n(920),f=w(n(944)),p=w(n(509)),h=n(510),m=n(947),g=n(949),v=n(950),y=n(951);function b(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return b=function(){return e},e}function _(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=b();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function w(e){return e&&e.__esModule?e:{default:e}}const x={APIError:r.default,Cursor:i.default,CURSOR_COMPATIBILITY_SYMBOL:i.CURSOR_COMPATIBILITY_SYMBOL,EditorialWorkflowError:o.default,EDITORIAL_WORKFLOW_ERROR:o.EDITORIAL_WORKFLOW_ERROR,localForage:s.default,basename:l.basename,fileExtensionWithSeparator:l.fileExtensionWithSeparator,fileExtension:l.fileExtension,onlySuccessfulPromises:u.onlySuccessfulPromises,flowAsync:u.flowAsync,then:u.then,unsentRequest:c.default,filterByExtension:d.filterByExtension,parseLinkHeader:d.parseLinkHeader,parseResponse:d.parseResponse,responseParser:d.responseParser,loadScript:f.default,getBlobSHA:p.default,getPathDepth:d.getPathDepth,entriesByFiles:m.entriesByFiles,entriesByFolder:m.entriesByFolder,unpublishedEntries:m.unpublishedEntries,getMediaDisplayURL:m.getMediaDisplayURL,getMediaAsBlob:m.getMediaAsBlob,readFile:g.readFile,readFileMetadata:g.readFileMetadata,CMS_BRANCH_PREFIX:v.CMS_BRANCH_PREFIX,generateContentKey:v.generateContentKey,isCMSLabel:v.isCMSLabel,labelToStatus:v.labelToStatus,statusToLabel:v.statusToLabel,DEFAULT_PR_BODY:v.DEFAULT_PR_BODY,MERGE_COMMIT_MESSAGE:v.MERGE_COMMIT_MESSAGE,isPreviewContext:g.isPreviewContext,getPreviewStatus:g.getPreviewStatus,runWithLock:m.runWithLock,PreviewState:g.PreviewState,parseContentKey:v.parseContentKey,createPointerFile:y.createPointerFile,getLargeMediaFilteredMediaFiles:y.getLargeMediaFilteredMediaFiles,getLargeMediaPatternsFromGitAttributesFile:y.getLargeMediaPatternsFromGitAttributesFile,parsePointerFile:y.parsePointerFile,getPointerFileForMediaFileObj:y.getPointerFileForMediaFileObj,branchFromContentKey:v.branchFromContentKey,contentKeyFromBranch:v.contentKeyFromBranch,blobToFileObj:m.blobToFileObj,requestWithBackoff:g.requestWithBackoff,allEntriesByFolder:m.allEntriesByFolder,AccessTokenError:a.default,throwOnConflictingBranches:g.throwOnConflictingBranches};t.NetlifyCmsLibUtil=x},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(675),i=void 0!==e?e:{},o=Object(r.a)(i),a=(o.flush,o.hydrate,o.cx,o.merge,o.getRegisteredStyles,o.injectGlobal),s=(o.keyframes,o.css);o.sheet,o.caches}).call(this,n(43))},function(e,t,n){"use strict";t.a={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"g",(function(){return o})),n.d(t,"i",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"h",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return f}));var r="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",i=-1!==r.indexOf("firefox"),o=-1!==r.indexOf("safari")&&-1==r.indexOf("chrom"),a=-1!==r.indexOf("webkit")&&-1==r.indexOf("edge"),s=-1!==r.indexOf("macintosh"),l=window.devicePixelRatio||1,u=function(){var e=!1;try{e=!!document.createElement("canvas").getContext("2d").setLineDash}catch(e){}return e}(),c=(navigator,"ontouchstart"in window),d="PointerEvent"in window,f=!!navigator.msPointerEnabled},function(e,t,n){"use strict";
+/*!
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
+ *
+ * Copyright (c) 2014-2017, Jon Schlinkert.
+ * Released under the MIT License.
+ */var r=n(1231);function i(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==i(e)&&("function"==typeof(t=e.constructor)&&(!1!==i(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(1235);e.exports=function(e){if(t=e,t&&t.window===t)return e;var t;var n=r(e);if(i){n.parentWindow.execScript("document._parentWindow = window;","Javascript");var o=n._parentWindow;return n._parentWindow=null,o}return n.defaultView||n.parentWindow};var i=n(1236)},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return E})),n.d(t,"d",(function(){return C})),n.d(t,"e",(function(){return v})),n.d(t,"f",(function(){return j})),n.d(t,"g",(function(){return D})),n.d(t,"h",(function(){return g})),n.d(t,"i",(function(){return k})),n.d(t,"j",(function(){return T})),n.d(t,"k",(function(){return F})),n.d(t,"l",(function(){return B})),n.d(t,"m",(function(){return z})),n.d(t,"n",(function(){return U})),n.d(t,"o",(function(){return L}));var r=n(63),i=n(1),o=n.n(i),a=(n(2),n(93)),s=n(412),l=n(33),u=n(32),c=n(413),d=n.n(c),f=(n(174),n(57)),p=n(127),h=n.n(p),m=function(e){var t=Object(s.a)();return t.displayName=e,t}("Router-History"),g=function(e){var t=Object(s.a)();return t.displayName=e,t}("Router"),v=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(g.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(m.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.a.Component);var y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(a.createMemoryHistory)(t.props),t}return Object(r.a)(t,e),t.prototype.render=function(){return o.a.createElement(v,{history:this.history,children:this.props.children})},t}(o.a.Component);var b=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.a.Component);function _(e){var t=e.message,n=e.when,r=void 0===n||n;return o.a.createElement(g.Consumer,null,(function(e){if(e||Object(l.a)(!1),!r||e.staticContext)return null;var n=e.history.block;return o.a.createElement(b,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var w={},x=0;function k(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(w[e])return w[e];var t=d.a.compile(e);return x<1e4&&(w[e]=t,x++),t}(e)(t,{pretty:!0})}function E(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o.a.createElement(g.Consumer,null,(function(e){e||Object(l.a)(!1);var r=e.history,s=e.staticContext,c=i?r.push:r.replace,d=Object(a.createLocation)(t?"string"==typeof n?k(n,t.params):Object(u.a)({},n,{pathname:k(n.pathname,t.params)}):n);return s?(c(d),null):o.a.createElement(b,{onMount:function(){c(d)},onUpdate:function(e,t){var n=Object(a.createLocation)(t.to);Object(a.locationsAreEqual)(n,Object(u.a)({},d,{key:n.key}))||c(d)},to:n})}))}var S={},O=0;function T(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,l=n.sensitive,u=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=S[n]||(S[n]={});if(r[e])return r[e];var i=[],o={regexp:d()(e,i,t),keys:i};return O<1e4&&(r[e]=o,O++),o}(n,{end:o,strict:s,sensitive:u}),i=r.regexp,a=r.keys,l=i.exec(e);if(!l)return null;var c=l[0],f=l.slice(1),p=e===c;return o&&!p?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var C=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(g.Consumer,null,(function(t){t||Object(l.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?T(n.pathname,e.props):t.match,i=Object(u.a)({},t,{location:n,match:r}),a=e.props,s=a.children,c=a.component,d=a.render;return Array.isArray(s)&&0===s.length&&(s=null),o.a.createElement(g.Provider,{value:i},i.match?s?"function"==typeof s?s(i):s:c?o.a.createElement(c,i):d?d(i):null:"function"==typeof s?s(i):null)}))},t}(o.a.Component);function A(e){return"/"===e.charAt(0)?e:"/"+e}function P(e,t){if(!e)return t;var n=A(e);return 0!==t.pathname.indexOf(n)?t:Object(u.a)({},t,{pathname:t.pathname.substr(n.length)})}function R(e){return"string"==typeof e?e:Object(a.createPath)(e)}function M(e){return function(){Object(l.a)(!1)}}function I(){}var j=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handlePush=function(e){return t.navigateTo(e,"PUSH")},t.handleReplace=function(e){return t.navigateTo(e,"REPLACE")},t.handleListen=function(){return I},t.handleBlock=function(){return I},t}Object(r.a)(t,e);var n=t.prototype;return n.navigateTo=function(e,t){var n=this.props,r=n.basename,i=void 0===r?"":r,o=n.context,s=void 0===o?{}:o;s.action=t,s.location=function(e,t){return e?Object(u.a)({},t,{pathname:A(e)+t.pathname}):t}(i,Object(a.createLocation)(e)),s.url=R(s.location)},n.render=function(){var e=this.props,t=e.basename,n=void 0===t?"":t,r=e.context,i=void 0===r?{}:r,s=e.location,l=void 0===s?"/":s,c=Object(f.a)(e,["basename","context","location"]),d={createHref:function(e){return A(n+R(e))},action:"POP",location:P(n,Object(a.createLocation)(l)),push:this.handlePush,replace:this.handleReplace,go:M(),goBack:M(),goForward:M(),listen:this.handleListen,block:this.handleBlock};return o.a.createElement(v,Object(u.a)({},c,{history:d,staticContext:i}))},t}(o.a.Component);var D=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(g.Consumer,null,(function(t){t||Object(l.a)(!1);var n,r,i=e.props.location||t.location;return o.a.Children.forEach(e.props.children,(function(e){if(null==r&&o.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?T(i.pathname,Object(u.a)({},e.props,{path:a})):t.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.a.Component);function L(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=Object(f.a)(t,["wrappedComponentRef"]);return o.a.createElement(g.Consumer,null,(function(t){return t||Object(l.a)(!1),o.a.createElement(e,Object(u.a)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,h()(n,e)}var N=o.a.useContext;function F(){return N(m)}function B(){return N(g).location}function z(){var e=N(g).match;return e?e.params:{}}function U(e){var t=B(),n=N(g).match;return e?T(t.pathname,e):n}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return p}));var r=n(35),i=n(54),o=n(237),a=n(15),s=function(e){function t(t){e.call(this),t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getActive=function(){return this.get(o.a.ACTIVE)},t.prototype.getMap=function(){return this.map_},t.prototype.handleEvent=function(e){return!0},t.prototype.setActive=function(e){this.set(o.a.ACTIVE,e)},t.prototype.setMap=function(e){this.map_=e},t}(r.a);function l(e,t,n){var r=e.getCenter();if(r){var o=e.constrainCenter([r[0]+t[0],r[1]+t[1]]);n?e.animate({duration:n,easing:i.d,center:o}):e.setCenter(o)}}function u(e,t,n,r){t=e.constrainRotation(t,0),c(e,t,n,r)}function c(e,t,n,r){if(void 0!==t){var o=e.getRotation(),a=e.getCenter();void 0!==o&&a&&r>0?e.animate({rotation:t,anchor:n,duration:r,easing:i.b}):e.rotate(t,n)}}function d(e,t,n,r,i){t=e.constrainResolution(t,0,i),p(e,t,n,r)}function f(e,t,n,r){var i=e.getResolution(),o=e.constrainResolution(i,t,0);if(void 0!==o){var s=e.getResolutions();o=Object(a.a)(o,e.getMinResolution()||s[s.length-1],e.getMaxResolution()||s[0])}if(n&&void 0!==o&&o!==i){var l=e.getCenter(),u=e.calculateCenterZoom(o,n);u=e.constrainCenter(u),n=[(o*l[0]-i*u[0])/(o-i),(o*l[1]-i*u[1])/(o-i)]}p(e,o,n,r)}function p(e,t,n,r){if(t){var o=e.getResolution(),a=e.getCenter();if(void 0!==o&&a&&t!==o&&r)e.animate({resolution:t,anchor:n,duration:r,easing:i.b});else{if(n){var s=e.calculateCenterZoom(t,n);e.setCenter(s)}e.setResolution(t)}}}t.a=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"I18n",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"translate",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"useTranslate",{enumerable:!0,get:function(){return o.default}});var r=a(n(982)),i=a(n(997)),o=a(n(998));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(689)},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=function(e){this.propagationStopped,this.type=e,this.target=null};function i(e){e.stopPropagation()}r.prototype.preventDefault=function(){this.propagationStopped=!0},r.prototype.stopPropagation=function(){this.propagationStopped=!0},t.a=r},function(e,t,n){"use strict";t.a={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",SOURCE:"source"}},function(e,t,n){"use strict";t.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3}},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";function r(e){return Math.pow(e,3)}function i(e){return 1-r(1-e)}function o(e){return 3*e*e-2*e*e*e}function a(e){return e}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a}))},function(e,t,n){"use strict";t.a={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},i={};i[r.DEGREES]=2*Math.PI*6370997/360,i[r.FEET]=.3048,i[r.METERS]=1,i[r.USFEET]=1200/3937,t.b=r},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return u}));var r,i,o="ol-hidden",a="ol-unselectable",s="ol-control",l="ol-collapsed",u=(i={},function(e){if(r||(r=document.createElement("div").style),!(e in i)){r.font=e;var t=r.fontFamily;if(r.font="",!t)return null;i[e]=t.split(/,\s?/)}return i[e]})},function(e,t,n){"use strict";var r=n(220),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];e.exports=function(e,t){var n,a;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===i.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(n=t.styleAliases||null,a={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){a[String(t)]=e}))})),a),-1===o.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t,n){"use strict";var r=n(179);e.exports=function(e,t,n){var i;null!=n||"object"==typeof t&&!Array.isArray(t)||(n=t,t={});i=r({type:String(e)},t),Array.isArray(n)?i.children=n:null!=n&&(i.value=String(n));return i}},function(e,t,n){"use strict";n.r(t),n.d(t,"Provider",(function(){return c})),n.d(t,"connectAdvanced",(function(){return E})),n.d(t,"ReactReduxContext",(function(){return o})),n.d(t,"connect",(function(){return U})),n.d(t,"batch",(function(){return X.unstable_batchedUpdates})),n.d(t,"useDispatch",(function(){return $})),n.d(t,"createDispatchHook",(function(){return V})),n.d(t,"useSelector",(function(){return Q})),n.d(t,"createSelectorHook",(function(){return K})),n.d(t,"useStore",(function(){return W})),n.d(t,"createStoreHook",(function(){return H})),n.d(t,"shallowEqual",(function(){return O}));var r=n(1),i=n.n(r),o=(n(2),i.a.createContext(null));var a=function(e){e()},s={notify:function(){}};function l(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var u=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=s,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=l())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=s)},e}();var c=function(e){var t=e.store,n=e.context,a=e.children,s=Object(r.useMemo)((function(){var e=new u(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),l=Object(r.useMemo)((function(){return t.getState()}),[t]);Object(r.useEffect)((function(){var e=s.subscription;return e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[s,l]);var c=n||o;return i.a.createElement(c.Provider,{value:s},a)},d=n(32),f=n(57),p=n(127),h=n.n(p),m=n(174),g="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,v=[],y=[null,null];function b(e,t){var n=e[1];return[t.payload,n+1]}function _(e,t,n){g((function(){return e.apply(void 0,t)}),n)}function w(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function x(e,t,n,r,i,o,a,s,l,u){if(e){var c=!1,d=null,f=function(){if(!c){var e,n,f=t.getState();try{e=r(f,i.current)}catch(e){n=e,d=e}n||(d=null),e===o.current?a.current||l():(o.current=e,s.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var k=function(){return[null,0]};function E(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,l=n.methodName,c=void 0===l?"connectAdvanced":l,p=n.renderCountProp,g=void 0===p?void 0:p,E=n.shouldHandleStateChanges,S=void 0===E||E,O=n.storeKey,T=void 0===O?"store":O,C=(n.withRef,n.forwardRef),A=void 0!==C&&C,P=n.context,R=void 0===P?o:P,M=Object(f.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),I=R;return function(t){var n=t.displayName||t.name||"Component",o=s(n),a=Object(d.a)({},M,{getDisplayName:s,methodName:c,renderCountProp:g,shouldHandleStateChanges:S,storeKey:T,displayName:o,wrappedComponentName:n,WrappedComponent:t}),l=M.pure;var p=l?r.useMemo:function(e){return e()};function E(n){var o=Object(r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=Object(f.a)(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),s=o[0],l=o[1],c=o[2],h=Object(r.useMemo)((function(){return s&&s.Consumer&&Object(m.isContextConsumer)(i.a.createElement(s.Consumer,null))?s:I}),[s,I]),g=Object(r.useContext)(h),E=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(g)&&Boolean(g.store);var O=E?n.store:g.store,T=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(O)}),[O]),C=Object(r.useMemo)((function(){if(!S)return y;var e=new u(O,E?null:g.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[O,E,g]),A=C[0],P=C[1],R=Object(r.useMemo)((function(){return E?g:Object(d.a)({},g,{subscription:A})}),[E,g,A]),M=Object(r.useReducer)(b,v,k),j=M[0][0],D=M[1];if(j&&j.error)throw j.error;var L=Object(r.useRef)(),N=Object(r.useRef)(c),F=Object(r.useRef)(),B=Object(r.useRef)(!1),z=p((function(){return F.current&&c===N.current?F.current:T(O.getState(),c)}),[O,j,c]);_(w,[N,L,B,c,z,F,P]),_(x,[S,O,A,T,N,L,B,F,P,D],[O,A,T]);var U=Object(r.useMemo)((function(){return i.a.createElement(t,Object(d.a)({},z,{ref:l}))}),[l,t,z]);return Object(r.useMemo)((function(){return S?i.a.createElement(h.Provider,{value:R},U):U}),[h,U,R])}var O=l?i.a.memo(E):E;if(O.WrappedComponent=t,O.displayName=o,A){var C=i.a.forwardRef((function(e,t){return i.a.createElement(O,Object(d.a)({},e,{reactReduxForwardedRef:t}))}));return C.displayName=o,C.WrappedComponent=t,h()(C,t)}return h()(O,t)}}function S(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function O(e,t){if(S(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!S(e[n[i]],t[n[i]]))return!1;return!0}var T=n(200);function C(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function A(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function P(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=A(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=A(i),i=r(t,n)),i},r}}var R=[function(e){return"function"==typeof e?P(e):void 0},function(e){return e?void 0:C((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?C((function(t){return Object(T.bindActionCreators)(e,t)})):void 0}];var M=[function(e){return"function"==typeof e?P(e):void 0},function(e){return e?void 0:C((function(){return{}}))}];function I(e,t,n){return Object(d.a)({},n,{},e,{},t)}var j=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?i&&o(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return I}}];function D(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function L(e,t,n,r,i){var o,a,s,l,u,c=i.areStatesEqual,d=i.areOwnPropsEqual,f=i.areStatePropsEqual,p=!1;function h(i,p){var h,m,g=!d(p,a),v=!c(i,o);return o=i,a=p,g&&v?(s=e(o,a),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):g?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):v?(h=e(o,a),m=!f(h,s),s=h,m&&(u=n(s,l,a)),u):u}return function(i,c){return p?h(i,c):(s=e(o=i,a=c),l=t(r,a),u=n(s,l,a),p=!0,u)}}function N(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=Object(f.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,o),s=r(e,o),l=i(e,o);return(o.pure?L:D)(a,s,l,e,o)}function F(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function B(e,t){return e===t}function z(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?E:n,i=t.mapStateToPropsFactories,o=void 0===i?M:i,a=t.mapDispatchToPropsFactories,s=void 0===a?R:a,l=t.mergePropsFactories,u=void 0===l?j:l,c=t.selectorFactory,p=void 0===c?N:c;return function(e,t,n,i){void 0===i&&(i={});var a=i,l=a.pure,c=void 0===l||l,h=a.areStatesEqual,m=void 0===h?B:h,g=a.areOwnPropsEqual,v=void 0===g?O:g,y=a.areStatePropsEqual,b=void 0===y?O:y,_=a.areMergedPropsEqual,w=void 0===_?O:_,x=Object(f.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),k=F(e,o,"mapStateToProps"),E=F(t,s,"mapDispatchToProps"),S=F(n,u,"mergeProps");return r(p,Object(d.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:k,initMapDispatchToProps:E,initMergeProps:S,pure:c,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:w},x))}}var U=z();function q(){return Object(r.useContext)(o)}function H(e){void 0===e&&(e=o);var t=e===o?q:function(){return Object(r.useContext)(e)};return function(){return t().store}}var W=H();function V(e){void 0===e&&(e=o);var t=e===o?W:H(e);return function(){return t().dispatch}}var $=V(),G=function(e,t){return e===t};function K(e){void 0===e&&(e=o);var t=e===o?q:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=G);var i=t(),o=function(e,t,n,i){var o,a=Object(r.useReducer)((function(e){return e+1}),0)[1],s=Object(r.useMemo)((function(){return new u(n,i)}),[n,i]),l=Object(r.useRef)(),c=Object(r.useRef)(),d=Object(r.useRef)(),f=Object(r.useRef)(),p=n.getState();try{o=e!==c.current||p!==d.current||l.current?e(p):f.current}catch(e){throw l.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),e}return g((function(){c.current=e,d.current=p,f.current=o,l.current=void 0})),g((function(){function e(){try{var e=c.current(n.getState());if(t(e,f.current))return;f.current=e}catch(e){l.current=e}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[n,s]),o}(e,n,i.store,i.subscription);return Object(r.useDebugValue)(o),o}}var Y,Q=K(),X=n(49);Y=X.unstable_batchedUpdates,a=Y},function(e,t,n){"use strict";n.d(t,"b",(function(){return d}));var r=n(6),i=n(3),o=n(298),a=n(40),s=n(78),l=n(22),u=function(e){function t(){e.call(this),this.layout=a.a.XY,this.stride=2,this.flatCoordinates=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.computeExtent=function(e){return Object(i.o)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.getCoordinates=function(){return Object(r.b)()},t.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.getFlatCoordinates=function(){return this.flatCoordinates},t.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},t.prototype.getLayout=function(){return this.layout},t.prototype.getSimplifiedGeometry=function(e){if(this.simplifiedGeometryRevision!=this.getRevision()&&(Object(l.b)(this.simplifiedGeometryCache),this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var t=e.toString();if(this.simplifiedGeometryCache.hasOwnProperty(t))return this.simplifiedGeometryCache[t];var n=this.getSimplifiedGeometryInternal(e);return n.getFlatCoordinates().length<this.flatCoordinates.length?(this.simplifiedGeometryCache[t]=n,n):(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)},t.prototype.getSimplifiedGeometryInternal=function(e){return this},t.prototype.getStride=function(){return this.stride},t.prototype.setFlatCoordinates=function(e,t){this.stride=c(e),this.layout=e,this.flatCoordinates=t},t.prototype.setCoordinates=function(e,t){Object(r.b)()},t.prototype.setLayout=function(e,t,n){var r;if(e)r=c(e);else{for(var i=0;i<n;++i){if(0===t.length)return this.layout=a.a.XY,void(this.stride=2);t=t[0]}e=function(e){var t;2==e?t=a.a.XY:3==e?t=a.a.XYZ:4==e&&(t=a.a.XYZM);return t}(r=t.length)}this.layout=e,this.stride=r},t.prototype.applyTransform=function(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},t.prototype.rotate=function(e,t){var n=this.getFlatCoordinates();if(n){var r=this.getStride();Object(s.a)(n,0,n.length,r,e,t,n),this.changed()}},t.prototype.scale=function(e,t,n){var r=t;void 0===r&&(r=e);var o=n;o||(o=Object(i.x)(this.getExtent()));var a=this.getFlatCoordinates();if(a){var l=this.getStride();Object(s.b)(a,0,a.length,l,e,r,o,a),this.changed()}},t.prototype.translate=function(e,t){var n=this.getFlatCoordinates();if(n){var r=this.getStride();Object(s.d)(n,0,n.length,r,e,t,n),this.changed()}},t}(o.a);function c(e){var t;return e==a.a.XY?t=2:e==a.a.XYZ||e==a.a.XYM?t=3:e==a.a.XYZM&&(t=4),t}function d(e,t,n){var r=e.getFlatCoordinates();if(r){var i=e.getStride();return Object(s.c)(r,0,r.length,i,t,n)}return null}t.a=u},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a={ADD:"add",REMOVE:"remove"}},function(e,t,n){"use strict";var r=n(666),i=n.n(r).a;t.a=i},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return g})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return _}));var i=n(0),o=n(8),a={identify:function(e){return e instanceof Uint8Array},default:!1,tag:"tag:yaml.org,2002:binary",resolve:function(t,n){var r=Object(o.q)(t,n);if("function"==typeof e)return e.from(r,"base64");if("function"==typeof atob){for(var a=atob(r.replace(/[\n\r]/g,"")),s=new Uint8Array(a.length),l=0;l<a.length;++l)s[l]=a.charCodeAt(l);return s}return t.errors.push(new i.v(n,"This environment does not support reading binary tags; either Buffer or atob is required")),null},options:o.i,stringify:function(t,n,r,a){var s,l=t.comment,u=t.type,c=t.value;if("function"==typeof e)s=c instanceof e?c.toString("base64"):e.from(c.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");for(var d="",f=0;f<c.length;++f)d+=String.fromCharCode(c[f]);s=btoa(d)}if(u||(u=o.i.defaultType),u===i.e.QUOTE_DOUBLE)c=s;else{for(var p=o.i.lineWidth,h=Math.ceil(s.length/p),m=new Array(h),g=0,v=0;g<h;++g,v+=p)m[g]=s.substr(v,p);c=m.join(u===i.e.BLOCK_LITERAL?"\n":" ")}return Object(o.j)({comment:l,type:u,value:c},n,r,a)}};function s(e,t){for(var n=Object(o.o)(e,t),r=0;r<n.items.length;++r){var a=n.items[r];if(!(a instanceof o.e)){if(a instanceof o.k){if(a.items.length>1){throw new i.n(t,"Each pair must have its own sequence indicator")}var s=a.items[0]||new o.e;a.commentBefore&&(s.commentBefore=s.commentBefore?"".concat(a.commentBefore,"\n").concat(s.commentBefore):a.commentBefore),a.comment&&(s.comment=s.comment?"".concat(a.comment,"\n").concat(s.comment):a.comment),a=s}n.items[r]=a instanceof o.e?a:new o.e(a)}}return n}function l(e,t,n){var r=new o.g(e);r.tag="tag:yaml.org,2002:pairs";var a,s=Object(i.g)(t);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=void 0,c=void 0;if(Array.isArray(l)){if(2!==l.length)throw new TypeError("Expected [key, value] tuple: ".concat(l));u=l[0],c=l[1]}else if(l&&l instanceof Object){var d=Object.keys(l);if(1!==d.length)throw new TypeError("Expected { key: value } tuple: ".concat(l));c=l[u=d[0]]}else u=l;var f=e.createPair(u,c,n);r.items.push(f)}}catch(e){s.e(e)}finally{s.f()}return r}var u={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:s,createNode:l},c=function(e){Object(i.q)(n,e);var t=Object(i.r)(n);function n(){var e;return Object(i.j)(this,n),e=t.call(this),Object(i.l)(Object(i.w)(e),"add",o.k.prototype.add.bind(Object(i.w)(e))),Object(i.l)(Object(i.w)(e),"delete",o.k.prototype.delete.bind(Object(i.w)(e))),Object(i.l)(Object(i.w)(e),"get",o.k.prototype.get.bind(Object(i.w)(e))),Object(i.l)(Object(i.w)(e),"has",o.k.prototype.has.bind(Object(i.w)(e))),Object(i.l)(Object(i.w)(e),"set",o.k.prototype.set.bind(Object(i.w)(e))),e.tag=n.tag,e}return Object(i.i)(n,[{key:"toJSON",value:function(e,t){var n=new Map;t&&t.onCreate&&t.onCreate(n);var r,a=Object(i.g)(this.items);try{for(a.s();!(r=a.n()).done;){var s=r.value,l=void 0,u=void 0;if(s instanceof o.e?(l=Object(o.w)(s.key,"",t),u=Object(o.w)(s.value,l,t)):l=Object(o.w)(s,"",t),n.has(l))throw new Error("Ordered maps must not include duplicate keys");n.set(l,u)}}catch(e){a.e(e)}finally{a.f()}return n}}]),n}(o.g);Object(i.l)(c,"tag","tag:yaml.org,2002:omap");var d={identify:function(e){return e instanceof Map},nodeClass:c,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){var n,r=s(e,t),a=[],l=Object(i.g)(r.items);try{for(l.s();!(n=l.n()).done;){var u=n.value.key;if(u instanceof o.f){if(a.includes(u.value)){throw new i.n(t,"Ordered maps must not include duplicate keys")}a.push(u.value)}}}catch(e){l.e(e)}finally{l.f()}return Object.assign(new c,r)},createNode:function(e,t,n){var r=l(e,t,n),i=new c;return i.items=r.items,i}},f=function(e){Object(i.q)(n,e);var t=Object(i.r)(n);function n(){var e;return Object(i.j)(this,n),(e=t.call(this)).tag=n.tag,e}return Object(i.i)(n,[{key:"add",value:function(e){var t=e instanceof o.e?e:new o.e(e);Object(o.s)(this.items,t.key)||this.items.push(t)}},{key:"get",value:function(e,t){var n=Object(o.s)(this.items,e);return!t&&n instanceof o.e?n.key instanceof o.f?n.key.value:n.key:n}},{key:"set",value:function(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(Object(i.h)(t)));var n=Object(o.s)(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new o.e(e))}},{key:"toJSON",value:function(e,t){return Object(i.s)(Object(i.t)(n.prototype),"toJSON",this).call(this,e,t,Set)}},{key:"toString",value:function(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return Object(i.s)(Object(i.t)(n.prototype),"toString",this).call(this,e,t,r);throw new Error("Set items must all have null values")}}]),n}(o.k);Object(i.l)(f,"tag","tag:yaml.org,2002:set");var p={identify:function(e){return e instanceof Set},nodeClass:f,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){var n=Object(o.n)(e,t);if(!n.hasAllNullValues())throw new i.n(t,"Set items must all have null values");return Object.assign(new f,n)},createNode:function(e,t,n){var r,o=new f,a=Object(i.g)(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;o.items.push(e.createPair(s,null,n))}}catch(e){a.e(e)}finally{a.f()}return o}},h=function(e,t){var n=t.split(":").reduce((function(e,t){return 60*e+Number(t)}),0);return"-"===e?-n:n},m=function(e){var t=e.value;if(isNaN(t)||!isFinite(t))return Object(o.r)(t);var n="";t<0&&(n="-",t=Math.abs(t));var r=[t%60];return t<60?r.unshift(0):(t=Math.round((t-r[0])/60),r.unshift(t%60),t>=60&&(t=Math.round((t-r[0])/60),r.unshift(t))),n+r.map((function(e){return e<10?"0"+String(e):String(e)})).join(":").replace(/000000\d*$/,"")},g={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(e,t,n){return h(t,n.replace(/_/g,""))},stringify:m},v={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function(e,t,n){return h(t,n.replace(/_/g,""))},stringify:m},y={identify:function(e){return e instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function(e,t,n,r,i,o,a,s,l){s&&(s=(s+"00").substr(1,3));var u=Date.UTC(t,n-1,r,i||0,o||0,a||0,s||0);if(l&&"Z"!==l){var c=h(l[0],l.slice(1));Math.abs(c)<30&&(c*=60),u-=6e4*c}return new Date(u)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function b(e){var t=void 0!==r&&r.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function _(e,t){if(b(!1)){var n=void 0!==r&&r.emitWarning;n?n(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}}var w={};function x(e,t){if(!w[e]&&b(!0)){w[e]=!0;var n="The option '".concat(e,"' will be removed in a future release");_(n+=t?", use '".concat(t,"' instead."):".","DeprecationWarning")}}}).call(this,n(157).Buffer,n(70))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.selectHasMetaPath=t.selectFieldsComments=t.selectViewFilters=t.selectSortDataPath=t.selectSortableFields=t.selectDefaultSortableFields=t.COMMIT_DATE=t.COMMIT_AUTHOR=t.selectEntryCollectionTitle=t.selectInferedField=t.selectIdentifier=t.updateFieldByKey=t.traverseFields=t.selectField=t.getFieldsNames=t.selectTemplateName=t.selectAllowDeletion=t.selectAllowNewEntries=t.selectEntrySlug=t.selectEntryPath=t.selectFileEntryLabel=t.selectFolderEntryExtension=t.selectFields=t.selectMediaFolders=t.selectFieldsWithMediaFolders=void 0;var r=h(n(485)),i=h(n(82)),o=n(4),a=h(n(895)),s=n(160),l=n(486),u=n(487),c=n(328),d=n(104),f=n(166),p=n(271);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(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){v(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}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}const{keyToPathArray:y}=f.stringTemplate,b={[l.FOLDER]:{entryExtension:e=>(e.get("extension")||(0,i.default)(c.formatExtensions,e.get("format")||"frontmatter")).replace(/^\./,""),fields:e=>e.get("fields"),entryPath(e,t){return`${e.get("folder").replace(/\/$/,"")}/${t}.${this.entryExtension(e)}`},entrySlug(e,t){var n;const i=e.get("folder").replace(/\/$/,"");return null===(n=t.split(i+"/").pop())||void 0===n?void 0:n.replace(new RegExp(`\\.${(0,r.default)(this.entryExtension(e))}$`),"")},allowNewEntries:e=>e.get("create"),allowDeletion:e=>e.get("delete",!0),templateName:e=>e.get("name")},[l.FILES]:{fileForEntry(e,t){const n=e.get("files");return n&&n.filter(e=>(null==e?void 0:e.get("name"))===t).get(0)},fields(e,t){const n=this.fileForEntry(e,t);return n&&n.get("fields")},entryPath(e,t){const n=this.fileForEntry(e,t);return n&&n.get("file")},entrySlug(e,t){const n=e.get("files").filter(e=>(null==e?void 0:e.get("file"))===t).get(0);return n&&n.get("name")},entryLabel(e,t){const n=this.fileForEntry(e,t);return n&&n.get("label")},allowNewEntries:()=>!1,allowDeletion:e=>e.get("delete",!1),templateName:(e,t)=>t}},_=e=>e.reduce((e,t)=>{if(t.has("media_folder")&&(e=[...e,t]),t.has("fields")){var n;const r=null===(n=t.get("fields"))||void 0===n?void 0:n.toArray();e=[...e,..._(r)]}else if(t.has("field")){const n=t.get("field");e=[...e,..._([n])]}else if(t.has("types")){var r;const n=null===(r=t.get("types"))||void 0===r?void 0:r.toArray();e=[...e,..._(n)]}return e},[]),w=(e,t)=>{var n;return null===(n=e.get("files"))||void 0===n?void 0:n.toArray().filter(e=>e.get("name")===t)[0]},x=(e,t)=>{if(e.has("folder")){const t=e.get("fields").toArray();return _(t)}if(e.has("files")){var n;const r=(null===(n=w(e,t))||void 0===n?void 0:n.get("fields").toArray())||[];return _(r)}return[]};t.selectFieldsWithMediaFolders=x;t.selectMediaFolders=(e,t,n)=>{const r=x(t,n.get("slug")).map(r=>(0,d.selectMediaFolder)(e.config,t,n,r));if(t.has("files")){w(t,n.get("slug"))&&r.unshift((0,d.selectMediaFolder)(e.config,t,n,void 0))}return t.has("media_folder")&&(t=t.delete("files"),r.unshift((0,d.selectMediaFolder)(e.config,t,n,void 0))),(0,o.Set)(r).toArray()};t.selectFields=(e,t)=>b[e.get("type")].fields(e,t);t.selectFolderEntryExtension=e=>b[l.FOLDER].entryExtension(e);const k=(e,t)=>b[l.FILES].entryLabel(e,t);t.selectFileEntryLabel=k;t.selectEntryPath=(e,t)=>b[e.get("type")].entryPath(e,t);t.selectEntrySlug=(e,t)=>b[e.get("type")].entrySlug(e,t);t.selectAllowNewEntries=e=>b[e.get("type")].allowNewEntries(e);t.selectAllowDeletion=e=>b[e.get("type")].allowDeletion(e);t.selectTemplateName=(e,t)=>b[e.get("type")].templateName(e,t);const E=(e,t="")=>{let n=e.map(e=>`${t}${e.get("name")}`);return e.forEach((e,t)=>{if(e.has("fields")){var r;const i=null===(r=e.get("fields"))||void 0===r?void 0:r.toArray();n=[...n,...E(i,n[t]+".")]}else if(e.has("field")){const r=e.get("field");n=[...n,...E([r],n[t]+".")]}else if(e.has("types")){var i;const r=null===(i=e.get("types"))||void 0===i?void 0:i.toArray();n=[...n,...E(r,n[t]+".")]}}),n};t.getFieldsNames=E;const S=(e,t)=>{const n=y(t);let r,i,a=e.get("fields",(0,o.List)()).toArray();for(;(r=n.shift())&&a;){var s,l,u,c,d;if(i=a.find(e=>e.get("name")===r),null===(s=i)||void 0===s?void 0:s.has("fields"))a=null===(c=i)||void 0===c||null===(d=c.get("fields"))||void 0===d?void 0:d.toArray();else if(null===(l=i)||void 0===l?void 0:l.has("field")){var f;a=[null===(f=i)||void 0===f?void 0:f.get("field")]}else if(null===(u=i)||void 0===u?void 0:u.has("types")){var p,h;a=null===(p=i)||void 0===p||null===(h=p.get("types"))||void 0===h?void 0:h.toArray()}}return i};t.selectField=S;const O=(e,t,n=(()=>!1))=>n()?e:e=e.map(e=>{const r=t(e);return n()?r:r.has("fields")?r.set("fields",O(r.get("fields"),t,n)):r.has("field")?r.set("field",O((0,o.List)([r.get("field")]),t,n).get(0)):r.has("types")?r.set("types",O(r.get("types"),t,n)):r}).toList();t.traverseFields=O;t.updateFieldByKey=(e,t,n)=>{const r=S(e,t);if(!r)return e;let i=!1;return e=e.set("fields",O(e.get("fields",(0,o.List)()),e=>{const t=e;return t===r?(i=!0,n(t)):t},()=>i))};const T=e=>{const t=e.get("identifier_field"),n=t?[t,...u.IDENTIFIER_FIELDS]:u.IDENTIFIER_FIELDS,r=E(e.get("fields",(0,o.List)()).toArray());return n.find(e=>r.find(t=>(null==t?void 0:t.toLowerCase().trim())===e.toLowerCase().trim()))};t.selectIdentifier=T;const C=(e,t)=>{if("title"===t&&e.get("identifier_field"))return T(e);const n=u.INFERABLE_FIELDS[t],r=e.get("fields");let i;if(!r||!n)return null;const o=r.filter(e=>(null==e?void 0:e.get("widget","string"))===n.type).map(e=>null==e?void 0:e.get("name"));if(i=o.filter(e=>-1!==n.synonyms.indexOf(e)),i&&i.size>0)return i.first();return i=r.filter(e=>-1!==n.secondaryTypes.indexOf(null==e?void 0:e.get("widget","string"))).map(e=>null==e?void 0:e.get("name")).filter(e=>-1!==n.synonyms.indexOf(e)),i&&i.size>0?i.first():n.fallbackToFirstField&&o.size>0?o.first():(n.showError&&(0,a.default)(`The Field ${t} is missing for the collection “${e.get("name")}”`,`Netlify CMS tries to infer the entry ${t} automatically, but one couldn't be found for entries of the collection “${e.get("name")}”. Please check your site configuration.`),null)};t.selectInferedField=C;t.selectEntryCollectionTitle=(e,t)=>{const n=e.get("summary");if(n)return(0,p.summaryFormatter)(n,t,e);if(e.get("type")==l.FILES){const n=k(e,t.get("slug"));if(n)return n}const r=t.get("data"),i=C(e,"title");return i&&r.getIn(y(i))};t.COMMIT_AUTHOR="commit_author";t.COMMIT_DATE="commit_date";t.selectDefaultSortableFields=(e,t)=>{let n=u.SORTABLE_FIELDS.map(n=>{const r=C(e,n);return t.isGitBackend()&&"author"===n&&!r?"commit_author":r}).filter(Boolean);return t.isGitBackend()&&(n=["commit_date",...n]),n};t.selectSortableFields=(e,t)=>e.get("sortableFields").toArray().map(n=>{if("commit_date"===n)return{key:n,field:{name:n,label:t("collection.defaultFields.updatedOn.label")}};const r=S(e,n);return"commit_author"!==n||r?{key:n,field:null==r?void 0:r.toJS()}:{key:n,field:{name:n,label:t("collection.defaultFields.author.label")}}}).filter(e=>!!e.field).map(e=>g(g({},e.field),{},{key:e.key}));t.selectSortDataPath=(e,t)=>"commit_date"===t?"updatedOn":"commit_author"!==t||S(e,t)?"data."+t:"author";t.selectViewFilters=e=>e.get("view_filters").toJS();t.selectFieldsComments=(e,t)=>{let n=[];if(e.has("folder"))n=e.get("fields").toArray();else if(e.has("files")){n=e.get("files").find(e=>(null==e?void 0:e.get("name"))===t.get("slug")).get("fields").toArray()}const r={};return E(n).forEach(t=>{const n=S(e,t);(null==n?void 0:n.has("comment"))&&(r[t]=n.get("comment"))}),r};t.selectHasMetaPath=e=>{var t;return e.has("folder")&&e.get("type")===l.FOLDER&&e.has("meta")&&(null===(t=e.get("meta"))||void 0===t?void 0:t.has("path"))};var A=(e=null,t)=>{switch(t.type){case s.CONFIG_SUCCESS:return(t.payload?t.payload.get("collections"):(0,o.List)()).toOrderedMap().map(e=>{const t=e;return t.has("folder")?t.set("type",l.FOLDER):t.has("files")?t.set("type",l.FILES):void 0}).mapKeys((e,t)=>t.get("name"));default:return e}};t.default=A},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(28),i=n(47),o=n(22),a=function(e){function t(t){var n=t||{};e.call(this,n),n.handleDownEvent&&(this.handleDownEvent=n.handleDownEvent),n.handleDragEvent&&(this.handleDragEvent=n.handleDragEvent),n.handleMoveEvent&&(this.handleMoveEvent=n.handleMoveEvent),n.handleUpEvent&&(this.handleUpEvent=n.handleUpEvent),n.stopDown&&(this.stopDown=n.stopDown),this.handlingDownUpSequence=!1,this.trackedPointers_={},this.targetPointers=[]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.handleDownEvent=function(e){return!1},t.prototype.handleDragEvent=function(e){},t.prototype.handleEvent=function(e){if(!e.pointerEvent)return!0;var t=!1;if(this.updateTrackedPointers_(e),this.handlingDownUpSequence){if(e.type==r.a.POINTERDRAG)this.handleDragEvent(e);else if(e.type==r.a.POINTERUP){var n=this.handleUpEvent(e);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(e.type==r.a.POINTERDOWN){var i=this.handleDownEvent(e);i&&e.preventDefault(),this.handlingDownUpSequence=i,t=this.stopDown(i)}else e.type==r.a.POINTERMOVE&&this.handleMoveEvent(e);return!t},t.prototype.handleMoveEvent=function(e){},t.prototype.handleUpEvent=function(e){return!1},t.prototype.stopDown=function(e){return e},t.prototype.updateTrackedPointers_=function(e){if(function(e){var t=e.type;return t===r.a.POINTERDOWN||t===r.a.POINTERDRAG||t===r.a.POINTERUP}(e)){var t=e.pointerEvent,n=t.pointerId.toString();e.type==r.a.POINTERUP?delete this.trackedPointers_[n]:(e.type==r.a.POINTERDOWN||n in this.trackedPointers_)&&(this.trackedPointers_[n]=t),this.targetPointers=Object(o.c)(this.trackedPointers_)}},t}(i.a);function s(e){for(var t=e.length,n=0,r=0,i=0;i<t;i++)n+=e[i].clientX,r+=e[i].clientY;return[n/t,r/t]}t.b=a},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,d=-1;function f(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&p())}function p(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";e.exports=function(e,t){var n,i=t.children||[],o=i.length,a=[],s=-1;for(;++s<o;)(n=r(e,i[s],t))&&(a=a.concat(n));return a};var r=n(638)},function(e,t,n){"use strict";function r(e,t,n,r){for(var i=0,o=n.length;i<o;++i)e[t++]=n[i];return t}function i(e,t,n,r){for(var i=0,o=n.length;i<o;++i)for(var a=n[i],s=0;s<r;++s)e[t++]=a[s];return t}function o(e,t,n,r,o){for(var a=o||[],s=0,l=0,u=n.length;l<u;++l){var c=i(e,t,n[l],r);a[s++]=c,t=c}return a.length=s,a}function a(e,t,n,r,i){for(var a=i||[],s=0,l=0,u=n.length;l<u;++l){var c=o(e,t,n[l],r,a[s]);a[s++]=c,t=c[c.length-1]}return a.length=s,a}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a}))},function(e,t,n){"use strict";function r(e,t,n,r,i){for(var o=void 0!==i?i:[],a=0,s=t;s<n;s+=r)o[a++]=e.slice(s,s+r);return o.length=a,o}function i(e,t,n,i,o){for(var a=void 0!==o?o:[],s=0,l=0,u=n.length;l<u;++l){var c=n[l];a[s++]=r(e,t,c,i,a[s]),t=c}return a.length=s,a}function o(e,t,n,r,o){for(var a=void 0!==o?o:[],s=0,l=0,u=n.length;l<u;++l){var c=n[l];a[s++]=i(e,t,c,r,a[s]),t=c[c.length-1]}return a.length=s,a}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}))},function(e,t,n){"use strict";var r=n(294),i=n(64),o=n(35),a=n(50),s="length",l=function(e){function t(t,n){e.call(this,t),this.element=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(a.a),u=function(e){function t(t,n){e.call(this);var r=n||{};if(this.unique_=!!r.unique,this.array_=t||[],this.unique_)for(var i=0,o=this.array_.length;i<o;++i)this.assertUnique_(this.array_[i],i);this.updateLength_()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},t.prototype.extend=function(e){for(var t=0,n=e.length;t<n;++t)this.push(e[t]);return this},t.prototype.forEach=function(e){for(var t=this.array_,n=0,r=t.length;n<r;++n)e(t[n],n,t)},t.prototype.getArray=function(){return this.array_},t.prototype.item=function(e){return this.array_[e]},t.prototype.getLength=function(){return this.get(s)},t.prototype.insertAt=function(e,t){this.unique_&&this.assertUnique_(t),this.array_.splice(e,0,t),this.updateLength_(),this.dispatchEvent(new l(i.a.ADD,t))},t.prototype.pop=function(){return this.removeAt(this.getLength()-1)},t.prototype.push=function(e){this.unique_&&this.assertUnique_(e);var t=this.getLength();return this.insertAt(t,e),this.getLength()},t.prototype.remove=function(e){for(var t=this.array_,n=0,r=t.length;n<r;++n)if(t[n]===e)return this.removeAt(n)},t.prototype.removeAt=function(e){var t=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new l(i.a.REMOVE,t)),t},t.prototype.setAt=function(e,t){var n=this.getLength();if(e<n){this.unique_&&this.assertUnique_(t,e);var r=this.array_[e];this.array_[e]=t,this.dispatchEvent(new l(i.a.REMOVE,r)),this.dispatchEvent(new l(i.a.ADD,t))}else{for(var o=n;o<e;++o)this.insertAt(o,void 0);this.insertAt(e,t)}},t.prototype.updateLength_=function(){this.set(s,this.array_.length)},t.prototype.assertUnique_=function(e,t){for(var n=0,i=this.array_.length;n<i;++n)if(this.array_[n]===e&&n!==t)throw new r.a(58)},t}(o.a);t.a=u},function(e,t,n){var r=n(429),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c}));var r=n(15);function i(e,t,n,i,o,a,s){var l,u=e[t],c=e[t+1],d=e[n]-u,f=e[n+1]-c;if(0===d&&0===f)l=t;else{var p=((o-u)*d+(a-c)*f)/(d*d+f*f);if(p>1)l=n;else{if(p>0){for(var h=0;h<i;++h)s[h]=Object(r.c)(e[t+h],e[n+h],p);return void(s.length=i)}l=t}}for(var m=0;m<i;++m)s[m]=e[l+m];s.length=i}function o(e,t,n,i,o){var a=e[t],s=e[t+1];for(t+=i;t<n;t+=i){var l=e[t],u=e[t+1],c=Object(r.f)(a,s,l,u);c>o&&(o=c),a=l,s=u}return o}function a(e,t,n,r,i){for(var a=0,s=n.length;a<s;++a){var l=n[a];i=o(e,t,l,r,i),t=l}return i}function s(e,t,n,r,i){for(var o=0,s=n.length;o<s;++o){var l=n[o];i=a(e,t,l,r,i),t=l[l.length-1]}return i}function l(e,t,n,o,a,s,l,u,c,d,f){if(t==n)return d;var p,h;if(0===a){if((h=Object(r.f)(l,u,e[t],e[t+1]))<d){for(p=0;p<o;++p)c[p]=e[t+p];return c.length=o,h}return d}for(var m=f||[NaN,NaN],g=t+o;g<n;)if(i(e,g-o,g,o,l,u,m),(h=Object(r.f)(l,u,m[0],m[1]))<d){for(d=h,p=0;p<o;++p)c[p]=m[p];c.length=o,g+=o}else g+=o*Math.max((Math.sqrt(h)-Math.sqrt(d))/a|0,1);if(s&&(i(e,n-o,t,o,l,u,m),(h=Object(r.f)(l,u,m[0],m[1]))<d)){for(d=h,p=0;p<o;++p)c[p]=m[p];c.length=o}return d}function u(e,t,n,r,i,o,a,s,u,c,d){for(var f=d||[NaN,NaN],p=0,h=n.length;p<h;++p){var m=n[p];c=l(e,t,m,r,i,o,a,s,u,c,f),t=m}return c}function c(e,t,n,r,i,o,a,s,l,c,d){for(var f=d||[NaN,NaN],p=0,h=n.length;p<h;++p){var m=n[p];c=u(e,t,m,r,i,o,a,s,l,c,f),t=m[m.length-1]}return c}},function(e,t,n){"use strict";function r(e,t,n,r,i,o){for(var a=o||[],s=0,l=t;l<n;l+=r){var u=e[l],c=e[l+1];a[s++]=i[0]*u+i[2]*c+i[4],a[s++]=i[1]*u+i[3]*c+i[5]}return o&&a.length!=s&&(a.length=s),a}function i(e,t,n,r,i,o,a){for(var s=a||[],l=Math.cos(i),u=Math.sin(i),c=o[0],d=o[1],f=0,p=t;p<n;p+=r){var h=e[p]-c,m=e[p+1]-d;s[f++]=c+h*l-m*u,s[f++]=d+h*u+m*l;for(var g=p+2;g<p+r;++g)s[f++]=e[g]}return a&&s.length!=f&&(s.length=f),s}function o(e,t,n,r,i,o,a,s){for(var l=s||[],u=a[0],c=a[1],d=0,f=t;f<n;f+=r){var p=e[f]-u,h=e[f+1]-c;l[d++]=u+i*p,l[d++]=c+o*h;for(var m=f+2;m<f+r;++m)l[d++]=e[m]}return s&&l.length!=d&&(l.length=d),l}function a(e,t,n,r,i,o,a){for(var s=a||[],l=0,u=t;u<n;u+=r){s[l++]=e[u]+i,s[l++]=e[u+1]+o;for(var c=u+2;c<u+r;++c)s[l++]=e[c]}return a&&s.length!=l&&(s.length=l),s}n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s}));n(15);function r(e,t){return e[0]+=t[0],e[1]+=t[1],e}function i(e,t){for(var n=!0,r=e.length-1;r>=0;--r)if(e[r]!=t[r]){n=!1;break}return n}function o(e,t){var n=Math.cos(t),r=Math.sin(t),i=e[0]*n-e[1]*r,o=e[1]*n+e[0]*r;return e[0]=i,e[1]=o,e}function a(e,t){return e[0]*=t,e[1]*=t,e}function s(e,t){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}},function(e,t,n){"use strict";n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return x})),n.d(t,"d",(function(){return k}));var r=n(26),i=n(3),o=n(40),a=n(10),s=n(62),l=n(202),u=n(77),c=n(72),d=n(73),f=n(96),p=function(e){function t(t,n){e.call(this),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===n||Array.isArray(t[0])?this.setCoordinates(t,n):this.setFlatCoordinates(n,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout)},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(i.e)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(u.e)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(u.d)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.getArea=function(){return Object(l.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getCoordinates=function(){return Object(d.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[];return n.length=Object(f.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new t(n,o.a.XY)},t.prototype.getType=function(){return a.a.LINEAR_RING},t.prototype.intersectsExtent=function(e){return!1},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(c.b)(this.flatCoordinates,0,e,this.stride),this.changed()},t}(s.a),h=n(114),m=(n(238),n(98)),g=n(297),v=n(145),y=n(150),b=n(15),_=function(e){function t(t,n,r){e.call(this),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==n&&r?(this.setFlatCoordinates(n,t),this.ends_=r):this.setCoordinates(t,n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.appendLinearRing=function(e){this.flatCoordinates?Object(r.c)(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout,this.ends_.slice())},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(i.e)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(u.a)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(u.b)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.containsXY=function(e,t){return Object(m.c)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,t)},t.prototype.getArea=function(){return Object(l.b)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},t.prototype.getCoordinates=function(e){var t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),Object(y.c)(t,0,this.ends_,this.stride,e)):t=this.flatCoordinates,Object(d.b)(t,0,this.ends_,this.stride)},t.prototype.getEnds=function(){return this.ends_},t.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var e=Object(i.x)(this.getExtent());this.flatInteriorPoint_=Object(g.a)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},t.prototype.getInteriorPoint=function(){return new h.a(this.getFlatInteriorPoint(),o.a.XYM)},t.prototype.getLinearRingCount=function(){return this.ends_.length},t.prototype.getLinearRing=function(e){return e<0||this.ends_.length<=e?null:new p(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)},t.prototype.getLinearRings=function(){for(var e=this.layout,t=this.flatCoordinates,n=this.ends_,r=[],i=0,o=0,a=n.length;o<a;++o){var s=n[o],l=new p(t.slice(i,s),e);r.push(l),i=s}return r},t.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;Object(y.a)(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=Object(y.c)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=Object(f.c)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(e),n,0,r),new t(n,o.a.XY,r)},t.prototype.getType=function(){return a.a.POLYGON},t.prototype.intersectsExtent=function(e){return Object(v.c)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(c.c)(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},t}(s.a);t.a=_;function w(e){var t=e[0],n=e[1],r=e[2],i=e[3],a=[t,n,t,i,r,i,r,n,t,n];return new _(a,o.a.XY,[a.length])}function x(e,t,n){for(var r=t||32,i=e.getStride(),o=e.getLayout(),a=e.getCenter(),s=i*(r+1),l=new Array(s),u=0;u<s;u+=i){l[u]=0,l[u+1]=0;for(var c=2;c<i;c++)l[u+c]=a[c]}var d=[l.length],f=new _(l,o,d);return k(f,a,e.getRadius(),n),f}function k(e,t,n,r){for(var i=e.getFlatCoordinates(),o=e.getStride(),a=i.length/o-1,s=r||0,l=0;l<=a;++l){var u=l*o,c=s+2*Object(b.d)(l,a)*Math.PI/a;i[u]=t[0]+n*Math.cos(c),i[u+1]=t[1]+n*Math.sin(c)}e.changed()}},function(e,t,n){"use strict";(function(r){function i(e){return(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})(e)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":i(console))&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(1234)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n(70))},function(e,t,n){var r=n(210);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){"use strict";
+/*!
+ * repeat-string <https://github.com/jonschlinkert/repeat-string>
+ *
+ * Copyright (c) 2014-2015, Jon Schlinkert.
+ * Licensed under the MIT License.
+ */var r,i="";e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;if(r!==e||void 0===r)r=e,i="";else if(i.length>=n)return i.substr(0,n);for(;n>i.length&&t>1;)1&t&&(i+=e),t>>=1,e+=e;return i=(i+=e).substr(0,n)}},function(e,t,n){"use strict";e.exports=function(e,t){var n,o,a=t.children||[],s=a.length,l=[],u=-1;for(;++u<s;)(n=i(e,a[u],t))&&(u&&"break"===a[u-1].type&&(n.value&&(n.value=r.left(n.value)),(o=n.children&&n.children[0])&&o.value&&(o.value=r.left(o.value))),l=l.concat(n));return l};var r=n(171),i=n(612)},function(e,t,n){"use strict";t.a={IMAGE:"IMAGE",TILE:"TILE",VECTOR_TILE:"VECTOR_TILE",VECTOR:"VECTOR"}},function(e,t,n){"use strict";t.a={POSTCOMPOSE:"postcompose",PRECOMPOSE:"precompose",RENDER:"render",RENDERCOMPLETE:"rendercomplete"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(97);function i(e){return Array.isArray(e)?Object(r.b)(e):e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r=.5,i=!0},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,i="/"===a.charAt(0))}return(i?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},t.normalize=function(e){var o=t.isAbsolute(e),a="/"===i(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!o).join("/"))||o||(e="."),e&&a&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l<a;l++)if(i[l]!==o[l]){s=l;break}var u=[];for(l=s;l<i.length;l++)u.push("..");return(u=u.concat(o.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(70))},function(e,t,n){"use strict";e.exports=function(e){return i.test("number"==typeof e?r(e):e.charAt(0))};var r=String.fromCharCode,i=/\s/},function(e,t,n){"use strict";function r(e){return e[0]>0&&e[1]>0}function i(e,t,n){return void 0===n&&(n=[0,0]),n[0]=e[0]*t+.5|0,n[1]=e[1]*t+.5|0,n}function o(e,t){return Array.isArray(e)?e:(void 0===t?t=[e,e]:t[0]=t[1]=e,t)}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,r=void 0,u=Array.isArray(e),c=[e],d=-1,f=[],p=void 0,h=void 0,m=void 0,g=[],v=[],y=e;do{var b=++d===c.length,_=b&&0!==f.length;if(b){if(h=0===v.length?void 0:g[g.length-1],p=m,m=v.pop(),_){if(u)p=p.slice();else{for(var w={},x=0,k=Object.keys(p);x<k.length;x++){var E=k[x];w[E]=p[E]}p=w}for(var S=0,O=0;O<f.length;O++){var T=f[O][0],C=f[O][1];u&&(T-=S),u&&null===C?(p.splice(T,1),S++):p[T]=C}}d=r.index,c=r.keys,f=r.edits,u=r.inArray,r=r.prev}else{if(h=m?u?d:c[d]:void 0,null==(p=m?m[h]:y))continue;m&&g.push(h)}var A=void 0;if(!Array.isArray(p)){if(!s(p))throw new Error("Invalid AST Node: "+(0,i.default)(p));var P=l(t,p.kind,b);if(P){if((A=P.call(t,p,h,m,g,v))===a)break;if(!1===A){if(!b){g.pop();continue}}else if(void 0!==A&&(f.push([h,A]),!b)){if(!s(A)){g.pop();continue}p=A}}}void 0===A&&_&&f.push([h,p]),b?g.pop():(r={inArray:u,index:d,keys:c,edits:f,prev:r},u=Array.isArray(p),c=u?p:n[p.kind]||[],d=-1,f=[],m&&v.push(m),m=p)}while(void 0!==r);0!==f.length&&(y=f[f.length-1][1]);return y},t.visitInParallel=function(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(!t[r]){var i=l(e[r],n.kind,!1);if(i){var o=i.apply(e[r],arguments);if(!1===o)t[r]=n;else if(o===a)t[r]=a;else if(void 0!==o)return o}}},leave:function(n){for(var r=0;r<e.length;r++)if(t[r])t[r]===n&&(t[r]=null);else{var i=l(e[r],n.kind,!0);if(i){var o=i.apply(e[r],arguments);if(o===a)t[r]=a;else if(void 0!==o&&!1!==o)return o}}}}},t.visitWithTypeInfo=function(e,t){return{enter:function(n){e.enter(n);var r=l(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),s(i)&&e.enter(i)),i}},leave:function(n){var r,i=l(t,n.kind,!0);return i&&(r=i.apply(t,arguments)),e.leave(n),r}}},t.getVisitFn=l,t.BREAK=t.QueryDocumentKeys=void 0;var r,i=(r=n(567))&&r.__esModule?r:{default:r};var o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=o;var a=Object.freeze({});function s(e){return Boolean(e&&"string"==typeof e.kind)}function l(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}t.BREAK=a},function(e,t,n){"use strict";n.r(t),n.d(t,"createBrowserHistory",(function(){return x})),n.d(t,"createHashHistory",(function(){return T})),n.d(t,"createMemoryHistory",(function(){return A})),n.d(t,"createLocation",(function(){return g})),n.d(t,"locationsAreEqual",(function(){return v})),n.d(t,"parsePath",(function(){return h})),n.d(t,"createPath",(function(){return m}));var r=n(32);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&i(e),l=t&&i(t),u=s||l;if(e&&i(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var c=a[a.length-1];n="."===c||".."===c||""===c}else n=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?o(a,f):".."===p?(o(a,f),d++):d&&(o(a,f),d--)}if(!u)for(;d--;d)a.unshift("..");!u||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},u=n(33);function c(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function m(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function g(e,t,n,i){var o;"string"==typeof e?(o=h(e)).state=t:(void 0===(o=Object(r.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function v(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var b=!("undefined"==typeof window||!window.document||!window.document.createElement);function _(e,t){t(window.confirm(e))}function w(){try{return window.history.state||{}}catch(e){return{}}}function x(e){void 0===e&&(e={}),b||Object(u.a)(!1);var t,n=window.history,i=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,s=a.forceRefresh,l=void 0!==s&&s,d=a.getUserConfirmation,h=void 0===d?_:d,v=a.keyLength,x=void 0===v?6:v,k=e.basename?p(c(e.basename)):"";function E(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return k&&(o=f(o,k)),g(o,r,n)}function S(){return Math.random().toString(36).substr(2,x)}var O=y();function T(e){Object(r.a)(B,e),B.length=n.length,O.notifyListeners(B.location,B.action)}function C(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||R(E(e.state))}function A(){R(E(w()))}var P=!1;function R(e){if(P)P=!1,T();else{O.confirmTransitionTo(e,"POP",h,(function(t){t?T({action:"POP",location:e}):function(e){var t=B.location,n=I.indexOf(t.key);-1===n&&(n=0);var r=I.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(P=!0,D(i))}(e)}))}}var M=E(w()),I=[M.key];function j(e){return k+m(e)}function D(e){n.go(e)}var L=0;function N(e){1===(L+=e)&&1===e?(window.addEventListener("popstate",C),o&&window.addEventListener("hashchange",A)):0===L&&(window.removeEventListener("popstate",C),o&&window.removeEventListener("hashchange",A))}var F=!1;var B={length:n.length,action:"POP",location:M,createHref:j,push:function(e,t){var r=g(e,t,S(),B.location);O.confirmTransitionTo(r,"PUSH",h,(function(e){if(e){var t=j(r),o=r.key,a=r.state;if(i)if(n.pushState({key:o,state:a},null,t),l)window.location.href=t;else{var s=I.indexOf(B.location.key),u=I.slice(0,s+1);u.push(r.key),I=u,T({action:"PUSH",location:r})}else window.location.href=t}}))},replace:function(e,t){var r=g(e,t,S(),B.location);O.confirmTransitionTo(r,"REPLACE",h,(function(e){if(e){var t=j(r),o=r.key,a=r.state;if(i)if(n.replaceState({key:o,state:a},null,t),l)window.location.replace(t);else{var s=I.indexOf(B.location.key);-1!==s&&(I[s]=r.key),T({action:"REPLACE",location:r})}else window.location.replace(t)}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=O.setPrompt(e);return F||(N(1),F=!0),function(){return F&&(F=!1,N(-1)),t()}},listen:function(e){var t=O.appendListener(e);return N(1),function(){N(-1),t()}}};return B}var k={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:c},slash:{encodePath:c,decodePath:c}};function E(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function S(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function O(e){window.location.replace(E(window.location.href)+"#"+e)}function T(e){void 0===e&&(e={}),b||Object(u.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),i=n.getUserConfirmation,o=void 0===i?_:i,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?p(c(e.basename)):"",d=k[s],h=d.encodePath,v=d.decodePath;function w(){var e=v(S());return l&&(e=f(e,l)),g(e)}var x=y();function T(e){Object(r.a)(B,e),B.length=t.length,x.notifyListeners(B.location,B.action)}var C=!1,A=null;function P(){var e,t,n=S(),r=h(n);if(n!==r)O(r);else{var i=w(),a=B.location;if(!C&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===m(i))return;A=null,function(e){if(C)C=!1,T();else{x.confirmTransitionTo(e,"POP",o,(function(t){t?T({action:"POP",location:e}):function(e){var t=B.location,n=j.lastIndexOf(m(t));-1===n&&(n=0);var r=j.lastIndexOf(m(e));-1===r&&(r=0);var i=n-r;i&&(C=!0,D(i))}(e)}))}}(i)}}var R=S(),M=h(R);R!==M&&O(M);var I=w(),j=[m(I)];function D(e){t.go(e)}var L=0;function N(e){1===(L+=e)&&1===e?window.addEventListener("hashchange",P):0===L&&window.removeEventListener("hashchange",P)}var F=!1;var B={length:t.length,action:"POP",location:I,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=E(window.location.href)),n+"#"+h(l+m(e))},push:function(e,t){var n=g(e,void 0,void 0,B.location);x.confirmTransitionTo(n,"PUSH",o,(function(e){if(e){var t=m(n),r=h(l+t);if(S()!==r){A=t,function(e){window.location.hash=e}(r);var i=j.lastIndexOf(m(B.location)),o=j.slice(0,i+1);o.push(t),j=o,T({action:"PUSH",location:n})}else T()}}))},replace:function(e,t){var n=g(e,void 0,void 0,B.location);x.confirmTransitionTo(n,"REPLACE",o,(function(e){if(e){var t=m(n),r=h(l+t);S()!==r&&(A=t,O(r));var i=j.indexOf(m(B.location));-1!==i&&(j[i]=t),T({action:"REPLACE",location:n})}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return F||(N(1),F=!0),function(){return F&&(F=!1,N(-1)),t()}},listen:function(e){var t=x.appendListener(e);return N(1),function(){N(-1),t()}}};return B}function C(e,t,n){return Math.min(Math.max(e,t),n)}function A(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,u=void 0===l?6:l,c=y();function d(e){Object(r.a)(_,e),_.length=_.entries.length,c.notifyListeners(_.location,_.action)}function f(){return Math.random().toString(36).substr(2,u)}var p=C(s,0,o.length-1),h=o.map((function(e){return g(e,void 0,"string"==typeof e?f():e.key||f())})),v=m;function b(e){var t=C(_.index+e,0,_.entries.length-1),r=_.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var _={length:h.length,action:"POP",location:h[p],index:p,entries:h,createHref:v,push:function(e,t){var r=g(e,t,f(),_.location);c.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=_.index+1,n=_.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),d({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=g(e,t,f(),_.location);c.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(_.entries[_.index]=r,d({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=_.index+e;return t>=0&&t<_.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return _}},function(e,t,n){"use strict";var r=n(201),i=n(9),o=n(31),a=n(50),s=function(e){function t(){e.call(this),this.pendingRemovals_={},this.dispatching_={},this.listeners_={}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.addEventListener=function(e,t){var n=this.listeners_[e];n||(n=this.listeners_[e]=[]),-1===n.indexOf(t)&&n.push(t)},t.prototype.dispatchEvent=function(e){var t="string"==typeof e?new a.a(e):e,n=t.type;t.target=this;var r,i=this.listeners_[n];if(i){n in this.dispatching_||(this.dispatching_[n]=0,this.pendingRemovals_[n]=0),++this.dispatching_[n];for(var s=0,l=i.length;s<l;++s)if(!1===i[s].call(this,t)||t.propagationStopped){r=!1;break}if(--this.dispatching_[n],0===this.dispatching_[n]){var u=this.pendingRemovals_[n];for(delete this.pendingRemovals_[n];u--;)this.removeEventListener(n,o.c);delete this.dispatching_[n]}return r}},t.prototype.disposeInternal=function(){Object(i.d)(this)},t.prototype.getListeners=function(e){return this.listeners_[e]},t.prototype.hasListener=function(e){return e?e in this.listeners_:Object.keys(this.listeners_).length>0},t.prototype.removeEventListener=function(e,t){var n=this.listeners_[e];if(n){var r=n.indexOf(t);e in this.pendingRemovals_?(n[r]=o.c,++this.pendingRemovals_[e]):(n.splice(r,1),0===n.length&&delete this.listeners_[e])}},t}(r.a);t.a=s},function(e,t,n){"use strict";t.a={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u}));var r=n(15);function i(e,t,n,i,o,a,s){var l=(n-t)/i;if(l<3){for(;t<n;t+=i)a[s++]=e[t],a[s++]=e[t+1];return s}var u=new Array(l);u[0]=1,u[l-1]=1;for(var c=[t,n-i],d=0;c.length>0;){for(var f=c.pop(),p=c.pop(),h=0,m=e[p],g=e[p+1],v=e[f],y=e[f+1],b=p+i;b<f;b+=i){var _=e[b],w=e[b+1],x=Object(r.g)(_,w,m,g,v,y);x>h&&(d=b,h=x)}h>o&&(u[(d-t)/i]=1,p+i<d&&c.push(p,d),d+i<f&&c.push(d,f))}for(var k=0;k<l;++k)u[k]&&(a[s++]=e[t+k*i],a[s++]=e[t+k*i+1]);return s}function o(e,t,n,r,o,a,s,l){for(var u=0,c=n.length;u<c;++u){var d=n[u];s=i(e,t,d,r,o,a,s),l.push(s),t=d}return s}function a(e,t){return t*Math.round(e/t)}function s(e,t,n,r,i,o,s){if(t==n)return s;var l,u,c=a(e[t],i),d=a(e[t+1],i);t+=r,o[s++]=c,o[s++]=d;do{if(l=a(e[t],i),u=a(e[t+1],i),(t+=r)==n)return o[s++]=l,o[s++]=u,s}while(l==c&&u==d);for(;t<n;){var f=a(e[t],i),p=a(e[t+1],i);if(t+=r,f!=l||p!=u){var h=l-c,m=u-d,g=f-c,v=p-d;h*v==m*g&&(h<0&&g<h||h==g||h>0&&g>h)&&(m<0&&v<m||m==v||m>0&&v>m)?(l=f,u=p):(o[s++]=l,o[s++]=u,c=l,d=u,l=f,u=p)}}return o[s++]=l,o[s++]=u,s}function l(e,t,n,r,i,o,a,l){for(var u=0,c=n.length;u<c;++u){var d=n[u];a=s(e,t,d,r,i,o,a),l.push(a),t=d}return a}function u(e,t,n,r,i,o,a,s){for(var u=0,c=n.length;u<c;++u){var d=n[u],f=[];a=l(e,t,d,r,i,o,a,f),s.push(f),t=d[d.length-1]}return a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return d}));var r=n(27),i=n(15),o=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,a=/^([a-z]*)$/i;function s(e){return"string"==typeof e?e:d(e)}var l,u;l={},u=0;function c(e){return e[0]=Object(i.a)(e[0]+.5|0,0,255),e[1]=Object(i.a)(e[1]+.5|0,0,255),e[2]=Object(i.a)(e[2]+.5|0,0,255),e[3]=Object(i.a)(e[3],0,1),e}function d(e){var t=e[0];t!=(0|t)&&(t=t+.5|0);var n=e[1];n!=(0|n)&&(n=n+.5|0);var r=e[2];return r!=(0|r)&&(r=r+.5|0),"rgba("+t+","+n+","+r+","+(void 0===e[3]?1:e[3])+")"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s}));var r=n(3);function i(e,t,n,i,a){return!Object(r.t)(a,(function(r){return!o(e,t,n,i,r[0],r[1])}))}function o(e,t,n,r,i,o){for(var a=0,s=e[n-r],l=e[n-r+1];t<n;t+=r){var u=e[t],c=e[t+1];l<=o?c>o&&(u-s)*(o-l)-(i-s)*(c-l)>0&&a++:c<=o&&(u-s)*(o-l)-(i-s)*(c-l)<0&&a--,s=u,l=c}return 0!==a}function a(e,t,n,r,i,a){if(0===n.length)return!1;if(!o(e,t,n[0],r,i,a))return!1;for(var s=1,l=n.length;s<l;++s)if(o(e,n[s-1],n[s],r,i,a))return!1;return!0}function s(e,t,n,r,i,o){if(0===n.length)return!1;for(var s=0,l=n.length;s<l;++s){var u=n[s];if(a(e,t,u,r,i,o))return!0;t=u[u.length-1]}return!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return l}));var r=n(65),i=n(20),o=n(7),a=n(13);!function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}Object(o.c)(t,e)}(Error);function s(e){return e.request.length<=1}function l(e){return new r.a((function(t){t.error(e)}))}function u(e,t){var n=Object(o.a)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?Object(o.a)({},n,e(n)):Object(o.a)({},n,e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(o.a)({},n)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){var t=e.query,n=e.variables,r=e.operationName;return JSON.stringify([r,t,n])}(t)}}),t}function c(e,t){return t?t(e):r.a.of()}function d(e){return"function"==typeof e?new g(e):e}function f(){return new g((function(){return r.a.of()}))}function p(e){return 0===e.length?f():e.map(d).reduce((function(e,t){return e.concat(t)}))}function h(e,t,n){var i=d(t),o=d(n||new g(c));return s(i)&&s(o)?new g((function(t){return e(t)?i.request(t)||r.a.of():o.request(t)||r.a.of()})):new g((function(t,n){return e(t)?i.request(t,n)||r.a.of():o.request(t,n)||r.a.of()}))}var m=function(e,t){var n=d(e);if(s(n))return n;var i=d(t);return s(i)?new g((function(e){return n.request(e,(function(e){return i.request(e)||r.a.of()}))||r.a.of()})):new g((function(e,t){return n.request(e,(function(e){return i.request(e,t)||r.a.of()}))||r.a.of()}))},g=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,n,r){return this.concat(h(t,n,r||new e(c)))},e.prototype.concat=function(e){return m(this,e)},e.prototype.request=function(e,t){throw new i.a(1)},e.empty=f,e.from=p,e.split=h,e.execute=v,e}();function v(e,t){return e.request(u(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?Object(a.n)(t.query):""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];if(t.indexOf(o)<0)throw new i.a(2)}return e}(t))))||r.a.of()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectIntegration=t.selectUnpublishedSlugs=t.selectUnpublishedEntriesByStatus=t.selectUnpublishedEntry=t.selectDeployPreview=t.selectSearchedEntries=t.selectPublishedSlugs=t.selectEntries=t.selectEntry=t.default=void 0;var r=b(n(712)),i=b(n(339)),o=y(n(516)),a=y(n(104)),s=b(n(358)),l=y(n(971)),u=b(n(361)),c=b(n(67)),d=b(n(972)),f=b(n(273)),p=b(n(270)),h=y(n(973)),m=b(n(974)),g=b(n(975));function v(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return v=function(){return e},e}function y(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=v();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function b(e){return e&&e.__esModule?e:{default:e}}var _={auth:r.default,config:i.default,collections:c.default,search:d.default,integrations:o.default,entries:a.default,cursors:s.default,editorialWorkflow:l.default,entryDraft:u.default,medias:f.default,mediaLibrary:p.default,deploys:h.default,globalUI:m.default,status:g.default};t.default=_;t.selectEntry=(e,t,n)=>a.selectEntry(e.entries,t,n);t.selectEntries=(e,t)=>a.selectEntries(e.entries,t);t.selectPublishedSlugs=(e,t)=>a.selectPublishedSlugs(e.entries,t);t.selectSearchedEntries=(e,t)=>{const n=e.search.get("entryIds");return n&&n.filter(({collection:e})=>-1!==t.indexOf(e)).map(({collection:t,slug:n})=>a.selectEntry(e.entries,t,n))};t.selectDeployPreview=(e,t,n)=>h.selectDeployPreview(e.deploys,t,n);t.selectUnpublishedEntry=(e,t,n)=>l.selectUnpublishedEntry(e.editorialWorkflow,t,n);t.selectUnpublishedEntriesByStatus=(e,t)=>l.selectUnpublishedEntriesByStatus(e.editorialWorkflow,t);t.selectUnpublishedSlugs=(e,t)=>l.selectUnpublishedSlugs(e.editorialWorkflow,t);t.selectIntegration=(e,t,n)=>o.selectIntegration(e.integrations,t,n)},function(e,t,n){var r=n(181),i=n(714),o=n(715),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t,n){var r=n(740),i=n(761),o=n(215),a=n(44),s=n(763);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusDescriptions=t.status=t.Statues=t.EDITORIAL_WORKFLOW=t.SIMPLE=void 0;var r=n(4);t.SIMPLE="simple";t.EDITORIAL_WORKFLOW="editorial_workflow";const i={DRAFT:"draft",PENDING_REVIEW:"pending_review",PENDING_PUBLISH:"pending_publish"};t.Statues=i;const o=(0,r.OrderedMap)(i);t.status=o;const a=(0,r.Map)({[o.get("DRAFT")]:"Draft",[o.get("PENDING_REVIEW")]:"Waiting for Review",[o.get("PENDING_PUBLISH")]:"Waiting to go live"});t.statusDescriptions=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.selectEditingDraft=t.selectMediaFilePublicPath=t.selectMediaFilePath=t.selectMediaFolder=t.selectIsFetching=t.selectEntriesLoaded=t.selectEntryByPath=t.selectEntries=t.selectPublishedSlugs=t.selectEntry=t.selectViewStyle=t.selectEntriesFilterFields=t.selectEntriesSortFields=t.selectEntriesFilter=t.selectEntriesSort=void 0;var r=y(n(488)),i=y(n(426)),o=y(n(211)),a=y(n(262)),s=y(n(138)),l=n(4),u=n(89),c=n(123),d=n(272),f=n(360),p=n(271),h=n(37),m=n(67),g=n(166),v=n(362);function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{keyToPathArray:x}=g.stringTemplate;let k,E,S,O,T;const C="netlify-cms.entries.viewStyle",A=(0,a.default)(()=>{const e=localStorage.getItem("netlify-cms.entries.sort");if(e)try{const t=JSON.parse(e);let n=(0,l.Map)();return Object.entries(t).forEach(([e,t])=>{let r=(0,l.OrderedMap)();(0,o.default)(Object.values(t),["index"]).forEach(e=>{const{key:t,direction:n}=e;r=r.set(t,(0,l.fromJS)({key:t,direction:n}))}),n=n.set(e,r)}),n}catch(e){return(0,l.Map)()}return(0,l.Map)()}),P=e=>{if(e){const t={};e.keySeq().forEach(n=>{const r=n;e.get(r).valueSeq().toJS().map((e,t)=>_(_({},e),{},{index:t})).forEach(e=>{(0,i.default)(t,[r,e.key],e)})}),localStorage.setItem("netlify-cms.entries.sort",JSON.stringify(t))}else localStorage.removeItem("netlify-cms.entries.sort")},R=(0,a.default)(()=>{const e=localStorage.getItem(C);return e||(localStorage.setItem(C,v.VIEW_STYLE_LIST),v.VIEW_STYLE_LIST)}),M=e=>{e?localStorage.setItem(C,e):localStorage.removeItem(C)},I=(e,t)=>{const n=e.get("sort");return null==n?void 0:n.get(t)};t.selectEntriesSort=I;const j=(e,t)=>{const n=e.get("filter");return(null==n?void 0:n.get(t))||(0,l.Map)()};t.selectEntriesFilter=j;const D=(e,t)=>{const n=I(e,t);return(null==n?void 0:n.valueSeq().filter(e=>(null==e?void 0:e.get("direction"))!==f.SortDirection.None).toArray())||[]};t.selectEntriesSortFields=D;const L=(e,t)=>{const n=j(e,t);return(null==n?void 0:n.valueSeq().filter(e=>!0===(null==e?void 0:e.get("active"))).toArray())||[]};t.selectEntriesFilterFields=L;t.selectViewStyle=e=>e.get("viewStyle");const N=(e,t,n)=>e.getIn(["entities",`${t}.${n}`]);t.selectEntry=N;const F=(e,t)=>e.getIn(["pages",t,"ids"],(0,l.List)());t.selectPublishedSlugs=F;t.selectEntries=(e,t)=>{const n=t.get("name"),i=F(e,n);let o=i&&i.map(t=>N(e,n,t));const a=D(e,n);if(a&&a.length>0){const e=a.map(e=>(0,m.selectSortDataPath)(t,e.get("key"))),n=a.map(e=>e.get("direction")===f.SortDirection.Ascending?"asc":"desc");o=(0,l.fromJS)((0,r.default)(o.toJS(),e,n))}const s=L(e,n);return s&&s.length>0&&(o=o.filter(e=>s.every(t=>{const n=t.get("pattern"),r=t.get("field"),i=(e.get("data")||(0,l.Map)()).getIn(x(r));return void 0!==i&&new RegExp(String(n)).test(String(i))})).toList()),o};t.selectEntryByPath=(e,t,n)=>{const r=F(e,t),i=r&&r.map(n=>N(e,t,n));return i&&i.find(e=>(null==e?void 0:e.get("path"))===n)};t.selectEntriesLoaded=(e,t)=>!!e.getIn(["pages",t]);t.selectIsFetching=(e,t)=>e.getIn(["pages",t,"isFetching"],!1);const B=(e,t)=>e.find(e=>(null==e?void 0:e.get("name"))===t),z=(e,t,n,r)=>{if(!t)return!1;if(r&&r.has(e))return!0;if(t.has("files")){const r=B(t.get("files"),n);if(r&&r.has(e))return!0}return!!t.has(e)},U=(e,t,n,r,i,o,a)=>{const s=o.filter(e=>e===i)[0];if(s)return(0,p.folderFormatter)(s.has(e)?s.get(e):`{{${e}}}`,r,n,a,e,t.get("slug"));for(let s of o){s.has(e)||(s=s.set(e,`{{${e}}}`));const o=(0,p.folderFormatter)(s.get(e),r,n,a,e,t.get("slug"));let l=null;if(s.has("fields")?l=U(e,t,n,r,i,s.get("fields").toArray(),o):s.has("field")?l=U(e,t,n,r,i,[s.get("field")],o):s.has("types")&&(l=U(e,t,n,r,i,s.get("types").toArray(),o)),null!=l)return l}return null},q=(e,t,n,r,i)=>{let o=t.get(e);if(n.has(e)||(n=n.set(e,`{{${e}}}`)),n.has("files")){o=(0,p.folderFormatter)(n.get(e),r,n,o,e,t.get("slug"));let a=B(n.get("files"),null==r?void 0:r.get("slug"));if(a&&(a.has(e)||(a=a.set(e,`{{${e}}}`)),o=(0,p.folderFormatter)(a.get(e),r,n,o,e,t.get("slug")),i)){const s=U(e,t,n,r,i,a.get("fields").toArray(),o);null!==s&&(o=s)}}else if(o=(0,p.folderFormatter)(n.get(e),r,n,o,e,t.get("slug")),i){const a=U(e,t,n,r,i,n.get("fields").toArray(),o);null!==a&&(o=a)}return o},H=(e,t,n,r)=>{const i="media_folder";let o=e.get(i);if(z(i,t,null==n?void 0:n.get("slug"),r)){const a=q(i,e,t,n,r);if(a.startsWith("/"))o=(0,u.join)(a);else{const e=null==n?void 0:n.get("path");o=e?(0,u.join)((0,u.dirname)(e),a):(0,u.join)(t.get("folder"),"DRAFT_MEDIA_FILES")}}return(0,s.default)(o,"/")};t.selectMediaFolder=H;t.selectMediaFilePath=(e,t,n,r,i)=>{if((0,h.isAbsolutePath)(r))return r;const o=H(e,t,n,i);return(0,u.join)(o,(0,h.basename)(r))};t.selectMediaFilePublicPath=(e,t,n,r,i)=>{if((0,h.isAbsolutePath)(n))return n;const o="public_folder";let a=e.get(o);return z(o,t,null==r?void 0:r.get("slug"),i)&&(a=q(o,e,t,r,i)),(0,u.join)(a,(0,h.basename)(n))};t.selectEditingDraft=e=>{const t=e.get("entry");return t&&!t.isEmpty()};var W=(e=(0,l.Map)({entities:(0,l.Map)(),pages:(0,l.Map)(),sort:A(),viewStyle:R()}),t)=>{switch(t.type){case c.ENTRY_REQUEST:{const n=t.payload;return e.setIn(["entities",`${n.collection}.${n.slug}`,"isFetching"],!0)}case c.ENTRY_SUCCESS:{const n=t.payload;return k=n.collection,T=n.entry.slug,e.withMutations(e=>{e.setIn(["entities",`${k}.${T}`],(0,l.fromJS)(n.entry));const t=e.getIn(["pages",k,"ids"],(0,l.List)());t.includes(T)||e.setIn(["pages",k,"ids"],t.unshift(T))})}case c.ENTRIES_REQUEST:{const n=t.payload;return e.withMutations(e=>{e.setIn(["pages",n.collection,"isFetching"],!0)})}case c.ENTRIES_SUCCESS:{const n=t.payload;return k=n.collection,E=n.entries,S=n.append,O=n.page,e.withMutations(e=>{E.forEach(t=>e.setIn(["entities",`${k}.${t.slug}`],(0,l.fromJS)(t).set("isFetching",!1)));const t=(0,l.List)(E.map(e=>e.slug));e.setIn(["pages",k],(0,l.Map)({page:O,ids:S?e.getIn(["pages",k,"ids"],(0,l.List)()).concat(t):t}))})}case c.ENTRIES_FAILURE:return e.setIn(["pages",t.meta.collection,"isFetching"],!1);case c.ENTRY_FAILURE:{const n=t.payload;return e.withMutations(e=>{e.setIn(["entities",`${n.collection}.${n.slug}`,"isFetching"],!1),e.setIn(["entities",`${n.collection}.${n.slug}`,"error"],n.error.message)})}case d.SEARCH_ENTRIES_SUCCESS:{const n=t.payload;return E=n.entries,e.withMutations(e=>{E.forEach(t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,l.fromJS)(t).set("isFetching",!1)))})}case c.ENTRY_DELETE_SUCCESS:{const n=t.payload;return e.withMutations(e=>{e.deleteIn(["entities",`${n.collectionName}.${n.entrySlug}`]),e.updateIn(["pages",n.collectionName,"ids"],e=>e.filter(e=>e!==n.entrySlug))})}case c.SORT_ENTRIES_REQUEST:{const n=t.payload,{collection:r,key:i,direction:o}=n,a=e.withMutations(e=>{const t=(0,l.OrderedMap)({[i]:(0,l.Map)({key:i,direction:o})});e.setIn(["sort",r],t),e.setIn(["pages",r,"isFetching"],!0),e.deleteIn(["pages",r,"page"])});return P(a.get("sort")),a}case c.FILTER_ENTRIES_SUCCESS:case c.SORT_ENTRIES_SUCCESS:{const n=t.payload,{collection:r,entries:i}=n;E=i;return e.withMutations(e=>{E.forEach(t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,l.fromJS)(t).set("isFetching",!1))),e.setIn(["pages",r,"isFetching"],!1);const t=(0,l.List)(E.map(e=>e.slug));e.setIn(["pages",r],(0,l.Map)({page:1,ids:t}))})}case c.SORT_ENTRIES_FAILURE:{const n=t.payload,{collection:r,key:i}=n,o=e.withMutations(e=>{e.deleteIn(["sort",r,i]),e.setIn(["pages",r,"isFetching"],!1)});return P(o.get("sort")),o}case c.FILTER_ENTRIES_REQUEST:{const n=t.payload,{collection:r,filter:i}=n;return e.withMutations(e=>{const t=e.getIn(["filter",r,i.id],(0,l.fromJS)(i));e.setIn(["filter",r,t.get("id")],t.set("active",!t.get("active")))})}case c.FILTER_ENTRIES_FAILURE:{const n=t.payload,{collection:r,filter:i}=n;return e.withMutations(e=>{e.deleteIn(["filter",r,i.id]),e.setIn(["pages",r,"isFetching"],!1)})}case c.CHANGE_VIEW_STYLE:{const n=t.payload,{style:r}=n,i=e.withMutations(e=>{e.setIn(["viewStyle"],r)});return M(i.get("viewStyle")),i}default:return e}};t.default=W},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});for(var r="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),i={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:r?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},a={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},s=1;s<20;s++)a["f"+s]=111+s;function l(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return u(e,t)})),i=function(e){return r.some((function(t){return c(t,e)}))};return null==n?i:i(n)}function u(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in i)r[i[s]]=!1;var l=!0,u=!1,c=void 0;try{for(var p,h=o[Symbol.iterator]();!(l=(p=h.next()).done);l=!0){var m=p.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=f(m),y=i[v];1!==a&&y||(n?r.key=v:r.which=d(m)),y&&(r[y]=!g||null)}}catch(e){u=!0,c=e}finally{try{!l&&h.return&&h.return()}finally{if(u)throw c}}return r}function c(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&((null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r))return!1}return!0}function d(e){return e=f(e),a[e]||e.toUpperCase().charCodeAt(0)}function f(e){return e=e.toLowerCase(),e=o[e]||e}t.default=l,t.isHotkey=l,t.isCodeHotkey=function(e,t){return l(e,t)},t.isKeyHotkey=function(e,t){return l(e,{byKey:!0},t)},t.parseHotkey=u,t.compareHotkey=c,t.toKeyCode=d,t.toKeyName=f},function(e,t,n){"use strict";e.exports=function(e,t){var n;if(null!=t&&"string"!=typeof t&&("object"!=typeof t||0===t.length))throw new Error("Expected `string` or `Array.<string>` for `tagNames`, not `"+t+"`");if(!e||"object"!=typeof e||"element"!==e.type||"string"!=typeof e.tagName)return!1;if(null==t)return!0;if(n=e.tagName,"string"==typeof t)return n===t;return-1!==t.indexOf(n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"TemplateTag",(function(){return l})),n.d(t,"trimResultTransformer",(function(){return u})),n.d(t,"stripIndentTransformer",(function(){return d})),n.d(t,"replaceResultTransformer",(function(){return f})),n.d(t,"replaceSubstitutionTransformer",(function(){return p})),n.d(t,"replaceStringTransformer",(function(){return h})),n.d(t,"inlineArrayTransformer",(function(){return g})),n.d(t,"splitStringTransformer",(function(){return v})),n.d(t,"removeNonPrintingValuesTransformer",(function(){return b})),n.d(t,"commaLists",(function(){return _})),n.d(t,"commaListsAnd",(function(){return w})),n.d(t,"commaListsOr",(function(){return x})),n.d(t,"html",(function(){return k})),n.d(t,"codeBlock",(function(){return k})),n.d(t,"source",(function(){return k})),n.d(t,"safeHtml",(function(){return E})),n.d(t,"oneLine",(function(){return S})),n.d(t,"oneLineTrim",(function(){return O})),n.d(t,"oneLineCommaLists",(function(){return T})),n.d(t,"oneLineCommaListsOr",(function(){return C})),n.d(t,"oneLineCommaListsAnd",(function(){return A})),n.d(t,"inlineLists",(function(){return P})),n.d(t,"oneLineInlineLists",(function(){return R})),n.d(t,"stripIndent",(function(){return M})),n.d(t,"stripIndents",(function(){return I}));var r,i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(r=["",""],i=["",""],Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(i)}})));function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=function(){function e(){for(var t=this,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return s(this,e),this.tag=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return"function"==typeof e?t.interimTag.bind(t,e):"string"==typeof e?t.transformEndResult(e):(e=e.map(t.transformString.bind(t)),t.transformEndResult(e.reduce(t.processSubstitutions.bind(t,r))))},r.length>0&&Array.isArray(r[0])&&(r=r[0]),this.transformers=r.map((function(e){return"function"==typeof e?e():e})),this.tag}return o(e,[{key:"interimTag",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return this.tag(a,e.apply(void 0,[t].concat(r)))}},{key:"processSubstitutions",value:function(e,t,n){var r=this.transformSubstitution(e.shift(),t);return"".concat(t,r,n)}},{key:"transformString",value:function(e){return this.transformers.reduce((function(e,t){return t.onString?t.onString(e):e}),e)}},{key:"transformSubstitution",value:function(e,t){return this.transformers.reduce((function(e,n){return n.onSubstitution?n.onSubstitution(e,t):e}),e)}},{key:"transformEndResult",value:function(e){return this.transformers.reduce((function(e,t){return t.onEndResult?t.onEndResult(e):e}),e)}}]),e}(),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(t){if(""===e)return t.trim();if("start"===(e=e.toLowerCase())||"left"===e)return t.replace(/^\s*/,"");if("end"===e||"right"===e)return t.replace(/\s*$/,"");throw new Error("Side not supported: "+e)}}};function c(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)}var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(t){if("initial"===e){var n=t.match(/^[^\S\n]*(?=\S)/gm),r=n&&Math.min.apply(Math,c(n.map((function(e){return e.length}))));if(r){var i=new RegExp("^.{"+r+"}","gm");return t.replace(i,"")}return t}if("all"===e)return t.replace(/^[^\S\n]+/gm,"");throw new Error("Unknown type: "+e)}}},f=function(e,t){return{onEndResult:function(n){if(null==e||null==t)throw new Error("replaceResultTransformer requires at least 2 arguments.");return n.replace(e,t)}}},p=function(e,t){return{onSubstitution:function(n,r){if(null==e||null==t)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==n?n:n.toString().replace(e,t)}}},h=function(e,t){return{onString:function(n){if(null==e||null==t)throw new Error("replaceStringTransformer requires at least 2 arguments.");return n.replace(e,t)}}},m={separator:"",conjunction:"",serial:!1},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;return{onSubstitution:function(t,n){if(Array.isArray(t)){var r=t.length,i=e.separator,o=e.conjunction,a=e.serial,s=n.match(/(\n?[^\S\n]+)$/);if(t=s?t.join(i+s[1]):t.join(i+" "),o&&r>1){var l=t.lastIndexOf(i);t=t.slice(0,l)+(a?i:"")+" "+o+t.slice(l+1)}}return t}}},v=function(e){return{onSubstitution:function(t,n){if(null==e||"string"!=typeof e)throw new Error("You need to specify a string character to split by.");return"string"==typeof t&&t.includes(e)&&(t=t.split(e)),t}}},y=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e},b=function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(y):y(e)?e:""}}},_=new l(g({separator:","}),d,u),w=new l(g({separator:",",conjunction:"and"}),d,u),x=new l(g({separator:",",conjunction:"or"}),d,u),k=new l(v("\n"),b,g,d,u),E=new l(v("\n"),g,d,u,p(/&/g,"&amp;"),p(/</g,"&lt;"),p(/>/g,"&gt;"),p(/"/g,"&quot;"),p(/'/g,"&#x27;"),p(/`/g,"&#x60;")),S=new l(f(/(?:\n(?:\s*))+/g," "),u),O=new l(f(/(?:\n\s*)/g,""),u),T=new l(g({separator:","}),f(/(?:\s+)/g," "),u),C=new l(g({separator:",",conjunction:"or"}),f(/(?:\s+)/g," "),u),A=new l(g({separator:",",conjunction:"and"}),f(/(?:\s+)/g," "),u),P=new l(g,d,u),R=new l(g,f(/(?:\s+)/g," "),u),M=new l(d,u),I=new l(d("all"),u)},function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));var r=n(9),i=n(14),o=n(6),a=n(35),s=n(296),l=n(51),u=n(22),c=n(86),d=n(95),f=function(e){function t(t){var n=Object(u.a)({},t);delete n.source,e.call(this,n),this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,t.map&&this.setMap(t.map),Object(r.a)(this,Object(a.b)(l.a.SOURCE),this.handleSourcePropertyChange_,this);var i=t.source?t.source:null;this.setSource(i)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getLayersArray=function(e){var t=e||[];return t.push(this),t},t.prototype.getLayerStatesArray=function(e){var t=e||[];return t.push(this.getLayerState()),t},t.prototype.getSource=function(){return this.get(l.a.SOURCE)||null},t.prototype.getSourceState=function(){var e=this.getSource();return e?e.getState():d.a.UNDEFINED},t.prototype.handleSourceChange_=function(){this.changed()},t.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Object(r.e)(this.sourceChangeKey_),this.sourceChangeKey_=null);var e=this.getSource();e&&(this.sourceChangeKey_=Object(r.a)(e,i.a.CHANGE,this.handleSourceChange_,this)),this.changed()},t.prototype.setMap=function(e){this.mapPrecomposeKey_&&(Object(r.e)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&(Object(r.e)(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=Object(r.a)(e,c.a.PRECOMPOSE,(function(e){var t=e,n=this.getLayerState();n.managed=!1,void 0===this.getZIndex()&&(n.zIndex=1/0),t.frameState.layerStatesArray.push(n),t.frameState.layerStates[Object(o.c)(this)]=n}),this),this.mapRenderKey_=Object(r.a)(this,i.a.CHANGE,e.render,e),this.changed())},t.prototype.setSource=function(e){this.set(l.a.SOURCE,e)},t}(s.a);function p(e,t){return e.visible&&t>=e.minResolution&&t<e.maxResolution}t.a=f},function(e,t,n){var r=n(155);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(897);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalStyles=t.reactSelectStyles=t.zIndex=t.effects=t.transitions=t.borders=t.shadows=t.text=t.buttons=t.components=t.lengths=t.colors=t.colorsRaw=t.fonts=void 0;(r=n(1))&&r.__esModule;var r,i=n(11);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l={primary:'\n -apple-system,\n BlinkMacSystemFont,\n "Segoe UI",\n Roboto,\n Helvetica,\n Arial,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji",\n "Segoe UI Symbol"\n ',mono:"\n 'SFMono-Regular',\n Consolas,\n \"Liberation Mono\",\n Menlo,\n Courier,\n monospace;\n "};t.fonts=l;const u={white:"#fff",grayLight:"#eff0f4",gray:"#798291",grayDark:"#313d3e",blue:"#3a69c7",blueLight:"#e8f5fe",green:"#005614",greenLight:"#caef6f",brown:"#754e00",yellow:"#ffee9c",red:"#ff003b",redLight:"#fcefea",purple:"#70399f",purpleLight:"#f6d8ff",teal:"#17a2b8",tealLight:"#ddf5f9"};t.colorsRaw=u;const c={statusDraftText:u.purple,statusDraftBackground:u.purpleLight,statusReviewText:u.brown,statusReviewBackground:u.yellow,statusReadyText:u.green,statusReadyBackground:u.greenLight,text:u.gray,textLight:u.white,textLead:u.grayDark,background:u.grayLight,foreground:u.white,active:u.blue,activeBackground:u.blueLight,inactive:u.gray,button:u.gray,buttonText:u.white,inputBackground:u.white,infoText:u.blue,infoBackground:u.blueLight,successText:u.green,successBackground:u.greenLight,warnText:u.brown,warnBackground:u.yellow,errorText:u.red,errorBackground:u.redLight,textFieldBorder:"#dfdfe3",controlLabel:"#7a8291",checkerboardLight:"#f2f2f2",checkerboardDark:"#e6e6e6",mediaDraftText:u.purple,mediaDraftBackground:u.purpleLight};t.colors=c;const d={topBarHeight:"56px",inputPadding:"16px 20px",borderRadius:"5px",richTextEditorMinHeight:"300px",borderWidth:"2px",topCardWidth:"682px",pageMargin:"28px 18px",objectWidgetTopBarContainerPadding:"0 14px 14px"};t.lengths=d;const f={textField:`solid ${d.borderWidth} ${c.textFieldBorder}`};t.borders=f;t.transitions={main:".2s ease"};const p={drop:"\n box-shadow: 0 2px 4px 0 rgba(19, 39, 48, 0.12);\n ",dropMain:"\n box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05), 0 1px 3px 0 rgba(68, 74, 87, 0.1);\n ",dropMiddle:"\n box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.15), 0 1px 3px 0 rgba(68, 74, 87, 0.3);\n ",dropDeep:"\n box-shadow: 0 4px 12px 0 rgba(68, 74, 87, 0.15), 0 1px 3px 0 rgba(68, 74, 87, 0.25);\n ",inset:"\n box-shadow: inset 0 0 4px rgba(68, 74, 87, 0.3);\n "};t.shadows=p;const h={fieldLabel:(0,i.css)("font-size:12px;text-transform:uppercase;font-weight:600;color:",c.controlLabel,";;label:fieldLabel;")};t.text=h;const m={checkerboard:`\n linear-gradient(\n 45deg,\n ${c.checkerboardDark} 25%,\n transparent 25%,\n transparent 75%,\n ${c.checkerboardDark} 75%,\n ${c.checkerboardDark}\n )\n `},g={checkerboard:(0,i.css)("background-color:",c.checkerboardLight,";background-size:16px 16px;background-position:0 0,8px 8px;background-image:",m.checkerboard,",",m.checkerboard,";;label:checkerboard;")};t.effects=g;const v={name:"12f5b7t-badge",styles:"font-size:13px;line-height:1;;label:badge;"},y=(0,i.css)(v,";display:block;border-radius:",d.borderRadius,";padding:4px 10px;text-align:center;;label:backgroundBadge;"),b=(0,i.css)(v,";display:inline-block;font-weight:700;text-transform:uppercase;;label:textBadge;"),_=(0,i.css)(p.dropMain,";border-radius:5px;background-color:#fff;;label:card;"),w={button:(0,i.css)("border:0;border-radius:",d.borderRadius,";cursor:pointer;;label:button;"),default:(0,i.css)("height:36px;line-height:36px;font-weight:500;padding:0 15px;background-color:",u.gray,";color:",u.white,";;label:default;"),medium:{name:"17u3ojd-medium",styles:"height:27px;line-height:27px;font-size:12px;font-weight:600;border-radius:3px;padding:0 24px 0 14px;;label:medium;"},small:{name:"1ryj6xw-small",styles:"font-size:13px;height:23px;line-height:23px;;label:small;"},gray:(0,i.css)("background-color:",c.button,";color:",c.buttonText,";&:focus,&:hover{color:",u.white,";background-color:#555a65;};label:gray;"),grayText:(0,i.css)("background-color:transparent;color:",u.gray,";;label:grayText;"),green:(0,i.css)("background-color:#aae31f;color:",u.green,";;label:green;"),lightRed:(0,i.css)("background-color:",u.redLight,";color:",u.red,";;label:lightRed;"),lightBlue:(0,i.css)("background-color:",u.blueLight,";color:",u.blue,";;label:lightBlue;"),lightTeal:(0,i.css)("background-color:",u.tealLight,";color:#1195aa;;label:lightTeal;"),teal:(0,i.css)("background-color:",u.teal,";color:",u.white,";;label:teal;"),disabled:(0,i.css)("background-color:",u.grayLight,";color:",u.gray,";;label:disabled;")};t.buttons=w;const x=(0,i.css)("color:",u.white,";width:0;height:0;border:5px solid transparent;border-radius:2px;;label:caret;"),k={card:_,caretDown:(0,i.css)(x,";border-top:6px solid currentColor;border-bottom:0;;label:caretDown;"),caretRight:(0,i.css)(x,";border-left:6px solid currentColor;border-right:0;;label:caretRight;"),badge:(0,i.css)(y,";color:",c.infoText,";background-color:",c.infoBackground,";;label:badge;"),badgeSuccess:(0,i.css)(y,";color:",c.successText,";background-color:",c.successBackground,";;label:badgeSuccess;"),badgeDanger:(0,i.css)(y,";color:",u.red,";background-color:#fbe0d7;;label:badgeDanger;"),textBadge:(0,i.css)(b,";color:",c.infoText,";;label:textBadge;"),textBadgeSuccess:(0,i.css)(b,";color:",c.successText,";;label:textBadgeSuccess;"),textBadgeDanger:(0,i.css)(b,";color:",u.red,";;label:textBadgeDanger;"),loaderSize:{name:"1y4gkn3-loaderSize",styles:"width:2.28571429rem;height:2.28571429rem;;label:loaderSize;"},cardTop:(0,i.css)(_,";width:",d.topCardWidth,";max-width:100%;padding:18px 20px;margin-bottom:28px;;label:cardTop;"),cardTopHeading:{name:"wfgyt-cardTopHeading",styles:"font-size:22px;font-weight:600;line-height:37px;margin:0;padding:0;;label:cardTopHeading;"},cardTopDescription:(0,i.css)("max-width:480px;color:",c.text,";font-size:14px;margin-top:8px;;label:cardTopDescription;"),objectWidgetTopBarContainer:(0,i.css)("padding:",d.objectWidgetTopBarContainerPadding,";;label:objectWidgetTopBarContainer;"),dropdownList:(0,i.css)(p.dropDeep,";background-color:",u.white,";border-radius:",d.borderRadius,";overflow:hidden;;label:dropdownList;"),dropdownItem:(0,i.css)(w.button,";background-color:transparent;border-radius:0;color:",u.gray,";font-weight:500;border-bottom:1px solid #eaebf1;padding:8px 14px;display:flex;justify-content:space-between;align-items:center;min-width:max-content;&:last-of-type{border-bottom:0;}&.active,&:hover,&:active,&:focus{color:",c.active,";background-color:",c.activeBackground,";};label:dropdownItem;"),viewControlsText:(0,i.css)("font-size:14px;color:",c.text,";margin-right:12px;white-space:nowrap;;label:viewControlsText;")};t.components=k;const E={control:e=>a(a({},e),{},{border:0,boxShadow:"none",padding:"9px 0 9px 12px"}),option:(e,t)=>a(a({},e),{},{backgroundColor:t.isSelected?""+c.active:t.isFocused?""+c.activeBackground:"transparent",paddingLeft:"22px"}),menu:e=>a(a({},e),{},{right:0,zIndex:300}),container:e=>a(a({},e),{},{padding:"0 !important"}),indicatorSeparator:(e,t)=>t.hasValue&&t.selectProps.isClearable?a(a({},e),{},{backgroundColor:""+c.textFieldBorder}):{display:"none"},dropdownIndicator:e=>a(a({},e),{},{color:""+c.controlLabel}),clearIndicator:e=>a(a({},e),{},{color:""+c.controlLabel}),multiValue:e=>a(a({},e),{},{backgroundColor:c.background}),multiValueLabel:e=>a(a({},e),{},{color:c.textLead,fontWeight:500}),multiValueRemove:e=>a(a({},e),{},{color:c.controlLabel,":hover":{color:c.errorText,backgroundColor:c.errorBackground}})};t.reactSelectStyles=E;t.zIndex={zIndex0:0,zIndex1:1,zIndex2:2,zIndex10:10,zIndex100:100,zIndex200:200,zIndex299:299,zIndex300:300,zIndex1000:1e3,zIndex10000:1e4,zIndex99999:99999};t.GlobalStyles=()=>(0,i.jsx)(i.Global,{styles:(0,i.css)("*,*:before,*:after{box-sizing:border-box;}:focus{outline:-webkit-focus-ring-color auto ",d.borderRadius,";}[data-whatintent='mouse'] *:focus{outline:none;}input{border:0;}body{font-family:",l.primary,";font-weight:normal;background-color:",c.background,";color:",c.text,";margin:0;}ul,ol{padding-left:0;}h1,h2,h3,h4,h5,h6,p{font-family:",l.primary,";color:",c.textLead,";font-size:15px;line-height:1.5;margin-top:0;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1{font-size:24px;letter-spacing:0.4px;color:",c.textLead,";}a,button{font-size:14px;font-weight:500;}a{color:",c.text,";text-decoration:none;}img{max-width:100%;}textarea{resize:none;};label:GlobalStyles;")})},function(e,t,n){"use strict";e.exports=function(e,t){return e.wrapText?t:t.replace(r," ")};var r=/\r?\n|\r/g},function(e,t,n){"use strict";t.a={PROPERTYCHANGE:"propertychange"}},function(e,t,n){"use strict";var r=n(3),i=n(10),o=n(62),a=n(72),s=n(15),l=function(e){function t(t,n){e.call(this),this.setCoordinates(t,n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout)},t.prototype.closestPointXY=function(e,t,n,r){var i=this.flatCoordinates,o=Object(s.f)(e,t,i[0],i[1]);if(o<r){for(var a=this.stride,l=0;l<a;++l)n[l]=i[l];return n.length=a,o}return r},t.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},t.prototype.computeExtent=function(e){return Object(r.m)(this.flatCoordinates,e)},t.prototype.getType=function(){return i.a.POINT},t.prototype.intersectsExtent=function(e){return Object(r.h)(e,this.flatCoordinates[0],this.flatCoordinates[1])},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(a.a)(this.flatCoordinates,0,e,this.stride),this.changed()},t}(o.a);t.a=l},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(15);function i(e,t){return void 0!==e?0:void 0}function o(e,t){return void 0!==e?e+t:void 0}function a(e){var t=2*Math.PI/e;return function(e,n){return void 0!==e?e=Math.floor((e+n)/t+.5)*t:void 0}}function s(e){var t=e||Object(r.i)(5);return function(e,n){return void 0!==e?Math.abs(e+n)<=t?0:e+n:void 0}}},function(e,t,n){"use strict";function r(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}t.a=function(e,t){var n;void 0===t&&(t=r);var i,o=[],a=!1;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];return a&&n===this&&t(r,o)||(i=e.apply(this,r),a=!0,n=this,o=r),i}}},function(e,t,n){"use strict";var r=function(e){function t(t,n,r,i,o){e.call(this,t,n,r.originalEvent,i,o),this.pointerEvent=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(n(303).a);t.a=r},function(e,t,n){"use strict";n.r(t),n.d(t,"BrowserRouter",(function(){return d})),n.d(t,"HashRouter",(function(){return f})),n.d(t,"Link",(function(){return y})),n.d(t,"NavLink",(function(){return w}));var r=n(46);n.d(t,"MemoryRouter",(function(){return r.a})),n.d(t,"Prompt",(function(){return r.b})),n.d(t,"Redirect",(function(){return r.c})),n.d(t,"Route",(function(){return r.d})),n.d(t,"Router",(function(){return r.e})),n.d(t,"StaticRouter",(function(){return r.f})),n.d(t,"Switch",(function(){return r.g})),n.d(t,"generatePath",(function(){return r.i})),n.d(t,"matchPath",(function(){return r.j})),n.d(t,"useHistory",(function(){return r.k})),n.d(t,"useLocation",(function(){return r.l})),n.d(t,"useParams",(function(){return r.m})),n.d(t,"useRouteMatch",(function(){return r.n})),n.d(t,"withRouter",(function(){return r.o}));var i=n(63),o=n(1),a=n.n(o),s=n(93),l=(n(2),n(32)),u=n(57),c=n(33),d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(s.createBrowserHistory)(t.props),t}return Object(i.a)(t,e),t.prototype.render=function(){return a.a.createElement(r.e,{history:this.history,children:this.props.children})},t}(a.a.Component);var f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(s.createHashHistory)(t.props),t}return Object(i.a)(t,e),t.prototype.render=function(){return a.a.createElement(r.e,{history:this.history,children:this.props.children})},t}(a.a.Component);var p=function(e,t){return"function"==typeof e?e(t):e},h=function(e,t){return"string"==typeof e?Object(s.createLocation)(e,null,null,t):e},m=function(e){return e},g=a.a.forwardRef;void 0===g&&(g=m);var v=g((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=Object(u.a)(e,["innerRef","navigate","onClick"]),s=o.target,c=Object(l.a)({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=m!==g&&t||n,a.a.createElement("a",c)}));var y=g((function(e,t){var n=e.component,i=void 0===n?v:n,o=e.replace,s=e.to,d=e.innerRef,f=Object(u.a)(e,["component","replace","to","innerRef"]);return a.a.createElement(r.h.Consumer,null,(function(e){e||Object(c.a)(!1);var n=e.history,r=h(p(s,e.location),e.location),u=r?n.createHref(r):"",v=Object(l.a)({},f,{href:u,navigate:function(){var t=p(s,e.location);(o?n.replace:n.push)(t)}});return m!==g?v.ref=t||d:v.innerRef=d,a.a.createElement(i,v)}))})),b=function(e){return e},_=a.a.forwardRef;void 0===_&&(_=b);var w=_((function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,o=e.activeClassName,s=void 0===o?"active":o,d=e.activeStyle,f=e.className,m=e.exact,g=e.isActive,v=e.location,w=e.sensitive,x=e.strict,k=e.style,E=e.to,S=e.innerRef,O=Object(u.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.a.createElement(r.h.Consumer,null,(function(e){e||Object(c.a)(!1);var n=v||e.location,o=h(p(E,n),n),u=o.pathname,T=u&&u.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),C=T?Object(r.j)(n.pathname,{path:T,exact:m,sensitive:w,strict:x}):null,A=!!(g?g(C,n):C),P=A?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(f,s):f,R=A?Object(l.a)({},k,{},d):k,M=Object(l.a)({"aria-current":A&&i||null,className:P,style:R,to:o},O);return b!==_?M.ref=t||S:M.innerRef=S,a.a.createElement(y,M)}))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveBackend=G,t.currentBackend=t.Backend=t.slugFromCustomPath=t.mergeExpandedEntries=t.expandSearchEntries=t.extractSearchFields=t.LocalStorageAuthStore=void 0;var r=A(n(426)),i=A(n(82)),o=A(n(211)),a=A(n(138)),s=A(n(457)),l=A(n(256)),u=A(n(217)),c=A(n(459)),d=n(4),f=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=C();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(460)),p=n(328),h=n(339),m=n(104),g=n(516),v=n(67),y=n(345),b=n(164),_=n(122),w=n(271),x=n(37),k=n(89),E=n(103),S=n(166),O=n(486),T=n(361);function C(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return C=function(){return e},e}function A(e){return e&&e.__esModule?e:{default:e}}function P(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{extractTemplateVars:j,dateParsers:D,expandPath:L}=S.stringTemplate;class N{constructor(){I(this,"storageKey","netlify-cms-user")}retrieve(){const e=window.localStorage.getItem(this.storageKey);return e&&JSON.parse(e)}store(e){window.localStorage.setItem(this.storageKey,JSON.stringify(e))}logout(){window.localStorage.removeItem(this.storageKey)}}function F(e,t){if(!e)return"backup";return`backup.${e}${t?"."+t:""}`}t.LocalStorageAuthStore=N;const B=(e,t)=>{const n=(0,i.default)(t.data,e);if(n)return String(n);{const n=e.split(".")[0];return t[n]?t[n]:""}},z=e=>t=>e.reduce((e,n)=>{const r=B(n,t);return r?`${e} ${r}`:e},"");t.extractSearchFields=z;const U=(e,t)=>e.reduce((e,n)=>{const r=t.reduce((e,t)=>{const r=L({data:n.data,path:t});return e.push(...r),e},[]);for(let t=0;t<r.length;t++)e.push(M(M({},n),{},{field:r[t]}));return e},[]);t.expandSearchEntries=U;const q=e=>{const t=e.map(e=>e.field),n={},o=e.reduce((e,t)=>{if(!e[t.slug]){const{field:r}=t,i=P(t,["field"]);e[t.slug]=i,n[t.slug]=(0,d.Set)()}const r=t.field.split(".");let i=e[t.slug].data;for(let e=0;e<r.length;e++)if(i=i[r[e]],Array.isArray(i)){const i=r.slice(0,e+1).join(".");n[t.slug]=n[t.slug].add(i)}return e},{});return Object.keys(o).forEach(e=>{const a=o[e].data;for(const o of n[e].toArray()){const e=(0,i.default)(a,o),n=e.filter((e,n)=>t.some(e=>(e+".").startsWith(`${o}.${n}.`)));n.sort((n,r)=>{const i=e.indexOf(n),a=e.indexOf(r),s=`${o}.${i}.`,l=`${o}.${a}.`;return t.findIndex(e=>(e+".").startsWith(s))-t.findIndex(e=>(e+".").startsWith(l))}),(0,r.default)(a,o,n)}}),Object.values(o)};t.mergeExpandedEntries=q;const H=(e,t)=>e.score>t.score?-1:e.score<t.score?1:0,W=(e,t)=>{const n=e.get("folder",""),r=t.toLowerCase().replace(n.toLowerCase(),"");return(0,k.join)((0,k.dirname)((0,a.default)(r,"/")),(0,k.basename)(r,(0,k.extname)(t)))};t.slugFromCustomPath=W;const V=(e,t)=>{if(!(0,v.selectHasMetaPath)(t))return e;return(0,k.dirname)(e).substr(t.get("folder").length+1)||"/"};class ${constructor(e,{backendName:t,authStore:n=null,config:r}={}){if(I(this,"implementation",void 0),I(this,"backendName",void 0),I(this,"authStore",void 0),I(this,"config",void 0),I(this,"user",void 0),I(this,"backupSync",void 0),I(this,"updateUserCredentials",e=>{const t=this.authStore.retrieve();if(t&&t.backendName===this.backendName)return this.user=M(M({},t),e),this.authStore.store(this.user),this.user}),I(this,"getToken",()=>this.implementation.getToken()),this.deleteAnonymousBackup(),this.config=r,this.implementation=e.init(this.config.toJS(),{useWorkflow:(0,h.selectUseWorkflow)(this.config),updateUserCredentials:this.updateUserCredentials,initialWorkflowStatus:E.status.first()}),this.backendName=t,this.authStore=n,null===this.implementation)throw new Error("Cannot instantiate a Backend with no implementation");this.backupSync=(0,x.asyncLock)()}async status(){let e={auth:{status:!1},api:{status:!1,statusPage:""}};for(let t=1;t<=3;t++){if(e=await this.implementation.status(),Object.values(e).every(e=>!0===e.status))return e;await new Promise(e=>setTimeout(e,1e3*t))}return e}currentUser(){if(this.user)return this.user;const e=this.authStore.retrieve();return e&&e.backendName===this.backendName?Promise.resolve(this.implementation.restoreUser(e)).then(e=>(this.user=M(M({},e),{},{backendName:this.backendName}),this.authStore.store(this.user),this.user)):Promise.resolve(null)}isGitBackend(){var e,t;return(null===(e=(t=this.implementation).isGitBackend)||void 0===e?void 0:e.call(t))||!1}authComponent(){return this.implementation.authComponent()}authenticate(e){return this.implementation.authenticate(e).then(e=>(this.user=M(M({},e),{},{backendName:this.backendName}),this.authStore&&this.authStore.store(this.user),this.user))}async logout(){try{await this.implementation.logout()}catch(e){console.warn("Error during logout",e.message)}finally{this.user=null,this.authStore&&this.authStore.logout()}}async entryExist(e,t,n,r){const i=r&&await this.implementation.unpublishedEntry({collection:e.get("name"),slug:n}).catch(e=>e instanceof x.EditorialWorkflowError&&e.notUnderEditorialWorkflow?Promise.resolve(!1):Promise.reject(e));if(i)return i;return await this.implementation.getEntry(t).then(({data:e})=>e).catch(()=>Promise.resolve(!1))}async generateUniqueSlug(e,t,n,r,i){const o=n.get("slug");let a;a=i?W(e,i):(0,w.slugFormatter)(e,t,o);let s=1,l=a;for(;r.includes(l)||await this.entryExist(e,(0,v.selectEntryPath)(e,l),l,(0,h.selectUseWorkflow)(n));)l=`${a}${(0,b.sanitizeChar)(" ",o)}${s++}`;return l}processEntries(e,t){const n=t.get("filter"),r=e.map(e=>(0,y.createEntry)(t.get("name"),(0,v.selectEntrySlug)(t,e.file.path),e.file.path,{raw:e.data||"",label:e.file.label,author:e.file.author,updatedOn:e.file.updatedOn})).map(this.entryWithFormat(t));return n?this.filterEntries({entries:r},n):r}async listEntries(e){var t;const n=(0,v.selectFolderEntryExtension)(e);let r;const i=e.get("type");if(i===O.FOLDER)r=()=>{var t;const r=(null===(t=e.get("nested"))||void 0===t?void 0:t.get("depth"))||(0,x.getPathDepth)(e.get("path",""));return this.implementation.entriesByFolder(e.get("folder"),n,r)};else{if(i!==O.FILES)throw new Error("Unknown collection type: "+i);{const t=e.get("files").map(e=>({path:e.get("file"),label:e.get("label")})).toArray();r=()=>this.implementation.entriesByFiles(t)}}const o=await r(),a=x.Cursor.create(o[x.CURSOR_COMPATIBILITY_SYMBOL]).wrapData({cursorType:"collectionEntries",collection:e});return{entries:this.processEntries(o,e),pagination:null===(t=a.meta)||void 0===t?void 0:t.get("page"),cursor:a}}async listAllEntries(e){if(e.get("folder")&&this.implementation.allEntriesByFolder){var t;const n=(0,v.selectFolderEntryExtension)(e),r=(null===(t=e.get("nested"))||void 0===t?void 0:t.get("depth"))||(0,x.getPathDepth)(e.get("path",""));return this.implementation.allEntriesByFolder(e.get("folder"),n,r).then(t=>this.processEntries(t,e))}const n=await this.listEntries(e),{entries:r}=n;let{cursor:i}=n;for(;i&&i.actions.includes("next");){const{entries:e,cursor:t}=await this.traverseCursor(i,"next");r.push(...e),i=t}return r}async search(e,t){const n=[],r=e.map(async e=>{const n=e.get("summary",""),r=j(n);let i=[];var o;e.get("type")===O.FILES?null===(o=e.get("files"))||void 0===o||o.forEach(e=>{const t=e.get("fields").map(e=>e.get("name")).toArray();i=[...i,...t]}):i=[(0,v.selectInferedField)(e,"title"),(0,v.selectInferedField)(e,"shortTitle"),(0,v.selectInferedField)(e,"author"),...r.map(t=>D[t]?(0,v.selectInferedField)(e,"date"):t)];const a=i.filter(Boolean),l=await this.listAllEntries(e);return f.filter(t,l,{extract:z((0,s.default)(a))})}).map(e=>e.catch(e=>(n.push(e),[]))),i=await Promise.all(r).then(e=>(0,u.default)(e));if(n.length>0)throw new Error({message:"Errors ocurred while searching entries locally!",errors:n});return{entries:i.filter(({score:e})=>e>5).sort(H).map(e=>e.original)}}async query(e,t,n,r,i){let o=await this.listAllEntries(e);r&&(o=o.filter(e=>e.slug===r));const a=U(o,t);let s=f.filter(n,a,{extract:e=>B(e.field,e)}).sort(H).map(e=>e.original);void 0!==i&&i>0&&(s=s.slice(0,i));return{query:n,hits:q(s)}}traverseCursor(e,t){const[n,r]=e.unwrapData(),i=n.get("collection");return this.implementation.traverseCursor(r,t).then(async({entries:e,cursor:t})=>({entries:this.processEntries(e,i),cursor:x.Cursor.create(t).wrapData({cursorType:"collectionEntries",collection:i})}))}async getLocalDraftBackup(e,t){const n=F(e.get("name"),t),r=await x.localForage.getItem(n);if(!r||!r.raw.trim())return{};const{raw:i,path:o}=r;let{mediaFiles:a=[]}=r;a=a.map(e=>e.file?M(M({},e),{},{url:URL.createObjectURL(e.file)}):e);const s=(0,v.selectFileEntryLabel)(e,t);return{entry:this.entryWithFormat(e)((0,y.createEntry)(e.get("name"),t,o,{raw:i,label:s,mediaFiles:a,meta:{path:V(o,e)}}))}}async persistLocalDraftBackup(e,t){try{await this.backupSync.acquire();const n=F(t.get("name"),e.get("slug")),r=this.entryToRaw(t,e);if(!r.trim())return;const i=await Promise.all(e.get("mediaFiles").toJS().map(async e=>{var t;if(null===(t=e.url)||void 0===t?void 0:t.startsWith("blob:")){const t=await fetch(e.url).then(e=>e.blob());return M(M({},e),{},{file:(0,x.blobToFileObj)(e.name,t)})}return e}));await x.localForage.setItem(n,{raw:r,path:e.get("path"),mediaFiles:i});return await x.localForage.setItem(F(),r)}catch(e){console.warn("persistLocalDraftBackup",e)}finally{this.backupSync.release()}}async deleteLocalDraftBackup(e,t){try{await this.backupSync.acquire(),await x.localForage.removeItem(F(e.get("name"),t)),t&&await x.localForage.removeItem(F(e.get("name")));return await this.deleteAnonymousBackup()}catch(e){console.warn("deleteLocalDraftBackup",e)}finally{this.backupSync.release()}}deleteAnonymousBackup(){return x.localForage.removeItem(F())}async getEntry(e,t,n){const r=(0,v.selectEntryPath)(t,n),i=(0,v.selectFileEntryLabel)(t,n),o=await this.implementation.getEntry(r);let a=(0,y.createEntry)(t.get("name"),n,o.file.path,{raw:o.data,label:i,mediaFiles:[],meta:{path:V(o.file.path,t)}});return a=this.entryWithFormat(t)(a),a=await this.processEntry(e,t,a),a}getMedia(){return this.implementation.getMedia()}getMediaFile(e){return this.implementation.getMediaFile(e)}getMediaDisplayURL(e){if(this.implementation.getMediaDisplayURL)return this.implementation.getMediaDisplayURL(e);const t=new Error("getMediaDisplayURL is not implemented by the current backend, but the backend returned a displayURL which was not a string!");return t.displayURL=e,Promise.reject(t)}entryWithFormat(e){return t=>{const n=(0,p.resolveFormat)(e,t);if(t&&void 0!==t.raw){const e=n&&(0,c.default)(n.fromFile.bind(n,t.raw))||{};return(0,l.default)(e)&&console.error(e),Object.assign(t,{data:(0,l.default)(e)?{}:e})}return n.fromFile(t)}}async processUnpublishedEntry(e,t,n){const{slug:r}=t;let i;if(e.get("type")===O.FILES){const t=e.get("files").find(e=>(null==e?void 0:e.get("name"))===r);i=(0,k.extname)(t.get("file"))}else i=(0,v.selectFolderEntryExtension)(e);const a=(0,o.default)(t.diffs.filter(e=>e.path.endsWith(i)),e=>e.path.length);let s="",l=!1,u=r;if(a.length<=0){const t=await this.implementation.getEntry((0,v.selectEntryPath)(e,r));s=t.data,u=t.file.path}else{const n=a[0];s=await this.implementation.unpublishedEntryDataFile(e.get("name"),t.slug,n.path,n.id),l=n.newFile,u=n.path}const c=[];if(n){const n=t.diffs.filter(e=>!e.path.endsWith(i)),o=await Promise.all(n.map(t=>this.implementation.unpublishedEntryMediaFile(e.get("name"),r,t.path,t.id)));c.push(...o.map(e=>M(M({},e),{},{draft:!0})))}const d=(0,y.createEntry)(e.get("name"),r,u,{raw:s,isModification:!l,label:e&&(0,v.selectFileEntryLabel)(e,r),mediaFiles:c,updatedOn:t.updatedAt,status:t.status,meta:{path:V(u,e)}});return this.entryWithFormat(e)(d)}async unpublishedEntries(e){const t=await this.implementation.unpublishedEntries();return{pagination:0,entries:(await Promise.all(t.map(async t=>{const n=await this.implementation.unpublishedEntry({id:t}),r=n.collection,i=e.find(e=>e.get("name")===r);if(!i)return console.warn(`Missing collection '${r}' for unpublished entry '${t}'`),null;return await this.processUnpublishedEntry(i,n,!1)}))).filter(Boolean)}}async processEntry(e,t,n){const r=(0,g.selectIntegration)(e.integrations,null,"assetStore"),i=(0,v.selectMediaFolders)(e,t,(0,d.fromJS)(n));if(i.length>0&&!r){const e=await Promise.all(i.map(e=>this.implementation.getMedia(e)));n.mediaFiles=n.mediaFiles.concat(...e)}else n.mediaFiles=n.mediaFiles.concat(e.mediaLibrary.get("files")||[]);return n}async unpublishedEntry(e,t,n){const r=await this.implementation.unpublishedEntry({collection:t.get("name"),slug:n});let i=await this.processUnpublishedEntry(t,r,!0);return i=await this.processEntry(e,t,i),i}getDeploy(e,t,n){const r=this.config.get("site_url");if(r&&!1!==this.config.get("show_preview_links"))return{url:(0,w.previewUrlFormatter)(r,e,t,this.config.get("slug"),n),status:"SUCCESS"}}async getDeployPreview(e,t,n,{maxAttempts:r=1,interval:i=5e3}={}){if(!this.implementation.getDeployPreview||!1===this.config.get("show_preview_links"))return;let o,a=0;for(;!o&&a<r;)a++,o=await this.implementation.getDeployPreview(e.get("name"),t),o||await new Promise(e=>setTimeout(()=>e(),i));return o?{url:(0,w.previewUrlFormatter)(o.url,e,t,this.config.get("slug"),n),status:o.status?o.status.toUpperCase():""}:void 0}async persistEntry({config:e,collection:t,entryDraft:n,assetProxies:r,usedSlugs:i,unpublished:o=!1,status:a}){const s=await this.invokePreSaveEvent(n.get("entry")),l=s&&n.setIn(["entry","data"],s)||n,u=l.getIn(["entry","newRecord"])||!1,c=(0,h.selectUseWorkflow)(e);let d;const f=(0,T.selectCustomPath)(t,l);if(u){if(!(0,v.selectAllowNewEntries)(t))throw new Error("Not allowed to create new entries in this collection");const n=await this.generateUniqueSlug(t,l.getIn(["entry","data"]),e,i,f),o=f||(0,v.selectEntryPath)(t,n);d={path:o,slug:n,raw:this.entryToRaw(t,l.get("entry"))},r.map(n=>{const r=n.path,i=(0,m.selectMediaFilePath)(e,t,l.get("entry").set("path",o),r,n.field);n.path=i})}else{const e=l.getIn(["entry","slug"]);d={path:l.getIn(["entry","path"]),slug:f&&!c?W(t,f):e,raw:this.entryToRaw(t,l.get("entry")),newPath:f}}const p=await this.currentUser(),g=M({newEntry:u,commitMessage:(0,w.commitMessageFormatter)(u?"create":"update",e,{collection:t,slug:d.slug,path:d.path,authorLogin:p.login,authorName:p.name},p.useOpenAuthoring),collectionName:t.get("name"),useWorkflow:c},{unpublished:o,status:a});return c||await this.invokePrePublishEvent(l.get("entry")),await this.implementation.persistEntry(d,r,g),await this.invokePostSaveEvent(l.get("entry")),c||await this.invokePostPublishEvent(l.get("entry")),d.slug}async invokeEventWithEntry(e,t){const{login:n,name:r}=await this.currentUser();return await(0,_.invokeEvent)({name:e,data:{entry:t,author:{login:n,name:r}}})}async invokePrePublishEvent(e){await this.invokeEventWithEntry("prePublish",e)}async invokePostPublishEvent(e){await this.invokeEventWithEntry("postPublish",e)}async invokePreUnpublishEvent(e){await this.invokeEventWithEntry("preUnpublish",e)}async invokePostUnpublishEvent(e){await this.invokeEventWithEntry("postUnpublish",e)}async invokePreSaveEvent(e){return await this.invokeEventWithEntry("preSave",e)}async invokePostSaveEvent(e){await this.invokeEventWithEntry("postSave",e)}async persistMedia(e,t){const n=await this.currentUser(),r={commitMessage:(0,w.commitMessageFormatter)("uploadMedia",e,{path:t.path,authorLogin:n.login,authorName:n.name},n.useOpenAuthoring)};return this.implementation.persistMedia(t,r)}async deleteEntry(e,t,n){const r=(0,v.selectEntryPath)(t,n);if(!(0,v.selectAllowDeletion)(t))throw new Error("Not allowed to delete entries in this collection");const i=e.config,o=await this.currentUser(),a=(0,w.commitMessageFormatter)("delete",i,{collection:t,slug:n,path:r,authorLogin:o.login,authorName:o.name},o.useOpenAuthoring),s=(0,m.selectEntry)(e.entries,t.get("name"),n);await this.invokePreUnpublishEvent(s);const l=await this.implementation.deleteFile(r,a);return await this.invokePostUnpublishEvent(s),l}async deleteMedia(e,t){const n=await this.currentUser(),r=(0,w.commitMessageFormatter)("deleteMedia",e,{path:t,authorLogin:n.login,authorName:n.name},n.useOpenAuthoring);return this.implementation.deleteFile(t,r)}persistUnpublishedEntry(e){return this.persistEntry(M(M({},e),{},{unpublished:!0}))}updateUnpublishedEntryStatus(e,t,n){return this.implementation.updateUnpublishedEntryStatus(e,t,n)}async publishUnpublishedEntry(e){const t=e.get("collection"),n=e.get("slug");await this.invokePrePublishEvent(e),await this.implementation.publishUnpublishedEntry(t,n),await this.invokePostPublishEvent(e)}deleteUnpublishedEntry(e,t){return this.implementation.deleteUnpublishedEntry(e,t)}entryToRaw(e,t){const n=(0,p.resolveFormat)(e,t.toJS()),r=this.fieldsOrder(e,t),i=(0,v.selectFieldsComments)(e,t);return n&&n.toFile(t.get("data").toJS(),r,i)}fieldsOrder(e,t){if(e.get("fields"))return e.get("fields").map(e=>e.get("name")).toArray();const n=(e.get("files")||(0,d.List)()).filter(e=>e.get("name")===t.get("slug")).get(0);if(null==n)throw new Error(`No file found for ${t.get("slug")} in ${e.get("name")}`);return n.get("fields").map(e=>e.get("name")).toArray()}filterEntries(e,t){return e.entries.filter(e=>{const n=e.data[t.get("field")];return Array.isArray(n)?n.includes(t.get("value")):n===t.get("value")})}}function G(e){const t=e.getIn(["backend","name"]);if(null==t)throw new Error("No backend defined in configuration");const n=new N,r=(0,_.getBackend)(t);if(r)return new $(r,{backendName:t,authStore:n,config:e});throw new Error("Backend not found: "+t)}t.Backend=$;const K=function(){let e;return t=>e||(e=G(t))}();t.currentBackend=K},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t,n){var r=n(155),i=n(253),o=n(456),a=n(254),s=n(109),l=/^\s+/;e.exports=function(e,t,n){if((e=s(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=r(t)))return e;var u=a(e),c=o(u,a(t));return i(u,c).join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerPreviewStyle=g,t.getPreviewStyles=v,t.registerPreviewTemplate=y,t.getPreviewTemplate=b,t.registerWidget=_,t.getWidget=w,t.getWidgets=x,t.resolveWidget=k,t.registerEditorComponent=E,t.getEditorComponents=S,t.registerWidgetValueSerializer=O,t.getWidgetValueSerializer=T,t.registerBackend=C,t.getBackend=A,t.registerMediaLibrary=P,t.getMediaLibrary=R,t.getEventListeners=I,t.registerEventListener=j,t.invokeEvent=D,t.removeEventListener=L,t.registerLocale=N,t.getLocale=F,t.default=void 0;var r=n(4),i=s(n(893)),o=n(107),a=s(n(894));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}const f=["prePublish","postPublish","preUnpublish","postUnpublish","preSave","postSave"],p={};f.forEach(e=>{p[e]=[]});const h={backends:{},templates:{},previewStyles:[],widgets:{},editorComponents:(0,r.Map)(),widgetValueSerializers:{},mediaLibraries:[],locales:{},eventHandlers:p};var m={registerPreviewStyle:g,getPreviewStyles:v,registerPreviewTemplate:y,getPreviewTemplate:b,registerWidget:_,getWidget:w,getWidgets:x,resolveWidget:k,registerEditorComponent:E,getEditorComponents:S,registerWidgetValueSerializer:O,getWidgetValueSerializer:T,registerBackend:C,getBackend:A,registerMediaLibrary:P,getMediaLibrary:R,registerLocale:N,getLocale:F,registerEventListener:j,removeEventListener:L,getEventListeners:I,invokeEvent:D};function g(e,t){h.previewStyles.push(c(c({},t),{},{value:e}))}function v(){return h.previewStyles}function y(e,t){h.templates[e]=t}function b(e){return h.templates[e]}function _(e,t,n,r={}){if(Array.isArray(e))e.forEach(e=>{"object"!=typeof e?console.error("Cannot register widget: "+e):_(e)});else if("string"==typeof e){const i="string"==typeof t?h.widgets[t].control:t;h.widgets[e]={control:i,preview:n,schema:r}}else if("object"==typeof e){const{name:t,controlComponent:n,previewComponent:r,schema:i={},allowMapValue:a,globalStyles:s}=e,u=l(e,["name","controlComponent","previewComponent","schema","allowMapValue","globalStyles"]);if(h.widgets[t]&&console.warn(o.oneLine`
+ Multiple widgets registered with name "${t}". Only the last widget registered with
+ this name will be used.
+ `),!n)throw Error(`Widget "${t}" registered without \`controlComponent\`.`);h.widgets[t]=c({control:n,preview:r,schema:i,globalStyles:s,allowMapValue:a},u)}else console.error("`registerWidget` failed, called with incorrect arguments.")}function w(e){return h.widgets[e]}function x(){return(0,i.default)(Object.entries(h.widgets),e=>e.map(([e,t])=>c({name:e},t)))}function k(e){return w(e||"string")||w("unknown")}function E(e){const t=(0,a.default)(e);if("code-block"===t.type){const e=h.editorComponents.find(e=>"code-block"===e.type);e&&(console.warn(o.oneLine`
+ Only one editor component of type "code-block" may be registered. Previously registered code
+ block component(s) will be overwritten.
+ `),h.editorComponents=h.editorComponents.delete(e.id))}h.editorComponents=h.editorComponents.set(t.id,t)}function S(){return h.editorComponents}function O(e,t){h.widgetValueSerializers[e]=t}function T(e){return h.widgetValueSerializers[e]}function C(e,t){e&&t?h.backends[e]?console.error(`Backend [${e}] already registered. Please choose a different name.`):h.backends[e]={init:(...e)=>new t(...e)}:console.error("Backend parameters invalid. example: CMS.registerBackend('myBackend', BackendClass)")}function A(e){return h.backends[e]}function P(e,t){if(h.mediaLibraries.find(t=>e.name===t.name))throw new Error(`A media library named ${e.name} has already been registered.`);h.mediaLibraries.push(c(c({},e),{},{options:t}))}function R(e){return h.mediaLibraries.find(t=>t.name===e)}function M(e){if(!f.includes(e))throw new Error(`Invalid event name '${e}'`)}function I(e){return M(e),[...h.eventHandlers[e]]}function j({name:e,handler:t},n={}){M(e),h.eventHandlers[e].push({handler:t,options:n})}async function D({name:e,data:t}){M(e);const n=h.eventHandlers[e];for(const{handler:r,options:i}of n)try{return await r(t,i)}catch(t){console.warn(`Failed running handler for event ${e} with message: ${t.message}`)}}function L({name:e,handler:t}){M(e),h.eventHandlers[e]=t?h.eventHandlers[e].filter(e=>e.handler!==t):[]}function N(e,t){e&&t?h.locales[e]=t:console.error("Locale parameters invalid. example: CMS.registerLocale('locale', phrases)")}function F(e){return h.locales[e]}t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.entryLoading=A,t.entryLoaded=P,t.entryLoadError=R,t.entriesLoading=M,t.entriesLoaded=I,t.entriesFailed=j,t.sortByField=L,t.filterByField=function(e,t){return async(n,r)=>{const i=r(),o=(0,_.selectIsFetching)(i.entries,e.get("name"));if(n({type:"FILTER_ENTRIES_REQUEST",payload:{collection:e.get("name"),filter:t}}),!o)try{const r=await D(i,e);n({type:"FILTER_ENTRIES_SUCCESS",payload:{collection:e.get("name"),filter:t,entries:r}})}catch(r){n({type:"FILTER_ENTRIES_FAILURE",payload:{collection:e.get("name"),filter:t,error:r}})}}},t.changeViewStyle=function(e){return{type:"CHANGE_VIEW_STYLE",payload:{style:e}}},t.entryPersisting=N,t.entryPersisted=F,t.entryPersistFail=B,t.entryDeleting=z,t.entryDeleted=U,t.entryDeleteFail=q,t.emptyDraftCreated=H,t.createDraftFromEntry=W,t.draftDuplicateEntry=V,t.discardDraft=function(){return{type:"DRAFT_DISCARD"}},t.changeDraftField=function(e,t,n,r){return{type:"DRAFT_CHANGE_FIELD",payload:{field:e,value:t,metadata:n,entries:r}}},t.changeDraftFieldValidation=function(e,t){return{type:"DRAFT_VALIDATION_ERRORS",payload:{uniquefieldId:e,errors:t}}},t.clearFieldErrors=function(){return{type:"DRAFT_CLEAR_ERRORS"}},t.localBackupRetrieved=$,t.loadLocalBackup=function(){return{type:"DRAFT_CREATE_FROM_LOCAL_BACKUP"}},t.addDraftEntryMediaFile=function(e){return{type:"ADD_DRAFT_ENTRY_MEDIA_FILE",payload:e}},t.removeDraftEntryMediaFile=function({id:e}){return{type:"REMOVE_DRAFT_ENTRY_MEDIA_FILE",payload:{id:e}}},t.persistLocalBackup=function(e,t){return(n,r)=>{const i=r();return(0,s.currentBackend)(i.config).persistLocalDraftBackup(e,t)}},t.createDraftDuplicateFromEntry=function(e){return t=>{t((0,b.waitUntil)({predicate:({type:e})=>"DRAFT_CREATE_EMPTY"===e,run:()=>t(V(e))}))}},t.retrieveLocalBackup=function(e,t){return async(n,r)=>{const o=r(),a=(0,s.currentBackend)(o.config),{entry:l}=await a.getLocalDraftBackup(e,t);if(l){const t=l.mediaFiles||[],o=await Promise.all(t.map(t=>t.file||t.url?(0,h.createAssetProxy)({path:t.path,file:t.file,url:t.url,field:t.field}):(0,g.getAsset)({collection:e,entry:(0,i.fromJS)(l),path:t.path,field:t.field})(n,r)));return n((0,g.addAssets)(o)),n($(l))}}},t.deleteLocalBackup=function(e,t){return(n,r)=>{const i=r();return(0,s.currentBackend)(i.config).deleteLocalDraftBackup(e,t)}},t.loadEntry=G,t.tryLoadEntry=K,t.loadEntries=X,t.traverseCollectionCursor=function(e,t){return async(n,r)=>{const i=r(),o=e.get("name");if(i.entries.getIn(["pages",""+o,"isFetching"]))return;const a=(0,s.currentBackend)(i.config),{action:l,append:u}=Y.has(t)?Y.get(t).toJS():{action:t,append:!1},c=(0,d.selectCollectionEntriesCursor)(i.cursors,e.get("name"));if(c.meta.get("usingOldPaginationAPI",!1))return n(X(e,c.data.get("nextPage")));try{var f;n(M(e));const{entries:t,cursor:r}=await function(e,t,n){if(!t.actions.has(n))throw new Error(`The current cursor does not support the pagination action "${n}".`);return e.traverseCursor(t,n)}(a,c,l),i=null===(f=r.meta)||void 0===f?void 0:f.get("page");return n(I(e,t,i,Q(r),u))}catch(t){return console.error(t),n(C({message:{details:t,key:"ui.toast.onFailToLoadEntries"},kind:"danger",dismissAfter:8e3})),Promise.reject(n(j(e,t)))}}},t.createEmptyDraft=function(e,t){return async(n,r)=>{new URLSearchParams(t).forEach((t,n)=>{e=(0,c.updateFieldByKey)(e,n,e=>e.set("default",(e=>{if(["true","True","TRUE"].includes(e))return!0;if(["false","False","FALSE"].includes(e))return!1;return(e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"))(e)})(t)))});const o=e.get("fields",(0,i.List)()),a=J(o.filter(e=>!e.get("meta")).toList()),l=J(o.filter(e=>!0===e.get("meta")).toList()),u=r(),d=(0,s.currentBackend)(u.config);e.has("media_folder")||await(0,y.waitForMediaLibraryToLoad)(n,r());let f=(0,p.createEntry)(e.get("name"),"","",{data:a,mediaFiles:[],meta:l});f=await d.processEntry(u,e,f),n(H(f))}},t.createEmptyDraftData=J,t.getMediaAssets=Z,t.persistEntry=function(e){return async(t,n)=>{const r=n(),i=r.entryDraft,o=i.get("fieldsErrors"),l=(0,u.selectPublishedSlugs)(r,e.get("name"));if(!o.isEmpty()){return o.some(e=>e.some(e=>e.type&&e.type===m.default.PRESENCE))&&t(C({message:{key:"ui.toast.missingRequiredField"},kind:"danger",dismissAfter:8e3})),Promise.reject()}const d=(0,s.currentBackend)(r.config),f=i.get("entry"),p=Z({entry:f}),h=(0,c.selectFields)(e,f.get("slug")),g=(0,a.serializeValues)(i.getIn(["entry","data"]),h),v=f.set("data",g),b=i.set("entry",v);return t(N(e,v)),d.persistEntry({config:r.config,collection:e,entryDraft:b,assetProxies:p,usedSlugs:l}).then(n=>{t(C({message:{key:"ui.toast.entrySaved"},kind:"success",dismissAfter:4e3})),p.length>0&&t((0,y.loadMedia)()),t(F(e,v,n)),e.has("nested")&&t(X(e)),f.get("slug")!==n&&(t(G(e,n)),(0,x.navigateToEntry)(e.get("name"),n))}).catch(n=>(console.error(n),t(C({message:{details:n,key:"ui.toast.onFailToPersist"},kind:"danger",dismissAfter:8e3})),Promise.reject(t(B(e,v,n)))))}},t.deleteEntry=function(e,t){return(n,r)=>{const i=r(),o=(0,s.currentBackend)(i.config);return n(z(e,t)),o.deleteEntry(i,e,t).then(()=>n(U(e,t))).catch(r=>(n(C({message:{details:r,key:"ui.toast.onFailToDelete"},kind:"danger",dismissAfter:8e3})),console.error(r),Promise.reject(n(q(e,t,r)))))}},t.validateMetaField=function(e,t,n,r,o){if(n.get("meta")&&"path"===n.get("name")){var a;if(!r)return ee(r,"invalidPath",o);const n=r.split("/").map((0,k.getProcessSegment)(e.config.get("slug"))).join("/");if(r!==n)return ee(r,"invalidPath",o);const s=(0,w.selectCustomPath)(t,(0,i.fromJS)({entry:{meta:{path:r}}})),l=s?(0,_.selectEntryByPath)(e.entries,t.get("name"),s):void 0,u=null==l?void 0:l.get("path"),c=null===(a=e.entryDraft)||void 0===a?void 0:a.getIn(["entry","path"]);if(u&&u!==c)return ee(r,"pathExists",o)}return{error:!1}},t.CHANGE_VIEW_STYLE=t.REMOVE_DRAFT_ENTRY_MEDIA_FILE=t.ADD_DRAFT_ENTRY_MEDIA_FILE=t.ENTRY_DELETE_FAILURE=t.ENTRY_DELETE_SUCCESS=t.ENTRY_DELETE_REQUEST=t.ENTRY_PERSIST_FAILURE=t.ENTRY_PERSIST_SUCCESS=t.ENTRY_PERSIST_REQUEST=t.DRAFT_CREATE_DUPLICATE_FROM_ENTRY=t.DRAFT_CREATE_FROM_LOCAL_BACKUP=t.DRAFT_LOCAL_BACKUP_RETRIEVED=t.DRAFT_CLEAR_ERRORS=t.DRAFT_VALIDATION_ERRORS=t.DRAFT_CHANGE_FIELD=t.DRAFT_DISCARD=t.DRAFT_CREATE_EMPTY=t.DRAFT_CREATE_FROM_ENTRY=t.FILTER_ENTRIES_FAILURE=t.FILTER_ENTRIES_SUCCESS=t.FILTER_ENTRIES_REQUEST=t.SORT_ENTRIES_FAILURE=t.SORT_ENTRIES_SUCCESS=t.SORT_ENTRIES_REQUEST=t.ENTRIES_FAILURE=t.ENTRIES_SUCCESS=t.ENTRIES_REQUEST=t.ENTRY_FAILURE=t.ENTRY_SUCCESS=t.ENTRY_REQUEST=void 0;var r=E(n(263)),i=n(4),o=n(133),a=n(490),s=n(119),l=n(344),u=n(100),c=n(67),d=n(358),f=n(37),p=n(345),h=n(219),m=E(n(359)),g=n(165),v=n(360),y=n(141),b=n(515),_=n(104),w=n(361),x=n(152),k=n(271);function E(e){return e&&e.__esModule?e:{default:e}}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{notifSend:C}=o.actions;t.ENTRY_REQUEST="ENTRY_REQUEST";t.ENTRY_SUCCESS="ENTRY_SUCCESS";t.ENTRY_FAILURE="ENTRY_FAILURE";t.ENTRIES_REQUEST="ENTRIES_REQUEST";t.ENTRIES_SUCCESS="ENTRIES_SUCCESS";t.ENTRIES_FAILURE="ENTRIES_FAILURE";t.SORT_ENTRIES_REQUEST="SORT_ENTRIES_REQUEST";t.SORT_ENTRIES_SUCCESS="SORT_ENTRIES_SUCCESS";t.SORT_ENTRIES_FAILURE="SORT_ENTRIES_FAILURE";t.FILTER_ENTRIES_REQUEST="FILTER_ENTRIES_REQUEST";t.FILTER_ENTRIES_SUCCESS="FILTER_ENTRIES_SUCCESS";t.FILTER_ENTRIES_FAILURE="FILTER_ENTRIES_FAILURE";t.DRAFT_CREATE_FROM_ENTRY="DRAFT_CREATE_FROM_ENTRY";t.DRAFT_CREATE_EMPTY="DRAFT_CREATE_EMPTY";t.DRAFT_DISCARD="DRAFT_DISCARD";t.DRAFT_CHANGE_FIELD="DRAFT_CHANGE_FIELD";t.DRAFT_VALIDATION_ERRORS="DRAFT_VALIDATION_ERRORS";t.DRAFT_CLEAR_ERRORS="DRAFT_CLEAR_ERRORS";t.DRAFT_LOCAL_BACKUP_RETRIEVED="DRAFT_LOCAL_BACKUP_RETRIEVED";t.DRAFT_CREATE_FROM_LOCAL_BACKUP="DRAFT_CREATE_FROM_LOCAL_BACKUP";t.DRAFT_CREATE_DUPLICATE_FROM_ENTRY="DRAFT_CREATE_DUPLICATE_FROM_ENTRY";t.ENTRY_PERSIST_REQUEST="ENTRY_PERSIST_REQUEST";t.ENTRY_PERSIST_SUCCESS="ENTRY_PERSIST_SUCCESS";t.ENTRY_PERSIST_FAILURE="ENTRY_PERSIST_FAILURE";t.ENTRY_DELETE_REQUEST="ENTRY_DELETE_REQUEST";t.ENTRY_DELETE_SUCCESS="ENTRY_DELETE_SUCCESS";t.ENTRY_DELETE_FAILURE="ENTRY_DELETE_FAILURE";t.ADD_DRAFT_ENTRY_MEDIA_FILE="ADD_DRAFT_ENTRY_MEDIA_FILE";t.REMOVE_DRAFT_ENTRY_MEDIA_FILE="REMOVE_DRAFT_ENTRY_MEDIA_FILE";function A(e,t){return{type:"ENTRY_REQUEST",payload:{collection:e.get("name"),slug:t}}}function P(e,t){return{type:"ENTRY_SUCCESS",payload:{collection:e.get("name"),entry:t}}}function R(e,t,n){return{type:"ENTRY_FAILURE",payload:{error:e,collection:t.get("name"),slug:n}}}function M(e){return{type:"ENTRIES_REQUEST",payload:{collection:e.get("name")}}}function I(e,t,n,r,i=!0){return{type:"ENTRIES_SUCCESS",payload:{collection:e.get("name"),entries:t,page:n,cursor:f.Cursor.create(r),append:i}}}function j(e,t){return{type:"ENTRIES_FAILURE",error:"Failed to load entries",payload:t.toString(),meta:{collection:e.get("name")}}}t.CHANGE_VIEW_STYLE="CHANGE_VIEW_STYLE";const D=async(e,t)=>{const n=(0,s.currentBackend)(e.config),r=(0,u.selectIntegration)(e,t.get("name"),"listEntries"),i=r?(0,l.getIntegrationProvider)(e.integrations,n.getToken,r):n;return await i.listAllEntries(t)};function L(e,t,n=v.SortDirection.Ascending){return async(r,i)=>{const o=i(),a=(0,_.selectIsFetching)(o.entries,e.get("name"));if(r({type:"SORT_ENTRIES_REQUEST",payload:{collection:e.get("name"),key:t,direction:n}}),!a)try{const i=await D(o,e);r({type:"SORT_ENTRIES_SUCCESS",payload:{collection:e.get("name"),key:t,direction:n,entries:i}})}catch(i){r({type:"SORT_ENTRIES_FAILURE",payload:{collection:e.get("name"),key:t,direction:n,error:i}})}}}function N(e,t){return{type:"ENTRY_PERSIST_REQUEST",payload:{collectionName:e.get("name"),entrySlug:t.get("slug")}}}function F(e,t,n){return{type:"ENTRY_PERSIST_SUCCESS",payload:{collectionName:e.get("name"),entrySlug:t.get("slug"),slug:n}}}function B(e,t,n){return{type:"ENTRY_PERSIST_FAILURE",error:"Failed to persist entry",payload:{collectionName:e.get("name"),entrySlug:t.get("slug"),error:n.toString()}}}function z(e,t){return{type:"ENTRY_DELETE_REQUEST",payload:{collectionName:e.get("name"),entrySlug:t}}}function U(e,t){return{type:"ENTRY_DELETE_SUCCESS",payload:{collectionName:e.get("name"),entrySlug:t}}}function q(e,t,n){return{type:"ENTRY_DELETE_FAILURE",payload:{collectionName:e.get("name"),entrySlug:t,error:n.toString()}}}function H(e){return{type:"DRAFT_CREATE_EMPTY",payload:e}}function W(e){return{type:"DRAFT_CREATE_FROM_ENTRY",payload:{entry:e}}}function V(e){return{type:"DRAFT_CREATE_DUPLICATE_FROM_ENTRY",payload:(0,p.createEntry)(e.get("collection"),"","",{data:e.get("data"),mediaFiles:e.get("mediaFiles").toJS()})}}function $(e){return{type:"DRAFT_LOCAL_BACKUP_RETRIEVED",payload:{entry:e}}}function G(e,t){return async(n,r)=>{await(0,y.waitForMediaLibraryToLoad)(n,r()),n(A(e,t));try{const i=await K(r(),e,t);n(P(e,i)),n(W(i))}catch(r){console.error(r),n(C({message:{details:r.message,key:"ui.toast.onFailToLoadEntries"},kind:"danger",dismissAfter:8e3})),n(R(r,e,t))}}}async function K(e,t,n){const r=(0,s.currentBackend)(e.config);return await r.getEntry(e,t,n)}const Y=(0,i.fromJS)({append_next:{action:"next",append:!0}}),Q=e=>f.Cursor.create(e).updateStore("actions",e=>e.union(Y.filter(t=>e.has(t.get("action"))).keySeq()));function X(e,t=0){return async(n,r)=>{if(e.get("isFetching"))return;const i=r(),o=(0,_.selectEntriesSortFields)(i.entries,e.get("name"));if(o&&o.length>0){const t=o[0];return n(L(e,t.get("key"),t.get("direction")))}const a=(0,s.currentBackend)(i.config),c=(0,u.selectIntegration)(i,e.get("name"),"listEntries"),d=c?(0,l.getIntegrationProvider)(i.integrations,a.getToken,c):a,p=!!(t&&!isNaN(t)&&t>0);n(M(e));try{let r=await(e.has("nested")?d.listAllEntries(e).then(e=>({entries:e})):d.listEntries(e,t));r=O(O({},r),{},{cursor:c?f.Cursor.create({actions:["next"],meta:{usingOldPaginationAPI:!0},data:{nextPage:t+1}}):f.Cursor.create(r.cursor)}),n(I(e,r.cursor.meta.get("usingOldPaginationAPI")?r.entries.reverse():r.entries,r.pagination,Q(r.cursor),p))}catch(t){return n(C({message:{details:t,key:"ui.toast.onFailToLoadEntries"},kind:"danger",dismissAfter:8e3})),Promise.reject(n(j(e,t)))}}}function J(e,t=!0){return e.reduce((e,n)=>{const o=e,a=n,s=a.get("field")||a.get("fields"),l="list"==a.get("widget"),u=a.get("name"),c=a.get("default",null),d=e=>[[{}],{}].some(t=>(0,r.default)(e,t));if(i.List.isList(s)){const e=l?[J(s)]:J(s);return d(e)?l&&i.List.isList(c)&&c.isEmpty()&&(o[u]=c):o[u]=e,o}if(i.Map.isMap(s)){const e=l?[J((0,i.List)([s]),!1)]:J((0,i.List)([s]));return d(e)?l&&i.List.isList(c)&&c.isEmpty()&&(o[u]=c):o[u]=e,o}if(null!==c){if(!t)return c;o[u]=c}return o},{})}function Z({entry:e}){return e.get("mediaFiles").toArray().filter(e=>e.get("draft")).map(e=>(0,h.createAssetProxy)({path:e.get("path"),file:e.get("file"),url:e.get("url")}))}const ee=(e,t,n)=>({error:{type:m.default.CUSTOM,message:n("editor.editorControlPane.widget."+t,{path:e})}})},function(e,t,n){var r=n(907)();e.exports=r},function(e,t,n){"use strict";class r{constructor(e){const t={},n=this._getOverriddenMethods(this,t);for(const r of Object.keys(n))"function"==typeof n[r]&&(t[r]=e[r],e[r]=n[r])}_getOverriddenMethods(){throw new Error("Not implemented")}}r.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let n=0;n<e.__mixins.length;n++)if(e.__mixins[n].constructor===t)return e.__mixins[n];const r=new t(e,n);return e.__mixins.push(r),r},e.exports=r},function(e,t,n){!function(e){"use strict";var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]},n={};function r(e,t){var r=e.match(function(e){var t=n[e];return t||(n[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}(t));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function i(e,t){return new RegExp((t?"^":"")+"</s*"+e+"s*>","i")}function o(e,t){for(var n in e)for(var r=t[n]||(t[n]=[]),i=e[n],o=i.length-1;o>=0;o--)r.unshift(i[o])}e.defineMode("htmlmixed",(function(n,a){var s=e.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:a.multilineTagIndentFactor,multilineTagIndentPastTag:a.multilineTagIndentPastTag}),l={},u=a&&a.tags,c=a&&a.scriptTypes;if(o(t,l),u&&o(u,l),c)for(var d=c.length-1;d>=0;d--)l.script.unshift(["type",c[d].matches,c[d].mode]);function f(t,o){var a,u=s.token(t,o.htmlState),c=/\btag\b/.test(u);if(c&&!/[<>\s\/]/.test(t.current())&&(a=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&l.hasOwnProperty(a))o.inTag=a+" ";else if(o.inTag&&c&&/>$/.test(t.current())){var d=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var p=">"==t.current()&&function(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(!i[0]||i[1].test(r(t,i[0])))return i[2]}}(l[d[1]],d[2]),h=e.getMode(n,p),m=i(d[1],!0),g=i(d[1],!1);o.token=function(e,t){return e.match(m,!1)?(t.token=f,t.localState=t.localMode=null,null):function(e,t,n){var r=e.current(),i=r.search(t);return i>-1?e.backUp(r.length-i):r.match(/<\/?$/)&&(e.backUp(r.length),e.match(t,!1)||e.match(r)),n}(e,g,t.localMode.token(e,t.localState))},o.localMode=h,o.localState=e.startState(h,s.indent(o.htmlState,"",""))}else o.inTag&&(o.inTag+=t.current(),t.eol()&&(o.inTag+=" "));return u}return{startState:function(){return{token:f,inTag:null,localMode:null,localState:null,htmlState:e.startState(s)}},copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n,htmlState:e.copyState(s,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n,r){return!t.localMode||/^\s*<\//.test(n)?s.indent(t.htmlState,n,r):t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||s}}}}),"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}(n(5),n(233),n(198),n(232))},function(e,t,n){"use strict";var r=n(174),i={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},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=f(n,v);try{u(t,v,y)}catch(e){}}}}return t}},function(e,t,n){"use strict";var r=n(26),i=n(3),o=n(40),a=n(10),s=n(62),l=n(77),u=n(72),c=n(73),d=n(207),f=n(145),p=n(302),h=n(299),m=n(96),g=function(e){function t(t,n){e.call(this),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===n||Array.isArray(t[0])?this.setCoordinates(t,n):this.setFlatCoordinates(n,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.appendCoordinate=function(e){this.flatCoordinates?Object(r.c)(this.flatCoordinates,e):this.flatCoordinates=e.slice(),this.changed()},t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout)},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(i.e)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(l.e)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(l.d)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,t,n,r))},t.prototype.forEachSegment=function(e){return Object(h.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.getCoordinateAtM=function(e,t){if(this.layout!=o.a.XYM&&this.layout!=o.a.XYZM)return null;var n=void 0!==t&&t;return Object(d.b)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n)},t.prototype.getCoordinates=function(){return Object(c.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getCoordinateAt=function(e,t){return Object(d.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t)},t.prototype.getLength=function(){return Object(p.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[];return n.length=Object(m.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new t(n,o.a.XY)},t.prototype.getType=function(){return a.a.LINE_STRING},t.prototype.intersectsExtent=function(e){return Object(f.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(u.b)(this.flatCoordinates,0,e,this.stride),this.changed()},t}(s.a);t.a=g},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},i={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};var o=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},u=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return s(e)?e:e.replace(o,"-$&").toLowerCase()})),c=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===i[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function d(e,t,n,r){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 f={name:n.name,styles:n.styles,next:f},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)f={name:i.name,styles:i.styles,next:f},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=d(e,t,n[i],!1);else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":l(a)&&(r+=u(o)+":"+c(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=d(e,t,a,!1);switch(o){case"animation":case"animationName":r+=u(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var f=0;f<a.length;f++)l(a[f])&&(r+=u(o)+":"+c(o,a[f])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=f,a=n(e);return f=o,d(e,t,a,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var f,p=/label:\s*([^\s;\n{]+)\s*;/g;var h=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,o="";f=void 0;var a=e[0];null==a||void 0===a.raw?(i=!1,o+=d(n,t,a,!1)):o+=a[0];for(var s=1;s<e.length;s++)o+=d(n,t,e[s],46===o.charCodeAt(o.length-1)),i&&(o+=a[s]);p.lastIndex=0;for(var l,u="";null!==(l=p.exec(o));)u+="-"+l[1];return{name:r(o)+u,styles:o,next:f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsApp=void 0;var r,i=n(417),o=(r=n(139))&&r.__esModule?r:{default:r};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(1151),"undefined"!=typeof window&&console.log("netlify-cms-app 2.12.20");const u=s(s({},i.NetlifyCmsCore),{},{moment:o.default});t.NetlifyCmsApp=u;var c=i.NetlifyCmsCore;t.default=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+r,i,e.sheet,!0);i=i.next}while(void 0!==i)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=Object.prototype,i=r.toString,o=r.hasOwnProperty,a=new Map;function s(e,t){try{return function e(t,n){if(t===n)return!0;var r=i.call(t),a=i.call(n);if(r!==a)return!1;switch(r){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":if(l(t,n))return!0;var s=Object.keys(t),u=Object.keys(n),c=s.length;if(c!==u.length)return!1;for(var d=0;d<c;++d)if(!o.call(n,s[d]))return!1;for(d=0;d<c;++d){var f=s[d];if(!e(t[f],n[f]))return!1}return!0;case"[object Error]":return t.name===n.name&&t.message===n.message;case"[object Number]":if(t!=t)return n!=n;case"[object Boolean]":case"[object Date]":return+t==+n;case"[object RegExp]":case"[object String]":return t==""+n;case"[object Map]":case"[object Set]":if(t.size!==n.size)return!1;if(l(t,n))return!0;for(var p=t.entries(),h="[object Map]"===r;;){var m=p.next();if(m.done)break;var g=m.value,v=g[0],y=g[1];if(!n.has(v))return!1;if(h&&!e(y,n.get(v)))return!1}return!0}return!1}(e,t)}finally{a.clear()}}function l(e,t){var n=a.get(e);if(n){if(n.has(t))return!0}else a.set(e,n=new Set);return n.add(t),!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reducer=t.actions=t.Notifs=void 0;var r=a(n(699)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(420)),o=a(n(700));function a(e){return e&&e.__esModule?e:{default:e}}t.Notifs=o.default,t.actions=i,t.reducer=r.default},function(e,t,n){var r=n(182);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(180),i=n(319);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(215),i=n(452),o=n(321);e.exports=function(e,t){return o(i(e,t,r),e+"")}},function(e,t,n){var r=n(155),i=n(253),o=n(455),a=n(456),s=n(254),l=n(109),u=/^\s+|\s+$/g;e.exports=function(e,t,n){if((e=l(e))&&(n||void 0===t))return e.replace(u,"");if(!e||!(t=r(t)))return e;var c=s(e),d=s(t),f=a(c,d),p=o(c,d)+1;return i(c,f,p).join("")}},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Et(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=h(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function g(e){var t=p(NaN);return null!=e?f(h(t),e):h(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=r.momentProperties=[],y=!1;function b(e,t){var n,r,i;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=h(t)),l(t._locale)||(e._locale=t._locale),v.length>0)for(n=0;n<v.length;n++)l(i=t[r=v[n]])||(e[r]=i);return e}function _(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,r.updateOffset(this),y=!1)}function w(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function x(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,s,l=[];for(o=0;o<arguments.length;o++){if(i="","object"==typeof arguments[o]){for(s in i+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];l.push(i)}x(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var E,S={};function O(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),S[e]||(x(t),S[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function C(e,t){var n,r=f({},e);for(n in t)a(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)a(e,n)&&!a(t,n)&&o(e[n])&&(r[n]=f({},r[n]));return r}function A(e){null!=e&&this.set(e)}function P(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,M=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},j={};function D(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(j[e]=i),t&&(j[t[0]]=function(){return P(i.apply(this,arguments),t[1],t[2])}),n&&(j[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function L(e,t){return e.isValid()?(t=N(t,e.localeData()),I[t]=I[t]||function(e){var t,n,r,i=e.match(R);for(t=0,n=i.length;t<n;t++)j[i[t]]?i[t]=j[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=T(i[r])?i[r].call(t,e):i[r];return o}}(t),I[t](e)):e.localeData().invalidDate()}function N(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(M.lastIndex=0;n>=0&&M.test(e);)e=e.replace(M,r),M.lastIndex=0,n-=1;return e}var F={};function B(e,t){var n=e.toLowerCase();F[n]=F[n+"s"]=F[t]=e}function z(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function U(e){var t,n,r={};for(n in e)a(e,n)&&(t=z(n))&&(r[t]=e[n]);return r}var q={};function H(e,t){q[e]=t}function W(e){return e%4==0&&e%100!=0||e%400==0}function V(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function $(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=V(t)),n}function G(e,t){return function(n){return null!=n?(Y(this,e,n),r.updateOffset(this,t),this):K(this,e)}}function K(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Y(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&W(e.year())&&1===e.month()&&29===e.date()?(n=$(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),we(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Q,X=/\d/,J=/\d\d/,Z=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,re=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,ae=/\d{1,4}/,se=/[+-]?\d{1,6}/,le=/\d+/,ue=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,de=/Z|[+-]\d\d(?::?\d\d)?/gi,fe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function pe(e,t,n){Q[e]=T(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return a(Q,e)?Q[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Q={};var ge,ve={};function ye(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=$(e)}),n=0;n<e.length;n++)ve[e[n]]=r}function be(e,t){ye(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function _e(e,t,n){null!=t&&a(ve,e)&&ve[e](t,n._a,n,e)}function we(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?W(e)?29:28:31-r%7%2}ge=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},D("M",["MM",2],"Mo",(function(){return this.month()+1})),D("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),D("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),B("month","M"),H("month",8),pe("M",ne),pe("MM",ne,J),pe("MMM",(function(e,t){return t.monthsShortRegex(e)})),pe("MMMM",(function(e,t){return t.monthsRegex(e)})),ye(["M","MM"],(function(e,t){t[1]=$(e)-1})),ye(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[1]=i:h(n).invalidMonth=e}));var xe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ke="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ee=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Se=fe,Oe=fe;function Te(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=ge.call(this._shortMonthsParse,a))?i:null:-1!==(i=ge.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=ge.call(this._shortMonthsParse,a))||-1!==(i=ge.call(this._longMonthsParse,a))?i:null:-1!==(i=ge.call(this._longMonthsParse,a))||-1!==(i=ge.call(this._shortMonthsParse,a))?i:null}function Ce(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=$(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),we(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ae(e){return null!=e?(Ce(this,e),r.updateOffset(this,!0),this):K(this,"Month")}function Pe(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=me(r[t]),i[t]=me(i[t]);for(t=0;t<24;t++)o[t]=me(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Re(e){return W(e)?366:365}D("Y",0,0,(function(){var e=this.year();return e<=9999?P(e,4):"+"+e})),D(0,["YY",2],0,(function(){return this.year()%100})),D(0,["YYYY",4],0,"year"),D(0,["YYYYY",5],0,"year"),D(0,["YYYYYY",6,!0],0,"year"),B("year","y"),H("year",1),pe("Y",ue),pe("YY",ne,J),pe("YYYY",ae,ee),pe("YYYYY",se,te),pe("YYYYYY",se,te),ye(["YYYYY","YYYYYY"],0),ye("YYYY",(function(e,t){t[0]=2===e.length?r.parseTwoDigitYear(e):$(e)})),ye("YY",(function(e,t){t[0]=r.parseTwoDigitYear(e)})),ye("Y",(function(e,t){t[0]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return $(e)+($(e)>68?1900:2e3)};var Me=G("FullYear",!0);function Ie(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function je(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function De(e,t,n){var r=7+t-n;return-(7+je(e,0,r).getUTCDay()-t)%7+r-1}function Le(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+De(e,r,i);return s<=0?a=Re(o=e-1)+s:s>Re(e)?(o=e+1,a=s-Re(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Ne(e,t,n){var r,i,o=De(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Fe(i=e.year()-1,t,n):a>Fe(e.year(),t,n)?(r=a-Fe(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Fe(e,t,n){var r=De(e,t,n),i=De(e+1,t,n);return(Re(e)-r+i)/7}function Be(e,t){return e.slice(t,7).concat(e.slice(0,t))}D("w",["ww",2],"wo","week"),D("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),H("week",5),H("isoWeek",5),pe("w",ne),pe("ww",ne,J),pe("W",ne),pe("WW",ne,J),be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=$(e)})),D("d",0,"do","day"),D("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),D("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),D("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),D("e",0,0,"weekday"),D("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),pe("d",ne),pe("e",ne),pe("E",ne),pe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),pe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),pe("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:h(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,r){t[r]=$(e)}));var ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),He=fe,We=fe,Ve=fe;function $e(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=ge.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ge.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._shortWeekdaysParse,a))||-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ge.call(this._shortWeekdaysParse,a))||-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:-1!==(i=ge.call(this._minWeekdaysParse,a))||-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._shortWeekdaysParse,a))?i:null}function Ge(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=me(this.weekdaysMin(n,"")),i=me(this.weekdaysShort(n,"")),o=me(this.weekdays(n,"")),a.push(r),s.push(i),l.push(o),u.push(r),u.push(i),u.push(o);a.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Ye(e,t){D(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}D("H",["HH",2],0,"hour"),D("h",["hh",2],0,Ke),D("k",["kk",2],0,(function(){return this.hours()||24})),D("hmm",0,0,(function(){return""+Ke.apply(this)+P(this.minutes(),2)})),D("hmmss",0,0,(function(){return""+Ke.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),D("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),D("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),Ye("a",!0),Ye("A",!1),B("hour","h"),H("hour",13),pe("a",Qe),pe("A",Qe),pe("H",ne),pe("h",ne),pe("k",ne),pe("HH",ne,J),pe("hh",ne,J),pe("kk",ne,J),pe("hmm",re),pe("hmmss",ie),pe("Hmm",re),pe("Hmmss",ie),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var r=$(e);t[3]=24===r?0:r})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=$(e),h(n).bigHour=!0})),ye("hmm",(function(e,t,n){var r=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r)),h(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r,2)),t[5]=$(e.substr(i)),h(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var r=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r))})),ye("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r,2)),t[5]=$(e.substr(i))}));var Xe,Je=G("Hours",!0),Ze={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xe,monthsShort:ke,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:qe,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function rt(e){return e?e.toLowerCase().replace("_","-"):e}function it(t){var n=null;if(void 0===et[t]&&void 0!==e&&e&&e.exports)try{n=Xe._abbr,function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),ot(n)}catch(e){et[t]=null}return et[t]}function ot(e,t){var n;return e&&((n=l(t)?st(e):at(e,t))?Xe=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Xe._abbr}function at(e,t){if(null!==t){var n,r=Ze;if(t.abbr=e,null!=et[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=et[e]._config;else if(null!=t.parentLocale)if(null!=et[t.parentLocale])r=et[t.parentLocale]._config;else{if(null==(n=it(t.parentLocale)))return tt[t.parentLocale]||(tt[t.parentLocale]=[]),tt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return et[e]=new A(C(r,t)),tt[e]&&tt[e].forEach((function(e){at(e.name,e.config)})),ot(e),et[e]}return delete et[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Xe;if(!i(e)){if(t=it(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=rt(e[o]).split("-")).length,n=(n=rt(e[o+1]))?n.split("-"):null;t>0;){if(r=it(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&nt(i,n)>=t-1)break;t--}o++}return Xe}(e)}function lt(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>we(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ht=/^\/?Date\((-?\d+)/i,mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,gt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vt(e){var t,n,r,i,o,a,s=e._i,l=ut.exec(s)||ct.exec(s);if(l){for(h(e).iso=!0,t=0,n=ft.length;t<n;t++)if(ft[t][1].exec(l[1])){i=ft[t][0],r=!1!==ft[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=pt.length;t<n;t++)if(pt[t][1].exec(l[3])){o=(l[2]||" ")+pt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!dt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),xt(e)}else e._isValid=!1}function yt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function bt(e){var t,n,r,i,o,a,s,l,u=mt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(n=u[4],r=u[3],i=u[2],o=u[5],a=u[6],s=u[7],l=[yt(n),ke.indexOf(r),parseInt(i,10),parseInt(o,10),parseInt(a,10)],s&&l.push(parseInt(s,10)),t=l,!function(e,t,n){return!e||Ue.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return gt[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(u[8],u[9],u[10]),e._d=je.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function _t(e,t,n){return null!=e?e:null!=t?t:n}function wt(e){var t,n,i,o,a,s=[];if(!e._d){for(i=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,i,o,a,s,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=_t(t.GG,e._a[0],Ne(St(),1,4).year),r=_t(t.W,1),((i=_t(t.E,1))<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=Ne(St(),o,a),n=_t(t.gg,e._a[0],u.year),r=_t(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>Fe(n,o,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Le(n,r,i,o,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=_t(e._a[0],i[0]),(e._dayOfYear>Re(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=je(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?je:Ie).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}function xt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],h(e).empty=!0;var t,n,i,o,a,s,l=""+e._i,u=l.length,c=0;for(i=N(e._f,e._locale).match(R)||[],t=0;t<i.length;t++)o=i[t],(n=(l.match(he(o,e))||[])[0])&&((a=l.substr(0,l.indexOf(n))).length>0&&h(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),c+=n.length),j[o]?(n?h(e).empty=!1:h(e).unusedTokens.push(o),_e(o,n,e)):e._strict&&!n&&h(e).unusedTokens.push(o);h(e).charsLeftOver=u-c,l.length>0&&h(e).unusedInput.push(l),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),wt(e),lt(e)}else bt(e);else vt(e)}function kt(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new _(lt(t)):(c(t)?e._d=t:i(n)?function(e){var t,n,r,i,o,a,s=!1;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,a=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],xt(t),m(t)&&(a=!0),o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(s=!0));f(e,n||t)}(e):n?xt(e):function(e){var t=e._i;l(t)?e._d=new Date(r.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=ht.exec(e._i);null===t?(vt(e),!1===e._isValid&&(delete e._isValid,bt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),wt(e)):o(t)?function(e){if(!e._d){var t=U(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),wt(e)}}(e):u(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function Et(e,t,n,r,a){var l,u={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&s(e)||i(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=n,u._i=e,u._f=t,u._strict=r,(l=new _(lt(kt(u))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function St(e,t,n,r){return Et(e,t,n,r,!1)}r.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Ot=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),Tt=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function Ct(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return St();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var At=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pt(e){var t=U(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,u=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(a(e,t)&&(-1===ge.call(At,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<At.length;++n)if(e[At[n]]){if(r)return!1;parseFloat(e[At[n]])!==$(e[At[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*u+1e3*l*60*60,this._days=+s+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=st(),this._bubble()}function Rt(e){return e instanceof Pt}function Mt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function It(e,t){D(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+P(~~(e/60),2)+t+P(~~e%60,2)}))}It("Z",":"),It("ZZ",""),pe("Z",de),pe("ZZ",de),ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Dt(de,e)}));var jt=/([\+\-]|\d\d)/gi;function Dt(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(jt)||["-",0,0])[1]+$(n[2]))?0:"+"===n[0]?r:-r}function Lt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(w(e)||c(e)?e.valueOf():St(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):St(e).local()}function Nt(e){return-Math.round(e._d.getTimezoneOffset())}function Ft(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Bt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ut(e,t){var n,r,i,o,s,l,c=e,d=null;return Rt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(d=Bt.exec(e))?(n="-"===d[1]?-1:1,c={y:0,d:$(d[2])*n,h:$(d[3])*n,m:$(d[4])*n,s:$(d[5])*n,ms:$(Mt(1e3*d[6]))*n}):(d=zt.exec(e))?(n="-"===d[1]?-1:1,c={y:qt(d[2],n),M:qt(d[3],n),w:qt(d[4],n),d:qt(d[5],n),h:qt(d[6],n),m:qt(d[7],n),s:qt(d[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(o=St(c.from),s=St(c.to),i=o.isValid()&&s.isValid()?(s=Lt(s,o),o.isBefore(s)?l=Ht(o,s):((l=Ht(s,o)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=i.milliseconds,c.M=i.months),r=new Pt(c),Rt(e)&&a(e,"_locale")&&(r._locale=e._locale),Rt(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function qt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ht(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Wt(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Vt(this,Ut(n,r),e),this}}function Vt(e,t,n,i){var o=t._milliseconds,a=Mt(t._days),s=Mt(t._months);e.isValid()&&(i=null==i||i,s&&Ce(e,K(e,"Month")+s*n),a&&Y(e,"Date",K(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,a||s))}Ut.fn=Pt.prototype,Ut.invalid=function(){return Ut(NaN)};var $t=Wt(1,"add"),Gt=Wt(-1,"subtract");function Kt(e){return"string"==typeof e||e instanceof String}function Yt(e){return w(e)||c(e)||Kt(e)||u(e)||function(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&Kt(e)})).length),t&&n}(e)||function(e){var t,n,r=o(e)&&!s(e),i=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<l.length;t+=1)n=l[t],i=i||a(e,n);return r&&i}(e)||null==e}function Qt(e){var t,n=o(e)&&!s(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)r=r||a(e,i[t]);return n&&r}function Xt(e,t){if(e.date()<t.date())return-Xt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Jt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=st(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Zt=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function en(){return this._locale}function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function an(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(me(a[e].name)),n.push(me(a[e].abbr)),i.push(me(a[e].narrow)),o.push(me(a[e].name)),o.push(me(a[e].abbr)),o.push(me(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function sn(e,t){D(0,[e,e.length],0,t)}function ln(e,t,n,r,i){var o;return null==e?Ne(this,r,i).year:(t>(o=Fe(e,r,i))&&(t=o),un.call(this,e,t,n,r,i))}function un(e,t,n,r,i){var o=Le(e,t,n,r,i),a=je(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}D("N",0,0,"eraAbbr"),D("NN",0,0,"eraAbbr"),D("NNN",0,0,"eraAbbr"),D("NNNN",0,0,"eraName"),D("NNNNN",0,0,"eraNarrow"),D("y",["y",1],"yo","eraYear"),D("y",["yy",2],0,"eraYear"),D("y",["yyy",3],0,"eraYear"),D("y",["yyyy",4],0,"eraYear"),pe("N",on),pe("NN",on),pe("NNN",on),pe("NNNN",(function(e,t){return t.erasNameRegex(e)})),pe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?h(n).era=i:h(n).invalidEra=e})),pe("y",le),pe("yy",le),pe("yyy",le),pe("yyyy",le),pe("yo",(function(e,t){return t._eraYearOrdinalRegex||le})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)})),D(0,["gg",2],0,(function(){return this.weekYear()%100})),D(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),pe("G",ue),pe("g",ue),pe("GG",ne,J),pe("gg",ne,J),pe("GGGG",ae,ee),pe("gggg",ae,ee),pe("GGGGG",se,te),pe("ggggg",se,te),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=$(e)})),be(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),D("Q",0,"Qo","quarter"),B("quarter","Q"),H("quarter",7),pe("Q",X),ye("Q",(function(e,t){t[1]=3*($(e)-1)})),D("D",["DD",2],"Do","date"),B("date","D"),H("date",9),pe("D",ne),pe("DD",ne,J),pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=$(e.match(ne)[0])}));var cn=G("Date",!0);D("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),H("dayOfYear",4),pe("DDD",oe),pe("DDDD",Z),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=$(e)})),D("m",["mm",2],0,"minute"),B("minute","m"),H("minute",14),pe("m",ne),pe("mm",ne,J),ye(["m","mm"],4);var dn=G("Minutes",!1);D("s",["ss",2],0,"second"),B("second","s"),H("second",15),pe("s",ne),pe("ss",ne,J),ye(["s","ss"],5);var fn,pn,hn=G("Seconds",!1);for(D("S",0,0,(function(){return~~(this.millisecond()/100)})),D(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),D(0,["SSS",3],0,"millisecond"),D(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),D(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),D(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),D(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),D(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),D(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),B("millisecond","ms"),H("millisecond",16),pe("S",oe,X),pe("SS",oe,J),pe("SSS",oe,Z),fn="SSSS";fn.length<=9;fn+="S")pe(fn,le);function mn(e,t){t[6]=$(1e3*("0."+e))}for(fn="S";fn.length<=9;fn+="S")ye(fn,mn);pn=G("Milliseconds",!1),D("z",0,0,"zoneAbbr"),D("zz",0,0,"zoneName");var gn=_.prototype;function vn(e){return e}gn.add=$t,gn.calendar=function(e,t){1===arguments.length&&(Yt(arguments[0])?(e=arguments[0],t=void 0):Qt(arguments[0])&&(t=arguments[0],e=void 0));var n=e||St(),i=Lt(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&(T(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,St(n)))},gn.clone=function(){return new _(this)},gn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Lt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=z(t)){case"year":o=Xt(this,r)/12;break;case"month":o=Xt(this,r);break;case"quarter":o=Xt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:V(o)},gn.endOf=function(e){var t,n;if(void 0===(e=z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},gn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=L(this,e);return this.localeData().postformat(t)},gn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||St(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},gn.fromNow=function(e){return this.from(St(),e)},gn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||St(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},gn.toNow=function(e){return this.to(St(),e)},gn.get=function(e){return T(this[e=z(e)])?this[e]():this},gn.invalidAt=function(){return h(this).overflow},gn.isAfter=function(e,t){var n=w(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},gn.isBefore=function(e,t){var n=w(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},gn.isBetween=function(e,t,n,r){var i=w(e)?e:St(e),o=w(t)?t:St(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n)))},gn.isSame=function(e,t){var n,r=w(e)?e:St(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},gn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},gn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},gn.isValid=function(){return m(this)},gn.lang=Zt,gn.locale=Jt,gn.localeData=en,gn.max=Tt,gn.min=Ot,gn.parsingFlags=function(){return f({},h(this))},gn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:q[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=U(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(T(this[e=z(e)]))return this[e](t);return this},gn.startOf=function(e){var t,n;if(void 0===(e=z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}return this._d.setTime(t),r.updateOffset(this,!0),this},gn.subtract=Gt,gn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},gn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},gn.toDate=function(){return new Date(this.valueOf())},gn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?L(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",L(n,"Z")):L(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},gn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(gn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),gn.toJSON=function(){return this.isValid()?this.toISOString():null},gn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},gn.unix=function(){return Math.floor(this.valueOf()/1e3)},gn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},gn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},gn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},gn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},gn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},gn.eraYear=function(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,i=this.startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()},gn.year=Me,gn.isLeapYear=function(){return W(this.year())},gn.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},gn.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},gn.quarter=gn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},gn.month=Ae,gn.daysInMonth=function(){return we(this.year(),this.month())},gn.week=gn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},gn.isoWeek=gn.isoWeeks=function(e){var t=Ne(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},gn.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},gn.weeksInWeekYear=function(){var e=this.localeData()._week;return Fe(this.weekYear(),e.dow,e.doy)},gn.isoWeeksInYear=function(){return Fe(this.year(),1,4)},gn.isoWeeksInISOWeekYear=function(){return Fe(this.isoWeekYear(),1,4)},gn.date=cn,gn.day=gn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},gn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},gn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},gn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},gn.hour=gn.hours=Je,gn.minute=gn.minutes=dn,gn.second=gn.seconds=hn,gn.millisecond=gn.milliseconds=pn,gn.utcOffset=function(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Dt(de,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Nt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Vt(this,Ut(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Nt(this)},gn.utc=function(e){return this.utcOffset(0,e)},gn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nt(this),"m")),this},gn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Dt(ce,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},gn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?St(e).utcOffset():0,(this.utcOffset()-e)%60==0)},gn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},gn.isLocal=function(){return!!this.isValid()&&!this._isUTC},gn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},gn.isUtc=Ft,gn.isUTC=Ft,gn.zoneAbbr=function(){return this._isUTC?"UTC":""},gn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},gn.dates=k("dates accessor is deprecated. Use date instead.",cn),gn.months=k("months accessor is deprecated. Use month instead",Ae),gn.years=k("years accessor is deprecated. Use year instead",Me),gn.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),gn.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=kt(t))._a?(e=t._isUTC?p(t._a):St(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&$(e[r])!==$(t[r]))&&a++;return a+o}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var yn=A.prototype;function bn(e,t,n,r){var i=st(),o=p().set(r,t);return i[n](o,e)}function _n(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=bn(e,r,n,"month");return i}function wn(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,o=st(),a=e?o._week.dow:0,s=[];if(null!=n)return bn(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=bn(t,(i+a)%7,r,"day");return s}yn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=vn,yn.postformat=vn,yn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return T(i)?i(e,t,n,r):i.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)a(e,n)&&(T(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},yn.eras=function(e,t){var n,i,o,a=this._eras||st("en")._eras;for(n=0,i=a.length;n<i;++n){switch(typeof a[n].since){case"string":o=r(a[n].since).startOf("day"),a[n].since=o.valueOf()}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=r(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}}return a},yn.erasParse=function(e,t,n){var r,i,o,a,s,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([o,a,s].indexOf(e)>=0)return l[r]},yn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},yn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex},yn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex},yn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex},yn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ee).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ee.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return Te.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},yn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Oe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Se),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Ne(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Be(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?Be(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?Be(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return $e.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=He),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=We),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ve),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===$(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",st);var xn=Math.abs;function kn(e,t,n,r){var i=Ut(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function En(e){return e<0?Math.floor(e):Math.ceil(e)}function Sn(e){return 4800*e/146097}function On(e){return 146097*e/4800}function Tn(e){return function(){return this.as(e)}}var Cn=Tn("ms"),An=Tn("s"),Pn=Tn("m"),Rn=Tn("h"),Mn=Tn("d"),In=Tn("w"),jn=Tn("M"),Dn=Tn("Q"),Ln=Tn("y");function Nn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Fn=Nn("milliseconds"),Bn=Nn("seconds"),zn=Nn("minutes"),Un=Nn("hours"),qn=Nn("days"),Hn=Nn("months"),Wn=Nn("years"),Vn=Math.round,$n={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Gn(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var Kn=Math.abs;function Yn(e){return(e>0)-(e<0)||+e}function Qn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,l=Kn(this._milliseconds)/1e3,u=Kn(this._days),c=Kn(this._months),d=this.asSeconds();return d?(e=V(l/60),t=V(e/60),l%=60,e%=60,n=V(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=Yn(this._months)!==Yn(d)?"-":"",a=Yn(this._days)!==Yn(d)?"-":"",s=Yn(this._milliseconds)!==Yn(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?a+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var Xn=Pt.prototype;return Xn.isValid=function(){return this._isValid},Xn.abs=function(){var e=this._data;return this._milliseconds=xn(this._milliseconds),this._days=xn(this._days),this._months=xn(this._months),e.milliseconds=xn(e.milliseconds),e.seconds=xn(e.seconds),e.minutes=xn(e.minutes),e.hours=xn(e.hours),e.months=xn(e.months),e.years=xn(e.years),this},Xn.add=function(e,t){return kn(this,e,t,1)},Xn.subtract=function(e,t){return kn(this,e,t,-1)},Xn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=z(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Sn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(On(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Xn.asMilliseconds=Cn,Xn.asSeconds=An,Xn.asMinutes=Pn,Xn.asHours=Rn,Xn.asDays=Mn,Xn.asWeeks=In,Xn.asMonths=jn,Xn.asQuarters=Dn,Xn.asYears=Ln,Xn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*$(this._months/12):NaN},Xn._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*En(On(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=V(o/1e3),l.seconds=e%60,t=V(e/60),l.minutes=t%60,n=V(t/60),l.hours=n%24,a+=V(n/24),i=V(Sn(a)),s+=i,a-=En(On(i)),r=V(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},Xn.clone=function(){return Ut(this)},Xn.get=function(e){return e=z(e),this.isValid()?this[e+"s"]():NaN},Xn.milliseconds=Fn,Xn.seconds=Bn,Xn.minutes=zn,Xn.hours=Un,Xn.days=qn,Xn.weeks=function(){return V(this.days()/7)},Xn.months=Hn,Xn.years=Wn,Xn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=$n;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},$n,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var i=Ut(e).abs(),o=Vn(i.as("s")),a=Vn(i.as("m")),s=Vn(i.as("h")),l=Vn(i.as("d")),u=Vn(i.as("M")),c=Vn(i.as("w")),d=Vn(i.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,Gn.apply(null,f)}(this,!i,o,n),i&&(r=n.pastFuture(+this,r)),n.postformat(r)},Xn.toISOString=Qn,Xn.toString=Qn,Xn.toJSON=Qn,Xn.locale=Jt,Xn.localeData=en,Xn.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),Xn.lang=Zt,D("X",0,0,"unix"),D("x",0,0,"valueOf"),pe("x",ue),pe("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date($(e))})),
+//! moment.js
+r.version="2.27.0",t=St,r.fn=gn,r.min=function(){var e=[].slice.call(arguments,0);return Ct("isBefore",e)},r.max=function(){var e=[].slice.call(arguments,0);return Ct("isAfter",e)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=p,r.unix=function(e){return St(1e3*e)},r.months=function(e,t){return _n(e,t,"months")},r.isDate=c,r.locale=ot,r.invalid=g,r.duration=Ut,r.isMoment=w,r.weekdays=function(e,t,n){return wn(e,t,n,"weekdays")},r.parseZone=function(){return St.apply(null,arguments).parseZone()},r.localeData=st,r.isDuration=Rt,r.monthsShort=function(e,t){return _n(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return wn(e,t,n,"weekdaysMin")},r.defineLocale=at,r.updateLocale=function(e,t){if(null!=t){var n,r,i=Ze;null!=et[e]&&null!=et[e].parentLocale?et[e].set(C(et[e]._config,t)):(null!=(r=it(e))&&(i=r._config),t=C(i,t),null==r&&(t.abbr=e),(n=new A(t)).parentLocale=et[e],et[e]=n),ot(e)}else null!=et[e]&&(null!=et[e].parentLocale?(et[e]=et[e].parentLocale,e===ot()&&ot(e)):null!=et[e]&&delete et[e]);return et[e]},r.locales=function(){return E(et)},r.weekdaysShort=function(e,t,n){return wn(e,t,n,"weekdaysShort")},r.normalizeUnits=z,r.relativeTimeRounding=function(e){return void 0===e?Vn:"function"==typeof e&&(Vn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==$n[e]&&(void 0===t?$n[e]:($n[e]=t,"s"===e&&($n.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=gn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(135)(e))},function(e,t,n){var r=n(968),i=n(969);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMediaLibrary=function(e){const t={show:e.show||(()=>{}),hide:e.hide||(()=>{}),onClearControl:e.onClearControl||(()=>{}),onRemoveControl:e.onRemoveControl||(()=>{}),enableStandalone:e.enableStandalone||(()=>{})};return{type:"MEDIA_LIBRARY_CREATE",payload:t}},t.clearMediaControl=function(e){return(t,n)=>{const r=n().mediaLibrary.get("externalLibrary");r&&r.onClearControl({id:e})}},t.removeMediaControl=function(e){return(t,n)=>{const r=n().mediaLibrary.get("externalLibrary");r&&r.onRemoveControl({id:e})}},t.openMediaLibrary=function(e={}){return(t,n)=>{const i=n().mediaLibrary.get("externalLibrary");if(i){const{controlID:t,value:n,config:o=(0,r.Map)(),allowMultiple:a,forImage:s}=e;i.show({id:t,value:n,config:o.toJS(),allowMultiple:a,imagesOnly:s})}t({type:"MEDIA_LIBRARY_OPEN",payload:e})}},t.closeMediaLibrary=function(){return(e,t)=>{const n=t().mediaLibrary.get("externalLibrary");n&&n.hide(),e({type:"MEDIA_LIBRARY_CLOSE"})}},t.insertMedia=function(e,t){return(n,r)=>{const i=r(),o=i.config,a=i.entryDraft.get("entry"),s=i.entryDraft.getIn(["entry","collection"]),l=i.collections.get(s);n({type:"MEDIA_INSERT",payload:{mediaPath:e=Array.isArray(e)?e.map(e=>(0,u.selectMediaFilePublicPath)(o,l,e,a,t)):(0,u.selectMediaFilePublicPath)(o,l,e,a,t)}})}},t.removeInsertedMedia=function(e){return{type:"MEDIA_REMOVE_INSERTED",payload:{controlID:e}}},t.loadMedia=function(e={}){const{delay:t=0,query:n="",page:r=1,privateUpload:i}=e;return async(e,o)=>{const s=o(),u=(0,a.currentBackend)(s.config),c=(0,l.selectIntegration)(s,null,"assetStore");if(c){const t=(0,d.getIntegrationProvider)(s.integrations,u.getToken,c);e(k(r));try{const o=await t.retrieve(n,r,i);return e(E(o,{page:r,canPaginate:!0,dynamicSearch:!0,dynamicSearchQuery:n,privateUpload:i}))}catch(t){return e(S({privateUpload:i}))}}e(k(r));const f=()=>u.getMedia().then(t=>e(E(t))).catch(t=>{console.error(t),404===t.status?(console.log("This 404 was expected and handled appropriately."),e(E([]))):e(S())});return t>0?new Promise(e=>{setTimeout(()=>e(f()),t)}):f()}},t.persistMedia=function(e,t={}){const{privateUpload:n,field:r}=t;return async(t,i)=>{const m=i(),g=(0,a.currentBackend)(m.config),v=(0,l.selectIntegration)(m,null,"assetStore"),y=(0,c.selectMediaFiles)(m,r),x=(0,h.sanitizeSlug)(e.name.toLowerCase(),m.config.get("slug")),k=y.find(e=>e.name.toLowerCase()===x),E=(0,u.selectEditingDraft)(m.entryDraft);if(!v&&k){if(!window.confirm(k.name+" already exists. Do you want to replace it?"))return;await t(w(k,{privateUpload:n}))}!v&&E||t(O());try{let i,a;if(v)try{const t=(0,d.getIntegrationProvider)(m.integrations,g.getToken,v),r=await t.upload(e,n);i=(0,s.createAssetProxy)({url:r.asset.url,path:r.asset.url})}catch(t){i=(0,s.createAssetProxy)({file:e,path:x})}else{if(n)throw new Error("The Private Upload option is only available for Asset Store Integration");{const t=m.entryDraft.get("entry"),n=m.collections.get(null==t?void 0:t.get("collection")),o=(0,u.selectMediaFilePath)(m.config,n,t,x,r);i=(0,s.createAssetProxy)({file:e,path:o,field:r})}}if(t((0,f.addAsset)(i)),v){a=_({id:await(0,o.getBlobSHA)(e),file:e,assetProxy:i,draft:!1})}else{if(E){return a=_({id:await(0,o.getBlobSHA)(e),file:e,assetProxy:i,draft:E}),t((0,p.addDraftEntryMediaFile)(a))}a=await g.persistMedia(m.config,i)}return t(T(a,{privateUpload:n}))}catch(e){return console.error(e),t(b({message:"Failed to persist media: "+e,kind:"danger",dismissAfter:8e3})),t(C({privateUpload:n}))}}},t.deleteMedia=w,t.getMediaFile=async function(e,t){const n=(0,a.currentBackend)(e.config),{url:r}=await n.getMediaFile(t);return{url:r}},t.loadMediaDisplayURL=x,t.mediaLoading=k,t.mediaLoaded=E,t.mediaLoadFailed=S,t.mediaPersisting=O,t.mediaPersisted=T,t.mediaPersistFailed=C,t.mediaDeleting=A,t.mediaDeleted=P,t.mediaDeleteFailed=R,t.mediaDisplayURLRequest=M,t.mediaDisplayURLSuccess=I,t.mediaDisplayURLFailure=j,t.waitForMediaLibraryToLoad=async function(e,t){!1===t.mediaLibrary.get("isLoading")||t.mediaLibrary.get("externalLibrary")||await(0,m.waitUntilWithTimeout)(e,e=>({predicate:({type:e})=>"MEDIA_LOAD_SUCCESS"===e||"MEDIA_LOAD_FAILURE"===e,run:()=>e()}))},t.getMediaDisplayURL=async function(e,t,n){const r=(0,c.selectMediaDisplayURL)(t,n.id);let i;if(r.get("url"))i=r.get("url");else if(r.get("err"))i=null;else{const t=n.id,o=(0,m.waitUntilWithTimeout)(e,e=>({predicate:({type:e,payload:n})=>("MEDIA_DISPLAY_URL_SUCCESS"===e||"MEDIA_DISPLAY_URL_FAILURE"===e)&&n.key===t,run:(t,n,r)=>e(r.payload.url)}));r.get("isFetching")||e(x(n)),i=await o}return i},t.MEDIA_DISPLAY_URL_FAILURE=t.MEDIA_DISPLAY_URL_SUCCESS=t.MEDIA_DISPLAY_URL_REQUEST=t.MEDIA_DELETE_FAILURE=t.MEDIA_DELETE_SUCCESS=t.MEDIA_DELETE_REQUEST=t.MEDIA_PERSIST_FAILURE=t.MEDIA_PERSIST_SUCCESS=t.MEDIA_PERSIST_REQUEST=t.MEDIA_LOAD_FAILURE=t.MEDIA_LOAD_SUCCESS=t.MEDIA_LOAD_REQUEST=t.MEDIA_REMOVE_INSERTED=t.MEDIA_INSERT=t.MEDIA_LIBRARY_CREATE=t.MEDIA_LIBRARY_CLOSE=t.MEDIA_LIBRARY_OPEN=void 0;var r=n(4),i=n(133),o=n(37),a=n(119),s=n(219),l=n(100),u=n(104),c=n(270),d=n(344),f=n(165),p=n(123),h=n(164),m=n(515);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(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}const{notifSend:b}=i.actions;t.MEDIA_LIBRARY_OPEN="MEDIA_LIBRARY_OPEN";t.MEDIA_LIBRARY_CLOSE="MEDIA_LIBRARY_CLOSE";t.MEDIA_LIBRARY_CREATE="MEDIA_LIBRARY_CREATE";t.MEDIA_INSERT="MEDIA_INSERT";t.MEDIA_REMOVE_INSERTED="MEDIA_REMOVE_INSERTED";t.MEDIA_LOAD_REQUEST="MEDIA_LOAD_REQUEST";t.MEDIA_LOAD_SUCCESS="MEDIA_LOAD_SUCCESS";t.MEDIA_LOAD_FAILURE="MEDIA_LOAD_FAILURE";t.MEDIA_PERSIST_REQUEST="MEDIA_PERSIST_REQUEST";t.MEDIA_PERSIST_SUCCESS="MEDIA_PERSIST_SUCCESS";t.MEDIA_PERSIST_FAILURE="MEDIA_PERSIST_FAILURE";t.MEDIA_DELETE_REQUEST="MEDIA_DELETE_REQUEST";t.MEDIA_DELETE_SUCCESS="MEDIA_DELETE_SUCCESS";t.MEDIA_DELETE_FAILURE="MEDIA_DELETE_FAILURE";t.MEDIA_DISPLAY_URL_REQUEST="MEDIA_DISPLAY_URL_REQUEST";t.MEDIA_DISPLAY_URL_SUCCESS="MEDIA_DISPLAY_URL_SUCCESS";function _({id:e,file:t,assetProxy:n,draft:r}){return{id:e,name:(0,o.basename)(n.path),displayURL:n.url,draft:r,file:t,size:t.size,url:n.url,path:n.path,field:n.field}}function w(e,t={}){const{privateUpload:n}=t;return async(t,r)=>{const i=r(),o=(0,a.currentBackend)(i.config),s=(0,l.selectIntegration)(i,null,"assetStore");if(s){const r=(0,d.getIntegrationProvider)(i.integrations,o.getToken,s);t(A());try{return await r.delete(e.id),t(P(e,{privateUpload:n}))}catch(e){return console.error(e),t(b({message:"Failed to delete media: "+e.message,kind:"danger",dismissAfter:8e3})),t(R({privateUpload:n}))}}try{if(e.draft)t((0,f.removeAsset)(e.path)),t((0,p.removeDraftEntryMediaFile)({id:e.id}));else{const n=(0,u.selectEditingDraft)(i.entryDraft);t(A()),t((0,f.removeAsset)(e.path)),await o.deleteMedia(i.config,e.path),t(P(e)),n&&t((0,p.removeDraftEntryMediaFile)({id:e.id}))}}catch(e){return console.error(e),t(b({message:"Failed to delete media: "+e.message,kind:"danger",dismissAfter:8e3})),t(R())}}}function x(e){return async(t,n)=>{const{displayURL:r,id:i}=e,o=n(),s=(0,c.selectMediaDisplayURL)(o,i);if(!i||!r||s.get("url")||s.get("isFetching")||s.get("err"))return Promise.resolve();if("string"==typeof r)return t(M(i)),void t(I(i,r));try{const e=(0,a.currentBackend)(o.config);t(M(i));const n=await e.getMediaDisplayURL(r);if(!n)throw new Error("No display URL was returned!");t(I(i,n))}catch(e){t(j(i,e))}}}function k(e){return{type:"MEDIA_LOAD_REQUEST",payload:{page:e}}}function E(e,t={}){return{type:"MEDIA_LOAD_SUCCESS",payload:v({files:e},t)}}function S(e={}){const{privateUpload:t}=e;return{type:"MEDIA_LOAD_FAILURE",payload:{privateUpload:t}}}function O(){return{type:"MEDIA_PERSIST_REQUEST"}}function T(e,t={}){const{privateUpload:n}=t;return{type:"MEDIA_PERSIST_SUCCESS",payload:{file:e,privateUpload:n}}}function C(e={}){const{privateUpload:t}=e;return{type:"MEDIA_PERSIST_FAILURE",payload:{privateUpload:t}}}function A(){return{type:"MEDIA_DELETE_REQUEST"}}function P(e,t={}){const{privateUpload:n}=t;return{type:"MEDIA_DELETE_SUCCESS",payload:{file:e,privateUpload:n}}}function R(e={}){const{privateUpload:t}=e;return{type:"MEDIA_DELETE_FAILURE",payload:{privateUpload:t}}}function M(e){return{type:"MEDIA_DISPLAY_URL_REQUEST",payload:{key:e}}}function I(e,t){return{type:"MEDIA_DISPLAY_URL_SUCCESS",payload:{key:e,url:t}}}function j(e,t){return console.error(t),{type:"MEDIA_DISPLAY_URL_FAILURE",payload:{key:e,err:t}}}t.MEDIA_DISPLAY_URL_FAILURE="MEDIA_DISPLAY_URL_FAILURE"},function(e,t,n){var r=n(320),i=n(185),o=n(213),a=n(44),s=n(136),l=n(214),u=n(251),c=n(249),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},function(e,t,n){"use strict";var r=n(1),i=n(685);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var o=(new r.Component).updater;e.exports=i(r.Component,r.isValidElement,o)},function(e,t,n){var r=n(120),i=n(355),o=n(585),a=n(154),s=n(190),l=n(1233),u=n(265),c=n(356),d=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),s(e,c(e),n),u&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n}));e.exports=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u}));var r=n(3),i=n(98),o=n(299);function a(e,t,n,i,a){var s=Object(r.s)(Object(r.j)(),e,t,n,i);return!!Object(r.F)(a,s)&&(!!Object(r.g)(a,s)||(s[0]>=a[0]&&s[2]<=a[2]||(s[1]>=a[1]&&s[3]<=a[3]||Object(o.a)(e,t,n,i,(function(e,t){return Object(r.G)(a,e,t)})))))}function s(e,t,n,r,i){for(var o=0,s=n.length;o<s;++o){if(a(e,t,n[o],r,i))return!0;t=n[o]}return!1}function l(e,t,n,r,o){if(!function(e,t,n,r,o){return!!a(e,t,n,r,o)||(!!Object(i.b)(e,t,n,r,o[0],o[1])||(!!Object(i.b)(e,t,n,r,o[0],o[3])||(!!Object(i.b)(e,t,n,r,o[2],o[1])||!!Object(i.b)(e,t,n,r,o[2],o[3]))))}(e,t,n[0],r,o))return!1;if(1===n.length)return!0;for(var s=1,l=n.length;s<l;++s)if(Object(i.a)(e,n[s-1],n[s],r,o)&&!a(e,n[s-1],n[s],r,o))return!1;return!0}function u(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o];if(l(e,t,s,r,i))return!0;t=s[s.length-1]}return!1}},function(e,t,n){"use strict";var r=function(e,t){this.dispatcher=e,this.mapping_=t};r.prototype.getEvents=function(){return Object.keys(this.mapping_)},r.prototype.getHandlerForEvent=function(e){return this.mapping_[e]},t.a=r},function(e,t,n){var r=n(1177),i=n(265)((function(e,t){return null==e?{}:r(e,t)}));e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return f}));var r=n(146),i=1,o="mouse";function a(e){if(!this.isEventSimulatedFromTouch_(e)){i.toString()in this.pointerMap&&this.cancel(e);var t=f(e,this.dispatcher);this.pointerMap[i.toString()]=e,this.dispatcher.down(t,e)}}function s(e){if(!this.isEventSimulatedFromTouch_(e)){var t=f(e,this.dispatcher);this.dispatcher.move(t,e)}}function l(e){if(!this.isEventSimulatedFromTouch_(e)){var t=this.pointerMap[i.toString()];if(t&&t.button===e.button){var n=f(e,this.dispatcher);this.dispatcher.up(n,e),this.cleanupMouse()}}}function u(e){if(!this.isEventSimulatedFromTouch_(e)){var t=f(e,this.dispatcher);this.dispatcher.enterOver(t,e)}}function c(e){if(!this.isEventSimulatedFromTouch_(e)){var t=f(e,this.dispatcher);this.dispatcher.leaveOut(t,e)}}var d=function(e){function t(t){var n={mousedown:a,mousemove:s,mouseup:l,mouseover:u,mouseout:c};e.call(this,t,n),this.pointerMap=t.pointerMap,this.lastTouches=[]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.isEventSimulatedFromTouch_=function(e){for(var t=this.lastTouches,n=e.clientX,r=e.clientY,i=0,o=t.length,a=void 0;i<o&&(a=t[i]);i++){var s=Math.abs(n-a[0]),l=Math.abs(r-a[1]);if(s<=25&&l<=25)return!0}return!1},t.prototype.cancel=function(e){var t=f(e,this.dispatcher);this.dispatcher.cancel(t,e),this.cleanupMouse()},t.prototype.cleanupMouse=function(){delete this.pointerMap[i.toString()]},t}(r.a);function f(e,t){var n=t.cloneEvent(e,e),r=n.preventDefault;return n.preventDefault=function(){e.preventDefault(),r()},n.pointerId=i,n.isPrimary=!0,n.pointerType=o,n}t.c=d},function(e,t,n){"use strict";t.a={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"}},function(e,t,n){"use strict";function r(e,t,n,r){for(;t<n-r;){for(var i=0;i<r;++i){var o=e[t+i];e[t+i]=e[n-r+i],e[n-r+i]=o}t+=r,n-=r}}function i(e,t,n,r){for(var i=0,o=e[n-r],a=e[n-r+1];t<n;t+=r){var s=e[t],l=e[t+1];i+=(s-o)*(l+a),o=s,a=l}return i>0}function o(e,t,n,r,o){for(var a=void 0!==o&&o,s=0,l=n.length;s<l;++s){var u=n[s],c=i(e,t,u,r);if(0===s){if(a&&c||!a&&!c)return!1}else if(a&&!c||!a&&c)return!1;t=u}return!0}function a(e,t,n,r,i){for(var a=0,s=n.length;a<s;++a)if(!o(e,t,n[a],r,i))return!1;return!0}function s(e,t,n,o,a){for(var s=void 0!==a&&a,l=0,u=n.length;l<u;++l){var c=n[l],d=i(e,t,c,o);(0===l?s&&d||!s&&!d:s&&!d||!s&&d)&&r(e,t,c,o),t=c}return t}function l(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o)t=s(e,t,n[o],r,i);return t}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l}))},function(e,t,n){var r=n(1131),i=n(2);e.exports=function(e,t,n){var i=e[t];if(i){var o=[];if(Object.keys(i).forEach((function(e){-1===r.indexOf(e)&&o.push(e)})),o.length)throw new Error("Prop "+t+" passed to "+n+". Has invalid keys "+o.join(", "))}},e.exports.isRequired=function(t,n,r){if(!t[n])throw new Error("Prop "+n+" passed to "+r+" is required");return e.exports(t,n,r)},e.exports.supportingArrays=i.oneOfType([i.arrayOf(e.exports),e.exports])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.navigateToEntry=t.navigateToNewEntry=t.navigateToCollection=void 0;const r=(0,n(93).createHashHistory)();t.navigateToCollection=e=>r.push("/collections/"+e);t.navigateToNewEntry=e=>r.replace(`/collections/${e}/new`);t.navigateToEntry=(e,t)=>r.replace(`/collections/${e}/entries/${t}`);var i=r;t.default=i},function(e,t,n){var r=n(713),i=n(718);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(44),i=n(313),o=n(431),a=n(109);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){var r=n(181),i=n(120),o=n(44),a=n(182),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){"use strict";(function(e){
+/*!
+ * The buffer module from node.js, for the browser.
+ *
+ * @author Feross Aboukhadijeh <http://feross.org>
+ * @license MIT
+ */
+var r=n(777),i=n(778),o=n(462);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):f(e,t);if("Buffer"===t.type&&o(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(c(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function _(e,t,n,r){return q(z(t,e.length-n),e,n,r)}function w(e,t,n,r){return q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return w(e,t,n,r)}function k(e,t,n,r){return q(U(t),e,n,r)}function E(e,t,n,r){return q(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?O(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d<s;++d)if(u[d]!==c[d]){o=u[d],a=c[d];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function A(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=B(e[o]);return i}function P(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function D(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,o){return o||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,o){return o||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=l.isBuffer(e)?e:z(new l(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(43))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";var r=n(258),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var o=Object.create(n(218));o.inherits=n(158);var a=n(466),s=n(336);o.inherits(d,a);for(var l=i(s.prototype),u=0;u<l.length;u++){var c=l[u];d.prototype[c]||(d.prototype[c]=s.prototype[c])}function d(e){if(!(this instanceof d))return new d(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||r.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyDefaults=y,t.parseConfig=_,t.configLoaded=w,t.configLoading=x,t.configFailed=k,t.configDidLoad=E,t.mergeConfig=function(e){return{type:"CONFIG_MERGE",payload:e}},t.detectProxyServer=S,t.handleLocalBackend=O,t.loadConfig=function(){if(window.CMS_CONFIG)return E((0,l.fromJS)(window.CMS_CONFIG));return async(e,t)=>{e(x());try{const n=t().config,r=(()=>{const e=document.querySelector('link[rel="cms-config-url"]');if(e&&{"text/yaml":"yaml","application/x-yaml":"yaml"}[e.type]&&(0,i.default)(e,"href")){const t=(0,i.default)(e,"href");return console.log(`Using config file path: "${t}"`),t}return"config.yml"})(),o=n&&n.size>1,a=n&&!1===n.get("load_config_file")?{}:await async function(e,t){const n=await fetch(e,{credentials:"same-origin"}).catch(e=>e);if(n instanceof Error||200!==n.status){if(t)return _("");throw new Error(`Failed to load config.yml (${n.status||n})`)}const r=n.headers.get("Content-Type")||"Not-Found";if(-1===r.indexOf("yaml")&&(console.log(`Response for ${e} was not yaml. (Content-Type: ${r})`),t))return _("");return _(await n.text())}(r,o);let s=b(n,a);(0,d.validateConfig)(s.toJS()),s=await O(s);e(E(y(s))),e((0,u.authenticateUser)())}catch(t){throw e(k(t)),t}}},t.CONFIG_MERGE=t.CONFIG_FAILURE=t.CONFIG_SUCCESS=t.CONFIG_REQUEST=void 0;var r=m(n(257)),i=m(n(82)),o=m(n(138)),a=m(n(121)),s=m(n(329)),l=n(4),u=n(208),c=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(103)),d=n(834),f=n(67),p=n(119);function h(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}t.CONFIG_REQUEST="CONFIG_REQUEST";t.CONFIG_SUCCESS="CONFIG_SUCCESS";t.CONFIG_FAILURE="CONFIG_FAILURE";t.CONFIG_MERGE="CONFIG_MERGE";const g=e=>(e.has("media_folder")&&!e.has("public_folder")&&(e=e.set("public_folder",e.get("media_folder"))),e),v={publish_mode:c.SIMPLE};function y(e){return(0,l.Map)(v).mergeDeep(e).withMutations(t=>{!t.get("display_url")&&t.get("site_url")&&t.set("display_url",t.get("site_url"));const n="/"+(0,a.default)(t.get("media_folder"),"/");t.has("public_folder")||t.set("public_folder",n),t.getIn(["slug","encoding"])||t.setIn(["slug","encoding"],"unicode"),t.getIn(["slug","clean_accents"])||t.setIn(["slug","clean_accents"],!1),t.getIn(["slug","sanitize_replacement"])||t.setIn(["slug","sanitize_replacement"],"-"),t.set("collections",t.get("collections").map(t=>{t.has("publish")||(t=t.set("publish",!0));const n=t.get("folder");if(n)if(t.has("path")&&!t.has("media_folder")&&(t=t.set("media_folder","")),(t=(t=(t=g(t)).set("fields",(0,f.traverseFields)(t.get("fields"),g))).set("folder",(0,o.default)(n,"/"))).has("meta")){const e=t.get("fields"),n=[];t.get("meta").forEach((e,t)=>{const r=e.withMutations(e=>{e.set("name",t),e.set("meta",!0),e.set("required",!0)});n.push(r)}),t=t.set("fields",(0,l.fromJS)([]).concat(n,e))}else t=t.set("meta",(0,l.Map)());const r=t.get("files");if(r&&(t=(t=(t=t.delete("nested")).delete("meta")).set("files",r.map(e=>(e=e.set("file",(0,a.default)(e.get("file"),"/")),e=(e=g(e)).set("fields",(0,f.traverseFields)(e.get("fields"),g)))))),!t.has("sortableFields")){const n=(0,p.resolveBackend)(e),r=(0,f.selectDefaultSortableFields)(t,n);t=t.set("sortableFields",(0,l.fromJS)(r))}return t=t.has("view_filters")?t.set("view_filters",t.get("view_filters").map(e=>e.set("id",`${e.get("field")}__${e.get("pattern")}`))):t.set("view_filters",(0,l.fromJS)([]))}))})}function b(e,t){const n=(0,l.fromJS)(t)||(0,l.Map)();return e?e.mergeDeep(n):n}function _(e){const t=s.default.parse(e,{maxAliasCount:-1,prettyErrors:!0,merge:!0});return"string"==typeof CMS_ENV&&t[CMS_ENV]&&Object.keys(t[CMS_ENV]).forEach(e=>{t[e]=t[CMS_ENV][e]}),t}function w(e){return{type:"CONFIG_SUCCESS",payload:e}}function x(){return{type:"CONFIG_REQUEST"}}function k(e){return{type:"CONFIG_FAILURE",error:"Error loading config",payload:e}}function E(e){return t=>{t(w(e))}}async function S(e){if(["localhost","127.0.0.1",...(null==e?void 0:e.allowed_hosts)||[]].includes(location.hostname)){let t;const n="http://localhost:8081/api/v1";!0===e?t=n:(0,r.default)(e)&&(t=e.url||n.replace("localhost",location.hostname));try{console.log(`Looking for Netlify CMS Proxy Server at '${t}'`);const{repo:e,publish_modes:n,type:r}=await fetch(""+t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"info"})}).then(e=>e.json());if("string"==typeof e&&Array.isArray(n)&&"string"==typeof r)return console.log(`Detected Netlify CMS Proxy Server at '${t}' with repo: '${e}'`),{proxyUrl:t,publish_modes:n,type:r}}catch{console.log(`Netlify CMS Proxy Server not detected at '${t}'`)}}return{}}async function O(e){if(e.has("local_backend")){const{proxyUrl:t,publish_modes:n,type:r}=await S(e.toJS().local_backend);if(t&&(e=b(e,{backend:{name:"proxy",proxy_url:t}})).has("publish_mode")&&!n.includes(e.get("publish_mode"))){const t=n[0];console.log(`'${e.get("publish_mode")}' is not supported by '${r}' backend, switching to '${t}'`),e=b(e,{publish_mode:t})}}return e}},function(e,t,n){var r=n(120),i=n(102),o=n(448),a=n(44);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(155),i=n(253),o=n(455),a=n(254),s=n(109),l=/\s+$/;e.exports=function(e,t,n){if((e=s(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=r(t)))return e;var u=a(e),c=o(u,a(t))+1;return i(u,0,c).join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCollectionUrl=function(e,t){return h("/collections/"+e,t)},t.getNewEntryUrl=function(e,t){return h(`/collections/${e}/new`,t)},t.addParams=function(e,t){const n=s.default.parse(e,!0);return n.query=f(f({},n.query),t),s.default.format(n)},t.stripProtocol=function(e){const t=e.indexOf("//");return t>-1?e.slice(t+2):e},t.getCharReplacer=b,t.sanitizeURI=_,t.sanitizeChar=function(e,t){const n=t.get("encoding"),r=t.get("sanitize_replacement");return b(n,r)(e)},t.sanitizeSlug=function(e,t){if(!(0,a.default)(e))throw new Error("The input slug must be a string.");const n=t.get("encoding"),s=t.get("clean_accents"),c=t.get("sanitize_replacement"),d=(0,i.default)([...s?[l.default.remove]:[],(0,r.default)(_,{replacement:c,encoding:n}),(0,r.default)(u.default,{replacement:c})])(e),f=new RegExp(`(?:${(0,o.default)(c)})+`,"g"),p=new RegExp((0,o.default)(c)+"$"),h=new RegExp("^"+(0,o.default)(c));return d.replace(f,c).replace(h,"").replace(p,"")};var r=c(n(514)),i=c(n(124)),o=c(n(485)),a=c(n(353)),s=c(n(957)),l=c(n(963)),u=c(n(964));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}function h(e,t){return`${t?"/#":""}${e}`}const m=/[\w\-.~]/i,g=/[\xA0-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFEF}\u{10000}-\u{1FFFD}\u{20000}-\u{2FFFD}\u{30000}-\u{3FFFD}\u{40000}-\u{4FFFD}\u{50000}-\u{5FFFD}\u{60000}-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}\u{90000}-\u{9FFFD}\u{A0000}-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}\u{D0000}-\u{DFFFD}\u{E1000}-\u{EFFFD}]/u,v=e=>m.test(e),y=e=>m.test(e)||g.test(e);function b(e,t){let n;if("unicode"===e)n=y;else{if("ascii"!==e)throw new Error('`options.encoding` must be "unicode" or "ascii".');n=v}if(!Array.from(t).every(n))throw new Error("The replacement character(s) (options.replacement) is itself unsafe.");return e=>n(e)?e:t}function _(e,{replacement:t="",encoding:n="unicode"}={}){if(!(0,a.default)(e))throw new Error("The input slug must be a string.");if(!(0,a.default)(t))throw new Error("`options.replacement` must be a string.");return Array.from(e).map(b(n,t)).join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addAssets=function(e){return{type:"ADD_ASSETS",payload:e}},t.addAsset=l,t.removeAsset=function(e){return{type:"REMOVE_ASSET",payload:e}},t.loadAssetRequest=u,t.loadAssetSuccess=c,t.loadAssetFailure=d,t.loadAsset=f,t.boundGetAsset=function(e,t,n){return(r,i)=>e(h({collection:t,entry:n,path:r,field:i}))},t.getAsset=h,t.LOAD_ASSET_FAILURE=t.LOAD_ASSET_SUCCESS=t.LOAD_ASSET_REQUEST=t.REMOVE_ASSET=t.ADD_ASSET=t.ADD_ASSETS=void 0;var r=n(219),i=n(37),o=n(104),a=n(270),s=n(141);t.ADD_ASSETS="ADD_ASSETS";t.ADD_ASSET="ADD_ASSET";t.REMOVE_ASSET="REMOVE_ASSET";t.LOAD_ASSET_REQUEST="LOAD_ASSET_REQUEST";t.LOAD_ASSET_SUCCESS="LOAD_ASSET_SUCCESS";function l(e){return{type:"ADD_ASSET",payload:e}}function u(e){return{type:"LOAD_ASSET_REQUEST",payload:{path:e}}}function c(e){return{type:"LOAD_ASSET_SUCCESS",payload:{path:e}}}function d(e,t){return{type:"LOAD_ASSET_FAILURE",payload:{path:e,error:t}}}function f(e){return async(t,n)=>{try{t(u(e)),await(0,s.waitForMediaLibraryToLoad)(t,n());const i=(0,a.selectMediaFileByPath)(n(),e);if(i){const o=await(0,s.getMediaDisplayURL)(t,n(),i);t(l((0,r.createAssetProxy)({path:e,url:o||e})))}else{const{url:i}=await(0,s.getMediaFile)(n(),e);t(l((0,r.createAssetProxy)({path:e,url:i})))}t(c(e))}catch(n){t(d(e,n))}}}t.LOAD_ASSET_FAILURE="LOAD_ASSET_FAILURE";const p=(0,r.createAssetProxy)({path:"empty.svg",file:new File(['<svg xmlns="http://www.w3.org/2000/svg"></svg>'],"empty.svg",{type:"image/svg+xml"})});function h({collection:e,entry:t,path:n,field:a}){return(s,u)=>{if(!n)return p;const c=u(),d=(0,o.selectMediaFilePath)(c.config,e,t,n,a);let{asset:h,isLoading:m,error:g}=c.medias.get(d)||{};return m?p:h||((0,i.isAbsolutePath)(d)||g?(h=(0,r.createAssetProxy)({path:d,url:n}),s(l(h))):(s(f(d)),h=p),h)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringTemplate=t.NetlifyCmsLibWidgets=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(970));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}t.stringTemplate=r;const o={stringTemplate:r};t.NetlifyCmsLibWidgets=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(18)),i=(s(n(1)),s(n(2))),o=s(n(1011)),a=n(11);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("span",{target:"ei6fm2r0",label:"IconWrapper"})("display:inline-block;line-height:0;width:",e=>e.size,";height:",e=>e.size,";transform:",e=>`rotate(${e.rotation})`,";& path:not(.no-fill),& circle:not(.no-fill),& polygon:not(.no-fill),& rect:not(.no-fill){fill:currentColor;}& path.clipped{fill:transparent;}svg{width:100%;height:100%;}"),u=(e,t)=>{if(!e||!t)return"0deg";const n={right:90,down:180,left:270,up:360};return n[t]-n[e]+"deg"},c={xsmall:"12px",small:"18px",medium:"24px",large:"32px"},d=({type:e,direction:t,size:n="medium",className:r})=>{const i=o.default[e].image;return(0,a.jsx)(l,{className:r,size:c[n]||n,rotation:u(o.default[e].direction,t)},(0,a.jsx)(i,null))};d.propTypes={type:i.default.string.isRequired,direction:i.default.oneOf(["right","down","left","up"]),size:i.default.string,className:i.default.string};var f=(0,r.default)(d,{target:"ei6fm2r1"})("");t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INIT_COORDS="dnd-core/INIT_COORDS",t.BEGIN_DRAG="dnd-core/BEGIN_DRAG",t.PUBLISH_DRAG_SOURCE="dnd-core/PUBLISH_DRAG_SOURCE",t.HOVER="dnd-core/HOVER",t.DROP="dnd-core/DROP",t.END_DRAG="dnd-core/END_DRAG"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=function(e){return"function"==typeof e},t.noop=function(){},t.isPlainObject=function(e){if(!function(e){return"object"==typeof e&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}},function(e,t,n){var r=n(137),i=n(222),o=n(267),a=n(223),s=r((function(e,t){var n=a(t,o(s));return i(e,32,void 0,t,n)}));s.placeholder={},e.exports=s},function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},function(e,t,n){"use strict";function r(e){if("string"==typeof e)return function(e){return function(t){return Boolean(t&&t.type===e)}}(e);if(null==e)return a;if("object"==typeof e)return("length"in e?o:i)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function i(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function o(e){var t=function(e){for(var t=[],n=e.length,i=-1;++i<n;)t[i]=r(e[i]);return t}(e),n=t.length;return function(){var e=-1;for(;++e<n;)if(t[e].apply(this,arguments))return!0;return!1}}function a(){return!0}e.exports=r},function(e,t,n){"use strict";n.r(t);var r=n(129);t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(r.a)(t)}},function(e,t,n){"use strict";e.exports=n(694)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=42,i=256},function(e,t,n){"use strict";t.a={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=function(e,t,n,r){this.minX=e,this.maxX=t,this.minY=n,this.maxY=r};function i(e,t,n,i,o){return void 0!==o?(o.minX=e,o.maxX=t,o.minY=n,o.maxY=i,o):new r(e,t,n,i)}r.prototype.contains=function(e){return this.containsXY(e[1],e[2])},r.prototype.containsTileRange=function(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY},r.prototype.containsXY=function(e,t){return this.minX<=e&&e<=this.maxX&&this.minY<=t&&t<=this.maxY},r.prototype.equals=function(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY},r.prototype.extend=function(e){e.minX<this.minX&&(this.minX=e.minX),e.maxX>this.maxX&&(this.maxX=e.maxX),e.minY<this.minY&&(this.minY=e.minY),e.maxY>this.maxY&&(this.maxY=e.maxY)},r.prototype.getHeight=function(){return this.maxY-this.minY+1},r.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},r.prototype.getWidth=function(){return this.maxX-this.minX+1},r.prototype.intersects=function(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY},t.b=r},function(e,t,n){"use strict";var r=n(27),i=n(9),o=n(14),a=n(35),s=function(e){function t(t){if(e.call(this),this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,Object(i.a)(this,Object(a.b)(this.geometryName_),this.handleGeometryChanged_,this),t)if("function"==typeof t.getSimplifiedGeometry){var n=t;this.setGeometry(n)}else{var r=t;this.setProperties(r)}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clone=function(){var e=new t(this.getProperties());e.setGeometryName(this.getGeometryName());var n=this.getGeometry();n&&e.setGeometry(n.clone());var r=this.getStyle();return r&&e.setStyle(r),e},t.prototype.getGeometry=function(){return this.get(this.geometryName_)},t.prototype.getId=function(){return this.id_},t.prototype.getGeometryName=function(){return this.geometryName_},t.prototype.getStyle=function(){return this.style_},t.prototype.getStyleFunction=function(){return this.styleFunction_},t.prototype.handleGeometryChange_=function(){this.changed()},t.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Object(i.e)(this.geometryChangeKey_),this.geometryChangeKey_=null);var e=this.getGeometry();e&&(this.geometryChangeKey_=Object(i.a)(e,o.a.CHANGE,this.handleGeometryChange_,this)),this.changed()},t.prototype.setGeometry=function(e){this.set(this.geometryName_,e)},t.prototype.setStyle=function(e){this.style_=e,this.styleFunction_=e?function(e){if("function"==typeof e)return e;var t;Array.isArray(e)?t=e:(Object(r.a)("function"==typeof e.getZIndex,41),t=[e]);return function(){return t}}(e):void 0,this.changed()},t.prototype.setId=function(e){this.id_=e,this.changed()},t.prototype.setGeometryName=function(e){Object(i.c)(this,Object(a.b)(this.geometryName_),this.handleGeometryChanged_,this),this.geometryName_=e,Object(i.a)(this,Object(a.b)(this.geometryName_),this.handleGeometryChanged_,this),this.handleGeometryChanged_()},t}(a.a);t.a=s},function(e,t,n){"use strict";
+/*
+object-assign
+(c) Sindre Sorhus
+@license MIT
+*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=a(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(l[c]=n[c]);if(r){s=r(n);for(var d=0;d<s.length;d++)o.call(n,s[d])&&(l[s[d]]=n[s[d]])}}return l}},function(e,t,n){var r=n(101),i=n(76);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(75).Symbol;e.exports=r},function(e,t,n){var r=n(101),i=n(69);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(439),i=n(320),o=n(136);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r=n(758),i=n(315),o=n(759),a=n(441),s=n(442),l=n(101),u=n(430),c=u(r),d=u(i),f=u(o),p=u(a),h=u(s),m=l;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case c:return"[object DataView]";case d:return"[object Map]";case f:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){"use strict";function r(e){return null==e}e.exports.isNothing=r,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:r(e)?[]:[e]},e.exports.repeat=function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},e.exports.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},e.exports.extend=function(e,t){var n,r,i,o;if(t)for(n=0,r=(o=Object.keys(t)).length;n<r;n+=1)e[i=o[n]]=t[i];return e}},function(e,t,n){"use strict";var r=n(186),i=n(220),o=n(59);function a(e,t,n){var r=[];return e.include.forEach((function(e){n=a(e,t,n)})),e[t].forEach((function(e){n.forEach((function(t,n){t.tag===e.tag&&t.kind===e.kind&&r.push(n)})),n.push(e)})),n.filter((function(e,t){return-1===r.indexOf(t)}))}function s(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach((function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=a(this,"implicit",[]),this.compiledExplicit=a(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{}};function r(e){n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(this.compiledImplicit,this.compiledExplicit)}s.DEFAULT=null,s.create=function(){var e,t;switch(arguments.length){case 1:e=s.DEFAULT,t=arguments[0];break;case 2:e=arguments[0],t=arguments[1];break;default:throw new i("Wrong number of arguments for Schema.create function")}if(e=r.toArray(e),t=r.toArray(t),!e.every((function(e){return e instanceof s})))throw new i("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!t.every((function(e){return e instanceof o})))throw new i("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new s({include:e,explicit:t})},e.exports=s},function(e,t,n){"use strict";function r(e,t,n,r){var i=r?" !== ":" === ",o=r?" || ":" && ",a=r?"!":"",s=r?"":"!";switch(e){case"null":return t+i+"null";case"array":return a+"Array.isArray("+t+")";case"object":return"("+a+t+o+"typeof "+t+i+'"object"'+o+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+o+s+"("+t+" % 1)"+o+t+i+t+(n?o+a+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(n?o+a+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}e.exports={copy:function(e,t){for(var n in t=t||{},e)t[n]=e[n];return t},checkDataType:r,checkDataTypes:function(e,t,n){switch(e.length){case 1:return r(e[0],t,n,!0);default:var i="",a=o(e);for(var s in a.array&&a.object&&(i=a.null?"(":"(!"+t+" || ",i+="typeof "+t+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)i+=(i?" && ":"")+r(s,t,n,!0);return i}},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++){var o=t[r];(i[o]||"array"===e&&"array"===o)&&(n[n.length]=o)}if(n.length)return n}else{if(i[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:o,getProperty:l,escapeQuotes:u,equal:n(341),ucs2length:n(838),varOccurences:function(e,t){t+="[^0-9]";var n=e.match(new RegExp(t,"g"));return n?n.length:0},varReplace:function(e,t,n){return t+="([^0-9])",n=n.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),n+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var n in e)if(t[n])return!0},schemaHasRulesExcept:function(e,t,n){if("boolean"==typeof e)return!e&&"not"!=n;for(var r in e)if(r!=n&&t[r])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var n in e)if(!t[n])return n},toQuotedString:c,getPathExpr:function(e,t,n,r){return p(e,n?"'/' + "+t+(r?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):r?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,n){var r=c(n?"/"+h(t):l(t));return p(e,r)},getData:function(e,t,n){var r,i,o,a;if(""===e)return"rootData";if("/"==e[0]){if(!d.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,o="rootData"}else{if(!(a=e.match(f)))throw new Error("Invalid JSON-pointer: "+e);if(r=+a[1],"#"==(i=a[2])){if(r>=t)throw new Error("Cannot access property/index "+r+" levels up, current level is "+t);return n[t-r]}if(r>t)throw new Error("Cannot access data "+r+" levels up, current level is "+t);if(o="data"+(t-r||""),!i)return o}for(var s=o,u=i.split("/"),c=0;c<u.length;c++){var p=u[c];p&&(o+=l(m(p)),s+=" && "+o)}return s},unescapeFragment:function(e){return m(decodeURIComponent(e))},unescapeJsonPointer:m,escapeFragment:function(e){return encodeURIComponent(h(e))},escapeJsonPointer:h};var i=o(["string","number","integer","boolean","null"]);function o(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var a=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function l(e){return"number"==typeof e?"["+e+"]":a.test(e)?"."+e:"['"+u(e)+"']"}function u(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function c(e){return"'"+u(e)+"'"}var d=/^\/(?:[^~]|~0|~1)*$/,f=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function p(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function h(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function m(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(312),i=n(240);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?i(n,u,c):r(n,u,c)}return n}},function(e,t,n){(function(t){!function(n){"use strict";var r=function(e){setTimeout(e,0)};void 0!==t&&t&&"function"==typeof t.nextTick&&(r=t.nextTick),e.exports=function(e){var t={capacity:e||1,current:0,queue:[],firstHere:!1,take:function(){if(!1===t.firstHere){t.current++,t.firstHere=!0;var e=1}else e=0;var n={n:1};"function"==typeof arguments[0]?n.task=arguments[0]:n.n=arguments[0],arguments.length>=2&&("function"==typeof arguments[1]?n.task=arguments[1]:n.n=arguments[1]);var r=n.task;if(n.task=function(){r(t.leave)},t.current+n.n-e>t.capacity)return 1===e&&(t.current--,t.firstHere=!1),t.queue.push(n);t.current+=n.n-e,n.task(t.leave),1===e&&(t.firstHere=!1)},leave:function(e){if(e=e||1,t.current-=e,t.queue.length){var n=t.queue[0];n.n+t.current>t.capacity||(t.queue.shift(),t.current+=n.n,r(n.task))}else if(t.current<0)throw new Error("leave called too many times.")},available:function(e){return e=e||1,t.current+e<=t.capacity}};return t}}()}).call(this,n(70))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DragSource",{enumerable:!0,get:function(){return r.DragSource}}),Object.defineProperty(t,"DropTarget",{enumerable:!0,get:function(){return r.DropTarget}}),Object.defineProperty(t,"HTML5DragDrop",{enumerable:!0,get:function(){return r.HTML5DragDrop}}),Object.defineProperty(t,"ErrorBoundary",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"FileUploadButton",{enumerable:!0,get:function(){return o.FileUploadButton}}),Object.defineProperty(t,"Modal",{enumerable:!0,get:function(){return a.Modal}}),Object.defineProperty(t,"Toast",{enumerable:!0,get:function(){return s.default}});var r=n(1023),i=l(n(1075)),o=n(1083),a=n(1084),s=l(n(1093));function l(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.get=function(e,t,n){return t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:n||null}),e)},t.without=function(e,t){return e.filter((function(e){return e!==t}))},t.isString=function(e){return"string"==typeof e},t.isObject=function(e){return"object"==typeof e},t.xor=function(e,t){var n=new Map,r=function(e){return n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var i=[];return n.forEach((function(e,t){1===e&&i.push(t)})),i},t.intersection=function(e,t){return e.filter((function(e){return t.indexOf(e)>-1}))}},function(e,t,n){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},function(e,t,n){"use strict";e.exports=function(e,t){var n=[],i=-1,o=e.length;t&&n.push(r("text","\n"));for(;++i<o;)i&&n.push(r("text","\n")),n.push(e[i]);t&&0!==e.length&&n.push(r("text","\n"));return n};var r=n(60)},function(e,t,n){"use strict";var r=n(388),i=n(618),o=n(620);e.exports=function(e){var t,n,a=e.space,s=e.mustUseProperty||[],l=e.attributes||{},u=e.properties,c=e.transform,d={},f={};for(t in u)n=new o(t,c(l,t),u[t],a),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,f[r(t)]=t,f[r(n.attribute)]=t;return new i(d,f,a)}},function(e,t,n){"use strict";const r=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const i=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};t.SPECIAL_ELEMENTS={[r.HTML]:{[i.ADDRESS]:!0,[i.APPLET]:!0,[i.AREA]:!0,[i.ARTICLE]:!0,[i.ASIDE]:!0,[i.BASE]:!0,[i.BASEFONT]:!0,[i.BGSOUND]:!0,[i.BLOCKQUOTE]:!0,[i.BODY]:!0,[i.BR]:!0,[i.BUTTON]:!0,[i.CAPTION]:!0,[i.CENTER]:!0,[i.COL]:!0,[i.COLGROUP]:!0,[i.DD]:!0,[i.DETAILS]:!0,[i.DIR]:!0,[i.DIV]:!0,[i.DL]:!0,[i.DT]:!0,[i.EMBED]:!0,[i.FIELDSET]:!0,[i.FIGCAPTION]:!0,[i.FIGURE]:!0,[i.FOOTER]:!0,[i.FORM]:!0,[i.FRAME]:!0,[i.FRAMESET]:!0,[i.H1]:!0,[i.H2]:!0,[i.H3]:!0,[i.H4]:!0,[i.H5]:!0,[i.H6]:!0,[i.HEAD]:!0,[i.HEADER]:!0,[i.HGROUP]:!0,[i.HR]:!0,[i.HTML]:!0,[i.IFRAME]:!0,[i.IMG]:!0,[i.INPUT]:!0,[i.LI]:!0,[i.LINK]:!0,[i.LISTING]:!0,[i.MAIN]:!0,[i.MARQUEE]:!0,[i.MENU]:!0,[i.META]:!0,[i.NAV]:!0,[i.NOEMBED]:!0,[i.NOFRAMES]:!0,[i.NOSCRIPT]:!0,[i.OBJECT]:!0,[i.OL]:!0,[i.P]:!0,[i.PARAM]:!0,[i.PLAINTEXT]:!0,[i.PRE]:!0,[i.SCRIPT]:!0,[i.SECTION]:!0,[i.SELECT]:!0,[i.SOURCE]:!0,[i.STYLE]:!0,[i.SUMMARY]:!0,[i.TABLE]:!0,[i.TBODY]:!0,[i.TD]:!0,[i.TEMPLATE]:!0,[i.TEXTAREA]:!0,[i.TFOOT]:!0,[i.TH]:!0,[i.THEAD]:!0,[i.TITLE]:!0,[i.TR]:!0,[i.TRACK]:!0,[i.UL]:!0,[i.WBR]:!0,[i.XMP]:!0},[r.MATHML]:{[i.MI]:!0,[i.MO]:!0,[i.MN]:!0,[i.MS]:!0,[i.MTEXT]:!0,[i.ANNOTATION_XML]:!0},[r.SVG]:{[i.TITLE]:!0,[i.FOREIGN_OBJECT]:!0,[i.DESC]:!0}}},function(e,t,n){!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,u=n.typescript,c=n.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),f=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function h(e,t,n){return r=e,i=n,t}function m(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(p))return t.tokenize=m,h("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=m),h("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return h("number","number");if("."==r&&e.match(".."))return h("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return h(r);if("="==r&&e.eat(">"))return h("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return h("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),h("number","number");if("/"==r)return e.eat("*")?(t.tokenize=g,g(e,t)):e.eat("/")?(e.skipToEnd(),h("comment","comment")):Ge(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),h("regexp","string-2")):(e.eat("="),h("operator","operator",e.current()));if("`"==r)return t.tokenize=v,v(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),h("meta","meta");if("#"==r&&e.eatWhile(c))return h("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),h("comment","comment");if(f.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?h("."):h("operator","operator",e.current());if(c.test(r)){e.eatWhile(c);var i=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(i)){var o=d[i];return h(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return h("async","keyword",i)}return h("variable","variable",i)}}function g(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="*"==n}return h("comment","comment")}function v(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=m;break}r=!r&&"\\"==n}return h("quasi","string-2",e.current())}function y(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(u){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l="([{}])".indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(c.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var b={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function _(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function w(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}var x={state:null,column:null,marked:null,cc:null};function k(){for(var e=arguments.length-1;e>=0;e--)x.cc.push(arguments[e])}function E(){return k.apply(null,arguments),!0}function S(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function O(e){var t=x.state;if(x.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=function e(t,n){if(n){if(n.block){var r=e(t,n.prev);return r?r==n.prev?n:new C(r,n.vars,!0):null}return S(t,n.vars)?n:new C(n.prev,new A(t,n.vars),!1)}return null}(e,t.context);if(null!=r)return void(t.context=r)}else if(!S(e,t.localVars))return void(t.localVars=new A(e,t.localVars));n.globalVars&&!S(e,t.globalVars)&&(t.globalVars=new A(e,t.globalVars))}function T(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function C(e,t,n){this.prev=e,this.vars=t,this.block=n}function A(e,t){this.name=e,this.next=t}var P=new A("this",new A("arguments",null));function R(){x.state.context=new C(x.state.context,x.state.localVars,!1),x.state.localVars=P}function M(){x.state.context=new C(x.state.context,x.state.localVars,!0),x.state.localVars=null}function I(){x.state.localVars=x.state.context.vars,x.state.context=x.state.context.prev}function j(e,t){var n=function(){var n=x.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new _(r,x.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function D(){var e=x.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function L(e){return function t(n){return n==e?E():";"==e||"}"==n||")"==n||"]"==n?k():E(t)}}function N(e,t){return"var"==e?E(j("vardef",t),ye,L(";"),D):"keyword a"==e?E(j("form"),U,N,D):"keyword b"==e?E(j("form"),N,D):"keyword d"==e?x.stream.match(/^\s*$/,!1)?E():E(j("stat"),H,L(";"),D):"debugger"==e?E(L(";")):"{"==e?E(j("}"),M,oe,D,I):";"==e?E():"if"==e?("else"==x.state.lexical.info&&x.state.cc[x.state.cc.length-1]==D&&x.state.cc.pop()(),E(j("form"),U,N,D,Ee)):"function"==e?E(Ce):"for"==e?E(j("form"),Se,N,D):"class"==e||u&&"interface"==t?(x.marked="keyword",E(j("form","class"==e?e:t),Ie,D)):"variable"==e?u&&"declare"==t?(x.marked="keyword",E(N)):u&&("module"==t||"enum"==t||"type"==t)&&x.stream.match(/^\s*\w/,!1)?(x.marked="keyword","enum"==t?E(Ve):"type"==t?E(Pe,L("operator"),ce,L(";")):E(j("form"),be,L("{"),j("}"),oe,D,D)):u&&"namespace"==t?(x.marked="keyword",E(j("form"),B,N,D)):u&&"abstract"==t?(x.marked="keyword",E(N)):E(j("stat"),J):"switch"==e?E(j("form"),U,L("{"),j("}","switch"),M,oe,D,D,I):"case"==e?E(B,L(":")):"default"==e?E(L(":")):"catch"==e?E(j("form"),R,F,N,D,I):"export"==e?E(j("stat"),Ne,D):"import"==e?E(j("stat"),Be,D):"async"==e?E(N):"@"==t?E(B,N):k(j("stat"),B,L(";"),D)}function F(e){if("("==e)return E(Re,L(")"))}function B(e,t){return q(e,t,!1)}function z(e,t){return q(e,t,!0)}function U(e){return"("!=e?k():E(j(")"),H,L(")"),D)}function q(e,t,n){if(x.state.fatArrowAt==x.stream.start){var r=n?Y:K;if("("==e)return E(R,j(")"),re(Re,")"),D,L("=>"),r,I);if("variable"==e)return k(R,be,L("=>"),r,I)}var i=n?V:W;return b.hasOwnProperty(e)?E(i):"function"==e?E(Ce,i):"class"==e||u&&"interface"==t?(x.marked="keyword",E(j("form"),Me,D)):"keyword c"==e||"async"==e?E(n?z:B):"("==e?E(j(")"),H,L(")"),D,i):"operator"==e||"spread"==e?E(n?z:B):"["==e?E(j("]"),We,D,i):"{"==e?ie(ee,"}",null,i):"quasi"==e?k($,i):"new"==e?E(function(e){return function(t){return"."==t?E(e?X:Q):"variable"==t&&u?E(me,e?V:W):k(e?z:B)}}(n)):"import"==e?E(B):E()}function H(e){return e.match(/[;\}\)\],]/)?k():k(B)}function W(e,t){return","==e?E(H):V(e,t,!1)}function V(e,t,n){var r=0==n?W:V,i=0==n?B:z;return"=>"==e?E(R,n?Y:K,I):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?E(r):u&&"<"==t&&x.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?E(j(">"),re(ce,">"),D,r):"?"==t?E(B,L(":"),i):E(i):"quasi"==e?k($,r):";"!=e?"("==e?ie(z,")","call",r):"."==e?E(Z,r):"["==e?E(j("]"),H,L("]"),D,r):u&&"as"==t?(x.marked="keyword",E(ce,r)):"regexp"==e?(x.state.lastType=x.marked="operator",x.stream.backUp(x.stream.pos-x.stream.start-1),E(i)):void 0:void 0}function $(e,t){return"quasi"!=e?k():"${"!=t.slice(t.length-2)?E($):E(B,G)}function G(e){if("}"==e)return x.marked="string-2",x.state.tokenize=v,E($)}function K(e){return y(x.stream,x.state),k("{"==e?N:B)}function Y(e){return y(x.stream,x.state),k("{"==e?N:z)}function Q(e,t){if("target"==t)return x.marked="keyword",E(W)}function X(e,t){if("target"==t)return x.marked="keyword",E(V)}function J(e){return":"==e?E(D,N):k(W,L(";"),D)}function Z(e){if("variable"==e)return x.marked="property",E()}function ee(e,t){return"async"==e?(x.marked="property",E(ee)):"variable"==e||"keyword"==x.style?(x.marked="property","get"==t||"set"==t?E(te):(u&&x.state.fatArrowAt==x.stream.start&&(n=x.stream.match(/^\s*:\s*/,!1))&&(x.state.fatArrowAt=x.stream.pos+n[0].length),E(ne))):"number"==e||"string"==e?(x.marked=s?"property":x.style+" property",E(ne)):"jsonld-keyword"==e?E(ne):u&&T(t)?(x.marked="keyword",E(ee)):"["==e?E(B,ae,L("]"),ne):"spread"==e?E(z,ne):"*"==t?(x.marked="keyword",E(ee)):":"==e?k(ne):void 0;var n}function te(e){return"variable"!=e?k(ne):(x.marked="property",E(Ce))}function ne(e){return":"==e?E(z):"("==e?k(Ce):void 0}function re(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=x.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),E((function(n,r){return n==t||r==t?k():k(e)}),r)}return i==t||o==t?E():n&&n.indexOf(";")>-1?k(e):E(L(t))}return function(n,i){return n==t||i==t?E():k(e,r)}}function ie(e,t,n){for(var r=3;r<arguments.length;r++)x.cc.push(arguments[r]);return E(j(t,n),re(e,t),D)}function oe(e){return"}"==e?E():k(N,oe)}function ae(e,t){if(u){if(":"==e)return E(ce);if("?"==t)return E(ae)}}function se(e,t){if(u&&(":"==e||"in"==t))return E(ce)}function le(e){if(u&&":"==e)return x.stream.match(/^\s*\w+\s+is\b/,!1)?E(B,ue,ce):E(ce)}function ue(e,t){if("is"==t)return x.marked="keyword",E()}function ce(e,t){return"keyof"==t||"typeof"==t||"infer"==t?(x.marked="keyword",E("typeof"==t?z:ce)):"variable"==e||"void"==t?(x.marked="type",E(he)):"|"==t||"&"==t?E(ce):"string"==e||"number"==e||"atom"==e?E(he):"["==e?E(j("]"),re(ce,"]",","),D,he):"{"==e?E(j("}"),re(fe,"}",",;"),D,he):"("==e?E(re(pe,")"),de,he):"<"==e?E(re(ce,">"),ce):void 0}function de(e){if("=>"==e)return E(ce)}function fe(e,t){return"variable"==e||"keyword"==x.style?(x.marked="property",E(fe)):"?"==t||"number"==e||"string"==e?E(fe):":"==e?E(ce):"["==e?E(L("variable"),se,L("]"),fe):"("==e?k(Ae,fe):void 0}function pe(e,t){return"variable"==e&&x.stream.match(/^\s*[?:]/,!1)||"?"==t?E(pe):":"==e?E(ce):"spread"==e?E(pe):k(ce)}function he(e,t){return"<"==t?E(j(">"),re(ce,">"),D,he):"|"==t||"."==e||"&"==t?E(ce):"["==e?E(ce,L("]"),he):"extends"==t||"implements"==t?(x.marked="keyword",E(ce)):"?"==t?E(ce,L(":"),ce):void 0}function me(e,t){if("<"==t)return E(j(">"),re(ce,">"),D,he)}function ge(){return k(ce,ve)}function ve(e,t){if("="==t)return E(ce)}function ye(e,t){return"enum"==t?(x.marked="keyword",E(Ve)):k(be,ae,xe,ke)}function be(e,t){return u&&T(t)?(x.marked="keyword",E(be)):"variable"==e?(O(t),E()):"spread"==e?E(be):"["==e?ie(we,"]"):"{"==e?ie(_e,"}"):void 0}function _e(e,t){return"variable"!=e||x.stream.match(/^\s*:/,!1)?("variable"==e&&(x.marked="property"),"spread"==e?E(be):"}"==e?k():"["==e?E(B,L("]"),L(":"),_e):E(L(":"),be,xe)):(O(t),E(xe))}function we(){return k(be,xe)}function xe(e,t){if("="==t)return E(z)}function ke(e){if(","==e)return E(ye)}function Ee(e,t){if("keyword b"==e&&"else"==t)return E(j("form","else"),N,D)}function Se(e,t){return"await"==t?E(Se):"("==e?E(j(")"),Oe,D):void 0}function Oe(e){return"var"==e?E(ye,Te):"variable"==e?E(Te):k(Te)}function Te(e,t){return")"==e?E():";"==e?E(Te):"in"==t||"of"==t?(x.marked="keyword",E(B,Te)):k(B,Te)}function Ce(e,t){return"*"==t?(x.marked="keyword",E(Ce)):"variable"==e?(O(t),E(Ce)):"("==e?E(R,j(")"),re(Re,")"),D,le,N,I):u&&"<"==t?E(j(">"),re(ge,">"),D,Ce):void 0}function Ae(e,t){return"*"==t?(x.marked="keyword",E(Ae)):"variable"==e?(O(t),E(Ae)):"("==e?E(R,j(")"),re(Re,")"),D,le,I):u&&"<"==t?E(j(">"),re(ge,">"),D,Ae):void 0}function Pe(e,t){return"keyword"==e||"variable"==e?(x.marked="type",E(Pe)):"<"==t?E(j(">"),re(ge,">"),D):void 0}function Re(e,t){return"@"==t&&E(B,Re),"spread"==e?E(Re):u&&T(t)?(x.marked="keyword",E(Re)):u&&"this"==e?E(ae,xe):k(be,ae,xe)}function Me(e,t){return"variable"==e?Ie(e,t):je(e,t)}function Ie(e,t){if("variable"==e)return O(t),E(je)}function je(e,t){return"<"==t?E(j(">"),re(ge,">"),D,je):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(x.marked="keyword"),E(u?ce:B,je)):"{"==e?E(j("}"),De,D):void 0}function De(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&T(t))&&x.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(x.marked="keyword",E(De)):"variable"==e||"keyword"==x.style?(x.marked="property",E(Le,De)):"number"==e||"string"==e?E(Le,De):"["==e?E(B,ae,L("]"),Le,De):"*"==t?(x.marked="keyword",E(De)):u&&"("==e?k(Ae,De):";"==e||","==e?E(De):"}"==e?E():"@"==t?E(B,De):void 0}function Le(e,t){if("?"==t)return E(Le);if(":"==e)return E(ce,xe);if("="==t)return E(z);var n=x.state.lexical.prev;return k(n&&"interface"==n.info?Ae:Ce)}function Ne(e,t){return"*"==t?(x.marked="keyword",E(He,L(";"))):"default"==t?(x.marked="keyword",E(B,L(";"))):"{"==e?E(re(Fe,"}"),He,L(";")):k(N)}function Fe(e,t){return"as"==t?(x.marked="keyword",E(L("variable"))):"variable"==e?k(z,Fe):void 0}function Be(e){return"string"==e?E():"("==e?k(B):k(ze,Ue,He)}function ze(e,t){return"{"==e?ie(ze,"}"):("variable"==e&&O(t),"*"==t&&(x.marked="keyword"),E(qe))}function Ue(e){if(","==e)return E(ze,Ue)}function qe(e,t){if("as"==t)return x.marked="keyword",E(ze)}function He(e,t){if("from"==t)return x.marked="keyword",E(B)}function We(e){return"]"==e?E():k(re(z,"]"))}function Ve(){return k(j("form"),be,L("{"),j("}"),re($e,"}"),D,D)}function $e(){return k(be,xe)}function Ge(e,t,n){return t.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return I.lex=!0,D.lex=!0,{startState:function(e){var t={tokenize:m,lastType:"sof",cc:[],lexical:new _((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new C(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),y(e,t)),t.tokenize!=g&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",function(e,t,n,r,i){var o=e.cc;for(x.state=e,x.stream=i,x.marked=null,x.cc=o,x.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?B:N)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return x.marked?x.marked:"variable"==n&&w(e,r)?"variable-2":t}}(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==g)return e.Pass;if(t.tokenize!=m)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==D)l=l.prev;else if(c!=Ee)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==W||i==V)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,p=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+o:"stat"==d?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||f.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=l.info||p||0==n.doubleIndentSwitch?l.align?l.column+(p?0:1):l.indented+(p?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:Ge,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=B&&t!=z||e.cc.pop()}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(5))},function(e,t,n){!function(e){"use strict";function t(e,t){if(!e.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}function n(e,t){if(!e)return/(?:)/;var n="";return e instanceof RegExp?(e.ignoreCase&&(n="i"),e=e.source):e=String(e),new RegExp((!1===t?"":"^")+"(?:"+e+")",n)}function r(e,r){(e.next||e.push)&&t(r,e.next||e.push),this.regex=n(e.regex),this.token=function(e){if(!e)return null;if(e.apply)return e;if("string"==typeof e)return e.replace(/\./g," ");for(var t=[],n=0;n<e.length;n++)t.push(e[n]&&e[n].replace(/\./g," "));return t}(e.token),this.data=e}function i(e,t){return function(n,r){if(r.pending){var i=r.pending.shift();return 0==r.pending.length&&(r.pending=null),n.pos+=i.text.length,i.token}if(r.local){if(r.local.end&&n.match(r.local.end)){var o=r.local.endToken||null;return r.local=r.localState=null,o}var s;return o=r.local.mode.token(n,r.localState),r.local.endScan&&(s=r.local.endScan.exec(n.current()))&&(n.pos=n.start+s.index),o}for(var l=e[r.state],u=0;u<l.length;u++){var c=l[u],d=(!c.data.sol||n.sol())&&n.match(c.regex);if(d){c.data.next?r.state=c.data.next:c.data.push?((r.stack||(r.stack=[])).push(r.state),r.state=c.data.push):c.data.pop&&r.stack&&r.stack.length&&(r.state=r.stack.pop()),c.data.mode&&a(t,r,c.data.mode,c.token),c.data.indent&&r.indent.push(n.indentation()+t.indentUnit),c.data.dedent&&r.indent.pop();var f=c.token;if(f&&f.apply&&(f=f(d)),d.length>2&&c.token&&"string"!=typeof c.token){r.pending=[];for(var p=2;p<d.length;p++)d[p]&&r.pending.push({text:d[p],token:c.token[p-1]});return n.backUp(d[0].length-(d[1]?d[1].length:0)),f[0]}return f&&f.join?f[0]:f}}return n.next(),null}}function o(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=0;for(var r in e)if(e.hasOwnProperty(r)){if(!t.hasOwnProperty(r)||!o(e[r],t[r]))return!1;n++}for(var r in t)t.hasOwnProperty(r)&&n--;return 0==n}function a(t,r,i,a){var s;if(i.persistent)for(var l=r.persistentStates;l&&!s;l=l.next)(i.spec?o(i.spec,l.spec):i.mode==l.mode)&&(s=l);var u=s?s.mode:i.mode||e.getMode(t,i.spec),c=s?s.state:e.startState(u);i.persistent&&!s&&(r.persistentStates={mode:u,spec:i.spec,state:c,next:r.persistentStates}),r.localState=c,r.local={mode:u,end:i.end&&n(i.end),endScan:i.end&&!1!==i.forceEnd&&n(i.end,!1),endToken:a&&a.join?a[a.length-1]:a}}function s(t,n){return function(r,i,o){if(r.local&&r.local.mode.indent)return r.local.mode.indent(r.localState,i,o);if(null==r.indent||r.local||n.dontIndentStates&&function(e,t){for(var n=0;n<t.length;n++)if(t[n]===e)return!0}(r.state,n.dontIndentStates)>-1)return e.Pass;var a=r.indent.length-1,s=t[r.state];e:for(;;){for(var l=0;l<s.length;l++){var u=s[l];if(u.data.dedent&&!1!==u.data.dedentIfLineStart){var c=u.regex.exec(i);if(c&&c[0]){a--,(u.next||u.push)&&(s=t[u.next||u.push]),i=i.slice(c[0].length);continue e}}}break}return a<0?0:r.indent[a]}}e.defineSimpleMode=function(t,n){e.defineMode(t,(function(t){return e.simpleMode(t,n)}))},e.simpleMode=function(n,o){t(o,"start");var a={},l=o.meta||{},u=!1;for(var c in o)if(c!=l&&o.hasOwnProperty(c))for(var d=a[c]=[],f=o[c],p=0;p<f.length;p++){var h=f[p];d.push(new r(h,o)),(h.indent||h.dedent)&&(u=!0)}var m={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:u?[]:null}},copyState:function(t){var n={state:t.state,pending:t.pending,local:t.local,localState:null,indent:t.indent&&t.indent.slice(0)};t.localState&&(n.localState=e.copyState(t.local.mode,t.localState)),t.stack&&(n.stack=t.stack.slice(0));for(var r=t.persistentStates;r;r=r.next)n.persistentStates={mode:r.mode,spec:r.spec,state:r.state==t.localState?n.localState:e.copyState(r.mode,r.state),next:n.persistentStates};return n},token:i(a,n),innerMode:function(e){return e.local&&{mode:e.local.mode,state:e.localState}},indent:s(a,l)};if(l)for(var g in l)l.hasOwnProperty(g)&&(m[g]=l[g]);return m}}(n(5))},function(e,t,n){"use strict";n.r(t),n.d(t,"__DO_NOT_USE__ActionTypes",(function(){return o})),n.d(t,"applyMiddleware",(function(){return g})),n.d(t,"bindActionCreators",(function(){return d})),n.d(t,"combineReducers",(function(){return u})),n.d(t,"compose",(function(){return m})),n.d(t,"createStore",(function(){return s}));var r=n(236),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},o={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function a(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 s(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var l=e,u=t,c=[],d=c,f=!1;function p(){d===c&&(d=c.slice())}function h(){if(f)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return u}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(f)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return p(),d.push(e),function(){if(t){if(f)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,p();var n=d.indexOf(e);d.splice(n,1),c=null}}}function g(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(f)throw new Error("Reducers may not dispatch actions.");try{f=!0,u=l(u,e)}finally{f=!1}for(var t=c=d,n=0;n<t.length;n++){(0,t[n])()}return e}function v(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");l=e,g({type:o.REPLACE})}function y(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[r.a]=function(){return this},e}return g({type:o.INIT}),(i={dispatch:g,subscribe:m,getState:h,replaceReducer:v})[r.a]=y,i}function l(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function u(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var a,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:o.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:o.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+o.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,i={},o=0;o<s.length;o++){var u=s[o],c=n[u],d=e[u],f=c(d,t);if(void 0===f){var p=l(u,t);throw new Error(p)}i[u]=f,r=r||f!==d}return(r=r||s.length!==Object.keys(e).length)?i:e}}function c(e,t){return function(){return t(e.apply(this,arguments))}}function d(e,t){if("function"==typeof e)return c(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=c(i,t))}return n}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(){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 g(){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),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return h({},n,{dispatch:r=m.apply(void 0,o)(n.dispatch)})}}}},function(e,t,n){"use strict";var r=function(){this.disposed_=!1};r.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())},r.prototype.disposeInternal=function(){},t.a=r},function(e,t,n){"use strict";function r(e,t,n,r){for(var i=0,o=e[n-r],a=e[n-r+1];t<n;t+=r){var s=e[t],l=e[t+1];i+=a*s-o*l,o=s,a=l}return i/2}function i(e,t,n,i){for(var o=0,a=0,s=n.length;a<s;++a){var l=n[a];o+=r(e,t,l,i),t=l}return o}function o(e,t,n,r){for(var o=0,a=0,s=n.length;a<s;++a){var l=n[a];o+=i(e,t,l,r),t=l[l.length-1]}return o}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}))},function(e,t,n){"use strict";e.exports=i,e.exports.default=i;var r=n(1510);function i(e,t){if(!(this instanceof i))return new i(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function o(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function a(e,t){s(e,0,e.children.length,t,e)}function s(e,t,n,r,i){i||(i=m(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o,a=t;a<n;a++)o=e.children[a],l(i,e.leaf?r(o):o);return i}function l(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function u(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function d(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function p(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function h(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function m(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,t,n,i,o){for(var a,s=[t,n];s.length;)(n=s.pop())-(t=s.pop())<=i||(a=t+Math.ceil((n-t)/i/2)*i,r(e,a,t,n,o),s.push(t,a,a,n))}i.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,n=[],r=this.toBBox;if(!h(e,t))return n;for(var i,o,a,s,l=[];t;){for(i=0,o=t.children.length;i<o;i++)a=t.children[i],h(e,s=t.leaf?r(a):a)&&(t.leaf?n.push(a):p(e,s)?this._all(a,n):l.push(a));t=l.pop()}return n},collides:function(e){var t=this.data,n=this.toBBox;if(!h(e,t))return!1;for(var r,i,o,a,s=[];t;){for(r=0,i=t.children.length;r<i;r++)if(o=t.children[r],h(e,a=t.leaf?n(o):o)){if(t.leaf||p(e,a))return!0;s.push(o)}t=s.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}var r=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var i=this.data;this.data=r,r=i}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},insert:function(e){return e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=m([]),this},remove:function(e,t){if(!e)return this;for(var n,r,i,a,s=this.data,l=this.toBBox(e),u=[],c=[];s||u.length;){if(s||(s=u.pop(),r=u[u.length-1],n=c.pop(),a=!0),s.leaf&&-1!==(i=o(e,s.children,t)))return s.children.splice(i,1),u.push(s),this._condense(u),this;a||s.leaf||!p(s,l)?r?(n++,s=r.children[n],a=!1):s=null:(u.push(s),c.push(n),n=0,r=s,s=s.children[0])}return this},toBBox:function(e){return e},compareMinX:u,compareMinY:c,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},_build:function(e,t,n,r){var i,o=n-t+1,s=this._maxEntries;if(o<=s)return a(i=m(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/Math.pow(s,r-1))),(i=m([])).leaf=!1,i.height=r;var l,u,c,d,f=Math.ceil(o/s),p=f*Math.ceil(Math.sqrt(s));for(g(e,t,n,p,this.compareMinX),l=t;l<=n;l+=p)for(g(e,l,c=Math.min(l+p-1,n),f,this.compareMinY),u=l;u<=c;u+=f)d=Math.min(u+f-1,c),i.children.push(this._build(e,u,d,r-1));return a(i,this.toBBox),i},_chooseSubtree:function(e,t,n,r){for(var i,o,a,s,l,u,c,f,p,h;r.push(t),!t.leaf&&r.length-1!==n;){for(c=f=1/0,i=0,o=t.children.length;i<o;i++)l=d(a=t.children[i]),p=e,h=a,(u=(Math.max(h.maxX,p.maxX)-Math.min(h.minX,p.minX))*(Math.max(h.maxY,p.maxY)-Math.min(h.minY,p.minY))-l)<f?(f=u,c=l<c?l:c,s=a):u===f&&l<c&&(c=l,s=a);t=s||t.children[0]}return t},_insert:function(e,t,n){var r=this.toBBox,i=n?e:r(e),o=[],a=this._chooseSubtree(i,this.data,t,o);for(a.children.push(e),l(a,i);t>=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(i,o,t)},_split:function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),s=m(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,a(n,this.toBBox),a(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},_splitRoot:function(e,t){this.data=m([e,t]),this.data.height=e.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,n){var r,i,o,a,l,u,c,f,p,h,m,g,v,y;for(u=c=1/0,r=t;r<=n-t;r++)i=s(e,0,r,this.toBBox),o=s(e,r,n,this.toBBox),p=i,h=o,m=void 0,g=void 0,v=void 0,y=void 0,m=Math.max(p.minX,h.minX),g=Math.max(p.minY,h.minY),v=Math.min(p.maxX,h.maxX),y=Math.min(p.maxY,h.maxY),a=Math.max(0,v-m)*Math.max(0,y-g),l=d(i)+d(o),a<u?(u=a,f=r,c=l<c?l:c):a===u&&l<c&&(c=l,f=r);return f},_chooseSplitAxis:function(e,t,n){var r=e.leaf?this.compareMinX:u,i=e.leaf?this.compareMinY:c;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},_allDistMargin:function(e,t,n,r){e.children.sort(r);var i,o,a=this.toBBox,u=s(e,0,t,a),c=s(e,n-t,n,a),d=f(u)+f(c);for(i=t;i<n-t;i++)o=e.children[i],l(u,e.leaf?a(o):o),d+=f(u);for(i=n-t-1;i>=t;i--)o=e.children[i],l(c,e.leaf?a(o):o),d+=f(c);return d},_adjustParentBBoxes:function(e,t,n){for(var r=n;r>=0;r--)l(t[r],e)},_condense:function(e){for(var t,n=e.length-1;n>=0;n--)0===e[n].children.length?n>0?(t=e[n-1].children).splice(t.indexOf(e[n]),1):this.clear():a(e[n],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}},function(e,t,n){"use strict";var r=n(26),i=n(3),o=n(10),a=n(114),s=n(62),l=n(72),u=n(73),c=n(15),d=function(e){function t(t,n){e.call(this),n&&!Array.isArray(t[0])?this.setFlatCoordinates(n,t):this.setCoordinates(t,n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.appendPoint=function(e){this.flatCoordinates?Object(r.c)(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.changed()},t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout)},t.prototype.closestPointXY=function(e,t,n,r){if(r<Object(i.e)(this.getExtent(),e,t))return r;for(var o=this.flatCoordinates,a=this.stride,s=0,l=o.length;s<l;s+=a){var u=Object(c.f)(e,t,o[s],o[s+1]);if(u<r){r=u;for(var d=0;d<a;++d)n[d]=o[s+d];n.length=a}}return r},t.prototype.getCoordinates=function(){return Object(u.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getPoint=function(e){var t=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return e<0||t<=e?null:new a.a(this.flatCoordinates.slice(e*this.stride,(e+1)*this.stride),this.layout)},t.prototype.getPoints=function(){for(var e=this.flatCoordinates,t=this.layout,n=this.stride,r=[],i=0,o=e.length;i<o;i+=n){var s=new a.a(e.slice(i,i+n),t);r.push(s)}return r},t.prototype.getType=function(){return o.a.MULTI_POINT},t.prototype.intersectsExtent=function(e){for(var t=this.flatCoordinates,n=this.stride,r=0,o=t.length;r<o;r+=n){var a=t[r],s=t[r+1];if(Object(i.h)(e,a,s))return!0}return!1},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(l.b)(this.flatCoordinates,0,e,this.stride),this.changed()},t}(s.a);t.a=d},function(e,t,n){"use strict";n.r(t);var r=n(23),i=n(416);function o(e){var t=JSON.stringify(e);return Object(i.btoa)(encodeURIComponent(t))}function a(e){var t=decodeURIComponent(Object(i.atob)(e));return JSON.parse(t)}var s={deserialize:function(e,t){var n=a(e);return r.Value.fromJSON(n,t)},deserializeNode:function(e,t){var n=a(e);return r.Node.fromJSON(n,t)},serialize:function(e,t){return o(e.toJSON(t))},serializeNode:function(e,t){return o(e.toJSON(t))}};t.default=s},function(e,t,n){"use strict";var r=function(e){function t(t,n,r){e.call(this,t),this.map=n,this.frameState=void 0!==r?r:null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(n(50).a);t.a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}));var r=n(26),i=n(15);function o(e,t,n,o,a,s){var l=NaN,u=NaN,c=(n-t)/o;if(1===c)l=e[t],u=e[t+1];else if(2==c)l=(1-a)*e[t]+a*e[t+o],u=(1-a)*e[t+1]+a*e[t+o+1];else if(0!==c){for(var d=e[t],f=e[t+1],p=0,h=[0],m=t+o;m<n;m+=o){var g=e[m],v=e[m+1];p+=Math.sqrt((g-d)*(g-d)+(v-f)*(v-f)),h.push(p),d=g,f=v}var y=a*p,b=Object(r.a)(h,y);if(b<0){var _=(y-h[-b-2])/(h[-b-1]-h[-b-2]),w=t+(-b-2)*o;l=Object(i.c)(e[w],e[w+o],_),u=Object(i.c)(e[w+1],e[w+o+1],_)}else l=e[t+b*o],u=e[t+b*o+1]}return s?(s[0]=l,s[1]=u,s):[l,u]}function a(e,t,n,r,o,a){if(n==t)return null;var s;if(o<e[t+r-1])return a?((s=e.slice(t,t+r))[r-1]=o,s):null;if(e[n-1]<o)return a?((s=e.slice(n-r,n))[r-1]=o,s):null;if(o==e[t+r-1])return e.slice(t,t+r);for(var l=t/r,u=n/r;l<u;){var c=l+u>>1;o<e[(c+1)*r-1]?u=c:l=c+1}var d=e[l*r-1];if(o==d)return e.slice((l-1)*r,(l-1)*r+r);var f=(o-d)/(e[(l+1)*r-1]-d);s=[];for(var p=0;p<r-1;++p)s.push(Object(i.c)(e[(l-1)*r+p],e[l*r+p],f));return s.push(o),s}function s(e,t,n,r,i,o,s){if(s)return a(e,t,n[n.length-1],r,i,o);var l;if(i<e[r-1])return o?((l=e.slice(0,r))[r-1]=i,l):null;if(e[e.length-1]<i)return o?((l=e.slice(e.length-r))[r-1]=i,l):null;for(var u=0,c=n.length;u<c;++u){var d=n[u];if(t!=d){if(i<e[t+r-1])return null;if(i<=e[d-1])return a(e,t,d,r,i,!1);t=d}}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.authenticating=s,t.authenticate=l,t.authError=u,t.doneAuthenticating=c,t.useOpenAuthoring=d,t.logout=f,t.authenticateUser=function(){return(e,t)=>{const n=t(),r=(0,i.currentBackend)(n.config);return e(s()),r.currentUser().then(t=>{t?(t.useOpenAuthoring&&e(d()),e(l(t))):e(c())}).catch(t=>{e(u(t)),e(p())})}},t.loginUser=function(e){return(t,n)=>{const r=n(),a=(0,i.currentBackend)(r.config);return t(s()),a.authenticate(e).then(e=>{e.useOpenAuthoring&&t(d()),t(l(e))}).catch(e=>{console.error(e),t(o({message:{details:e.message,key:"ui.toast.onFailToAuth"},kind:"warning",dismissAfter:8e3})),t(u(e))})}},t.logoutUser=p,t.LOGOUT=t.USE_OPEN_AUTHORING=t.AUTH_REQUEST_DONE=t.AUTH_FAILURE=t.AUTH_SUCCESS=t.AUTH_REQUEST=void 0;var r=n(133),i=n(119);const{notifSend:o,notifClear:a}=r.actions;t.AUTH_REQUEST="AUTH_REQUEST";t.AUTH_SUCCESS="AUTH_SUCCESS";t.AUTH_FAILURE="AUTH_FAILURE";t.AUTH_REQUEST_DONE="AUTH_REQUEST_DONE";t.USE_OPEN_AUTHORING="USE_OPEN_AUTHORING";function s(){return{type:"AUTH_REQUEST"}}function l(e){return{type:"AUTH_SUCCESS",payload:e}}function u(e){return{type:"AUTH_FAILURE",error:"Failed to authenticate",payload:e}}function c(){return{type:"AUTH_REQUEST_DONE"}}function d(){return{type:"USE_OPEN_AUTHORING"}}function f(){return{type:"LOGOUT"}}function p(){return(e,t)=>{const n=t(),r=(0,i.currentBackend)(n.config);Promise.resolve(r.logout()).then(()=>{e({type:"LOGOUT"}),e(a())})}}t.LOGOUT="LOGOUT"},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(154),i=n(134);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var r=n(212),i=n(432),o=n(137),a=n(454),s=o((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},function(e,t,n){var r=n(245),i=n(738);e.exports=function e(t,n,o,a,s){var l=-1,u=t.length;for(o||(o=i),s||(s=[]);++l<u;){var c=t[l];n>0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},function(e,t,n){var r=n(739),i=n(69),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t,n){(function(e){var r=n(75),i=n(755),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l}).call(this,n(135)(e))},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},function(e,t,n){var r=n(212);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(157).Buffer)},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.createAssetProxy=function({url:e,file:t,path:n,field:r}){return new i({url:e,file:t,path:n,field:r})},t.default=void 0;class i{constructor({url:e,file:t,path:n,field:i}){r(this,"url",void 0),r(this,"fileObj",void 0),r(this,"path",void 0),r(this,"field",void 0),this.url=e||window.URL.createObjectURL(t),this.fileObj=t,this.path=n,this.field=i}toString(){return this.url}async toBase64(){const e=await fetch(this.url).then(e=>e.blob());if(e.size<=0)return"";return await new Promise(t=>{const n=new FileReader;n.onload=e=>{var n;const r=(null===(n=e.target)||void 0===n?void 0:n.result)||"";t(r.toString().split("base64,")[1])},n.readAsDataURL(e)})}}t.default=i},function(e,t,n){"use strict";function r(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.exports=r},function(e,t,n){"use strict";var r=n(187);e.exports=new r({include:[n(473)],implicit:[n(820),n(821)],explicit:[n(822),n(823),n(824),n(825)]})},function(e,t,n){var r=n(496),i=n(911),o=n(912),a=n(497),s=n(918),l=n(349),u=n(919),c=n(501),d=n(502),f=n(110),p=Math.max;e.exports=function(e,t,n,h,m,g,v,y){var b=2&t;if(!b&&"function"!=typeof e)throw new TypeError("Expected a function");var _=h?h.length:0;if(_||(t&=-97,h=m=void 0),v=void 0===v?v:p(f(v),0),y=void 0===y?y:f(y),_-=m?m.length:0,64&t){var w=h,x=m;h=m=void 0}var k=b?void 0:l(e),E=[e,t,n,h,m,w,x,g,v,y];if(k&&u(E,k),e=E[0],t=E[1],n=E[2],h=E[3],m=E[4],!(y=E[9]=void 0===E[9]?b?0:e.length:p(E[9]-_,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||16==t?o(e,t,y):32!=t&&33!=t||m.length?a.apply(void 0,E):s(e,t,n,h);else var S=i(e,t,n);return d((k?r:c)(S,E),e,t)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&"__lodash_placeholder__"!==a||(e[n]="__lodash_placeholder__",o[i++]=n)}return o}},function(e,t){e.exports={}},function(e,t,n){var r=n(439),i=n(927),o=n(136);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadUnpublishedEntry=T,t.loadUnpublishedEntries=C,t.persistUnpublishedEntry=function(e,t){return async(n,o)=>{const a=o(),s=a.entryDraft,d=s.get("fieldsErrors"),p=(0,c.selectUnpublishedSlugs)(a,e.get("name")),h=(0,c.selectPublishedSlugs)(a,e.get("name")).concat(p);if(!(0,r.default)(a.editorialWorkflow.toJS(),"pages.ids",!1)&&n(C(a.collections)),!d.isEmpty()){return d.some(e=>e.some(e=>e.type&&e.type===b.default.PRESENCE))&&n(x({message:{key:"ui.toast.missingRequiredField"},kind:"danger",dismissAfter:8e3})),Promise.reject()}const g=(0,u.currentBackend)(a.config),v=(0,i.default)(),y=s.get("entry"),w=(0,m.getMediaAssets)({entry:y}),k=(0,f.selectFields)(e,y.get("slug")),A=(0,l.serializeValues)(y.get("data"),k),P=y.set("data",A),R=s.set("entry",P);n(E(e,P,v));const M=t?g.persistUnpublishedEntry:g.persistEntry;try{const t=await M.call(g,{config:a.config,collection:e,entryDraft:R,assetProxies:w,usedSlugs:h});n(x({message:{key:"ui.toast.entrySaved"},kind:"success",dismissAfter:4e3})),n(S(e,v,t)),y.get("slug")!==t&&(n(T(e,t)),(0,_.navigateToEntry)(e.get("name"),t))}catch(e){return n(x({message:{key:"ui.toast.onFailToPersist",details:e},kind:"danger",dismissAfter:8e3})),Promise.reject(n(O(e,v)))}}},t.updateUnpublishedEntryStatus=function(e,t,n,r){return(o,s)=>{if(n===r)return;const l=s(),c=(0,u.currentBackend)(l.config),d=(0,i.default)();o(function(e,t,n,r,i){return{type:"UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST",payload:{collection:e,slug:t,oldStatus:n,newStatus:r},optimist:{type:a.BEGIN,id:i}}}(e,t,n,r,d)),c.updateUnpublishedEntryStatus(e,t,r).then(()=>{o(x({message:{key:"ui.toast.entryUpdated"},kind:"success",dismissAfter:4e3})),o(function(e,t,n,r,i){return{type:"UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS",payload:{collection:e,slug:t,oldStatus:n,newStatus:r},optimist:{type:a.COMMIT,id:i}}}(e,t,n,r,d))}).catch(n=>{o(x({message:{key:"ui.toast.onFailToUpdateStatus",details:n},kind:"danger",dismissAfter:8e3})),o(function(e,t,n){return{type:"UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE",payload:{collection:e,slug:t},optimist:{type:a.REVERT,id:n}}}(e,t,d))})}},t.deleteUnpublishedEntry=function(e,t){return(n,r)=>{const o=r(),s=(0,u.currentBackend)(o.config),l=(0,i.default)();return n(function(e,t,n){return{type:"UNPUBLISHED_ENTRY_DELETE_REQUEST",payload:{collection:e,slug:t},optimist:{type:a.BEGIN,id:n}}}(e,t,l)),s.deleteUnpublishedEntry(e,t).then(()=>{n(x({message:{key:"ui.toast.onDeleteUnpublishedChanges"},kind:"success",dismissAfter:4e3})),n(function(e,t,n){return{type:"UNPUBLISHED_ENTRY_DELETE_SUCCESS",payload:{collection:e,slug:t},optimist:{type:a.COMMIT,id:n}}}(e,t,l))}).catch(r=>{n(x({message:{key:"ui.toast.onDeleteUnpublishedChanges",details:r},kind:"danger",dismissAfter:8e3})),n(function(e,t,n){return{type:"UNPUBLISHED_ENTRY_DELETE_FAILURE",payload:{collection:e,slug:t},optimist:{type:a.REVERT,id:n}}}(e,t,l))})}},t.publishUnpublishedEntry=function(e,t){return async(n,r)=>{const o=r(),s=o.collections,l=(0,u.currentBackend)(o.config),f=(0,i.default)(),p=(0,c.selectUnpublishedEntry)(o,e,t);n(function(e,t,n){return{type:"UNPUBLISHED_ENTRY_PUBLISH_REQUEST",payload:{collection:e,slug:t},optimist:{type:a.BEGIN,id:n}}}(e,t,f));try{await l.publishUnpublishedEntry(p),n((0,y.loadMedia)()),n(x({message:{key:"ui.toast.entryPublished"},kind:"success",dismissAfter:4e3})),n(function(e,t,n){return{type:"UNPUBLISHED_ENTRY_PUBLISH_SUCCESS",payload:{collection:e,slug:t},optimist:{type:a.COMMIT,id:n}}}(e,t,f));const r=s.get(e);if(!r.has("nested"))return n((0,m.loadEntry)(r,t));{n((0,m.loadEntries)(r));const e=(0,u.slugFromCustomPath)(r,p.get("path"));(0,m.loadEntry)(r,e),t!==e&&(0,d.selectEditingDraft)(o.entryDraft)&&(0,_.navigateToEntry)(r.get("name"),e)}}catch(r){n(x({message:{key:"ui.toast.onFailToPublishEntry",details:r},kind:"danger",dismissAfter:8e3})),n(function(e,t,n){return{type:"UNPUBLISHED_ENTRY_PUBLISH_FAILURE",payload:{collection:e,slug:t},optimist:{type:a.REVERT,id:n}}}(e,t,f))}}},t.unpublishPublishedEntry=function(e,t){return(n,r)=>{const o=r(),a=(0,u.currentBackend)(o.config),l=(0,i.default)(),d=(0,c.selectEntry)(o,e.get("name"),t),f=(0,s.Map)().set("entry",d);return n(E(e,d,l)),a.deleteEntry(o,e,t).then(()=>a.persistEntry({config:o.config,collection:e,entryDraft:f,assetProxies:[],usedSlugs:(0,s.List)(),status:p.status.get("PENDING_PUBLISH")})).then(()=>{n(S(e,l,t)),n((0,m.entryDeleted)(e,t)),n(T(e,t)),n(x({message:{key:"ui.toast.entryUnpublished"},kind:"success",dismissAfter:4e3}))}).catch(e=>{n(x({message:{key:"ui.toast.onFailToUnpublishEntry",details:e},kind:"danger",dismissAfter:8e3})),n(O(e,l))})}},t.UNPUBLISHED_ENTRY_DELETE_FAILURE=t.UNPUBLISHED_ENTRY_DELETE_SUCCESS=t.UNPUBLISHED_ENTRY_DELETE_REQUEST=t.UNPUBLISHED_ENTRY_PUBLISH_FAILURE=t.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS=t.UNPUBLISHED_ENTRY_PUBLISH_REQUEST=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST=t.UNPUBLISHED_ENTRY_PERSIST_FAILURE=t.UNPUBLISHED_ENTRY_PERSIST_SUCCESS=t.UNPUBLISHED_ENTRY_PERSIST_REQUEST=t.UNPUBLISHED_ENTRIES_FAILURE=t.UNPUBLISHED_ENTRIES_SUCCESS=t.UNPUBLISHED_ENTRIES_REQUEST=t.UNPUBLISHED_ENTRY_REDIRECT=t.UNPUBLISHED_ENTRY_SUCCESS=t.UNPUBLISHED_ENTRY_REQUEST=void 0;var r=w(n(82)),i=w(n(140)),o=n(133),a=n(425),s=n(4),l=n(490),u=n(119),c=n(100),d=n(104),f=n(67),p=n(103),h=n(37),m=n(123),g=n(219),v=n(165),y=n(141),b=w(n(359)),_=n(152);function w(e){return e&&e.__esModule?e:{default:e}}const{notifSend:x}=o.actions;t.UNPUBLISHED_ENTRY_REQUEST="UNPUBLISHED_ENTRY_REQUEST";t.UNPUBLISHED_ENTRY_SUCCESS="UNPUBLISHED_ENTRY_SUCCESS";t.UNPUBLISHED_ENTRY_REDIRECT="UNPUBLISHED_ENTRY_REDIRECT";t.UNPUBLISHED_ENTRIES_REQUEST="UNPUBLISHED_ENTRIES_REQUEST";t.UNPUBLISHED_ENTRIES_SUCCESS="UNPUBLISHED_ENTRIES_SUCCESS";t.UNPUBLISHED_ENTRIES_FAILURE="UNPUBLISHED_ENTRIES_FAILURE";t.UNPUBLISHED_ENTRY_PERSIST_REQUEST="UNPUBLISHED_ENTRY_PERSIST_REQUEST";t.UNPUBLISHED_ENTRY_PERSIST_SUCCESS="UNPUBLISHED_ENTRY_PERSIST_SUCCESS";t.UNPUBLISHED_ENTRY_PERSIST_FAILURE="UNPUBLISHED_ENTRY_PERSIST_FAILURE";t.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST="UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST";t.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS="UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS";t.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE="UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE";t.UNPUBLISHED_ENTRY_PUBLISH_REQUEST="UNPUBLISHED_ENTRY_PUBLISH_REQUEST";t.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS="UNPUBLISHED_ENTRY_PUBLISH_SUCCESS";t.UNPUBLISHED_ENTRY_PUBLISH_FAILURE="UNPUBLISHED_ENTRY_PUBLISH_FAILURE";t.UNPUBLISHED_ENTRY_DELETE_REQUEST="UNPUBLISHED_ENTRY_DELETE_REQUEST";t.UNPUBLISHED_ENTRY_DELETE_SUCCESS="UNPUBLISHED_ENTRY_DELETE_SUCCESS";function k(e,t){return{type:"UNPUBLISHED_ENTRIES_SUCCESS",payload:{entries:e,pages:t}}}function E(e,t,n){return{type:"UNPUBLISHED_ENTRY_PERSIST_REQUEST",payload:{collection:e.get("name"),entry:t},optimist:{type:a.BEGIN,id:n}}}function S(e,t,n){return{type:"UNPUBLISHED_ENTRY_PERSIST_SUCCESS",payload:{collection:e.get("name"),slug:n},optimist:{type:a.COMMIT,id:t}}}function O(e,t){return{type:"UNPUBLISHED_ENTRY_PERSIST_FAILURE",payload:{error:e},optimist:{type:a.REVERT,id:t},error:e}}function T(e,t){return async(n,i)=>{const o=i(),a=(0,u.currentBackend)(o.config);if(!(0,r.default)(o.editorialWorkflow.toJS(),"pages.ids",!1))try{const{entries:e,pagination:t}=await a.unpublishedEntries(o.collections);n(k(e,t))}catch(e){}n(function(e,t){return{type:"UNPUBLISHED_ENTRY_REQUEST",payload:{collection:e.get("name"),slug:t}}}(e,t));try{const r=await a.unpublishedEntry(o,e,t),i=await Promise.all(r.mediaFiles.filter(e=>e.draft).map(({url:e,file:t,path:n})=>(0,g.createAssetProxy)({path:n,url:e,file:t})));n((0,v.addAssets)(i)),n(function(e,t){return{type:"UNPUBLISHED_ENTRY_SUCCESS",payload:{collection:e.get("name"),entry:t}}}(e,r)),n((0,m.createDraftFromEntry)(r))}catch(r){r.name===h.EDITORIAL_WORKFLOW_ERROR&&r.notUnderEditorialWorkflow?(n(function(e,t){return{type:"UNPUBLISHED_ENTRY_REDIRECT",payload:{collection:e.get("name"),slug:t}}}(e,t)),n((0,m.loadEntry)(e,t))):n(x({message:{key:"ui.toast.onFailToLoadEntries",details:r},kind:"danger",dismissAfter:8e3}))}}}function C(e){return(t,n)=>{const i=n(),o=(0,u.currentBackend)(i.config),a=(0,r.default)(i.editorialWorkflow.toJS(),"pages.ids",!1);i.config.get("publish_mode")!==p.EDITORIAL_WORKFLOW||a||(t({type:"UNPUBLISHED_ENTRIES_REQUEST"}),o.unpublishedEntries(e).then(e=>t(k(e.entries,e.pagination))).catch(e=>{t(x({message:{key:"ui.toast.onFailToLoadEntries",details:e},kind:"danger",dismissAfter:8e3})),t(function(e){return{type:"UNPUBLISHED_ENTRIES_FAILURE",error:"Failed to load entries",payload:e}}(e)),Promise.reject(e)}))}}t.UNPUBLISHED_ENTRY_DELETE_FAILURE="UNPUBLISHED_ENTRY_DELETE_FAILURE"},function(e,t,n){"use strict";e.exports=function(e,t,n){for(var r in n=n||{},t)t.hasOwnProperty(r)&&(n[r]||(e[r]=t[r]))}},function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var u=o[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(i=n?n.call(r,c,d,u):void 0)||void 0===i&&c!==d)return!1}return!0}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){var r=n(76),i=n(1128),o=n(489),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,f,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,h=t,d=e.apply(r,n)}function b(e){return h=e,f=setTimeout(w,t),m?y(e):d}function _(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=c}function w(){var e=i();if(_(e))return x(e);f=setTimeout(w,function(e){var n=t-(e-p);return g?s(n,c-(e-h)):n}(e))}function x(e){return f=void 0,v&&l?y(e):(l=u=void 0,d)}function k(){var e=i(),n=_(e);if(l=arguments,u=this,p=e,n){if(void 0===f)return b(p);if(g)return clearTimeout(f),f=setTimeout(w,t),y(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(g="maxWait"in n)?a(o(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=u=f=void 0},k.flush=function(){return void 0===f?d:x(i())},k}},function(e,t,n){"use strict";e.exports=function(e,t){if(null==t)return"";if(e.frozenBaseUrl&&"undefined"!=typeof URL)return String(new URL(t,e.frozenBaseUrl));return t}},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}e.defineMode("css",(function(t,n){var r=n.inline;n.propertyKeywords||(n=e.resolveMode("text/css"));var i,o,a=t.indentUnit,s=n.tokenHooks,l=n.documentTypes||{},u=n.mediaTypes||{},c=n.mediaFeatures||{},d=n.mediaValueKeywords||{},f=n.propertyKeywords||{},p=n.nonStandardPropertyKeywords||{},h=n.fontProperties||{},m=n.counterDescriptors||{},g=n.colorKeywords||{},v=n.valueKeywords||{},y=n.allowNested,b=n.lineComment,_=!0===n.supportsAtComponent;function w(e,t){return i=t,e}function x(e,t){var n=e.next();if(s[n]){var r=s[n](e,t);if(!1!==r)return r}return"@"==n?(e.eatWhile(/[\w\\\-]/),w("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?w(null,"compare"):'"'==n||"'"==n?(t.tokenize=k(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),w("atom","hash")):"!"==n?(e.match(/^\s*\w*/),w("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),w("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?w(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?w("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?w(null,n):e.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(e.current().toLowerCase())&&(t.tokenize=E),w("variable callee","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),w("property","word")):w(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),w("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?w("variable-2","variable-definition"):w("variable-2","variable")):e.match(/^\w+-/)?w("meta","meta"):void 0}function k(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),w("string","string")}}function E(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=k(")"),w(null,"(")}function S(e,t,n){this.type=e,this.indent=t,this.prev=n}function O(e,t,n,r){return e.context=new S(n,t.indentation()+(!1===r?0:a),e.context),n}function T(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function C(e,t,n){return R[n.context.type](e,t,n)}function A(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return C(e,t,n)}function P(e){var t=e.current().toLowerCase();o=v.hasOwnProperty(t)?"atom":g.hasOwnProperty(t)?"keyword":"variable"}var R={top:function(e,t,n){if("{"==e)return O(n,t,"block");if("}"==e&&n.context.prev)return T(n);if(_&&/@component/i.test(e))return O(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return O(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return O(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return O(n,t,"at");if("hash"==e)o="builtin";else if("word"==e)o="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return O(n,t,"interpolation");if(":"==e)return"pseudo";if(y&&"("==e)return O(n,t,"parens")}return n.context.type},block:function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return f.hasOwnProperty(r)?(o="property","maybeprop"):p.hasOwnProperty(r)?(o="string-2","maybeprop"):y?(o=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(o+=" error","maybeprop")}return"meta"==e?"block":y||"hash"!=e&&"qualifier"!=e?R.top(e,t,n):(o="error","block")},maybeprop:function(e,t,n){return":"==e?O(n,t,"prop"):C(e,t,n)},prop:function(e,t,n){if(";"==e)return T(n);if("{"==e&&y)return O(n,t,"propBlock");if("}"==e||"{"==e)return A(e,t,n);if("("==e)return O(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)P(t);else if("interpolation"==e)return O(n,t,"interpolation")}else o+=" error";return"prop"},propBlock:function(e,t,n){return"}"==e?T(n):"word"==e?(o="property","maybeprop"):n.context.type},parens:function(e,t,n){return"{"==e||"}"==e?A(e,t,n):")"==e?T(n):"("==e?O(n,t,"parens"):"interpolation"==e?O(n,t,"interpolation"):("word"==e&&P(t),"parens")},pseudo:function(e,t,n){return"meta"==e?"pseudo":"word"==e?(o="variable-3",n.context.type):C(e,t,n)},documentTypes:function(e,t,n){return"word"==e&&l.hasOwnProperty(t.current())?(o="tag",n.context.type):R.atBlock(e,t,n)},atBlock:function(e,t,n){if("("==e)return O(n,t,"atBlock_parens");if("}"==e||";"==e)return A(e,t,n);if("{"==e)return T(n)&&O(n,t,y?"block":"top");if("interpolation"==e)return O(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();o="only"==r||"not"==r||"and"==r||"or"==r?"keyword":u.hasOwnProperty(r)?"attribute":c.hasOwnProperty(r)?"property":d.hasOwnProperty(r)?"keyword":f.hasOwnProperty(r)?"property":p.hasOwnProperty(r)?"string-2":v.hasOwnProperty(r)?"atom":g.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(e,t,n){return"}"==e?A(e,t,n):"{"==e?T(n)&&O(n,t,y?"block":"top",!1):("word"==e&&(o="error"),n.context.type)},atBlock_parens:function(e,t,n){return")"==e?T(n):"{"==e||"}"==e?A(e,t,n,2):R.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,n){return"{"==e?O(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(o="variable","restricted_atBlock_before"):C(e,t,n)},restricted_atBlock:function(e,t,n){return"}"==e?(n.stateArg=null,T(n)):"word"==e?(o="@font-face"==n.stateArg&&!h.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!m.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,n){return"word"==e?(o="variable","keyframes"):"{"==e?O(n,t,"top"):C(e,t,n)},at:function(e,t,n){return";"==e?T(n):"{"==e||"}"==e?A(e,t,n):("word"==e?o="tag":"hash"==e&&(o="builtin"),"at")},interpolation:function(e,t,n){return"}"==e?T(n):"{"==e||";"==e?A(e,t,n):("word"==e?o="variable":"variable"!=e&&"("!=e&&")"!=e&&(o="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new S(r?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||x)(e,t);return n&&"object"==typeof n&&(i=n[1],n=n[0]),o=n,"comment"!=i&&(t.state=R[t.state](i,e,t)),o},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(i=Math.max(0,n.indent-a)):i=(n=n.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}));var n=["domain","regexp","url","url-prefix"],r=t(n),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=t(i),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=t(a),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],u=t(l),c=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],d=t(c),f=["border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],p=t(f),h=t(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),m=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),g=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],v=t(g),y=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],b=t(y),_=n.concat(i).concat(a).concat(l).concat(c).concat(f).concat(g).concat(y);function w(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}e.registerHelper("hintWords","css",_),e.defineMIME("text/css",{documentTypes:r,mediaTypes:o,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:v,valueKeywords:b,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=w,w(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:v,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=w,w(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:v,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=w,w(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:o,mediaFeatures:s,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:v,valueKeywords:b,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=w,w(e,t))}},name:"css",helperType:"gss"})}(n(5))},function(e,t,n){!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,l={},u=i.htmlMode?t:n;for(var c in u)l[c]=u[c];for(var c in i)l[c]=i[c];function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]>")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(function e(t){return function(n,r){for(var i;null!=(i=n.next());){if("<"==i)return r.tokenize=e(t+1),r.tokenize(n,r);if(">"==i){if(1==t){r.tokenize=d;break}return r.tokenize=e(t-1),r.tokenize(n,r)}}return"meta"}}(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function f(e,t){var n,r,i=e.next();if(">"==i||"/"==i&&e.eat(">"))return t.tokenize=d,o=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return o="equals",null;if("<"==i){t.tokenize=d,t.state=v,t.tagName=t.tagStart=null;var a=t.tokenize(e,t);return a?a+" tag error":"tag error"}return/[\'\"]/.test(i)?(t.tokenize=(n=i,(r=function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=f;break}return"string"}).isInAttribute=!0,r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=d;break}n.next()}return e}}function h(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function m(e){e.context&&(e.context=e.context.prev)}function g(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(t))return;m(e)}}function v(e,t,n){return"openTag"==e?(n.tagStart=t.column(),y):"closeTag"==e?b:v}function y(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",x):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",x(e,0,n)):(a="error",y)}function b(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&m(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",_):(a="tag error",w)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",_(e,0,n)):(a="error",w)}function _(e,t,n){return"endTag"!=e?(a="error",_):(m(n),v)}function w(e,t,n){return a="error",_(e,0,n)}function x(e,t,n){if("word"==e)return a="attribute",k;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(r)?g(n,r):(g(n,r),n.context=new h(n,r,i==n.indented)),v}return a="error",x}function k(e,t,n){return"equals"==e?E:(l.allowMissing||(a="error"),x(e,0,n))}function E(e,t,n){return"string"==e?S:"word"==e&&l.allowUnquoted?(a="string",x):(a="error",x(e,0,n))}function S(e,t,n){return"string"==e?S:x(e,0,n)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:v,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=f&&t.tokenize!=d)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;i;){if(i.tagName==o[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(o)for(;i;){var a=l.contextGrabbers[i.tagName];if(!a||!a.hasOwnProperty(o[2]))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==E&&(e.state=x)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)n.tagName&&t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(5))},function(e,t,n){!function(e){"use strict";e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<e.start)&&(i.streamSeen=e,i.basePos=i.overlayPos=e.start),e.start==i.basePos&&(i.baseCur=t.token(e,i.base),i.basePos=e.pos),e.start==i.overlayPos&&(e.pos=e.start,i.overlayCur=n.token(e,i.overlay),i.overlayPos=e.pos),e.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n,r){return t.indent(e.base,n,r)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(e){var i,o;return t.blankLine&&(i=t.blankLine(e.base)),n.blankLine&&(o=n.blankLine(e.overlay)),null==o?i:r&&null!=i?i+" "+o:o}}}}(n(5))},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return a})),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";(function(e,r){var i,o=n(663);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(o.a)(i);t.a=a}).call(this,n(43),n(695)(e))},function(e,t,n){"use strict";t.a={ACTIVE:"active"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(15);n(10);function i(e,t,n){var i=n||6371008.8,o=Object(r.i)(e[1]),a=Object(r.i)(t[1]),s=(a-o)/2,l=Object(r.i)(t[0]-e[0])/2,u=Math.sin(s)*Math.sin(s)+Math.sin(l)*Math.sin(l)*Math.cos(o)*Math.cos(a);return 2*i*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))}function o(e,t,n,i){var o=i||6371008.8,a=Object(r.i)(e[1]),s=Object(r.i)(e[0]),l=t/o,u=Math.asin(Math.sin(a)*Math.cos(l)+Math.cos(a)*Math.sin(l)*Math.cos(n)),c=s+Math.atan2(Math.sin(n)*Math.sin(l)*Math.cos(a),Math.cos(l)-Math.sin(a)*Math.sin(u));return[Object(r.h)(c),Object(r.h)(u)]}},function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return x}));var r=n(27),i=n(10),o=n(97),a=n(87),s=n(34),l=n(41),u=n(52),c=n(12),d=n(6),f=function(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale};f.prototype.clone=function(){return new f({opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},f.prototype.getOpacity=function(){return this.opacity_},f.prototype.getRotateWithView=function(){return this.rotateWithView_},f.prototype.getRotation=function(){return this.rotation_},f.prototype.getScale=function(){return this.scale_},f.prototype.getSnapToPixel=function(){return!1},f.prototype.getAnchor=function(){return Object(d.b)()},f.prototype.getImage=function(e){return Object(d.b)()},f.prototype.getHitDetectionImage=function(e){return Object(d.b)()},f.prototype.getImageState=function(){return Object(d.b)()},f.prototype.getImageSize=function(){return Object(d.b)()},f.prototype.getHitDetectionImageSize=function(){return Object(d.b)()},f.prototype.getOrigin=function(){return Object(d.b)()},f.prototype.getSize=function(){return Object(d.b)()},f.prototype.setOpacity=function(e){this.opacity_=e},f.prototype.setRotateWithView=function(e){this.rotateWithView_=e},f.prototype.setRotation=function(e){this.rotation_=e},f.prototype.setScale=function(e){this.scale_=e},f.prototype.setSnapToPixel=function(e){},f.prototype.listenImageChange=function(e,t){return Object(d.b)()},f.prototype.load=function(){Object(d.b)()},f.prototype.unlistenImageChange=function(e,t){Object(d.b)()};var p=function(e){function t(t){var n=t||{};e.call(this,{points:1/0,fill:n.fill,radius:n.radius,stroke:n.stroke,atlasManager:n.atlasManager})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clone=function(){var e=new t({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),atlasManager:this.atlasManager_});return e.setOpacity(this.getOpacity()),e.setScale(this.getScale()),e},t.prototype.setRadius=function(e){this.radius_=e,this.render_(this.atlasManager_)},t}(function(e){function t(t){var n=void 0!==t.rotateWithView&&t.rotateWithView;e.call(this,{opacity:1,rotateWithView:n,rotation:void 0!==t.rotation?t.rotation:0,scale:1}),this.checksums_=null,this.canvas_=null,this.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius_=void 0!==t.radius?t.radius:t.radius1,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.anchor_=null,this.size_=null,this.imageSize_=null,this.hitDetectionImageSize_=null,this.atlasManager_=t.atlasManager,this.render_(this.atlasManager_)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clone=function(){var e=new t({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),atlasManager:this.atlasManager_});return e.setOpacity(this.getOpacity()),e.setScale(this.getScale()),e},t.prototype.getAnchor=function(){return this.anchor_},t.prototype.getAngle=function(){return this.angle_},t.prototype.getFill=function(){return this.fill_},t.prototype.getHitDetectionImage=function(e){return this.hitDetectionCanvas_},t.prototype.getImage=function(e){return this.canvas_},t.prototype.getImageSize=function(){return this.imageSize_},t.prototype.getHitDetectionImageSize=function(){return this.hitDetectionImageSize_},t.prototype.getImageState=function(){return u.a.LOADED},t.prototype.getOrigin=function(){return this.origin_},t.prototype.getPoints=function(){return this.points_},t.prototype.getRadius=function(){return this.radius_},t.prototype.getRadius2=function(){return this.radius2_},t.prototype.getSize=function(){return this.size_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.listenImageChange=function(e,t){},t.prototype.load=function(){},t.prototype.unlistenImageChange=function(e,t){},t.prototype.render_=function(e){var t,n,r="",i="",o=0,u=null,d=0,f=0;this.stroke_&&(null===(n=this.stroke_.getColor())&&(n=c.k),n=Object(a.a)(n),void 0===(f=this.stroke_.getWidth())&&(f=c.h),u=this.stroke_.getLineDash(),d=this.stroke_.getLineDashOffset(),l.a||(u=null,d=0),void 0===(i=this.stroke_.getLineJoin())&&(i=c.g),void 0===(r=this.stroke_.getLineCap())&&(r=c.d),void 0===(o=this.stroke_.getMiterLimit())&&(o=c.i));var p=2*(this.radius_+f)+1,h={strokeStyle:n,strokeWidth:f,size:p,lineCap:r,lineDash:u,lineDashOffset:d,lineJoin:i,miterLimit:o};if(void 0===e){var m=Object(s.a)(p,p);this.canvas_=m.canvas,t=p=this.canvas_.width,this.draw_(h,m,0,0),this.createHitDetectionCanvas_(h)}else{p=Math.round(p);var g,v=!this.fill_;v&&(g=this.drawHitDetectionCanvas_.bind(this,h));var y=this.getChecksum(),b=e.add(y,p,p,this.draw_.bind(this,h),g);this.canvas_=b.image,this.origin_=[b.offsetX,b.offsetY],t=b.image.width,v?(this.hitDetectionCanvas_=b.hitImage,this.hitDetectionImageSize_=[b.hitImage.width,b.hitImage.height]):(this.hitDetectionCanvas_=this.canvas_,this.hitDetectionImageSize_=[t,t])}this.anchor_=[p/2,p/2],this.size_=[p,p],this.imageSize_=[t,t]},t.prototype.draw_=function(e,t,n,r){var i,o,s;t.setTransform(1,0,0,1,0,0),t.translate(n,r),t.beginPath();var l=this.points_;if(l===1/0)t.arc(e.size/2,e.size/2,this.radius_,0,2*Math.PI,!0);else{var u=void 0!==this.radius2_?this.radius2_:this.radius_;for(u!==this.radius_&&(l*=2),i=0;i<=l;i++)o=2*i*Math.PI/l-Math.PI/2+this.angle_,s=i%2==0?this.radius_:u,t.lineTo(e.size/2+s*Math.cos(o),e.size/2+s*Math.sin(o))}if(this.fill_){var d=this.fill_.getColor();null===d&&(d=c.b),t.fillStyle=Object(a.a)(d),t.fill()}this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke()),t.closePath()},t.prototype.createHitDetectionCanvas_=function(e){if(this.hitDetectionImageSize_=[e.size,e.size],this.fill_)this.hitDetectionCanvas_=this.canvas_;else{var t=Object(s.a)(e.size,e.size);this.hitDetectionCanvas_=t.canvas,this.drawHitDetectionCanvas_(e,t,0,0)}},t.prototype.drawHitDetectionCanvas_=function(e,t,n,r){t.setTransform(1,0,0,1,0,0),t.translate(n,r),t.beginPath();var i=this.points_;if(i===1/0)t.arc(e.size/2,e.size/2,this.radius_,0,2*Math.PI,!0);else{var a,s,l,u=void 0!==this.radius2_?this.radius2_:this.radius_;for(u!==this.radius_&&(i*=2),a=0;a<=i;a++)l=2*a*Math.PI/i-Math.PI/2+this.angle_,s=a%2==0?this.radius_:u,t.lineTo(e.size/2+s*Math.cos(l),e.size/2+s*Math.sin(l))}t.fillStyle=Object(o.a)(c.b),t.fill(),this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.stroke()),t.closePath()},t.prototype.getChecksum=function(){var e=this.stroke_?this.stroke_.getChecksum():"-",t=this.fill_?this.fill_.getChecksum():"-";if(!this.checksums_||e!=this.checksums_[1]||t!=this.checksums_[2]||this.radius_!=this.checksums_[3]||this.radius2_!=this.checksums_[4]||this.angle_!=this.checksums_[5]||this.points_!=this.checksums_[6]){var n="r"+e+t+(void 0!==this.radius_?this.radius_.toString():"-")+(void 0!==this.radius2_?this.radius2_.toString():"-")+(void 0!==this.angle_?this.angle_.toString():"-")+(void 0!==this.points_?this.points_.toString():"-");this.checksums_=[n,e,t,this.radius_,this.radius2_,this.angle_,this.points_]}return this.checksums_[0]},t}(f)),h=function(e){var t=e||{};this.color_=void 0!==t.color?t.color:null,this.checksum_=void 0};h.prototype.clone=function(){var e=this.getColor();return new h({color:Array.isArray(e)?e.slice():e||void 0})},h.prototype.getColor=function(){return this.color_},h.prototype.setColor=function(e){this.color_=e,this.checksum_=void 0},h.prototype.getChecksum=function(){if(void 0===this.checksum_){var e=this.color_;e?Array.isArray(e)||"string"==typeof e?this.checksum_="f"+Object(o.a)(e):this.checksum_=Object(d.c)(this.color_):this.checksum_="f-"}return this.checksum_};var m=h,g=function(e){var t=e||{};this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width,this.checksum_=void 0};g.prototype.clone=function(){var e=this.getColor();return new g({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},g.prototype.getColor=function(){return this.color_},g.prototype.getLineCap=function(){return this.lineCap_},g.prototype.getLineDash=function(){return this.lineDash_},g.prototype.getLineDashOffset=function(){return this.lineDashOffset_},g.prototype.getLineJoin=function(){return this.lineJoin_},g.prototype.getMiterLimit=function(){return this.miterLimit_},g.prototype.getWidth=function(){return this.width_},g.prototype.setColor=function(e){this.color_=e,this.checksum_=void 0},g.prototype.setLineCap=function(e){this.lineCap_=e,this.checksum_=void 0},g.prototype.setLineDash=function(e){this.lineDash_=e,this.checksum_=void 0},g.prototype.setLineDashOffset=function(e){this.lineDashOffset_=e,this.checksum_=void 0},g.prototype.setLineJoin=function(e){this.lineJoin_=e,this.checksum_=void 0},g.prototype.setMiterLimit=function(e){this.miterLimit_=e,this.checksum_=void 0},g.prototype.setWidth=function(e){this.width_=e,this.checksum_=void 0},g.prototype.getChecksum=function(){return void 0===this.checksum_&&(this.checksum_="s",this.color_?"string"==typeof this.color_?this.checksum_+=this.color_:this.checksum_+=Object(d.c)(this.color_):this.checksum_+="-",this.checksum_+=","+(void 0!==this.lineCap_?this.lineCap_.toString():"-")+","+(this.lineDash_?this.lineDash_.toString():"-")+","+(void 0!==this.lineDashOffset_?this.lineDashOffset_:"-")+","+(void 0!==this.lineJoin_?this.lineJoin_:"-")+","+(void 0!==this.miterLimit_?this.miterLimit_.toString():"-")+","+(void 0!==this.width_?this.width_.toString():"-")),this.checksum_};var v=g,y=function(e){var t=e||{};this.geometry_=null,this.geometryFunction_=k,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex};function b(e){var t;if("function"==typeof e)t=e;else{var n;if(Array.isArray(e))n=e;else Object(r.a)("function"==typeof e.getZIndex,41),n=[e];t=function(){return n}}return t}y.prototype.clone=function(){var e=this.getGeometry();return e&&"object"==typeof e&&(e=e.clone()),new y({geometry:e,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},y.prototype.getRenderer=function(){return this.renderer_},y.prototype.setRenderer=function(e){this.renderer_=e},y.prototype.getGeometry=function(){return this.geometry_},y.prototype.getGeometryFunction=function(){return this.geometryFunction_},y.prototype.getFill=function(){return this.fill_},y.prototype.setFill=function(e){this.fill_=e},y.prototype.getImage=function(){return this.image_},y.prototype.setImage=function(e){this.image_=e},y.prototype.getStroke=function(){return this.stroke_},y.prototype.setStroke=function(e){this.stroke_=e},y.prototype.getText=function(){return this.text_},y.prototype.setText=function(e){this.text_=e},y.prototype.getZIndex=function(){return this.zIndex_},y.prototype.setGeometry=function(e){"function"==typeof e?this.geometryFunction_=e:"string"==typeof e?this.geometryFunction_=function(t){return t.get(e)}:e?void 0!==e&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=k,this.geometry_=e},y.prototype.setZIndex=function(e){this.zIndex_=e};var _=null;function w(e,t){if(!_){var n=new m({color:"rgba(255,255,255,0.4)"}),r=new v({color:"#3399CC",width:1.25});_=[new y({image:new p({fill:n,stroke:r,radius:5}),fill:n,stroke:r})]}return _}function x(){var e={},t=[255,255,255,1],n=[0,153,255,1];return e[i.a.POLYGON]=[new y({fill:new m({color:[255,255,255,.5]})})],e[i.a.MULTI_POLYGON]=e[i.a.POLYGON],e[i.a.LINE_STRING]=[new y({stroke:new v({color:t,width:5})}),new y({stroke:new v({color:n,width:3})})],e[i.a.MULTI_LINE_STRING]=e[i.a.LINE_STRING],e[i.a.CIRCLE]=e[i.a.POLYGON].concat(e[i.a.LINE_STRING]),e[i.a.POINT]=[new y({image:new p({radius:6,fill:new m({color:n}),stroke:new v({color:t,width:1.5})}),zIndex:1/0})],e[i.a.MULTI_POINT]=e[i.a.POINT],e[i.a.GEOMETRY_COLLECTION]=e[i.a.POLYGON].concat(e[i.a.LINE_STRING],e[i.a.POINT]),e}function k(e){return e.getGeometry()}},function(e,t,n){var r=n(428);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(153)(Object,"create");e.exports=r},function(e,t,n){var r=n(728),i=n(729),o=n(730),a=n(731),s=n(732);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(209);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(734);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t,n){var r=n(242),i=n(742),o=n(743),a=n(744),s=n(745),l=n(746);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},function(e,t,n){var r=n(314),i=n(748),o=n(749);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(756),i=n(156),o=n(250),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t,n){(function(e){var r=n(429),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(135)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(216);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},function(e,t,n){var r=n(774),i=n(324),o=n(775);e.exports=function(e){return i(e)?o(e):r(e)}},function(e,t,n){var r=n(322);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(101),i=n(69),o=n(257);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!o(e)}},function(e,t,n){var r=n(101),i=n(327),o=n(69),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick((function(){e.apply(null,o)}))}}}:e.exports=t}).call(this,n(70))},function(e,t){var n=Object.prototype.toString;function r(e){return"function"==typeof e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("boolean"===t)return"boolean";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if("function"===t)return function(e,t){return"GeneratorFunction"===r(e)}(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(r(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(t=n.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}},function(e,t,n){"use strict";const r=n(472),i=n(338);e.exports=function(e){const t=Object.assign({},e);return t.delimiters=i.arrayify(t.delims||t.delimiters||"---"),1===t.delimiters.length&&t.delimiters.push(t.delimiters[0]),t.language=(t.language||t.lang||"yaml").toLowerCase(),t.engines=Object.assign({},r,t.parsers,t.engines),t}},function(e,t,n){"use strict";var r=n(187);e.exports=r.DEFAULT=new r({include:[n(221)],explicit:[n(826),n(827),n(828)]})},function(e,t,n){var r=n(896);e.exports=function(e){return r(2,e)}},function(e,t,n){var r=n(316);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(76),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var r=n(217),i=n(452),o=n(321);e.exports=function(e){return o(i(e,void 0,r),e+"")}},function(e,t,n){var r=n(264),i=n(76);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r(e.prototype),o=e.apply(n,t);return i(o)?o:n}}},function(e,t){e.exports=function(e){return e.placeholder}},function(e,t,n){var r=n(921),i=n(923);e.exports=function(e,t,n){return r(i,e,t,n)}},function(e,t,n){var r=n(136),i=n(69);e.exports=function(e){return i(e)&&r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectMediaFiles=h,t.selectMediaFileByPath=function(e,t){const n=h(e);return n.find(e=>e.path===t)},t.selectMediaDisplayURL=function(e,t){return e.mediaLibrary.getIn(["displayURLs",t],(0,i.Map)())},t.default=void 0;var r,i=n(4),o=(r=n(140))&&r.__esModule?r:{default:r},a=n(141),s=n(104),l=n(100),u=n(89);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={isVisible:!1,showMediaButton:!0,controlMedia:(0,i.Map)(),displayURLs:(0,i.Map)(),config:(0,i.Map)()};function h(e,t){const{mediaLibrary:n,entryDraft:r}=e,o=(0,s.selectEditingDraft)(e.entryDraft),a=(0,l.selectIntegration)(e,null,"assetStore");let c;if(o&&!a){const n=r.getIn(["entry","mediaFiles"],(0,i.List)()).toJS(),o=r.get("entry"),a=e.collections.get(null==o?void 0:o.get("collection")),l=(0,s.selectMediaFolder)(e.config,a,o,t);c=n.filter(e=>(0,u.dirname)(e.path)===l).map(e=>d({key:e.id},e))}else c=n.get("files")||[];return c}var m=(e=(0,i.Map)(p),t)=>{switch(t.type){case a.MEDIA_LIBRARY_CREATE:return e.withMutations(e=>{e.set("externalLibrary",t.payload),e.set("showMediaButton",t.payload.enableStandalone())});case a.MEDIA_LIBRARY_OPEN:{const{controlID:n,forImage:r,privateUpload:o,config:a,field:s}=t.payload,l=a||(0,i.Map)();return e.get("privateUpload")!==o?(0,i.Map)({isVisible:!0,forImage:r,controlID:n,canInsert:!!n,privateUpload:o,config:l,controlMedia:(0,i.Map)(),field:s}):e.withMutations(e=>{e.set("isVisible",!0),e.set("forImage",r),e.set("controlID",n),e.set("canInsert",!!n),e.set("privateUpload",o),e.set("config",l),e.set("field",s)})}case a.MEDIA_LIBRARY_CLOSE:return e.set("isVisible",!1);case a.MEDIA_INSERT:{const{mediaPath:n}=t.payload,r=e.get("controlID");return e.withMutations(e=>{e.setIn(["controlMedia",r],n)})}case a.MEDIA_REMOVE_INSERTED:{const n=t.payload.controlID;return e.setIn(["controlMedia",n],"")}case a.MEDIA_LOAD_REQUEST:return e.withMutations(e=>{e.set("isLoading",!0),e.set("isPaginating",t.payload.page>1)});case a.MEDIA_LOAD_SUCCESS:{const{files:n=[],page:r,canPaginate:i,dynamicSearch:a,dynamicSearchQuery:s,privateUpload:l}=t.payload;if(e.get("privateUpload")!==l)return e;const u=n.map(e=>d(d({},e),{},{key:(0,o.default)()}));return e.withMutations(e=>{if(e.set("isLoading",!1),e.set("isPaginating",!1),e.set("page",r),e.set("hasNextPage",i&&n.length>0),e.set("dynamicSearch",a),e.set("dynamicSearchQuery",s),e.set("dynamicSearchActive",!!s),r&&r>1){const t=e.get("files").concat(u);e.set("files",t)}else e.set("files",u)})}case a.MEDIA_LOAD_FAILURE:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isLoading",!1);case a.MEDIA_PERSIST_REQUEST:return e.set("isPersisting",!0);case a.MEDIA_PERSIST_SUCCESS:{const{file:n,privateUpload:r}=t.payload;return e.get("privateUpload")!==r?e:e.withMutations(e=>{const t=[d(d({},n),{},{key:(0,o.default)()}),...e.get("files")];e.set("files",t),e.set("isPersisting",!1)})}case a.MEDIA_PERSIST_FAILURE:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isPersisting",!1);case a.MEDIA_DELETE_REQUEST:return e.set("isDeleting",!0);case a.MEDIA_DELETE_SUCCESS:{const{id:n,key:r,privateUpload:i}=t.payload.file;return e.get("privateUpload")!==i?e:e.withMutations(e=>{const t=e.get("files").filter(e=>r?e.key!==r:e.id!==n);e.set("files",t),e.deleteIn(["displayURLs",n]),e.set("isDeleting",!1)})}case a.MEDIA_DELETE_FAILURE:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isDeleting",!1);case a.MEDIA_DISPLAY_URL_REQUEST:return e.setIn(["displayURLs",t.payload.key,"isFetching"],!0);case a.MEDIA_DISPLAY_URL_SUCCESS:{const n=["displayURLs",t.payload.key];return e.setIn([...n,"isFetching"],!1).setIn([...n,"url"],t.payload.url)}case a.MEDIA_DISPLAY_URL_FAILURE:{const n=["displayURLs",t.payload.key];return e.setIn([...n,"isFetching"],!1).setIn([...n,"err"],t.payload.err||!0).deleteIn([...n,"url"])}default:return e}};t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.folderFormatter=t.summaryFormatter=t.previewUrlFormatter=t.slugFormatter=t.getProcessSegment=t.prepareSlug=t.commitMessageFormatter=void 0;var r=f(n(121)),i=f(n(163)),o=f(n(514)),a=f(n(124)),s=n(4),l=n(164),u=n(166),c=n(67),d=n(107);function f(e){return e&&e.__esModule?e:{default:e}}const{compileStringTemplate:p,parseDateFromEntry:h,SLUG_MISSING_REQUIRED_DATE:m,keyToPathArray:g,addFileTemplateFields:v}=u.stringTemplate,y=(0,s.Map)({create:"Create {{collection}} “{{slug}}”",update:"Update {{collection}} “{{slug}}”",delete:"Delete {{collection}} “{{slug}}”",uploadMedia:"Upload “{{path}}”",deleteMedia:"Delete “{{path}}”",openAuthoring:"{{message}}"}),b=/\{\{([^}]+)\}\}/g;t.commitMessageFormatter=(e,t,{slug:n,path:r,collection:i,authorLogin:o,authorName:a},l)=>{const u=y.merge(t.getIn(["backend","commit_messages"],(0,s.Map)())),c=u.get(e).replace(b,(e,t)=>{switch(t){case"slug":return n||"";case"path":return r||"";case"collection":return i?i.get("label_singular")||i.get("label"):"";case"author-login":return o||"";case"author-name":return a||"";default:return console.warn(`Ignoring unknown variable “${t}” in commit message template.`),""}});if(!l)return c;return u.get("openAuthoring").replace(b,(e,t)=>{switch(t){case"message":return c;case"author-login":return o||"";case"author-name":return a||"";default:return console.warn(`Ignoring unknown variable “${t}” in open authoring message template.`),""}})};const _=e=>e.trim().toLocaleLowerCase().replace(/[']/g,"").replace(/[.]/g,"-");t.prepareSlug=_;const w=e=>(0,a.default)([e=>String(e),_,(0,o.default)(l.sanitizeSlug,e)]);t.getProcessSegment=w;t.slugFormatter=(e,t,n)=>{const r=e.get("slug")||"{{slug}}",i=t.getIn(g((0,c.selectIdentifier)(e)));if(!i)throw new Error("Collection must have a field name that is a valid entry identifier, or must have `identifier_field` set");const o=w(n),a=new Date,s=p(r,a,i,t,o);if(e.has("path")){const n=_(e.get("path"));return p(n,a,s,t,e=>e===s?e:o(e))}return s};t.previewUrlFormatter=(e,t,n,o,a)=>{if(!e)return;if(!t.get("preview_path"))return e;const s=(0,i.default)(e,"/"),l=t.get("preview_path");let u=a.get("data");u=v(a.get("path"),u);const f=t.get("preview_path_date_field")||(0,c.selectInferedField)(t,"date"),g=h(a,f),y=w(o);let b;try{b=p(l,g,n,u,y)}catch(e){if(e.name===m)return console.error(d.stripIndent`
+ Collection "${t.get("name")}" configuration error:
+ \`preview_path_date_field\` must be a field with a valid date. Ignoring \`preview_path\`.
+ `),s;throw e}return`${s}/${(0,r.default)(b," /")}`};t.summaryFormatter=(e,t,n)=>{let r=t.get("data");const i=h(t,(0,c.selectInferedField)(n,"date"))||null,o=r.getIn(g((0,c.selectIdentifier)(n)));r=v(t.get("path"),r),t.get("author")&&!(0,c.selectField)(n,c.COMMIT_AUTHOR)&&(r=r.set(c.COMMIT_AUTHOR,t.get("author"))),t.get("updatedOn")&&!(0,c.selectField)(n,c.COMMIT_DATE)&&(r=r.set(c.COMMIT_DATE,t.get("updatedOn")));return p(e,i,o,r)};t.folderFormatter=(e,t,n,r,i,o)=>{if(!t||!t.get("data"))return e;let a=t.get("data").set(i,r);a=v(t.get("path"),a);const s=h(t,(0,c.selectInferedField)(n,"date"))||null,l=a.getIn(g((0,c.selectIdentifier)(n))),u=w(o);return p(e,s,l,a,e=>e===r?r:u(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.searchingEntries=s,t.searchSuccess=l,t.searchFailure=u,t.querying=c,t.querySuccess=d,t.queryFailure=f,t.clearSearch=function(){return{type:"SEARCH_CLEAR"}},t.searchEntries=function(e,t=null,n=0){return(c,d)=>{const f=d(),{search:p}=f,h=(0,r.currentBackend)(f.config),m=t||f.collections.keySeq().toArray(),g=m.filter(e=>(0,o.selectIntegration)(f,e,"search")),v=(0,o.selectIntegration)(f,g[0],"search");if(!0===p.get("isFetching")&&p.get("term")===e&&null!==p.get("collections")&&(0,a.List)(m).equals(p.get("collections"))&&(p.get("page")===n||!v))return;c(s(e,m,n));return(v?(0,i.getIntegrationProvider)(f.integrations,h.getToken,v).search(g,e,n):h.search(f.collections.filter((e,t)=>-1!==m.indexOf(t)).valueSeq().toArray(),e)).then(t=>c(l(e,m,t.entries,t.pagination)),t=>c(u(e,t)))}},t.query=function(e,t,n,a,s,l){return async(u,p)=>{u(c(e,t,n,a));const h=p(),m=(0,r.currentBackend)(h.config),g=(0,o.selectIntegration)(h,t,"search"),v=h.collections.find(e=>e.get("name")===t),y=g?(0,i.getIntegrationProvider)(h.integrations,m.getToken,g).searchBy(n.map(e=>"data."+e),t,a):m.query(v,n,a,s,l);try{const r=await y;return u(d(e,t,n,a,r))}catch(r){return u(f(e,t,n,a,r))}}},t.SEARCH_CLEAR=t.QUERY_FAILURE=t.QUERY_SUCCESS=t.QUERY_REQUEST=t.SEARCH_ENTRIES_FAILURE=t.SEARCH_ENTRIES_SUCCESS=t.SEARCH_ENTRIES_REQUEST=void 0;var r=n(119),i=n(344),o=n(100),a=n(4);t.SEARCH_ENTRIES_REQUEST="SEARCH_ENTRIES_REQUEST";t.SEARCH_ENTRIES_SUCCESS="SEARCH_ENTRIES_SUCCESS";t.SEARCH_ENTRIES_FAILURE="SEARCH_ENTRIES_FAILURE";t.QUERY_REQUEST="INIT_QUERY";t.QUERY_SUCCESS="QUERY_OK";t.QUERY_FAILURE="QUERY_ERROR";function s(e,t,n){return{type:"SEARCH_ENTRIES_REQUEST",payload:{searchTerm:e,searchCollections:t,page:n}}}function l(e,t,n,r){return{type:"SEARCH_ENTRIES_SUCCESS",payload:{searchTerm:e,searchCollections:t,entries:n,page:r}}}function u(e,t){return{type:"SEARCH_ENTRIES_FAILURE",payload:{searchTerm:e,error:t}}}function c(e,t,n,r){return{type:"INIT_QUERY",payload:{namespace:e,collection:t,searchFields:n,searchTerm:r}}}function d(e,t,n,r,i){return{type:"QUERY_OK",payload:{namespace:e,collection:t,searchFields:n,searchTerm:r,response:i}}}function f(e,t,n,r,i){return{type:"QUERY_ERROR",payload:{namespace:e,collection:t,searchFields:n,searchTerm:r,error:i}}}t.SEARCH_CLEAR="SEARCH_CLEAR"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.selectIsLoadingAsset=void 0;var r=n(4),i=n(165);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.selectIsLoadingAsset=e=>Object.values(e.toJS()).some(e=>e.isLoading);var l=(e=(0,r.fromJS)({}),t)=>{switch(t.type){case i.ADD_ASSETS:{const n=t.payload;let r=e;return n.forEach(e=>{r=r.set(e.path,{asset:e,isLoading:!1,error:null})}),r}case i.ADD_ASSET:{const n=t.payload;return e.set(n.path,{asset:n,isLoading:!1,error:null})}case i.REMOVE_ASSET:{const n=t.payload;return e.delete(n)}case i.LOAD_ASSET_REQUEST:{const{path:n}=t.payload;return e.set(n,a(a({},e.get(n)),{},{isLoading:!0}))}case i.LOAD_ASSET_SUCCESS:{const{path:n}=t.payload;return e.set(n,a(a({},e.get(n)),{},{isLoading:!1,error:null}))}case i.LOAD_ASSET_FAILURE:{const{path:n,error:r}=t.payload;return e.set(n,a(a({},e.get(n)),{},{isLoading:!1,error:r}))}default:return e}};t.default=l},function(e,t,n){"use strict";var r=TypeError,i=Object.getOwnPropertyDescriptor;if(i)try{i({},"")}catch(e){i=null}var o=function(){throw new r},a=i?function(){try{return o}catch(e){try{return i(arguments,"callee").get}catch(e){return o}}}():o,s=n(989)(),l=Object.getPrototypeOf||function(e){return e.__proto__},u=void 0,c="undefined"==typeof Uint8Array?void 0:l(Uint8Array),d={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":s?l([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":u&&s&&Symbol.asyncIterator?u[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s?l(l([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&s?l((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&s?l((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":s?l(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":s?Symbol:void 0,"%SymbolPrototype%":s?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":a,"%TypedArray%":c,"%TypedArrayPrototype%":c?c.prototype:void 0,"%TypeError%":r,"%TypeErrorPrototype%":r.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},f=n(364).call(Function.call,String.prototype.replace),p=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,h=/\\(\\)?/g,m=function(e){var t=[];return f(e,p,(function(e,n,r,i){t[t.length]=r?f(i,h,"$1"):n||e})),t},g=function(e,t){if(!(e in d))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===d[e]&&!t)throw new r("intrinsic "+e+" exists, but is not available. Please file an issue!");return d[e]};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var n=m(e),o=g("%"+(n.length>0?n[0]:"")+"%",t),a=1;a<n.length;a+=1)if(null!=o)if(i&&a+1>=n.length){var s=i(o,n[a]);if(!t&&!(n[a]in o))throw new r("base intrinsic for "+e+" exists, but the property is not available.");o=s?s.get||s.value:o[n[a]]}else o=o[n[a]];return o}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(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,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=n(1035),u=n(278),c=n(368),d=n(38),f=n(127);function p(e,t,n){return{dragDropManager:l.createDragDropManager(e,t,n)}}t.context=s.createContext({dragDropManager:void 0}),t.Consumer=t.context.Consumer,t.Provider=t.context.Provider,t.createChildContext=p,t.DragDropContextProvider=function(e){var n=e.children,r=a(e,["children"]),i="manager"in r?{dragDropManager:r.manager}:p(r.backend,r.context,r.debugMode);return s.createElement(t.Provider,{value:i},n)},t.DragDropContext=function(e,n,r){u.default("DragDropContext","backend",e);var a=p(e,n,r);return function(e){var n=e,r=n.displayName||n.name||"Component",l=function(l){function u(){var e=null!==l&&l.apply(this,arguments)||this;return e.ref=s.createRef(),e.getManager=function(){return a.dragDropManager},e}return i(u,l),u.prototype.getDecoratedComponentInstance=function(){return d(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current},u.prototype.render=function(){return s.createElement(t.Provider,{value:a},s.createElement(n,o({},this.props,{ref:c.isRefable(n)?this.ref:null})))},u.DecoratedComponent=e,u.displayName="DragDropContext("+r+")",u}(s.Component);return f(l,e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1040),i=n(1042),o=n(1043),a=n(1044),s=n(1045);!function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(168)),t.default=function(e){return{beginDrag:r.default(e),publishDragSource:i.default(e),hover:o.default(e),drop:a.default(e),endDrag:s.default(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ADD_SOURCE="dnd-core/ADD_SOURCE",t.ADD_TARGET="dnd-core/ADD_TARGET",t.REMOVE_SOURCE="dnd-core/REMOVE_SOURCE",t.REMOVE_TARGET="dnd-core/REMOVE_TARGET",t.addSource=function(e){return{type:t.ADD_SOURCE,payload:{sourceId:e}}},t.addTarget=function(e){return{type:t.ADD_TARGET,payload:{targetId:e}}},t.removeSource=function(e){return{type:t.REMOVE_SOURCE,payload:{sourceId:e}}},t.removeTarget=function(e){return{type:t.REMOVE_TARGET,payload:{targetId:e}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NetlifyAuthenticator",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"ImplicitAuthenticator",{enumerable:!0,get:function(){return i.default}}),t.NetlifyCmsLibAuth=void 0;var r=o(n(1153)),i=o(n(1154));function o(e){return e&&e.__esModule?e:{default:e}}const a={NetlifyAuthenticator:r.default,ImplicitAuthenticator:i.default};t.NetlifyCmsLibAuth=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.slateToMarkdown=t.markdownToSlate=t.htmlToSlate=t.markdownToHtml=t.remarkToMarkdown=t.markdownToRemark=void 0;var r=S(n(163)),i=S(n(1237)),o=S(n(60)),a=S(n(1249)),s=S(n(1296)),l=S(n(1338)),u=S(n(1365)),c=S(n(1381)),d=S(n(1404)),f=S(n(1445)),p=S(n(1449)),h=S(n(1450)),m=S(n(1454)),g=S(n(1458)),v=S(n(1459)),y=S(n(1460)),b=n(1462),_=S(n(1463)),w=S(n(1465)),x=S(n(1466)),k=S(n(1467)),E=n(378);function S(e){return e&&e.__esModule?e:{default:e}}const O=e=>{const t=(0,i.default)().use(a.default,{fences:!0,commonmark:!0}).use(T,{inlineTokenizers:["url"]}).use(b.remarkParseShortcodes,{plugins:(0,E.getEditorComponents)()}).use(x.default).parse(e);return(0,i.default)().use(y.default).runSync(t)};function T({inlineTokenizers:e}){e&&e.forEach(e=>{delete this.Parser.prototype.inlineTokenizers[e]})}t.markdownToRemark=O;const C=e=>{const t=e||(0,o.default)("root",[(0,o.default)("paragraph",[(0,o.default)("text","")])]),n=(0,i.default)().use(_.default).use(w.default).runSync(t),a=(0,i.default)().use(s.default,{commonmark:!0,fences:!0,listItemIndent:"1",bullet:"*",emphasis:"*",strong:"*",rule:"-"}).use((function(){this.Compiler.prototype.visitors.text=e=>e.value})).use((0,b.createRemarkShortcodeStringifier)({plugins:(0,E.getEditorComponents)()})).stringify(n).replace(/\r?/g,"");return(0,r.default)(a)};t.remarkToMarkdown=C;t.markdownToHtml=(e,{getAsset:t,resolveWidget:n}={})=>{const r=O(e),o=(0,i.default)().use(f.default,{plugins:(0,E.getEditorComponents)(),getAsset:t,resolveWidget:n}).use(l.default,{allowDangerousHTML:!0}).runSync(r);return(0,i.default)().use(u.default,{allowDangerousHtml:!0,allowDangerousCharacters:!0,closeSelfClosing:!0,entities:{useNamedReferences:!0}}).stringify(o)};t.htmlToSlate=e=>{const t=(0,i.default)().use(c.default,{fragment:!0}).parse(e),n=(0,i.default)().use(p.default).use(d.default,{minify:!1}).runSync(t);return(0,i.default)().use(h.default).use(m.default).use(g.default).use(v.default).runSync(n)};t.markdownToSlate=(e,{voidCodeBlock:t}={})=>{const n=O(e);return(0,i.default)().use(g.default).use(v.default,{voidCodeBlock:t}).runSync(n)};t.slateToMarkdown=(e,{voidCodeBlock:t}={})=>{const n=(0,k.default)(e,{voidCodeBlock:t});return C(n)}},function(e,t,n){"use strict";var r=n(379),i=n(1254),o=n(194),a=n(380),s=n(381),l=n(1255);e.exports=function(e,t){var n,o,a={};t||(t={});for(o in f)n=t[o],a[o]=null==n?f[o]:n;(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start);return function(e,t){var n,o,a,f,b,_,w,x,k,E,S,O,T,C,A,P,R,M,I,j=t.additional,D=t.nonTerminated,L=t.text,N=t.reference,F=t.warning,B=t.textContext,z=t.referenceContext,U=t.warningContext,q=t.position,H=t.indent||[],W=e.length,V=0,$=-1,G=q.column||1,K=q.line||1,Y="",Q=[];"string"==typeof j&&(j=j.charCodeAt(0));P=J(),x=F?function(e,t){var n=J();n.column+=t,n.offset+=t,F.call(U,v[e],n,e)}:d,V--,W++;for(;++V<W;)if(10===b&&(G=H[$]||1),38===(b=e.charCodeAt(V))){if(9===(w=e.charCodeAt(V+1))||10===w||12===w||32===w||38===w||60===w||w!=w||j&&w===j){Y+=c(b),G++;continue}for(O=T=V+1,I=T,35===w?(I=++O,88===(w=e.charCodeAt(I))||120===w?(C=h,I=++O):C="decimal"):C=p,n="",S="",f="",A=g[C],I--;++I<W&&(w=e.charCodeAt(I),A(w));)f+=c(w),C===p&&u.call(r,f)&&(n=f,S=r[f]);(a=59===e.charCodeAt(I))&&(I++,(o=C===p&&l(f))&&(n=f,S=o)),M=1+I-T,(a||D)&&(f?C===p?(a&&!S?x(5,1):(n!==f&&(I=O+n.length,M=1+I-O,a=!1),a||(k=n?1:3,t.attribute?61===(w=e.charCodeAt(I))?(x(k,M),S=null):s(w)?S=null:x(k,M):x(k,M))),_=S):(a||x(2,M),_=parseInt(f,m[C]),(X=_)>=55296&&X<=57343||X>1114111?(x(7,M),_=c(65533)):_ in i?(x(6,M),_=i[_]):(E="",y(_)&&x(6,M),_>65535&&(E+=c((_-=65536)>>>10|55296),_=56320|1023&_),_=E+c(_))):C!==p&&x(4,M)),_?(Z(),P=J(),V=I-1,G+=I-T+1,Q.push(_),(R=J()).offset++,N&&N.call(z,_,{start:P,end:R},e.slice(T-1,I)),P=R):(f=e.slice(T-1,I),Y+=f,G+=f.length,V=I-1)}else 10===b&&(K++,$++,G=0),b==b?(Y+=c(b),G++):Z();var X;return Q.join("");function J(){return{line:K,column:G,offset:V+(q.offset||0)}}function Z(){Y&&(Q.push(Y),L&&L.call(B,Y,{start:P,end:J()}),Y="")}}(e,a)};var u={}.hasOwnProperty,c=String.fromCharCode,d=Function.prototype,f={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p="named",h="hexadecimal",m={hexadecimal:16,decimal:10},g={};g[p]=s,g.decimal=o,g[h]=a;var v={};function y(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}v[1]="Named character references must be terminated by a semicolon",v[2]="Numeric character references must be terminated by a semicolon",v[3]="Named character references cannot be empty",v[4]="Numeric character references cannot be empty",v[5]="Named character references must be known",v[6]="Numeric character references cannot be disallowed",v[7]="Numeric character references cannot be outside the permissible Unicode range"},function(e,t,n){"use strict";e.exports=s;var r=n(598),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)}),i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},function(e,t,n){"use strict";e.exports=function(e){var t=String(e),n=t.length;for(;"\n"===t.charAt(--n););return t.slice(0,n+1)}},function(e,t,n){"use strict";e.exports=function(e,t){var n,r=String(e),i=0;if("string"!=typeof t||1!==t.length)throw new Error("Expected character");n=r.indexOf(t);for(;-1!==n;)i++,n=r.indexOf(t,n+1);return i}},function(e,t,n){"use strict";var r={};function i(e,t,n){var o,a,s,l,u,c="";for("string"!=typeof t&&(n=t,t=i.defaultChars),void 0===n&&(n=!0),u=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)i[e.charCodeAt(t)]=e[t];return i}(t),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),n&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))c+=e.slice(o,o+3),o+=2;else if(s<128)c+=u[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(l=e.charCodeAt(o+1))>=56320&&l<=57343){c+=encodeURIComponent(e[o]+e[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[o]);return c}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},function(e,t,n){"use strict";var r=0;function i(){return Math.pow(2,++r)}t.boolean=i(),t.booleanish=i(),t.overloadedBoolean=i(),t.number=i(),t.spaceSeparated=i(),t.commaSeparated=i(),t.commaOrSpaceSeparated=i()},function(e,t,n){"use strict";var r=n(617),i=n(619),o=n(622),a=n(623),s=n(626),l=n(1369);e.exports=r([o,i,a,s,l])},function(e,t,n){"use strict";var r=n(605),i=n(379),o=n(380),a=n(194),s=n(381),l=n(1375);e.exports=h,h.escape=function(e){return h(e,{escapeOnly:!0,useNamedReferences:!0})};var u={}.hasOwnProperty,c=function(){var e,t={};for(e in r)t[r[e]]=e;return t}(),d=v(['"',"'","<",">","&","`"]),f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;function h(e,t){var n=t||{},r=n.subset,o=r?v(r):d,a=n.escapeOnly,h=n.omitOptionalSemicolons;return e=e.replace(o,y),r||a?e:e.replace(f,(function(e,t,n){return m(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),h)})).replace(p,y);function y(e,t,r){return function(e,t,n){var r,o,a,d,f=n.useShortestReferences,p=n.omitOptionalSemicolons;(f||n.useNamedReferences)&&u.call(c,e)&&(r=function(e,t,n,r){var o="&"+e;if(n&&u.call(i,e)&&-1===l.indexOf(e)&&(!r||t&&61!==t&&!s(t)))return o;return o+";"}(c[e],t,p,n.attribute));!f&&r||(o=e.charCodeAt(0),a=m(o,t,p),f&&(d=g(o,t,p)).length<a.length&&(a=d));if(r&&(!f||r.length<a.length))return r;return a}(e,r.charCodeAt(t+1),n)}}function m(e,t,n){var r="&#x"+e.toString(16).toUpperCase();return n&&t&&!o(t)?r:r+";"}function g(e,t,n){var r="&#"+String(e);return n&&t&&!a(t)?r:r+";"}function v(e){return new RegExp("["+e.join("")+"]","g")}},function(e,t,n){"use strict";const r=n(1390),i=n(392),o=n(1391),a=n(393),s=i.CODE_POINTS,l=i.CODE_POINT_SEQUENCES,u={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},c="DATA_STATE";function d(e){return e===s.SPACE||e===s.LINE_FEED||e===s.TABULATION||e===s.FORM_FEED}function f(e){return e>=s.DIGIT_0&&e<=s.DIGIT_9}function p(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_Z}function h(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_Z}function m(e){return h(e)||p(e)}function g(e){return m(e)||f(e)}function v(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_F}function y(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_F}function b(e){return e+32}function _(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function w(e){return String.fromCharCode(b(e))}function x(e,t){const n=o[++e];let r=++e,i=r+n-1;for(;r<=i;){const e=r+i>>>1,a=o[e];if(a<t)r=e+1;else{if(!(a>t))return o[e+n];i=e-1}}return-1}class k{constructor(){this.preprocessor=new r,this.tokenQueue=[],this.allowCDATA=!1,this.state=c,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:k.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,n){let r=0,i=!0;const o=e.length;let a=0,l=t,u=void 0;for(;a<o;a++){if(a>0&&(l=this._consume(),r++),l===s.EOF){i=!1;break}if(u=e[a],l!==u&&(n||l!==b(u))){i=!1;break}}if(!i)for(;r--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==l.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==l.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:k.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:k.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:k.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:k.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:k.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===k.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err(a.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===k.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===k.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(a.endTagWithAttributes),e.selfClosing&&this._err(a.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=k.CHARACTER_TOKEN;d(e)?t=k.WHITESPACE_CHARACTER_TOKEN:e===s.NULL&&(t=k.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,_(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(k.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,n=1,r=x(0,e);for(this.tempBuff.push(e);r>-1;){const e=o[r],i=e<7;i&&1&e&&(t=2&e?[o[++r],o[++r]]:[o[++r]],n=0);const a=this._consume();if(this.tempBuff.push(a),n++,a===s.EOF)break;r=i?4&e?x(r,a):-1:a===e?++r:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return"ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE"===this.returnState||"ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE"===this.returnState||"ATTRIBUTE_VALUE_UNQUOTED_STATE"===this.returnState}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===s.EQUALS_SIGN||g(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=_(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[c](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state="TAG_OPEN_STATE":e===s.AMPERSAND?(this.returnState=c,this.state="CHARACTER_REFERENCE_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitCodePoint(e)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}RCDATA_STATE(e){this.preprocessor.dropParsedChunk(),e===s.AMPERSAND?(this.returnState="RCDATA_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===s.LESS_THAN_SIGN?this.state="RCDATA_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}RAWTEXT_STATE(e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state="RAWTEXT_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}SCRIPT_DATA_STATE(e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}PLAINTEXT_STATE(e){this.preprocessor.dropParsedChunk(),e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}TAG_OPEN_STATE(e){e===s.EXCLAMATION_MARK?this.state="MARKUP_DECLARATION_OPEN_STATE":e===s.SOLIDUS?this.state="END_TAG_OPEN_STATE":m(e)?(this._createStartTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===s.QUESTION_MARK?(this._err(a.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE")):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(c))}END_TAG_OPEN_STATE(e){m(e)?(this._createEndTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===s.GREATER_THAN_SIGN?(this._err(a.missingEndTagName),this.state=c):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE"))}TAG_NAME_STATE(e){d(e)?this.state="BEFORE_ATTRIBUTE_NAME_STATE":e===s.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):p(e)?this.currentToken.tagName+=w(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.tagName+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=_(e)}RCDATA_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="RCDATA_END_TAG_OPEN_STATE"):(this._emitChars("<"),this._reconsumeInState("RCDATA_STATE"))}RCDATA_END_TAG_OPEN_STATE(e){m(e)?(this._createEndTagToken(),this._reconsumeInState("RCDATA_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("RCDATA_STATE"))}RCDATA_END_TAG_NAME_STATE(e){if(p(e))this.currentToken.tagName+=w(e),this.tempBuff.push(e);else if(h(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(d(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===s.GREATER_THAN_SIGN)return this.state=c,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RCDATA_STATE")}}RAWTEXT_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="RAWTEXT_END_TAG_OPEN_STATE"):(this._emitChars("<"),this._reconsumeInState("RAWTEXT_STATE"))}RAWTEXT_END_TAG_OPEN_STATE(e){m(e)?(this._createEndTagToken(),this._reconsumeInState("RAWTEXT_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("RAWTEXT_STATE"))}RAWTEXT_END_TAG_NAME_STATE(e){if(p(e))this.currentToken.tagName+=w(e),this.tempBuff.push(e);else if(h(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(d(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RAWTEXT_STATE")}}SCRIPT_DATA_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_END_TAG_OPEN_STATE"):e===s.EXCLAMATION_MARK?(this.state="SCRIPT_DATA_ESCAPE_START_STATE",this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_STATE"))}SCRIPT_DATA_END_TAG_OPEN_STATE(e){m(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("SCRIPT_DATA_STATE"))}SCRIPT_DATA_END_TAG_NAME_STATE(e){if(p(e))this.currentToken.tagName+=w(e),this.tempBuff.push(e);else if(h(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(d(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_STATE")}}SCRIPT_DATA_ESCAPE_START_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPE_START_DASH_STATE",this._emitChars("-")):this._reconsumeInState("SCRIPT_DATA_STATE")}SCRIPT_DATA_ESCAPE_START_DASH_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):this._reconsumeInState("SCRIPT_DATA_STATE")}SCRIPT_DATA_ESCAPED_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_STATE",this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}SCRIPT_DATA_ESCAPED_DASH_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_ESCAPED_DASH_DASH_STATE(e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===s.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE"):m(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE")):(this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))}SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE(e){m(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))}SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE(e){if(p(e))this.currentToken.tagName+=w(e),this.tempBuff.push(e);else if(h(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(d(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")}}SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE(e){d(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?"SCRIPT_DATA_DOUBLE_ESCAPED_STATE":"SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e)):p(e)?(this.tempBuff.push(b(e)),this._emitCodePoint(e)):h(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")}SCRIPT_DATA_DOUBLE_ESCAPED_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE(e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):e===s.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",this._emitChars("/")):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")}SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE(e){d(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?"SCRIPT_DATA_ESCAPED_STATE":"SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e)):p(e)?(this.tempBuff.push(b(e)),this._emitCodePoint(e)):h(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")}BEFORE_ATTRIBUTE_NAME_STATE(e){d(e)||(e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?this._reconsumeInState("AFTER_ATTRIBUTE_NAME_STATE"):e===s.EQUALS_SIGN?(this._err(a.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state="ATTRIBUTE_NAME_STATE"):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))}ATTRIBUTE_NAME_STATE(e){d(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?(this._leaveAttrName("AFTER_ATTRIBUTE_NAME_STATE"),this._unconsume()):e===s.EQUALS_SIGN?this._leaveAttrName("BEFORE_ATTRIBUTE_VALUE_STATE"):p(e)?this.currentAttr.name+=w(e):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN?(this._err(a.unexpectedCharacterInAttributeName),this.currentAttr.name+=_(e)):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.name+=i.REPLACEMENT_CHARACTER):this.currentAttr.name+=_(e)}AFTER_ATTRIBUTE_NAME_STATE(e){d(e)||(e===s.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===s.EQUALS_SIGN?this.state="BEFORE_ATTRIBUTE_VALUE_STATE":e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))}BEFORE_ATTRIBUTE_VALUE_STATE(e){d(e)||(e===s.QUOTATION_MARK?this.state="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE":e===s.APOSTROPHE?this.state="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE":e===s.GREATER_THAN_SIGN?(this._err(a.missingAttributeValue),this.state=c,this._emitCurrentToken()):this._reconsumeInState("ATTRIBUTE_VALUE_UNQUOTED_STATE"))}ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE(e){e===s.QUOTATION_MARK?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===s.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=_(e)}ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE(e){e===s.APOSTROPHE?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===s.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=_(e)}ATTRIBUTE_VALUE_UNQUOTED_STATE(e){d(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===s.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_UNQUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(c),this._emitCurrentToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN||e===s.EQUALS_SIGN||e===s.GRAVE_ACCENT?(this._err(a.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=_(e)):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=_(e)}AFTER_ATTRIBUTE_VALUE_QUOTED_STATE(e){d(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===s.SOLIDUS?this._leaveAttrValue("SELF_CLOSING_START_TAG_STATE"):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(c),this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.missingWhitespaceBetweenAttributes),this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE"))}SELF_CLOSING_START_TAG_STATE(e){e===s.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.unexpectedSolidusInTag),this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE"))}BOGUS_COMMENT_STATE(e){e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):this.currentToken.data+=_(e)}MARKUP_DECLARATION_OPEN_STATE(e){this._consumeSequenceIfMatch(l.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state="COMMENT_START_STATE"):this._consumeSequenceIfMatch(l.DOCTYPE_STRING,e,!1)?this.state="DOCTYPE_STATE":this._consumeSequenceIfMatch(l.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state="CDATA_SECTION_STATE":(this._err(a.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state="BOGUS_COMMENT_STATE"):this._ensureHibernation()||(this._err(a.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE"))}COMMENT_START_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_START_DASH_STATE":e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=c,this._emitCurrentToken()):this._reconsumeInState("COMMENT_STATE")}COMMENT_START_DASH_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_END_STATE":e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState("COMMENT_STATE"))}COMMENT_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_END_DASH_STATE":e===s.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state="COMMENT_LESS_THAN_SIGN_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=_(e)}COMMENT_LESS_THAN_SIGN_STATE(e){e===s.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state="COMMENT_LESS_THAN_SIGN_BANG_STATE"):e===s.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState("COMMENT_STATE")}COMMENT_LESS_THAN_SIGN_BANG_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE":this._reconsumeInState("COMMENT_STATE")}COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE":this._reconsumeInState("COMMENT_END_DASH_STATE")}COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE(e){e!==s.GREATER_THAN_SIGN&&e!==s.EOF&&this._err(a.nestedComment),this._reconsumeInState("COMMENT_END_STATE")}COMMENT_END_DASH_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_END_STATE":e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState("COMMENT_STATE"))}COMMENT_END_STATE(e){e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EXCLAMATION_MARK?this.state="COMMENT_END_BANG_STATE":e===s.HYPHEN_MINUS?this.currentToken.data+="-":e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState("COMMENT_STATE"))}COMMENT_END_BANG_STATE(e){e===s.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state="COMMENT_END_DASH_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.incorrectlyClosedComment),this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState("COMMENT_STATE"))}DOCTYPE_STATE(e){d(e)?this.state="BEFORE_DOCTYPE_NAME_STATE":e===s.GREATER_THAN_SIGN?this._reconsumeInState("BEFORE_DOCTYPE_NAME_STATE"):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingWhitespaceBeforeDoctypeName),this._reconsumeInState("BEFORE_DOCTYPE_NAME_STATE"))}BEFORE_DOCTYPE_NAME_STATE(e){d(e)||(p(e)?(this._createDoctypeToken(w(e)),this.state="DOCTYPE_NAME_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._createDoctypeToken(i.REPLACEMENT_CHARACTER),this.state="DOCTYPE_NAME_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(_(e)),this.state="DOCTYPE_NAME_STATE"))}DOCTYPE_NAME_STATE(e){d(e)?this.state="AFTER_DOCTYPE_NAME_STATE":e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):p(e)?this.currentToken.name+=w(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.name+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=_(e)}AFTER_DOCTYPE_NAME_STATE(e){d(e)||(e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(l.PUBLIC_STRING,e,!1)?this.state="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE":this._consumeSequenceIfMatch(l.SYSTEM_STRING,e,!1)?this.state="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE":this._ensureHibernation()||(this._err(a.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE(e){d(e)?this.state="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE":e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE(e){d(e)||(e===s.QUOTATION_MARK?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE(e){e===s.QUOTATION_MARK?this.state="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=_(e)}DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE(e){e===s.APOSTROPHE?this.state="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=_(e)}AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE(e){d(e)?this.state="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE":e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE(e){d(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE(e){d(e)?this.state="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE(e){d(e)||(e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE(e){e===s.QUOTATION_MARK?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=_(e)}DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE(e){e===s.APOSTROPHE?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=_(e)}AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE(e){d(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}BOGUS_DOCTYPE_STATE(e){e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.NULL?this._err(a.unexpectedNullCharacter):e===s.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}CDATA_SECTION_STATE(e){e===s.RIGHT_SQUARE_BRACKET?this.state="CDATA_SECTION_BRACKET_STATE":e===s.EOF?(this._err(a.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}CDATA_SECTION_BRACKET_STATE(e){e===s.RIGHT_SQUARE_BRACKET?this.state="CDATA_SECTION_END_STATE":(this._emitChars("]"),this._reconsumeInState("CDATA_SECTION_STATE"))}CDATA_SECTION_END_STATE(e){e===s.GREATER_THAN_SIGN?this.state=c:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState("CDATA_SECTION_STATE"))}CHARACTER_REFERENCE_STATE(e){this.tempBuff=[s.AMPERSAND],e===s.NUMBER_SIGN?(this.tempBuff.push(e),this.state="NUMERIC_CHARACTER_REFERENCE_STATE"):g(e)?this._reconsumeInState("NAMED_CHARACTER_REFERENCE_STATE"):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}NAMED_CHARACTER_REFERENCE_STATE(e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[s.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===s.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(a.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state="AMBIGUOS_AMPERSAND_STATE"}AMBIGUOS_AMPERSAND_STATE(e){g(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=_(e):this._emitCodePoint(e):(e===s.SEMICOLON&&this._err(a.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}NUMERIC_CHARACTER_REFERENCE_STATE(e){this.charRefCode=0,e===s.LATIN_SMALL_X||e===s.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE"):this._reconsumeInState("DECIMAL_CHARACTER_REFERENCE_START_STATE")}HEXADEMICAL_CHARACTER_REFERENCE_START_STATE(e){!function(e){return f(e)||v(e)||y(e)}(e)?(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState("HEXADEMICAL_CHARACTER_REFERENCE_STATE")}DECIMAL_CHARACTER_REFERENCE_START_STATE(e){f(e)?this._reconsumeInState("DECIMAL_CHARACTER_REFERENCE_STATE"):(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}HEXADEMICAL_CHARACTER_REFERENCE_STATE(e){v(e)?this.charRefCode=16*this.charRefCode+e-55:y(e)?this.charRefCode=16*this.charRefCode+e-87:f(e)?this.charRefCode=16*this.charRefCode+e-48:e===s.SEMICOLON?this.state="NUMERIC_CHARACTER_REFERENCE_END_STATE":(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState("NUMERIC_CHARACTER_REFERENCE_END_STATE"))}DECIMAL_CHARACTER_REFERENCE_STATE(e){f(e)?this.charRefCode=10*this.charRefCode+e-48:e===s.SEMICOLON?this.state="NUMERIC_CHARACTER_REFERENCE_END_STATE":(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState("NUMERIC_CHARACTER_REFERENCE_END_STATE"))}NUMERIC_CHARACTER_REFERENCE_END_STATE(){if(this.charRefCode===s.NULL)this._err(a.nullCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(a.characterReferenceOutsideUnicodeRange),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isSurrogate(this.charRefCode))this._err(a.surrogateCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isUndefinedCodePoint(this.charRefCode))this._err(a.noncharacterCharacterReference);else if(i.isControlCodePoint(this.charRefCode)||this.charRefCode===s.CARRIAGE_RETURN){this._err(a.controlCharacterReference);const e=u[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}k.CHARACTER_TOKEN="CHARACTER_TOKEN",k.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",k.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",k.START_TAG_TOKEN="START_TAG_TOKEN",k.END_TAG_TOKEN="END_TAG_TOKEN",k.COMMENT_TOKEN="COMMENT_TOKEN",k.DOCTYPE_TOKEN="DOCTYPE_TOKEN",k.EOF_TOKEN="EOF_TOKEN",k.HIBERNATION_TOKEN="HIBERNATION_TOKEN",k.MODE={DATA:c,RCDATA:"RCDATA_STATE",RAWTEXT:"RAWTEXT_STATE",SCRIPT_DATA:"SCRIPT_DATA_STATE",PLAINTEXT:"PLAINTEXT_STATE"},k.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},e.exports=k},function(e,t,n){"use strict";var r=n(83),i=n(106),o=n(1420);e.exports=function(e){var t,n,o,a,s,c=e.children||[],d=c.length,f=v(e),h=p(e,{}),m=-1;if("text"===e.type||"comment"===e.type)return u(e,{whiteSpace:h,breakBefore:!0,breakAfter:!0});t=[];for(;++m<d;)n=l(c[m],m,e,{whiteSpace:h,breakBefore:0===m&&f,breakAfter:m===d-1?f:i(c[m+1],"br")}),t=t.concat(n);m=-1,d=t.length,o=[];for(;++m<d;)"number"==typeof(a=t[m])?void 0!==s&&a>s&&(s=a):""!==a&&(s&&o.push(r("\n",s)),s=0,o.push(a));return o.join("")};var a=Math.min,s=Math.max;function l(e,t,n,r){return"element"===e.type?function(e,t,n,r){var a,s,u,c=p(e,r),d=e.children||[],f=d.length,h=-1,y=[];if(function(e){var t=e.properties||{};return i(e,["datalist","head","noembed","noframes","rp","script","style","template","title","noscript"])||t.hidden||i(e,"dialog")&&!t.open}(e))return y;i(e,"br")||g(e)&&o(n,e,g)?u="\n":i(e,"p")?(s=2,u=2):v(e)&&(s=1,u=1);for(;++h<f;)a=l(d[h],h,e,{whiteSpace:c,breakBefore:0===h&&s,breakAfter:h===f-1?u:i(d[h+1],"br")}),y=y.concat(a);m(e)&&o(n,e,m)&&y.push("\t");s&&y.unshift(s);u&&y.push(u);return y}(e,0,n,r):"text"===e.type?["normal"===r.whiteSpace?u(e,r):c(e)]:[]}function u(e,t){var n,r,i,o,a,s=t.breakBefore,l=t.breakAfter,u=String(e.value),c=-1,p=u.length,h=[],m=[];for(n=0,r=-1===(r=u.indexOf("\n"))?u.length:r;-1!==r&&(i=f(i=d(i=u.slice(n,r)),s,l),h.push(i),r!==u.length);)n=r+1,r=-1===(r=u.indexOf("\n",n))?u.length:r;for(c=-1,p=h.length,a="";++c<p;)i=h[c],o=h[c+1]||"",8203!==i.charCodeAt(i.length-1)&&8203!==o.charCodeAt(0)?i&&(a&&m.push(a),m.push(i),a=" "):(m.push(i),a="");return m.join("")}function c(e){return String(e.value)}function d(e){for(var t=-1,n=e.length,r="";++t<n;)h(e.charCodeAt(t))||(r+=e.charAt(t));return r}function f(e,t,n){for(var r,i,o=0,l=e.length,u=[];o<=l&&(32===(i=e.charCodeAt(o))||9===i);)o++;for(0===o||t||u.push(""),r=c(o-1);o<l;){for(r=-1===r?l:r,u.push(e.slice(o,r)),o=r;o<=l&&(32===(i=e.charCodeAt(o))||9===i);)o++;o!==l||o===r||n||u.push(""),r=c(o)}return u.join(" ");function c(t){var n=e.indexOf(" ",t+1),r=e.indexOf("\t",t+1);return(-1===n||-1===r?s:a)(n,r)}}function p(e,t){var n=e.properties||{},r=t.whiteSpace||"normal";switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":r;case"textarea":return"pre-wrap";default:return r}}function h(e){switch(e){case 1564:case 8206:case 8207:case 8234:case 8235:case 8236:case 8237:case 8238:case 8294:case 8295:case 8296:case 8297:return!0;default:return!1}}function m(e){return i(e,["th","td"])}function g(e){return i(e,["tr"])}function v(e){return i(e,["caption","html","body","address","blockquote","center","dialog","div","figure","figcaption","footer","form,","header","hr","legend","listing","main","p","plaintext","pre","xmp","article","aside","h1","h2","h3","h4","h5","h6","hgroup","nav","section","dir","dd","dl","dt","menu","ol","ul"])}},function(e,t,n){"use strict";function r(e){return e&&(e.value||e.alt||e.title||"children"in e&&i(e.children)||"length"in e&&i(e))||""}function i(e){for(var t=[],n=e.length,i=-1;++i<n;)t[i]=r(e[i]);return t.join("")}e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n<t.length;n++)n&&(a+=","),a+=e(t[n])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=o.push(t)-1,l=Object.keys(t).sort(i&&i(t));for(a="",n=0;n<l.length;n++){var u=l[n],c=e(t[u]);c&&(a&&(a+=","),a+=JSON.stringify(u)+":"+c)}return o.splice(s,1),"{"+a+"}"}}(e)}},function(e,t,n){"use strict";n.r(t);var r=n(23),i=n(4),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.delimiter,i=void 0===n?"\n":n;return"document"===e.object||"block"===e.object&&r.Block.isBlockList(e.nodes)?e.nodes.map(a).join(i):e.text}var s={deserialize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.defaultBlock,a=void 0===n?"line":n,s=t.defaultMarks,l=void 0===s?[]:s,u=t.delimiter,c=void 0===u?"\n":u,d=t.toJSON,f=void 0!==d&&d;i.Set.isSet(l)&&(l=l.toArray()),a=r.Node.createProperties(a),l=l.map(r.Mark.createProperties);var p={object:"value",document:{object:"document",data:{},nodes:e.split(c).map((function(e){return o({},a,{object:"block",data:{},nodes:[{object:"text",text:e,marks:l}]})}))}},h=f?p:r.Value.fromJSON(p);return h},serialize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(e.document,t)}};t.default=s},function(e,t,n){"use strict";var r=n(6),i=function(e){function t(t){var n="Assertion failed. See https://openlayers.org/en/"+("latest"===r.a?r.a:"v"+r.a.split("-")[0])+"/doc/errors/#"+t+" for details.";e.call(this,n),this.code=t,this.name="AssertionError",this.message=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error);t.a=i},function(e,t,n){"use strict";var r=n(9),i=n(94),o=n(14),a=function(e){function t(){e.call(this),this.revision_=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.changed=function(){++this.revision_,this.dispatchEvent(o.a.CHANGE)},t.prototype.getRevision=function(){return this.revision_},t.prototype.on=function(e,t){if(Array.isArray(e)){for(var n=e.length,i=new Array(n),o=0;o<n;++o)i[o]=Object(r.a)(this,e[o],t);return i}return Object(r.a)(this,e,t)},t.prototype.once=function(e,t){if(Array.isArray(e)){for(var n=e.length,i=new Array(n),o=0;o<n;++o)i[o]=Object(r.b)(this,e[o],t);return i}return Object(r.b)(this,e,t)},t.prototype.un=function(e,t){if(Array.isArray(e))for(var n=0,i=e.length;n<i;++n)Object(r.c)(this,e[n],t);else Object(r.c)(this,e,t)},t}(i.a);t.a=a},function(e,t,n){"use strict";var r=n(6),i=n(35),o=n(51),a=n(15),s=n(22),l=function(e){function t(t){e.call(this);var n=Object(s.a)({},t);n[o.a.OPACITY]=void 0!==t.opacity?t.opacity:1,n[o.a.VISIBLE]=void 0===t.visible||t.visible,n[o.a.Z_INDEX]=t.zIndex,n[o.a.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,n[o.a.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,this.setProperties(n),this.state_=null,this.type}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getType=function(){return this.type},t.prototype.getLayerState=function(){var e=this.state_||{layer:this,managed:!0};return e.opacity=Object(a.a)(this.getOpacity(),0,1),e.sourceState=this.getSourceState(),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=this.getZIndex()||0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),this.state_=e,e},t.prototype.getLayersArray=function(e){return Object(r.b)()},t.prototype.getLayerStatesArray=function(e){return Object(r.b)()},t.prototype.getExtent=function(){return this.get(o.a.EXTENT)},t.prototype.getMaxResolution=function(){return this.get(o.a.MAX_RESOLUTION)},t.prototype.getMinResolution=function(){return this.get(o.a.MIN_RESOLUTION)},t.prototype.getOpacity=function(){return this.get(o.a.OPACITY)},t.prototype.getSourceState=function(){return Object(r.b)()},t.prototype.getVisible=function(){return this.get(o.a.VISIBLE)},t.prototype.getZIndex=function(){return this.get(o.a.Z_INDEX)},t.prototype.setExtent=function(e){this.set(o.a.EXTENT,e)},t.prototype.setMaxResolution=function(e){this.set(o.a.MAX_RESOLUTION,e)},t.prototype.setMinResolution=function(e){this.set(o.a.MIN_RESOLUTION,e)},t.prototype.setOpacity=function(e){this.set(o.a.OPACITY,e)},t.prototype.setVisible=function(e){this.set(o.a.VISIBLE,e)},t.prototype.setZIndex=function(e){this.set(o.a.Z_INDEX,e)},t}(i.a);t.a=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n(26),i=n(98);function o(e,t,n,o,a,s,l){for(var u,c,d,f,p,h,m,g=a[s+1],v=[],y=0,b=n.length;y<b;++y){var _=n[y];for(f=e[_-o],h=e[_-o+1],u=t;u<_;u+=o)p=e[u],m=e[u+1],(g<=h&&m<=g||h<=g&&g<=m)&&(d=(g-h)/(m-h)*(p-f)+f,v.push(d)),f=p,h=m}var w=NaN,x=-1/0;for(v.sort(r.g),f=v[0],u=1,c=v.length;u<c;++u){p=v[u];var k=Math.abs(p-f);k>x&&(d=(f+p)/2,Object(i.c)(e,t,n,o,d,g)&&(w=d,x=k)),f=p}return isNaN(w)&&(w=a[s]),l?(l.push(w,g,x),l):[w,g,x]}function a(e,t,n,r,i){for(var a=[],s=0,l=n.length;s<l;++s){var u=n[s];a=o(e,t,u,r,i,2*s,a),t=u[u.length-1]}return a}},function(e,t,n){"use strict";var r=n(6),i=n(35),o=n(3),a=n(78),s=n(30),l=n(56),u=n(19),c=Object(u.c)(),d=function(e){function t(){e.call(this),this.extent_=Object(o.j)(),this.extentRevision_=-1,this.simplifiedGeometryCache={},this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clone=function(){return Object(r.b)()},t.prototype.closestPointXY=function(e,t,n,i){return Object(r.b)()},t.prototype.containsXY=function(e,t){return!1},t.prototype.getClosestPoint=function(e,t){var n=t||[NaN,NaN];return this.closestPointXY(e[0],e[1],n,1/0),n},t.prototype.intersectsCoordinate=function(e){return this.containsXY(e[0],e[1])},t.prototype.computeExtent=function(e){return Object(r.b)()},t.prototype.getExtent=function(e){return this.extentRevision_!=this.getRevision()&&(this.extent_=this.computeExtent(this.extent_),this.extentRevision_=this.getRevision()),Object(o.I)(this.extent_,e)},t.prototype.rotate=function(e,t){Object(r.b)()},t.prototype.scale=function(e,t,n){Object(r.b)()},t.prototype.simplify=function(e){return this.getSimplifiedGeometry(e*e)},t.prototype.getSimplifiedGeometry=function(e){return Object(r.b)()},t.prototype.getType=function(){return Object(r.b)()},t.prototype.applyTransform=function(e){Object(r.b)()},t.prototype.intersectsExtent=function(e){return Object(r.b)()},t.prototype.translate=function(e,t){Object(r.b)()},t.prototype.transform=function(e,t){var n=Object(s.d)(e),r=n.getUnits()==l.b.TILE_PIXELS?function(e,r,i){var l=n.getExtent(),d=n.getWorldExtent(),f=Object(o.A)(d)/Object(o.A)(l);return Object(u.b)(c,d[0],d[3],f,-f,0,0,0),Object(a.c)(e,0,e.length,i,c,r),Object(s.f)(n,t)(e,r,i)}:Object(s.f)(n,t);return this.applyTransform(r),this},t}(i.a);t.a=d},function(e,t,n){"use strict";function r(e,t,n,r,i,o){for(var a,s=[e[t],e[t+1]],l=[];t+r<n;t+=r){if(l[0]=e[t+r],l[1]=e[t+r+1],a=i.call(o,s,l))return a;s[0]=l[0],s[1]=l[1]}return!1}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(27),i=n(94),o=n(14),a=function(e){function t(t){e.call(this),this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.canExpireCache=function(){return this.getCount()>this.highWaterMark},t.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null,this.dispatchEvent(o.a.CLEAR)},t.prototype.containsKey=function(e){return this.entries_.hasOwnProperty(e)},t.prototype.forEach=function(e,t){for(var n=this.oldest_;n;)e.call(t,n.value_,n.key_,this),n=n.newer},t.prototype.get=function(e){var t=this.entries_[e];return Object(r.a)(void 0!==t,15),t===this.newest_||(t===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(t.newer.older=t.older,t.older.newer=t.newer),t.newer=null,t.older=this.newest_,this.newest_.newer=t,this.newest_=t),t.value_},t.prototype.remove=function(e){var t=this.entries_[e];return Object(r.a)(void 0!==t,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_},t.prototype.getCount=function(){return this.count_},t.prototype.getKeys=function(){var e,t=new Array(this.count_),n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.key_;return t},t.prototype.getValues=function(){var e,t=new Array(this.count_),n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.value_;return t},t.prototype.peekLast=function(){return this.oldest_.value_},t.prototype.peekLastKey=function(){return this.oldest_.key_},t.prototype.peekFirstKey=function(){return this.newest_.key_},t.prototype.pop=function(){var e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_},t.prototype.replace=function(e,t){this.get(e),this.entries_[e].value_=t},t.prototype.set=function(e,t){Object(r.a)(!(e in this.entries_),16);var n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_},t.prototype.setSize=function(e){this.highWaterMark=e},t.prototype.prune=function(){for(;this.canExpireCache();)this.pop()},t}(i.a);t.a=a},function(e,t,n){"use strict";t.a={IMAGE:"image",VECTOR:"vector"}},function(e,t,n){"use strict";function r(e,t,n,r){for(var i=e[t],o=e[t+1],a=0,s=t+r;s<n;s+=r){var l=e[s],u=e[s+1];a+=Math.sqrt((l-i)*(l-i)+(u-o)*(u-o)),i=l,o=u}return a}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=function(e){function t(t,n,r,i,o){e.call(this,t,n,o),this.originalEvent=r,this.pixel=n.getEventPixel(r),this.coordinate=n.getCoordinateFromPixel(this.pixel),this.dragging=void 0!==i&&i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.preventDefault=function(){e.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){e.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()},t}(n(206).a);t.a=r},function(e,t,n){"use strict";var r=n(26),i=n(3),o=n(40),a=n(10),s=n(128),l=n(62),u=n(77),c=n(72),d=n(73),f=n(207),p=n(145),h=n(96),m=function(e){function t(t,n,i){if(e.call(this),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(t[0]))this.setCoordinates(t,n);else if(void 0!==n&&i)this.setFlatCoordinates(n,t),this.ends_=i;else{for(var o=this.getLayout(),a=t,s=[],l=[],u=0,c=a.length;u<c;++u){var d=a[u];0===u&&(o=d.getLayout()),Object(r.c)(s,d.getFlatCoordinates()),l.push(s.length)}this.setFlatCoordinates(o,s),this.ends_=l}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.appendLineString=function(e){this.flatCoordinates?Object(r.c)(this.flatCoordinates,e.getFlatCoordinates().slice()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout,this.ends_.slice())},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(i.e)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(u.a)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(u.b)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,e,t,n,r))},t.prototype.getCoordinateAtM=function(e,t,n){if(this.layout!=o.a.XYM&&this.layout!=o.a.XYZM||0===this.flatCoordinates.length)return null;var r=void 0!==t&&t,i=void 0!==n&&n;return Object(f.c)(this.flatCoordinates,0,this.ends_,this.stride,e,r,i)},t.prototype.getCoordinates=function(){return Object(d.b)(this.flatCoordinates,0,this.ends_,this.stride)},t.prototype.getEnds=function(){return this.ends_},t.prototype.getLineString=function(e){return e<0||this.ends_.length<=e?null:new s.a(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)},t.prototype.getLineStrings=function(){for(var e=this.flatCoordinates,t=this.ends_,n=this.layout,r=[],i=0,o=0,a=t.length;o<a;++o){var l=t[o],u=new s.a(e.slice(i,l),n);r.push(u),i=l}return r},t.prototype.getFlatMidpoints=function(){for(var e=[],t=this.flatCoordinates,n=0,i=this.ends_,o=this.stride,a=0,s=i.length;a<s;++a){var l=i[a],u=Object(f.a)(t,n,l,o,.5);Object(r.c)(e,u),n=l}return e},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=Object(h.b)(this.flatCoordinates,0,this.ends_,this.stride,e,n,0,r),new t(n,o.a.XY,r)},t.prototype.getType=function(){return a.a.MULTI_LINE_STRING},t.prototype.intersectsExtent=function(e){return Object(p.b)(this.flatCoordinates,0,this.ends_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(c.c)(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},t}(l.a);t.a=m},function(e,t,n){"use strict";var r=n(6),i=n(35),o=n(30),a=n(95),s=function(e){function t(t){e.call(this),this.projection_=Object(o.d)(t.projection),this.attributions_=l(t.attributions),this.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,this.loading=!1,this.state_=void 0!==t.state?t.state:a.a.READY,this.wrapX_=void 0!==t.wrapX&&t.wrapX}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getAttributions=function(){return this.attributions_},t.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},t.prototype.getProjection=function(){return this.projection_},t.prototype.getResolutions=function(){return Object(r.b)()},t.prototype.getState=function(){return this.state_},t.prototype.getWrapX=function(){return this.wrapX_},t.prototype.refresh=function(){this.changed()},t.prototype.setAttributions=function(e){this.attributions_=l(e),this.changed()},t.prototype.setState=function(e){this.state_=e,this.changed()},t}(i.a);function l(e){return e?Array.isArray(e)?function(t){return e}:"function"==typeof e?e:function(t){return[e]}:null}t.a=s},function(e,t,n){"use strict";var r=n(26),i=n(3),o=n(40),a=n(10),s=n(204),l=n(80),u=n(62),c=n(202);var d=n(77),f=n(98),p=n(72),h=n(73),m=n(297),g=n(145),v=n(150),y=n(96),b=function(e){function t(t,n,i){if(e.call(this),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!i&&!Array.isArray(t[0])){for(var o=this.getLayout(),a=t,s=[],l=[],u=0,c=a.length;u<c;++u){var d=a[u];0===u&&(o=d.getLayout());for(var f=s.length,p=d.getEnds(),h=0,m=p.length;h<m;++h)p[h]+=f;Object(r.c)(s,d.getFlatCoordinates()),l.push(p)}n=o,t=s,i=l}void 0!==n&&i?(this.setFlatCoordinates(n,t),this.endss_=i):this.setCoordinates(t,n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.appendPolygon=function(e){var t;if(this.flatCoordinates){var n=this.flatCoordinates.length;Object(r.c)(this.flatCoordinates,e.getFlatCoordinates());for(var i=0,o=(t=e.getEnds().slice()).length;i<o;++i)t[i]+=n}else this.flatCoordinates=e.getFlatCoordinates().slice(),t=e.getEnds().slice(),this.endss_.push();this.endss_.push(t),this.changed()},t.prototype.clone=function(){for(var e=this.endss_.length,n=new Array(e),r=0;r<e;++r)n[r]=this.endss_[r].slice();return new t(this.flatCoordinates.slice(),this.layout,n)},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(i.e)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(d.f)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(d.c)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.containsXY=function(e,t){return Object(f.d)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e,t)},t.prototype.getArea=function(){return Object(c.c)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},t.prototype.getCoordinates=function(e){var t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),Object(v.d)(t,0,this.endss_,this.stride,e)):t=this.flatCoordinates,Object(h.c)(t,0,this.endss_,this.stride)},t.prototype.getEndss=function(){return this.endss_},t.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var e=function(e,t,n,r){for(var o=[],a=Object(i.j)(),s=0,l=n.length;s<l;++s){var u=n[s];a=Object(i.o)(e,t,u[0],r),o.push((a[0]+a[2])/2,(a[1]+a[3])/2),t=u[u.length-1]}return o}(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=Object(m.b)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},t.prototype.getInteriorPoints=function(){return new s.a(this.getFlatInteriorPoints().slice(),o.a.XYM)},t.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;Object(v.b)(e,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=Object(v.d)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=Object(y.d)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(e),n,0,r),new t(n,o.a.XY,r)},t.prototype.getPolygon=function(e){if(e<0||this.endss_.length<=e)return null;var t;if(0===e)t=0;else{var n=this.endss_[e-1];t=n[n.length-1]}var r=this.endss_[e].slice(),i=r[r.length-1];if(0!==t)for(var o=0,a=r.length;o<a;++o)r[o]-=t;return new l.a(this.flatCoordinates.slice(t,i),this.layout,r)},t.prototype.getPolygons=function(){for(var e=this.layout,t=this.flatCoordinates,n=this.endss_,r=[],i=0,o=0,a=n.length;o<a;++o){var s=n[o].slice(),u=s[s.length-1];if(0!==i)for(var c=0,d=s.length;c<d;++c)s[c]-=i;var f=new l.a(t.slice(i,u),e,s);r.push(f),i=u}return r},t.prototype.getType=function(){return a.a.MULTI_POLYGON},t.prototype.intersectsExtent=function(e){return Object(g.d)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,3),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(p.d)(this.flatCoordinates,0,e,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{var r=n[n.length-1];this.flatCoordinates.length=0===r.length?0:r[r.length-1]}this.changed()},t}(u.a);t.a=b},function(e,t,n){"use strict";var r=s(n(531)),i=s(n(1225)),o=s(n(590)),a=s(n(532));function s(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:r.default}},function(e,t,n){"use strict";(function(r){function i(e){return(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})(e)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":i(console))&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(1232)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n(70))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});for(var r="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),i={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:r?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},a={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},s=1;s<20;s++)a["f"+s]=111+s;function l(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return u(e,t)})),i=function(e){return r.some((function(t){return c(t,e)}))};return null==n?i:i(n)}function u(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in i)r[i[s]]=!1;var l=!0,u=!1,c=void 0;try{for(var p,h=o[Symbol.iterator]();!(l=(p=h.next()).done);l=!0){var m=p.value,g=m.endsWith("?");g&&(m=m.slice(0,-1));var v=f(m),y=i[v];1!==a&&y||(n?r.key=v:r.which=d(m)),y&&(r[y]=!g||null)}}catch(e){u=!0,c=e}finally{try{!l&&h.return&&h.return()}finally{if(u)throw c}}return r}function c(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&((null!=(i="key"===n?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r))return!1}return!0}function d(e){return e=f(e),a[e]||e.toUpperCase().charCodeAt(0)}function f(e){return e=e.toLowerCase(),e=o[e]||e}t.default=l,t.isHotkey=l,t.isCodeHotkey=function(e,t){return l(e,t)},t.isKeyHotkey=function(e,t){return l(e,{byKey:!0},t)},t.parseHotkey=u,t.compareHotkey=c,t.toKeyCode=d,t.toKeyName=f},,function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(240),i=n(209),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(44),i=n(182),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(721),i=n(733),o=n(735),a=n(736),s=n(737);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(153)(n(75),"Map");e.exports=r},function(e,t,n){var r=n(747),i=n(69);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(437),i=n(438),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(251),i=n(757),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(770),i=n(453)(r);e.exports=i},function(e,t,n){var r=n(323),i=n(772),o=n(773);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){var r=n(247),i=n(255),o=n(326),a=n(248),s=n(776),l=n(317);e.exports=function(e,t,n){var u=-1,c=i,d=e.length,f=!0,p=[],h=p;if(n)f=!1,c=o;else if(d>=200){var m=t?null:s(e);if(m)return l(m);f=!1,c=a,h=new r}else h=t?[]:p;e:for(;++u<d;){var g=e[u],v=t?t(g):g;if(g=n||0!==g?g:0,f&&v==v){for(var y=h.length;y--;)if(h[y]===v)continue e;t&&h.push(v),p.push(g)}else c(h,v,n)||(h!==p&&h.push(v),p.push(g))}return p}},function(e,t){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(440)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveFormat=function(e,t){const n=e.get("frontmatter_delimiter"),o=i.List.isList(n)?n.toArray():n,a=e.get("format");if(a)return d(a,o);const s=t&&t.path;if(s){const e=s.split(".").pop();return(0,r.default)(c,e)}const l=e.get("extension");if(l)return(0,r.default)(c,l);return d("frontmatter",o)},t.extensionFormatters=t.formatExtensions=t.frontmatterFormats=void 0;var r=u(n(82)),i=n(4),o=u(n(461)),a=u(n(464)),s=u(n(471)),l=n(803);function u(e){return e&&e.__esModule?e:{default:e}}t.frontmatterFormats=["yaml-frontmatter","toml-frontmatter","json-frontmatter"];t.formatExtensions={yml:"yml",yaml:"yml",toml:"toml",json:"json",frontmatter:"md","json-frontmatter":"md","toml-frontmatter":"md","yaml-frontmatter":"md"};const c={yml:o.default,yaml:o.default,toml:a.default,json:s.default,md:l.FrontmatterInfer,markdown:l.FrontmatterInfer,html:l.FrontmatterInfer};t.extensionFormatters=c;const d=(e,t)=>({yml:o.default,yaml:o.default,toml:a.default,json:s.default,frontmatter:l.FrontmatterInfer,"json-frontmatter":(0,l.frontmatterJSON)(t),"toml-frontmatter":(0,l.frontmatterTOML)(t),"yaml-frontmatter":(0,l.frontmatterYAML)(t)}[e])},function(e,t,n){e.exports=n(1680).YAML},function(module,exports,__webpack_require__){"use strict";(function(global){module.exports=makeParserClass(__webpack_require__(782)),module.exports.makeParserClass=makeParserClass;class TomlError extends Error{constructor(e){super(e),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,TomlError),this.fromTOML=!0,this.wrapped=null}}TomlError.wrap=e=>{const t=new TomlError(e.message);return t.code=e.code,t.wrapped=e,t},module.exports.TomlError=TomlError;const createDateTime=__webpack_require__(783),createDateTimeFloat=__webpack_require__(784),createDate=__webpack_require__(785),createTime=__webpack_require__(786),CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:"\t",[CHAR_n]:"\n",[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}const _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(e,t){return!!hasOwnProperty.call(e,t)||("__proto__"===t&&defineProperty(e,"__proto__",descriptor),!1)}const INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){return null!==e&&"object"==typeof e&&e[_type]===INLINE_TABLE}const TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable(e){return null!==e&&"object"==typeof e&&e[_type]===TABLE}const _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){return null!==e&&"object"==typeof e&&e[_type]===INLINE_LIST}const LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){return null!==e&&"object"==typeof e&&e[_type]===LIST}let _custom;try{const utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(e){}const _inspect=_custom||"inspect";class BoxedBigInt{constructor(e){try{this.value=global.BigInt.asIntN(64,e)}catch(e){this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return null===this.value}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}}const INTEGER=Symbol("integer");function Integer(e){let t=Number(e);return Object.is(t,-0)&&(t=0),global.BigInt&&!Number.isSafeInteger(t)?new BoxedBigInt(e):Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}function isInteger(e){return null!==e&&"object"==typeof e&&e[_type]===INTEGER}const FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){return null!==e&&"object"==typeof e&&e[_type]===FLOAT}function tomlType(e){const t=typeof e;if("object"===t){if(null===e)return"null";if(e instanceof Date)return"datetime";if(_type in e)switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return t}function makeParserClass(e){return class extends e{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===e.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(e){let t=this.ctx,n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));t=t[n]=t[n]||Table()}if(hasKey(t,n))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(e.value)||isFloat(e.value)?t[n]=e.value.valueOf():t[n]=e.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(e){return this.state.resultTable?this.state.resultTable.push(e):this.state.resultTable=[e],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){return this.char===CHAR_PERIOD?this.next(this.parseAssignKeywordPostDot):this.char!==CHAR_SP&&this.char!==CTRL_I?this.goto(this.parseAssignEqual):void 0}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(e){return this.returnNow({key:this.state.resultTable,value:e})}parseComment(){do{if(this.char===e.END||this.char===CTRL_J)return this.return()}while(this.nextChar())}parseTableOrList(){if(this.char!==CHAR_LSQB)return this.goto(this.parseTable);this.next(this.parseList)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)&&(!isTable(this.ctx[e])||this.ctx[e][_declared]))throw this.error(new TomlError("Can't redefine existing key"));return this.ctx=this.ctx[e]=this.ctx[e]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}if(this.char===CHAR_PERIOD){if(hasKey(this.ctx,e))if(isTable(this.ctx[e]))this.ctx=this.ctx[e];else{if(!isList(this.ctx[e]))throw this.error(new TomlError("Can't redefine existing key"));this.ctx=this.ctx[e][this.ctx[e].length-1]}else this.ctx=this.ctx[e]=Table();return this.next(this.parseTableNext)}throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)||(this.ctx[e]=List()),isInlineList(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline array"));if(!isList(this.ctx[e]))throw this.error(new TomlError("Can't redefine an existing key"));{const t=Table();this.ctx[e].push(t),this.ctx=t}return this.next(this.parseListEnd)}if(this.char===CHAR_PERIOD){if(hasKey(this.ctx,e)){if(isInlineList(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline array"));if(isInlineTable(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline table"));if(isList(this.ctx[e]))this.ctx=this.ctx[e][this.ctx[e].length-1];else{if(!isTable(this.ctx[e]))throw this.error(new TomlError("Can't redefine an existing key"));this.ctx=this.ctx[e]}}else this.ctx=this.ctx[e]=Table();return this.next(this.parseListNext)}throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseListEnd(e){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===e.END)throw this.error(new TomlError("Key without value"));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(e){return this.returnNow(e)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===CHAR_f)return"-"===this.state.buf?this.return(-1/0):this.return(1/0);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===e.END)throw this.error(new TomlError("Key ended without value"));if(!isAlphaNumHyphen(this.char)){if(0===this.state.buf.length)throw this.error(new TomlError("Empty bare keys are not allowed"));return this.returnNow()}this.consume()}while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===CHAR_APOS)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===CHAR_QUOT)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let e="\\u00";return this.char<16&&(e+="0"),e+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${e} instead`))}recordMultiEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError("Can't escape whitespace"))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError("Unknown escape character: "+this.char))}parseUnicodeReturn(e){try{const t=parseInt(e,16);if(t>=SURROGATE_FIRST&&t<=SURROGATE_LAST)throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(t))}catch(e){throw this.error(TomlError.wrap(e))}}parseSmallUnicode(){if(!isHexit(this.char))throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"));if(this.consume(),this.state.buf.length>=4)return this.return()}parseLargeUnicode(){if(!isHexit(this.char))throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"));if(this.consume(),this.state.buf.length>=8)return this.return()}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(!isDigit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNumberFloat(){return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder,this.parseNumberFloat):isDigit(this.char)?void this.consume():this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS)throw this.error(new TomlError("Unexpected character, expected -, + or digit"));this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent)}parseNumberExponent(){if(!isDigit(this.char))return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder):this.returnNow(Float(this.state.buf));this.consume()}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder,this.parseNumberInteger):isDigit(this.char)?(this.consume(),void(this.state.buf.length>4&&this.next(this.parseNumberInteger))):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_HYPHEN?this.goto(this.parseDateTime):this.char===CHAR_COLON?this.goto(this.parseOnlyTimeHour):this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char))return this.consume();if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);throw this.error(new TomlError("Expected digit while parsing year part of a date"))}if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}parseNumberBaseOrDateTime(){return this.char===CHAR_b?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===CHAR_o?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===CHAR_x?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===CHAR_PERIOD?this.goto(this.parseNumberInteger):isDigit(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(!isHexit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseIntegerOct(){if(!isOctit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseIntegerBin(){if(!isBit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+"-"+this.state.buf));if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseTimeMin(){if(!(this.state.buf.length<2&&isDigit(this.char))){if(2===this.state.buf.length&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new TomlError("Incomplete datetime"))}this.consume()}parseTimeSec(){if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));if(this.consume(),2===this.state.buf.length)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeMin(){if(!(this.state.buf.length<2&&isDigit(this.char))){if(2===this.state.buf.length&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new TomlError("Incomplete time"))}this.consume()}parseOnlyTimeSec(){if(!isDigit(this.char))throw this.error(new TomlError("Incomplete time"));if(this.consume(),2===this.state.buf.length)return this.next(this.parseOnlyTimeFractionMaybe)}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char!==CHAR_PERIOD)return this.return(createTime(this.state.result));this.state.buf="",this.next(this.parseOnlyTimeFraction)}parseOnlyTimeFraction(){if(!isDigit(this.char)){if(this.atEndOfWord()){if(0===this.state.buf.length)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume()}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else{if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS){if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume(),this.next(this.parseTimeZoneHour)}}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else{if(1===this.state.buf.length)throw this.error(new TomlError("Expected digit in milliseconds"));if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS){if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume(),this.next(this.parseTimeZoneHour)}}parseTimeZoneHour(){if(!isDigit(this.char))throw this.error(new TomlError("Unexpected character in datetime, expected digit"));if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}parseTimeZoneSep(){if(this.char!==CHAR_COLON)throw this.error(new TomlError("Unexpected character in datetime, expected colon"));this.consume(),this.next(this.parseTimeZoneMin)}parseTimeZoneMin(){if(!isDigit(this.char))throw this.error(new TomlError("Unexpected character in datetime, expected digit"));if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}parseBoolean(){return this.char===CHAR_t?(this.consume(),this.next(this.parseTrue_r)):this.char===CHAR_f?(this.consume(),this.next(this.parseFalse_a)):void 0}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===e.END)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(e){if(this.state.resultArr){const t=this.state.resultArr[_contentType],n=tomlType(e);if(t!==n)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${t} and ${n}`))}else this.state.resultArr=InlineList(tomlType(e));return isFloat(e)||isInteger(e)?this.state.resultArr.push(e.valueOf()):this.state.resultArr.push(e),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(e){let t=this.state.resultTable,n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));t=t[n]=t[n]||Table()}if(hasKey(t,n))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(e.value)||isFloat(e.value)?t[n]=e.value.valueOf():t[n]=e.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}}}).call(this,__webpack_require__(43))},function(e,t,n){"use strict";e.exports=(e,t)=>{for(t=String(t);t.length<e;)t="0"+t;return t}},function(e,t,n){"use strict";e.exports=function(e,t){if(null==e.pos||null==e.line)return e;let n=e.message;if(n+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:\n`,t&&t.split){const r=t.split(/\n/),i=String(Math.min(r.length,e.line+3)).length;let o=" ";for(;o.length<i;)o+=" ";for(let t=Math.max(0,e.line-1);t<Math.min(r.length,e.line+2);++t){let a=String(t+1);if(a.length<i&&(a=" "+a),e.line===t){n+=a+"> "+r[t]+"\n",n+=o+" ";for(let t=0;t<e.col;++t)n+=" ";n+="^\n"}else n+=a+": "+r[t]+"\n"}}return e.message=n+"\n",e}},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,o,a,s;if(u(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):g(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)o(l,this,t);else{var u=l.length,c=g(l,u);for(n=0;n<u;++n)o(c[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return u(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){(t=e.exports=n(466)).Stream=t,t.Readable=t,t.Writable=n(336),t.Duplex=n(159),t.Transform=n(470),t.PassThrough=n(796)},function(e,t,n){var r=n(157),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";(function(t,r,i){var o=n(258);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:o.nextTick;y.WritableState=v;var u=Object.create(n(218));u.inherits=n(158);var c={deprecate:n(794)},d=n(467),f=n(335).Buffer,p=i.Uint8Array||function(){};var h,m=n(468);function g(){}function v(e,t){s=s||n(159),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,u=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(u||0===u)?u:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(E,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),E(e,t))}(e,n,r,t,i);else{var a=x(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?l(_,e,n,a,i):_(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(e){if(s=s||n(159),!(h.call(y,this)||this instanceof s))return new y(e);this._writableState=new v(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function b(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),E(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,b(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,d=n.callback;if(b(e,t,!1,t.objectMode?1:u.length,u,c,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),E(e,t)}))}function E(e,t){var n=x(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}u.inherits(y,d),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===y&&(e&&e._writableState instanceof v)}})):h=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=e,f.isBuffer(r)||r instanceof p);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=g),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,i,o);return l}(this,i,s,e,t,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,E(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(70),n(465).setImmediate,n(43))},function(e,t,n){"use strict";var r=n(187);e.exports=new r({explicit:[n(813),n(814),n(815)]})},function(e,t,n){"use strict";(function(e){const r=n(830),i=n(259);t.define=function(e,t,n){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})},t.isBuffer=e=>"buffer"===i(e),t.isObject=e=>"object"===i(e),t.toBuffer=function(t){return"string"==typeof t?e.from(t):t},t.toString=function(e){if(t.isBuffer(e))return r(String(e));if("string"!=typeof e)throw new TypeError("expected input to be a string or buffer");return r(e)},t.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},t.startsWith=function(e,t,n){return"number"!=typeof n&&(n=t.length),e.slice(0,n)===t}}).call(this,n(157).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.selectUseWorkflow=t.selectLocale=void 0;var r=n(4),i=n(160),o=n(103);const a=(0,r.Map)({isFetching:!0});t.selectLocale=e=>e.get("locale","en");t.selectUseWorkflow=e=>e.get("publish_mode")===o.EDITORIAL_WORKFLOW;var s=(e=a,t)=>{switch(t.type){case i.CONFIG_MERGE:return e.mergeDeep(t.payload);case i.CONFIG_REQUEST:return e.set("isFetching",!0);case i.CONFIG_SUCCESS:return t.payload.delete("isFetching");case i.CONFIG_FAILURE:return e.withMutations(e=>{e.delete("isFetching"),e.set("error",t.payload.toString())});default:return e}};t.default=s},function(e,t,n){"use strict";var r=n(837),i=n(341),o=n(188),a=n(477),s=n(839);function l(e,t,n){var r=this._refs[n];if("string"==typeof r){if(!this._refs[r])return l.call(this,e,t,r);r=this._refs[r]}if((r=r||this._schemas[n])instanceof a)return h(r.schema,this._opts.inlineRefs)?r.schema:r.validate||this._compile(r);var i,o,s,c=u.call(this,t,n);return c&&(i=c.schema,t=c.root,s=c.baseId),i instanceof a?o=i.validate||e.call(this,i.schema,t,void 0,s):void 0!==i&&(o=h(i,this._opts.inlineRefs)?i:e.call(this,i,t,void 0,s)),o}function u(e,t){var n=r.parse(t),i=g(n),o=m(this._getId(e.schema));if(0===Object.keys(e.schema).length||i!==o){var s=y(i),l=this._refs[s];if("string"==typeof l)return c.call(this,e,l,n);if(l instanceof a)l.validate||this._compile(l),e=l;else{if(!((l=this._schemas[s])instanceof a))return;if(l.validate||this._compile(l),s==y(t))return{schema:l,root:e,baseId:o};e=l}if(!e.schema)return;o=m(this._getId(e.schema))}return f.call(this,n,o,e.schema,e)}function c(e,t,n){var r=u.call(this,e,t);if(r){var i=r.schema,o=r.baseId;e=r.root;var a=this._getId(i);return a&&(o=b(o,a)),f.call(this,n,o,i,e)}}e.exports=l,l.normalizeId=y,l.fullPath=m,l.url=b,l.ids=function(e){var t=y(this._getId(e)),n={"":t},a={"":m(t,!1)},l={},u=this;return s(e,{allKeys:!0},(function(e,t,s,c,d,f,p){if(""!==t){var h=u._getId(e),m=n[c],g=a[c]+"/"+d;if(void 0!==p&&(g+="/"+("number"==typeof p?p:o.escapeFragment(p))),"string"==typeof h){h=m=y(m?r.resolve(m,h):h);var v=u._refs[h];if("string"==typeof v&&(v=u._refs[v]),v&&v.schema){if(!i(e,v.schema))throw new Error('id "'+h+'" resolves to more than one schema')}else if(h!=y(g))if("#"==h[0]){if(l[h]&&!i(e,l[h]))throw new Error('id "'+h+'" resolves to more than one schema');l[h]=e}else u._refs[h]=g}n[t]=m,a[t]=g}})),l},l.inlineRef=h,l.schema=u;var d=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function f(e,t,n,r){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var i=e.fragment.split("/"),a=1;a<i.length;a++){var s=i[a];if(s){if(void 0===(n=n[s=o.unescapeFragment(s)]))break;var l;if(!d[s]&&((l=this._getId(n))&&(t=b(t,l)),n.$ref)){var c=b(t,n.$ref),f=u.call(this,r,c);f&&(n=f.schema,r=f.root,t=f.baseId)}}}return void 0!==n&&n!==r.schema?{schema:n,root:r,baseId:t}:void 0}}var p=o.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function h(e,t){return!1!==t&&(void 0===t||!0===t?function e(t){var n;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if("object"==typeof(n=t[r])&&!e(n))return!1}else for(var i in t){if("$ref"==i)return!1;if("object"==typeof(n=t[i])&&!e(n))return!1}return!0}(e):t?function e(t){var n,r=0;if(Array.isArray(t)){for(var i=0;i<t.length;i++)if("object"==typeof(n=t[i])&&(r+=e(n)),r==1/0)return 1/0}else for(var o in t){if("$ref"==o)return 1/0;if(p[o])r++;else if("object"==typeof(n=t[o])&&(r+=e(n)+1),r==1/0)return 1/0}return r}(e)<=t:void 0)}function m(e,t){return!1!==t&&(e=y(e)),g(r.parse(e))}function g(e){return r.serialize(e).split("#")[0]+"#"}var v=/#\/?$/;function y(e){return e?e.replace(v,""):""}function b(e,t){return t=y(t),r.resolve(e,t)}},function(e,t,n){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},function(e,t,n){"use strict";var r=n(340);function i(e,t,n){this.message=n||i.message(e,t),this.missingRef=r.url(e,t),this.missingSchema=r.normalizeId(r.fullPath(this.missingRef))}function o(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:o((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:o(i)},i.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},function(e,t,n){"use strict";e.exports={metaSchemaRef:function(e){var t=e._opts.defaultMeta;return"string"==typeof t?{$ref:t}:e.getSchema("http://json-schema.org/draft-07/schema")?{$ref:"http://json-schema.org/draft-07/schema"}:(console.warn("meta schema not defined"),{})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveIntegrations=s,t.getIntegrationProvider=void 0;var r=a(n(899)),i=a(n(955)),o=n(4);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){let n=(0,o.Map)({});return e.get("providers").forEach((e,o)=>{switch(o){case"algolia":n=n.set("algolia",new r.default(e));break;case"assetStore":n=n.set("assetStore",new i.default(e,t))}}),n}const l=function(){let e=null;return(t,n,r)=>(e||(e=s(t,n)),e.get(r))}();t.getIntegrationProvider=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createEntry=function(e,t="",n="",r={}){return{collection:e,slug:t,path:n,partial:r.partial||!1,raw:r.raw||"",data:r.data||{},label:r.label||null,isModification:(0,i.default)(r.isModification)?r.isModification:null,mediaFiles:r.mediaFiles||[],author:r.author||"",updatedOn:r.updatedOn||"",status:r.status||"",meta:r.meta||{}}};var r,i=(r=n(900))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_ERROR=void 0;t.API_ERROR="API_ERROR";class i extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t,n,i={}){super(e),r(this,"message",void 0),r(this,"status",void 0),r(this,"api",void 0),r(this,"meta",void 0),this.message=e,this.status=t,this.api=n,this.name="API_ERROR",this.meta=i}}t.default=i},function(e,t,n){var r=n(264),i=n(348);function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(492),i=n(458),o=r?function(e){return r.get(e)}:i;e.exports=o},function(e,t,n){var r=n(264),i=n(348);function o(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(4),i=s(n(495)),o=s(n(124)),a=s(n(353));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(e,t)=>{if(t&&t.signal||"undefined"==typeof window||!window.AbortController)return fetch(e,t);const n=new AbortController,r=setTimeout(()=>n.abort(),6e4);return fetch(e,u(u({},t),{},{signal:n.signal})).then(e=>(clearTimeout(r),e)).catch(e=>{if("AbortError"===e.name||"DOMException"===e.name)throw new Error("Request timed out after 60 seconds");throw e})},f=e=>{const[t,n]=e.split("?");return(0,r.Map)(u({url:t},n?{params:(i=n,(0,r.List)(i.split("&")).map(e=>(0,r.List)(e.split("=")).map(decodeURIComponent)).update(r.Map))}:{}));var i},p=e=>{return`${e.get("url")}${e.get("params")?"?"+(t=e.get("params"),t.entrySeq().map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join("&")):""}`;var t},h=e=>(0,a.default)(e)?f(e):e?(0,r.fromJS)(e):(0,r.Map)(),m=(g=e=>{const t=(e=>[p(e),e.remove("url").remove("params").toJS()])(e);return d(...t)},e=>g(h(e)));var g;const v=(0,o.default)([e=>(t,n)=>e(t,h(n)),i.default]),y=e=>v((t,n)=>n.setIn(e,t)),b=e=>v((t,n)=>n.updateIn(e,(e=(0,r.Map)())=>e.merge(t))),_=y(["method"]),w=y(["body"]),x=y(["cache"])("no-cache"),k=b(["params"]),E=b(["headers"]),S=new RegExp("^(?:[a-z]+:)?//","i"),O=v((e,t)=>t.update("url",t=>S.test(t)?t:e&&t&&"/"!==t[0]&&"/"!==e[e.length-1]?`${e}/${t}`:`${e}${t}`));var T={toURL:p,fromURL:f,fromFetchArguments:(e,t)=>f(e).merge((t?(0,r.fromJS)(t):(0,r.Map)()).remove("url").remove("params")),performRequest:m,withMethod:_,withBody:w,withHeaders:E,withParams:k,withRoot:O,withNoCache:x,fetchWithTimeout:d};t.default=T},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(101),i=n(44),o=n(69);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},function(e,t,n){var r=n(268)("map",n(161));r.placeholder=n(224),e.exports=r},function(e,t,n){var r=n(246),i=n(352),o=n(312),a=n(503),s=n(926),l=n(504),u=n(189),c=n(929),d=n(930),f=n(435),p=n(356),h=n(185),m=n(931),g=n(932),v=n(507),y=n(44),b=n(214),_=n(936),w=n(76),x=n(938),k=n(184),E=n(225),S={};S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S["[object Function]"]=S["[object WeakMap]"]=!1,e.exports=function e(t,n,O,T,C,A){var P,R=1&n,M=2&n,I=4&n;if(O&&(P=C?O(t,T,C,A):O(t)),void 0!==P)return P;if(!w(t))return t;var j=y(t);if(j){if(P=m(t),!R)return u(t,P)}else{var D=h(t),L="[object Function]"==D||"[object GeneratorFunction]"==D;if(b(t))return l(t,R);if("[object Object]"==D||"[object Arguments]"==D||L&&!C){if(P=M||L?{}:v(t),!R)return M?d(t,s(P,t)):c(t,a(P,t))}else{if(!S[D])return C?t:{};P=g(t,D,R)}}A||(A=new r);var N=A.get(t);if(N)return N;A.set(t,P),x(t)?t.forEach((function(r){P.add(e(r,n,O,r,t,A))})):_(t)&&t.forEach((function(r,i){P.set(i,e(r,n,O,i,t,A))}));var F=j?void 0:(I?M?p:f:M?E:k)(t);return i(F||t,(function(r,i){F&&(r=t[i=r]),o(P,i,e(r,n,O,i,t,A))})),P}},function(e,t,n){var r=n(436),i=n(505),o=n(225);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(434);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.selectCollectionEntriesCursor=void 0;var r=n(4),i=n(37),o=n(123);t.selectCollectionEntriesCursor=(e,t)=>new i.Cursor(e.getIn(["cursorsByType","collectionEntries",t]));var a=(e=(0,r.fromJS)({cursorsByType:{collectionEntries:{}}}),t)=>{switch(t.type){case o.ENTRIES_SUCCESS:return e.setIn(["cursorsByType","collectionEntries",t.payload.collection],i.Cursor.create(t.payload.cursor).store);case o.SORT_ENTRIES_SUCCESS:return e.deleteIn(["cursorsByType","collectionEntries",t.payload.collection]);default:return e}};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={PRESENCE:"PRESENCE",PATTERN:"PATTERN",RANGE:"RANGE",CUSTOM:"CUSTOM"}},function(e,t,n){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.SortDirection=void 0,t.SortDirection=r,function(e){e.Ascending="Ascending",e.Descending="Descending",e.None="None"}(r||(t.SortDirection=r={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.selectCustomPath=void 0;var r=c(n(82)),i=n(4),o=c(n(140)),a=n(123),s=n(226),l=n(67),u=n(89);function c(e){return e&&e.__esModule?e:{default:e}}const d=(0,i.Map)({entry:(0,i.Map)(),fieldsMetaData:(0,i.Map)(),fieldsErrors:(0,i.Map)(),hasChanged:!1,key:""});t.selectCustomPath=(e,t)=>{if(!(0,l.selectHasMetaPath)(e))return;const n=t.getIn(["entry","meta"]),i=n&&n.get("path"),o=(0,r.default)(e.toJS(),["meta","path","index_file"]),a=(0,l.selectFolderEntryExtension)(e);return i&&(0,u.join)(e.get("folder"),i,`${o}.${a}`)};var f=(e=(0,i.Map)(),t)=>{switch(t.type){case a.DRAFT_CREATE_FROM_ENTRY:return e.withMutations(e=>{e.set("entry",(0,i.fromJS)(t.payload.entry)),e.setIn(["entry","newRecord"],!1),e.set("fieldsMetaData",(0,i.Map)()),e.set("fieldsErrors",(0,i.Map)()),e.set("hasChanged",!1),e.set("key",(0,o.default)())});case a.DRAFT_CREATE_EMPTY:return e.withMutations(e=>{e.set("entry",(0,i.fromJS)(t.payload)),e.setIn(["entry","newRecord"],!0),e.set("fieldsMetaData",(0,i.Map)()),e.set("fieldsErrors",(0,i.Map)()),e.set("hasChanged",!1),e.set("key",(0,o.default)())});case a.DRAFT_CREATE_FROM_LOCAL_BACKUP:return e.withMutations(e=>{const t=e.get("localBackup").get("entry");e.delete("localBackup"),e.set("entry",t),e.setIn(["entry","newRecord"],!t.get("path")),e.set("fieldsMetaData",(0,i.Map)()),e.set("fieldsErrors",(0,i.Map)()),e.set("hasChanged",!0),e.set("key",(0,o.default)())});case a.DRAFT_CREATE_DUPLICATE_FROM_ENTRY:return e.withMutations(e=>{e.set("entry",(0,i.fromJS)(t.payload)),e.setIn(["entry","newRecord"],!0),e.set("mediaFiles",(0,i.List)()),e.set("fieldsMetaData",(0,i.Map)()),e.set("fieldsErrors",(0,i.Map)()),e.set("hasChanged",!0)});case a.DRAFT_DISCARD:return d;case a.DRAFT_LOCAL_BACKUP_RETRIEVED:{const{entry:n}=t.payload,r=new i.Map({entry:(0,i.fromJS)(n)});return e.set("localBackup",r)}case a.DRAFT_CHANGE_FIELD:return e.withMutations(e=>{const{field:n,value:r,metadata:o,entries:a}=t.payload,s=n.get("name");n.get("meta")?e.setIn(["entry","meta",s],r):e.setIn(["entry","data",s],r),e.mergeDeepIn(["fieldsMetaData"],(0,i.fromJS)(o));const l=e.getIn(["entry","data"]),u=e.getIn(["entry","meta"]);e.set("hasChanged",!a.some(e=>l.equals(e.get("data")))||!a.some(e=>u.equals(e.get("meta"))))});case a.DRAFT_VALIDATION_ERRORS:return 0===t.payload.errors.length?e.deleteIn(["fieldsErrors",t.payload.uniquefieldId]):e.setIn(["fieldsErrors",t.payload.uniquefieldId],t.payload.errors);case a.DRAFT_CLEAR_ERRORS:return e.set("fieldsErrors",(0,i.Map)());case a.ENTRY_PERSIST_REQUEST:case s.UNPUBLISHED_ENTRY_PERSIST_REQUEST:return e.setIn(["entry","isPersisting"],!0);case a.ENTRY_PERSIST_FAILURE:case s.UNPUBLISHED_ENTRY_PERSIST_FAILURE:return e.deleteIn(["entry","isPersisting"]);case a.ENTRY_PERSIST_SUCCESS:case s.UNPUBLISHED_ENTRY_PERSIST_SUCCESS:return e.withMutations(e=>{e.deleteIn(["entry","isPersisting"]),e.set("hasChanged",!1),e.getIn(["entry","slug"])||e.setIn(["entry","slug"],t.payload.slug)});case a.ENTRY_DELETE_SUCCESS:return e.withMutations(e=>{e.deleteIn(["entry","isPersisting"]),e.set("hasChanged",!1)});case a.ADD_DRAFT_ENTRY_MEDIA_FILE:return e.withMutations(e=>{const n=e.getIn(["entry","mediaFiles"]);e.setIn(["entry","mediaFiles"],n.filterNot(e=>e.get("id")===t.payload.id).insert(0,(0,i.fromJS)(t.payload))),e.set("hasChanged",!0)});case a.REMOVE_DRAFT_ENTRY_MEDIA_FILE:return e.withMutations(e=>{const n=e.getIn(["entry","mediaFiles"]);e.setIn(["entry","mediaFiles"],n.filterNot(e=>e.get("id")===t.payload.id)),e.set("hasChanged",!0)});default:return e}};t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VIEW_STYLE_GRID=t.VIEW_STYLE_LIST=void 0;t.VIEW_STYLE_LIST="VIEW_STYLE_LIST";t.VIEW_STYLE_GRID="VIEW_STYLE_GRID"},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";var r=n(987);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=((r=n(1))&&r.__esModule?r:{default:r}).default.createContext();t.default=i},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var o=n(1),a=n(1007).default,s=n(530),l=n(227);e.exports=function(e){var t,n;return n=t=function(t){function n(){return r(this,n),i(this,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)}(n,t),n.prototype.render=function(){var t=this;return o.createElement(s.Consumer,null,(function(n){var r={};return l(r,t.props),l(r,{ambManager:n}),o.createElement(e,r,t.props.children)}))},n}(o.Component),t.displayName="withManagerContext("+a(e)+")",n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FILE="__NATIVE_FILE__",t.URL="__NATIVE_URL__",t.TEXT="__NATIVE_TEXT__"},function(e,t,n){"use strict";function r(e){return e&&e.$$typeof&&"Symbol(react.forward_ref)"===e.$$typeof.toString()}Object.defineProperty(t,"__esModule",{value:!0}),t.isRefForwardingComponent=r,t.isRefable=function(e){return(t=e)&&t.prototype&&"function"==typeof t.prototype.render||r(e);var t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(275),o=n(38);t.useDragDropManager=function(){var e=r.useContext(i.context).dragDropManager;return o(null!=e,"Expected drag drop context"),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=void 0;var r,i=n(1090);var o=((r=i)&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};t.canUseDOM=o.canUseDOM;t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.searchCollections=function(e,t){t?i.default.push(`/collections/${t}/search/${e}`):i.default.push("/search/"+e)},t.showCollection=function(e){i.default.push((0,o.getCollectionUrl)(e))},t.createNewEntry=function(e){i.default.push((0,o.getNewEntryUrl)(e))};var r,i=(r=n(152))&&r.__esModule?r:{default:r},o=n(164)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GitHubBackend",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),t.NetlifyCmsBackendGithub=void 0;var r=a(n(1152)),i=a(n(373)),o=a(n(564));function a(e){return e&&e.__esModule?e:{default:e}}const s={GitHubBackend:r.default,API:i.default,AuthenticationPage:o.default};t.NetlifyCmsBackendGithub=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PullRequestState=t.MOCK_PULL_REQUEST=t.API_NAME=void 0;var r=h(n(138)),i=h(n(121)),o=h(n(565)),a=h(n(170)),s=h(n(162)),l=h(n(1155)),u=n(566),c=h(n(191)),d=n(107),f=n(37),p=n(89);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(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){v(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}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}t.API_NAME="GitHub";var y;let b;t.MOCK_PULL_REQUEST=-1,function(e){e.Error="error",e.Failure="failure",e.Pending="pending",e.Success="success"}(y||(y={})),t.PullRequestState=b,function(e){e.Open="open",e.Closed="closed",e.All="all"}(b||(t.PullRequestState=b={}));const _=e=>e.labels.some(e=>(0,f.isCMSLabel)(e.name)),w=e=>e.reduce((e,t)=>("removed"===t.status?e.push({sha:null,path:t.filename}):"renamed"===t.status?(e.push({sha:null,path:t.previous_filename}),e.push({sha:t.sha,path:t.filename})):e.push({sha:t.sha,path:t.filename}),e),[]),x=e=>({path:e.filename,newFile:"added"===e.status,sha:e.sha,binary:"renamed"!==e.status&&!e.patch||e.filename.endsWith(".svg")});let k=!1;class E{constructor(e){v(this,"apiRoot",void 0),v(this,"token",void 0),v(this,"branch",void 0),v(this,"useOpenAuthoring",void 0),v(this,"repo",void 0),v(this,"originRepo",void 0),v(this,"repoOwner",void 0),v(this,"repoName",void 0),v(this,"originRepoOwner",void 0),v(this,"originRepoName",void 0),v(this,"repoURL",void 0),v(this,"originRepoURL",void 0),v(this,"mergeMethod",void 0),v(this,"initialWorkflowStatus",void 0),v(this,"_userPromise",void 0),v(this,"_metadataSemaphore",void 0),v(this,"commitAuthor",void 0),v(this,"filterOpenAuthoringBranches",async e=>{try{const t=await this.getBranchPullRequest(e),{state:n,merged_at:r}=t;return-1!==t.number&&n===b.Closed&&r?(await this.deleteBranch(e),{branch:e,filter:!1}):{branch:e,filter:!0}}catch(t){return{branch:e,filter:!1}}}),this.apiRoot=e.apiRoot||"https://api.github.com",this.token=e.token||"",this.branch=e.branch||"master",this.useOpenAuthoring=e.useOpenAuthoring,this.repo=e.repo||"",this.originRepo=e.originRepo||this.repo,this.repoURL="/repos/"+this.repo,this.originRepoURL="/repos/"+this.originRepo;const[t,n]=[this.repo.split("/"),this.originRepo.split("/")];this.repoOwner=t[0],this.repoName=t[1],this.originRepoOwner=n[0],this.originRepoName=n[1],this.mergeMethod=e.squashMerges?"squash":"merge",this.initialWorkflowStatus=e.initialWorkflowStatus}user(){return this._userPromise||(this._userPromise=this.getUser()),this._userPromise}getUser(){return this.request("/user")}async hasWriteAccess(){try{const e=await this.request(this.repoURL);return this.repoOwner=e.owner.login,e.permissions.push}catch(e){throw console.error("Problem fetching repo data from GitHub"),e}}reset(){}requestHeaders(e={}){const t=g({"Content-Type":"application/json; charset=utf-8"},e);return this.token?(t.Authorization="token "+this.token,Promise.resolve(t)):Promise.resolve(t)}parseJsonResponse(e){return e.json().then(t=>e.ok?t:Promise.reject(t))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+="?"+n.join("&")),this.apiRoot+e}parseResponse(e){const t=e.headers.get("Content-Type");if(t&&t.match(/json/))return this.parseJsonResponse(e);return e.text().then(t=>e.ok?t:Promise.reject(t))}handleRequestError(e,t){throw new f.APIError(e.message,t,"GitHub")}buildRequest(e){return e}async request(e,t={},n=(e=>this.parseResponse(e))){t=g({cache:"no-cache"},t);const r=await this.requestHeaders(t.headers||{}),i=this.urlFor(e,t);let o=500;try{const e=f.unsentRequest.fromFetchArguments(i,g(g({},t),{},{headers:r})),a=await(0,f.requestWithBackoff)(this,e);o=a.status;return await n(a)}catch(e){return this.handleRequestError(e,o)}}nextUrlProcessor(){return e=>e}async requestAllPages(e,t={}){t=g({cache:"no-cache"},t);const n=await this.requestHeaders(t.headers||{}),r=this.urlFor(e,t),i=await(0,f.getAllResponses)(r,g(g({},t),{},{headers:n}),"next",this.nextUrlProcessor()),o=await Promise.all(i.map(e=>this.parseResponse(e)));return[].concat(...o)}generateContentKey(e,t){const n=(0,f.generateContentKey)(e,t);return this.useOpenAuthoring?`${this.repo}/${n}`:n}parseContentKey(e){return this.useOpenAuthoring?(0,f.parseContentKey)(e.substring(this.repo.length+1)):(0,f.parseContentKey)(e)}checkMetadataRef(){return this.request(this.repoURL+"/git/refs/meta/_netlify_cms").then(e=>e.object).catch(()=>this.uploadBlob({raw:"# Netlify CMS\n\nThis tree is used by the Netlify CMS to store metadata information for specific files and branches."}).then(e=>this.request(this.repoURL+"/git/trees",{method:"POST",body:JSON.stringify({tree:[{path:"README.md",mode:"100644",type:"blob",sha:e.sha}]})})).then(e=>this.commit("First Commit",e)).then(e=>this.createRef("meta","_netlify_cms",e.sha)).then(e=>e.object))}async storeMetadata(e,t){return this._metadataSemaphore||(this._metadataSemaphore=(0,c.default)(1)),new Promise((n,r)=>{var i;return null===(i=this._metadataSemaphore)||void 0===i?void 0:i.take(async()=>{try{var i;const r=await this.checkMetadataRef(),o={path:e+".json",raw:JSON.stringify(t)};await this.uploadBlob(o);const a=await this.updateTree(r.sha,[o]),{sha:s}=await this.commit(`Updating “${e}” metadata`,a);await this.patchRef("meta","_netlify_cms",s),await f.localForage.setItem("gh.meta."+e,{expires:Date.now()+3e5,data:t}),null===(i=this._metadataSemaphore)||void 0===i||i.leave(),n()}catch(e){r(e)}})})}deleteMetadata(e){return this._metadataSemaphore||(this._metadataSemaphore=(0,c.default)(1)),new Promise(t=>{var n;return null===(n=this._metadataSemaphore)||void 0===n?void 0:n.take(async()=>{try{var n;const r=await this.checkMetadataRef(),i={path:e+".json",sha:null},o=await this.updateTree(r.sha,[i]),{sha:a}=await this.commit(`Deleting “${e}” metadata`,o);await this.patchRef("meta","_netlify_cms",a),null===(n=this._metadataSemaphore)||void 0===n||n.leave(),t()}catch(e){var r;null===(r=this._metadataSemaphore)||void 0===r||r.leave(),t()}})})}async retrieveMetadataOld(e){console.log("%c Checking for MetaData files","line-height: 30px;text-align: center;font-weight: bold");const t={params:{ref:"refs/meta/_netlify_cms"},headers:{Accept:"application/vnd.github.v3.raw"}},n=t=>{throw"Not Found"===t.message&&console.log("%c %s does not have metadata","line-height: 30px;text-align: center;font-weight: bold",e),t};if(!this.useOpenAuthoring){return await this.request(`${this.repoURL}/contents/${e}.json`,t).then(e=>JSON.parse(e)).catch(n)}const[r,i]=e.split("/");return this.request(`/repos/${r}/${i}/contents/${e}.json`,t).then(e=>JSON.parse(e)).catch(n)}async getPullRequests(e,t,n){return(await this.requestAllPages(this.originRepoURL+"/pulls",{params:g(g({},e?{head:await this.getHeadReference(e)}:{}),{},{base:this.branch,state:t,per_page:100})})).filter(e=>e.head.ref.startsWith(f.CMS_BRANCH_PREFIX+"/")&&n(e))}async getOpenAuthoringPullRequest(e,t){const n=await this.getBranch(e).catch(()=>{throw new f.EditorialWorkflowError("content is not under editorial workflow",!0)}),r=t.filter(e=>e.head.sha===n.commit.sha)[0];if(r){r.labels=r.labels.filter(e=>!(0,f.isCMSLabel)(e.name));const e=r.state===b.Closed?{name:(0,f.statusToLabel)(this.initialWorkflowStatus)}:{name:(0,f.statusToLabel)("pending_review")};return r.labels.push(e),r}try{return{head:{sha:n.commit.sha},number:-1,labels:[{name:(0,f.statusToLabel)(this.initialWorkflowStatus)}],state:b.Open}}catch(e){throw new f.EditorialWorkflowError("content is not under editorial workflow",!0)}}async getBranchPullRequest(e){if(this.useOpenAuthoring){const t=await this.getPullRequests(e,b.All,()=>!0);return this.getOpenAuthoringPullRequest(e,t)}{const t=await this.getPullRequests(e,b.Open,_);if(t.length<=0)throw new f.EditorialWorkflowError("content is not under editorial workflow",!0);return t[0]}}async getPullRequestCommits(e){if(-1===e)return[];try{return await this.request(`${this.originRepoURL}/pulls/${e}/commits`)}catch(e){return console.log(e),[]}}async retrieveUnpublishedEntryData(e){const{collection:t,slug:n}=this.parseContentKey(e),r=(0,f.branchFromContentKey)(e),i=await this.getBranchPullRequest(r),{files:o}=await this.getDifferences(this.branch,i.head.sha),a=o.map(x),s=i.labels.find(e=>(0,f.isCMSLabel)(e.name)),l=(0,f.labelToStatus)(s.name),u=i.updated_at;return{collection:t,slug:n,status:l,diffs:a.map(e=>({path:e.path,newFile:e.newFile,id:e.sha})),updatedAt:u}}async readFile(e,t,{branch:n=this.branch,repoURL:r=this.repoURL,parseText:i=!0}={}){t||(t=await this.getFileSha(e,{repoURL:r,branch:n}));return await this.fetchBlobContent({sha:t,repoURL:r,parseText:i})}async readFileMetadata(e,t){return await(0,f.readFileMetadata)(t,async()=>{try{const t=await this.request(this.originRepoURL+"/commits",{params:{path:e,sha:this.branch}}),{commit:n}=t[0];return{author:n.author.name||n.author.email,updatedOn:n.author.date}}catch(e){return{author:"",updatedOn:""}}},f.localForage)}async fetchBlobContent({sha:e,repoURL:t,parseText:n}){const r=await this.request(`${t}/git/blobs/${e}`,{cache:"force-cache"});if(n){return u.Base64.decode(r.content)}{const e=u.Base64.atob(r.content),t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return new Blob([t])}}async listFiles(e,{repoURL:t=this.repoURL,branch:n=this.branch,depth:i=1}={}){const o=(0,r.default)(e,"/");try{return(await this.request(`${t}/git/trees/${n}:${o}`,{params:i>1?{recursive:1}:{}})).tree.filter(e=>"blob"===e.type&&e.path.split("/").length<=i).map(e=>({type:e.type,id:e.sha,name:(0,f.basename)(e.path),path:`${o}/${e.path}`,size:e.size}))}catch(e){if(e&&404===e.status)return console.log("This 404 was expected and handled appropriately."),[];throw e}}async migrateToVersion1(e,t){const n=e.head.ref.substring("cms/".length),r=`${t.collection}/${n}`,i="cms/"+r;await this.getBranch(i).catch(()=>{})||await this.createBranch(i,e.head.sha);const o=(await this.getPullRequests(i,b.All,()=>!0))[0]||await this.createPR(e.title,i),a=g(g({},t),{},{pr:{number:o.number,head:o.head.sha},branch:i,version:"1"});return await this.storeMetadata(r,a),await this.closePR(e.number),await this.deleteBranch(e.head.ref),await this.deleteMetadata(n),{metadata:a,pullRequest:o}}async migrateToPullRequestLabels(e,t){await this.setPullRequestStatus(e,t.status);const n=e.head.ref.substring("cms/".length);await this.deleteMetadata(n)}async migratePullRequest(e,t){const{number:n}=e;console.log(`Migrating Pull Request '${n}' (${t})`);const r=(0,f.contentKeyFromBranch)(e.head.ref);let i=await this.retrieveMetadataOld(r).catch(()=>{});if(!i)return void console.log(`Skipped migrating Pull Request '${n}' (${t})`);let o=n;if(!i.version){console.log(`Migrating Pull Request '${n}' to version 1`);try{({metadata:i,pullRequest:e}=await this.migrateToVersion1(e,i))}catch(e){return console.log(`Failed to migrate Pull Request '${n}' to version 1. See error below.`),void console.error(e)}o=e.number,console.log(`Done migrating Pull Request '${n}' to version 1. New pull request '${o}' created.`)}"1"===i.version&&(console.log(`Migrating Pull Request '${o}' to labels`),await this.migrateToPullRequestLabels(e,i),console.log(`Done migrating Pull Request '${o}' to labels`)),console.log(`Done migrating Pull Request '${n===o?o:`${n} => ${o}`}'`)}async getOpenAuthoringBranches(){return await this.requestAllPages(`${this.repoURL}/git/refs/heads/cms/${this.repo}`).catch(()=>[])}async listUnpublishedBranches(){let e;if(console.log("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold"),this.useOpenAuthoring){e=(await this.getOpenAuthoringBranches()).map(e=>e.ref.substring("refs/heads/".length));const t=await Promise.all(e.map(e=>this.filterOpenAuthoringBranches(e)));e=t.filter(e=>e.filter).map(e=>e.branch)}else{const t=await this.getPullRequests(void 0,b.Open,e=>!e.head.repo.fork&&(e=>e.labels.every(e=>!(0,f.isCMSLabel)(e.name)))(e));let n=0;for(const e of t)k||(k=!0,alert(d.oneLine`
+ Netlify CMS is adding labels to ${t.length} of your Editorial Workflow
+ entries. The "Workflow" tab will be unavailable during this migration. You may use other
+ areas of the CMS during this time. Note that closing the CMS will pause the migration.
+ `)),n+=1,await this.migratePullRequest(e,`${n} of ${t.length}`);e=(await this.getPullRequests(void 0,b.Open,_)).map(e=>e.head.ref)}return e}async getStatuses(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n),i=(await this.getBranchPullRequest(r)).head.sha;return(await this.request(`${this.originRepoURL}/commits/${i}/status`)).statuses.map(e=>({context:e.context,target_url:e.target_url,state:e.state===y.Success?f.PreviewState.Success:f.PreviewState.Other}))}async persistFiles(e,t,n){const r=e?t.concat(e):t,o=r.map(e=>this.uploadBlob(e));if(await Promise.all(o),n.useWorkflow){const o=t.map(({sha:e,path:t})=>({path:(0,i.default)(t,"/"),sha:e}));return this.editorialWorkflowGit(r,e,o,n)}return this.getDefaultBranch().then(e=>this.updateTree(e.commit.sha,r)).then(e=>this.commit(n.commitMessage,e)).then(e=>this.patchBranch(this.branch,e.sha))}async getFileSha(e,{repoURL:t=this.repoURL,branch:n=this.branch}={}){const r=e.split("/"),i=(0,s.default)(r),o=(0,l.default)(r).join("/"),a=`${t}/git/trees/${n}:${encodeURIComponent(o)}`,u=(await this.request(a)).tree.find(e=>e.path===i);if(u)return u.sha;throw new f.APIError("Not Found",404,"GitHub")}deleteFile(e,t){if(this.useOpenAuthoring)return Promise.reject("Cannot delete published entries as an Open Authoring user!");const n=this.branch;return this.getFileSha(e,{branch:n}).then(r=>{const i={method:"DELETE",params:{sha:r,message:t,branch:n}};this.commitAuthor&&(i.params.author=g(g({},this.commitAuthor),{},{date:(new Date).toISOString()}));const o=`${this.repoURL}/contents/${e}`;return this.request(o,i)})}async createBranchAndPullRequest(e,t,n){return await this.createBranch(e,t),this.createPR(n,e)}async updatePullRequestLabels(e,t){await this.request(`${this.repoURL}/issues/${e}/labels`,{method:"PUT",body:JSON.stringify({labels:t})})}async editorialWorkflowGit(e,t,n,r){const i=this.generateContentKey(r.collectionName,t.slug),o=(0,f.branchFromContentKey)(i);if(r.unpublished||!1){const{files:t}=await this.getDifferences(this.branch,await this.getHeadReference(o)),i=t.map(x),a=[];for(const e of i.filter(e=>e.binary))n.some(t=>t.path===e.path)||a.push({path:e.path,sha:null});const s=await this.rebaseBranch(o),l=a.concat(e),u=await this.updateTree(s.sha,l,o),c=await this.commit(r.commitMessage,u);return this.patchBranch(o,c.sha,{force:!0})}{const t=await this.getDefaultBranch(),n=await this.updateTree(t.commit.sha,e),i=await this.commit(r.commitMessage,n);if(this.useOpenAuthoring)await this.createBranch(o,i.sha);else{const e=await this.createBranchAndPullRequest(o,i.sha,r.commitMessage);await this.setPullRequestStatus(e,r.status||this.initialWorkflowStatus)}}}async getDifferences(e,t){const n=this.useOpenAuthoring?10:1;for(let r=1;r<=n;r++)try{return await this.request(`${this.originRepoURL}/compare/${e}...${t}`)}catch(e){if(r===n)throw console.warn(`Reached maximum number of attempts '${n}' for getDifferences`),e;await new Promise(e=>setTimeout(e,500*r))}throw new f.APIError("Not Found",404,"GitHub")}async rebaseSingleCommit(e,t){const n=await this.getDifferences(t.parents[0].sha,t.sha),r=w(n.files);if(r.length>0){const n=await this.updateTree(e.sha,r),{message:i,author:o,committer:a}=t.commit;return await this.createCommit(i,n.sha,[e.sha],o,a)}return t}async rebaseCommits(e,t){if(0===t.length||t[0].parents[0].sha===e.sha){return(0,s.default)(t)}return t.reduce((e,t)=>e.then(e=>{const n=e,r=t;return this.rebaseSingleCommit(n,r)}),Promise.resolve(e))}async rebaseBranch(e){try{const{base_commit:t,commits:n}=await this.getDifferences(this.branch,await this.getHeadReference(e));return await this.rebaseCommits(t,n)}catch(e){throw console.error(e),e}}async setPullRequestStatus(e,t){const n=[...e.labels.filter(e=>!(0,f.isCMSLabel)(e.name)).map(e=>e.name),(0,f.statusToLabel)(t)];await this.updatePullRequestLabels(e.number,n)}async updateUnpublishedEntryStatus(e,t,n){const r=this.generateContentKey(e,t),i=(0,f.branchFromContentKey)(r),o=await this.getBranchPullRequest(i);if(this.useOpenAuthoring){if("pending_publish"===status)throw new Error('Open Authoring entries may not be set to the status "pending_publish".');if(-1!==o.number){const{state:e}=o;e===b.Open&&"draft"===n&&await this.closePR(o.number),e===b.Closed&&"pending_review"===n&&await this.openPR(o.number)}else if("pending_review"===n){var a,s;const e=(0,f.branchFromContentKey)(r),t=(null===(a=(await this.getDifferences(this.branch,await this.getHeadReference(e))).commits[0])||void 0===a||null===(s=a.commit)||void 0===s?void 0:s.message)||E.DEFAULT_COMMIT_MESSAGE;await this.createPR(t,e)}}else await this.setPullRequestStatus(o,n)}async deleteUnpublishedEntry(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);-1!==i.number&&await this.closePR(i.number),await this.deleteBranch(r)}async publishUnpublishedEntry(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.mergePR(i),await this.deleteBranch(r)}async createRef(e,t,n){return await this.request(this.repoURL+"/git/refs",{method:"POST",body:JSON.stringify({ref:`refs/${e}/${t}`,sha:n})})}async patchRef(e,t,n,r={}){const i=r.force||!1;return await this.request(`${this.repoURL}/git/refs/${e}/${encodeURIComponent(t)}`,{method:"PATCH",body:JSON.stringify({sha:n,force:i})})}deleteRef(e,t){return this.request(`${this.repoURL}/git/refs/${e}/${encodeURIComponent(t)}`,{method:"DELETE"})}async getBranch(e){return await this.request(`${this.repoURL}/branches/${encodeURIComponent(e)}`)}async getDefaultBranch(){return await this.request(`${this.originRepoURL}/branches/${encodeURIComponent(this.branch)}`)}async backupBranch(e){try{const t=await this.getBranch(e);await this.createBranch(t.name.replace(new RegExp(f.CMS_BRANCH_PREFIX+"/"),`${f.CMS_BRANCH_PREFIX}_${Date.now()}/`),t.commit.sha)}catch(e){console.warn(e)}}async createBranch(e,t){try{return await this.createRef("heads",e,t)}catch(n){const r=String(n.message||"");if("Reference update failed"===r)await(0,f.throwOnConflictingBranches)(e,e=>this.getBranch(e),"GitHub");else if("Reference already exists"===r&&e.startsWith(f.CMS_BRANCH_PREFIX+"/"))try{await this.backupBranch(e);return await this.patchBranch(e,t,{force:!0})}catch(e){console.log(e)}throw n}}assertCmsBranch(e){return e.startsWith(f.CMS_BRANCH_PREFIX+"/")}patchBranch(e,t,n={}){const r=n.force||!1;if(r&&!this.assertCmsBranch(e))throw Error("Only CMS branches can be force updated, cannot force update "+e);return this.patchRef("heads",e,t,{force:r})}deleteBranch(e){return this.deleteRef("heads",e).catch(e=>"Reference does not exist"===e.message?Promise.resolve():(console.error(e),Promise.reject(e)))}async getHeadReference(e){return`${this.repoOwner}:${e}`}async createPR(e,t){return await this.request(this.originRepoURL+"/pulls",{method:"POST",body:JSON.stringify({title:e,body:f.DEFAULT_PR_BODY,head:await this.getHeadReference(t),base:this.branch})})}async openPR(e){console.log("%c Re-opening PR","line-height: 30px;text-align: center;font-weight: bold");return await this.request(`${this.originRepoURL}/pulls/${e}`,{method:"PATCH",body:JSON.stringify({state:b.Open})})}async closePR(e){console.log("%c Deleting PR","line-height: 30px;text-align: center;font-weight: bold");return await this.request(`${this.originRepoURL}/pulls/${e}`,{method:"PATCH",body:JSON.stringify({state:b.Closed})})}async mergePR(e){console.log("%c Merging PR","line-height: 30px;text-align: center;font-weight: bold");try{return await this.request(`${this.originRepoURL}/pulls/${e.number}/merge`,{method:"PUT",body:JSON.stringify({commit_message:f.MERGE_COMMIT_MESSAGE,sha:e.head.sha,merge_method:this.mergeMethod})})}catch(t){if(t instanceof f.APIError&&405===t.status)return this.forceMergePR(e);throw t}}async forceMergePR(e){const t=await this.getDifferences(e.base.sha,e.head.sha),n=w(t.files);let r="Automatically generated. Merged on Netlify CMS\n\nForce merge of:";return n.forEach(e=>{r+=`\n* "${e.path}"`}),console.log("%c Automatic merge not possible - Forcing merge.","line-height: 30px;text-align: center;font-weight: bold"),this.getDefaultBranch().then(e=>this.updateTree(e.commit.sha,n)).then(e=>this.commit(r,e)).then(e=>this.patchBranch(this.branch,e.sha))}toBase64(e){return Promise.resolve(u.Base64.encode(e))}async uploadBlob(e){const t=await(0,o.default)(e,"toBase64",(0,a.default)(this.toBase64,e.raw)),n=await this.request(this.repoURL+"/git/blobs",{method:"POST",body:JSON.stringify({content:t,encoding:"base64"})});return e.sha=n.sha,e}async updateTree(e,t,n=this.branch){const r=[],o=t.reduce((e,t)=>{const n={path:(0,i.default)(t.path,"/"),mode:"100644",type:"blob",sha:t.sha};return t.newPath?r.push({from:t.path,to:t.newPath,sha:t.sha}):e.push(n),e},[]);for(const{from:e,to:t,sha:i}of r){const r=(0,p.dirname)(e),a=(0,p.dirname)(t),s=await this.listFiles(r,{branch:n,depth:100});for(const t of s)o.push({path:t.path,mode:"100644",type:"blob",sha:null}),o.push({path:t.path.replace(r,a),mode:"100644",type:"blob",sha:t.path===e?i:t.id})}return g(g({},await this.createTree(e,o)),{},{parentSha:e})}async createTree(e,t){return await this.request(this.repoURL+"/git/trees",{method:"POST",body:JSON.stringify({base_tree:e,tree:t})})}commit(e,t){const n=t.parentSha?[t.parentSha]:[];return this.createCommit(e,t.sha,n)}async createCommit(e,t,n,r,i){return await this.request(this.repoURL+"/git/commits",{method:"POST",body:JSON.stringify({message:e,tree:t,parents:n,author:r,committer:i})})}async getUnpublishedEntrySha(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n);return(await this.getBranchPullRequest(r)).head.sha}}t.default=E,v(E,"DEFAULT_COMMIT_MESSAGE","Automatically generated by Netlify CMS")},function(e,t,n){var r=n(1162).parse;function i(e){return e.replace(/[\s,]+/g," ").trim()}var o={},a={};var s=!0;var l=!1;function u(e){var t=i(e);if(o[t])return o[t];var n=r(e,{experimentalFragmentVariables:l});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");return n=function e(t,n){var r=Object.prototype.toString.call(t);if("[object Array]"===r)return t.map((function(t){return e(t,n)}));if("[object Object]"!==r)throw new Error("Unexpected input.");n&&t.loc&&delete t.loc,t.loc&&(delete t.loc.startToken,delete t.loc.endToken);var i,o,a,s=Object.keys(t);for(i in s)s.hasOwnProperty(i)&&(o=t[s[i]],"[object Object]"!==(a=Object.prototype.toString.call(o))&&"[object Array]"!==a||(t[s[i]]=e(o,!0)));return t}(n=function(e){for(var t,n={},r=[],o=0;o<e.definitions.length;o++){var l=e.definitions[o];if("FragmentDefinition"===l.kind){var u=l.name.value,c=i((t=l.loc).source.body.substring(t.start,t.end));a.hasOwnProperty(u)&&!a[u][c]?(s&&console.warn("Warning: fragment with name "+u+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"),a[u][c]=!0):a.hasOwnProperty(u)||(a[u]={},a[u][c]=!0),n[c]||(n[c]=!0,r.push(l))}else r.push(l)}return e.definitions=r,e}(n),!1),o[t]=n,n}function c(){for(var e=Array.prototype.slice.call(arguments),t=e[0],n="string"==typeof t?t:t[0],r=1;r<e.length;r++)e[r]&&e[r].kind&&"Document"===e[r].kind?n+=e[r].loc.source.body:n+=e[r],n+=t[r];return u(n)}c.default=c,c.resetCaches=function(){o={},a={}},c.disableFragmentWarnings=function(){s=!1},c.enableExperimentalFragmentVariables=function(){l=!0},c.disableExperimentalFragmentVariables=function(){l=!1},e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GitLabBackend",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),t.NetlifyCmsBackendGitlab=void 0;var r=a(n(1172)),i=a(n(577)),o=a(n(576));function a(e){return e&&e.__esModule?e:{default:e}}const s={GitLabBackend:r.default,API:i.default,AuthenticationPage:o.default};t.NetlifyCmsBackendGitlab=s},function(e,t,n){var r=n(589)(n(1223));e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"SelectBase",(function(){return We})),n.d(t,"Async",(function(){return Qe})),n.d(t,"makeAsyncSelect",(function(){return Ke})),n.d(t,"AsyncCreatable",(function(){return nt})),n.d(t,"Creatable",(function(){return et})),n.d(t,"makeCreatableSelect",(function(){return Ze})),n.d(t,"createFilter",(function(){return ne})),n.d(t,"makeAnimated",(function(){return ft})),n.d(t,"components",(function(){return Ne})),n.d(t,"mergeStyles",(function(){return ze})),n.d(t,"defaultTheme",(function(){return Ue}));var r=n(1),i=n.n(r),o=n(116),a=n(39),s=n(49),l=n(2),u=n.n(l),c=n(669),d=n.n(c),f=n(670),p=n.n(f),h=n(307);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 g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){b(e,t,n[t])}))}return e}function x(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&&E(e,t)}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?O(e):t}function C(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var A=function(){};function P(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function R(e,t,n,r){var i=[t,r];if(n&&e)for(var o in n)n.hasOwnProperty(o)&&n[o]&&i.push("".concat(P(e,o)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var M=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===m(e)&&null!==e?[e]:[]};function I(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function j(e){return I(e)?window.pageYOffset:e.scrollTop}function D(e,t){I(e)?window.scrollTo(0,t):e.scrollTop=t}function L(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function N(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:A,i=j(e),o=t-i,a=10,s=0;function l(){var t=L(s+=a,i,o,n);D(e,t),s<n?d()(l):r(e)}l()}function F(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function B(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,i=document.documentElement;if("fixed"===t.position)return i;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return i}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,p=d.height,h=d.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,v=j(l),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),_=m-b,w=g-h,x=_+v,k=c-v-h,E=f-g+v+y,S=v+h-b;switch(i){case"auto":case"bottom":if(w>=p)return{placement:"bottom",maxHeight:t};if(k>=p&&!a)return o&&N(l,E,160),{placement:"bottom",maxHeight:t};if(!a&&k>=r||a&&w>=r)return o&&N(l,E,160),{placement:"bottom",maxHeight:a?w-y:k-y};if("auto"===i||a){var O=t,T=a?_:x;return T>=r&&(O=Math.min(T-y-s.controlHeight,t)),{placement:"top",maxHeight:O}}if("bottom"===i)return D(l,E),{placement:"bottom",maxHeight:t};break;case"top":if(_>=p)return{placement:"top",maxHeight:t};if(x>=p&&!a)return o&&N(l,S,160),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&_>=r){var C=t;return(!a&&x>=r||a&&_>=r)&&(C=a?_-b:x-b),o&&N(l,S,160),{placement:"top",maxHeight:C}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}var z=function(e){return"auto"===e?"bottom":e},U=function(e){function t(){var e,n;g(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return b(O(O(n=T(this,(e=k(t)).call.apply(e,[this].concat(i))))),"state",{maxHeight:n.props.maxMenuHeight,placement:null}),b(O(O(n)),"getPlacement",(function(e){var t=n.props,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=n.context.getPortalPlacement;if(e){var c="fixed"===a,d=B({maxHeight:i,menuEl:e,minHeight:r,placement:o,shouldScroll:s&&!c,isFixedPosition:c,theme:l});u&&u(d),n.setState(d)}})),b(O(O(n)),"getUpdatedProps",(function(){var e=n.props.menuPlacement,t=n.state.placement||z(e);return w({},n.props,{placement:t,maxHeight:n.state.maxHeight})})),n}return x(t,e),y(t,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),t}(r.Component);b(U,"contextTypes",{getPortalPlacement:u.a.func});var q=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"}},H=q,W=q,V=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.innerProps;return i.a.createElement("div",_({className:r(Object(a.a)(o("noOptionsMessage",e)),{"menu-notice":!0,"menu-notice--no-options":!0},n)},s),t)};V.defaultProps={children:"No options"};var $=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.innerProps;return i.a.createElement("div",_({className:r(Object(a.a)(o("loadingMessage",e)),{"menu-notice":!0,"menu-notice--loading":!0},n)},s),t)};$.defaultProps={children:"Loading..."};var G=function(e){function t(){var e,n;g(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return b(O(O(n=T(this,(e=k(t)).call.apply(e,[this].concat(i))))),"state",{placement:null}),b(O(O(n)),"getPortalPlacement",(function(e){var t=e.placement;t!==z(n.props.menuPlacement)&&n.setState({placement:t})})),n}return x(t,e),y(t,[{key:"getChildContext",value:function(){return{getPortalPlacement:this.getPortalPlacement}}},{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,l=e.menuPosition,u=e.getStyles,c="fixed"===l;if(!t&&!c||!r)return null;var d=this.state.placement||z(o),f=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),p=c?0:window.pageYOffset,h={offset:f[d]+p,position:l,rect:f},m=i.a.createElement("div",{className:Object(a.a)(u("menuPortal",h))},n);return t?Object(s.createPortal)(m,t):m}}]),t}(r.Component);b(G,"childContextTypes",{getPortalPlacement:u.a.func});var K=Array.isArray,Y=Object.keys,Q=Object.prototype.hasOwnProperty;function X(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==m(t)&&"object"==m(n)){var r,i,o,a=K(t),s=K(n);if(a&&s){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=s)return!1;var l=t instanceof Date,u=n instanceof Date;if(l!=u)return!1;if(l&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,d=n instanceof RegExp;if(c!=d)return!1;if(c&&d)return t.toString()==n.toString();var f=Y(t);if((i=f.length)!==Y(n).length)return!1;for(r=i;0!=r--;)if(!Q.call(n,f[r]))return!1;for(r=i;0!=r--;)if(!("_owner"===(o=f[r])&&t.$$typeof||e(t[o],n[o])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}var J=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],Z=function(e){for(var t=0;t<J.length;t++)e=e.replace(J[t].letters,J[t].base);return e},ee=function(e){return e.replace(/^\s+|\s+$/g,"")},te=function(e){return"".concat(e.label," ").concat(e.value)},ne=function(e){return function(t,n){var r=w({ignoreCase:!0,ignoreAccents:!0,stringify:te,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,o=r.ignoreAccents,a=r.stringify,s=r.trim,l=r.matchFrom,u=s?ee(n):n,c=s?ee(a(t)):a(t);return i&&(u=u.toLowerCase(),c=c.toLowerCase()),o&&(u=Z(u),c=Z(c)),"start"===l?c.substr(0,u.length)===u:c.indexOf(u)>-1}},re=function(e){return i.a.createElement("span",_({className:Object(a.a)({label:"a11yText",zIndex:9999,border:0,clip:"rect(1px, 1px, 1px, 1px)",height:1,width:1,position:"absolute",overflow:"hidden",padding:0,whiteSpace:"nowrap",backgroundColor:"red",color:"blue"})},e))},ie=function(e){function t(){return g(this,t),T(this,k(t).apply(this,arguments))}return x(t,e),y(t,[{key:"render",value:function(){var e=this.props,t=(e.in,e.out,e.onExited,e.appear,e.enter,e.exit,e.innerRef),n=(e.emotion,S(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return i.a.createElement("input",_({ref:t},n,{className:Object(a.a)({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"})}))}}]),t}(r.Component),oe=function(e){function t(){return g(this,t),T(this,k(t).apply(this,arguments))}return x(t,e),y(t,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(s.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),t}(r.Component),ae=["boxSizing","height","overflow","paddingRight","position"],se={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function le(e){e.preventDefault()}function ue(e){e.stopPropagation()}function ce(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function de(){return"ontouchstart"in window||navigator.maxTouchPoints}var fe=!("undefined"==typeof window||!window.document||!window.document.createElement),pe=0,he=function(e){function t(){var e,n;g(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return b(O(O(n=T(this,(e=k(t)).call.apply(e,[this].concat(i))))),"originalStyles",{}),b(O(O(n)),"listenerOptions",{capture:!1,passive:!1}),n}return x(t,e),y(t,[{key:"componentDidMount",value:function(){var e=this;if(fe){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,i=document.body,o=i&&i.style;if(n&&ae.forEach((function(t){var n=o&&o[t];e.originalStyles[t]=n})),n&&pe<1){var a=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,l=window.innerWidth-s+a||0;Object.keys(se).forEach((function(e){var t=se[e];o&&(o[e]=t)})),o&&(o.paddingRight="".concat(l,"px"))}i&&de()&&(i.addEventListener("touchmove",le,this.listenerOptions),r&&(r.addEventListener("touchstart",ce,this.listenerOptions),r.addEventListener("touchmove",ue,this.listenerOptions))),pe+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(fe){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,i=document.body,o=i&&i.style;pe=Math.max(pe-1,0),n&&pe<1&&ae.forEach((function(t){var n=e.originalStyles[t];o&&(o[t]=n)})),i&&de()&&(i.removeEventListener("touchmove",le,this.listenerOptions),r&&(r.removeEventListener("touchstart",ce,this.listenerOptions),r.removeEventListener("touchmove",ue,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),t}(r.Component);b(he,"defaultProps",{accountForScrollbars:!0});var me=function(e){function t(){var e,n;g(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return b(O(O(n=T(this,(e=k(t)).call.apply(e,[this].concat(i))))),"state",{touchScrollTarget:null}),b(O(O(n)),"getScrollTarget",(function(e){e!==n.state.touchScrollTarget&&n.setState({touchScrollTarget:e})})),b(O(O(n)),"blurSelectInput",(function(){document.activeElement&&document.activeElement.blur()})),n}return x(t,e),y(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?i.a.createElement("div",null,i.a.createElement("div",{onClick:this.blurSelectInput,className:Object(a.a)({position:"fixed",left:0,bottom:0,right:0,top:0})}),i.a.createElement(oe,{innerRef:this.getScrollTarget},t),r?i.a.createElement(he,{touchScrollTarget:r}):null):t}}]),t}(r.PureComponent),ge=function(e){function t(){var e,n;g(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return b(O(O(n=T(this,(e=k(t)).call.apply(e,[this].concat(i))))),"isBottom",!1),b(O(O(n)),"isTop",!1),b(O(O(n)),"scrollTarget",void 0),b(O(O(n)),"touchStart",void 0),b(O(O(n)),"cancelScroll",(function(e){e.preventDefault(),e.stopPropagation()})),b(O(O(n)),"handleEventDelta",(function(e,t){var r=n.props,i=r.onBottomArrive,o=r.onBottomLeave,a=r.onTopArrive,s=r.onTopLeave,l=n.scrollTarget,u=l.scrollTop,c=l.scrollHeight,d=l.clientHeight,f=n.scrollTarget,p=t>0,h=c-d-u,m=!1;h>t&&n.isBottom&&(o&&o(e),n.isBottom=!1),p&&n.isTop&&(s&&s(e),n.isTop=!1),p&&t>h?(i&&!n.isBottom&&i(e),f.scrollTop=c,m=!0,n.isBottom=!0):!p&&-t>u&&(a&&!n.isTop&&a(e),f.scrollTop=0,m=!0,n.isTop=!0),m&&n.cancelScroll(e)})),b(O(O(n)),"onWheel",(function(e){n.handleEventDelta(e,e.deltaY)})),b(O(O(n)),"onTouchStart",(function(e){n.touchStart=e.changedTouches[0].clientY})),b(O(O(n)),"onTouchMove",(function(e){var t=n.touchStart-e.changedTouches[0].clientY;n.handleEventDelta(e,t)})),b(O(O(n)),"getScrollTarget",(function(e){n.scrollTarget=e})),n}return x(t,e),y(t,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&(e.scrollHeight<=e.clientHeight||("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1)))}},{key:"stopListening",value:function(e){e.scrollHeight<=e.clientHeight||("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return i.a.createElement(oe,{innerRef:this.getScrollTarget},this.props.children)}}]),t}(r.Component),ve=function(e){function t(){return g(this,t),T(this,k(t).apply(this,arguments))}return x(t,e),y(t,[{key:"render",value:function(){var e=this.props,t=e.isEnabled,n=S(e,["isEnabled"]);return t?i.a.createElement(ge,n):this.props.children}}]),t}(r.Component);b(ve,"defaultProps",{isEnabled:!0});var ye=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,i=t.label,o=t.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(i||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" 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"}},be=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},_e=function(e){return!!e.isDisabled},we=function(e){function t(){return g(this,t),T(this,k(t).apply(this,arguments))}return x(t,e),y(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.cx,o=e.isMulti,s=e.getStyles,l=e.hasValue;return i.a.createElement("div",{className:r(Object(a.a)(s("valueContainer",this.props)),{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":l},n)},t)}}]),t}(r.Component),xe=function(e){var t=e.size,n=S(e,["size"]);return i.a.createElement("svg",_({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",className:Object(a.a)({display:"inline-block",fill:"currentColor",lineHeight:1,stroke:"currentColor",strokeWidth:0})},n))},ke=function(e){return i.a.createElement(xe,_({size:20},e),i.a.createElement("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"}))},Ee=function(e){return i.a.createElement(xe,_({size:20},e),i.a.createElement("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"}))},Se=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorContainer",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?i.neutral80:i.neutral40}}},Oe=Se,Te=Se,Ce=!1,Ae=function(e){var t=e.color,n=e.delay,r=e.offset;return i.a.createElement("span",{className:Object(a.a)({animationDuration:"1s",animationDelay:"".concat(n,"ms"),animationIterationCount:"infinite",animationName:"react-select-loading-indicator",animationTimingFunction:"ease-in-out",backgroundColor:t,borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":null,height:"1em",verticalAlign:"top",width:"1em"})})},Pe=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,s=e.isFocused,l=e.isRtl,u=e.theme.colors,c=s?u.neutral80:u.neutral20;return Ce||(Object(a.b)("@keyframes ","react-select-loading-indicator","{0%,80%,100%{opacity:0;}40%{opacity:1;}};"),Ce=!0),i.a.createElement("div",_({},o,{className:n(Object(a.a)(r("loadingIndicator",e)),{indicator:!0,"loading-indicator":!0},t)}),i.a.createElement(Ae,{color:c,delay:0,offset:l}),i.a.createElement(Ae,{color:c,delay:160,offset:!0}),i.a.createElement(Ae,{color:c,delay:320,offset:!l}))};Pe.defaultProps={size:4};var Re=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},Me=function(e){var t=e.children,n=e.innerProps;return i.a.createElement("div",n,t)},Ie=Me,je=Me,De=function(e){function t(){return g(this,t),T(this,k(t).apply(this,arguments))}return x(t,e),y(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.innerProps;return i.a.createElement("div",n,t||i.a.createElement(ke,{size:14}))}}]),t}(r.Component),Le=function(e){function t(){return g(this,t),T(this,k(t).apply(this,arguments))}return x(t,e),y(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.components,o=e.cx,s=e.data,l=e.getStyles,u=e.innerProps,c=e.isDisabled,d=e.removeProps,f=e.selectProps,p=r.Container,h=r.Label,m=r.Remove,g=w({className:o(Object(a.a)(l("multiValue",this.props)),{"multi-value":!0,"multi-value--is-disabled":c},n)},u),v={className:o(Object(a.a)(l("multiValueLabel",this.props)),{"multi-value__label":!0},n)},y=w({className:o(Object(a.a)(l("multiValueRemove",this.props)),{"multi-value__remove":!0},n)},d);return i.a.createElement(p,{data:s,innerProps:g,selectProps:f},i.a.createElement(h,{data:s,innerProps:v,selectProps:f},t),i.a.createElement(m,{data:s,innerProps:y,selectProps:f}))}}]),t}(r.Component);b(Le,"defaultProps",{cropWithEllipsis:!0});var Ne={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.innerProps;return i.a.createElement("div",_({},s,{className:r(Object(a.a)(o("clearIndicator",e)),{indicator:!0,"clear-indicator":!0},n)}),t||i.a.createElement(ke,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,s=e.isDisabled,l=e.isFocused,u=e.innerRef,c=e.innerProps,d=e.menuIsOpen;return i.a.createElement("div",_({ref:u,className:n(Object(a.a)(r("control",e)),{control:!0,"control--is-disabled":s,"control--is-focused":l,"control--menu-is-open":d},o)},c),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.innerProps;return i.a.createElement("div",_({},s,{className:r(Object(a.a)(o("dropdownIndicator",e)),{indicator:!0,"dropdown-indicator":!0},n)}),t||i.a.createElement(Ee,null))},DownChevron:Ee,CrossIcon:ke,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.Heading,l=e.headingProps,u=e.label,c=e.theme,d=e.selectProps;return i.a.createElement("div",{className:r(Object(a.a)(o("group",e)),{group:!0},n)},i.a.createElement(s,_({},l,{selectProps:d,theme:c,getStyles:o,cx:r}),u),i.a.createElement("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,s=(e.selectProps,S(e,["className","cx","getStyles","theme","selectProps"]));return i.a.createElement("div",_({className:n(Object(a.a)(r("groupHeading",w({theme:o},s))),{"group-heading":!0},t)},s))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return i.a.createElement("div",{className:r(Object(a.a)(o("indicatorsContainer",e)),{indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return i.a.createElement("span",_({},o,{className:n(Object(a.a)(r("indicatorSeparator",e)),{"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,s=e.isHidden,l=e.isDisabled,u=e.theme,c=(e.selectProps,S(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return i.a.createElement("div",{className:Object(a.a)(r("input",w({theme:u},c)))},i.a.createElement(p.a,_({className:n(null,{input:!0},t),inputRef:o,inputStyle:Re(s),disabled:l},c)))},LoadingIndicator:Pe,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.innerRef,l=e.innerProps,u=r(Object(a.a)(o("menu",e)),{menu:!0},n);return i.a.createElement("div",_({className:u},l,{ref:s}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.isMulti,l=e.innerRef;return i.a.createElement("div",{className:r(Object(a.a)(o("menuList",e)),{"menu-list":!0,"menu-list--is-multi":s},n),ref:l},t)},MenuPortal:G,LoadingMessage:$,NoOptionsMessage:V,MultiValue:Le,MultiValueContainer:Ie,MultiValueLabel:je,MultiValueRemove:De,Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.isDisabled,l=e.isFocused,u=e.isSelected,c=e.innerRef,d=e.innerProps;return i.a.createElement("div",_({ref:c,className:r(Object(a.a)(o("option",e)),{option:!0,"option--is-disabled":s,"option--is-focused":l,"option--is-selected":u},n)},d),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.innerProps;return i.a.createElement("div",_({className:r(Object(a.a)(o("placeholder",e)),{placeholder:!0},n)},s),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.innerProps,l=e.isDisabled,u=e.isRtl;return i.a.createElement("div",_({className:r(Object(a.a)(o("container",e)),{"--is-disabled":l,"--is-rtl":u},n)},s),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.isDisabled,l=e.innerProps;return i.a.createElement("div",_({className:r(Object(a.a)(o("singleValue",e)),{"single-value":!0,"single-value--is-disabled":s},n)},l),t)},ValueContainer:we},Fe=function(e){return w({},Ne,e.components)},Be={clearIndicator:Te,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,i=r.colors,o=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?i.neutral5:i.neutral0,borderColor:t?i.neutral10:n?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?i.primary:i.neutral30}}},dropdownIndicator:Oe,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,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,i=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:W,menu:function(e){var t,n=e.placement,r=e.theme,i=r.borderRadius,o=r.spacing,a=r.colors;return b(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),b(t,"backgroundColor",a.neutral0),b(t,"borderRadius",i),b(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),b(t,"marginBottom",o.menuGutter),b(t,"marginTop",o.menuGutter),b(t,"position","absolute"),b(t,"width","100%"),b(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,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,i=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:i?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,i=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&i.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}}},noOptionsMessage:H,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,i=e.theme,o=i.spacing,a=i.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.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&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{label:"singleValue",color:t?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};function ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=w({},e);return Object.keys(t).forEach((function(r){e[r]?n[r]=function(n,i){return t[r](e[r](n,i),i)}:n[r]=t[r]})),n}var Ue={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}},qe={backspaceRemovesValue:!0,blurInputOnSelect:F(),captureMenuScroll:!F(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:ne(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:_e,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},He=1,We=function(e){function t(e){var n;g(this,t),b(O(O(n=T(this,k(t).call(this,e)))),"state",{ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]}),b(O(O(n)),"blockOptionHover",!1),b(O(O(n)),"isComposing",!1),b(O(O(n)),"clearFocusValueOnUpdate",!1),b(O(O(n)),"commonProps",void 0),b(O(O(n)),"components",void 0),b(O(O(n)),"hasGroups",!1),b(O(O(n)),"initialTouchX",0),b(O(O(n)),"initialTouchY",0),b(O(O(n)),"inputIsHiddenAfterUpdate",void 0),b(O(O(n)),"instancePrefix",""),b(O(O(n)),"openAfterFocus",!1),b(O(O(n)),"scrollToFocusedOptionOnUpdate",!1),b(O(O(n)),"userIsDragging",void 0),b(O(O(n)),"controlRef",null),b(O(O(n)),"getControlRef",(function(e){n.controlRef=e})),b(O(O(n)),"focusedOptionRef",null),b(O(O(n)),"getFocusedOptionRef",(function(e){n.focusedOptionRef=e})),b(O(O(n)),"menuListRef",null),b(O(O(n)),"getMenuListRef",(function(e){n.menuListRef=e})),b(O(O(n)),"inputRef",null),b(O(O(n)),"getInputRef",(function(e){n.inputRef=e})),b(O(O(n)),"cacheComponents",(function(e){n.components=Fe({components:e})})),b(O(O(n)),"focus",n.focusInput),b(O(O(n)),"blur",n.blurInput),b(O(O(n)),"onChange",(function(e,t){var r=n.props;(0,r.onChange)(e,w({},t,{name:r.name}))})),b(O(O(n)),"setValue",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:void 0,i=n.props,o=i.closeMenuOnSelect,a=i.isMulti;n.onInputChange("",{action:"set-value"}),o&&(n.inputIsHiddenAfterUpdate=!a,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:r})})),b(O(O(n)),"selectOption",(function(e){var t=n.props,r=t.blurInputOnSelect,i=t.isMulti,o=n.state.selectValue;if(i)if(n.isOptionSelected(e,o)){var a=n.getOptionValue(e);n.setValue(o.filter((function(e){return n.getOptionValue(e)!==a})),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,o)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(C(o),[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,o)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));r&&n.blurInput()})),b(O(O(n)),"removeValue",(function(e){var t=n.state.selectValue,r=n.getOptionValue(e);n.onChange(t.filter((function(e){return n.getOptionValue(e)!==r})),{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()})),b(O(O(n)),"clearValue",(function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})})),b(O(O(n)),"popValue",(function(){var e=n.state.selectValue,t=e[e.length-1];n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(e.slice(0,e.length-1),{action:"pop-value",removedValue:t})})),b(O(O(n)),"getOptionLabel",(function(e){return n.props.getOptionLabel(e)})),b(O(O(n)),"getOptionValue",(function(e){return n.props.getOptionValue(e)})),b(O(O(n)),"getStyles",(function(e,t){var r=Be[e](t);r.boxSizing="border-box";var i=n.props.styles[e];return i?i(r,t):r})),b(O(O(n)),"getElementId",(function(e){return"".concat(n.instancePrefix,"-").concat(e)})),b(O(O(n)),"getActiveDescendentId",(function(){var e=n.props.menuIsOpen,t=n.state,r=t.menuOptions,i=t.focusedOption;if(i&&e){var o=r.focusable.indexOf(i),a=r.render[o];return a&&a.key}})),b(O(O(n)),"announceAriaLiveSelection",(function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:be(t,r)})})),b(O(O(n)),"announceAriaLiveContext",(function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:ye(t,w({},r,{label:n.props["aria-label"]}))})})),b(O(O(n)),"onMenuMouseDown",(function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())})),b(O(O(n)),"onMenuMouseMove",(function(e){n.blockOptionHover=!1})),b(O(O(n)),"onControlMouseDown",(function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&e.preventDefault()})),b(O(O(n)),"onDropdownIndicatorMouseDown",(function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,r=t.isMulti,i=t.menuIsOpen;n.focusInput(),i?(n.inputIsHiddenAfterUpdate=!r,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}})),b(O(O(n)),"onClearIndicatorMouseDown",(function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,setTimeout((function(){return n.focusInput()})))})),b(O(O(n)),"onScroll",(function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&I(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()})),b(O(O(n)),"onCompositionStart",(function(){n.isComposing=!0})),b(O(O(n)),"onCompositionEnd",(function(){n.isComposing=!1})),b(O(O(n)),"onTouchStart",(function(e){var t=e.touches.item(0);t&&(n.initialTouchX=t.clientX,n.initialTouchY=t.clientY,n.userIsDragging=!1)})),b(O(O(n)),"onTouchMove",(function(e){var t=e.touches.item(0);if(t){var r=Math.abs(t.clientX-n.initialTouchX),i=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=r>5||i>5}})),b(O(O(n)),"onTouchEnd",(function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)})),b(O(O(n)),"onControlTouchEnd",(function(e){n.userIsDragging||n.onControlMouseDown(e)})),b(O(O(n)),"onClearIndicatorTouchEnd",(function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)})),b(O(O(n)),"onDropdownIndicatorTouchEnd",(function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)})),b(O(O(n)),"handleInputChange",(function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()})),b(O(O(n)),"onInputFocus",(function(e){var t=n.props,r=t.isSearchable,i=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:i}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1})),b(O(O(n)),"onInputBlur",(function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))})),b(O(O(n)),"onOptionHover",(function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})})),b(O(O(n)),"shouldHideSelectedOptions",(function(){var e=n.props,t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t})),b(O(O(n)),"onKeyDown",(function(e){var t=n.props,r=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=n.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;n.focusValue("previous");break;case"ArrowRight":if(!r||a)return;n.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)n.removeValue(m);else{if(!i)return;r?n.popValue():s&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!u||!d||!h||f&&n.isOptionSelected(h,g))return;n.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(n.isComposing)return;n.selectOption(h);break}return;case"Escape":u?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):s&&o&&n.clearValue();break;case" ":if(a)return;if(!u){n.openMenu("first");break}if(!h)return;n.selectOption(h);break;case"ArrowUp":u?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":u?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!u)return;n.focusOption("pageup");break;case"PageDown":if(!u)return;n.focusOption("pagedown");break;case"Home":if(!u)return;n.focusOption("first");break;case"End":if(!u)return;n.focusOption("last");break;default:return}e.preventDefault()}}));var r=e.value;n.cacheComponents=Object(o.a)(n.cacheComponents,X).bind(O(O(n))),n.cacheComponents(e.components),n.instancePrefix="react-select-"+(n.props.instanceId||++He);var i=M(r),a=n.buildMenuOptions(e,i);return n.state.menuOptions=a,n.state.selectValue=i,n}return x(t,e),y(t,[{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:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,i=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.inputValue!==i){var o=M(e.value),a=this.buildMenuOptions(e,o),s=this.getNextFocusedValue(o),l=this.getNextFocusedOption(a.focusable);this.setState({menuOptions:a,selectValue:o,focusedOption:l,focusedValue:s})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,i,o,a=this.props,s=a.isDisabled,l=a.menuIsOpen,u=this.state.isFocused;(u&&!s&&e.isDisabled||u&&l&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),o=n.offsetHeight/3,i.bottom+o>r.bottom?D(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+o,t.scrollHeight)):i.top-o<r.top&&D(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(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),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.state,n=t.menuOptions,r=t.selectValue,i=t.isFocused,o=this.props.isMulti,a="first"===e?0:n.focusable.length-1;if(!o){var s=n.focusable.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:n.focusable[a]}),this.announceAriaLiveContext({event:"menu"})}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,i=this.state,o=i.selectValue,a=i.focusedValue;if(n){this.setState({focusedOption:null});var s=o.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"value"}));var l=o.length-1,u=-1;if(o.length){switch(e){case"previous":u=0===s?0:-1===s?l:s-1;break;case"next":s>-1&&s<l&&(u=s+1)}-1===u&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==u,focusedValue:o[u]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state,r=n.focusedOption,i=n.menuOptions,o=i.focusable;if(o.length){var a=0,s=o.indexOf(r);r||(s=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?a=s>0?s-1:o.length-1:"down"===e?a=(s+1)%o.length:"pageup"===e?(a=s-t)<0&&(a=0):"pagedown"===e?(a=s+t)>o.length-1&&(a=o.length-1):"last"===e&&(a=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[a],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:_e(o[a])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Ue):w({},Ue,this.props.theme):Ue}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,i=this.props,o=i.classNamePrefix,a=i.isMulti,s=i.isRtl,l=i.options,u=this.state.selectValue,c=this.hasValue();return{cx:R.bind(null,o),clearValue:e,getStyles:t,getValue:function(){return u},hasValue:c,isMulti:a,isRtl:s,options:l,selectOption:r,setValue:n,selectProps:i,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.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"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}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:"buildMenuOptions",value:function(e,t){var n=this,r=e.inputValue,i=void 0===r?"":r,o=e.options,a=function(e,r){var o=n.isOptionDisabled(e,t),a=n.isOptionSelected(e,t),s=n.getOptionLabel(e),l=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&a||!n.filterOption({label:s,value:l,data:e},i))){var u=o?void 0:function(){return n.onOptionHover(e)},c=o?void 0:function(){return n.selectOption(e)},d="".concat(n.getElementId("option"),"-").concat(r);return{innerProps:{id:d,onClick:c,onMouseMove:u,onMouseOver:u,tabIndex:-1},data:e,isDisabled:o,isSelected:a,key:d,label:s,type:"option",value:l}}};return o.reduce((function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var i=t.options.map((function(t,n){var i=a(t,"".concat(r,"-").concat(n));return i&&e.focusable.push(t),i})).filter(Boolean);if(i.length){var o="".concat(n.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:o,data:t,options:i})}}else{var s=a(t,"".concat(r));s&&(e.render.push(s),e.focusable.push(t))}return e}),{render:[],focusable:[]})}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,i=e.focusedOption,o=this.props,a=o.options,s=o.menuIsOpen,l=o.inputValue,u=o.screenReaderStatus,c=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",d=i&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:i,getOptionLabel:this.getOptionLabel,options:a}):"",f=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:l,screenReaderMessage:u({count:this.countOptions()})});return"".concat(c," ").concat(d," ").concat(f," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,s=this.components.Input,l=this.state.inputIsHidden,u=r||this.getElementId("input");if(!n)return i.a.createElement(ie,{id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:A,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,value:""});var c={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},d=this.commonProps,f=d.cx,p=d.theme,h=d.selectProps;return i.a.createElement(s,_({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:f,getStyles:this.getStyles,id:u,innerRef:this.getInputRef,isDisabled:t,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:h,spellCheck:"false",tabIndex:a,theme:p,type:"text",value:o},c))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,f=c.isDisabled,p=c.isMulti,h=c.inputValue,m=c.placeholder,g=this.state,v=g.selectValue,y=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!d)return h?null:i.a.createElement(l,_({},u,{key:"placeholder",isDisabled:f,isFocused:b}),m);if(p)return v.map((function(t){var s=t===y;return i.a.createElement(n,_({},u,{components:{Container:r,Label:o,Remove:a},isFocused:s,isDisabled:f,key:e.getOptionValue(t),removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=v[0];return i.a.createElement(s,_({},u,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return i.a.createElement(e,_({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!e||!o)return null;return i.a.createElement(e,_({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return i.a.createElement(n,_({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return i.a.createElement(e,_({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,c=t.Option,d=this.commonProps,f=this.state,p=f.focusedOption,h=f.menuOptions,m=this.props,g=m.captureMenuScroll,v=m.inputValue,y=m.isLoading,b=m.loadingMessage,w=m.minMenuHeight,x=m.maxMenuHeight,k=m.menuIsOpen,E=m.menuPlacement,O=m.menuPosition,T=m.menuPortalTarget,C=m.menuShouldBlockScroll,A=m.menuShouldScrollIntoView,P=m.noOptionsMessage,R=m.onMenuScrollToTop,M=m.onMenuScrollToBottom;if(!k)return null;var I,j=function(t){var n=p===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,i.a.createElement(c,_({},d,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())I=h.render.map((function(t){if("group"===t.type){t.type;var o=S(t,["type"]),a="".concat(t.key,"-heading");return i.a.createElement(n,_({},d,o,{Heading:r,headingProps:{id:a},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return j(e)})))}if("option"===t.type)return j(t)}));else if(y){var D=b({inputValue:v});if(null===D)return null;I=i.a.createElement(l,d,D)}else{var L=P({inputValue:v});if(null===L)return null;I=i.a.createElement(u,d,L)}var N={minMenuHeight:w,maxMenuHeight:x,menuPlacement:E,menuPosition:O,menuShouldScrollIntoView:A},F=i.a.createElement(U,_({},d,N),(function(t){var n=t.ref,r=t.placerProps,s=r.placement,l=r.maxHeight;return i.a.createElement(o,_({},d,N,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:y,placement:s}),i.a.createElement(ve,{isEnabled:g,onTopArrive:R,onBottomArrive:M},i.a.createElement(me,{isEnabled:C},i.a.createElement(a,_({},d,{innerRef:e.getMenuListRef,isLoading:y,maxHeight:l}),I))))}));return T||"fixed"===O?i.a.createElement(s,_({},d,{appendTo:T,controlElement:this.controlRef,menuPlacement:E,menuPosition:O}),F):F}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,s=this.state.selectValue;if(a&&!r){if(o){if(n){var l=s.map((function(t){return e.getOptionValue(t)})).join(n);return i.a.createElement("input",{name:a,type:"hidden",value:l})}var u=s.length>0?s.map((function(t,n){return i.a.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):i.a.createElement("input",{name:a,type:"hidden"});return i.a.createElement("div",null,u)}var c=s[0]?this.getOptionValue(s[0]):"";return i.a.createElement("input",{name:a,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?i.a.createElement(re,{"aria-live":"assertive"},i.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),i.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,s=a.className,l=a.id,u=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return i.a.createElement(r,_({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),i.a.createElement(t,_({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),i.a.createElement(o,_({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),i.a.createElement(n,_({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),t}(r.Component);b(We,"defaultProps",qe);var Ve={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},$e=function(e){var t,n;return n=t=function(t){function n(){var e,t;g(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return b(O(O(t=T(this,(e=k(n)).call.apply(e,[this].concat(i))))),"select",void 0),b(O(O(t)),"state",{inputValue:void 0!==t.props.inputValue?t.props.inputValue:t.props.defaultInputValue,menuIsOpen:void 0!==t.props.menuIsOpen?t.props.menuIsOpen:t.props.defaultMenuIsOpen,value:void 0!==t.props.value?t.props.value:t.props.defaultValue}),b(O(O(t)),"onChange",(function(e,n){t.callProp("onChange",e,n),t.setState({value:e})})),b(O(O(t)),"onInputChange",(function(e,n){var r=t.callProp("onInputChange",e,n);t.setState({inputValue:void 0!==r?r:e})})),b(O(O(t)),"onMenuOpen",(function(){t.callProp("onMenuOpen"),t.setState({menuIsOpen:!0})})),b(O(O(t)),"onMenuClose",(function(){t.callProp("onMenuClose"),t.setState({menuIsOpen:!1})})),t}return x(n,t),y(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var t=this,n=this.props,r=(n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue,S(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return i.a.createElement(e,_({},r,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(r.Component),b(t,"defaultProps",Ve),n},Ge={cacheOptions:!1,defaultOptions:!1,filterOption:null},Ke=function(e){var t,n;return n=t=function(t){function n(e){var t;return g(this,n),b(O(O(t=T(this,k(n).call(this)))),"select",void 0),b(O(O(t)),"lastRequest",void 0),b(O(O(t)),"mounted",!1),b(O(O(t)),"optionsCache",{}),b(O(O(t)),"handleInputChange",(function(e,n){var r=t.props,i=r.cacheOptions,o=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,n,r.onInputChange);if(!o)return delete t.lastRequest,void t.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(i&&t.optionsCache[o])t.setState({inputValue:o,loadedInputValue:o,loadedOptions:t.optionsCache[o],isLoading:!1,passEmptyOptions:!1});else{var a=t.lastRequest={};t.setState({inputValue:o,isLoading:!0,passEmptyOptions:!t.state.loadedInputValue},(function(){t.loadOptions(o,(function(e){t.mounted&&(e&&(t.optionsCache[o]=e),a===t.lastRequest&&(delete t.lastRequest,t.setState({isLoading:!1,loadedInputValue:o,loadedOptions:e||[],passEmptyOptions:!1})))}))}))}return o})),t.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1},t}return x(n,t),y(n,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,(function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}}))}},{key:"componentWillReceiveProps",value:function(e){e.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),e.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var r=n(e,t);r&&"function"==typeof r.then&&r.then(t,(function(){return t()}))}},{key:"render",value:function(){var t=this,n=this.props,r=(n.loadOptions,S(n,["loadOptions"])),o=this.state,a=o.defaultOptions,s=o.inputValue,l=o.isLoading,u=o.loadedInputValue,c=o.loadedOptions,d=o.passEmptyOptions?[]:s&&u?c:a||[];return i.a.createElement(e,_({},r,{ref:function(e){t.select=e},options:d,isLoading:l,onInputChange:this.handleInputChange}))}}]),n}(r.Component),b(t,"defaultProps",Ge),n},Ye=$e(We),Qe=Ke(Ye),Xe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=String(e).toLowerCase(),r=String(t.value).toLowerCase(),i=String(t.label).toLowerCase();return r===n||i===n},Je=w({allowCreateWhileLoading:!1,createOptionPosition:"last"},{formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n){return!(!e||t.some((function(t){return Xe(e,t)}))||n.some((function(t){return Xe(e,t)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}}),Ze=function(e){var t,n;return n=t=function(t){function n(e){var t;g(this,n),b(O(O(t=T(this,k(n).call(this,e)))),"select",void 0),b(O(O(t)),"onChange",(function(e,n){var r=t.props,i=r.getNewOptionData,o=r.inputValue,a=r.isMulti,s=r.onChange,l=r.onCreateOption,u=r.value;if("select-option"!==n.action)return s(e,n);var c=t.state.newOption,d=Array.isArray(e)?e:[e];if(d[d.length-1]!==c)s(e,n);else if(l)l(o);else{var f=i(o,o),p={action:"create-option"};s(a?[].concat(C(M(u)),[f]):f,p)}}));var r=e.options||[];return t.state={newOption:void 0,options:r},t}return x(n,t),y(n,[{key:"componentWillReceiveProps",value:function(e){var t=e.allowCreateWhileLoading,n=e.createOptionPosition,r=e.formatCreateLabel,i=e.getNewOptionData,o=e.inputValue,a=e.isLoading,s=e.isValidNewOption,l=e.value,u=e.options||[],c=this.state.newOption;c=s(o,M(l),u)?i(o,r(o)):void 0,this.setState({newOption:c,options:!t&&a||!c?u:"first"===n?[c].concat(C(u)):[].concat(C(u),[c])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var t=this,n=_({},this.props),r=this.state.options;return i.a.createElement(e,_({},n,{ref:function(e){t.select=e},options:r,onChange:this.onChange}))}}]),n}(r.Component),b(t,"defaultProps",Je),n},et=$e(Ze(We)),tt=$e(Ze(We)),nt=Ke(tt),rt=function(e){return function(t){t.in,t.onExited,t.appear,t.enter,t.exit;var n=S(t,["in","onExited","appear","enter","exit"]);return i.a.createElement(e,n)}},it=function(e){var t=e.component,n=e.duration,r=void 0===n?1:n,o=e.in,a=(e.onExited,S(e,["component","duration","in","onExited"])),s={entering:{opacity:0},entered:{opacity:1,transition:"opacity ".concat(r,"ms")},exiting:{opacity:0},exited:{opacity:0}};return i.a.createElement(h.Transition,{mountOnEnter:!0,unmountOnExit:!0,in:o,timeout:r},(function(e){var n={style:w({},s[e])};return i.a.createElement(t,_({innerProps:n},a))}))},ot=function(e){function t(){var e,n;g(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return b(O(O(n=T(this,(e=k(t)).call.apply(e,[this].concat(i))))),"duration",260),b(O(O(n)),"rafID",void 0),b(O(O(n)),"state",{width:"auto"}),b(O(O(n)),"transition",{exiting:{width:0,transition:"width ".concat(n.duration,"ms ease-out")},exited:{width:0}}),b(O(O(n)),"getWidth",(function(e){e&&isNaN(n.state.width)&&(n.rafID=window.requestAnimationFrame((function(){var t=e.getBoundingClientRect().width;n.setState({width:t})})))})),b(O(O(n)),"getStyle",(function(e){return{overflow:"hidden",whiteSpace:"nowrap",width:e}})),b(O(O(n)),"getTransition",(function(e){return n.transition[e]})),n}return x(t,e),y(t,[{key:"componentWillUnmount",value:function(){this.rafID&&window.cancelAnimationFrame(this.rafID)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.in,o=this.state.width;return i.a.createElement(h.Transition,{enter:!1,mountOnEnter:!0,unmountOnExit:!0,in:r,timeout:this.duration},(function(t){var r=w({},e.getStyle(o),e.getTransition(t));return i.a.createElement("div",{ref:e.getWidth,style:r},n)}))}}]),t}(r.Component),at=function(e){return function(t){var n=t.in,r=t.onExited,o=S(t,["in","onExited"]);return i.a.createElement(ot,{in:n,onExited:r},i.a.createElement(e,_({cropWithEllipsis:n},o)))}},st=function(e){return function(t){return i.a.createElement(it,_({component:e,duration:t.isMulti?260:1},t))}},lt=function(e){return function(t){return i.a.createElement(it,_({component:e},t))}},ut=function(e){return function(t){return i.a.createElement(h.TransitionGroup,_({component:e},t))}},ct=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Fe({components:e}),n=t.Input,r=t.MultiValue,i=t.Placeholder,o=t.SingleValue,a=t.ValueContainer,s=S(t,["Input","MultiValue","Placeholder","SingleValue","ValueContainer"]);return w({Input:rt(n),MultiValue:at(r),Placeholder:st(i),SingleValue:lt(o),ValueContainer:ut(a)},s)},dt=ct(),ft=(dt.Input,dt.MultiValue,dt.Placeholder,dt.SingleValue,dt.ValueContainer,Object(o.a)(ct,X)),pt=$e(We);t.default=pt},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.getEditorComponents=t.getEditorControl=void 0;var r=u(n(1)),i=u(n(2)),o=u(n(24)),a=u(n(1230)),s=u(n(1469)),l=n(11);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let d,f=()=>[];t.getEditorControl=()=>d;t.getEditorComponents=()=>f();class p extends r.default.Component{constructor(e){super(e),c(this,"handleMode",e=>{this.setState({mode:e,pendingFocus:!0}),localStorage.setItem("cms.md-mode",e)}),c(this,"processRef",e=>this.ref=e),c(this,"setFocusReceived",()=>{this.setState({pendingFocus:!1})}),d=e.editorControl,f=e.getEditorComponents,this.state={mode:localStorage.getItem("cms.md-mode")||"visual",pendingFocus:!1}}render(){const{onChange:e,onAddAsset:t,getAsset:n,value:r,classNameWrapper:i,field:o,getEditorComponents:u,resolveWidget:c,t:d}=this.props,{mode:f,pendingFocus:p}=this.state,h=(0,l.jsx)("div",{className:"cms-editor-visual",ref:this.processRef},(0,l.jsx)(s.default,{onChange:e,onAddAsset:t,onMode:this.handleMode,getAsset:n,className:i,value:r,field:o,getEditorComponents:u,resolveWidget:c,pendingFocus:p&&this.setFocusReceived,t:d})),m=(0,l.jsx)("div",{className:"cms-editor-raw",ref:this.processRef},(0,l.jsx)(a.default,{onChange:e,onAddAsset:t,onMode:this.handleMode,getAsset:n,className:i,value:r,field:o,pendingFocus:p&&this.setFocusReceived,t:d}));return"visual"===f?h:m}}t.default=p,c(p,"propTypes",{onChange:i.default.func.isRequired,onAddAsset:i.default.func.isRequired,getAsset:i.default.func.isRequired,classNameWrapper:i.default.string.isRequired,editorControl:i.default.elementType.isRequired,value:i.default.string,field:o.default.map.isRequired,getEditorComponents:i.default.func,t:i.default.func.isRequired}),c(p,"defaultProps",{value:""})},function(e){e.exports=JSON.parse('{"AElig":"Æ","AMP":"&","Aacute":"Á","Acirc":"Â","Agrave":"À","Aring":"Å","Atilde":"Ã","Auml":"Ä","COPY":"©","Ccedil":"Ç","ETH":"Ð","Eacute":"É","Ecirc":"Ê","Egrave":"È","Euml":"Ë","GT":">","Iacute":"Í","Icirc":"Î","Igrave":"Ì","Iuml":"Ï","LT":"<","Ntilde":"Ñ","Oacute":"Ó","Ocirc":"Ô","Ograve":"Ò","Oslash":"Ø","Otilde":"Õ","Ouml":"Ö","QUOT":"\\"","REG":"®","THORN":"Þ","Uacute":"Ú","Ucirc":"Û","Ugrave":"Ù","Uuml":"Ü","Yacute":"Ý","aacute":"á","acirc":"â","acute":"´","aelig":"æ","agrave":"à","amp":"&","aring":"å","atilde":"ã","auml":"ä","brvbar":"¦","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","curren":"¤","deg":"°","divide":"÷","eacute":"é","ecirc":"ê","egrave":"è","eth":"ð","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","iacute":"í","icirc":"î","iexcl":"¡","igrave":"ì","iquest":"¿","iuml":"ï","laquo":"«","lt":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","ntilde":"ñ","oacute":"ó","ocirc":"ô","ograve":"ò","ordf":"ª","ordm":"º","oslash":"ø","otilde":"õ","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","raquo":"»","reg":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","thorn":"þ","times":"×","uacute":"ú","ucirc":"û","ugrave":"ù","uml":"¨","uuml":"ü","yacute":"ý","yen":"¥","yuml":"ÿ"}')},function(e,t,n){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},function(e,t,n){"use strict";var r=n(595),i=n(194);e.exports=function(e){return r(e)||i(e)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var i,o,a=e.length,s=-1;for(;++s<a;)if(i=e[s],(void 0===(o=i[1]||{}).pedantic||o.pedantic===n.options.pedantic)&&(void 0===o.commonmark||o.commonmark===n.options.commonmark)&&t[i[0]].apply(n,r))return!0;return!1}},function(e,t,n){"use strict";var r=n(384);e.exports=function(e){return r(e).toLowerCase()}},function(e,t,n){"use strict";e.exports=function(e){return String(e).replace(/\s+/g," ")}},function(e,t,n){"use strict";var r=n(284);e.exports=function(e,t){if(t||0===e.length||i.test(e)||r(e,"(")!==r(e,")"))return"<"+e+">";return e};var i=/\s/},function(e,t,n){"use strict";e.exports=function(e){var t=-1===e.indexOf('"')?'"':"'";return t+e+t}},function(e,t,n){"use strict";var r=n(617),i=n(619),o=n(622),a=n(623),s=n(626),l=n(1368);e.exports=r([o,i,a,s,l])},function(e,t,n){"use strict";e.exports=function(e){return e.toLowerCase()}},function(e,t,n){"use strict";var r=n(390);function i(e){return function(t,n,i){var o=t&&t.children,a=n+e,s=o&&o[a];if(!i)for(;s&&r(s);)s=o[a+=e];return s}}t.before=i(-1),t.after=i(1)},function(e,t,n){"use strict";e.exports=function(e){var t;if(e&&"object"==typeof e&&"text"===e.type)t=e.value||"";else{if("string"!=typeof e)return!1;t=e}return""===t.replace(r,"")};var r=/[ \t\n\f\r]/g},function(e,t,n){"use strict";var r=n(388),i=n(620),o=n(621);e.exports=function(e,t){var n=r(t),d=t,f=o;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&"data"===n.slice(0,4)&&a.test(t)&&("-"===t.charAt(4)?d=function(e){var t=e.slice(5).replace(s,c);return"data"+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(s.test(t))return e;"-"!==(t=t.replace(l,u)).charAt(0)&&(t="-"+t);return"data"+t}(t),f=i);return new f(d,t)};var a=/^data[-\w.:]+$/i,s=/-[a-z]/g,l=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function c(e){return e.charAt(1).toUpperCase()}},function(e,t,n){"use strict";const r=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];t.REPLACEMENT_CHARACTER="�",t.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},t.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},t.isSurrogate=function(e){return e>=55296&&e<=57343},t.isSurrogatePair=function(e){return e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||r.indexOf(e)>-1}},function(e,t,n){"use strict";e.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},function(e,t,n){"use strict";const r=n(125);e.exports=class extends r{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}}},function(e,t,n){"use strict";e.exports=s;var r=n(1411),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)}),i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},function(e,t,n){"use strict";e.exports=function(e,t){return i(r(e,t))};var r=n(71),i=n(397)},function(e,t,n){"use strict";e.exports=o,o.needed=s;var r=n(592),i=n(1414);function o(e){return a(e,(function(e){var t=e[0];if(1===e.length&&"text"===t.type&&(" "===t.value||"\n"===t.value))return[];return{type:"paragraph",children:e}}))}function a(e,t,n){for(var r,o,a=n||c,u=[],d=function(e){var t,n=e.length,r=-1,i=[];for(;++r<n;)"delete"!==(t=e[r]).type&&"link"!==t.type||!s(t.children)?i.push(t):i=i.concat(l(t));return i}(e),f=d.length,p=-1;++p<f;)r=d[p],i(r)?(void 0===o&&(o=[]),o.push(r)):(h(),u=u.concat(a(r)));return h(),u;function h(){void 0!==o&&(u=u.concat(t(o))),o=void 0}}function s(e){for(var t,n,r=e.length,o=-1;++o<r;)if(n=(t=e[o]).children,!i(t)||n&&s(n))return!0;return!1}function l(e){return a(e.children,(function(t){var n=r(!0,{},u(e));return n.children=t,n}),(function(t){var n=r(!0,{},u(e)),i=u(t);return i.children=[n],n.children=t.children,i}))}function u(e){var t,n={};for(t in e)"children"!==t&&(n[t]=e[t]);return n}function c(e){return e}},function(e,t,n){"use strict";var r={}.hasOwnProperty;e.exports=function(e,t){var n,i;if(!e||!t||"object"!=typeof e||"element"!==e.type)return!1;return n=e.properties,null!=(i=n&&r.call(n,t)&&n[t])&&!1!==i}},function(e,t,n){var r=n(44);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetObject=void 0;var r=a(n(1494)),i=a(n(1495)),o=a(n(1496));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={Widget:(e={})=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"object",controlComponent:r.default,previewComponent:i.default,schema:o.default},e),controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetObject=u;var c=u;t.default=c},function(e,t,n){!function(e){"use strict";function t(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=i,this.prev=o}function n(e,n,r,i){var o=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=r&&(o=e.context.indented),e.context=new t(o,n,r,i,null,e.context)}function r(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function i(e,t,n){return"variable"==t.prevToken||"type"==t.prevToken||!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0}function o(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function a(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function s(e,t){return"function"==typeof e?e(t):e.propertyIsEnumerable(t)}e.defineMode("clike",(function(a,l){var u,c,d=a.indentUnit,f=l.statementIndentUnit||d,p=l.dontAlignCalls,h=l.keywords||{},m=l.types||{},g=l.builtin||{},v=l.blockKeywords||{},y=l.defKeywords||{},b=l.atoms||{},_=l.hooks||{},w=l.multiLineStrings,x=!1!==l.indentStatements,k=!1!==l.indentSwitch,E=l.namespaceSeparator,S=l.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,O=l.numberStart||/[\d\.]/,T=l.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,C=l.isOperatorChar||/[+\-*&%=<>!?|\/]/,A=l.isIdentifierChar||/[\w\$_\xa1-\uffff]/,P=l.isReservedIdentifier||!1;function R(e,t){var n,r=e.next();if(_[r]){var i=_[r](e,t);if(!1!==i)return i}if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!w)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(S.test(r))return u=r,null;if(O.test(r)){if(e.backUp(1),e.match(T))return"number";e.next()}if("/"==r){if(e.eat("*"))return t.tokenize=M,M(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(C.test(r)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(C););return"operator"}if(e.eatWhile(A),E)for(;e.match(E);)e.eatWhile(A);var o=e.current();return s(h,o)?(s(v,o)&&(u="newstatement"),s(y,o)&&(c=!0),"keyword"):s(m,o)?"type":s(g,o)||P&&P(o)?(s(v,o)&&(u="newstatement"),"builtin"):s(b,o)?"atom":"variable"}function M(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function I(e,t){l.typeFirstDefinitions&&e.eol()&&o(t.context)&&(t.typeAtEndOfLine=i(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new t((e||0)-d,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var a=t.context;if(e.sol()&&(null==a.align&&(a.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return I(e,t),null;u=c=null;var s=(t.tokenize||R)(e,t);if("comment"==s||"meta"==s)return s;if(null==a.align&&(a.align=!0),";"==u||":"==u||","==u&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)r(t);else if("{"==u)n(t,e.column(),"}");else if("["==u)n(t,e.column(),"]");else if("("==u)n(t,e.column(),")");else if("}"==u){for(;"statement"==a.type;)a=r(t);for("}"==a.type&&(a=r(t));"statement"==a.type;)a=r(t)}else u==a.type?r(t):x&&(("}"==a.type||"top"==a.type)&&";"!=u||"statement"==a.type&&"newstatement"==u)&&n(t,e.column(),"statement",e.current());if("variable"==s&&("def"==t.prevToken||l.typeFirstDefinitions&&i(e,t,e.start)&&o(t.context)&&e.match(/^\s*\(/,!1))&&(s="def"),_.token){var d=_.token(e,t,s);void 0!==d&&(s=d)}return"def"==s&&!1===l.styleDefs&&(s="variable"),t.startOfLine=!1,t.prevToken=c?"def":s||u,I(e,t),s},indent:function(t,n){if(t.tokenize!=R&&null!=t.tokenize||t.typeAtEndOfLine)return e.Pass;var r=t.context,i=n&&n.charAt(0),o=i==r.type;if("statement"==r.type&&"}"==i&&(r=r.prev),l.dontIndentStatements)for(;"statement"==r.type&&l.dontIndentStatements.test(r.info);)r=r.prev;if(_.indent){var a=_.indent(t,r,n,d);if("number"==typeof a)return a}var s=r.prev&&"switch"==r.prev.info;if(l.allmanIndentation&&/[{(]/.test(i)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==i?0:f):!r.align||p&&")"==r.type?")"!=r.type||o?r.indented+(o?0:d)+(o||!s||/^(?:case|default)\b/.test(n)?0:d):r.indented+f:r.column+(o?0:1)},electricInput:k?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var l="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",u="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",c="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",d="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",f=a("int long char short double float unsigned signed void bool"),p=a("SEL instancetype id Class Protocol BOOL");function h(e){return s(f,e)||/.+_t$/.test(e)}function m(e){return h(e)||s(p,e)}var g="case do else for if switch while struct enum union";function v(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){r=v;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,"meta"}function y(e,t){return"type"==t.prevToken&&"type"}function b(e){return!(!e||e.length<2||"_"!=e[0]||"_"!=e[1]&&e[1]===e[1].toLowerCase())}function _(e){return e.eatWhile(/[\w\.']/),"number"}function w(e,t){if(e.backUp(1),e.match(/(R|u8R|uR|UR|LR)/)){var n=e.match(/"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=E,E(e,t))}return e.match(/(u8|u|U|L)/)?!!e.match(/["']/,!1)&&"string":(e.next(),!1)}function x(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function k(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function E(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function S(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.types),i(n.builtin),i(n.atoms),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}function O(e,t){for(var n=!1;!e.eol();){if(!n&&e.match('"""')){t.tokenize=null;break}n="\\"==e.next()&&!n}return"string"}function T(e){return function(t,n){for(var r;r=t.next();){if("*"==r&&t.eat("/")){if(1==e){n.tokenize=null;break}return n.tokenize=T(e-1),n.tokenize(t,n)}if("/"==r&&t.eat("*"))return n.tokenize=T(e+1),n.tokenize(t,n)}return"comment"}}S(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:a(l),types:h,blockKeywords:a(g),defKeywords:a("struct enum union"),typeFirstDefinitions:!0,atoms:a("NULL true false"),isReservedIdentifier:b,hooks:{"#":v,"*":y},modeProps:{fold:["brace","include"]}}),S(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:a(l+" "+u),types:h,blockKeywords:a(g+" class try catch"),defKeywords:a("struct enum union class namespace"),typeFirstDefinitions:!0,atoms:a("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:b,hooks:{"#":v,"*":y,u:w,U:w,L:w,R:w,0:_,1:_,2:_,3:_,4:_,5:_,6:_,7:_,8:_,9:_,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&x(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),S("text/x-java",{name:"clike",keywords:a("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:a("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:a("catch class do else finally for if switch try while"),defKeywords:a("class interface enum @interface"),typeFirstDefinitions:!0,atoms:a("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")}},modeProps:{fold:["brace","import"]}}),S("text/x-csharp",{name:"clike",keywords:a("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:a("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:a("catch class do else finally for foreach if struct switch try while"),defKeywords:a("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=k,k(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}}),S("text/x-scala",{name:"clike",keywords:a("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:a("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:a("catch class enum do else finally for forSome if match switch try while"),defKeywords:a("class enum def object package trait type val var"),atoms:a("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=O,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,n){var r=n.context;return!("}"!=r.type||!r.align||!e.eat(">"))&&(n.context=new t(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=T(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),S("text/x-kotlin",{name:"clike",keywords:a("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){var n;return t.tokenize=(n=e.match('""'),function(e,t){for(var r,i=!1,o=!1;!e.eol();){if(!n&&!i&&e.match('"')){o=!0;break}if(n&&e.match('"""')){o=!0;break}r=e.next(),!i&&"$"==r&&e.match("{")&&e.skipTo("}"),i=!i&&"\\"==r&&!n}return!o&&n||(t.tokenize=null),"string"}),t.tokenize(e,t)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=T(1),t.tokenize(e,t))},indent:function(e,t,n,r){var i=n&&n.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=n?"operator"==e.prevToken&&"}"!=n&&"}"!=e.context.type||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*r+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(n||"").charAt(0)?0:r):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),S(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:a("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":v},modeProps:{fold:["brace","include"]}}),S("text/x-nesc",{name:"clike",keywords:a(l+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:h,blockKeywords:a(g),atoms:a("null true false"),hooks:{"#":v},modeProps:{fold:["brace","include"]}}),S("text/x-objectivec",{name:"clike",keywords:a(l+" "+c),types:m,builtin:a(d),blockKeywords:a(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a("struct enum union @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:b,hooks:{"#":v,"*":y},modeProps:{fold:["brace","include"]}}),S("text/x-objectivec++",{name:"clike",keywords:a(l+" "+c+" "+u),types:m,builtin:a(d),blockKeywords:a(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:a("struct enum union @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:b,hooks:{"#":v,"*":y,u:w,U:w,L:w,R:w,0:_,1:_,2:_,3:_,4:_,5:_,6:_,7:_,8:_,9:_,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&x(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),S("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:h,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":v},modeProps:{fold:["brace","include"]}});var C=null;S("text/x-ceylon",{name:"clike",keywords:a("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=function e(t){return function(n,r){for(var i,o=!1,a=!1;!n.eol();){if(!o&&n.match('"')&&("single"==t||n.match('""'))){a=!0;break}if(!o&&n.match("``")){C=e(t),a=!0;break}i=n.next(),o="single"==t&&!o&&"\\"==i}return a&&(r.tokenize=null),"string"}}(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!C||!e.match("`"))&&(t.tokenize=C,C=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("ruby",(function(t){function n(e){for(var t={},n=0,r=e.length;n<r;++n)t[e[n]]=!0;return t}var r,i=n(["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"]),o=n(["def","class","case","for","while","until","module","then","catch","loop","proc","begin"]),a=n(["end","until"]),s={"[":"]","{":"}","(":")"},l={"]":"[","}":"{",")":"("};function u(e,t,n){return n.tokenize.push(e),e(t,n)}function c(e,t){if(e.sol()&&e.match("=begin")&&e.eol())return t.tokenize.push(h),"comment";if(e.eatSpace())return null;var n,i,o,a=e.next();if("`"==a||"'"==a||'"'==a)return u(p(a,"string",'"'==a||"`"==a),e,t);if("/"==a)return function(e){for(var t,n=e.pos,r=0,i=!1,o=!1;null!=(t=e.next());)if(o)o=!1;else{if("[{(".indexOf(t)>-1)r++;else if("]})".indexOf(t)>-1){if(--r<0)break}else if("/"==t&&0==r){i=!0;break}o="\\"==t}return e.backUp(e.pos-n),i}(e)?u(p(a,"string-2",!0),e,t):"operator";if("%"==a){var l="string",c=!0;e.eat("s")?l="atom":e.eat(/[WQ]/)?l="string":e.eat(/[r]/)?l="string-2":e.eat(/[wxq]/)&&(l="string",c=!1);var d=e.eat(/[^\w\s=]/);return d?(s.propertyIsEnumerable(d)&&(d=s[d]),u(p(d,l,c,!0),e,t)):"operator"}if("#"==a)return e.skipToEnd(),"comment";if("<"==a&&(n=e.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return u((i=n[2],o=n[1],function(e,t){return o&&e.eatSpace(),e.match(i)?t.tokenize.pop():e.skipToEnd(),"string"}),e,t);if("0"==a)return e.eat("x")?e.eatWhile(/[\da-fA-F]/):e.eat("b")?e.eatWhile(/[01]/):e.eatWhile(/[0-7]/),"number";if(/\d/.test(a))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if("?"==a){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}if(":"==a)return e.eat("'")?u(p("'","atom",!1),e,t):e.eat('"')?u(p('"',"atom",!0),e,t):e.eat(/[\<\>]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if("@"==a&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if("$"==a)return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(a))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if("|"!=a||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(a))return r=a,null;if("-"==a&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(a)){var f=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."!=a||f||(r="."),"operator"}return null}return r="|",null}function d(e){return e||(e=1),function(t,n){if("}"==t.peek()){if(1==e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);n.tokenize[n.tokenize.length-1]=d(e-1)}else"{"==t.peek()&&(n.tokenize[n.tokenize.length-1]=d(e+1));return c(t,n)}}function f(){var e=!1;return function(t,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)):(e=!0,c(t,n))}}function p(e,t,n,r){return function(i,o){var a,s=!1;for("read-quoted-paused"===o.context.type&&(o.context=o.context.prev,i.eat("}"));null!=(a=i.next());){if(a==e&&(r||!s)){o.tokenize.pop();break}if(n&&"#"==a&&!s){if(i.eat("{")){"}"==e&&(o.context={prev:o.context,type:"read-quoted-paused"}),o.tokenize.push(d());break}if(/[@\$]/.test(i.peek())){o.tokenize.push(f());break}}s=!s&&"\\"==a}return t}}function h(e,t){return e.sol()&&e.match("=end")&&e.eol()&&t.tokenize.pop(),e.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[c],indented:0,context:{type:"top",indented:-t.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,t){r=null,e.sol()&&(t.indented=e.indentation());var n,s=t.tokenize[t.tokenize.length-1](e,t),l=r;if("ident"==s){var u=e.current();"keyword"==(s="."==t.lastTok?"property":i.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(u)?"tag":"def"==t.lastTok||"class"==t.lastTok||t.varList?"def":"variable")&&(l=u,o.propertyIsEnumerable(u)?n="indent":a.propertyIsEnumerable(u)?n="dedent":"if"!=u&&"unless"!=u||e.column()!=e.indentation()?"do"==u&&t.context.indented<t.indented&&(n="indent"):n="indent")}return(r||s&&"comment"!=s)&&(t.lastTok=l),"|"==r&&(t.varList=!t.varList),"indent"==n||/[\(\[\{]/.test(r)?t.context={prev:t.context,type:r||s,indented:t.indented}:("dedent"==n||/[\)\]\}]/.test(r))&&t.context.prev&&(t.context=t.context.prev),e.eol()&&(t.continuedLine="\\"==r||"operator"==s),s},indent:function(n,r){if(n.tokenize[n.tokenize.length-1]!=c)return e.Pass;var i=r&&r.charAt(0),o=n.context,a=o.type==l[i]||"keyword"==o.type&&/^(?:end|until|else|elsif|when|rescue)\b/.test(r);return o.indented+(a?0:t.indentUnit)+(n.continuedLine?t.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-ruby","ruby")}(n(5))},function(e,t,n){!function(e){"use strict";e.multiplexingMode=function(t){var n=Array.prototype.slice.call(arguments,1);function r(e,t,n,r){if("string"==typeof t){var i=e.indexOf(t,n);return r&&i>-1?i+t.length:i}var o=t.exec(n?e.slice(n):e);return o?o.index+n+(r?o[0].length:0):-1}return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null}},copyState:function(n){return{outer:e.copyState(t,n.outer),innerActive:n.innerActive,inner:n.innerActive&&e.copyState(n.innerActive.mode,n.inner)}},token:function(i,o){if(o.innerActive){var a=o.innerActive;if(u=i.string,!a.close&&i.sol())return o.innerActive=o.inner=null,this.token(i,o);if((d=a.close?r(u,a.close,i.pos,a.parseDelimiters):-1)==i.pos&&!a.parseDelimiters)return i.match(a.close),o.innerActive=o.inner=null,a.delimStyle&&a.delimStyle+" "+a.delimStyle+"-close";d>-1&&(i.string=u.slice(0,d));var s=a.mode.token(i,o.inner);return d>-1&&(i.string=u),d==i.pos&&a.parseDelimiters&&(o.innerActive=o.inner=null),a.innerStyle&&(s=s?s+" "+a.innerStyle:a.innerStyle),s}for(var l=1/0,u=i.string,c=0;c<n.length;++c){var d,f=n[c];if((d=r(u,f.open,i.pos))==i.pos){f.parseDelimiters||i.match(f.open),o.innerActive=f;var p=0;if(t.indent){var h=t.indent(o.outer,"","");h!==e.Pass&&(p=h)}return o.inner=e.startState(f.mode,p),f.delimStyle&&f.delimStyle+" "+f.delimStyle+"-open"}-1!=d&&d<l&&(l=d)}l!=1/0&&(i.string=u.slice(0,l));var m=t.token(i,o.outer);return l!=1/0&&(i.string=u),m},indent:function(n,r,i){var o=n.innerActive?n.innerActive.mode:t;return o.indent?o.indent(n.innerActive?n.inner:n.outer,r,i):e.Pass},blankLine:function(r){var i=r.innerActive?r.innerActive.mode:t;if(i.blankLine&&i.blankLine(r.innerActive?r.inner:r.outer),r.innerActive)"\n"===r.innerActive.close&&(r.innerActive=r.inner=null);else for(var o=0;o<n.length;++o){var a=n[o];"\n"===a.open&&(r.innerActive=a,r.inner=e.startState(a.mode,i.indent?i.indent(r.outer,"",""):0))}},electricChars:t.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:t}}}}}(n(5))},function(e,t,n){"use strict";n.r(t),n.d(t,"LOCATION_CHANGE",(function(){return u})),n.d(t,"CALL_HISTORY_METHOD",(function(){return d})),n.d(t,"onLocationChanged",(function(){return c})),n.d(t,"push",(function(){return p})),n.d(t,"replace",(function(){return h})),n.d(t,"go",(function(){return m})),n.d(t,"goBack",(function(){return g})),n.d(t,"goForward",(function(){return v})),n.d(t,"routerActions",(function(){return y})),n.d(t,"routerMiddleware",(function(){return N})),n.d(t,"ConnectedRouter",(function(){return F})),n.d(t,"connectRouter",(function(){return B})),n.d(t,"getLocation",(function(){return U})),n.d(t,"getAction",(function(){return q})),n.d(t,"getHash",(function(){return H})),n.d(t,"getSearch",(function(){return W})),n.d(t,"createMatchSelector",(function(){return V}));var r=n(1),i=n.n(r),o=n(2),a=n.n(o),s=n(61),l=n(46),u="@@router/LOCATION_CHANGE",c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:u,payload:{location:e,action:t,isFirstRendering:n}}},d="@@router/CALL_HISTORY_METHOD",f=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return{type:d,payload:{method:e,args:n}}}},p=f("push"),h=f("replace"),m=f("go"),g=f("goBack"),v=f("goForward"),y={push:p,replace:h,go:m,goBack:g,goForward:v};function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var _=function(e){var t=e.getIn,n=e.toJS,r=function(e){var r=n(t(e,["router"]));if(!function(e){return null!=e&&"object"===b(e)&&t(e,["location"])&&t(e,["action"])}(r))throw'Could not find router reducer in state tree, it must be mounted under "router"';return r},i=function(e){return n(t(r(e),["location"]))};return{getLocation:i,getAction:function(e){return n(t(r(e),["action"]))},getRouter:r,getSearch:function(e){return n(t(r(e),["location","search"]))},getHash:function(e){return n(t(r(e),["location","hash"]))},createMatchSelector:function(e){var t=null,n=null;return function(r){var o=(i(r)||{}).pathname;if(o===t)return n;t=o;var a=Object(l.j)(o,e);return a&&n&&a.url===n.url&&a.isExact===n.isExact||(n=a),n}}}};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 x(){return(x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return!t||"object"!==w(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 S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}var R=function(e){if(e&&e.query)return e;var t=e&&e.search;if("string"!=typeof t||0===t.length)return A({},e,{query:{}});var n=t.substring(1).split("&").reduce((function(e,t){var n=T(t.split("="),2);return A({},e,P({},n[0],n[1]))}),{});return A({},e,{query:n})},M=function(e){var t=e.fromJS,n=e.merge;return function(e){var r=t({location:R(e.location),action:e.action});return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.type,a=i.payload;if(o===u){var s=a.location,l=a.action,c=a.isFirstRendering;return c?e:n(e,{location:t(R(s)),action:l})}return e}}};function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D={fromJS:function(e){return e},getIn:function(e,t){if(!e)return e;var n=t.length;if(n){for(var r=e,i=0;i<n&&r;++i)r=r[t[i]];return r}},merge:function(e,t){return function(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){j(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}({},e,{},t)},toJS:function(e){return e}};function L(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var N=function(e){return function(t){return function(t){return function(n){if(n.type!==d)return t(n);var r=n.payload,i=r.method,o=r.args;e[i].apply(e,L(o))}}}},F=function(e){var t=_(e).getLocation,n=function(e){function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r=E(this,S(n).call(this,e));var i=e.store,o=e.history,a=e.onLocationChanged;r.inTimeTravelling=!1,r.unsubscribe=i.subscribe((function(){var n=t(i.getState()),a=n.pathname,s=n.search,l=n.hash,u=n.state,c=o.location,d=c.pathname,f=c.search,p=c.hash,h=c.state;"PUSH"!==e.history.action||d===a&&f===s&&p===l&&u===h||(r.inTimeTravelling=!0,o.push({pathname:a,search:s,hash:l,state:u}))}));var s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r.inTimeTravelling?r.inTimeTravelling=!1:a(e,t,n)};return r.unlisten=o.listen(s),e.noInitialPop||s(o.location,o.action,!0),r}var r,o,a;return 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&&O(e,t)}(n,e),r=n,(o=[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var e=this.props,t=e.history,n=e.children;return i.a.createElement(l.e,{history:t},n)}}])&&k(r.prototype,o),a&&k(r,a),n}(r.PureComponent);n.propTypes={store:a.a.shape({getState:a.a.func.isRequired,subscribe:a.a.func.isRequired}).isRequired,history:a.a.shape({action:a.a.string.isRequired,listen:a.a.func.isRequired,location:a.a.object.isRequired,push:a.a.func.isRequired}).isRequired,basename:a.a.string,children:a.a.oneOfType([a.a.func,a.a.node]),onLocationChanged:a.a.func.isRequired,noInitialPop:a.a.bool};var o=function(e){var t=e.context||s.ReactReduxContext;if(null==t)throw"Please upgrade to react-redux v6";return i.a.createElement(t.Consumer,null,(function(t){var r=t.store;return i.a.createElement(n,x({store:r},e))}))};return o.propTypes={context:a.a.object},Object(s.connect)(null,(function(e){return{onLocationChanged:function(t,n,r){return e(c(t,n,r))}}}))(o)}(D),B=M(D),z=_(D),U=z.getLocation,q=z.getAction,H=z.getHash,W=z.getSearch,V=z.createMatchSelector},function(e,t,n){"use strict";n.r(t),n.d(t,"Editor",(function(){return pn})),n.d(t,"cloneFragment",(function(){return Bt})),n.d(t,"findDOMNode",(function(){return hn})),n.d(t,"findDOMPoint",(function(){return mn})),n.d(t,"findDOMRange",(function(){return gn})),n.d(t,"findNode",(function(){return vn})),n.d(t,"findPath",(function(){return yn})),n.d(t,"findPoint",(function(){return bn})),n.d(t,"findRange",(function(){return wn})),n.d(t,"getEventRange",(function(){return xn})),n.d(t,"getEventTransfer",(function(){return $t})),n.d(t,"setEventTransfer",(function(){return Yt})),n.d(t,"ReactPlugin",(function(){return dn}));var r=n(1),i=n.n(r),o=n(2),a=n.n(o),s=n(23);function l(e,t){function n(n,r,i,o,a){var s=r[i];return null!=s||n?null==s&&n?new Error("The "+a+" `"+i+"` is marked as required in `"+o+"`, but it was not supplied."):t(s)?null:new Error("Invalid "+a+" `"+i+"` supplied to `"+o+"`, expected a Slate `"+e+"` but received: "+s):null}function r(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(void 0,[!1].concat(t))}return r.isRequired=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(void 0,[!0].concat(t))},r}var u={block:l("Block",(function(e){return s.Block.isBlock(e)})),blocks:l("List<Block>",(function(e){return s.Block.isBlockList(e)})),change:l("Change",(function(e){return s.Change.isChange(e)})),data:l("Data",(function(e){return s.Data.isData(e)})),document:l("Document",(function(e){return s.Document.isDocument(e)})),inline:l("Inline",(function(e){return s.Inline.isInline(e)})),inlines:l("Inline",(function(e){return s.Inline.isInlineList(e)})),leaf:l("Leaf",(function(e){return s.Leaf.isLeaf(e)})),leaves:l("List<Leaf>",(function(e){return s.Leaf.isLeafList(e)})),mark:l("Mark",(function(e){return s.Mark.isMark(e)})),marks:l("Set<Mark>",(function(e){return s.Mark.isMarkSet(e)})),node:l("Node",(function(e){return s.Node.isNode(e)})),nodes:l("List<Node>",(function(e){return s.Node.isNodeList(e)})),range:l("Range",(function(e){return s.Range.isRange(e)})),ranges:l("List<Range>",(function(e){return s.Range.isRangeList(e)})),selection:l("Selection",(function(e){return s.Selection.isSelection(e)})),value:l("Value",(function(e){return s.Value.isValue(e)})),text:l("Text",(function(e){return s.Text.isText(e)})),texts:l("List<Text>",(function(e){return s.Text.isTextList(e)}))},c=n(24),d=n.n(c),f=n(81),p=n.n(f),h=function(e,t){0},m=n(45),g=n.n(m),v=n(672),y=n.n(v),b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_="object"===("undefined"==typeof window?"undefined":b(window))&&"object"===("undefined"==typeof document?"undefined":b(document))&&9===document.nodeType,w=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},x=void 0;if(_){var k=!0,E=!1,S=void 0;try{for(var O,T=[["edge",/Edge\/([0-9\._]+)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)$/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+)\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["android",/Android\s([0-9\.]+)/],["safari",/Version\/([0-9\._]+).*Safari/]][Symbol.iterator]();!(k=(O=T.next()).done);k=!0){var C=O.value,A=w(C,2),P=A[0];if(A[1].test(window.navigator.userAgent)){x=P;break}}}catch(e){E=!0,S=e}finally{try{!k&&T.return&&T.return()}finally{if(E)throw S}}}var R=void 0;if(_){var M=!0,I=!1,j=void 0;try{for(var D,L=[["ios",/os ([\.\_\d]+) like mac os/i],["macos",/mac os x/i],["android",/android/i],["firefoxos",/mozilla\/[a-z\.\_\d]+ \((?:mobile)|(?:tablet)/i],["windows",/windows\s*(?:nt)?\s*([\.\_\d]+)/i]][Symbol.iterator]();!(M=(D=L.next()).done);M=!0){var N=D.value,F=w(N,2),B=F[0];if(F[1].test(window.navigator.userAgent)){R=B;break}}}catch(e){I=!0,j=e}finally{try{!M&&L.return&&L.return()}finally{if(I)throw j}}}var z=[];if(_){var U=!0,q=!1,H=void 0;try{for(var W,V=[["inputeventslevel1",function(e){return"inputType"in(e.InputEvent?new e.InputEvent("input"):{})}],["inputeventslevel2",function(e){var t=e.document.createElement("div");return t.contentEditable=!0,"onbeforeinput"in t}]][Symbol.iterator]();!(U=(W=V.next()).done);U=!0){var $=W.value,G=w($,2),K=G[0];(0,G[1])(window)&&z.push(K)}}catch(e){q=!0,H=e}finally{try{!U&&V.return&&V.return()}finally{if(q)throw H}}}var Y=[[/^9([.]0|)/,28],[/^8[.]1/,27],[/^8([.]0|)/,26],[/^7[.]1/,25],[/^7([.]0|)/,24],[/^6([.]0|)/,23],[/^5[.]1/,22],[/^5([.]0|)/,21],[/^4[.]4/,20]];var Q="firefox"===x,X="safari"===x,J="ie"===x,Z="edge"===x,ee="android"===R,te="ios"===R,ne="macos"===R,re=function(){if("android"!==R)return null;var e=window.navigator.userAgent.match(/Android\s([0-9\.]+)/);if(null==e)return null;var t=e[1],n=!0,r=!1,i=void 0;try{for(var o,a=Y[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,l=w(s,2),u=l[0],c=l[1];if(t.match(u))return c}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return null}(),ie=(z.includes("inputeventslevel1"),z.includes("inputeventslevel2")||ee&&(28===re||null===re)),oe=n(407),ae=n.n(oe),se=n(144),le=n.n(se),ue=n(4),ce=n(309),de={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z"},fe={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},pe={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:"ctrl+y"},he={},me=te||ne,ge=!me;[].concat(Object.keys(de)).concat(Object.keys(fe)).concat(Object.keys(pe)).forEach((function(e){var t="is"+e[0].toUpperCase()+e.slice(1);if(!he[t]){var n=de[e],r=fe[e],i=pe[e],o=n&&Object(ce.isKeyHotkey)(n),a=r&&Object(ce.isKeyHotkey)(r),s=i&&Object(ce.isKeyHotkey)(i);he[t]=function(e){return!(!o||!o(e))||(!!(me&&a&&a(e))||!!(ge&&s&&s(e)))}}}));var ve=he,ye=n(49),be=n.n(ye),_e=n(205),we=n(293),xe=n(33),ke=function(e,t){if(!e)throw new Error("Invariant failed: "+(t||""))},Ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Se=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Oe=function(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)},Te=0;var Ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Te++,n=e.placeholder,r=e.when,o=e.style,a=void 0===o?{}:o;function s(e,n,i){if(!n.query(r,e))return i();var o=i(),a=e.texts(),s=Se(a,1)[0],l=e.texts({direction:"backward"}),u=Se(l,1)[0],c=Se(s,2),d=c[0],f=c[1],p=Se(u,2),h=p[0],m=p[1],g={type:"placeholder",data:{key:t},anchor:{key:d.key,offset:0,path:f},focus:{key:h.key,offset:h.text.length,path:m}};return[].concat(Oe(o),[g])}function l(e,r,o){var s=e.children,l=e.decoration;if("placeholder"===l.type&&l.data.get("key")===t){var u=Ee({pointerEvents:"none",display:"inline-block",width:"0",maxWidth:"100%",whiteSpace:"nowrap",opacity:"0.333",verticalAlign:"text-top"},a);return i.a.createElement("span",null,i.a.createElement("span",{contentEditable:!1,style:u},n),s)}return o()}return ke("string"==typeof n,"You must pass `SlateReactPlaceholder` an `options.placeholder` string."),ke("string"==typeof r||"function"==typeof r,"You must pass `SlateReactPlaceholder` an `options.when` query."),{decorateNode:s,renderDecoration:l}},Ae=function(e,t){return e===t};var Pe=function(e,t){var n;void 0===t&&(t=Ae);var r,i=[],o=!1,a=function(e,n){return t(e,i[n],n)};return function(){for(var t=arguments.length,s=new Array(t),l=0;l<t;l++)s[l]=arguments[l];return o&&n===this&&s.length===i.length&&s.every(a)||(r=e.apply(this,s),o=!0,n=this,i=s),r}},Re=["onBeforeInput","onBlur","onClick","onContextMenu","onCompositionEnd","onCompositionStart","onCopy","onCut","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onInput","onFocus","onKeyDown","onKeyUp","onMouseDown","onMouseUp","onPaste","onSelect"],Me="data-slate-editor",Ie="data-slate-fragment",je="data-key",De="data-slate-leaf",Le="data-slate-length",Ne="data-slate-object",Fe="data-offset-key",Be="data-slate-spacer",ze="data-slate-string",Ue="data-slate-void",qe="data-slate-zero-width",He={BLOCK:"["+Ne+'="block"]',EDITOR:"["+Me+"]",INLINE:"["+Ne+'="inline"]',KEY:"["+je+"]",LEAF:"["+De+"]",OBJECT:"["+Ne+"]",STRING:"["+ze+"]",TEXT:"["+Ne+'="text"]',VOID:"["+Ue+"]",ZERO_WIDTH:"["+qe+"]"},We=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ve=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),$e=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ke=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)},Ye=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},Qe=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Xe=function(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)},Je=/^([\w-]+)(?::(\d+))?$/;var Ze={parse:function(e){var t=Je.exec(e);if(!t)throw new Error('Invalid offset key string "'+e+'".');var n=Qe(t,3),r=(n[0],n[1]),i=n[2];return{key:r,index:parseInt(i,10)}},stringify:function(e){return e.key+":"+e.index}},et=function(e){var t=e.text,n=void 0===t?"":t,r=e.isTrailing,o=void 0!==r&&r;return i.a.createElement("span",$e({},ze,!0),n,o?"\n":null)},tt=function(e){var t,n=e.length,r=void 0===n?0:n,o=e.isLineBreak,a=void 0!==o&&o;return i.a.createElement("span",($e(t={},qe,a?"n":"z"),$e(t,Le,r),t),"\ufeff",a?i.a.createElement("br",null):null)},nt=function(e){var t,n=e.marks,r=e.annotations,o=e.decorations,a=e.node,s=e.index,l=e.offset,u=e.text,c=e.editor,d=e.parent,f=e.block,p=e.leaves,h=Ze.stringify({key:a.key,index:s}),m=void 0;if(c.query("isVoid",d))m=i.a.createElement(tt,{length:d.text.length});else if(""===u&&"block"===d.object&&""===d.text&&d.nodes.last()===a)m=i.a.createElement(tt,{isLineBreak:!0});else if(""===u)m=i.a.createElement(tt,null);else{var g=f.getLastText(),v=u.charAt(u.length-1),y=a===g,b=s===p.size-1;m=y&&b&&"\n"===v?i.a.createElement(et,{isTrailing:!0,text:u}):i.a.createElement(et,{text:u})}var _={editor:c,marks:n,annotations:r,decorations:o,node:a,offset:l,text:u},w=!0,x=!1,k=void 0;try{for(var E,S=n[Symbol.iterator]();!(w=(E=S.next()).done);w=!0){var O=E.value;(F=c.run("renderMark",Ge({},_,{mark:O,children:m,attributes:$e({},Ne,"mark")})))&&(m=F)}}catch(e){x=!0,k=e}finally{try{!w&&S.return&&S.return()}finally{if(x)throw k}}var T=!0,C=!1,A=void 0;try{for(var P,R=o[Symbol.iterator]();!(T=(P=R.next()).done);T=!0){var M=P.value;(F=c.run("renderDecoration",Ge({},_,{decoration:M,children:m,attributes:$e({},Ne,"decoration")})))&&(m=F)}}catch(e){C=!0,A=e}finally{try{!T&&R.return&&R.return()}finally{if(C)throw A}}var I=!0,j=!1,D=void 0;try{for(var L,N=r[Symbol.iterator]();!(I=(L=N.next()).done);I=!0){var F,B=L.value;(F=c.run("renderAnnotation",Ge({},_,{annotation:B,children:m,attributes:$e({},Ne,"annotation")})))&&(m=F)}}catch(e){j=!0,D=e}finally{try{!I&&N.return&&N.return()}finally{if(j)throw D}}var z=($e(t={},De,!0),$e(t,Fe,h),t);return i.a.createElement("span",z,m)};nt.propTypes={annotations:d.a.list.isRequired,block:u.block.isRequired,decorations:d.a.list.isRequired,editor:a.a.object.isRequired,index:a.a.number.isRequired,leaves:a.a.object.isRequired,marks:u.marks.isRequired,node:u.node.isRequired,offset:a.a.number.isRequired,parent:u.node.isRequired,text:a.a.string.isRequired};var rt=i.a.memo(nt,(function(e,t){return t.block===e.block&&t.index===e.index&&t.marks===e.marks&&t.parent===e.parent&&t.text===e.text&&t.annotations.equals(e.annotations)&&t.decorations.equals(e.decorations)})),it=i.a.forwardRef((function(e,t){var n,r=e.annotations,o=e.block,a=e.decorations,s=e.node,l=e.parent,u=e.editor,c=e.style,d=s.key,f=s.getLeaves(r,a),p=0;return i.a.createElement("span",Ge({ref:t,style:c},($e(n={},Ne,s.object),$e(n,je,d),n)),f.map((function(e,t){var n=e.text,r=p;return p+=n.length,i.a.createElement(rt,{key:s.key+"-"+t,block:o,editor:u,index:t,annotations:e.annotations,decorations:e.decorations,marks:e.marks,node:s,offset:r,parent:l,leaves:f,text:n})})))}));it.propTypes={annotations:d.a.map.isRequired,block:u.block,decorations:d.a.list.isRequired,editor:a.a.object.isRequired,node:u.node.isRequired,parent:u.node.isRequired,style:a.a.object};var ot=i.a.memo(it,(function(e,t){return t.node===e.node&&"block"===t.parent.object&&e.parent.nodes.last()===e.node&&t.parent.nodes.last()!==t.node&&t.annotations.equals(e.annotations)&&t.decorations.equals(e.decorations)})),at=p()("slate:void"),st=function(e){function t(){var e,n,r;We(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Ye(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),lt.call(r),Ye(r,n)}return Ke(t,e),Ve(t,[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.node,o=t.readOnly,a="block"===r.object?"div":"span",s=$e({},Be,!0),l=i.a.createElement(a,Ge({style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},s),this.renderText()),u=i.a.createElement(a,{contentEditable:!!o&&null},n);this.debug("render",{props:t});var c=($e(e={},Ue,!0),$e(e,je,r.key),e);return i.a.createElement(a,Ge({contentEditable:!(!o&&"block"!==r.object)&&null},c),o?null:l,u)}}]),t}(i.a.Component);st.propTypes={block:u.block,children:a.a.any.isRequired,editor:a.a.object.isRequired,node:u.node.isRequired,parent:u.node.isRequired,readOnly:a.a.bool.isRequired};var lt=function(){var e=this;this.debug=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=e.props.node,a=o.key,s=o.type,l=a+" ("+s+")";at.apply(void 0,[t,""+l].concat(r))},this.renderText=function(){var t=e.props,n=t.annotations,r=t.block,o=t.decorations,a=t.node,s=t.readOnly,l=t.editor,u=t.textRef,c=a.getFirstText();return i.a.createElement(ot,{ref:u,annotations:n,block:"block"===a.object?a:r,decorations:o,editor:l,key:c.key,node:c,parent:a,readOnly:s})}},ut=p()("slate:node"),ct=function(e){function t(){var e,n,r;We(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Ye(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),dt.call(r),Ye(r,n)}return Ke(t,e),Ve(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.editor.run("shouldNodeComponentUpdate",t,e),r=e,i=t;if(null!=n){if(h(!1,'As of slate-react@0.22 the `shouldNodeComponentUpdate` middleware is deprecated. You can pass specific values down the tree using React\'s built-in "context" construct instead.'),n)return!0;h(!1!==n,"Returning false in `shouldNodeComponentUpdate` does not disable Slate's internal `shouldComponentUpdate` logic. If you want to prevent updates, use React's `shouldComponentUpdate` instead.")}return r.readOnly!==i.readOnly||(r.node!==i.node||(!!(!r.selection&&i.selection||r.selection&&!i.selection||r.selection&&i.selection&&!r.selection.equals(i.selection))||(!r.annotations.equals(i.annotations)||!r.decorations.equals(i.decorations))))}},{key:"render",value:function(){var e,n=this;this.debug("render",this);var r=this.props,o=r.annotations,a=r.block,s=r.decorations,l=r.editor,u=r.node,c=r.parent,d=r.readOnly,f=r.selection,p=u.getDecorations(l),h=u.nodes.toArray().map((function(e,r){var c="text"===e.object?ot:t,h=f&&ft(u,r,f),m=p.concat(s).map((function(e){return ft(u,r,e)})).filter((function(e){return e})),g=o.map((function(e){return ft(u,r,e)})).filter((function(e){return e}));return i.a.createElement(c,{block:"block"===u.object?u:a,editor:l,annotations:g,decorations:m,selection:h,key:e.key,node:e,parent:u,readOnly:d,ref:function(e){e?n.tmp.nodeRefs[r]=e:delete n.tmp.nodeRefs[r]}})})),m=($e(e={},Ne,u.object),$e(e,je,u.key),$e(e,"ref",this.ref),e);u.isLeafBlock()&&("rtl"===u.getTextDirection()&&(m.dir="rtl"));var g=void 0;"block"===u.object?g="renderBlock":"document"===u.object?g="renderDocument":"inline"===u.object&&(g="renderInline");var v=l.run(g,{attributes:m,children:h,editor:l,isFocused:!!f&&f.isFocused,isSelected:!!f,node:u,parent:c,readOnly:d});return l.isVoid(u)?i.a.createElement(st,Ge({},this.props,{textRef:function(e){e?n.tmp.nodeRefs[0]=e:delete n.tmp.nodeRefs[0]}}),v):v}}]),t}(i.a.Component);ct.propTypes={annotations:d.a.map.isRequired,block:u.block,decorations:d.a.list.isRequired,editor:a.a.object.isRequired,node:u.node.isRequired,parent:u.node,readOnly:a.a.bool.isRequired,selection:u.selection};var dt=function(){var e=this;this.tmp={nodeRefs:{}},this.ref=i.a.createRef(),this.debug=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=e.props.node,a=o.key,s=o.type;ut.apply(void 0,[t,a+" ("+s+")"].concat(r))}};function ft(e,t,n){if(n.isUnset)return null;var r=e.nodes.get(t),i=n,o=i.start,a=i.end,l=o.path,u=a.path,c=l.first(),d=u.first();if(c===t)o=o.setPath(l.rest());else if(c<t&&t<=d)if("text"===r.object)o=o.moveTo(s.PathUtils.create([t]),0).setKey(r.key);else{var f=r.texts(),p=Qe(f,1)[0],h=Qe(p,2),m=h[0],g=h[1];o=o.moveTo(g,0).setKey(m.key)}else o=null;if(d===t)a=a.setPath(u.rest());else if(c<=t&&t<d)if("text"===r.object){var v=r.text.length;a=a.moveTo(s.PathUtils.create([t]),v).setKey(r.key)}else{var y=r.texts({direction:"backward"}),b=Qe(y,1)[0],_=Qe(b,2),w=_[0],x=_[1];a=a.moveTo(x,w.text.length).setKey(w.key)}else a=null;return o&&a?n=(n=n.setAnchor(o)).setFocus(a):null}var pt=["auto","overlay","scroll"],ht=te&&!!window.navigator.userAgent.match(/os 11_/i);function mt(e){if(!ht&&e.anchorNode){var t=g()(e.anchorNode),n=function(e,t){for(var n=e.parentNode,r=void 0;!r&&n.parentNode;){var i=t.getComputedStyle(n).overflowY;if(pt.includes(i)){r=n;break}n=n.parentNode}return r||t.document.body}(e.anchorNode,t),r=n===t.document.body||n===t.document.documentElement,i=y()(e),o=e.getRangeAt(0).cloneRange();o.collapse(i);var a=o.getBoundingClientRect();X&&o.collapsed&&0===a.top&&0===a.height&&(0===o.startOffset?o.setEnd(o.endContainer,1):o.setStart(o.startContainer,o.startOffset-1),0===(a=o.getBoundingClientRect()).top&&0===a.height&&o.getClientRects().length&&(a=o.getClientRects()[0]));var s=void 0,l=void 0,u=void 0,c=void 0,d=0,f=0,p=0,h=0,m=0,v=0,b=0,_=0;if(r){s=t.innerWidth,l=t.innerHeight,u=t.pageYOffset,c=t.pageXOffset}else{var w=n.offsetWidth,x=n.offsetHeight,k=n.scrollTop,E=n.scrollLeft,S=t.getComputedStyle(n),O=S.borderTopWidth,T=S.borderBottomWidth,C=S.borderLeftWidth,A=S.borderRightWidth,P=S.paddingTop,R=S.paddingBottom,M=S.paddingLeft,I=S.paddingRight,j=n.getBoundingClientRect();s=w,l=x,d=j.top+parseInt(O,10),f=j.left+parseInt(C,10),p=parseInt(O,10)+parseInt(T,10),h=parseInt(C,10)+parseInt(A,10),m=parseInt(P,10),v=parseInt(R,10),b=parseInt(M,10),_=parseInt(I,10),u=k,c=E}var D=a.top+u-d,L=a.left+c-f,N=c,F=u;L<c?N=L-b:L+a.width+h>c+s&&(N=L+h+_-s),D<u?F=D-m:D+a.height+p>u+l&&(F=D+p+v+a.height-l),r?t.scrollTo(N,F):(n.scrollTop=F,n.scrollLeft=N)}}function gt(e){if(J){var t=window.document.body.createTextRange();t.collapse(),t.select()}else e.removeAllRanges()}var vt=/Permission denied to access property "nodeType"/,yt=p()("slate:content");yt.update=p()("slate:update");var bt=function(e){function t(){var e,n,r;We(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=r=Ye(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.tmp={isUpdatingSelection:!1,nodeRef:i.a.createRef(),nodeRefs:{},contentKey:0,nativeSelection:{}},r.ref=i.a.createRef(),r.setRef=function(e){r.ref.current=e,r.props.editor.el=e},r.handlers=Re.reduce((function(e,t){return e[t]=function(e){return r.onEvent(t,e)},e}),{}),r.updateSelection=function(){var e=r.props.editor,t=e.value.selection,n=t.isBackward,i=g()(r.ref.current),o=i.getSelection(),a=i.document.activeElement;if(yt.update.enabled&&yt.update("updateSelection",{selection:t.toJSON()}),o){var s=o.rangeCount,l=o.anchorNode,u=!1;t.isBlurred&&a===r.ref.current&&(r.ref.current.blur(),u=!0);var c=!0,d=!0,f=!1,p=void 0;try{for(var m,v=["anchorNode","anchorOffset","focusNode","focusOffset","isCollapsed","rangeCount","type"][Symbol.iterator]();!(d=(m=v.next()).done);d=!0){var y=m.value;r.tmp.nativeSelection[y]!==o[y]&&(c=!1)}}catch(e){f=!0,p=e}finally{try{!d&&v.return&&v.return()}finally{if(f)throw p}}if(t.isUnset&&s&&r.isInEditor(l)&&c&&(gt(o),u=!0),t.isFocused&&a!==r.ref.current&&(r.ref.current.focus({preventScroll:!0}),u=!0),t.isFocused&&t.isSet){var b=!!o.rangeCount&&o.getRangeAt(0),_=e.findDOMRange(t);if(!_)return void h(!1,"Unable to find a native DOM range from the current selection.");var w=_.startContainer,x=_.startOffset,k=_.endContainer,E=_.endOffset;if(b&&(w===b.startContainer&&x===b.startOffset&&k===b.endContainer&&E===b.endOffset||w===b.endContainer&&x===b.endOffset&&k===b.startContainer&&E===b.startOffset))return;u=!0,r.tmp.isUpdatingSelection=!0,gt(o),o.setBaseAndExtent?n?o.setBaseAndExtent(_.endContainer,_.endOffset,_.startContainer,_.startOffset):o.setBaseAndExtent(_.startContainer,_.startOffset,_.endContainer,_.endOffset):o.addRange(_),!0===e.userActionPerformed()&&mt(o),setTimeout((function(){Q&&r.ref.current&&r.ref.current.focus(),r.tmp.isUpdatingSelection=!1,yt.update("updateSelection:setTimeout",{anchorOffset:i.getSelection().anchorOffset})}))}u&&(yt.enabled||yt.update.enabled)&&(yt("updateSelection",{selection:t,native:o,activeElement:a}),yt.update("updateSelection:applied",{selection:t.toJSON(),native:{anchorOffset:o.anchorOffset,focusOffset:o.focusOffset}}))}},r.isInEditor=function(e){var t=void 0;try{if(8===e.nodeType)return!1;t=3===e.nodeType?e.parentNode:e}catch(e){if(Q&&vt.test(e.message))return!1;throw e}return t.isContentEditable&&(t===r.ref.current||t.closest(He.EDITOR)===r.ref.current)},r.onNativeSelectionChange=ae()((function(e){if(!r.props.readOnly){var t=g()(e.target),n=t.document.activeElement,i=t.getSelection();yt.update("onNativeSelectionChange",{anchorOffset:i.anchorOffset}),n===r.ref.current&&(r.tmp.nativeSelection={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset,isCollapsed:i.isCollapsed,rangeCount:i.rangeCount,type:i.type},r.props.onEvent("onSelect",e))}}),100),Ye(r,n)}return Ke(t,e),Ve(t,[{key:"componentDidCatch",value:function(e,t){yt("componentDidCatch",{error:e,info:t}),this.setState({})}},{key:"componentDidMount",value:function(){g()(this.ref.current).document.addEventListener("selectionchange",this.onNativeSelectionChange),ie&&this.ref.current.addEventListener("beforeinput",this.handlers.onBeforeInput),this.updateSelection(),this.props.onEvent("onComponentDidMount")}},{key:"componentWillUnmount",value:function(){var e=g()(this.ref.current);e&&e.document.removeEventListener("selectionchange",this.onNativeSelectionChange),ie&&this.ref.current.removeEventListener("beforeinput",this.handlers.onBeforeInput),this.props.onEvent("onComponentWillUnmount")}},{key:"componentDidUpdate",value:function(){yt.update("componentDidUpdate"),this.updateSelection(),this.props.editor.clearUserActionPerformed(),this.props.onEvent("onComponentDidUpdate")}},{key:"onEvent",value:function(e,t){yt("onEvent",e);var n=t.nativeEvent||t,r="keydown"===t.type&&(ve.isUndo(n)||ve.isRedo(n));if(!this.tmp.isUpdatingSelection&&!r||"onSelect"!==e&&"onBlur"!==e&&"onFocus"!==e){if(!ee&&"onSelect"===e){var i=this.props.editor,o=i.value.selection,a=g()(t.target).getSelection(),s=i.findRange(a);if(s&&s.equals(o.toRange()))return void this.updateSelection()}if("onDragEnd"===e||"onDragEnter"===e||"onDragExit"===e||"onDragLeave"===e||"onDragOver"===e||"onDragStart"===e||"onDrop"===e)if(t.target.closest(He.EDITOR)!==this.ref.current)return;("onBeforeInput"!==e&&"onBlur"!==e&&"onCompositionEnd"!==e&&"onCompositionStart"!==e&&"onCopy"!==e&&"onCut"!==e&&"onFocus"!==e&&"onInput"!==e&&"onKeyDown"!==e&&"onKeyUp"!==e&&"onPaste"!==e&&"onSelect"!==e||this.isInEditor(t.target))&&this.props.onEvent(e,t)}}},{key:"render",value:function(){var e,n=this.props,r=this.handlers,o=n.id,a=n.className,s=n.readOnly,l=n.editor,u=n.tabIndex,c=n.role,d=n.tagName,f=n.spellCheck,p=l.value,h=d,m=p.document,g=p.selection,v=Ge({outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},s?{}:{WebkitUserModify:"read-write-plaintext-only"},n.style);yt("render",{props:n}),yt.update("render",this.tmp.contentKey,m.text),this.props.onEvent("onRender");var y=($e(e={},Me,!0),$e(e,je,m.key),e),b=le()(this.props,Object.keys(t.propTypes));return i.a.createElement(h,Ge({},b,{key:this.tmp.contentKey},r,y,{ref:this.setRef,contentEditable:!s||null,suppressContentEditableWarning:!0,id:o,className:a,autoCorrect:n.autoCorrect?"on":"off",spellCheck:f,style:v,role:s?null:c||"textbox",tabIndex:u,"data-gramm":!!b["data-gramm"]&&void 0}),i.a.createElement(ct,{annotations:p.annotations,block:null,decorations:Object(ue.List)(),editor:l,node:m,parent:null,readOnly:s,selection:g,ref:this.tmp.nodeRef}))}}]),t}(i.a.Component);bt.propTypes={autoCorrect:a.a.bool.isRequired,className:a.a.string,contentKey:a.a.number,editor:a.a.object.isRequired,id:a.a.string,onEvent:a.a.func.isRequired,readOnly:a.a.bool.isRequired,role:a.a.string,spellCheck:a.a.bool.isRequired,style:a.a.object,tabIndex:a.a.number,tagName:a.a.string},bt.defaultProps={style:{},tagName:"div"};var _t=[].concat(Xe(Re),["commands","decorateNode","queries","renderAnnotation","renderBlock","renderDecoration","renderDocument","renderEditor","renderInline","renderMark","schema"]);function wt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=_t.reduce((function(t,n){return n in e&&(t[n]=e[n]),t}),{});return t}function xt(){return{decorateNode:function(){return[]},renderAnnotation:function(e){var t=e.attributes,n=e.children;return i.a.createElement("span",t,n)},renderBlock:function(e){var t=e.attributes,n=e.children;return i.a.createElement("div",Ge({},t,{style:{position:"relative"}}),n)},renderDecoration:function(e){var t=e.attributes,n=e.children;return i.a.createElement("span",t,n)},renderDocument:function(e){return e.children},renderEditor:function(e){return e.children},renderInline:function(e){var t=e.attributes,n=e.children;return i.a.createElement("span",Ge({},t,{style:{position:"relative"}}),n)},renderMark:function(e){var t=e.attributes,n=e.children;return i.a.createElement("span",t,n)}}}function kt(){return{queries:{findDOMNode:function(e,t){t=s.PathUtils.create(t);var n=e.tmp.contentRef.current;return n?t.size?function e(t,n){if(!t)return null;if(!n.size)return t.ref?t.ref.current||null:t||null;var r=n.first(),i=n.rest();return e(t.tmp.nodeRefs[r],i)}(n.tmp.nodeRef.current,t):n.ref.current||null:null},findDOMPoint:function(e,t){var n=e.findDOMNode(t.path),r=0;if(!n)return null;var i=Array.from(n.querySelectorAll(He.STRING+", "+He.ZERO_WIDTH)),o=!0,a=!1,s=void 0;try{for(var l,u=i[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var c=l.value,d=c.childNodes[0],f=d.textContent.length,p=f;c.hasAttribute(Le)&&(p=parseInt(c.getAttribute(Le),10));var h=r+p;if(t.offset<=h)return{node:d,offset:Math.min(f,Math.max(0,t.offset-r))};r=h}}catch(e){a=!0,s=e}finally{try{!o&&u.return&&u.return()}finally{if(a)throw s}}return null},findDOMRange:function(e,t){var n=t.anchor,r=t.focus,i=t.isBackward,o=t.isCollapsed,a=e.findDOMPoint(n),s=o?a:e.findDOMPoint(r);if(!a||!s)return null;var l=g()(a.node).document.createRange(),u=i?s:a,c=i?a:s;return l.setStart(u.node,u.offset),l.setEnd(c.node,c.offset),l},findEventRange:function(e,t){t.nativeEvent&&(t=t.nativeEvent);var n=t,r=n.clientX,i=n.clientY,o=n.target;if(null==r||null==i)return null;var a=e.value.document,s=e.findPath(t.target);if(!s)return null;var l=a.getNode(s);if(e.isVoid(l)){var u=o.getBoundingClientRect(),c="inline"===l.object?r-u.left<u.left+u.width-r:i-u.top<u.top+u.height-i,d=a.createRange(),f=c?"moveToEndOfNode":"moveToStartOfNode",p=a[c?"getPreviousText":"getNextText"](s);return p?d[f](p):null}var h=g()(o),m=void 0;if(h.document.caretRangeFromPoint)m=h.document.caretRangeFromPoint(r,i);else if(h.document.caretPositionFromPoint){var v=h.document.caretPositionFromPoint(r,i);(m=h.document.createRange()).setStart(v.offsetNode,v.offset),m.setEnd(v.offsetNode,v.offset)}else if(h.document.body.createTextRange){m=h.document.body.createTextRange();try{m.moveToPoint(r,i)}catch(e){return null}}return e.findRange(m)},findNode:function(e,t){var n=e.findPath(t);return n?e.value.document.getNode(n):null},findPath:function(e,t){var n=e.tmp.contentRef.current,r=t;if(r.hasAttribute(je)||(r=r.closest(He.KEY)),!r||!r.getAttribute(je))return null;if(r===n.ref.current)return s.PathUtils.create([]);var i=function e(t,n){if(r===t)return n;if(!t.ref)return null;if(r===t.ref.current)return n;if(!t.tmp)return null;var i=t.tmp.nodeRefs,o=Object.keys(i),a=!0,s=!1,l=void 0;try{for(var u,c=o[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value,f=i[d],p=parseInt(d,10),h=e(f,[].concat(Xe(n),[p]));if(h)return h}}catch(e){s=!0,l=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw l}}return null}(n.tmp.nodeRef.current,[]);return i?s.PathUtils.create(i):null},findPoint:function(e,t,n){var r=function(e,t){if(1===e.nodeType&&e.childNodes.length){var n=t===e.childNodes.length,r=n?"backward":"forward";for(e=Et(e,n?t-1:t,r);1===e.nodeType&&e.childNodes.length;){var i=n?e.childNodes.length-1:0;e=Et(e,i,r)}t=n?e.textContent.length:0}return{node:e,offset:t}}(t,n),i=r.node,o=r.offset,a=g()(t),s=i.parentNode,l=s.closest(He.LEAF),u=void 0,c=void 0,d=void 0;if(l){u=l.closest(He.TEXT);var f=a.document.createRange();f.setStart(u,0),f.setEnd(i,o);var p=f.cloneContents(),h=p.querySelectorAll(He.ZERO_WIDTH);Array.from(h).forEach((function(e){e.parentNode.removeChild(e)})),c=p.textContent.length,d=u}else{var m=s.closest(He.VOID);if(!m)return null;if(!(l=m.querySelector(He.LEAF)))return null;u=l.closest(He.TEXT),c=(d=l).textContent.length}c===d.textContent.length&&s.hasAttribute(qe)&&c--;var v=e.findPath(u);return v?e.value.document.createPoint({path:v,offset:c}):null},findRange:function(e,t){var n=t.anchorNode||t.startContainer;if(!n)return null;var r=g()(n);(t instanceof r.Range||r.StaticRange&&t instanceof r.StaticRange)&&(t={anchorNode:t.startContainer,anchorOffset:t.startOffset,focusNode:t.endContainer,focusOffset:t.endOffset});var i=t,o=i.anchorNode,a=i.anchorOffset,s=i.focusNode,l=i.focusOffset,u=i.isCollapsed,c=e.value,d=e.findPoint(o,a),f=u?d:e.findPoint(s,l);return d&&f?c.document.createRange({anchor:d,focus:f}):null},findSelection:function(e,t){var n=e.value,r=n.document;if(!t.rangeCount)return null;var i=e.findRange(t);if(!i)return null;var o=i,a=o.anchor,l=o.focus,u=r.getNode(a.path),c=r.getNode(l.path),d=r.getClosestInline(a.path),f=r.getClosestInline(l.path),p=r.getClosestBlock(l.path),h=r.getClosestBlock(a.path);if(h&&!e.isVoid(h)&&0===a.offset&&p&&e.isVoid(p)&&0!==l.offset&&(i=i.setFocus(l.setOffset(0))),d&&!e.isVoid(d)&&a.offset===u.text.length){var m=r.getClosestBlock(a.path),g=r.getDepth(m.key),v=s.PathUtils.drop(a.path,g),y=m.texts({path:v}),b=Qe(y,1)[0];if(b){var _=Qe(b,2)[1],w=a.path.slice(0,g).concat(_);i=i.moveAnchorTo(w,0)}}if(f&&!e.isVoid(f)&&l.offset===c.text.length){var x=r.getClosestBlock(l.path),k=r.getDepth(x.key),E=s.PathUtils.drop(l.path,k),S=x.texts({path:E}),O=Qe(S,1)[0];if(O){var T=Qe(O,2)[1],C=l.path.slice(0,k).concat(T);i=i.moveFocusTo(C,0)}}var A=r.createSelection(i);return A=(A=A.setIsFocused(!0)).set("marks",n.selection.marks)}}}}function Et(e,t,n){for(var r=e.childNodes,i=r[t],o=t,a=!1,s=!1;(8===i.nodeType||1===i.nodeType&&0===i.childNodes.length||1===i.nodeType&&"false"===i.getAttribute("contenteditable"))&&(!a||!s);)o>=r.length?(a=!0,o=t-1,n="backward"):o<0?(s=!0,o=t+1,n="forward"):(i=r[o],"forward"===n&&o++,"backward"===n&&o--);return i||null}function St(e,t){if(e===t)return null;var n=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length!==t.length?n:null}(e,t),r=function(e,t,n){for(var r=e.length,i=t.length,o=Math.min(r,i,n),a=0;a<o;a++){if(e.charAt(r-a-1)!==t.charAt(i-a-1))return a}return e.length!==t.length?o:null}(e,t,Math.min(e.length-n,t.length-n));return{start:n,end:r,total:n+r}}function Ot(e,t){return e.slice(t.start,e.length-t.end)}var Tt=p()("slate:composition-manager"),Ct=String.fromCharCode(65279),At=be.a.unstable_flushControlled;function Pt(e,t){At((function(){t(),e.controller.flush()}))}function Rt(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t,i=e,o=0;-1!==o&&-1!==(o=i.indexOf(Ct,o));)r>o&&r--,i=""+i.slice(0,o)+i.slice(o+1);var a=i.charAt(i.length-1);n&&"\n"===a&&(i=i.slice(0,-1));var s=i.length;return r>s&&(r=s),{text:i,offset:r}}function Mt(e){var t=new window.MutationObserver((function(e){var t;Tt("flush"),(t=l).push.apply(t,Xe(e)),d()})),n=null,r={rootEl:null,diff:null,range:null,domNode:null};function i(){Tt("clearAction"),r.diff=null,r.domNode=null}function o(){Tt("applyDiff");var t=r.diff;if(null!=t){Tt("applyDiff:run");var n=e.value.document,i=e.value.selection.moveAnchorTo(t.path,t.start).moveFocusTo(t.path,t.end);i=n.resolveRange(i),e.insertTextAtRange(i,t.insertText)}}function a(){Tt("splitBlock"),Pt(e,(function(){o(),r.range?e.select(r.range):Tt("splitBlock:NO-SELECTION"),e.splitBlock().focus().restoreDOM(),i()}))}var s=null,l=[],u=null,c=!1;function d(){s&&(window.cancelAnimationFrame(s),s=null),c=!0,u&&window.cancelAnimationFrame(u),u=window.requestAnimationFrame((function(){l.length>0&&function(t){if(Tt("flushAction",t.length,t),r.range&&!r.range.isCollapsed)return void Pt(e,(function(){e.select(r.range).deleteBackward().focus().restoreDOM()}));if(t.length>1){if(t.find((function(t){if("childList"!==t.type)return!1;if(0===t.addedNodes.length)return!1;var n=t.addedNodes[0];if(n.nodeType===window.Node.TEXT_NODE&&"\n"===n.textContent)return!0;if(n.nodeType!==window.Node.ELEMENT_NODE)return!1;var r=n.dataset.key;return null!=r&&!!e.value.document.getClosestBlock(r)})))return void a()}var s=t[0];"characterData"===s.type?function(t){Tt("resolveDOMNode");var n=e.value.document,i=t.closest("[data-key]").dataset.key,o=n.getPath(i),a=n.getClosestBlock(i),s=n.getDescendant(i),l=s.text,u=a.nodes.last()===s,c=Rt(t.textContent,0,u).text;if(c===l)return void(r.diff=null);var d=function(e,t){var n=St(e,t);if(null==n)return null;var r=Ot(t,n),i=Ot(e,n);return{start:n.start,end:e.length-n.end,cursor:n.start+r.length,insertText:r,removeText:i}}(l,c);r.diff={path:o,start:d.start,end:d.end,insertText:d.insertText},Tt("resolveDOMNode:diff",r.diff)}(s.target.parentNode):"childList"===s.type&&(s.removedNodes.length>0?1===t.length?function(t){if(Tt("removeNode"),t.nodeType!==window.Node.ELEMENT_NODE)return;var n=e.value,r=n.document,i=n.selection,o=e.findNode(t),a=r.resolveRange(i.moveToRangeOfNode(o));Pt(e,(function(){e.select(a).delete().restoreDOM()}))}(s.removedNodes[0]):(Tt("mergeBlock"),n.requestAnimationFrame((function(){Pt(e,(function(){o(),e.select(r.range).deleteBackward().focus().restoreDOM(),i()}))}))):s.addedNodes.length>0&&a())}(l),u=null,l=[],c=!1}))}return{clearDiff:function(){Tt("clearDIff"),r.diff=null},connect:function(){Tt("connect",{rootEl:i});var i=e.findDOMNode([]);r.rootEl!==i&&(Tt("connect:run"),n=g()(i),t.observe(i,{childList:!0,characterData:!0,attributes:!0,subtree:!0,characterDataOldValue:!0}))},disconnect:function(){Tt("disconnect"),t.disconnect(),r.rootEl=null},onKeyDown:d,onCompositionStart:function(){Tt("onCompositionStart")},onCompositionEnd:function(){Tt("onCompositionEnd"),window.setTimeout((function(){r.diff&&(Tt("onCompositionEnd:applyDiff"),Pt(e,(function(){o();var t=n.getSelection().getRangeAt(0),r=Rt(t.startContainer.textContent,t.startOffset),i=e.findRange({anchorNode:t.startContainer,anchorOffset:0,focusNode:t.startContainer,focusOffset:0,isCollapsed:!0}).moveTo(r.offset);e.select(i).focus().restoreDOM()}))),i()}),20)},onSelect:function(t){Tt("onSelect:try"),t=t.nativeEvent?t.nativeEvent:t,window.cancelAnimationFrame(s),s=null,c||(s=window.requestAnimationFrame((function(){Tt("onSelect:save-selection");var n,a=g()(t.target).getSelection(),s=e.findRange(a),l=Rt(a.anchorNode.textContent,a.anchorOffset),u=Rt(a.focusNode.textContent,a.focusOffset);s.anchor.offset!==l.offset&&(s=s.set("anchor",s.anchor.set("offset",l.offset))),s.focus.offset!==u.offset&&(s=s.set("focus",s.focus.set("offset",u.offset))),Tt("onSelect:save-data",{domSelection:(n=a,{anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),range:s.toJS()}),a.isCollapsed&&r.node!==a.anchorNode&&null!=r.diff&&(Tt("onSelect:applyDiff",r.diff),o(),e.select(s),i()),r.range=s,r.node=a.anchorNode})))}}}function It(e){var t=new Mt(e.editor);return{onComponentDidMount:function(){t.connect()},onComponentDidUpdate:function(){t.connect()},onComponentWillUnmount:function(){t.disconnect()},onCompositionEnd:function(){t.onCompositionEnd()},onCompositionStart:function(){t.onCompositionStart()},onRender:function(){t.disconnect(),t.clearDiff()},onSelect:function(e){!function(e){var t=e.getSelection(),n=t.anchorNode;if(null!=n){var r=n.parentElement.dataset;if(!!r&&"n"===r.slateZeroWidth&&1===n.textContent.length&&0!==t.anchorOffset){var i=e.document.createRange();i.setStart(n,0),i.setEnd(n,0),t.removeAllRanges(),t.addRange(i)}}}(g()(e.target)),t.onSelect(e)}}}function jt(){var e={},t=!0,n=!1,r=void 0;try{for(var i,o=Re[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){e[i.value]=function(e,t,n){}}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}return e}var Dt={FRAGMENT:"application/x-slate-fragment",HTML:"text/html",NODE:"application/x-slate-node",RICH:"text/rtf",TEXT:"text/plain"},Lt=Dt.FRAGMENT,Nt=Dt.HTML,Ft=Dt.TEXT;function Bt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};Object(xe.a)(!s.Value.isValue(t),"As of Slate 0.42.0, the `cloneFragment` utility takes an `editor` instead of a `value`.");var r=g()(e.target),i=r.getSelection(),o=t.value,a=o.document,l=o.fragment,u=o.selection,c=u.start,d=u.end,f=a.getClosestVoid(c.path,t),p=a.getClosestVoid(d.path,t);if(!i.isCollapsed||f){var h=_e.default.serializeNode(l),m=i.getRangeAt(0),v=m.cloneContents(),y=v.childNodes[0];if(v.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(y=e)})),p){var b=m.cloneRange(),_=a.getPath(p.key);if(_){var w=t.findDOMNode(_);b.setEndAfter(w),v=b.cloneContents()}}if(f&&(y=v.childNodes[0].childNodes[1].firstChild),[].slice.call(v.querySelectorAll(He.ZERO_WIDTH)).forEach((function(e){var t="n"===e.getAttribute(qe);e.textContent=t?"\n":""})),3===y.nodeType){var x=r.document.createElement("span");x.style.whiteSpace="pre",x.appendChild(y),v.appendChild(x),y=x}y.setAttribute(Ie,h);var k=s.Value.create({document:l}),E=we.default.serialize(k),S=r.document.createElement("div");if(S.appendChild(v),e.clipboardData&&e.clipboardData.setData&&!J)return e.preventDefault(),e.clipboardData.setData(Ft,E),e.clipboardData.setData(Lt,h),e.clipboardData.setData(Nt,S.innerHTML),void n();var O=e.target.closest(He.EDITOR);S.setAttribute("contenteditable",!0),S.style.position="absolute",S.style.left="-9999px",O.appendChild(S),i.selectAllChildren(S),r.requestAnimationFrame((function(){O.removeChild(S),gt(i),i.addRange(m),n()}))}}var zt=Dt.FRAGMENT,Ut=Dt.HTML,qt=Dt.NODE,Ht=Dt.RICH,Wt=Dt.TEXT,Vt=/ data-slate-fragment="([^\s"]+)"/;function $t(e){!J&&e.nativeEvent&&(e=e.nativeEvent);var t=e.dataTransfer||e.clipboardData,n=Gt(t,zt),r=Gt(t,qt),i=Gt(t,Ut),o=Gt(t,Ht),a=Gt(t,Wt),s=void 0;if(!n&&i&&~i.indexOf(" "+Ie+'="')){var l=Vt.exec(i),u=Qe(l,2),c=(u[0],u[1]);c&&(n=c)}if(a){var d=function(e){var t="SLATE-DATA-EMBED::";if(e.substring(0,t.length)!==t)return{TEXT:e};try{return JSON.parse(e.substring(t.length))}catch(e){throw new Error("Unable to parse custom Slate drag event data.")}}(a);d[zt]&&(n=d[zt]),d[qt]&&(r=d[qt]),d[Wt]&&(a=d[Wt])}n&&(n=_e.default.deserializeNode(n)),r&&(r=_e.default.deserializeNode(r));try{t.items&&t.items.length?s=Array.from(t.items).map((function(e){return"file"===e.kind?e.getAsFile():null})).filter((function(e){return e})):t.files&&t.files.length&&(s=Array.from(t.files))}catch(e){t.files&&t.files.length&&(s=Array.from(t.files))}var f={files:s,fragment:n,html:i,node:r,rich:o,text:a};return f.type=function(e){return e.fragment?"fragment":e.node?"node":e.rich&&e.html?"html":e.rich&&e.text?"text":e.files&&e.files.length?"files":e.html?"html":e.text?"text":"unknown"}(f),f}function Gt(e,t){return e.types&&e.types.length?-1!==Array.from(e.types).indexOf(t)&&e.getData(t)||null:t===Wt&&e.getData("Text")||null}var Kt=Dt.TEXT;function Yt(e,t,n){var r=Dt[t.toUpperCase()];if(!r)throw new Error('Cannot set unknown transfer type "'+r+'".');e.nativeEvent&&(e=e.nativeEvent);var i=e.dataTransfer||e.clipboardData;try{i.setData(r,n),i.setData("text",i.getData("text"))}catch(e){var o="SLATE-DATA-EMBED::",a=i.getData(Kt),s={};if(a.substring(0,o.length)===o)try{s=JSON.parse(a.substring(o.length))}catch(e){throw new Error("Failed to parse Slate data from `DataTransfer` object.")}else s[Kt]=a;s[r]=n;var l=""+o+JSON.stringify(s);i.setData(Kt,l)}}var Qt=p()("slate:after");function Xt(){var e=null,t=!1;return{onBeforeInput:function(e,t,n){var r=t.value;if(!!e.nativeEvent)return e.preventDefault(),t.insertText(e.data),n();var i=e.getTargetRanges(),o=Qe(i,1)[0];if(!o)return n();Qt("onBeforeInput",{event:e}),e.preventDefault();var a=r.document,s=r.selection,l=t.findRange(o);switch(e.inputType){case"deleteByDrag":case"deleteByCut":case"deleteContent":case"deleteContentBackward":case"deleteContentForward":t.deleteAtRange(l);break;case"deleteWordBackward":t.deleteWordBackwardAtRange(l);break;case"deleteWordForward":t.deleteWordForwardAtRange(l);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":t.deleteLineBackwardAtRange(l);break;case"deleteSoftLineForward":case"deleteHardLineForward":t.deleteLineForwardAtRange(l);break;case"insertLineBreak":case"insertParagraph":a.hasVoidParent(s.start.path,t)?t.moveToStartOfNextText():t.splitBlockAtRange(l);break;case"insertFromYank":case"insertReplacementText":case"insertText":var u=null==e.data?e.dataTransfer.getData("text/plain"):e.data;if(null==u)break;t.insertTextAtRange(l,u,s.marks),s.marks&&r.document!==t.value.document&&t.select({marks:null})}n()},onBlur:function(e,t,n){Qt("onBlur",{event:e}),t.blur(),n()},onClick:function(e,t,n){if(t.readOnly)return n();var r=t.value.document,i=t.findPath(e.target);if(!i)return n();Qt("onClick",{event:e});var o=r.getNode(i),a=r.getAncestors(i);o&&(t.isVoid(o)||a.some((function(e){return t.isVoid(e)})))&&t.focus().moveToEndOfNode(o),n()},onCopy:function(e,t,n){Qt("onCopy",{event:e}),Bt(e,t),n()},onCut:function(e,t,n){Qt("onCut",{event:e}),Bt(e,t,(function(){var e=t.value,n=e.document,r=e.selection,i=r.end,o=void 0;if(r.isCollapsed){var a=!0,s=!1,l=void 0;try{for(var u,c=n.ancestors(i.path)[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value,f=Qe(d,2),p=f[0],h=f[1];if(t.isVoid(p)){o=h;break}}}catch(e){s=!0,l=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw l}}}o?t.removeNodeByKey(o):t.delete()})),n()},onDragEnd:function(t,n,r){Qt("onDragEnd",{event:t}),e=null,r()},onDragStart:function(t,n,r){Qt("onDragStart",{event:t}),e=!0;var i=n.value,o=i.document,a=n.findPath(t.target),s=o.getNode(a),l=o.getAncestors(a),u=s&&(n.isVoid(s)||l.some((function(e){return n.isVoid(e)}))),c=i.blocks.some((function(e){return e===s}));u&&!c&&n.moveToRangeOfNode(s);var d=n.value.fragment;Yt(t,"fragment",_e.default.serializeNode(d)),r()},onDrop:function(t,n,r){var i=n.value,o=i.document,a=i.selection,s=g()(t.target),l=n.findEventRange(t);if(!l)return r();Qt("onDrop",{event:t});var u=$t(t),c=u.type,d=u.fragment,f=u.text;n.focus();var p=n.findDOMNode(l.focus.path);p&&p.dispatchEvent(new MouseEvent("mouseup",{view:s,bubbles:!0,cancelable:!0}));var h=a;if(n.select(l),e&&n.deleteAtRange(h),"text"===c||"html"===c){var m=l.anchor,v=o.hasVoidParent(m.path,n);if(v){for(var y=m.path,b=o.getNode(m.path);v;){var _=o.texts({path:y}),w=Qe(_,1)[0];if(!w)break;var x=Qe(w,2);b=x[0],y=x[1],v=o.hasVoidParent(y,n)}b&&n.moveToStartOfNode(b)}f&&f.split("\n").forEach((function(e,t){t>0&&n.splitBlock(),n.insertText(e)}))}"fragment"===c&&n.insertFragment(d),r()},onFocus:function(e,n,r){Qt("onFocus",{event:e}),!t||J||Z?n.focus():n.deselect().focus(),r()},onInput:function(e,t,n){Qt("onInput");var r=g()(e.target).getSelection(),i=t.findSelection(r);i?t.select(i):t.blur();var o=r.anchorNode;t.reconcileDOMNode(o),n()},onKeyDown:function(e,t,n){Qt("onKeyDown",{event:e});var r=t.value,i=r.document,o=r.selection,a=o.start,s=i.hasVoidParent(a.path,t);if(ve.isSplitBlock(e)&&!te)return s?t.moveToStartOfNextText():t.splitBlock();if(ve.isDeleteBackward(e)&&!te)return t.deleteCharBackward();if(ve.isDeleteForward(e)&&!te)return t.deleteCharForward();if(ve.isDeleteLineBackward(e))return t.deleteLineBackward();if(ve.isDeleteLineForward(e))return t.deleteLineForward();if(ve.isDeleteWordBackward(e))return t.deleteWordBackward();if(ve.isDeleteWordForward(e))return t.deleteWordForward();if(ve.isRedo(e))return t.redo();if(ve.isUndo(e))return t.undo();if(ve.isMoveLineBackward(e))return e.preventDefault(),t.moveToStartOfBlock();if(ve.isMoveLineForward(e))return e.preventDefault(),t.moveToEndOfBlock();if(ve.isExtendLineBackward(e))return e.preventDefault(),t.moveFocusToStartOfBlock();if(ve.isExtendLineForward(e))return e.preventDefault(),t.moveFocusToEndOfBlock();if(ve.isMoveBackward(e))return e.preventDefault(),o.isCollapsed?t.moveBackward():t.moveToStart();if(ve.isMoveForward(e))return e.preventDefault(),o.isCollapsed?t.moveForward():t.moveToEnd();if(ve.isMoveWordBackward(e))return e.preventDefault(),t.moveWordBackward();if(ve.isMoveWordForward(e))return e.preventDefault(),t.moveWordForward();if(ve.isExtendBackward(e)){var l=i.getNode(a.path),u=i.texts({path:a.path,direction:"backward"}),c=Qe(u,1)[0],d=!1;if(c){var f=Qe(c,2)[1];d=i.hasVoidParent(f,t)}if(s||d||""===l.text)return e.preventDefault(),t.moveFocusBackward()}if(ve.isExtendForward(e)){var p=i.getNode(a.path),h=i.texts({path:a.path}),m=Qe(h,1)[0],g=!1;if(m){var v=Qe(m,2)[1];g=i.hasVoidParent(v,t)}if(s||g||""===p.text)return e.preventDefault(),t.moveFocusForward()}n()},onMouseDown:function(e,n,r){Qt("onMouseDown",{event:e}),t=!0,r()},onMouseUp:function(e,n,r){Qt("onMouseUp",{event:e}),t=!1,r()},onPaste:function(e,t,n){Qt("onPaste",{event:e});var r=t.value,i=$t(e),o=i.type,a=i.fragment,s=i.text;if("fragment"===o&&t.insertFragment(a),"text"===o||"html"===o){if(!s)return n();var l=r.document,u=r.selection,c=r.startBlock;if(t.isVoid(c))return n();var d=c,f=l.getInsertMarksAtRange(u),p=we.default.deserialize(s,{defaultBlock:d,defaultMarks:f}).document;t.insertFragment(p)}n()},onSelect:function(e,n,r){Qt("onSelect",{event:e});var i=g()(e.target).getSelection(),o=n.findSelection(i);o?n.select(o):n.blur(),t=!1,r()}}}var Jt=p()("slate:before");function Zt(){var e=null,t=0,n=!1,r=!1,i=!1,o=!1;return{onBeforeInput:function(e,t,n){var r=!!e.nativeEvent;t.readOnly||(o=!0,r&&ie||(Jt("onBeforeInput",{event:e}),n()))},onBlur:function(t,n,i){if(!r&&!n.readOnly){var o=t.relatedTarget,a=t.target,s=g()(a);if(e!==s.document.activeElement){if(o){var l=n.findDOMNode([]);if(o===l)return;if(o.hasAttribute(Be))return;var u=n.findNode(o);if(l.contains(o)&&u&&!n.isVoid(u))return}Jt("onBlur",{event:t}),i()}}},onClick:function(e,t,n){Jt("onClick",{event:e}),o=!0,n()},onCompositionEnd:function(e,r,i){var a=t;o=!0,window.requestAnimationFrame((function(){t>a||(n=!1)})),Jt("onCompositionEnd",{event:e}),i()},onCompositionStart:function(e,r,i){n=!0,t++;var a=r.value.selection;o=!0,a.isCollapsed||r.delete(),Jt("onCompositionStart",{event:e}),i()},onCopy:function(e,t,n){var i=g()(e.target);r=!0,i.requestAnimationFrame((function(){return r=!1})),Jt("onCopy",{event:e}),n()},onCut:function(e,t,n){if(!t.readOnly){var i=g()(e.target);r=!0,i.requestAnimationFrame((function(){return r=!1})),Jt("onCut",{event:e}),n()}},onDragEnd:function(e,t,n){i=!1,Jt("onDragEnd",{event:e}),n()},onDragEnter:function(e,t,n){Jt("onDragEnter",{event:e}),n()},onDragExit:function(e,t,n){Jt("onDragExit",{event:e}),n()},onDragLeave:function(e,t,n){Jt("onDragLeave",{event:e}),n()},onDragOver:function(e,t,n){var r=t.findNode(e.target);r&&!t.isVoid(r)||e.preventDefault(),J&&e.preventDefault(),i||(i=!0,J||(e.nativeEvent.dataTransfer.dropEffect="move")),Jt("onDragOver",{event:e}),n()},onDragStart:function(e,t,n){i=!0,Jt("onDragStart",{event:e}),n()},onDrop:function(e,t,n){t.readOnly||(o=!0,e.preventDefault(),Jt("onDrop",{event:e}),n())},onFocus:function(t,n,i){if(!r&&!n.readOnly){var o=n.findDOMNode([]),a=g()(t.target);e=a.document.activeElement,Q&&t.target!==o?o.focus():(Jt("onFocus",{event:t}),i())}},onInput:function(e,t,r){n||t.value.selection.isBlurred||(o=!0,Jt("onInput",{event:e}),r())},onKeyDown:function(e,t,r){t.readOnly||(n?ve.isCompose(e)&&e.preventDefault():(!te&&(ve.isBold(e)||ve.isDeleteBackward(e)||ve.isDeleteForward(e)||ve.isDeleteLineBackward(e)||ve.isDeleteLineForward(e)||ve.isDeleteWordBackward(e)||ve.isDeleteWordForward(e)||ve.isItalic(e)||ve.isRedo(e)||ve.isSplitBlock(e)||ve.isTransposeCharacter(e)||ve.isUndo(e))&&e.preventDefault(),o=!0,Jt("onKeyDown",{event:e}),r()))},onPaste:function(e,t,n){t.readOnly||(o=!0,e.preventDefault(),Jt("onPaste",{event:e}),n())},onSelect:function(t,i,a){if(!r&&!n&&!i.readOnly){var s=g()(t.target);e=s.document.activeElement,o=!0,Jt("onSelect",{event:t}),a()}},queries:{userActionPerformed:function(){return o}},commands:{clearUserActionPerformed:function(){return o=!1,null}}}}function en(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.plugins,n=void 0===t?[]:t,r=Zt(),i=Xt(),o=ee?[It(e),jt()]:[];return[].concat(o,[r],Xe(n),[i])}function tn(e){var t=e.nativeEvent||e;switch(t.type){case"keydown":return t.type+" "+JSON.stringify(t.key);case"input":case"beforeinput":case"textInput":return t.type+":"+t.inputType+" "+JSON.stringify(t.data);default:return t.type}}var nn=p()("slate:events");function rn(){var e={},t=!0,n=!1,r=void 0;try{for(var i,o=Re[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){e[i.value]=function(e,t,n){var r=tn(e);nn(r),n()}}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}return e}var on=p()("slate:batch-events");function an(){var e=null,t=null,n=[];function r(){on("\n"+n.join("\n")),n.length=0}function i(i){0===n.length&&(e=new Date);var o=tn(i),a=new Date;n.push("- "+(a-e)+" - "+o),clearTimeout(t),t=setTimeout(r,2e3)}var o={},a=!0,s=!1,l=void 0;try{for(var u,c=Re[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){o[u.value]=function(e,t,n){i(e),n()}}}catch(e){s=!0,l=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw l}}return o}var sn=p()("slate:mutations"),ln=["type","oldValue","target","addedNodes","removedNodes","attributeName","attributeNamespace","nextSibling","previousSibling"];function un(e){if(e.nodeType===window.Node.TEXT_NODE)return e.textContent;if(e.nodeType===window.Node.ELEMENT_NODE){var t=e.outerHTML,n=e.innerHTML;return null==t?JSON.stringify(e.textContent):t.slice(0,t.indexOf(n))}return"Node(type="+e.nodeType}function cn(){var e=new window.MutationObserver((function(e){var t=Array.from(e).map((function(e){var t={};return ln.forEach((function(n){var r=e[n];if(null!=r)if(r instanceof window.NodeList){if(0===r.length)return;t[n]=Array.from(r).map(un).join(", ")}else r instanceof window.Node&&(r=un(r)),t[n]=r})),t}));sn.apply(void 0,[t.length+" Mutations"].concat(Xe(t)))})),t=null;function n(n,r,i){var o=r.findDOMNode([]);if(o===t)return i();sn("start"),e.observe(o,{childList:!0,characterData:!0,attributes:!0,subtree:!0,characterDataOldValue:!0}),t=o,i()}return{onComponentDidMount:n,onComponentDidUpdate:n,onComponentWillUnmount:function(n,r,i){sn("stop"),e.disconnect(),t=null,i()}}}function dn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.placeholder,n=void 0===t?"":t,r=p.a.enabled("slate:events")?rn():null,i=p.a.enabled("slate:batch-events")?an():null,o=p.a.enabled("slate:mutations")?cn():null,a=xt(),s={commands:{reconcileNode:function(e,t){var n=e.value,r=n.document,i=n.selection,o=r.getPath(t.key),a=e.findDOMNode(o),s=r.getClosestBlock(o),l=t.text,u=a.textContent,c=s.nodes.last()===t,d=u.charAt(u.length-1);if(c&&"\n"===d&&(u=u.slice(0,-1)),l!==u){var f=i.moveAnchorTo(o,0).moveFocusTo(o,l.length);f=r.resolveRange(f),e.insertTextAtRange(f,u,t.marks)}},reconcileDOMNode:function(e,t){var n=t.parentElement.closest("[data-key]"),r=e.findNode(n);e.reconcileNode(r)}}},l=kt(),u=wt(e),c=en(e),d={commands:{restoreDOM:function(e){var t=e.tmp.contentRef.current.tmp;t.contentKey=t.contentKey+1}}},f=ee?null:Ce({placeholder:n,when:function(e,t){return"document"===t.object&&""===t.text&&1===t.nodes.size&&1===Array.from(t.texts()).length}});return[r,i,o,u,c,d,f,a,s,l]}var fn=p()("slate:editor"),pn=function(e){function t(){var e,n,r;We(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r=Ye(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={value:r.props.defaultValue,contentKey:0},r.tmp={mounted:!1,change:null,resolves:0,updates:0,contentRef:i.a.createRef()},r.resolveController=Pe((function(){var e=arguments[5];h(r.tmp.resolves<5||r.tmp.resolves!==r.tmp.updates,"A Slate <Editor> component is re-resolving the `plugins`, `schema`, `commands`, `queries` or `placeholder` prop on each update, which leads to poor performance. This is often due to passing in a new references for these props with each render by declaring them inline in your render function. Do not do this! Declare them outside your render function, or memoize them instead."),r.tmp.resolves++;var t=e(Ge({},r.props,{editor:r,value:r.props.value||r.state.value})),n=function(e){r.tmp.mounted?r.handleChange(e):r.tmp.change=e};r.controller=new s.Editor({plugins:[t],onChange:n},{controller:r,construct:!1}),r.controller.run("onConstruct")})),Ye(r,n)}return Ke(t,e),Ve(t,[{key:"componentDidMount",value:function(){this.tmp.mounted=!0,this.tmp.updates++,this.props.autoFocus&&this.focus(),this.tmp.change&&(this.handleChange(this.tmp.change),this.tmp.change=null)}},{key:"componentDidUpdate",value:function(){this.tmp.updates++,this.tmp.change&&(this.handleChange(this.tmp.change),this.tmp.change=null)}},{key:"componentWillUnmount",value:function(){this.tmp.mounted=!1}},{key:"render",value:function(){var e=this;fn("render",this);var n=this.props,r=n.commands,o=n.placeholder,a=n.plugins,s=n.queries,l=n.schema;this.resolveController(a,l,r,s,o,dn);var u=this.props,c=u.options,d=u.readOnly,f=u.value,p=this.state.value,h=f||p,m=this.state.contentKey;this.controller.setReadOnly(d),this.controller.setValue(h,c);var g=this.props,v=g.autoCorrect,y=g.className,b=g.id,_=g.role,w=g.spellCheck,x=g.tabIndex,k=g.style,E=g.tagName,S=le()(this.props,Object.keys(t.propTypes)),O=i.a.createElement(bt,Ge({},S,{ref:this.tmp.contentRef,autoCorrect:v,className:y,contentKey:m,editor:this,id:b,onEvent:function(t,n){return e.run(t,n)},readOnly:d,role:_,spellCheck:w,style:k,tabIndex:x,tagName:E}));return this.controller.run("renderEditor",Ge({},this.props,{editor:this,children:O}))}},{key:"handleChange",value:function(e){var t=this.props.onChange;this.state.value&&this.setState({value:e.value}),t(e)}},{key:"applyOperation",value:function(){var e;return(e=this.controller).applyOperation.apply(e,arguments)}},{key:"command",value:function(){var e;return(e=this.controller).command.apply(e,arguments)}},{key:"hasCommand",value:function(){var e;return(e=this.controller).hasCommand.apply(e,arguments)}},{key:"hasQuery",value:function(){var e;return(e=this.controller).hasQuery.apply(e,arguments)}},{key:"normalize",value:function(){var e;return(e=this.controller).normalize.apply(e,arguments)}},{key:"query",value:function(){var e;return(e=this.controller).query.apply(e,arguments)}},{key:"registerCommand",value:function(){var e;return(e=this.controller).registerCommand.apply(e,arguments)}},{key:"registerQuery",value:function(){var e;return(e=this.controller).registerQuery.apply(e,arguments)}},{key:"run",value:function(){var e;return(e=this.controller).run.apply(e,arguments)}},{key:"withoutNormalizing",value:function(){var e;return(e=this.controller).withoutNormalizing.apply(e,arguments)}},{key:"call",value:function(){var e;return(e=this.controller).call.apply(e,arguments)}},{key:"change",value:function(){var e;return(e=this.controller).change.apply(e,arguments)}},{key:"onChange",value:function(){var e;return(e=this.controller).onChange.apply(e,arguments)}},{key:"applyOperations",value:function(){var e;return(e=this.controller).applyOperations.apply(e,arguments)}},{key:"setOperationFlag",value:function(){var e;return(e=this.controller).setOperationFlag.apply(e,arguments)}},{key:"getFlag",value:function(){var e;return(e=this.controller).getFlag.apply(e,arguments)}},{key:"unsetOperationFlag",value:function(){var e;return(e=this.controller).unsetOperationFlag.apply(e,arguments)}},{key:"withoutNormalization",value:function(){var e;return(e=this.controller).withoutNormalization.apply(e,arguments)}},{key:"operations",get:function(){return this.controller.operations}},{key:"readOnly",get:function(){return this.controller.readOnly}},{key:"value",get:function(){return this.controller.value}},{key:"editor",get:function(){return this.controller.editor}},{key:"schema",get:function(){Object(xe.a)(!1,"As of Slate 0.42, the `editor.schema` property no longer exists, and its functionality has been folded into the editor itself. Use the `editor` instead.")}},{key:"stack",get:function(){Object(xe.a)(!1,"As of Slate 0.42, the `editor.stack` property no longer exists, and its functionality has been folded into the editor itself. Use the `editor` instead.")}}]),t}(i.a.Component);function hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;h(!1,"As of slate-react@0.22 the `findDOMNode(key)` helper is deprecated in favor of `editor.findDOMNode(path)`."),s.Node.isNode(e)&&(e=e.key);var n=t.document.querySelector("["+je+'="'+e+'"]');if(!n)throw new Error('Unable to find a DOM node for "'+e+'". This is often because of forgetting to add `props.attributes` to a custom component.');return n}function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;h(!1,"As of slate-react@0.22 the `findDOMPoint(point)` helper is deprecated in favor of `editor.findDOMPoint(point)`.");var n=hn(e.key,t),r=0,i=Array.from(n.querySelectorAll(He.STRING+", "+He.ZERO_WIDTH)),o=!0,a=!1,s=void 0;try{for(var l,u=i[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var c=l.value,d=c.childNodes[0],f=d.textContent.length,p=f;c.hasAttribute(Le)&&(p=parseInt(c.getAttribute(Le),10));var m=r+p;if(e.offset<=m){var g=Math.min(f,Math.max(0,e.offset-r));return{node:d,offset:g}}r=m}}catch(e){a=!0,s=e}finally{try{!o&&u.return&&u.return()}finally{if(a)throw s}}return null}function gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;h(!1,"As of slate-react@0.22 the `findDOMRange(range)` helper is deprecated in favor of `editor.findDOMRange(range)`.");var n=e.anchor,r=e.focus,i=e.isBackward,o=e.isCollapsed,a=mn(n,t),s=o?a:mn(r,t);if(!a||!s)return null;var l=t.document.createRange(),u=i?s:a,c=i?a:s;return l.setStart(u.node,u.offset),l.setEnd(c.node,c.offset),l}function vn(e,t){h(!1,"As of slate-react@0.22 the `findNode(element)` helper is deprecated in favor of `editor.findNode(element)`."),Object(xe.a)(!s.Value.isValue(t),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`.");var n=e.closest(He.KEY);if(!n)return null;var r=n.getAttribute(je);return r&&t.value.document.getNode(r)||null}function yn(e,t){h(!1,"As of slate-react@0.22 the `findPath(element)` helper is deprecated in favor of `editor.findPath(element)`.");var n=vn(e,t);return n?t.value.document.getPath(n):null}function bn(e,t,n){h(!1,"As of slate-react@0.22 the `findPoint(node, offset)` helper is deprecated in favor of `editor.findPoint(node, offset)`."),Object(xe.a)(!s.Value.isValue(n),"As of Slate 0.42.0, the `findPoint` utility takes an `editor` instead of a `value`.");var r=function(e,t){if(1===e.nodeType&&e.childNodes.length){var n=t===e.childNodes.length,r=n?"backward":"forward";for(e=_n(e,n?t-1:t,r);1===e.nodeType&&e.childNodes.length;){var i=n?e.childNodes.length-1:0;e=_n(e,i,r)}t=n?e.textContent.length:0}return{node:e,offset:t}}(e,t),i=r.node,o=r.offset,a=g()(e),l=i.parentNode,u=l.closest(He.LEAF),c=void 0,d=void 0;if(u){var f=a.document.createRange(),p=u.closest(He.TEXT);f.setStart(p,0),f.setEnd(i,o),d=p;var m=f.cloneContents(),v=m.querySelectorAll("["+qe+"]");c=m.textContent.length-v.length}else{var y=l.closest(He.VOID);if(!y)return null;if(!(u=y.querySelector(He.LEAF)))return null;c=(d=u).textContent.length}c===d.textContent.length&&l.hasAttribute(qe)&&c--;var b=u.getAttribute(Fe);if(!b)return null;var _=Ze.parse(b).key,w=n.value;return w.document.hasDescendant(_)?w.document.createPoint({key:_,offset:c}):null}function _n(e,t,n){for(var r=e.childNodes,i=r[t],o=t,a=!1,s=!1;(8===i.nodeType||1===i.nodeType&&0===i.childNodes.length||1===i.nodeType&&"false"===i.getAttribute("contenteditable"))&&(!a||!s);)o>=r.length?(a=!0,o=t-1,n="backward"):o<0?(s=!0,o=t+1,n="forward"):(i=r[o],"forward"===n&&o++,"backward"===n&&o--);return i||null}function wn(e,t){h(!1,"As of slate-react@0.22 the `findRange(selection)` helper is deprecated in favor of `editor.findRange(selection)`."),Object(xe.a)(!s.Value.isValue(t),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`.");var n=e.anchorNode||e.startContainer;if(!n)return null;var r=g()(n);(e instanceof r.Range||r.StaticRange&&e instanceof r.StaticRange)&&(e={anchorNode:e.startContainer,anchorOffset:e.startOffset,focusNode:e.endContainer,focusOffset:e.endOffset});var i=e,o=i.anchorNode,a=i.anchorOffset,l=i.focusNode,u=i.focusOffset,c=i.isCollapsed,d=t.value,f=bn(o,a,t),p=c?f:bn(l,u,t);return f&&p?d.document.createRange({anchor:f,focus:p}):null}function xn(e,t){h(!1,"As of slate-react@0.22 the `getEventRange(event, editor)` helper is deprecated in favor of `editor.findEventRange(event)`."),Object(xe.a)(!s.Value.isValue(t),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`."),e.nativeEvent&&(e=e.nativeEvent);var n=e,r=n.clientX,i=n.clientY,o=n.target;if(null==r||null==i)return null;var a=t.value.document,l=yn(e.target,t);if(!l)return null;var u=a.getNode(l);if(t.isVoid(u)){var c=o.getBoundingClientRect(),d="inline"===u.object?r-c.left<c.left+c.width-r:i-c.top<c.top+c.height-i,f=a.createRange(),p=d?"moveToEndOfNode":"moveToStartOfNode",m=a[d?"getPreviousText":"getNextText"](l);return m?f[p](m):null}var v=g()(o),y=void 0;if(v.document.caretRangeFromPoint)y=v.document.caretRangeFromPoint(r,i);else if(v.document.caretPositionFromPoint){var b=v.document.caretPositionFromPoint(r,i);(y=v.document.createRange()).setStart(b.offsetNode,b.offset),y.setEnd(b.offsetNode,b.offset)}else if(v.document.body.createTextRange){y=v.document.body.createTextRange();try{y.moveToPoint(r,i)}catch(e){return null}}var _=wn(y,t);return _||null}pn.propTypes=Ge({autoCorrect:a.a.bool,autoFocus:a.a.bool,className:a.a.string,defaultValue:u.value,id:a.a.string,onChange:a.a.func,options:a.a.object,placeholder:a.a.any,plugins:a.a.array,readOnly:a.a.bool,role:a.a.string,schema:a.a.object,spellCheck:a.a.bool,style:a.a.object,tabIndex:a.a.number,value:u.value},Re.reduce((function(e,t){return e[t]=a.a.func,e}),{}),["decorateNode","renderAnnotation","renderBlock","renderDecoration","renderDocument","renderEditor","renderInline","renderMark"].reduce((function(e,t){return e[t]=a.a.func,e}),{})),pn.defaultProps={autoFocus:!1,autoCorrect:!0,onChange:function(){},options:{},placeholder:"",plugins:[],readOnly:!1,schema:{},spellCheck:!0};var kn={Editor:pn,cloneFragment:Bt,findDOMNode:hn,findDOMPoint:mn,findDOMRange:gn,findNode:vn,findPath:yn,findPoint:bn,findRange:wn,getEventRange:xn,getEventTransfer:$t,setEventTransfer:Yt,ReactPlugin:dn};t.default=kn},function(e,t,n){"use strict";n.r(t),n.d(t,"createRegularPolygon",(function(){return B})),n.d(t,"createBox",(function(){return z}));var r=n(14),i=n(178),o=n(28),a=n(117),s=n(35),l=n(79),u=n(9),c=n(50),d=n(36),f=n(3),p=n(31),h=n(10),m=n(62),g=n(72),v=function(e){function t(t,n,r){if(e.call(this),void 0!==r&&void 0===n)this.setFlatCoordinates(r,t);else{var i=n||0;this.setCenterAndRadius(t,i,r)}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),void 0,this.layout)},t.prototype.closestPointXY=function(e,t,n,r){var i=this.flatCoordinates,o=e-i[0],a=t-i[1],s=o*o+a*a;if(s<r){if(0===s)for(var l=0;l<this.stride;++l)n[l]=i[l];else{var u=this.getRadius()/Math.sqrt(s);n[0]=i[0]+u*o,n[1]=i[1]+u*a;for(var c=2;c<this.stride;++c)n[c]=i[c]}return n.length=this.stride,s}return r},t.prototype.containsXY=function(e,t){var n=this.flatCoordinates,r=e-n[0],i=t-n[1];return r*r+i*i<=this.getRadiusSquared_()},t.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.computeExtent=function(e){var t=this.flatCoordinates,n=t[this.stride]-t[0];return Object(f.k)(t[0]-n,t[1]-n,t[0]+n,t[1]+n,e)},t.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},t.prototype.getRadiusSquared_=function(){var e=this.flatCoordinates[this.stride]-this.flatCoordinates[0],t=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return e*e+t*t},t.prototype.getType=function(){return h.a.CIRCLE},t.prototype.intersectsExtent=function(e){var t=this.getExtent();if(Object(f.F)(e,t)){var n=this.getCenter();return e[0]<=n[0]&&e[2]>=n[0]||(e[1]<=n[1]&&e[3]>=n[1]||Object(f.t)(e,this.intersectsCoordinate,this))}return!1},t.prototype.setCenter=function(e){var t=this.stride,n=this.flatCoordinates[t]-this.flatCoordinates[0],r=e.slice();r[t]=r[0]+n;for(var i=1;i<t;++i)r[t+i]=e[i];this.setFlatCoordinates(this.layout,r),this.changed()},t.prototype.setCenterAndRadius=function(e,t,n){this.setLayout(n,e,0),this.flatCoordinates||(this.flatCoordinates=[]);var r=this.flatCoordinates,i=Object(g.a)(r,0,e,this.stride);r[i++]=r[0]+t;for(var o=1,a=this.stride;o<a;++o)r[i++]=r[o];r.length=i,this.changed()},t.prototype.getCoordinates=function(){return null},t.prototype.setCoordinates=function(e,t){},t.prototype.setRadius=function(e){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+e,this.changed()},t}(m.a);v.prototype.transform;var y=v,b=n(128),_=n(304),w=n(204),x=n(306),k=n(148),E=n(114),S=n(80),O=n(68),T=n(237),C=n(408),A=n(410),P=n(239),R="Point",M="LineString",I="Polygon",j="Circle",D="drawstart",L="drawend",N=function(e){function t(t,n){e.call(this,t),this.feature=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(c.a),F=function(e){function t(t){var n=t;n.stopDown||(n.stopDown=p.a),e.call(this,n),this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.freehand_=!1,this.source_=t.source?t.source:null,this.features_=t.features?t.features:null,this.snapTolerance_=t.snapTolerance?t.snapTolerance:12,this.type_=t.type,this.mode_=function(e){var t;e===h.a.POINT||e===h.a.MULTI_POINT?t=R:e===h.a.LINE_STRING||e===h.a.MULTI_LINE_STRING?t=M:e===h.a.POLYGON||e===h.a.MULTI_POLYGON?t=I:e===h.a.CIRCLE&&(t=j);return t}(this.type_),this.stopClick_=!!t.stopClick,this.minPoints_=t.minPoints?t.minPoints:this.mode_===I?3:2,this.maxPoints_=t.maxPoints?t.maxPoints:1/0,this.finishCondition_=t.finishCondition?t.finishCondition:p.b;var r,i=t.geometryFunction;if(!i)if(this.type_===h.a.CIRCLE)i=function(e,t){var n=t||new y([NaN,NaN]),r=Object(l.e)(e[0],e[1]);return n.setCenterAndRadius(e[0],Math.sqrt(r)),n};else{var o,a=this.mode_;a===R?o=E.a:a===M?o=b.a:a===I&&(o=S.a),i=function(e,t){var n=t;return n?a===I?e[0].length?n.setCoordinates([e[0].concat([e[0][0]])]):n.setCoordinates([]):n.setCoordinates(e):n=new o(e),n}}this.geometryFunction_=i,this.dragVertexDelay_=void 0!==t.dragVertexDelay?t.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,this.overlay_=new C.default({source:new A.default({useSpatialIndex:!1,wrapX:!!t.wrapX&&t.wrapX}),style:t.style?t.style:(r=Object(P.b)(),function(e,t){return r[e.getGeometry().getType()]}),updateWhileInteracting:!0}),this.geometryName_=t.geometryName,this.condition_=t.condition?t.condition:d.f,this.freehandCondition_,t.freehand?this.freehandCondition_=d.b:this.freehandCondition_=t.freehandCondition?t.freehandCondition:d.g,Object(u.a)(this,Object(s.b)(T.a.ACTIVE),this.updateState_,this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setMap=function(t){e.prototype.setMap.call(this,t),this.updateState_()},t.prototype.getOverlay=function(){return this.overlay_},t.prototype.handleEvent=function(t){t.originalEvent.type===r.a.CONTEXTMENU&&t.preventDefault(),this.freehand_=this.mode_!==R&&this.freehandCondition_(t);var n=t.type===o.a.POINTERMOVE,i=!0;!this.freehand_&&this.lastDragTime_&&t.type===o.a.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0));return this.freehand_&&t.type===o.a.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(t),i=!1):this.freehand_&&t.type===o.a.POINTERDOWN?i=!1:n?(i=t.type===o.a.POINTERMOVE)&&this.freehand_?i=this.handlePointerMove_(t):(t.pointerEvent.pointerType==k.b||t.type===o.a.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(t):t.type===o.a.DBLCLICK&&(i=!1),e.prototype.handleEvent.call(this,t)&&i},t.prototype.handleDownEvent=function(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e),!0):!!this.condition_(e)&&(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new a.a(o.a.POINTERMOVE,e.map,e.pointerEvent,!1,e.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=e.pixel,!0)},t.prototype.handleUpEvent=function(e){var t=!0;this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(e);var n=this.mode_===j;return this.shouldHandle_?(this.finishCoordinate_?this.freehand_||n?this.finishDrawing():this.atFinish_(e)?this.finishCondition_(e)&&this.finishDrawing():this.addToDrawing_(e):(this.startDrawing_(e),this.mode_===R&&this.finishDrawing()),t=!1):this.freehand_&&(this.finishCoordinate_=null,this.abortDrawing_()),!t&&this.stopClick_&&e.stopPropagation(),t},t.prototype.handlePointerMove_=function(e){if(this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var t=this.downPx_,n=e.pixel,r=t[0]-n[0],i=t[1]-n[1],o=r*r+i*i;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return!0}return this.finishCoordinate_?this.modifyDrawing_(e):this.createOrUpdateSketchPoint_(e),!0},t.prototype.atFinish_=function(e){var t=!1;if(this.sketchFeature_){var n=!1,r=[this.finishCoordinate_];if(this.mode_===M)n=this.sketchCoords_.length>this.minPoints_;else if(this.mode_===I){var i=this.sketchCoords_;n=i[0].length>this.minPoints_,r=[i[0][0],i[0][i[0].length-2]]}if(n)for(var o=e.map,a=0,s=r.length;a<s;a++){var l=r[a],u=o.getPixelFromCoordinate(l),c=e.pixel,d=c[0]-u[0],f=c[1]-u[1],p=this.freehand_?1:this.snapTolerance_;if(t=Math.sqrt(d*d+f*f)<=p){this.finishCoordinate_=l;break}}}return t},t.prototype.createOrUpdateSketchPoint_=function(e){var t=e.coordinate.slice();this.sketchPoint_?this.sketchPoint_.getGeometry().setCoordinates(t):(this.sketchPoint_=new i.a(new E.a(t)),this.updateSketchFeatures_())},t.prototype.startDrawing_=function(e){var t=e.coordinate;this.finishCoordinate_=t,this.mode_===R?this.sketchCoords_=t.slice():this.mode_===I?(this.sketchCoords_=[[t.slice(),t.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[t.slice(),t.slice()],this.sketchLineCoords_&&(this.sketchLine_=new i.a(new b.a(this.sketchLineCoords_)));var n=this.geometryFunction_(this.sketchCoords_);this.sketchFeature_=new i.a,this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(n),this.updateSketchFeatures_(),this.dispatchEvent(new N(D,this.sketchFeature_))},t.prototype.modifyDrawing_=function(e){var t,n,r,o=e.coordinate,a=this.sketchFeature_.getGeometry();(this.mode_===R?n=this.sketchCoords_:this.mode_===I?(n=(t=this.sketchCoords_[0])[t.length-1],this.atFinish_(e)&&(o=this.finishCoordinate_.slice())):n=(t=this.sketchCoords_)[t.length-1],n[0]=o[0],n[1]=o[1],this.geometryFunction_(this.sketchCoords_,a),this.sketchPoint_)&&this.sketchPoint_.getGeometry().setCoordinates(o);if(a.getType()==h.a.POLYGON&&this.mode_!==I){this.sketchLine_||(this.sketchLine_=new i.a);var s=a.getLinearRing(0);(r=this.sketchLine_.getGeometry())?(r.setFlatCoordinates(s.getLayout(),s.getFlatCoordinates()),r.changed()):(r=new b.a(s.getFlatCoordinates(),s.getLayout()),this.sketchLine_.setGeometry(r))}else this.sketchLineCoords_&&(r=this.sketchLine_.getGeometry()).setCoordinates(this.sketchLineCoords_);this.updateSketchFeatures_()},t.prototype.addToDrawing_=function(e){var t,n,r=e.coordinate,i=this.sketchFeature_.getGeometry();this.mode_===M?(this.finishCoordinate_=r.slice(),(n=this.sketchCoords_).length>=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(r.slice()),this.geometryFunction_(n,i)):this.mode_===I&&((n=this.sketchCoords_[0]).length>=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(r.slice()),t&&(this.finishCoordinate_=n[0]),this.geometryFunction_(this.sketchCoords_,i)),this.updateSketchFeatures_(),t&&this.finishDrawing()},t.prototype.removeLastPoint=function(){if(this.sketchFeature_){var e,t=this.sketchFeature_.getGeometry();this.mode_===M?((e=this.sketchCoords_).splice(-2,1),this.geometryFunction_(e,t),e.length>=2&&(this.finishCoordinate_=e[e.length-2].slice())):this.mode_===I&&((e=this.sketchCoords_[0]).splice(-2,1),this.sketchLine_.getGeometry().setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t)),0===e.length&&(this.finishCoordinate_=null),this.updateSketchFeatures_()}},t.prototype.finishDrawing=function(){var e=this.abortDrawing_();if(e){var t=this.sketchCoords_,n=e.getGeometry();this.mode_===M?(t.pop(),this.geometryFunction_(t,n)):this.mode_===I&&(t[0].pop(),this.geometryFunction_(t,n),t=n.getCoordinates()),this.type_===h.a.MULTI_POINT?e.setGeometry(new w.a([t])):this.type_===h.a.MULTI_LINE_STRING?e.setGeometry(new _.a([t])):this.type_===h.a.MULTI_POLYGON&&e.setGeometry(new x.a([t])),this.dispatchEvent(new N(L,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}},t.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var e=this.sketchFeature_;return e&&(this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0)),e},t.prototype.extend=function(e){var t=e.getGeometry();this.sketchFeature_=e,this.sketchCoords_=t.getCoordinates();var n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.updateSketchFeatures_(),this.dispatchEvent(new N(D,this.sketchFeature_))},t.prototype.updateSketchFeatures_=function(){var e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);var t=this.overlay_.getSource();t.clear(!0),t.addFeatures(e)},t.prototype.updateState_=function(){var e=this.getMap(),t=this.getActive();e&&t||this.abortDrawing_(),this.overlay_.setMap(t?e:null)},t}(O.b);function B(e,t){return function(n,r){var i=n[0],o=n[1],a=Math.sqrt(Object(l.e)(i,o)),s=r||Object(S.b)(new y(i),e),u=t;if(!t){var c=o[0]-i[0],d=o[1]-i[1];u=Math.atan(d/c)-(c<0?Math.PI:0)}return Object(S.d)(s,i,a,u),s}}function z(){return function(e,t){var n=Object(f.b)(e),r=[[Object(f.v)(n),Object(f.w)(n),Object(f.D)(n),Object(f.C)(n),Object(f.v)(n)]],i=t;return i?i.setCoordinates(r):i=new S.a(r),i}}t.default=F},function(e,t,n){var r=n(230),i=n(76);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},function(e,t,n){"use strict";n.r(t);var r=n(85),i=n(108),o=n(301),a=n(22),s=n(239),l="renderOrder",u=function(e){function t(t){var n=t||{},i=Object(a.a)({},n);delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,e.call(this,i),this.declutter_=void 0!==n.declutter&&n.declutter,this.renderBuffer_=void 0!==n.renderBuffer?n.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(n.style),this.updateWhileAnimating_=void 0!==n.updateWhileAnimating&&n.updateWhileAnimating,this.updateWhileInteracting_=void 0!==n.updateWhileInteracting&&n.updateWhileInteracting,this.renderMode_=n.renderMode||o.a.VECTOR,this.type=r.a.VECTOR}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDeclutter=function(){return this.declutter_},t.prototype.setDeclutter=function(e){this.declutter_=e},t.prototype.getRenderBuffer=function(){return this.renderBuffer_},t.prototype.getRenderOrder=function(){return this.get(l)},t.prototype.getStyle=function(){return this.style_},t.prototype.getStyleFunction=function(){return this.styleFunction_},t.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},t.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},t.prototype.setRenderOrder=function(e){this.set(l,e)},t.prototype.setStyle=function(e){this.style_=void 0!==e?e:s.a,this.styleFunction_=null===e?void 0:Object(s.c)(this.style_),this.changed()},t.prototype.getRenderMode=function(){return this.renderMode_},t}(i.a);u.prototype.getSource,t.default=u},function(e,t,n){
+/**
+ * @license uploadcare-widget v3.10.2
+ *
+ * Copyright (c) 2020 Uploadcare, Inc.
+ *
+ * This source code is licensed under the BSD 2-Clause License
+ * found in the LICENSE file in the root directory of this source tree.
+ */
+e.exports=function(e){"use strict";function t(e){return(t="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 n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(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&&f(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?p(e):t}function m(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,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function g(e,t,n){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||b(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 y(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||b(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.")}()}function b(e,t){if(e){if("string"==typeof e)return _(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)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var w=function(){return"object"===("undefined"==typeof window?"undefined":t(window))},x=Object.freeze({__proto__:null,isWindowDefined:w});w()&&window.XDomainRequest&&e.ajaxTransport((function(e){var t;if(e.crossDomain&&e.async)return e.timeout&&(e.xdrTimeout=e.timeout,delete e.timeout),{send:function(n,r){function i(e,n,i,o){t.onload=t.onerror=t.ontimeout=function(){},t=void 0,r(e,n,i,o)}(t=new XDomainRequest).onload=function(){i(200,"OK",{text:t.responseText},"Content-Type: "+t.contentType)},t.onerror=function(){i(404,"Not Found")},t.onprogress=function(){},t.ontimeout=function(){i(0,"timeout")},t.timeout=e.xdrTimeout||Number.MAX_VALUE,t.open(e.type,e.url.replace(/^https?:/,"")),t.send(e.hasContent&&e.data||null)},abort:function(){t&&(t.onerror=function(){},t.abort())}}}));var k=w()&&!!(window.File&&window.FileList&&window.FileReader),E=w()&&!(!window.FormData||!k),S=w()&&function(){var e;return"draggable"in(e=document.createElement("div"))||"ondragstart"in e&&"ondrop"in e}(),O=w()&&function(){var e;return!(!(e=document.createElement("canvas")).getContext||!e.getContext("2d"))}(),T=k&&S,C=null,A=w()&&/^[^(]+\(iP(?:hone|od|ad);\s*(.+?)\)/.exec(navigator.userAgent);if(A){var P=/OS (\d)_(\d)/.exec(A[1]);P&&(C=+P[1]+P[2]/10)}var R=!1;try{w()&&new window.Blob&&(R=window.Blob)}catch(e){}var M,I,j,D,L,N,F,B,z,U,q,H,W,V,$,G,K,Y,Q,X=w()&&(window.URL||window.webkitURL||!1),J=X&&X.createObjectURL&&X,Z=w()&&(null!=window.FileReader?window.FileReader.prototype.readAsArrayBuffer:void 0)&&window.FileReader,ee=function(){var e;try{var t;return null!=(e=window.console)&&"function"==typeof e.log?(t=e).log.apply(t,arguments):void 0}catch(e){}},te=function(){var e;if(!(null!=(e=window.console)?e.debug:void 0))return ee.apply(void 0,["Debug:"].concat(Array.prototype.slice.call(arguments)));try{var t;return(t=window.console).debug.apply(t,arguments)}catch(e){}},ne=function(){var e;if(!(null!=(e=window.console)?e.warn:void 0))return ee.apply(void 0,["Warning:"].concat(Array.prototype.slice.call(arguments)));try{var t;return(t=window.console).warn.apply(t,arguments)}catch(e){}},re={},ie=function(e){if(null==re[e])return re[e]=!0,ne(e)},oe=[].indexOf,ae=function(e){var t,n,r,i;for(i=[],n=0,r=e.length;n<r;n++)t=e[n],oe.call(i,t)<0&&i.push(t);return i},se=function(e){return setTimeout(e,0)},le=function(e,t){for(var n;t;)n=e%t,e=t,t=n;return e},ue=function(e){var t,n;return t=!1,n=null,function(){return t||(n=e.apply(this,arguments),t=!0),n}},ce=function(t){return e.Deferred().resolve(t).promise()},de=function(t,n,r,i){var o,a;return a=e.Deferred(),o=function(e,t){return e&&t?function(){return t.call(this,e.apply(this,arguments))}:e||t},t.then(o(n,a.resolve),o(r,a.reject),o(i,a.notify)),a.promise()},fe=function(t,n){var r;return r={},e.each(n,(function(n,i){var o=t[i];e.isFunction(o)?r[i]=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var a=o.apply(t,n);return a===t?r:a}:r[i]=o})),r},pe=function(e){return e.replace(/([A-Z])/g,"_$1").toUpperCase()},he=function(e){var t;return(t=e.add).add=e.add,t.remove=e.remove,t},me=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},ge=/^(?:([^:/?#]+):)?(?:\/\/([^/?#]*))?([^?#]*)\??([^#]*)#?(.*)$/,ve=/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/i,ye=new RegExp("".concat(ve.source,"~[0-9]+"),"i"),be=new RegExp("^/?(".concat(ve.source,")(?:/(-/(?:[^/]+/)+)?([^/]*))?$"),"i"),_e=function(e){return be.exec(ge.exec(e)[3])},we=function(e){return e.replace(/[\\-\\[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},xe=function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"i";return n=e.map(t.split("*"),we),new RegExp("^"+n.join(".+")+"$",r)},ke=function(e){var t;return"http:"!==(t=document.location.protocol)&&(t="https:"),e.replace(/^\/\//,t+"//").replace(/\/+$/,"")},Ee=function(e,t){if(e.length>t){var n=Math.ceil((t-3)/2),r=Math.floor((t-3)/2);return e.slice(0,n)+"..."+e.slice(-r)}return e},Se=function(e,t,n){var r,i;return e[0]>t[0]||e[1]>t[1]||n?(i=t[0]/e[0],r=t[1]/e[1],!t[0]||t[1]&&i>r?[Math.round(r*e[0]),t[1]]:[t[0],Math.round(i*e[1])]):e.slice()},Oe=function(t,n,r,i){var o,a,s,l,u,c,d;if(c=i.width,a=i.height,l=n.preferedSize,s="",(d=c===r[0]&&a===r[1])||(s+="-/crop/".concat(c,"x").concat(a,"/").concat(i.left,",").concat(i.top,"/")),o=n.downscale&&(c>l[0]||a>l[1]),u=n.upscale&&(c<l[0]||a<l[1]),o||u){var f=v(l,2);i.sw=f[0],i.sh=f[1],s+="-/resize/".concat(l.join("x"),"/")}else d||(s+="-/preview/");return(t=e.extend({},t)).cdnUrlModifiers=s,t.cdnUrl="".concat(t.originalUrl).concat(s||""),t.crop=i,t},Te=function(t,n,r){var i,o,a;return o=null,""===(i=n.inputAcceptTypes)&&(i=n.imagesOnly?"image/*":null),(a=function(){return o=(n.multiple?e('<input type="file" multiple>'):e('<input type="file">')).attr("accept",i).css({position:"absolute",top:0,opacity:0,margin:0,padding:0,width:"auto",height:"auto",cursor:t.css("cursor")}).on("change",(function(){return r(this),e(this).hide(),a()})),t.append(o)})(),t.css({position:"relative",overflow:"hidden"}).mousemove((function(t){var n,r,i,a=e(this).offset();return n=a.left,r=a.top,i=o.width(),o.css({left:t.pageX-n-i+10,top:t.pageY-r-10})}))},Ce=function(t,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return""===(i=n.inputAcceptTypes)&&(i=n.imagesOnly?"image/*":null),e(n.multiple?'<input type="file" multiple>':'<input type="file">').attr("accept",i).attr(o).css({position:"fixed",bottom:0,opacity:0}).on("change",(function(){return r(this),e(this).remove()})).appendTo(t).focus().click().hide()},Ae="B KB MB GB TB PB EB ZB YB".split(" "),Pe=function(e){var t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(e=parseInt(e,10),isNaN(e))return o;for(t=2,r=0,i=1e3-5*Math.pow(10,2-Math.max(t,3));e>i&&r<Ae.length-1;)r++,e/=1024;return e+=1e-15,n=Math.max(0,t-Math.floor(e).toFixed(0).length),e=Number(e.toFixed(n)),"".concat(a).concat(e," ").concat(Ae[r]).concat(s)},Re={dataType:"json",crossDomain:!0,cache:!1},Me=function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return e.ajax(e.extend({url:t,type:n,data:r},i,Re)).then((function(t){var n;return t.error?(n=t.error.content||t.error,e.Deferred().reject(n)):t}),(function(e,n,r){var i;return i="".concat(n," (").concat(r,")"),ne("JSONP unexpected error: ".concat(i," while loading ").concat(t)),i}))},Ie=function(e,t,n,r){var i,o,a,s,l,u;if(window.HTMLCanvasElement.prototype.toBlob)return e.toBlob(r,t,n);for(a=(a=e.toDataURL(t,n)).split(","),o=window.atob(a[1]),i=new Uint8Array(o.length),s=l=0,u=o.length;l<u;s=l+=1)i[s]=o.charCodeAt(s);return r(new window.Blob([i],{type:/:(.+\/.+);/.exec(a[0])[1]}))},je=function(e){var t,n,r;return r=0,t=[],n=function(){var e;return t.length?(e=t.shift(),se((function(){return e(n)}))):r-=1},function(i){return!e||r<e?(r+=1,se((function(){return i(n)}))):t.push(i)}},De=[["notify","progress",2],["resolve","done",0],["reject","fail",1]],Le=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.Deferred((function(n){return e.each(De,(function(i,o){var a;return a=e.isFunction(r[o[2]])&&r[o[2]],t[o[1]]((function(){var r;return(r=a&&a.apply(this,arguments))&&e.isFunction(r.promise)?r.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===t?n.promise():this,a?[r]:arguments)}))}))})).promise()},Ne=[].indexOf;L={live:!0,manualStart:!1,locale:null,localePluralize:null,localeTranslations:null,systemDialog:!1,crop:!1,previewStep:!1,imagesOnly:!1,clearable:!1,multiple:!1,multipleMax:1e3,multipleMin:1,multipleMaxStrict:!1,imageShrink:!1,pathValue:!0,tabs:"file camera url facebook gdrive gphotos dropbox instagram evernote flickr onedrive",preferredTypes:"",inputAcceptTypes:"",doNotStore:!1,publicKey:null,secureSignature:"",secureExpire:"",pusherKey:"79ae88bd931ea68464d9",cdnBase:"https://ucarecdn.com",urlBase:"https://upload.uploadcare.com",socialBase:"https://social.uploadcare.com",previewProxy:null,previewUrlCallback:null,imagePreviewMaxSize:26214400,multipartMinSize:10485760,multipartPartSize:5242880,multipartMinLastPartSize:1048576,multipartConcurrency:4,multipartMaxAttempts:3,parallelDirectUploads:10,passWindowOpen:!1,cameraMirrorDefault:!0,videoPreferredMimeTypes:null,audioBitsPerSecond:null,videoBitsPerSecond:null,scriptBase:"//ucarecdn.com/widget/".concat("3.10.2","/uploadcare/"),debugUploads:!1,integration:""},K={multipleMax:{from:0,to:1e3}},j={multipleMax:{min:1,max:1e3}},W={tabs:{all:"file camera url facebook gdrive gphotos dropbox instagram evernote flickr onedrive box vk huddle",default:L.tabs}},V=w()&&(document.currentScript||(Q=document.getElementsByTagName("script"))[Q.length-1]),(B=w()&&e(V).data("integration"))&&null!=B&&(L=e.extend(L,{integration:B})),$=function(t){return e.isArray(t)||(t=(t=e.trim(t))?t.split(" "):[]),t},M=function(e,t){var n,r,i,o,a,s,l,u,c=Object.prototype.hasOwnProperty;for(n=0,a=t.length;n<a;n++){if(o=t[n],u=l=$(e[o]),c.apply(W,[o]))for(u=[],i=0,s=l.length;i<s;i++)r=l[i],c.apply(W[o],[r])?u=u.concat($(W[o][r])):u.push(r);e[o]=ae(u)}return e},Y=function(e,t){var n,r,i;for(n=0,i=t.length;n<i;n++)null!=e[r=t[n]]&&(e[r]=ke(e[r]));return e},N=function(t,n){var r,i,o,a;for(r=0,o=n.length;r<o;r++)null!=t[i=n[r]]&&("string"==typeof(a=t[i])?(a=e.trim(a).toLowerCase(),t[i]=!("false"===a||"disabled"===a)):t[i]=!!a);return t},F=function(e,t){var n,r,i;for(n=0,i=t.length;n<i;n++)null!=e[r=t[n]]&&(e[r]=parseInt(e[r]));return e},z=function(e){return e._userAgent="UploadcareWidget/".concat("3.10.2","/").concat(e.publicKey," (JavaScript").concat(e.integration?"; ".concat(e.integration):"",")"),e},G=function(e,t){var n,r;for(n in t)r=t[n],null!=e[n]&&e[n]===r.from&&(e[n]=r.to);return e},I=function(e,t){var n,r,i;for(n in t){var o=t[n];i=o.min,r=o.max,null!=e[n]&&(e[n]=Math.min(Math.max(e[n],i),r))}return e},q=function(t){var n;return{downscale:"x"===(n=/^([0-9]+)([x:])([0-9]+)\s*(|upscale|minimum)$/i.exec(e.trim(t.toLowerCase()))||[])[2],upscale:!!n[4],notLess:"minimum"===n[4],preferedSize:n.length?[+n[1],+n[3]]:void 0}},H=function(t){var n,r;return!!(n=/^([0-9]+)x([0-9]+)(?:\s+(\d{1,2}|100)%)?$/i.exec(e.trim(t.toLowerCase()))||[]).length&&((r=n[1]*n[2])>5e6?(ie("Shrinked size can not be larger than 5MP. "+"You have set ".concat(n[1],"x").concat(n[2]," (")+"".concat(Math.ceil(r/1e3/100)/10,"MP).")),!1):{quality:n[3]?n[3]/100:void 0,size:r})},D=function(e,t){var n,r,i,o;return this.previewProxy?(r=(i=!/\?/.test(this.previewProxy))||!/=$/.test(this.previewProxy),n=!i&&!/[&?=]$/.test(this.previewProxy),o=encodeURIComponent(e),r&&(o="url="+o),n&&(o="&"+o),i&&(o="?"+o),this.previewProxy+o):e},U=function(t){var n;return M(t,["tabs","preferredTypes","videoPreferredMimeTypes"]),Y(t,["cdnBase","socialBase","urlBase","scriptBase"]),N(t,["doNotStore","imagesOnly","multiple","clearable","pathValue","previewStep","systemDialog","debugUploads","multipleMaxStrict","cameraMirrorDefault"]),F(t,["multipleMax","multipleMin","multipartMinSize","multipartPartSize","multipartMinLastPartSize","multipartConcurrency","multipartMaxAttempts","parallelDirectUploads"]),G(t,K),I(t,j),z(t),!1===t.crop||e.isArray(t.crop)||(/^(disabled?|false|null)$/i.test(t.crop)?t.crop=!1:e.isPlainObject(t.crop)?t.crop=[t.crop]:t.crop=e.map((""+t.crop).split(","),q)),t.imageShrink&&!e.isPlainObject(t.imageShrink)&&(t.imageShrink=H(t.imageShrink)),(t.crop||t.multiple)&&(t.previewStep=!0),E||(t.systemDialog=!1),t.validators&&(t.validators=t.validators.slice()),t.previewProxy&&!t.previewUrlCallback&&(t.previewUrlCallback=D),-1!==(n=t.tabs.indexOf("skydrive"))&&(t.tabs[n]="onedrive"),t};var Fe,Be=function(){var e,t,n;for(e in t={},L)null!=(n=window["UPLOADCARE_".concat(pe(e))])&&(t[e]=n);return t},ze=ue((function(t,n){var r;return n||(L=e.extend(L,Be())),r=U(e.extend(L,t||{})),qe.fire(r),r})),Ue=function(t){var n;return n=e.extend({},ze()),e.isEmptyObject(t)||(n=U(e.extend(n,t))),n},qe=w()&&e.Callbacks("once memory"),He=function(){function e(){n(this,e),this.urls=[],this.styles=[]}return o(e,[{key:"addUrl",value:function(e){if(!/^https?:\/\//i.test(e))throw new Error("Embedded urls should be absolute. "+e);if(!(Ne.call(this.urls,e)>=0))return this.urls.push(e)}},{key:"addStyle",value:function(e){return this.styles.push(e)}}]),e}(),We=function(t,n){var r;return r=e.Deferred(),n&&(t.src=n),t.complete?r.resolve(t):(e(t).one("load",(function(){return r.resolve(t)})),e(t).one("error",(function(){return r.reject(t)}))),r.promise()},Ve=function t(n){return e.isArray(n)?e.when.apply(null,e.map(n,t)):n.src?We(n):We(new window.Image,n)},$e=function(t){var n=e.Deferred();return e("<video/>").on("loadeddata",n.resolve).on("error",n.reject).attr("src",t).get(0).load(),n.promise()},Ge=function(){var t=e.Deferred();if(void 0!==Fe)t.resolve(Fe);else{var n=new window.Image;n.onload=function(){Fe=n.naturalWidth<n.naturalHeight,n.src="//:0",t.resolve(Fe)},n.src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k="}return t.promise()},Ke=w()&&window.DataView,Ye=je(1),Qe=function(t,n){var r;return r=e.Deferred(),J&&Ke&&R?(Ye((function(i){var o;return r.always(i),(o=Ve(J.createObjectURL(t))).always((function(e){return J.revokeObjectURL(e.src)})),o.fail((function(){return r.reject("not image")})),o.done((function(i){r.notify(.1);var a=e.when(tt(t),Ge()).always((function(e,t){var s;return r.notify(.2),s="resolved"===a.state(),(o=Xe(i,n)).progress((function(e){return r.notify(.2+.6*e)})),o.fail(r.reject),o.done((function(i){var a,l;return a="image/jpeg",l=n.quality||.8,!s&&ot(i)&&(a="image/png",l=void 0),Ie(i,a,l,(function(n){return i.width=i.height=1,r.notify(.9),e?(t&&nt(e,1),(o=et(n,225,[e.buffer])).done(r.resolve),o.fail((function(){return r.resolve(n)}))):r.resolve(n)}))})),null}));return a}))})),r.promise()):r.reject("support")},Xe=function(t,n){var r,i,o,a,s,l,u,c,d;return r=e.Deferred(),.71*t.width*t.height*.71<n.size?r.reject("not required"):(c=o=t.width,u=t.height,a=c/u,d=Math.floor(Math.sqrt(n.size*a)),i=Math.floor(n.size/Math.sqrt(n.size*a)),s=function(){if(!(c<=d))return se((function(){var e;return c=Math.round(.71*c),u=Math.round(.71*u),.71*c<d&&(c=d,u=i),c*u>5e6&&(c=Math.floor(Math.sqrt(5e6*a)),u=Math.floor(5e6/Math.sqrt(5e6*a))),c>4096&&(c=4096,u=Math.round(c/a)),u>4096&&(u=4096,c=Math.round(a*u)),(e=document.createElement("canvas")).width=c,e.height=u,e.getContext("2d").drawImage(t,0,0,c,u),t.src="//:0",t.width=t.height=1,t=e,r.notify((o-c)/(o-d)),s()}));r.resolve(t)},l=function(){var e,n;return(e=document.createElement("canvas")).width=d,e.height=i,(n=e.getContext("2d")).imageSmoothingQuality="high",n.drawImage(t,0,0,d,i),t.src="//:0",t.width=t.height=1,r.resolve(e)},"imageSmoothingQuality"in document.createElement("canvas").getContext("2d")?l():s(),r.promise())},Je=function(t,n,r,i,o){var a,s;return a=e.Deferred(),J?((s=Ve(J.createObjectURL(t))).always((function(e){return J.revokeObjectURL(e.src)})),s.fail((function(){return a.reject("not image")})),s.done((function(s){return a.always((function(){s.src="//:0"})),o&&s.width*s.height>o?a.reject("max source"):e.when(tt(t),Ge()).always((function(e,t){var o=t?1:rt(e)||1,l=o>4,u=l?[s.height,s.width]:[s.width,s.height],c=v(Se(u,[n,r]),2),d=c[0],f=c[1],p=[[1,0,0,1,0,0],[-1,0,0,1,d,0],[-1,0,0,-1,d,f],[1,0,0,-1,0,f],[0,1,1,0,0,0],[0,1,-1,0,d,0],[0,-1,-1,0,d,f],[0,-1,1,0,0,f]][o-1];if(!p)return a.reject("bad image");var h=document.createElement("canvas");h.width=d,h.height=f;var m=h.getContext("2d");if(m.transform.apply(m,p),l){var g=[f,d];d=g[0],f=g[1]}return i&&(m.fillStyle=i,m.fillRect(0,0,d,f)),m.drawImage(s,0,0,d,f),a.resolve(h,u)}))})),a.promise()):a.reject("support")},Ze=function(t){var n,r,i,o,a;return a=function(e,t){var r;return(r=new Z).onload=function(){return t(new Ke(r.result))},r.onerror=function(e){return n.reject("reader",e)},r.readAsArrayBuffer(e)},i=function(){return a(t.slice(r,r+128),(function(e){var t,n,i;for(t=n=0,i=e.byteLength;i>=0?n<i:n>i;t=i>=0?++n:--n)if(255===e.getUint8(t)){r+=t;break}return o()}))},o=function(){var e;return e=r,a(t.slice(r,r+=4),(function(o){var s,l;return 4!==o.byteLength||255!==o.getUint8(0)?n.reject("corrupted"):218===(l=o.getUint8(1))?n.resolve():(s=o.getUint16(2)-2,a(t.slice(r,r+=s),(function(t){return t.byteLength!==s?n.reject("corrupted"):(n.notify(e,s,l,t),i())})))}))},n=e.Deferred(),Z&&Ke?(r=2,a(t.slice(0,2),(function(e){return 65496!==e.getUint16(0)?n.reject("not jpeg"):i()})),n.promise()):n.reject("support")},et=function(t,n,r){var i,o,a,s;return i=e.Deferred(),a=[],o=[],(s=Ze(t)).fail(i.reject),s.progress((function(e,t,r){if(r===n)return a.push(e),o.push(t)})),s.done((function(){var e,s,l,u,c,d,f,p,h;for(f=[t.slice(0,2)],u=0,d=r.length;u<d;u++)e=r[u],(l=new Ke(new ArrayBuffer(4))).setUint16(0,65280+n),l.setUint16(2,e.byteLength+2),f.push(l.buffer),f.push(e);for(p=2,s=c=0,h=a.length;h>=0?c<h:c>h;s=h>=0?++c:--c)a[s]>p&&f.push(t.slice(p,a[s])),p=a[s]+o[s]+4;return f.push(t.slice(p,t.size)),i.resolve(new R(f,{type:t.type}))})),i.promise()},tt=function(t){var n,r;return n=null,(r=Ze(t)).progress((function(e,t,r,i){if(!n&&225===r&&i.byteLength>=14&&1165519206===i.getUint32(0)&&0===i.getUint16(4))return n=i})),r.then((function(){return n}),(function(t){return e.Deferred().reject(n,t)}))},nt=function(e,t){it(e,(function(n,r){return e.setUint16(n,t,r)}))},rt=function(e){return it(e,(function(t,n){return e.getUint16(t,n)}))},it=function(e,t){var n,r,i,o;if(!e||e.byteLength<14||1165519206!==e.getUint32(0)||0!==e.getUint16(4))return null;if(18761===e.getUint16(6))r=!0;else{if(19789!==e.getUint16(6))return null;r=!1}if(42!==e.getUint16(8,r))return null;for(i=8+e.getUint32(10,r),n=0,o=e.getUint16(i-2,r);o>=0?n<o:n>o;o>=0?++n:--n){if(e.byteLength<i+10)return null;if(274===e.getUint16(i,r))return t(i+8,r);i+=12}return null},ot=function(e){var t,n,r,i,o,a;for((t=document.createElement("canvas")).width=t.height=50,(n=t.getContext("2d")).drawImage(e,0,0,50,50),r=n.getImageData(0,0,50,50).data,t.width=t.height=1,i=o=3,a=r.length;o<a;i=o+=4)if(r[i]<254)return!0;return!1},at=function(){function t(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n(this,t),this.settings=r,this.sourceInfo=o,this.fileId=null,this.fileName=null,this.sanitizedName=null,this.fileSize=null,this.isStored=null,this.cdnUrlModifiers=null,this.isImage=null,this.imageInfo=null,this.mimeType=null,this.s3Bucket=null,(i=this.sourceInfo).source||(i.source=this.sourceName),this.__setupValidation(),this.__initApi()}return o(t,[{key:"__startUpload",value:function(){return e.Deferred().resolve()}},{key:"__completeUpload",value:function(){var e,t,n,r,i=this;return n=0,this.settings.debugUploads&&(te("Load file info.",this.fileId,this.settings.publicKey),t=setInterval((function(){return te("Still waiting for file ready.",n,i.fileId,i.settings.publicKey)}),5e3),this.apiDeferred.done((function(){return te("File uploaded.",n,i.fileId,i.settings.publicKey)})).always((function(){return clearInterval(t)}))),r=100,(e=function(){if("pending"===i.apiDeferred.state())return n+=1,i.__updateInfo().done((function(){return setTimeout(e,r),r+=50}))})()}},{key:"__updateInfo",value:function(){var e=this;return Me("".concat(this.settings.urlBase,"/info/"),"GET",{jsonerrors:1,file_id:this.fileId,pub_key:this.settings.publicKey,wait_is_ready:+(null===this.isImage)},{headers:{"X-UC-User-Agent":this.settings._userAgent}}).fail((function(t){return e.settings.debugUploads&&ee("Can't load file info. Probably removed.",e.fileId,e.settings.publicKey,t),e.__rejectApi("info")})).done(this.__handleFileData.bind(this))}},{key:"__handleFileData",value:function(e){if(this.fileName=e.original_filename,this.sanitizedName=e.filename,this.fileSize=e.size,this.isImage=e.is_image,this.imageInfo=e.image_info,this.mimeType=e.mime_type,this.isStored=e.is_stored,this.s3Bucket=e.s3_bucket,e.default_effects&&(this.cdnUrlModifiers="-/"+e.default_effects),this.s3Bucket&&this.cdnUrlModifiers&&this.__rejectApi("baddata"),this.__runValidators(),e.is_ready)return this.__resolveApi()}},{key:"__progressInfo",value:function(){var e;return{state:this.__progressState,uploadProgress:this.__progress,progress:"ready"===(e=this.__progressState)||"error"===e?1:.9*this.__progress,incompleteFileInfo:this.__fileInfo()}}},{key:"__fileInfo",value:function(){var e;return e=this.s3Bucket?"https://".concat(this.s3Bucket,".s3.amazonaws.com/").concat(this.fileId,"/").concat(this.sanitizedName):"".concat(this.settings.cdnBase,"/").concat(this.fileId,"/"),{uuid:this.fileId,name:this.fileName,size:this.fileSize,isStored:this.isStored,isImage:!this.s3Bucket&&this.isImage,originalImageInfo:this.imageInfo,mimeType:this.mimeType,originalUrl:this.fileId?e:null,cdnUrl:this.fileId?"".concat(e).concat(this.cdnUrlModifiers||""):null,cdnUrlModifiers:this.cdnUrlModifiers,sourceInfo:this.sourceInfo}}},{key:"__setupValidation",value:function(){if(this.validators=this.settings.validators||this.settings.__validators||[],this.settings.imagesOnly)return this.validators.push((function(e){if(!1===e.isImage)throw new Error("image")}))}},{key:"__runValidators",value:function(){var e,t,n,r,i,o,a;n=this.__fileInfo();try{for(i=this.validators,o=[],t=0,r=i.length;t<r;t++)a=i[t],o.push(a(n));return o}catch(t){return e=t,this.__rejectApi(e.message)}}},{key:"__initApi",value:function(){return this.apiDeferred=e.Deferred(),this.__progressState="uploading",this.__progress=0,this.__notifyApi()}},{key:"__notifyApi",value:function(){return this.apiDeferred.notify(this.__progressInfo())}},{key:"__rejectApi",value:function(e){return this.__progressState="error",this.__notifyApi(),this.apiDeferred.reject(e,this.__fileInfo())}},{key:"__resolveApi",value:function(){return this.__progressState="ready",this.__notifyApi(),this.apiDeferred.resolve(this.__fileInfo())}},{key:"__cancel",value:function(){return this.__rejectApi("user")}},{key:"__extendApi",value:function(e){var t=this;return e.cancel=this.__cancel.bind(this),e.pipe=e.then=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.__extendApi(Le.apply(void 0,[e].concat(r)))},e}},{key:"promise",value:function(){var e,t=this;return this.__apiPromise||(this.__apiPromise=this.__extendApi(this.apiDeferred.promise()),this.__runValidators(),"pending"===this.apiDeferred.state()&&((e=this.__startUpload()).done((function(){return t.__progressState="uploaded",t.__progress=1,t.__notifyApi(),t.__completeUpload()})),e.progress((function(e){if(e>t.__progress)return t.__progress=e,t.__notifyApi()})),e.fail((function(){return t.__rejectApi("upload")})),this.apiDeferred.always(e.reject))),this.__apiPromise}}]),t}(),st=null,lt=function(t){c(i,t);var r=m(i);function i(e){var t;return n(this,i),(t=r.apply(this,arguments)).__file=e,t.fileName=t.__file.name||"original",t.__notifyApi(),t}return o(i,[{key:"setFile",value:function(e){if(e&&(this.__file=e),this.sourceInfo.file=this.__file,this.__file)return this.fileSize=this.__file.size,this.fileType=this.__file.type||"application/octet-stream",this.settings.debugUploads&&te("Use local file.",this.fileName,this.fileType,this.fileSize),this.__runValidators(),this.__notifyApi()}},{key:"__startUpload",value:function(){var t,n,r,i=this;return this.apiDeferred.always((function(){return i.__file=null,i.__file})),this.__file.size>=this.settings.multipartMinSize&&R?(this.setFile(),this.multipartUpload()):(n=C,!this.settings.imageShrink||n&&n<8?(this.setFile(),this.directUpload()):(t=e.Deferred(),r=.4,Qe(this.__file,this.settings.imageShrink).progress((function(e){return t.notify(e*r)})).done(this.setFile.bind(this)).fail((function(){return i.setFile(),r*=.1})).always((function(){return t.notify(r),i.directUpload().done(t.resolve).fail(t.reject).progress((function(e){return t.notify(r+e*(1-r))}))})),t))}},{key:"__autoAbort",value:function(e){return this.apiDeferred.fail(e.abort),e}},{key:"directRunner",value:function(e){return st||(st=je(this.settings.parallelDirectUploads)),st(e)}},{key:"directUpload",value:function(){var t,n=this;return t=e.Deferred(),this.__file?this.fileSize>104857600?(this.__rejectApi("size"),t):(this.directRunner((function(r){var i;if(t.always(r),"pending"===n.apiDeferred.state())return(i=new window.FormData).append("UPLOADCARE_PUB_KEY",n.settings.publicKey),i.append("signature",n.settings.secureSignature),i.append("expire",n.settings.secureExpire),i.append("UPLOADCARE_STORE",n.settings.doNotStore?"":"auto"),i.append("file",n.__file,n.fileName),i.append("file_name",n.fileName),i.append("source",n.sourceInfo.source),n.__autoAbort(e.ajax({xhr:function(){var n;return n=e.ajaxSettings.xhr(),n.upload&&n.upload.addEventListener("progress",(function(e){return t.notify(e.loaded/e.total)}),!1),n},crossDomain:!0,type:"POST",url:"".concat(n.settings.urlBase,"/base/?jsonerrors=1"),headers:{"X-UC-User-Agent":n.settings._userAgent},contentType:!1,processData:!1,data:i,dataType:"json",error:t.reject,success:function(e){return(null!=e?e.file:void 0)?(n.fileId=e.file,t.resolve()):t.reject()}}))})),t):(this.__rejectApi("baddata"),t)}},{key:"multipartUpload",value:function(){var t,n=this;return t=e.Deferred(),this.__file?(this.multipartStart().done((function(e){return n.uploadParts(e.parts,e.uuid).done((function(){return n.multipartComplete(e.uuid).done((function(e){return n.fileId=e.uuid,n.__handleFileData(e),t.resolve()})).fail(t.reject)})).progress(t.notify).fail(t.reject)})).fail(t.reject),t):t}},{key:"multipartStart",value:function(){var e,t=this;return e={UPLOADCARE_PUB_KEY:this.settings.publicKey,signature:this.settings.secureSignature,expire:this.settings.secureExpire,filename:this.fileName,source:this.sourceInfo.source,size:this.fileSize,content_type:this.fileType,part_size:this.settings.multipartPartSize,UPLOADCARE_STORE:this.settings.doNotStore?"":"auto"},this.__autoAbort(Me("".concat(this.settings.urlBase,"/multipart/start/?jsonerrors=1"),"POST",e,{headers:{"X-UC-User-Agent":this.settings._userAgent}})).fail((function(n){if(t.settings.debugUploads)return ee("Can't start multipart upload.",n,e)}))}},{key:"uploadParts",value:function(t,n){var r,i,o,a,s,l,u,c,d,f,p=this;for(s=[],a=Date.now(),f=function(e,t){var n,i,o;if(s[e]=t,!(Date.now()-a<250)){for(a=Date.now(),o=0,n=0,i=s.length;n<i;n++)o+=t=s[n];return r.notify(o/p.fileSize)}},r=e.Deferred(),i=0,d=0,c=0,u=function(){var o,a,l,h,m;if(!(c>=p.fileSize))return l=c+p.settings.multipartPartSize,p.fileSize<l+p.settings.multipartMinLastPartSize&&(l=p.fileSize),a=p.__file.slice(c,l),c=l,h=d,i+=1,d+=1,o=0,(m=function(){if("pending"===p.apiDeferred.state())return s[h]=0,p.__autoAbort(e.ajax({xhr:function(){var t;return t=e.ajaxSettings.xhr(),t.responseType="text",t.upload&&t.upload.addEventListener("progress",(function(e){return f(h,e.loaded)}),!1),t},url:t[h],crossDomain:!0,type:"PUT",processData:!1,contentType:p.fileType,data:a,error:function(){return(o+=1)>p.settings.multipartMaxAttempts?(p.settings.debugUploads&&ee("Part #".concat(h," and file upload is failed."),n),r.reject()):(p.settings.debugUploads&&te("Part #".concat(h,"(").concat(o,") upload is failed."),n),m())},success:function(){if(i-=1,u(),!i)return r.resolve()}}))})()},o=0,l=this.settings.multipartConcurrency;l>=0?o<l:o>l;l>=0?++o:--o)u();return r}},{key:"multipartComplete",value:function(e){var t,n=this;return t={UPLOADCARE_PUB_KEY:this.settings.publicKey,uuid:e},this.__autoAbort(Me("".concat(this.settings.urlBase,"/multipart/complete/?jsonerrors=1"),"POST",t,{headers:{"X-UC-User-Agent":this.settings._userAgent}})).fail((function(t){if(n.settings.debugUploads)return ee("Can't complete multipart upload.",e,n.settings.publicKey,t)}))}}]),i}(at);lt.prototype.sourceName="local";var ut=function(t){c(i,t);var r=m(i);function i(t){var o;return n(this,i),(o=r.apply(this,arguments)).__input=t,o.fileId=me(),o.fileName=e(o.__input).val().split("\\").pop(),o.__notifyApi(),o}return o(i,[{key:"__startUpload",value:function(){var t,n,r,i;return t=e.Deferred(),i="".concat(this.settings.urlBase,"/iframe/"),r="uploadcare--iframe-".concat(this.fileId),this.__iframe=e("<iframe>").attr({id:r,name:r}).css("display","none").appendTo("body").on("load",t.resolve).on("error",t.reject),n=function(t,n){return e("<input/>",{type:"hidden",name:t,value:n})},e(this.__input).attr("name","file"),this.__iframeForm=e("<form>").attr({method:"POST",action:i,enctype:"multipart/form-data",target:r}).append(n("UPLOADCARE_PUB_KEY",this.settings.publicKey)).append(n("UPLOADCARE_SIGNATURE",this.settings.secureSignature)).append(n("UPLOADCARE_EXPIRE",this.settings.secureExpire)).append(n("UPLOADCARE_FILE_ID",this.fileId)).append(n("UPLOADCARE_STORE",this.settings.doNotStore?"":"auto")).append(n("UPLOADCARE_SOURCE",this.sourceInfo.source)).append(this.__input).css("display","none").appendTo("body").submit(),t.always(this.__cleanUp.bind(this))}},{key:"__cleanUp",value:function(){var e,t;return null!=(e=this.__iframe)&&e.off("load error").remove(),null!=(t=this.__iframeForm)&&t.remove(),this.__iframe=null,this.__iframeForm=null,this.__iframeForm}}]),i}(at);ut.prototype.sourceName="local-compat";var ct=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){
+/*!
+ * Pusher JavaScript Library v1.12.2
+ * http://pusherapp.com/
+ *
+ * Copyright 2011, Pusher
+ * Released under the MIT licence.
+ */
+var n=x.isWindowDefined;(function(){var e,t;(e=function(t,n){this.options=n||{},this.key=t,this.channels=new e.Channels,this.global_emitter=new e.EventsDispatcher;var r=this;this.checkAppKey(),this.connection=new e.Connection(this.key,this.options),this.connection.bind("connected",(function(){r.subscribeAll()})).bind("message",(function(e){var t,n=0===e.event.indexOf("pusher_internal:");e.channel&&(t=r.channel(e.channel))&&t.emit(e.event,e.data),n||r.global_emitter.emit(e.event,e.data)})).bind("disconnected",(function(){r.channels.disconnect()})).bind("error",(function(t){e.warn("Error",t)})),e.instances.push(this),e.isReady&&r.connect()}).instances=[],e.prototype={channel:function(e){return this.channels.find(e)},connect:function(){this.connection.connect()},disconnect:function(){this.connection.disconnect()},bind:function(e,t){return this.global_emitter.bind(e,t),this},bind_all:function(e){return this.global_emitter.bind_all(e),this},subscribeAll:function(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)},subscribe:function(e){var t=this,n=this.channels.add(e,this);return"connected"===this.connection.state&&n.authorize(this.connection.socket_id,this.options,(function(r,i){r?n.emit("pusher:subscription_error",i):t.send_event("pusher:subscribe",{channel:e,auth:i.auth,channel_data:i.channel_data})})),n},unsubscribe:function(e){this.channels.remove(e),"connected"===this.connection.state&&this.send_event("pusher:unsubscribe",{channel:e})},send_event:function(e,t,n){return this.connection.send_event(e,t,n)},checkAppKey:function(){null!==this.key&&void 0!==this.key||e.warn("Warning","You must pass your app key when you instantiate Pusher.")}},e.Util={extend:function e(t,n){for(var r in n)n[r]&&n[r].constructor&&n[r].constructor===Object?t[r]=e(t[r]||{},n[r]):t[r]=n[r];return t},stringify:function(){for(var e=["Pusher"],t=0;t<arguments.length;t++)"string"==typeof arguments[t]?e.push(arguments[t]):null==window.JSON?e.push(arguments[t].toString()):e.push(JSON.stringify(arguments[t]));return e.join(" : ")},arrayIndexOf:function(e,t){var n=Array.prototype.indexOf;if(null==e)return-1;if(n&&e.indexOf===n)return e.indexOf(t);for(i=0,l=e.length;i<l;i++)if(e[i]===t)return i;return-1}},e.debug=function(){e.log&&e.log(e.Util.stringify.apply(this,arguments))},e.warn=function(){if(window.console&&window.console.warn)window.console.warn(e.Util.stringify.apply(this,arguments));else{if(!e.log)return;e.log(e.Util.stringify.apply(this,arguments))}},e.VERSION="1.12.2",e.host="ws.pusherapp.com",e.ws_port=80,e.wss_port=443,e.channel_auth_endpoint="/pusher/auth",e.cdn_http="http://js.pusher.com/",e.cdn_https="https://d3dy5gmtp8yhk7.cloudfront.net/",e.dependency_suffix=".min",e.channel_auth_transport="ajax",e.activity_timeout=12e4,e.pong_timeout=3e4,e.isReady=!1,e.ready=function(){e.isReady=!0;for(var t=0,n=e.instances.length;t<n;t++)e.instances[t].connect()},function(){function t(){this._callbacks={}}function n(e){this.callbacks=new t,this.global_callbacks=[],this.failThrough=e}t.prototype.get=function(e){return this._callbacks[this._prefix(e)]},t.prototype.add=function(e,t){var n=this._prefix(e);this._callbacks[n]=this._callbacks[n]||[],this._callbacks[n].push(t)},t.prototype.remove=function(t,n){if(this.get(t)){var r=e.Util.arrayIndexOf(this.get(t),n);this._callbacks[this._prefix(t)].splice(r,1)}},t.prototype._prefix=function(e){return"_"+e},n.prototype.bind=function(e,t){return this.callbacks.add(e,t),this},n.prototype.unbind=function(e,t){return this.callbacks.remove(e,t),this},n.prototype.emit=function(e,t){for(var n=0;n<this.global_callbacks.length;n++)this.global_callbacks[n](e,t);var r=this.callbacks.get(e);if(r)for(n=0;n<r.length;n++)r[n](t);else this.failThrough&&this.failThrough(e,t);return this},n.prototype.bind_all=function(e){return this.global_callbacks.push(e),this},e.EventsDispatcher=n}(),function(){function t(e,t,n){void 0!==t[e]&&t[e](n)}function n(t,n,r){e.EventsDispatcher.call(this),this.state=void 0,this.errors=[],this.stateActions=r,this.transitions=n,this.transition(t)}n.prototype.transition=function(n,r){var i,o=this.state,a=this.stateActions;if(o&&-1==e.Util.arrayIndexOf(this.transitions[o],n))throw this.emit("invalid_transition_attempt",{oldState:o,newState:n}),new Error("Invalid transition ["+o+" to "+n+"]");t(o+"Exit",a,r),t(o+"To"+((i=n).substr(0,1).toUpperCase()+i.substr(1)),a,r),t(n+"Pre",a,r),this.state=n,this.emit("state_change",{oldState:o,newState:n}),t(n+"Post",a,r)},n.prototype.is=function(e){return this.state===e},n.prototype.isNot=function(e){return this.state!==e},e.Util.extend(n.prototype,e.EventsDispatcher.prototype),e.Machine=n}(),(t=function(){var t=this;e.EventsDispatcher.call(this),void 0!==window.addEventListener&&(window.addEventListener("online",(function(){t.emit("online",null)}),!1),window.addEventListener("offline",(function(){t.emit("offline",null)}),!1))}).prototype.isOnLine=function(){return void 0===window.navigator.onLine||window.navigator.onLine},e.Util.extend(t.prototype,e.EventsDispatcher.prototype),e.NetInfo=t,function(){var t={initialized:["waiting","failed"],waiting:["connecting","permanentlyClosed"],connecting:["open","permanentlyClosing","impermanentlyClosing","waiting"],open:["connected","permanentlyClosing","impermanentlyClosing","waiting"],connected:["permanentlyClosing","waiting"],impermanentlyClosing:["waiting","permanentlyClosing"],permanentlyClosing:["permanentlyClosed"],permanentlyClosed:["waiting","failed"],failed:["permanentlyClosed"]};function n(t){t.connectionWait=0,"flash"===e.TransportType?t.openTimeout=5e3:t.openTimeout=2e3,t.connectedTimeout=2e3,t.connectionSecure=t.compulsorySecure,t.connectionAttempts=0}function r(r,i){var o=this;function a(){o.connectionWait<1e4&&(o.connectionWait+=2e3),o.openTimeout<1e4&&(o.openTimeout+=2e3),o.connectedTimeout<1e4&&(o.connectedTimeout+=2e3),!0!==o.compulsorySecure&&(o.connectionSecure=!o.connectionSecure),o.connectionAttempts++}function s(){o._machine.transition("impermanentlyClosing")}function l(){o._activityTimer&&clearTimeout(o._activityTimer),o._activityTimer=setTimeout((function(){o.send_event("pusher:ping",{}),o._activityTimer=setTimeout((function(){o.socket.close()}),o.options.pong_timeout||e.pong_timeout)}),o.options.activity_timeout||e.activity_timeout)}function u(){o._machine.transition("open")}function c(e){var t,n,r=f(e);void 0!==r&&("pusher:connection_established"===r.event?o._machine.transition("connected",r.data.socket_id):"pusher:error"===r.event&&(t=r.data.code,n=r.data.message,o.emit("error",{type:"PusherError",data:{code:t,message:n}}),4e3===t?(o.compulsorySecure=!0,o.connectionSecure=!0,o.options.encrypted=!0,s()):t<4100?o._machine.transition("permanentlyClosing"):t<4200?(o.connectionWait=1e3,o._machine.transition("waiting")):t<4300?s():o._machine.transition("permanentlyClosing")))}function d(t){l();var n=f(t);if(void 0!==n){switch(e.debug("Event recd",n),n.event){case"pusher:error":o.emit("error",{type:"PusherError",data:n.data});break;case"pusher:ping":o.send_event("pusher:pong",{})}o.emit("message",n)}}function f(e){try{var t=JSON.parse(e.data);if("string"==typeof t.data)try{t.data=JSON.parse(t.data)}catch(e){if(!(e instanceof SyntaxError))throw e}return t}catch(t){o.emit("error",{type:"MessageParseError",error:t,data:e.data})}}function p(){o._machine.transition("waiting")}function h(e){o.emit("error",{type:"WebSocketError",error:e})}function m(t,n){var r=o.state;o.state=t,r!==t&&(e.debug("State changed",r+" -> "+t),o.emit("state_change",{previous:r,current:t}),o.emit(t,n))}e.EventsDispatcher.call(this),this.options=e.Util.extend({encrypted:!1},i),this.netInfo=new e.NetInfo,this.netInfo.bind("online",(function(){o._machine.is("waiting")&&(o._machine.transition("connecting"),m("connecting"))})),this.netInfo.bind("offline",(function(){o._machine.is("connected")&&(o.socket.onclose=void 0,o.socket.onmessage=void 0,o.socket.onerror=void 0,o.socket.onopen=void 0,o.socket.close(),o.socket=void 0,o._machine.transition("waiting"))})),this._machine=new e.Machine("initialized",t,{initializedPre:function(){o.compulsorySecure=o.options.encrypted,o.key=r,o.socket=null,o.socket_id=null,o.state="initialized"},waitingPre:function(){o.connectionWait>0&&o.emit("connecting_in",o.connectionWait),o.netInfo.isOnLine()&&o.connectionAttempts<=4?m("connecting"):m("unavailable"),o.netInfo.isOnLine()&&(o._waitingTimer=setTimeout((function(){o._machine.transition("connecting")}),function(){var e=o.connectionWait;if(0===e&&o.connectedAt){var t=(new Date).getTime()-o.connectedAt;t<1e3&&(e=1e3-t)}return e}()))},waitingExit:function(){clearTimeout(o._waitingTimer)},connectingPre:function(){if(!1===o.netInfo.isOnLine())return o._machine.transition("waiting"),void m("unavailable");var t=function(t,n){var r=e.ws_port,i="ws://";(n||"https:"===document.location.protocol)&&(r=e.wss_port,i="wss://");var o="flash"===e.TransportType?"true":"false";return i+e.host+":"+r+"/app/"+t+"?protocol=5&client=js&version="+e.VERSION+"&flash="+o}(o.key,o.connectionSecure);e.debug("Connecting",t),o.socket=new e.Transport(t),o.socket.onopen=u,o.socket.onclose=p,o.socket.onerror=h,o._connectingTimer=setTimeout(s,o.openTimeout)},connectingExit:function(){clearTimeout(o._connectingTimer),o.socket.onopen=void 0},connectingToWaiting:function(){a()},connectingToImpermanentlyClosing:function(){a()},openPre:function(){o.socket.onmessage=c,o.socket.onerror=h,o.socket.onclose=p,o._openTimer=setTimeout(s,o.connectedTimeout)},openExit:function(){clearTimeout(o._openTimer),o.socket.onmessage=void 0},openToWaiting:function(){a()},openToImpermanentlyClosing:function(){a()},connectedPre:function(e){o.socket_id=e,o.socket.onmessage=d,o.socket.onerror=h,o.socket.onclose=p,n(o),o.connectedAt=(new Date).getTime(),l()},connectedPost:function(){m("connected")},connectedExit:function(){o._activityTimer&&clearTimeout(o._activityTimer),m("disconnected")},impermanentlyClosingPost:function(){o.socket&&(o.socket.onclose=p,o.socket.close())},permanentlyClosingPost:function(){o.socket?(o.socket.onclose=function(){n(o),o._machine.transition("permanentlyClosed")},o.socket.close()):(n(o),o._machine.transition("permanentlyClosed"))},failedPre:function(){m("failed"),e.debug("WebSockets are not available in this browser.")},permanentlyClosedPost:function(){m("disconnected")}})}r.prototype.connect=function(){this._machine.is("failed")||e.Transport?this._machine.is("initialized")?(n(this),this._machine.transition("waiting")):this._machine.is("waiting")&&!0===this.netInfo.isOnLine()?this._machine.transition("connecting"):this._machine.is("permanentlyClosed")&&(n(this),this._machine.transition("waiting")):this._machine.transition("failed")},r.prototype.send=function(e){if(this._machine.is("connected")){var t=this;return setTimeout((function(){t.socket.send(e)}),0),!0}return!1},r.prototype.send_event=function(t,n,r){var i={event:t,data:n};return r&&(i.channel=r),e.debug("Event sent",i),this.send(JSON.stringify(i))},r.prototype.disconnect=function(){this._machine.is("permanentlyClosed")||(this._machine.is("waiting")||this._machine.is("failed")?this._machine.transition("permanentlyClosed"):this._machine.transition("permanentlyClosing"))},e.Util.extend(r.prototype,e.EventsDispatcher.prototype),e.Connection=r}(),function(){e.Channels=function(){this.channels={}},e.Channels.prototype={add:function(t,n){var r=this.find(t);if(r)return r;var i=e.Channel.factory(t,n);return this.channels[t]=i,i},find:function(e){return this.channels[e]},remove:function(e){delete this.channels[e]},disconnect:function(){for(var e in this.channels)this.channels[e].disconnect()}},e.Channel=function(t,n){var r=this;e.EventsDispatcher.call(this,(function(n,r){e.debug("No callbacks on "+t+" for "+n)})),this.pusher=n,this.name=t,this.subscribed=!1,this.bind("pusher_internal:subscription_succeeded",(function(e){r.onSubscriptionSucceeded(e)}))},e.Channel.prototype={init:function(){},disconnect:function(){this.subscribed=!1,this.emit("pusher_internal:disconnected")},onSubscriptionSucceeded:function(e){this.subscribed=!0,this.emit("pusher:subscription_succeeded")},authorize:function(e,t,n){return n(!1,{})},trigger:function(e,t){return this.pusher.send_event(e,t,this.name)}},e.Util.extend(e.Channel.prototype,e.EventsDispatcher.prototype),e.Channel.PrivateChannel={authorize:function(t,n,r){var i=this;return new e.Channel.Authorizer(this,e.channel_auth_transport,n).authorize(t,(function(e,t){e||i.emit("pusher_internal:authorized",t),r(e,t)}))}},e.Channel.PresenceChannel={init:function(){this.members=new t(this)},onSubscriptionSucceeded:function(e){this.subscribed=!0}};var t=function(e){var t=this,n=function(){this._members_map={},this.count=0,this.me=null};n.call(this),e.bind("pusher_internal:authorized",(function(n){var r=JSON.parse(n.channel_data);e.bind("pusher_internal:subscription_succeeded",(function(n){t._members_map=n.presence.hash,t.count=n.presence.count,t.me=t.get(r.user_id),e.emit("pusher:subscription_succeeded",t)}))})),e.bind("pusher_internal:member_added",(function(n){null===t.get(n.user_id)&&t.count++,t._members_map[n.user_id]=n.user_info,e.emit("pusher:member_added",t.get(n.user_id))})),e.bind("pusher_internal:member_removed",(function(n){var r=t.get(n.user_id);r&&(delete t._members_map[n.user_id],t.count--,e.emit("pusher:member_removed",r))})),e.bind("pusher_internal:disconnected",(function(){n.call(t)}))};t.prototype={each:function(e){for(var t in this._members_map)e(this.get(t))},get:function(e){return this._members_map.hasOwnProperty(e)?{id:e,info:this._members_map[e]}:null}},e.Channel.factory=function(t,n){var r=new e.Channel(t,n);return 0===t.indexOf("private-")?e.Util.extend(r,e.Channel.PrivateChannel):0===t.indexOf("presence-")&&(e.Util.extend(r,e.Channel.PrivateChannel),e.Util.extend(r,e.Channel.PresenceChannel)),r.init(),r}}(),e.Channel.Authorizer=function(e,t,n){this.channel=e,this.type=t,this.authOptions=(n||{}).auth||{}},e.Channel.Authorizer.prototype={composeQuery:function(e){var t="&socket_id="+encodeURIComponent(e)+"&channel_name="+encodeURIComponent(this.channel.name);for(var n in this.authOptions.params)t+="&"+encodeURIComponent(n)+"="+encodeURIComponent(this.authOptions.params[n]);return t},authorize:function(t,n){return e.authorizers[this.type].call(this,t,n)}},e.auth_callbacks={},e.authorizers={ajax:function(t,n){var r;for(var i in(r=e.XHR?new e.XHR:window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")).open("POST",e.channel_auth_endpoint,!0),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),this.authOptions.headers)r.setRequestHeader(i,this.authOptions.headers[i]);return r.onreadystatechange=function(){if(4==r.readyState)if(200==r.status){var t,i=!1;try{t=JSON.parse(r.responseText),i=!0}catch(e){n(!0,"JSON returned from webapp was invalid, yet status code was 200. Data was: "+r.responseText)}i&&n(!1,t)}else e.warn("Couldn't get auth info from your webapp",r.status),n(!0,r.status)},r.send(this.composeQuery(t)),r},jsonp:function(t,n){void 0!==this.authOptions.headers&&e.warn("Warn","To send headers with the auth request, you must use AJAX, rather than JSONP.");var r=document.createElement("script");e.auth_callbacks[this.channel.name]=function(e){n(!1,e)};var i="Pusher.auth_callbacks['"+this.channel.name+"']";r.src=e.channel_auth_endpoint+"?callback="+encodeURIComponent(i)+this.composeQuery(t);var o=document.getElementsByTagName("head")[0]||document.documentElement;o.insertBefore(r,o.firstChild)}};var r=function(){function e(e,t){var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.setAttribute("src",e),r.setAttribute("type","text/javascript"),r.setAttribute("async",!0),function(e,t){document.addEventListener?e.addEventListener("load",t,!1):e.attachEvent("onreadystatechange",(function(){"loaded"!=e.readyState&&"complete"!=e.readyState||t()}))}(r,(function(){t()})),n.appendChild(r)}return function(t,n){for(var r=0,i=0;i<t.length;i++)e(t[i],(function(){t.length==++r&&setTimeout(n,0)}))}}();!function(){n()&&!window.WebSocket&&window.MozWebSocket&&(window.WebSocket=window.MozWebSocket),n()&&window.WebSocket&&(e.Transport=window.WebSocket,e.TransportType="native");var t=(n()&&("http:"==document.location.protocol?e.cdn_http:e.cdn_https))+e.VERSION,i=[];n()&&!window.JSON&&i.push(t+"/json2"+e.dependency_suffix+".js"),n()&&!window.WebSocket&&(window.WEB_SOCKET_DISABLE_AUTO_INITIALIZATION=!0,i.push(t+"/flashfallback"+e.dependency_suffix+".js"));var o=n()&&window.WebSocket?function(){e.ready()}:function(){window.WebSocket?(e.Transport=window.WebSocket,e.TransportType="flash",window.WEB_SOCKET_SWF_LOCATION="https://s3.amazonaws.com/uploadcare-static/WebSocketMainInsecure.swf",WebSocket.__addTask((function(){e.ready()})),WebSocket.__initialize()):(e.Transport=null,e.TransportType="none",e.ready())},a=function(){var e;e=o,function t(){n()&&(document.body?e():setTimeout(t,0))}()};i.length>0?r(i,a):a()}(),this.Pusher=e}).call(t)})).Pusher,dt={};ct.prototype.constructor=ct;var ft=function(t){c(i,t);var r=m(i);function i(){return n(this,i),r.apply(this,arguments)}return o(i,[{key:"subscribe",value:function(e){return this.disconnectTimeout&&(clearTimeout(this.disconnectTimeout),this.disconnectTimeout=null),this.connect(),g(d(i.prototype),"subscribe",this).apply(this,arguments)}},{key:"unsubscribe",value:function(t){var n=this;g(d(i.prototype),"unsubscribe",this).apply(this,arguments),e.isEmptyObject(this.channels.channels)&&(this.disconnectTimeout=setTimeout((function(){return n.disconnectTimeout=null,n.disconnect()}),5e3))}}]),i}(ct),pt=function(e){return null==dt[e]&&(dt[e]=new ft(e)),dt[e].connect(),dt[e]},ht=function(t){c(i,t);var r=m(i);function i(e){var t,o;if(n(this,i),(t=r.apply(this,arguments)).__url=e,o=ge.exec(t.__url)[3].split("/").pop())try{t.fileName=decodeURIComponent(o)}catch(e){t.fileName=o}return t.__notifyApi(),t}return o(i,[{key:"setName",value:function(e){return this.fileName=e,this.__realFileName=e,this.__notifyApi()}},{key:"setIsImage",value:function(e){return this.isImage=e,this.__notifyApi()}},{key:"__startUpload",value:function(){var t,n,r,i,o=this;return n=e.Deferred(),i=new mt(this.settings),r=new gt(this.settings),t={pub_key:this.settings.publicKey,signature:this.settings.secureSignature,expire:this.settings.secureExpire,source_url:this.__url,filename:this.__realFileName||"",source:this.sourceInfo.source,store:this.settings.doNotStore?"":"auto",jsonerrors:1},se((function(){if("pending"===o.apiDeferred.state())return Me("".concat(o.settings.urlBase,"/from_url/"),"GET",t,{headers:{"X-UC-User-Agent":o.settings._userAgent}}).fail((function(e){return o.settings.debugUploads&&te("Can't start upload from URL.",e,t),n.reject()})).done((function(t){var a;if("pending"===o.apiDeferred.state())return o.settings.debugUploads&&(te("Start watchers.",t.token),a=setInterval((function(){return te("Still watching.",t.token)}),5e3),n.done((function(){return te("Stop watchers.",t.token)})).always((function(){return clearInterval(a)}))),o.__listenWatcher(n,e([i,r])),n.always((function(){return e([i,r]).off(o.allEvents),i.stopWatching(),r.stopWatching()})),e(i).one(o.allEvents,(function(){if(r.interval)return o.settings.debugUploads&&te("Start using pusher.",t.token),r.stopWatching()})),i.watch(t.token),r.watch(t.token)}))})),n}},{key:"__listenWatcher",value:function(t,n){var r=this;return n.on("progress",(function(e,n){return r.fileSize=n.total,t.notify(n.done/n.total)})).on("success",(function(n,i){return e(n.target).trigger("progress",i),r.fileId=i.uuid,r.__handleFileData(i),t.resolve()})).on("error fail",t.reject)}}]),i}(at);ht.prototype.sourceName="url",ht.prototype.allEvents="progress success error fail";var mt=function(){function t(e){n(this,t),this.settings=e;try{this.pusher=pt(this.settings.pusherKey)}catch(e){this.pusher=null}}return o(t,[{key:"watch",value:function(t){var n=this;if(this.token=t,this.pusher)return this.pusher.subscribe("task-status-".concat(this.token)).bind_all((function(t,r){return e(n).trigger(t,r)}))}},{key:"stopWatching",value:function(){if(this.pusher)return this.pusher.unsubscribe("task-status-".concat(this.token))}}]),t}(),gt=function(){function t(e){n(this,t),this.settings=e,this.poolUrl="".concat(this.settings.urlBase,"/from_url/status/")}return o(t,[{key:"watch",value:function(e){var t=this;return this.token=e,function e(){return t.interval=setTimeout((function(){t.__updateStatus().done((function(){t.interval&&e()}))}),333),t.interval}()}},{key:"stopWatching",value:function(){return this.interval&&clearTimeout(this.interval),this.interval=null,this.interval}},{key:"__updateStatus",value:function(){var t=this;return Me(this.poolUrl,"GET",{token:this.token},{headers:{"X-UC-User-Agent":this.settings._userAgent}}).fail((function(n){return e(t).trigger("error")})).done((function(n){return e(t).trigger(n.status,n)}))}}]),t}(),vt=function(e){c(r,e);var t=m(r);function r(e){var i,o;return n(this,r),i=t.apply(this,arguments),(o=_e(e))?(i.fileId=o[1],o[2]&&(i.cdnUrlModifiers=o[2])):i.__rejectApi("baddata"),i}return r}(at);vt.prototype.sourceName="uploaded";var yt=function(e){c(r,e);var t=m(r);function r(e){var i;return n(this,r),i=t.apply(this,arguments),e?(i.fileId=e.uuid,i.__handleFileData(e)):i.__rejectApi("deleted"),i}return r}(at);yt.prototype.sourceName="uploaded";var bt={object:lt,input:ut,url:ht,uploaded:vt,ready:yt},_t=function(e,t,n){return wt(e,[t],n)[0]},wt=function(t,n,r){var i,o,a,s,l;for(r=Ue(r||{}),l=[],i=0,a=n.length;i<a;i++)s=n[i],o=void 0,e.isArray(s)&&(o=s[1],s=s[0]),l.push(new bt[t](s,r,o).promise());return l},xt=function(e){return e&&e.done&&e.fail&&e.cancel},kt=function(e,t){return e&&!xt(e)&&(e=_t("uploaded",e,t)),e||null},Et=function(e){return e&&e.files&&e.promise},St=function(t,n){var r,i;if(t)if(e.isArray(t))r=function(){var e,r,o;for(o=[],e=0,r=t.length;e<r;e++)i=t[e],o.push(kt(i,n));return o}(),t=Bt(r,n);else if(!Et(t))return zt(t,n);return ce(t||null)},Ot=function(e,t){var n,r,i,o,a;if(e===t)return!0;if(!Et(e)||!Et(t))return!1;if(n=e.files(),r=t.files(),n.length!==r.length)return!1;for(i=o=0,a=n.length;o<a;i=++o)if(n[i]!==r[i])return!1;return!0},Tt=[].indexOf,Ct=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n(this,t),this.onAdd=e.Callbacks(),this.onRemove=e.Callbacks(),this.onSort=e.Callbacks(),this.onReplace=e.Callbacks(),this.__items=[],i||this.init(r)}return o(t,[{key:"init",value:function(e){var t,n,r;for(n=0,r=e.length;n<r;n++)t=e[n],this.add(t)}},{key:"add",value:function(e){return this.__add(e,this.__items.length)}},{key:"__add",value:function(e,t){return this.__items.splice(t,0,e),this.onAdd.fire(e,t)}},{key:"remove",value:function(t){var n;if(-1!==(n=e.inArray(t,this.__items)))return this.__remove(t,n)}},{key:"__remove",value:function(e,t){return this.__items.splice(t,1),this.onRemove.fire(e,t)}},{key:"clear",value:function(){var e,t,n,r,i,o;for(n=this.get(),this.__items.length=0,o=[],e=r=0,i=n.length;r<i;e=++r)t=n[e],o.push(this.onRemove.fire(t,e));return o}},{key:"replace",value:function(t,n){var r;if(t!==n&&-1!==(r=e.inArray(t,this.__items)))return this.__replace(t,n,r)}},{key:"__replace",value:function(e,t,n){return this.__items[n]=t,this.onReplace.fire(e,t,n)}},{key:"sort",value:function(e){return this.__items.sort(e),this.onSort.fire()}},{key:"get",value:function(e){return null!=e?this.__items[e]:this.__items.slice(0)}},{key:"length",value:function(){return this.__items.length}}]),t}(),At=function(e){c(r,e);var t=m(r);function r(){return n(this,r),t.apply(this,arguments)}return o(r,[{key:"add",value:function(e){if(!(Tt.call(this.__items,e)>=0))return g(d(r.prototype),"add",this).apply(this,arguments)}},{key:"__replace",value:function(e,t,n){return Tt.call(this.__items,t)>=0?this.remove(e):g(d(r.prototype),"__replace",this).apply(this,arguments)}}]),r}(Ct),Pt=function(t){c(i,t);var r=m(i);function i(){var t,o;return n(this,i),(o=r.call.apply(r,[this].concat(Array.prototype.slice.call(arguments),[!0]))).anyDoneList=e.Callbacks(),o.anyFailList=e.Callbacks(),o.anyProgressList=e.Callbacks(),o._thenArgs=null,o.anyProgressList.add((function(t,n){return e(t).data("lastProgress",n)})),g((t=p(o),d(i.prototype)),"init",t).call(t,arguments[0]),o}return o(i,[{key:"onAnyDone",value:function(e){var t,n,r,i,o;for(this.anyDoneList.add(e),o=[],n=0,r=(i=this.__items).length;n<r;n++)"resolved"===(t=i[n]).state()?o.push(t.done((function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.apply(void 0,[t].concat(r))}))):o.push(void 0);return o}},{key:"onAnyFail",value:function(e){var t,n,r,i,o;for(this.anyFailList.add(e),o=[],n=0,r=(i=this.__items).length;n<r;n++)"rejected"===(t=i[n]).state()?o.push(t.fail((function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.apply(void 0,[t].concat(r))}))):o.push(void 0);return o}},{key:"onAnyProgress",value:function(t){var n,r,i,o,a;for(this.anyProgressList.add(t),a=[],r=0,i=(o=this.__items).length;r<i;r++)n=o[r],a.push(t(n,e(n).data("lastProgress")));return a}},{key:"lastProgresses",value:function(){var t,n,r,i,o;for(o=[],n=0,r=(i=this.__items).length;n<r;n++)t=i[n],o.push(e(t).data("lastProgress"));return o}},{key:"add",value:function(e){var t;if(e&&e.then)return this._thenArgs&&(e=(t=e).then.apply(t,y(this._thenArgs))),g(d(i.prototype),"add",this).call(this,e),this.__watchItem(e)}},{key:"__replace",value:function(e,t,n){return t&&t.then?(g(d(i.prototype),"__replace",this).apply(this,arguments),this.__watchItem(t)):this.remove(e)}},{key:"__watchItem",value:function(e){var t=this,n=function(n){return function(){if(Tt.call(t.__items,e)>=0){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n.fire.apply(n,[e].concat(i))}}};return e.then(n(this.anyDoneList),n(this.anyFailList),n(this.anyProgressList))}},{key:"autoThen",value:function(){var e,t,n,r,i,o;if(this._thenArgs)throw new Error("CollectionOfPromises.then() could be used only once");for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];for(this._thenArgs=s,o=[],e=n=0,r=(i=this.__items).length;n<r;e=++n){var u;t=i[e],o.push(this.__replace(t,(u=t).then.apply(u,y(this._thenArgs)),e))}return o}}]),i}(At),Rt={ar:{translations:{uploading:"جاري الرفع... الرجاء الانتظار",loadingInfo:"جار تحميل المعلومات ...",errors:{default:"خطأ",baddata:"قيمة غير صحيحة",size:"ملف كبير جداً",upload:"يتعذر الرفع",user:"تم إلغاء الرفع",info:"يتعذر تحميل المعلومات",image:"يسمح بالصور فقط",createGroup:"لا يمكن إنشاء مجموعة ملفات",deleted:"تم حذف الملف"},draghere:"أسقط ملف هنا",file:{one:"%1 ملف",other:"%1 ملفات"},buttons:{cancel:"إلغاء",remove:"إزالة",choose:{files:{one:"اختر ملف",other:"اختر ملفات"},images:{one:"اختر صورة",other:"اختر صور"}}},dialog:{close:"أغلق",openMenu:"افتح القائمة",done:"موافق",showFiles:"اظهار الملفات",tabs:{names:{"empty-pubkey":"مرحبا!",preview:"معاينة",file:"ملفات محلية",url:"رابط مباشر",camera:"كاميرا",facebook:"فيس بوك",dropbox:"دروب بوكس",gdrive:"جوجل دريف",gphotos:"صور غوغل",instagram:"إينستجرام",vk:"في كي",evernote:"إيفرنوت",box:"بوكس",onedrive:"ون درايف",flickr:"فليكر",huddle:"هادل"},file:{drag:"سحب وإفلات<br>أي ملف",nodrop:"رفع ملفات من&nbsp;الحاسوب",cloudsTip:"مخازن على السحابة<br>والشبكات الاجتماعية",or:"أو",button:"اختر ملف محلي",also:"أو اختر من"},url:{title:"ملفات من شبكة الإنترنت",line1:"التقاط أي ملف من على شبكة الإنترنت",line2:"فقط قم بتوفير الرابط",input:"الصق الرابط هنا...",button:"رفع"},camera:{title:"ملف من كاميرا الويب",capture:"التقاط صورة",mirror:"عكس الصورة",startRecord:"سجل فيديو",stopRecord:"توقف",cancelRecord:"إلغاء",retry:"طلب الإذن مرة أخرى",pleaseAllow:{title:"يرجى السماح بالوصول إلى الكاميرا",text:"تمت مطالبتك بالسماح بالدخول إلى الكاميرا من هذا الموقع<br>من أجل التقاط الصور من الكاميرا يجب عليك الموافقة على هذا الطلب"},notFound:{title:"لم يتم اكتشاف أي كاميرا",text:"يبدو أنه ليس لديك كاميرا متصلة بهذا الجهاز"}},preview:{unknownName:"غير معروف",change:"إلغاء",back:"الرجوع",done:"إضافة",unknown:{title:"جار الرفع ... يرجى الانتظار للحصول على معاينة",done:"تخطي المعاينة والقبول"},regular:{title:"إضافة هذا الملف؟",line1:"أنت على وشك إضافة الملف أعلاه",line2:"يرجى التأكيد"},image:{title:"إضافة هذة الصورة",change:"إلغاء"},crop:{title:"قص وإضافة هذه الصورة",done:"موافق",free:"حر"},video:{title:"إضافة هذا الفيديو",change:"إلغاء"},error:{default:{title:"عفوا آسف",text:"حدث خطأ أثناء الرفع",back:"حاول مرة اخرى"},image:{title:"يتم قبول ملفات الصور فقط",text:"الرجاء إعادة المحاولة باستخدام ملف آخر",back:"اختر صورة"},size:{title:"الملف الذي حددتة يتجاوز الحد المسموح بة",text:"الرجاء إعادة المحاولة باستخدام ملف آخر"},loadImage:{title:"خطأ",text:"لا يمكن تحميل الصورة"}},multiple:{title:"لقد اخترت %files%",question:"إضافة %files%?",tooManyFiles:"لقد اخترت عددا كبيرا جدا من الملفات %max% هو الحد الأقصى",tooFewFiles:"لقد اخترت %files%. على الأقل %min% مطلوب",clear:"حذف الكل",done:"إضافة",file:{preview:"معاينة %file%",remove:"حذف %file%"}}}},footer:{text:"مدعوم بواسطة",link:"ابلود كير"}}},pluralize:function(e){var t;return 0===e?"zero":1===e?"one":2===e?"two":(t=e%100)>=3&&t<=10?"few":t>=11&&t<=99?"many":"other"}},az:{translations:{uploading:"Yüklənilir... Lütfən, gözləyin.",loadingInfo:"İnfo yüklənilir...",errors:{default:"Xəta",baddata:"Yanlış dəyər",size:"Fayl çox böyükdür",upload:"Yüklənilə bilmədi",user:"Yükləmə ləğv edildi",info:"İnfo yüklənə bilmədi",image:"Yalnız təsvirlərə icazə verilir",createGroup:"Fayl qrupu yaradıla bilmir",deleted:"Fayl silindi"},draghere:"Faylı bura atın",file:{one:"%1 fayl",other:"%1 fayl"},buttons:{cancel:"Ləğv edin",remove:"Silin",choose:{files:{one:"Fayl seçin",other:"Fayllar seçin"},images:{one:"Təsvir seçin",other:"Təsvirlər seçin"}}},dialog:{done:"Hazırdır",showFiles:"Faylları göstərin",tabs:{names:{"empty-pubkey":"Xoş gəlmisiniz",preview:"Önbaxış",file:"Lokal Fayllar",url:"İxtiyari linklər",camera:"Kamera",gdrive:"Google Disk"},file:{drag:"Faylı bura atın",nodrop:"Kompüterinizdən faylları yükləyin",cloudsTip:"Bulud yaddaşlar <br>və sosial xidmətlər",or:"or",button:"Lokal fayl seçin",also:"Həmçinin, buradan seçə bilərsiniz"},url:{title:"Vebdən fayllar",line1:"Vebdən istənilən faylı götürün.",line2:"Sadəcə, link verin.",input:"Linkinizi bura yerləşdirin...",button:"Yükləyin"},camera:{capture:"Şəkil çəkin",mirror:"Güzgü",retry:"Yenidən icazə sorğusu göndərin.",pleaseAllow:{title:"Lütfən, kameranıza giriş hüququ verin",text:"Bu saytdan kameranıza daxil olmaq icazəsi verildi. Kameranız ilə şəkil çəkmək üçün bu sorğunu təsdiq etməlisiniz."},notFound:{title:"Kamera aşkar edilmədi",text:"Görünür, bu cihaza kamera qoşulmayıb."}},preview:{unknownName:"naməlum",change:"Ləğv edin",back:"Geri",done:"Əlavə edin",unknown:{title:"Yüklənilir... Lütfən, önbaxış üçün gözləyin.",done:"Önbaxışı ötürün və qəbul edin"},regular:{title:"Bu fayl əlavə edilsin?",line1:"Yuxarıdakı faylı əlavə etmək üzrəsiniz.",line2:"Lütfən, təsdiq edin."},image:{title:"Bu təsvir əlavə edilsin?",change:"Ləğv edin"},crop:{title:"Bu təsviri kəsin və əlavə edin",done:"Hazırdır",free:"pulsuz"},error:{default:{title:"Ups!",text:"Yükləmə zamanı nəsə xəta baş verdi.",back:"Lütfən, y enidən cəhd edin."},image:{title:"Yaınız təsvir faylları qəbul olunur.",text:"Lütfən, başqa fayl ilə cəhd edin.",back:"Təsvir seçin"},size:{title:"Seçdiyiniz fayl limiti keçir.",text:"Lütfən, başqa fayl ilə cəhd edin."},loadImage:{title:"Xəta",text:"Təsvir yüklənilə bilmir"}},multiple:{title:"%files% fayl seçdiniz.",question:"Bütün bu faylları əlavə etmək istəyirsiniz?",tooManyFiles:"Həddindən çox fayl seçdiniz. %max% maksimumdur.",tooFewFiles:"%files% fayl seçdiniz. Ən azı %min% tələb olunur.",clear:"Hamısını silin",done:"Hazırdır"}}}}},pluralize:function(e){return"other"}},ca:{translations:{uploading:"Carregant... Si us plau esperi.",loadingInfo:"Carregant informació...",errors:{default:"Error",baddata:"Valor incorrecte",size:"Massa gran",upload:"No s'ha pogut carregar",user:"Carrega cancel·lada",info:"No s'ha pogut carregar la informació",image:"Només es permeten imatges",createGroup:"No es pot crear el grup d'arxius",deleted:"Fitxer eliminat"},draghere:"Arrossega els fitxers fins aquí",file:{one:"%1 fitxer",other:"%1 fitxers"},buttons:{cancel:"Cancel·lar",remove:"Eliminar",choose:{files:{one:"Escull un fitxer",other:"Escull fitxers"},images:{one:"Escull una imatge",other:"Escull imatges"}}},dialog:{done:"Fet",showFiles:"Mostra fitxers",tabs:{names:{"empty-pubkey":"Benvingut",preview:"Avanci",file:"Ordinador",url:"Enllaços arbitraris",camera:"Càmera"},file:{drag:"Arrossega un fitxer aquí",nodrop:"Carrega fitxers des del teu ordinador",cloudsTip:"Emmagatzematge al núvol<br>i xarxes socials",or:"o",button:"Escull un fitxer des del teu ordinador",also:"També pots seleccionar-lo de"},url:{title:"Fitxers de la web",line1:"Selecciona qualsevol fitxer de la web.",line2:"Només proporcioni el link.",input:"Copiï el link aquí...",button:"Pujar"},camera:{capture:"Realitza una foto",mirror:"Mirall",retry:"Demanar permisos una altra vegada",pleaseAllow:{title:"Si us plau, permet accés a la teva càmera",text:"Aquest lloc t'ha demanat de permetre accés a la càmera. Per tal de realitzar imatges amb la teva càmera has d'acceptar aquesta petició."},notFound:{title:"No s'ha detectat cap càmera",text:"Sembla que no tens cap càmera connectada a aquest dispositiu."}},preview:{unknownName:"desconegut",change:"Cancel·lar",back:"Endarrere",done:"Pujar",unknown:{title:"Carregant. Si us plau esperi per la visualització prèvia.",done:"Saltar visualització prèvia i acceptar"},regular:{title:"Vols pujar aquest fitxer?",line1:"Estàs a punt de pujar el fitxer superior.",line2:"Confirmi, si us plau."},image:{title:"Vols pujar aquesta imatge?",change:"Cancel·lar"},crop:{title:"Tallar i pujar aquesta imatge",done:"Fet",free:"lliure"},error:{default:{title:"La pujada ha fallat!",text:"S'ha produït un error durant la pujada.",back:"Si us plau, provi-ho de nou."},image:{title:"Només s'accepten fitxers d'imatges.",text:"Si us plau, provi-ho de nou amb un altre fitxer.",back:"Escull imatge"},size:{title:"La mida del fitxer que has seleccionat sobrepassa el límit.",text:"Si us plau, provi-ho de nou amb un altre fitxer."},loadImage:{title:"Error",text:"No s'ha pogut carregar la imatge"}},multiple:{title:"N'has escollit %files%",question:"Vols afegir tots aquests fitxers?",tooManyFiles:"Has escollit massa fitxers. %max% és el màxim.",tooFewFiles:"Has escollit %files%. Com a mínim en calen %min%.",clear:"Eliminar-los tots",done:"Fet"}}}}},pluralize:function(e){return 1===e?"one":"other"}},cs:{translations:{uploading:"Nahrávám... Malý moment.",loadingInfo:"Nahrávám informace...",errors:{default:"Chyba",baddata:"Neplatná hodnota",size:"Soubor je příliš velký",upload:"Nelze nahrát",user:"Nahrávání zrušeno",info:"Nelze nahrát informace",image:"Lze nahrát pouze obrázky",createGroup:"Nelze vytvořit adresář",deleted:"Soubor byl smazán"},draghere:"Přetáhněte soubor sem",file:{one:"%1 soubor",few:"%1 soubory",many:"%1 souborů"},buttons:{cancel:"Zrušit",remove:"Odstranit",choose:{files:{one:"Vyberte soubor",other:"Vyberte soubory"},images:{one:"Vyberte obrázek",other:"Vyberte obrázky"}}},dialog:{done:"Hotovo",showFiles:"Zobrazit soubory",tabs:{names:{"empty-pubkey":"Vítejte",preview:"Náhled",file:"Soubor z počítače",url:"Soubor z internetu",camera:"Webkamera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"Přetáhněte soubor sem",nodrop:"Nahrajte soubory z vašeho počítače",cloudsTip:"Cloudové úložiště<br>a sociální sítě",or:"nebo",button:"Vyberte soubor z počítače",also:"Můžete také nahrát soubor z"},url:{title:"Soubory z internetu",line1:"Nahrajte jakýkoliv soubor z internetu.",line2:"Stačí vložit odkaz.",input:"Odkaz vložte zde...",button:"Nahrát"},camera:{capture:"Pořídit fotografii",mirror:"Zrcadlo",retry:"Znovu požádat o povolení",pleaseAllow:{title:"Prosím povolte přístup k webkameře",text:"Byl(a) jste požádán(a) o přístup k webkameře. Abyste mohl(a) pořídit fotografii, musíte přístup povolit."},notFound:{title:"Nebyla nalezena webkamera",text:"Zdá se, že k tomuto zařízení není připojena žádná webkamera."}},preview:{unknownName:"neznámý",change:"Zrušit",back:"Zpět",done:"Přidat",unknown:{title:"Nahrávám... Prosím vyčkejte na náhled.",done:"Přeskočit náhled a odeslat"},regular:{title:"Přidat tento soubor?",line1:"Tímto přidáte výše vybraný soubor.",line2:"Prosím potvrďte."},image:{title:"Přidat tento obrázek?",change:"Zrušit"},crop:{title:"Oříznout a přidat tento obrázek",done:"Hotovo",free:"zdarma"},error:{default:{title:"Jejda!",text:"Něco se v průběhu nahrávání nepodařilo.",back:"Zkuste to prosím znovu."},image:{title:"Lze nahrávat pouze obrázky.",text:"Zkuste to prosím s jiným souborem.",back:"Vyberte obrázek"},size:{title:"Soubor přesahuje povolenou velikost.",text:"Prosím zkuste to s jiným souborem."},loadImage:{title:"Chyba",text:"Nelze nahrát obrázek"}},multiple:{title:"Bylo vybráno %files% souborů",question:"Chcete přidat všechny tyto soubory?",tooManyFiles:"Bylo vybráno moc souborů. Maximum je %max%",tooFewFiles:"Bylo vybráno %files% souborů. Musíte vybrat minimálně %min%",clear:"Odstranit vše",done:"Hotovo"}}}}},pluralize:function(e){return 1===e?"one":e>=2&&e<=4?"few":"many"}},da:{translations:{uploading:"Uploader... Vent venligst.",loadingInfo:"Henter information...",errors:{default:"Fejl",baddata:"Forkert værdi",size:"Filen er for stor",upload:"Kan ikke uploade / sende fil",user:"Upload fortrudt",info:"Kan ikke hente information",image:"Kun billeder er tilladt",createGroup:"Kan ikke oprette fil gruppe",deleted:"Filen blev slettet"},draghere:"Drop en fil her",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Annuller",remove:"Fjern",choose:{files:{one:"Vælg en fil",other:"Vælg filer"},images:{one:"Vælg et billede",other:"Vælg billeder"}}},dialog:{done:"Færdig",showFiles:"Vis filer",tabs:{names:{preview:"Vis",file:"Computer",gdrive:"Google Drev",url:"Direkte link"},file:{drag:"Drop en fil her",nodrop:"Hent filer fra din computer",or:"eller",button:"Hent fil fra din computer",also:"Du kan også hente fra"},url:{title:"Filer fra en Web adresse",line1:"Vælg en fil fra en web adresse.",line2:"Skriv bare linket til filen.",input:"Indsæt link her...",button:"Upload / Send"},preview:{unknownName:"ukendt",change:"Annuller",back:"Tilbage",done:"Fortsæt",unknown:{title:"Uploader / sender... Vent for at se mere.",done:"Fortsæt uden at vente på resultat"},regular:{title:"Tilføje fil?",line1:"Du er ved at tilføje filen ovenfor.",line2:"Venligst accepter."},image:{title:"Tilføj billede?",change:"Annuller"},crop:{title:"Beskær og tilføj dette billede",done:"Udfør"},error:{default:{title:"Hov!",text:"Noget gik galt under upload.",back:"Venligst prøv igen"},image:{title:"Du kan kun vælge billeder.",text:"Prøv igen med en billedfil.",back:"Vælg billede"},size:{title:"Den fil du valgte, er desværre større end tilladt.",text:"Venligst prøv med en mindre fil."},loadImage:{title:"Fejl",text:"Kan ikke åbne billede"}},multiple:{title:"Du har valgt %files% filer",question:"Vil du tilføje alle disse filer?",tooManyFiles:"Du har valgt for mange filer. %max% er maximum.",tooFewFiles:"Du har valgt %files% filer. Men du skal vælge mindst %min%.",clear:"Fjern alle",done:"Fortsæt"}}}}},pluralize:function(e){return 1===e?"one":"other"}},de:{translations:{uploading:"Upload läuft… Bitte warten…",loadingInfo:"Informationen werden geladen…",errors:{default:"Fehler",baddata:"Falscher Wert",size:"Datei zu groß",upload:"Kann nicht hochgeladen werden",user:"Hochladen abgebrochen",info:"Informationen können nicht geladen werden",image:"Nur Bilder sind erlaubt",createGroup:"Datei-Gruppe kann nicht erstellt werden",deleted:"Datei wurde gelöscht"},draghere:"Ziehen Sie eine Datei hierhin",file:{one:"%1 Datei",other:"%1 Dateien"},buttons:{cancel:"Abbrechen",remove:"Löschen",choose:{files:{one:"Datei auswählen",other:"Dateien auswählen"},images:{one:"Bild auswählen",other:"Bilder auswählen"}}},dialog:{close:"Schließen",openMenu:"Menü öffnen",done:"Fertig",showFiles:"Dateien anzeigen",tabs:{names:{"empty-pubkey":"Willkommen",preview:"Vorschau",file:"Lokale Dateien",url:"Web-Links",camera:"Kamera"},file:{drag:"Ziehen Sie eine Datei hierhin",nodrop:"Laden Sie Dateien von Ihrem PC hoch",cloudsTip:"Cloud-Speicher<br>und soziale Dienste",or:"oder",button:"Wählen Sie eine Datei",also:"Sie können sie auch Dateien wählen aus"},url:{title:"Eine Datei aus dem Web hochladen",line1:"Sie können eine Datei aus dem Internet hochladen.",line2:"Geben Sie hier einfach den Link ein.",input:"Bitte geben Sie hier den Link ein…",button:"Hochladen"},camera:{title:"Foto mit Webcam aufnehmen",capture:"Machen Sie ein Foto",mirror:"Andere Kamera",retry:"Berechtigungen erneut anfordern",pleaseAllow:{title:"Bitte erlauben Sie den Zugriff auf Ihre Kamera",text:"Sie wurden gebeten, dieser Website den Zugriff auf Ihre Kamera zu erlauben. Um mit Ihrer Kamera Fotos machen zu können, müssen Sie diese Erlaubnis erteilen."},notFound:{title:"Keine Kamera gefunden",text:"Es sieht so aus, als hätten Sie keine Kamera an dieses Gerät angeschlossen."}},preview:{unknownName:"nicht bekannt",change:"Abbrechen",back:"Zurück",done:"Hinzufügen",unknown:{title:"Upload läuft… Bitte warten Sie auf die Vorschau.",done:"Vorschau überspringen und Datei annehmen"},regular:{title:"Diese Datei hinzufügen?",line1:"Diese Datei wird nun hinzugefügt.",line2:"Bitte bestätigen Sie."},image:{title:"Nur Bilder sind akzeptiert.",text:"Bitte veruschen Sie es erneut mit einer anderen Datei.",back:"Bild wählen"},error:{default:{title:"Oops!",text:"Etwas ist während dem Hochladen schief gelaufen.",back:"Bitte versuchen Sie es erneut"},image:{title:"Nur Bilder sind akzeptiert.",text:"Bitte veruschen Sie es erneut mit einer anderen Datei.",back:"Bild wählen"},size:{title:"Die gewählte Datei ist zu groß.",text:"Bitte versuchen Sie es erneut mit einer anderen Datei."},loadImage:{title:"Fehler",text:"Das Bild kann nicht geladen werden"}},multiple:{title:"Sie haben %files% Dateien gewählt",question:"Möchten Sie all diese Dateien hinzufügen?",tooManyFiles:"Sie haben zu viele Dateien gewählt. %max% ist das Maximum.",tooFewFiles:"Sie haben %files% Dateien gewählt. Es sind mindestens %min% nötig.",clear:"Alle löschen",done:"Fertig",file:{preview:"Vorschau: %file%",remove:"Datei löschen: %file%"}}}}}},pluralize:function(e){return 1===e?"one":"other"}},el:{translations:{loadingInfo:"Φόρτωση πληροφοριών...",errors:{default:"Σφάλμα",baddata:"Λανθασμένη αξία",size:"Πολύ μεγάλο αρχείο",upload:"Δεν μπορεί να γίνει φόρτωση",user:"Η φόρτωση ακυρώθηκε",info:"Δεν μπορούν να φορτωθούν πληροφορίες",image:"Μόνο εικόνες επιτρέπονται",createGroup:"Δεν μπορεί να δημιουργηθεί ομάδα αρχείων",deleted:"Το αρχείο διαγράφηκε"},uploading:"Φόρτωση... Παρακαλούμε περιμένετε.",draghere:"Αποθέστε ένα αρχείο εδώ",file:{one:"%1 αρχείο",other:"%1 αρχεία"},buttons:{cancel:"Ακύρωση",remove:"Κατάργηση",choose:{files:{one:"Επιλέξτε ένα αρχείο",other:"Επιλέξτε αρχεία"},images:{one:"Επιλέξτε μία εικόνα",other:"Επιλέξτε εικόνες"}}},dialog:{close:"Κλείσιμο",openMenu:"Άνοιγμα μενού",done:"Εντάξει",showFiles:"Προβολή αρχείων",tabs:{names:{"empty-pubkey":"Καλώς ήρθατε",preview:"Προεπισκόπηση",file:"Τοπικά αρχεία",url:"Απευθείας σύνδεσμος",camera:"Κάμερα",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",instagram:"Instagram",gphotos:"Google Photos",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"σύρετε & αποθέστε<br>οποιαδήποτε αρχεία",nodrop:"Φορτώστε αρχεία από τον&nbsp;υπολογιστή σας",cloudsTip:"Αποθήκευση νέφους<br>και κοινωνικά δίκτυα",or:"ή",button:"Επιλέξτε ένα τοπικό αρχείο",also:"ή επιλέξτε από"},url:{title:"Αρχεία από τον Ιστό",line1:"Πάρτε οποιοδήποτε αρχείο από το διαδίκτυο.",line2:"Γράψτε απλώς τον σύνδεσμο.",input:"Επικολλήστε τον σύνδεσμό σας εδώ...",button:"Φόρτωση"},camera:{title:"Αρχείο από κάμερα web",capture:"Τραβήξτε μια φωτογραφία",mirror:"Καθρέφτης",startRecord:"Εγγραφή βίντεο",cancelRecord:"Ακύρωση",stopRecord:"Διακοπή",retry:"Νέο αίτημα για άδεια",pleaseAllow:{text:"Έχετε δεχτεί υπόδειξη να επιτρέψετε την πρόσβαση στην κάμερα από αυτόν τον ιστότοπο.<br>Για να τραβήξετε φωτογραφίες με την κάμερά σας πρέπει να εγκρίνετε αυτό το αίτημα.",title:"Παρακαλούμε επιτρέψτε την πρόσβαση στην κάμερά σας"},notFound:{title:"Δεν εντοπίστηκε κάμερα",text:"Φαίνεται ότι δεν έχετε κάμερα συνδεδεμένη με αυτή τη συσκευή."}},preview:{unknownName:"άγνωστο",change:"Ακύρωση",back:"Πίσω",done:"Προσθήκη",unknown:{title:"Φόρτωση... Παρακαλούμε περιμένετε για προεπισκόπηση.",done:"Παράλειψη επισκόπησης και αποδοχή"},regular:{title:"Να προστεθεί αυτό το αρχείο;",line1:"Πρόκειται να προσθέσετε το παραπάνω αρχείο.",line2:"Παρακαλούμε επιβεβαιώστε."},image:{title:"Να προστεθεί αυτή η εικόνα;",change:"Ακύρωση"},crop:{title:"Περικοπή και προσθήκη αυτής της εικόνας",done:"Εντάξει",free:"δωρεάν"},video:{title:"Να προστεθεί αυτό το βίντεο;",change:"Ακύρωση"},error:{default:{title:"Ουπς!",back:"Παρακαλούμε προσπαθήστε ξανά",text:"Κάτι πήγε στραβά κατά τη φόρτωση."},image:{title:"Μόνο αρχεία εικόνων γίνονται δεκτά.",text:"Δοκιμάστε ξανά με άλλο αρχείο.",back:"Επιλέξτε εικόνα"},size:{title:"Το αρχείο που επιλέξατε υπερβαίνει το όριο.",text:"Δοκιμάστε ξανά με άλλο αρχείο."},loadImage:{title:"Σφάλμα",text:"Δεν μπορεί να φορτωθεί η εικόνα"}},multiple:{title:"Έχετε επιλέξει %files%",question:"Προσθήκη %files%;",tooManyFiles:"Έχετε επιλέξει πάρα πολλά αρχεία. Το μέγιστο είναι %max%.",tooFewFiles:"Έχετε επιλέξει %files%. Απαιτούνται τουλάχιστον %min%.",clear:"Κατάργηση όλων",file:{preview:"Προεπισκόπηση %file%",remove:"Αφαίρεση %file%"},done:"Προσθήκη"}}},footer:{text:"παρέχεται από",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},en:{pluralize:function(e){return 1===e?"one":"other"},translations:{uploading:"Uploading... Please wait.",loadingInfo:"Loading info...",errors:{default:"Error",baddata:"Incorrect value",size:"File too big",upload:"Can’t upload",user:"Upload canceled",info:"Can’t load info",image:"Only images allowed",createGroup:"Can’t create file group",deleted:"File was deleted"},draghere:"Drop a file here",file:{one:"%1 file",other:"%1 files"},buttons:{cancel:"Cancel",remove:"Remove",choose:{files:{one:"Choose a file",other:"Choose files"},images:{one:"Choose an image",other:"Choose images"}}},dialog:{close:"Close",openMenu:"Open menu",done:"Done",showFiles:"Show files",tabs:{names:{"empty-pubkey":"Welcome",preview:"Preview",file:"Local Files",url:"Direct Link",camera:"Camera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"drag & drop<br>any files",nodrop:"Upload files from your&nbsp;computer",cloudsTip:"Cloud storages<br>and social networks",or:"or",button:"Choose a local file",also:"or choose from"},url:{title:"Files from the Web",line1:"Grab any file off the web.",line2:"Just provide the link.",input:"Paste your link here...",button:"Upload"},camera:{title:"File from web camera",capture:"Take a photo",mirror:"Mirror",startRecord:"Record a video",stopRecord:"Stop",cancelRecord:"Cancel",retry:"Request permissions again",pleaseAllow:{title:"Please allow access to your camera",text:"You have been prompted to allow camera access from this site.<br>In order to take pictures with your camera you must approve this request."},notFound:{title:"No camera detected",text:"Looks like you have no camera connected to this device."}},preview:{unknownName:"unknown",change:"Cancel",back:"Back",done:"Add",unknown:{title:"Uploading... Please wait for a preview.",done:"Skip preview and accept"},regular:{title:"Add this file?",line1:"You are about to add the file above.",line2:"Please confirm."},image:{title:"Add this image?",change:"Cancel"},crop:{title:"Crop and add this image",done:"Done",free:"free"},video:{title:"Add this video?",change:"Cancel"},error:{default:{title:"Oops!",text:"Something went wrong during the upload.",back:"Please try again"},image:{title:"Only image files are accepted.",text:"Please try again with another file.",back:"Choose image"},size:{title:"The file you selected exceeds the limit.",text:"Please try again with another file."},loadImage:{title:"Error",text:"Can’t load image"}},multiple:{title:"You’ve chosen %files%.",question:"Add %files%?",tooManyFiles:"You’ve chosen too many files. %max% is maximum.",tooFewFiles:"You’ve chosen %files%. At least %min% required.",clear:"Remove all",done:"Add",file:{preview:"Preview %file%",remove:"Remove %file%"}}}},footer:{text:"powered by",link:"uploadcare"}}}},es:{translations:{uploading:"Subiendo... Por favor espere.",loadingInfo:"Cargando información...",errors:{default:"Error",baddata:"Valor incorrecto",size:"Archivo demasiado grande",upload:"No se puede subir",user:"Subida cancelada",info:"No se puede cargar la información",image:"Solo se permiten imágenes",createGroup:"No se puede crear el grupo de archivos",deleted:"El archivo fue eliminado"},draghere:"Arrastra un archivo aquí",file:{one:"%1 archivo",other:"%1 archivos"},buttons:{cancel:"Cancelar",remove:"Eliminar",choose:{files:{one:"Escoge un archivo",other:"Escoge archivos"},images:{one:"Escoge una imagen",other:"Escoge imágenes"}}},dialog:{close:"Cerrar",openMenu:"Menú abierto",done:"Hecho",showFiles:"Mostrar archivos",tabs:{names:{"empty-pubkey":"Bienvenido",preview:"Previsualización",file:"Archivos locales",url:"Enlaces arbitrarios",camera:"Cámara"},file:{drag:"Arrastra un archivo aquí",nodrop:"Sube fotos desde tu dispositivo",cloudsTip:"Almacenamiento en la nube<br>y redes sociales",or:"o",button:"Elige un archivo de tu dispositivo",also:"Tambien puedes seleccionarlo de"},url:{title:"Archivos de la Web",line1:"Coge cualquier archivo de la web.",line2:"Solo danos el link.",input:"Pega tu link aquí...",button:"Subir"},camera:{title:"Archivo desde la cámara web",capture:"Hacer una foto",mirror:"Espejo",startRecord:"Grabar un video",stopRecord:"Detener",cancelRecord:"Cancelar",retry:"Solicitar permisos de nuevo",pleaseAllow:{title:"Por favor, permite el acceso a tu cámara",text:"Este sitio ha pedido permiso para acceder a la cámara. Para tomar imágenes con tu cámara debes aceptar esta petición."},notFound:{title:"No se ha detectado ninguna cámara",text:"Parece que no tienes ninguna cámara conectada a este dispositivo."}},preview:{unknownName:"desconocido",change:"Cancelar",back:"Atrás",done:"Añadir",unknown:{title:"Subiendo. Por favor espera para una vista previa.",done:"Saltar vista previa y aceptar"},regular:{title:"¿Quieres subir este archivo?",line1:"Estás a punto de subir el archivo de arriba.",line2:"Confírmalo por favor."},image:{title:"¿Quieres subir esta imagen?",change:"Cancelar"},crop:{title:"Cortar y añadir esta imagen",done:"Listo",free:"libre"},video:{title:"¿Añadir este video?",change:"Cancelar"},error:{default:{title:"Ups!",text:"Algo salió mal durante la subida.",back:"Por favor, inténtalo de nuevo."},image:{title:"Solo se aceptan archivos de imagen.",text:"Por favor, inténtalo de nuevo con otro archivo.",back:"Escoger imagen"},size:{title:"El archivo que has seleccinado excede el límite.",text:"Por favor, inténtalo de nuevo con otro archivo."},loadImage:{title:"Error",text:"No puede cargar la imagen"}},multiple:{title:"Has escogido %files%",question:"¿Quieres añadir todos estos archivos?",tooManyFiles:"Has escogido demasiados archivos. %max% es el máximo.",tooFewFiles:"Has escogido %files%. Hacen falta al menos %min%.",clear:"Eliminar todo",done:"Hecho",file:{preview:"Vista previa %file%",remove:"Quitar %file%"}}}},footer:{text:"alimentado por"}}},pluralize:function(e){return 1===e?"one":"other"}},et:{translations:{uploading:"Üleslaadimine… Palun oota.",loadingInfo:"Info laadimine...",errors:{default:"Viga",baddata:"Incorrect value",size:"Fail on liiga suur",upload:"Ei saa üles laadida",user:"Üleslaadimine tühistatud",info:"Ei saa infot laadida",image:"Ainult pildid lubatud",createGroup:"Ei saa luua failigruppi",deleted:"Fail on kustutatud"},draghere:"Tiri fail siia",file:{one:"%1 fail",other:"%1 failid"},buttons:{cancel:"Tühista",remove:"Kustuta",choose:{files:{one:"Vali fail",other:"Vali failid"},images:{one:"Vali pilt",other:"Vali pildid"}}},dialog:{done:"Valmis",showFiles:"Näita faile",tabs:{names:{"empty-pubkey":"Tere",preview:"Eelvaade",file:"Failid Kõvakettalt",url:"Veebilink",camera:"Kaamera"},file:{drag:"Tiri failid siia",nodrop:"Lae failid arvutist",cloudsTip:"Pilv<br>ja sotsiaalmeedia",or:"või",button:"Vali fail kõvakettalt",also:"Saad samuti valida"},url:{title:"Failid veebist",line1:"Ükskõik mis fail otse veebist.",line2:"Lihtsalt sisesta URL.",input:"Kleebi link siia...",button:"Lae üles"},camera:{capture:"Take a photo",mirror:"Mirror",startRecord:"Record a video",stopRecord:"Stop",cancelRecord:"Cancel",retry:"Request permissions again",pleaseAllow:{title:"Please allow access to your camera",text:"You have been prompted to allow camera access from this site. In order to take pictures with your camera you must approve this request."},notFound:{title:"No camera detected",text:"Looks like you have no camera connected to this device."}},preview:{unknownName:"teadmata",change:"Tühista",back:"Tagasi",done:"Lisa",unknown:{title:"Üleslaadimine... Palun oota eelvaadet.",done:"Jäta eelvaade vahele ja nõustu"},regular:{title:"Lisa see fail?",line1:"Oled lisamas ülaltoodud faili.",line2:"Palun kinnita."},image:{title:"Lisa pilt?",change:"Tühista"},crop:{title:"Lõika ja lisa pilt",done:"Valmis",free:"vaba"},video:{title:"Lisa video?",change:"Tühista"},error:{default:{title:"Oihh!",text:"Midagi läks üleslaadimisel valesti.",back:"Palun proovi uuesti"},image:{title:"Ainult pildifailid on lubatud.",text:"Palun proovi uuesti teise failiga.",back:"Vali pilt"},size:{title:"Valitud fail ületab maksimaalse suuruse.",text:"Palun proovi uuesti teise failiga."},loadImage:{title:"Viga",text:"Ei saa pilti laadida"}},multiple:{title:"Oled valinud %files%",question:"Kas sa soovid lisada kõik failid?",tooManyFiles:"Oled valinud liiga suure hulga faile. %max% on maksimaalne.",tooFewFiles:"Oled valinud %files%. Vähemalt %min% nõutud.",clear:"Eemalda kõik",done:"Valmis"}}}}},pluralize:function(e){return 1===e?"one":"other"}},fr:{translations:{uploading:"Envoi en cours... Merci de patienter.",loadingInfo:"Chargement des informations...",errors:{default:"Erreur",baddata:"Valeur incorrecte",size:"Fichier trop volumineux",upload:"Envoi impossible",user:"Envoi annulé",info:"Impossible de charger les informations",image:"Seules les images sont autorisées",createGroup:"Création d'1 groupe impossible",deleted:"Le fichier a été supprimé"},draghere:"Glissez-déposez un fichier ici",file:{one:"%1 fichier",other:"%1 fichiers"},buttons:{cancel:"Annuler",remove:"Supprimer",choose:{files:{one:"Sélectionner un fichier",other:"Sélectionner des fichiers"},images:{one:"Sélectionner une image",other:"Sélectionner des images"}}},dialog:{close:"Fermer",openMenu:"Ouvrir le menu",done:"Terminer",showFiles:"Voir les fichiers",tabs:{names:{"empty-pubkey":"Bienvenue",preview:"Avant-première",file:"Fichier en local",url:"Une adresse web",camera:"Caméra",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"Glissez-déposez un fichier ici",nodrop:"Envoyez des fichiers depuis votre ordinateur",cloudsTip:"Stockage sur le cloud<br>et réseaux sociaux",or:"ou",button:"Choisir un fichier local",also:"Vous pouvez également le sélectionner depuis"},url:{title:"Fichiers depuis le Web",line1:"Prenez n'importe quel fichier depuis un site web.",line2:"Saisissez simplement son adresse.",input:"Collez le lien ici...",button:"Envoi"},camera:{title:"Fichier depuis la caméra",capture:"Prendre une photo",mirror:"Miroir",startRecord:"Enregistrer une vidéo",stopRecord:"Arrêter",cancelRecord:"Annuler",retry:"Envoyer une nouvelle demande de permission",pleaseAllow:{title:"Autorisez l'accès à votre appareil photo",text:"Vous avez été invité à autoriser l'accès à votre appareil photo. Pour prendre des photos avec votre caméra vous devez approuver cette demande."},notFound:{title:"Aucun appareil photo détecté",text:"Il semblerait que vous n'ayez pas d'appareil photo connecté à cet appareil."}},preview:{unknownName:"inconnu",change:"Annuler",back:"Retour",done:"Ajouter",unknown:{title:"Envoi en cours... Merci de patienter pour prévisualiser.",done:"Passer la prévisualisation et accepter"},regular:{title:"Ajouter ce fichier ?",line1:"Vous êtes sur le point d'ajouter le fichier ci-dessus.",line2:"Merci de confirmer."},image:{title:"Ajouter cette image ?",change:"Annuler"},crop:{title:"Recadrer et ajouter cette image",done:"Terminer",free:"libre"},video:{title:"Ajouter cette vidéo ?",change:"Annuler"},error:{default:{title:"Oups!",text:"Quelque chose n'a pas fonctionné pendant l'envoi.",back:"Merci de bien vouloir recommencer"},image:{title:"Seules les images sont acceptées.",text:"Merci de bien vouloir recommencer avec un autre fichier.",back:"Choisir une image"},size:{title:"Le fichier sélectionné est trop volumineux.",text:"Merci de bien vouloir recommencer avec un autre fichier."},loadImage:{title:"Erreur",text:"Impossible de charger l'image"}},multiple:{title:"Vous avez choisi %files%",question:"Voulez vous ajouter tous ces fichiers ?",tooManyFiles:"Vous avez choisi trop de fichiers. %max% est le maximum.",tooFewFiles:"Vous avez choisi %fichiers%. %min% est le minimum.",clear:"Tout retirer",done:"Terminer",file:{preview:"Prévisualiser %file%",remove:"Supprimer %file%"}}}}}},pluralize:function(e){return 1===e?"one":"other"}},he:{translations:{uploading:"טוען... אנא המתן.",loadingInfo:"טוען מידע...",errors:{default:"שגיאה",baddata:"ערך שגוי",size:"קובץ גדול מידי",upload:"לא ניתן להעלות",user:"העלאה בוטלה",info:"לא ניתן לטעון מידע",image:"ניתן להעלות רק תמונות",createGroup:"לא ניתן ליצור קבוצה",deleted:"הקובץ נמחק"},draghere:"שחרר כאן קובץ",file:{one:"קובץ %1",other:"%1 קבצים"},buttons:{cancel:"ביטול",remove:"הסר",choose:{files:{one:"בחר קובץ",other:"בחר קבצים"},images:{one:"בחר תמונה",other:"בחר תמונות"}}},dialog:{done:"סיום",showFiles:"הצג קבצים",tabs:{names:{facebook:"פייסבוק",dropbox:"דרופבוקס",gdrive:"כונן גוגל",instagram:"אינסטגרם",url:"לינק מהאינטרנט"},file:{drag:"שחרר כאן קובץ",nodrop:"העלה קבצים מהמחשב",or:"או",button:"בחר קובץ מהמחשב",also:"ניתן לבחור גם מ"},url:{title:"קובץ מהאינטרנט",line1:"גרור קובץ מהאינטרנט",line2:"ספק את כתובת הקובץ",input:"הדבק את כתובת הקובץ...",button:"העלה"},preview:{unknownName:"לא ידוע",change:"ביטול",back:"חזרה",done:"הוסף",unknown:{title:"מעלה... נא המתן לתצוגה מקדימה.",done:"דלג על תצוגה מקדימה"},regular:{title:"להוסיף קובץ זה?",line1:"קובץ זה יועלה",line2:"נא אשר."},image:{title:"להוסיף תמונה זו?",change:"ביטול"},crop:{title:"חתוך והוסף תמונה זו",done:"סיום"},error:{default:{title:"אופס!",text:"משהו השתבש בזמן ההעלאה.",back:"נא נסה שוב"},image:{title:"ניתן לקבל רק קבצי תמונות.",text:"נא נסה שוב עם קובץ אחר.",back:"בחר תמונה"},size:{title:"הקובץ שבחרת חורג מהגבול.",text:"נא נסה שוב עם קובץ אחר."},loadImage:{title:"שגיאה",text:"טעינת התמונה נכשלה"}},multiple:{title:"בחרת %files%",question:"אתה מעוניין להוסיף את כל הקבצים האלו?",tooManyFiles:"בחרת יותר מידי קבצים. יש לבחור מקסימום %max% קבצים.",tooFewFiles:"בחרת %files%. יש לבחור לפחות %min%.",clear:"הסר הכל",done:"סיום"}}}}},pluralize:function(e){return 1===e?"one":"other"}},it:{translations:{uploading:"Caricamento in corso... Si prega di attendere.",loadingInfo:"Caricamento informazioni in corso...",errors:{default:"Errore",baddata:"Valore errato",size:"Il file è troppo grande",upload:"Impossibile fare l’upload",user:"Upload cancellato",info:"Impossibile caricare le informazioni",image:"Sono ammesse solo immagini",createGroup:"Impossibile creare gruppo di file",deleted:"Il file è stato eliminato"},draghere:"Trascina un file qui",file:{one:"file %1",other:"file %1"},buttons:{cancel:"Cancella",remove:"Rimuovi",choose:{files:{one:"Seleziona un file",other:"Seleziona file"},images:{one:"Seleziona un’immagine",other:"Seleziona immagini"}}},dialog:{done:"Fatto",showFiles:"Mostra file",tabs:{names:{"empty-pubkey":"Benvenuto",preview:"Anteprima",file:"File locali",url:"Link arbitrari",camera:"Fotocamera"},file:{drag:"Trascina un file qui",nodrop:"Carica file dal tuo computer",cloudsTip:"Salvataggi nel cloud<br>e servizi sociali",or:"o",button:"Seleziona un file locale",also:"Puoi anche scegliere da"},url:{title:"File dal web",line1:"Preleva un file dal web.",line2:"È sufficiente fornire il link.",input:"Incolla il tuo link qui...",button:"Carica"},camera:{capture:"Scatta una foto",mirror:"Specchio",retry:"Richiedi di nuovo le autorizzazioni",pleaseAllow:{title:"Consenti l’accesso alla tua fotocamera",text:"Ti è stato richiesto di consentire l’accesso alla fotocamera da questo sito. Per scattare le foto con la tua fotocamera devi accettare questa richiesta."},notFound:{title:"Nessuna fotocamera rilevata",text:"Non risulta che tu non abbia una fotocamera collegata a questo dispositivo."}},preview:{unknownName:"sconosciuto",change:"Cancella",back:"Indietro",done:"Aggiungi",unknown:{title:"Caricamento in corso... Attendi l’anteprima.",done:"Salta l’anteprima e accetta"},regular:{title:"Vuoi aggiungere questo file?",line1:"Stai per aggiungere il file sopra.",line2:"Conferma."},image:{title:"Vuoi aggiungere questa immagine?",change:"Cancella"},crop:{title:"Ritaglia e aggiungi questa immagine",done:"Fatto",free:"gratis"},error:{default:{title:"Ops!",text:"Si è verificato un problema durante l’upload.",back:"Si prega di riprovare"},image:{title:"Sono accettati solo file immagine.",text:"Riprova con un altro file.",back:"Scegli immagine"},size:{title:"Il file selezionato supera il limite.",text:"Riprova con un altro file."},loadImage:{title:"Errore",text:"Impossibile caricare l’immagine"}},multiple:{title:"Hai selezionato %files%",question:"Vuoi aggiungere tutti questi file?",tooManyFiles:"Hai selezionato troppi file. %max% è il massimo.",tooFewFiles:"Hai selezionato %files%. È richiesto almeno %min%.",clear:"Rimuovi tutto",done:"Fatto"}}}}},pluralize:function(e){return 1===e?"one":"other"}},ja:{translations:{uploading:"アップロードしています… 完了までお待ち下さい。",loadingInfo:"読み込み中…",errors:{default:"エラー",baddata:"間違った値",size:"ファイルが大きすぎます",upload:"アップロードできませんでした",user:"アップロードがキャンセルされました",info:"読み込みに失敗しました",image:"アップロードできるのは画像ファイルのみです",createGroup:"グループの作成に失敗しました",deleted:"削除されたファイルです"},draghere:"ここにファイルをドロップ",file:{other:"%1ファイル"},buttons:{cancel:"キャンセル",remove:"削除",choose:{files:{one:"ファイルを選択",other:"ファイルを選択"},images:{one:"画像を選択",other:"画像を選択"}}},dialog:{done:"完了",showFiles:"ファイルを表示",tabs:{names:{preview:"プレビュー",file:"ローカルファイル",url:"URLを直接入力"},file:{drag:"ここにファイルをドロップ",nodrop:"ファイルを選択してアップロード",cloudsTip:"クラウドストレージ<br>およびソーシャルサービス",or:"もしくは",button:"ローカルのファイルを選択",also:"次からも選択可能です:"},url:{title:"ウェブ上のファイル",line1:"ウェブ上からファイルを取得します。",line2:"URLを入力してください。",input:"ここにURLを貼り付けしてください…",button:"アップロード"},preview:{unknownName:"不明なファイル",change:"キャンセル",back:"戻る",done:"追加",unknown:{title:"アップロードしています… プレビューの表示をお待ちください。",done:"プレビューの確認をスキップして完了"},regular:{title:"このファイルを追加しますか?",line1:"こちらのファイルを追加しようとしています。",line2:"確認してください。"},image:{title:"この画像を追加しますか?",change:"キャンセル"},crop:{title:"画像の切り取りと追加",done:"完了",free:"リセット"},error:{default:{title:"失敗しました",text:"アップロード中に不明なエラーが発生しました。",back:"もう一度お試し下さい"},image:{title:"画像ファイルのみ許可されています",text:"他のファイルで再度お試し下さい。",back:"画像を選択"},size:{title:"ファイルサイズが大きすぎます。",text:"他のファイルで再度お試し下さい。"},loadImage:{title:"エラー",text:"画像のロードに失敗しました。"}},multiple:{title:"%files%つのファイルを選択中",question:"これら全てのファイルを追加しますか?",tooManyFiles:"選択ファイルが多すぎます。%max%つ以下にしてください。",tooFewFiles:"選択ファイルが少なすぎます。%files%つ選択中です。少なくとも%min%つ選択してください。",clear:"全て削除",done:"完了"}}}}},pluralize:function(e){return"other"}},ko:{translations:{uploading:"업로드중 기다려주세요",loadingInfo:"정보 로드중...",errors:{default:"오류",baddata:"잘못된 값",size:"파일용량 초과",upload:"업로드 실패",user:"업로드 취소됨",info:"정보를 불러올 수 없습니다",image:"허용된 이미지만 가능",createGroup:"파일 그룹 만들기 실패",deleted:"파일이 삭제되었습니다"},draghere:"여기에 끌어다 놓기",file:{one:"%1 파일",other:"%1 파일"},buttons:{cancel:"취소",remove:"삭제",choose:{files:{one:"파일 첨부",other:"파일 첨부"},images:{one:"이미지 첨부",other:"이미지 첨부"}}},dialog:{close:"닫기",openMenu:"메뉴 열기",done:"완료",showFiles:"파일 표시",tabs:{names:{"empty-pubkey":"반갑습니다",preview:"미리보기",file:"파일 첨부",url:"링크 연결",camera:"카메라",facebook:"페이스북",dropbox:"드롭박스",gdrive:"구글 드라이브",gphotos:"구글 포토",instagram:"인스타그램",evernote:"에버노트",box:"박스",onedrive:"스카이드라이브",flickr:"플리커"},file:{drag:"모든 파일을<br>드래그 & 드롭",nodrop:"파일 업로드",cloudsTip:"클라우드 스토리지 및 소셜",or:"또는",button:"파일 선택",also:"또는 선택하십시오"},url:{title:"웹에서 파일 링크 연결",line1:"웹에서 모든파일을 가져옵니다",line2:"링크만 연결합니다.",input:"링크 붙여 넣기...",button:"업로드"},camera:{title:"카메라 연결",capture:"사진 찍기",mirror:"거울",startRecord:"비디오 녹화",stopRecord:"정지",cancelRecord:"취소",retry:"재 시도",pleaseAllow:{title:"카메라 접근 허용",text:"카메라 접근을 허용하시겠습니까?<br>승인 요청을 해주셔야 합니다"},notFound:{title:"카메라가 없습니다",text:"이 기기에 연결된 카메라가 없습니다"}},preview:{unknownName:"알수없음",change:"취소",back:"뒤로",done:"추가",unknown:{title:"업로드중, 기다려주세요",done:"미리보기 건너뛰기"},regular:{title:"이 파일을 추가하시겠습니까?",line1:"위 파일을 추가하려고 합니다",line2:"확인 하십시오"},image:{title:"이미지를 추가하시겠습니까?",change:"취소"},crop:{title:"이미지 자르기 및 추가",done:"완료",free:"무료"},video:{title:"비디오를 추가하시겠습니까?",change:"취소"},error:{default:{title:"죄송합니다",text:"업로드에 문제가 있습니다",back:"다시 시도해 주세요"},image:{title:"이미지 파일만 허용됩니다",text:"다른 파일로 다시 시도하세요",back:"이미지 선택"},size:{title:"선택한 파일이 한도 초과하였습니다",text:"다른 파일로 다시 시도하세요"},loadImage:{title:"오류",text:"이미지를 불러올 수 없습니다"}},multiple:{title:"%files%을(를) 선택하였습니다",question:"%files%을 추가하시겠습니까?",tooManyFiles:"너무 많은 파일을 추가하셨습니다. %max%가 최대 한도입니다",tooFewFiles:"%files%을(를) 선택하였습니다 최소 %min%이상 필요합니다",clear:"모두 삭제",done:"추가",file:{preview:"%file% 미리보기",remove:"%file% 삭제"}}}},footer:{text:"powered by",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},lv:{translations:{uploading:"Augšupielādē... Lūdzu, gaidiet.",errors:{default:"Kļūda",image:"Atļauti tikai attēli"},draghere:"Velciet failus šeit",file:{zero:"%1 failu",one:"%1 fails",other:"%1 faili"},buttons:{cancel:"Atcelt",remove:"Dzēst"},dialog:{title:"Ielādēt jebko no jebkurienes",poweredby:"Darbināts ar",support:{images:"Attēli",audio:"Audio",video:"Video",documents:"Dokumenti"},tabs:{file:{title:"Mans dators",line1:"Paņemiet jebkuru failu no jūsu datora.",line2:"Izvēlēties ar dialogu vai ievelciet iekšā.",button:"Meklēt failus"},url:{title:"Faili no tīmekļa",line1:"Paņemiet jebkuru failu no tīmekļa.",line2:"Tikai uzrādiet linku.",input:"Ielīmējiet linku šeit...",button:"Ielādēt"}}}},pluralize:function(e){return 0===e?"zero":e%10==1&&e%100!=11?"one":"other"}},nb:{translations:{uploading:"Laster opp... Vennligst vent.",loadingInfo:"Laster inn info...",errors:{default:"Feil",baddata:"Ugyldig verdi",size:"Filen er for stor",upload:"Kan ikke laste opp",user:"Opplasting avbrutt",info:"Kan ikke laste inn info",image:"Kun bilder er tillatt",createGroup:"Kan ikke opprette filgruppe",deleted:"Filen er slettet"},draghere:"Dra en fil hit",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Avbryt",remove:"Fjern",choose:{files:{one:"Velg en fil",other:"Velg filer"},images:{one:"Velg et bilde",other:"Velg bilder"}}},dialog:{done:"Ferdig",showFiles:"Vis filer",tabs:{names:{preview:"Forhåndsvising",file:"Lokale filer",url:"Direktelink"},file:{drag:"Dra og slipp en fil her",nodrop:"Last opp filer fra datamaskinen",cloudsTip:"Skylagring<br>og sosiale tjenester",or:"eller",button:"Velg en lokal fil",also:"Du kan også velge det fra"},url:{title:"Filer fra internett",line1:"Velg hvilken som helst fil fra internett.",line2:"Bare gi oss linken.",input:"Lim inn linken her...",button:"Last opp"},preview:{unknownName:"ukjent",change:"Avbryt",back:"Tilbake",done:"Legg til",unknown:{title:"Laster opp... Vennligst vent på forhåndsvisning.",done:"Hopp over forhåndsvisning og godkjenn"},regular:{title:"Legge til denne filen?",line1:"Filen legges nå til.",line2:"Vennligst bekreft."},image:{title:"Legge til dette bildet?",change:"Avbryt"},crop:{title:"Kutt og legg til dette bildet",done:"Ferdig",free:"frigjør"},error:{default:{title:"Ops!",text:"Noe gikk galt under opplastingen.",back:"Vennligst prøv igjen"},image:{title:"Kun bilder er akseptert.",text:"Prøv igjen med en annen fil.",back:"Velg bilde"},size:{title:"Den valgte filen overskrider tilatt størrelse.",text:"Vennligst prøv igjen med en annen fil."},loadImage:{title:"Feil",text:"Kan ikke laste bildet"}},multiple:{title:"Du har valgt %files%",question:"Ønsker du å legge til alle filene?",tooManyFiles:"Du har valgt for mange filer. %max% er maksimum.",tooFewFiles:"Du har valgt %files%. Minimum %min% er påkrevd.",clear:"Fjern alle",done:"Ferdig"}}}}},pluralize:function(e){return 1===e?"one":"other"}},nl:{translations:{uploading:"Uploaden... Even geduld.",loadingInfo:"Laden informatie...",errors:{default:"Fout",baddata:"Ongeldige waarde",size:"Bestand is te groot",upload:"Kan niet uploaden",user:"Upload geannuleerd",info:"Kan informatie niet laden",image:"Alleen afbeeldingen toegestaan",createGroup:"Kan bestandsgroep niet maken",deleted:"Bestand is verwijderd"},draghere:"Drop hier een bestand",file:{one:"%1 bestand",other:"%1 bestanden"},buttons:{cancel:"Annuleren",remove:"Verwijderen",choose:{files:{one:"Kies een bestand",other:"Kies bestanden"},images:{one:"Kies een afbeelding",other:"Kies afbeeldingen"}}},dialog:{done:"Klaar",showFiles:"Toon bestanden",tabs:{names:{preview:"Voorvertoning",file:"Computer",url:"Directe links"},file:{drag:"Drop hier een bestand",nodrop:"Upload bestanden van je computer",or:"of",button:"Selecteer een bestand op je computer",also:"Je kan ook selecteren van"},camera:{title:"Bestand van webcamera",retry:"Opnieuw toegang aanvragen"},url:{title:"Bestanden op het web",line1:"Selecteer een bestand op het web.",line2:"Voer de link in.",input:"Plak de link hier...",button:"Upload"},preview:{unknownName:"onbekend",change:"Annuleren",back:"Terug",done:"Toevoegen",unknown:{title:"Uploaden... Wacht op de voorvertoning.",done:"Voorvertoning overslaan an accepteren"},regular:{title:"Dit bestand toevoegen?",line1:"Je staat op het punt bovenstaand bestand toe te voegen.",line2:"Bevestig"},image:{title:"Voeg deze afbeelding toe?",change:"Annuleren"},crop:{title:"Afbeelding bijknippen en toevoegen",done:"Klaar"},error:{default:{title:"Oeps!",text:"Er is een fout opgetreden tijdens het uploaden.",back:"Probeer opnieuw"},image:{title:"Alleen afbeeldingen worden geaccepteerd.",text:"Probeer opnieuw met een andere bestand.",back:"Selecteer afbeelding"},size:{title:"Het geselecteerd bestand is groter dan de limiet.",text:"Probeer opnieuw met een andere bestand."},loadImage:{title:"Fout",text:"Kan afbeelding niet laden"}},multiple:{title:"Je hebt de volgende bestanden geselecteerd %files%",question:"Wil je al deze bestanden toevoegen?",tooManyFiles:"Je hebt teveel bestanden geselecteerd. %max% is het maximum.",tooFewFiles:"Je hebt de volgende bestanden geselecteerd %files%. Minimaal %min% is verplicht.",clear:"Verwijder alle bestanden",done:"Klaar"}}}}},pluralize:function(e){return 1===e?"one":"other"}},pl:{translations:{uploading:"Przesyłanie... Proszę czekać.",loadingInfo:"Ładowanie...",errors:{default:"Błąd",baddata:"Niepoprawna wartość",size:"Plik zbyt duży",upload:"Nie udało się przesłać",user:"Przesyłanie anulowane",info:"Nie udało się załadować informacji",image:"Dozwolone są tylko obrazy",createGroup:"Nie udało się utworzyć grupy plików",deleted:"Plik został usunięty"},draghere:"Upuść plik tutaj",file:{one:"%1 plik",few:"%1 pliki",many:"%1 plików"},buttons:{cancel:"Anuluj",remove:"Usuń",choose:{files:{one:"Wybierz plik",other:"Wybierz pliki"},images:{one:"Wybierz obraz",other:"Wybierz obrazy"}}},dialog:{close:"Zamknij",openMenu:"Otwórz menu",done:"Wykonano",showFiles:"Pokaż pliki",tabs:{names:{"empty-pubkey":"Witaj",preview:"Podgląd",file:"Pliki lokalne",url:"Plik z Sieci",camera:"Aparat"},file:{drag:"Upuść plik tutaj",nodrop:"Prześlij pliki z Twojego komputera",cloudsTip:"Dane w chmurze<br>i sieci społecznościowe",or:"lub",button:"Wybierz plik lokalny",also:"Możesz również wybrać z"},url:{title:"Pliki z Sieci",line1:"Złap jakikolwiej plik z sieci.",line2:"Podaj adres.",input:"Wklej link...",button:"Prześlij"},camera:{title:"Plik z kamery internetowej",capture:"Zrób zdjęcie",mirror:"Odbicie lustrzane",startRecord:"Nagraj film",stopRecord:"Zakończ",cancelRecord:"Anuluj",retry:"Poproś ponownie o dostęp",pleaseAllow:{title:"Prośba o udostępnienie aparatu",text:"Zostałeś poproszony przez tę stronę o dostęp do aparatu. Aby robić zdjecia, musisz zaakceptować tę prośbę."},notFound:{title:"Nie wykryto aparatu.",text:"Wygląda na to, że nie masz podłączonego aparatu do tego urządzenia."}},preview:{unknownName:"nieznany",change:"Anuluj",back:"Wstecz",done:"Dodaj",unknown:{title:"Przesyłanie... Proszę czekać na podgląd.",done:"Omiń podgląd i zaakceptuj."},regular:{title:"Dodać ten plik?",line1:"Zamierzasz dodać nowy plik.",line2:"Potwierdź, proszę."},image:{title:"Dodać ten obraz?",change:"Anuluj"},crop:{title:"Przytnij i dodaj ten obraz",done:"Wykonano",free:"wolny"},video:{title:"Dodać ten film?",change:"Anuluj"},error:{default:{title:"Oops!",text:"Coś poszło nie tak podczas przesyłania.",back:"Spróbuj ponownie"},image:{title:"Akceptowane są tylko obrazy.",text:"Spróbuj ponownie z innym plikiem.",back:"Wybierz obraz"},size:{title:"Plik, który wybrałeś, przekracza dopuszczalny rozmiar",text:"Spróbuj ponownie z innym plikiem."},loadImage:{title:"Błąd",text:"Nie udało się załadować obrazu"}},multiple:{title:"Wybrałeś %files%",question:"Czy chcesz dodać wszystkie te pliki?",tooManyFiles:"Wybrałeś zbyt wiele plików. Maksimum to %max%.",tooFewFiles:"Wybrałeś %files%. Wymagane jest co najmniej %min%.",clear:"Usuń wszystkie",done:"Wykonano",file:{preview:"Zobacz %file%",remove:"Usuń %file%"}}}}}},pluralize:function(e){var t;return 1===e?"one":(t=e%10)>=2&&t<=4&&1!=(e/10%10|0)?"few":"many"}},pt:{translations:{uploading:"Fazendo upload... Aguarde.",loadingInfo:"Carregando informações...",errors:{default:"Erro",baddata:"Valor incorreto",size:"Arquivo muito grande",upload:"Não foi possível fazer o upload",user:"Upload cancelado",info:"Não foi possível carregar as informações",image:"Apenas imagens são permitidas",createGroup:"Não foi possível criar o grupo de arquivos",deleted:"O arquivo foi excluído"},draghere:"Arraste um arquivo aqui",file:{one:"%1 arquivo",other:"%1 arquivos"},buttons:{cancel:"Cancelar",remove:"Excluir",choose:{files:{one:"Escolha um arquivo",other:"Escolha arquivos"},images:{one:"Escolha uma imagem",other:"Escolha imagens"}}},dialog:{done:"OK",showFiles:"Mostrar arquivos",tabs:{names:{preview:"Visualizar",file:"Computador",url:"Link da web"},file:{drag:"Arraste um arquivo aqui",nodrop:"Faça upload de arquivos do seu computador",or:"ou",button:"Escolha um arquivo do computador",also:"Você também pode escolher arquivos de"},url:{title:"Arquivos da web",line1:"Faça upload de qualquer arquivo da web.",line2:"Apenas informe o link.",input:"Cole seu link aqui...",button:"Upload"},camera:{capture:"Tirar uma foto",mirror:"Espelhar",startRecord:"Gravar um vídeo",stopRecord:"Parar",cancelRecord:"Cancelar",retry:"Requisitar permissão novamente",pleaseAllow:{title:"Por favor permita o acesso a sua câmera",text:"Você foi solicitado a permitir o acesso à câmera a partir deste site. Para tirar fotos com sua câmera, você deve aprovar este pedido."},notFoud:{title:"Câmera não detectada",text:"Parece que você não tem uma câmera conectada a este dispositivo"}},preview:{unknownName:"desconhecido",change:"Cancelar",back:"Voltar",done:"Adicionar",unknown:{title:"Fazendo upload... Aguarde a visualização.",done:"Pular visualização e aceitar"},regular:{title:"Adicionar esse arquivo?",line1:"Você está prestes a adicionar o arquivo acima.",line2:"Por favor, confirme."},image:{title:"Adicionar essa imagem?",change:"Cancelar"},crop:{title:"Cortar e adicionar essa imagem",done:"OK",free:"livre"},error:{default:{title:"Oops!",text:"Alguma coisa deu errado durante o upload.",back:"Por favor, tente novamente"},image:{title:"Apenas arquivos de imagem são aceitos.",text:"Por favor, tente novamente com outro arquivo.",back:"Escolher a imagem"},size:{title:"O arquivo que você escolheu excede o limite.",text:"Por favor, tente novamente com outro arquivo."},loadImage:{title:"Erro",text:"Não foi possível carregar a imagem"}},multiple:{title:"Você escolheu",question:"Você quer adicionar todos esses arquivos?",clear:"Excluir todos",done:"OK"}}}}},pluralize:function(e){return 1===e?"one":"other"}},ro:{translations:{uploading:"Se încarcă... Răbdare.",loadingInfo:"Info încărcare...",errors:{default:"Eroare",baddata:"Valoare incorectă",size:"Fișier prea mare",upload:"Nu pot încărca",user:"Încărcare anulată",info:"Nu pot încărca info",image:"Doar imagini, vă rog",createGroup:"Nu pot crea grup de fișiere",deleted:"Fișierul a fost șters"},draghere:"Trage un fișier aici",file:{one:"%1 fișier",other:"%1 fișiere"},buttons:{cancel:"Anulare",remove:"Șterge",choose:{files:{one:"Alege un fișier",other:"Alege fișiere"},images:{one:"Alege o imagine",other:"Alege imagini"}}},dialog:{close:"Închide",openMenu:"Deschide meniu",done:"Gata",showFiles:"Arată fișiere",tabs:{names:{"empty-pubkey":"Bine ai venit",preview:"Previzualizare",file:"Fișiere locale",url:"Link direct",camera:"Camera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"trage aici<br>fișierele",nodrop:"Încarcă fișiere din computer",cloudsTip:"Cloud <br>și rețle sociale",or:"sau",button:"Alege un fișier local",also:"sau alege din"},url:{title:"Fișiere din Web",line1:"Ia orice fișier din Web.",line2:"Trebuie să ai doar linkul.",input:"Lipește linkul aici...",button:"Încarcă"},camera:{title:"Fișier din camera web",capture:"Fă o fotografie",mirror:"Mirror",startRecord:"Înregistrează un video",stopRecord:"Stop",cancelRecord:"Anulează",retry:"Cere permisiune din nou",pleaseAllow:{title:"Te rog sa-mi dai acces la cameră",text:"Ai fost rugat să dai acces la cameră de acest site.<br>Pentru a putea face fotografii cu camera, trebuie să aprobi această cerere."},notFound:{title:"Nicio cameră detectată",text:"Se pare că nu ai nicio cameră atașată acestui device."}},preview:{unknownName:"necunoscut",change:"Anulează",back:"Înapoi",done:"Adaugă",unknown:{title:"Se încarcă... Te rog așteaptă previzualizarea.",done:"Sari peste previzualizare și acceptă"},regular:{title:"Adaug acest fișier?",line1:"Ești pe punctul de a adăuga fișierul de mai sus.",line2:"Te rog confirmă."},image:{title:"Adaug această imagine?",change:"Anulează"},crop:{title:"Decupează și adaugă aceasta imagine",done:"Gata",free:"gratis"},video:{title:"Adaug acest video?",change:"anulează"},error:{default:{title:"Oops!",text:"A intervenit o problemă la încărcare.",back:"te rog încearcă din nou"},image:{title:"Sunt acceptate doar imagini.",text:"Te rog încearcă din nou cu un alt fișier.",back:"Alege imagine"},size:{title:"Fișierul selectat de tine este prea mare.",text:"Te rog să încerci cu alt fișier."},loadImage:{title:"Eroare",text:"Nu pot încărca imaginea"}},multiple:{title:"Ai ales %files%.",question:"Adaug %files%?",tooManyFiles:"Ai ales prea multe fișiere. %max% is maximum.",tooFewFiles:"Ai ales %files%. Minimul este %min% .",clear:"Șterge toate",done:"Adaugă",file:{preview:"Previzualizare %file%",remove:"Șterge %file%"}}}},footer:{text:"powered by",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},ru:{translations:{uploading:"Идет загрузка",loadingInfo:"Загрузка информации...",errors:{default:"Ошибка",baddata:"Некорректные данные",size:"Слишком большой файл",upload:"Ошибка при загрузке",user:"Загрузка прервана",info:"Ошибка при загрузке информации",image:"Разрешены только изображения",createGroup:"Не удалось создать группу файлов",deleted:"Файл удалён"},draghere:"Перетащите файл сюда",file:{one:"%1 файл",few:"%1 файла",many:"%1 файлов"},buttons:{cancel:"Отмена",remove:"Удалить",choose:{files:{one:"Выбрать файл",other:"Выбрать файлы"},images:{one:"Выбрать изображение",other:"Выбрать изображения"}}},dialog:{done:"Готово",showFiles:"Показать файлы",tabs:{names:{preview:"Предпросмотр","empty-pubkey":"Приветствие",file:"Локальные файлы",vk:"ВКонтакте",url:"Ссылка",camera:"Камера"},file:{drag:"Перетащите файл сюда",nodrop:"Загрузка файлов с вашего компьютера",cloudsTip:"Облачные хранилища<br>и социальные сети",or:"или",button:"Выберите локальный файл",also:"Вы также можете загрузить файлы, используя:"},url:{title:"Файлы с других сайтов",line1:"Загрузите любой файл из сети.",line2:"",input:"Укажите здесь ссылку...",button:"Загрузить"},camera:{title:"Файл из видеокамеры",capture:"Сделать снимок",mirror:"Отразить",retry:"Повторно запросить разрешение",pleaseAllow:{title:"Пожалуйста, разрешите доступ к камере",text:"Для того, чтобы сделать снимок, мы запросили разрешение на доступ к камере с этого сайта."},notFound:{title:"Камера не найдена",text:"Скорее всего камера не подключена или не настроена."}},preview:{unknownName:"неизвестно",change:"Отмена",back:"Назад",done:"Добавить",unknown:{title:"Загрузка... Пожалуйста подождите.",done:"Пропустить предварительный просмотр"},regular:{title:"Загрузить этот файл?",line1:"Вы собираетесь добавить этот файл:",line2:"Пожалуйста, подтвердите."},image:{title:"Добавить это изображение?",change:"Отмена"},video:{title:"Добавить это видео?",change:"Отмена"},crop:{title:"Обрезать и добавить это изображение",done:"Готово",free:"произв."},error:{default:{title:"Ой!",text:"Что-то пошло не так во время загрузки.",back:"Пожалуйста, попробуйте ещё раз"},image:{title:"Можно загружать только изображения.",text:"Попробуйте загрузить другой файл.",back:"Выберите изображение"},size:{title:"Размер выбранного файла превышает лимит.",text:"Попробуйте загрузить другой файл."},loadImage:{title:"Ошибка",text:"Изображение не удалось загрузить"}},multiple:{title:"Вы выбрали %files%",question:"Добавить все эти файлы?",tooManyFiles:"Вы выбрали слишком много файлов. %max% максимум.",tooFewFiles:"Вы выбрали %files%. Нужно не меньше %min%.",clear:"Удалить все",done:"Добавить",file:{preview:"Предпросмотр %file%",remove:"Удалить %file%"}}}}}},pluralize:function(e){return 1==(e/10%10|0)||e%10==0||e%10>4?"many":e%10==1?"one":"few"}},sk:{translations:{uploading:"Nahrávam... Prosím počkajte.",loadingInfo:"Nahrávam informácie...",errors:{default:"Chyba",baddata:"Nesprávna hodnota",size:"Súbor je príliš veľký",upload:"Nedá sa nahrať",user:"Nahrávanie bolo zrušené",info:"Informácie sa nedajú nahrať",image:"Povolené sú len obrázky",createGroup:"Nie je možné vytvoriť priečinok",deleted:"Súbor bol odstránený"},draghere:"Sem presuňte súbor",file:{one:"%1 súbor",few:"%1 súbory",other:"%1 súborov"},buttons:{cancel:"Zrušiť",remove:"Odstrániť",choose:{files:{one:"Vyberte súbor",other:"Vyberte súbory"},images:{one:"Vyberte obrázok",other:"Vyberte obrázky"}}},dialog:{close:"Zavrieť",openMenu:"Otvoriť menu",done:"Hotovo",showFiles:"Ukázať súbory",tabs:{names:{"empty-pubkey":"Vitajte",preview:"Náhľad",file:"Z počítača",url:"Z internetu",camera:"Kamera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Disk Google",gphotos:"Google Obrázky",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"presuňte a vložte<br>akékoľvek súbory",nodrop:"Nahrajte súbory z vášho&nbsp;počítača",cloudsTip:"Cloud úložiská<br>a sociálne siete",or:"alebo",button:"Vyberte súbor z počítača",also:"alebo vyberte z"},url:{title:"Súbory z internetu",line1:"Uložte akýkoľvek súbor z internetu.",line2:"Stačí pridať odkaz na neho.",input:"Vložte svoj odkaz sem...",button:"Nahrať"},camera:{title:"Súbor z webkamery",capture:"Odfotiť",mirror:"Zrkadliť",startRecord:"Natočte video",stopRecord:"Prestať natáčať",cancelRecord:"Zrušiť",retry:"Znovu požiadať o prístup",pleaseAllow:{title:"Prosím povoľte prístup k vašej kamere",text:"Boli ste vyzvaní aby ste umožnili tejto stránke prístup ku kamere.<br>Prístup musíte povolit aby ste mohli fotiť s vašou kamerou."},notFound:{title:"Kamera nebola nájdená",text:"Zdá sa, že k tomuto zariadeniu nemáte pripojenú kameru."}},preview:{unknownName:"neznámy",change:"Zrušiť",back:"Späť",done:"Pridať",unknown:{title:"Nahráva sa... Prosím počkajte na náhľad.",done:"Preskočiť náhľad a nahrať"},regular:{title:"Pridať tento súbor?",line1:"Chystáte sa pridať vyššie uvedený súbor.",line2:"Prosím potvrďte váš výber."},image:{title:"Pridať tento obrázok?",change:"Zrušiť"},crop:{title:"Orezať a pridať túto fotku",done:"Hotovo",free:"obnoviť"},video:{title:"Pridať toto video?",change:"Zrušiť"},error:{default:{title:"Ejha!",text:"Pri nahrávaní sa vyskytla chyba.",back:"Skúste to znovu"},image:{title:"Je možné nahrávať len obrázky",text:"Skúste to znovu s iným súborom.",back:"Vybrať obrázok"},size:{title:"Súbor, ktorý ste vybrali presahuje povolenú veľkosť.",text:"Skúste to znovu s iným súborom."},loadImage:{title:"Chyba",text:"Obrázok nie je možné vyhľadať"}},multiple:{title:"Vybrali ste %files%.",question:"Pridať %files%?",tooManyFiles:"Vybrali ste príliš veľa súborov. Maximum je %max%.",tooFewFiles:"Vybrali ste %files%. Potrebných je aspoň %min%.",clear:"Odstrániť všetky",done:"Pridať",file:{preview:"Nahliadnuť na %file%",remove:"Odstrániť %file%"}}}}}},pluralize:function(e){return 1===e?"one":e>=2&&e<=4?"few":"many"}},sr:{translations:{uploading:"Шаљем... Молимо сачекајте.",loadingInfo:"Учитавам информације...",errors:{default:"Грешка",baddata:"Погрешна вредност",size:"Фајл је сувише велик",upload:"Не могу да пошаљем",user:"Слање прекинуто",info:"Не могу да учитам информације",image:"Дозвољене су само слике",createGroup:"Не могу да направим групу фајлова",deleted:"Фајл је обрисан"},draghere:"Убаците фајл овде",file:{one:"%1 фајл",other:"%1 фајлова"},buttons:{cancel:"Поништи",remove:"Избаци",choose:{files:{one:"Изабери фајл",other:"Изабери фајлове"},images:{one:"Изабери слику",other:"Изабери слике"}}},dialog:{close:"Затвори",openMenu:"Отвори мени",done:"Готово",showFiles:"Покажи фајлове",tabs:{names:{"empty-pubkey":"Добродошли",preview:"Погледај",file:"Локални фајлови",url:"Директан линк",camera:"Камера",facebook:"Фејсбук",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Инстаграм",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"превуци<br>било које фајлове",nodrop:"Пошаљи фајлове са твог&nbsp;компјутера",cloudsTip:"Клауд<br>и социјалне мреже",or:"или",button:"Изабери локални фајл",also:"или изабери"},url:{title:"Фајлове са Интернета",line1:"Изабери било који фајл са Интернета.",line2:"Само убаци линк.",input:"Убаци линк овде...",button:"Пошаљи"},camera:{title:"Фајл са камере",capture:"Усликај",mirror:"Огледало",startRecord:"Сними видео",stopRecord:"Заустави",cancelRecord:"Поништи",retry:"Тражи дозволу поново",pleaseAllow:{title:"Молимо вас да дозволите приступ вашој камери",text:"Упитани сте да дозволите приступ вашој камери са овог сајта.<br>Уколико желите да сликате, морате одобрити овај захтев."},notFound:{title:"Камера није препозната",text:"Изгледа да немате камеру на овом уређају."}},preview:{unknownName:"непознато",change:"Поништи",back:"Назад",done:"Додај",unknown:{title:"Шаљем... Сачекајте за приказ.",done:"Прескочи приказ и прихвати"},regular:{title:"Додај овај фајл?",line1:"Управо ћете додати овај фајл изнад.",line2:"Молимо потврдите."},image:{title:"Додај ову слику?",change:"Поништи"},crop:{title:"Кропуј и додај ову слику",done:"Урађено",free:"слободно"},video:{title:"Додај овај видео?",change:"Поништи"},error:{default:{title:"Ооопс!",text:"Нешто је искрсло у току слања.",back:"Молимо покушајте поново"},image:{title:"Дозвљене су само слике.",text:"Молимо покушајте са другим фајлом.",back:"Изабери слику"},size:{title:"Фајл који сте изабрали премашује лимит.",text:"Молимо покушајте са другим фајлом."},loadImage:{title:"Грешка",text:"Не могу да учитам слику"}},multiple:{title:"Изабрали сте %files%.",question:"Додај %files%?",tooManyFiles:"Изабрали сте превише фајлова. %max% је максимално.",tooFewFiles:"Изабрали сте %files%. Морате најмање %min% фајла.",clear:"Избаци све",done:"Додај",file:{preview:"Прегледај %file%",remove:"Избаци %file%"}}}},footer:{text:"направио",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},sv:{translations:{uploading:"Laddar... Var god vänta.",loadingInfo:"Laddar info...",errors:{default:"Fel",baddata:"Felaktigt värde",size:"Filen är för stor",upload:"Kan inte ladda upp",user:"Uppladdning avbruten",info:"Kan inte ladda informationen",image:"Endast bilder tillåtna",createGroup:"Kan inte skapa filgrupp",deleted:"Fil raderad"},draghere:"Dra filen hit",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Avbryt",remove:"Ta bort",choose:{files:{one:"Välj fil",other:"Välj filer"},images:{one:"Välj en bild",other:"Välj bilder"}}},dialog:{done:"Klar",showFiles:"Visa filer",tabs:{names:{"empty-pubkey":"Välkommen",preview:"Förhandsgranskning",file:"Lokala filer",url:"Direkta länkar",camera:"Kamera"},file:{drag:"Släpp filen här",nodrop:"Ladda upp filer från din dator",cloudsTip:"Molnlagring<br>och sociala nätverk",or:"eller",button:"Välj en lokal fil",also:"Du kan också välja den från"},url:{title:"Filer från webben",line1:"Välj en fil från en webbadress.",line2:"Ange bara länken till filen.",input:"Klistra in din länk här...",button:"Ladda upp"},camera:{capture:"Ta ett foto",mirror:"Spegel",retry:"Begär tillstånd igen",pleaseAllow:{title:"Vänligen ge tillgång till din kamera",text:"Du har uppmanats att tillåta att denna webbplats får tillgång till din kamera.För att ta bilder med din kamera måste du godkänna denna begäran."},notFound:{title:"Ingen kamera hittades",text:"Det verkar som att du inte har någon kamera ansluten till denna enheten."}},preview:{unknownName:"okänd",change:"Avbryt",back:"Tillbaka",done:"Lägg till",unknown:{title:"Laddar... Vänligen vänta på förhandsgranskning.",done:"Skippa förhandsgranskning och acceptera"},regular:{title:"Lägg till denna filen?",line1:"Du håller på att lägga till filen ovan.",line2:"Vänligen bekräfta."},image:{title:"Lägg till denna bilden?",change:"Avbryt"},crop:{title:"Beskär och lägg till denna bild",done:"Klar",free:"fri"},error:{default:{title:"Oops!",text:"Någonting gick fel under uppladdningen.",back:"Vänligen försök igen"},image:{title:"Endast bildfiler accepteras.",text:"Vänligen försök igen med en annan fil.",back:"Välj bild"},size:{title:"Filen du har valt är för stor.",text:"Vänligen försök igen med en annan fil."},loadImage:{title:"Fel",text:"Kan inte ladda bild"}},multiple:{title:"Du har valt %files%",question:"Vill du lägga till alla dessa filer?",tooManyFiles:"Du har valt för många filer. %max% är max.",tooFewFiles:"Du har valt %files%. Minst %min% krävs.",clear:"Ta bort alla",done:"Klar"}}}}},pluralize:function(e){return 1===e?"one":"other"}},tr:{translations:{uploading:"Yükleniyor... Lütfen bekleyin.",loadingInfo:"Bilgiler yükleniyor...",errors:{default:"Hata",baddata:"Geçersiz değer",size:"Dosya çok büyük",upload:"Yüklenemedi",user:"Yükleme iptal edildi",info:"Bilgiler getirilemedi",image:"Sadece resim dosyası yüklenebilir",createGroup:"Dosya grubu yaratılamıyor",deleted:"Dosya silinmiş"},draghere:"Buraya bir dosya bırakın",file:{other:"%1 dosya"},buttons:{cancel:"İptal",remove:"Kaldır",choose:{files:{one:"Dosya Seçin",other:"Dosya Seçin"},images:{one:"Resim Dosyası Seçin",other:"Resim Dosyası Seçin"}}},dialog:{done:"Bitti",showFiles:"Dosyaları Göster",tabs:{names:{"empty-pubkey":"Hoş geldiniz",preview:"Önizleme",file:"Bilgisayar",url:"Dış Bağlantılar",camera:"Kamera"},file:{drag:"Buraya bir dosya bırakın",nodrop:"Bilgisayarınızdan dosya yükleyin",or:"ya da",button:"Bilgisayardan bir dosya seç",also:"Diğer yükleme seçenekleri",cloudsTip:"Bulut depolamalar<br>ve sosyal hizmetler"},url:{title:"Webden dosyalar",line1:"Webden herhangi bir dosya seçin.",line2:"Dosya bağlantısını sağlayın.",input:"Bağlantınızı buraya yapıştırın...",button:"Yükle"},camera:{capture:"Fotoğraf çek",mirror:"Ayna",retry:"Tekrar izin iste",pleaseAllow:{title:"Lütfen kameranıza erişilmesine izin verin",text:"Bu siteden kamera erişimine izin vermeniz talep ediliyor. Kameranızla fotoğraf çekmek için bu isteği onaylamanız gerekmektedir."},notFound:{title:"Kamera algılanamadı",text:"Bu cihaza kamera bağlantısının olmadığı görünüyor."}},preview:{unknownName:"bilinmeyen",change:"İptal",back:"Geri",done:"Ekle",unknown:{title:"Yükleniyor... Önizleme için lütfen bekleyin.",done:"Önizlemeyi geç ve kabul et"},regular:{title:"Bu dosya eklensin mi?",line1:"Yukarıdaki dosyayı eklemek üzeresiniz.",line2:"Lütfen onaylayın."},image:{title:"Bu görsel eklensin mi?",change:"İptal"},crop:{title:"Bu görseli kes ve ekle",done:"Bitti"},error:{default:{title:"Aman!",text:"Yükleme sırasında bir hata oluştu.",back:"Lütfen tekrar deneyin."},image:{title:"Sadece resim dosyaları kabul edilmektedir.",text:"Lütfen başka bir dosya ile tekrar deneyin.",back:"Resim dosyası seç"},size:{title:"Seçtiğiniz dosya limitleri aşıyor.",text:"Lütfen başka bir dosya ile tekrar deneyin."},loadImage:{title:"Hata",text:"Resim dosyası yüklenemedi"}},multiple:{title:"%files% dosya seçtiniz",question:"Bu dosyaların hepsini eklemek istiyor musunuz?",tooManyFiles:"Fazla sayıda dosya seçtiniz, en fazla %max% dosya olabilir.",tooFewFiles:"%files% dosya seçtiniz, en az %min% dosya olmalıdır.",clear:"Hepsini kaldır",done:"Bitti"}}}}},pluralize:function(e){return"other"}},uk:{translations:{uploading:"Завантаження... Зачекайте.",loadingInfo:"Завантаження інформації...",errors:{default:"Помилка",baddata:"Неправильне значення",size:"Завеликий файл",upload:"Помилка завантаження",user:"Завантаження скасовано",info:"Помилка завантаження інформації",image:"Дозволені лише зображення",createGroup:"Неможливо створити групу файлів",deleted:"Файл видалено"},draghere:"Перетягніть файл сюди",file:{one:"%1 файл",few:"%1 файли",many:"%1 файлів"},buttons:{cancel:"Скасувати",remove:"Видалити",choose:{files:{one:"Вибрати файл",other:"Вибрати файли"},images:{one:"Вибрати зображення",other:"Вибрати зображення"}}},dialog:{close:"Закрити",openMenu:"Відкрити меню",done:"Готово",showFiles:"Показати файли",tabs:{names:{"empty-pubkey":"Вітання",preview:"Попередній перегляд",file:"Локальні файли",url:"Пряме посилання",camera:"Камера"},file:{drag:"Перетягніть<br>будь-які файли",nodrop:"Завантаження файлів з вашого комп'ютера",cloudsTip:"Хмарні сховища<br>та соціальні мережі",or:"або",button:"Обрати локальний файл",also:"або обрати з"},url:{title:"Файли з інших сайтів",line1:"Візьміть будь-який файл з Інтернету..",line2:"Вкажіть тут посилання.",input:"Вставте ваше посилання тут...",button:"Завантажити"},camera:{title:"Файл із відеокамери",capture:"Зробити знімок",mirror:"Віддзеркалити",startRecord:"Записати відео",stopRecord:"Стоп",cancelRecord:"Скасувати",retry:"Повторний запит дозволу",pleaseAllow:{title:"Будь ласка, надайте доступ до вашої камери",text:"Вам буде запропоновано дозволити доступ до камери з цього сайту.<br>Для того, щоб фотографувати за допомогою камери, ви повинні схвалити цей запит."},notFound:{title:"Камера не виявлена",text:"Схоже, у вас немає камери, підключеної до цього пристрою."}},preview:{unknownName:"невідомо",change:"Скасувати",back:"Назад",done:"Додати",unknown:{title:"Завантаження... Зачекайте на попередній перегляд.",done:"Пропустити перегляд і прийняти"},regular:{title:"Додати цей файл?",line1:"Ви збираєтеся додати файл вище.",line2:"Будь ласка, підтвердіть."},image:{title:"Додати це зображення?",change:"Скасувати"},crop:{title:"Обрізати та додати це зображення",done:"Готово",free:"довільно"},video:{title:"Додати це відео?",change:"Скасувати"},error:{default:{title:"Ой!",text:"Під час завантаження сталася помилка.",back:"Будь ласка, спробуйте ще раз"},image:{title:"Приймаються лише файли зображень.",text:"Повторіть спробу з іншим файлом.",back:"Виберіть зображення"},size:{title:"Розмір вибраного файлу перевищує ліміт.",text:"Повторіть спробу з іншим файлом."},loadImage:{title:"Помилка",text:"Помилка завантаження зображення"}},multiple:{title:"Ви вибрали %files%.",question:"Додати %files%?",tooManyFiles:"Ви вибрали забагато файлів. Максимальна кількість %max%.",tooFewFiles:"Ви вибрали %files%. Мінімальна кількість %min%.",clear:"Видалити все",done:"Додати",file:{preview:"Попередній перегляд %file%",remove:"Видалити %file%"}}}},footer:{text:"працює на",link:"uploadcare"}}},pluralize:function(e){return 1==(e/10%10|0)||e%10==0||e%10>4?"many":e%10==1?"one":"few"}},vi:{translations:{loadingInfo:"Đang tải thông tin...",errors:{default:"Lỗi",baddata:"Giá trị không đúng",size:"Tệp quá lớn",upload:"Không thể tải lên",user:"Tải lên bị hủy",info:"Không thể nạp thông tin",image:"Chỉ cho phép các hình ảnh",createGroup:"Không thể tạo nhóm tệp",deleted:"Tệp đã bị xóa"},uploading:"Đang tải lên... Vui lòng chờ đợi.",draghere:"Thả một tệp vào đây",file:{other:"%1 tệp"},buttons:{cancel:"Hủy",remove:"Xóa",choose:{files:{other:"Lựa chọn các tệp"},images:{other:"Lựa chọn hình ảnh"}}},dialog:{close:"Đóng",openMenu:"Mở menu",done:"Xong",showFiles:"Hiển thị tệp",tabs:{names:{"empty-pubkey":"Chào mừng",preview:"Xem trước",file:"Các tệp trên máy",url:"Liên kết tr.tiếp",camera:"Máy ảnh",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",instagram:"Instagram",gphotos:"Google Photos",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"kéo & thả<br>bất kỳ tệp nào",nodrop:"Tải lên các tệp từ &nbsp;máy tính của bạn",cloudsTip:"Lưu trữ Đám mây<br>và các mạng xã hội",or:"hoặc",button:"Lựa chọn một tệp trên máy",also:"hoặc lựa chọn từ"},url:{title:"Các tệp trên Web",line1:"Chọn bất từ tệp nào từ web.",line2:"Chỉ cần cung cấp liên kết.",input:"Dán liên kết của bạn xuống đây...",button:"Tải lên"},camera:{title:"Tệp từ web cam",capture:"Chụp một bức ảnh",mirror:"Gương",startRecord:"Quay một video",cancelRecord:"Hủy",stopRecord:"Dừng",retry:"Yêu cầu cấp phép lần nữa",pleaseAllow:{text:"Bạn đã được nhắc nhở để cho phép truy cập vào camera từ trang này.<br>Để có thể chụp ảnh với camera, bạn phải chấp thuận yêu cầu này.",title:"Vui lòng cho phép truy cập tới camera của bạn"},notFound:{title:"Không tìm thấy camera nào",text:"Có vẻ như bạn không có camera nào nối với thiết bị này."}},preview:{unknownName:"vô danh",change:"Hủy",back:"Quay lại",done:"Thêm",unknown:{title:"Đang tải lên...Vui lòng đợi để xem trước.",done:"Bỏ qua và chấp nhận"},regular:{title:"Thêm tệp này?",line1:"Bạn dự định thêm tệp ở trên.",line2:"Vui lòng chấp thuận."},image:{title:"Thêm hình ảnh này?",change:"Hủy"},crop:{title:"Cắt và thêm ảnh này",done:"Xong",free:"miễn phí"},video:{title:"Thêm video này?",change:"Hủy"},error:{default:{title:"Ồ!",back:"Vui lòng thử lại",text:"Có lỗi gì đó trong quá trình tải lên."},image:{title:"Chỉ chấp thuận các tệp hình ảnh.",text:"Vui lòng thử lại với một tệp mới.",back:"Lựa chọn hình ảnh"},size:{title:"Tệp bạn đã lựa chọn vượt quá giới hạn",text:"Vui lòng thử lại với một tệp khác."},loadImage:{title:"Lỗi",text:"Không thể tải hình ảnh"}},multiple:{title:"Bạn đã lựa chọn %files%",question:"Thêm %files%?",tooManyFiles:"Bạn đã lựa chọn quá nhiều tệp. %max% là tối đa.",tooFewFiles:"Bạn đã lựa chọn %files%. Ít nhất cần %min%",clear:"Xoá Tất cả",file:{preview:"Xem trước %file%",remove:"Xóa %file%"},done:"Thêm"}}},footer:{text:"được hỗ trợ bởi",link:"uploadcare"}}},pluralize:function(e){return"other"}},zhTW:{translations:{uploading:"上傳中...請等待",loadingInfo:"正在讀取資訊...",errors:{default:"錯誤",baddata:"錯誤資料",size:"檔案太大",upload:"無法上傳",user:"上傳被取消",info:"無法讀取資訊",image:"只允許圖片檔案",createGroup:"無法建立檔案群組",deleted:"檔案已被刪除"},draghere:"拖放檔案到這裡",file:{other:"%1 個檔案"},buttons:{cancel:"取消",remove:"刪除",choose:{files:{one:"選擇檔案",other:"選擇檔案"},images:{one:"選擇圖片",other:"選擇圖片"}}},dialog:{done:"完成",showFiles:"顯示檔案",tabs:{names:{"empty-pubkey":"歡迎",preview:"預覽",file:"從本機上傳",url:"任意圖片連結",camera:"相機"},file:{drag:"拖放檔案到這裡",nodrop:"從你的本機中上傳",cloudsTip:"雲端硬碟<br>與社群網站",or:"或者",button:"從本機中選取檔案",also:"你也可以選自"},url:{title:"來自網際網路的檔案",line1:"從網際網路選取檔案",line2:"只需提供連結",input:"將連結複製至此...",button:"上傳"},camera:{capture:"拍照",mirror:"鏡像",retry:"重新取得相機權限",pleaseAllow:{title:"請允許使存取您的相機",text:"你一直在提示允許來自這個網站的訪問攝像頭。為了拍照用你的相機,你必須批准這一請求。"},notFound:{title:"沒有找到相機",text:"看起來你有沒有將連接相機。"}},preview:{unknownName:"未知",change:"取消",back:"返回",done:"加入",unknown:{title:"上傳中...請等待預覽",done:"跳過預覽,直接接受"},regular:{title:"加入這個檔案?",line1:"你將加入上面的檔案。",line2:"請確認。"},image:{title:"加入這個圖片?",change:"取消"},crop:{title:"裁切並加入這個圖片",done:"完成",free:"自由裁切"},error:{default:{title:"錯誤!",text:"上傳過程中出錯。",back:"請重試"},image:{title:"只允許上傳圖片檔案。",text:"請選擇其他檔案重新上傳。",back:"選擇圖片"},size:{title:"你選取的檔案超過了100MB的上限",text:"請用另一個檔案再試一次。"},loadImage:{title:"錯誤",text:"無法讀取圖片"}},multiple:{title:"你已經選擇 %files%",question:"你要加入所有檔案嗎?",tooManyFiles:"你選了太多的檔案. 最多可選擇%max%. 請刪除一些。",tooFewFiles:"你所選擇的檔案 %files%. 至少要 %min% .",clear:"清空",done:"完成"}}}}},pluralize:function(e){return"other"}},zh:{translations:{uploading:"上传中...请等待",loadingInfo:"正在读取信息...",errors:{default:"错误",baddata:"错误数据",size:"文件太大",upload:"无法上传",user:"上传被取消",info:"无法读取信息",image:"只允许图形文件",createGroup:"无法建立文件组",deleted:"文件已被删除"},draghere:"拖放文件到这里",file:{other:"%1 个文件"},buttons:{cancel:"取消",remove:"删除"},dialog:{done:"完成",showFiles:"显示文件",tabs:{names:{url:"任意图片链接"},file:{drag:"拖放文件到这里",nodrop:"从你的电脑中上传",or:"或者",button:"从电脑中选取文件",also:"你也可以选自"},url:{title:"来自互联网的文件",line1:"从互联网选取文件",line2:"只需提供链接",input:"将链接拷贝至此...",button:"上传"},preview:{unknownName:"未知",change:"取消",back:"返回",done:"添加",unknown:{title:"上传中...请等待预览",done:"跳过预览,直接接受"},regular:{title:"添加这个文件?",line1:"你将添加上面的文件。",line2:"请确认。"},image:{title:"添加这个图片?",change:"取消"},crop:{title:"剪裁并添加这个图片",done:"完成"},error:{default:{title:"错误!",text:"上传过程中出错。",back:"请重试"},image:{title:"只允许上传图片文件。",text:"请选择其他文件重新上传。",back:"选择图片"},size:{title:"你选取的文件超过了100MB的上限",text:"请用另一个文件再试一次。"},loadImage:{title:"错误",text:"无法读取图片"}},multiple:{title:"你已经选择 %files%",question:"你要添加所有文件吗?",tooManyFiles:"你选了太多的文件. 最多可选择%max%. 请删除一些。",clear:"清空",done:"完成"}}}}},pluralize:function(e){return"other"}}},Mt=null,It={translations:Object.keys(Rt).reduce((function(e,t){return e[t]=Rt[t].translations,e}),{}),pluralize:Object.keys(Rt).reduce((function(e,t){return e[t]=Rt[t].pluralize,e}),{}),rebuild:function(e){return Mt=null,Dt(e)},t:function(e,t){var n,r,i;return n=Dt(),null==(i=Lt(e,n.translations))&&n.lang!==jt.lang&&(i=Lt(e,(n=jt).translations)),null!=t&&(i=null!=n.pluralize?(null!=(r=i[n.pluralize(t)])?r.replace("%1",t):void 0)||t:""),i||""}},jt={lang:"en",translations:Rt.en.translations,pluralize:Rt.en.pluralize},Dt=function(t){if(!Mt){var n=Ue(t),r=n.locale||jt.lang,i=e.extend(!0,{},It.translations[r],n.localeTranslations),o=e.isFunction(n.localePluralize)?n.localePluralize:It.pluralize[r];Mt={lang:r,translations:i,pluralize:o}}return Mt},Lt=function(e,t){for(var n=e.split("."),r=0,i=n.length;r<i;r++){var o=n[r];if(null==t)return null;t=t[o]}return t},Nt=function(){function t(r,i){var o,a=this;n(this,t),this.__uuid=null,this.settings=Ue(i),this.__fileColl=new Pt(r),this.__allFilesDf=e.when.apply(e,y(this.files())),this.__fileInfosDf=(r=function(){var t,n,r,i;for(i=[],t=0,n=(r=this.files()).length;t<n;t++)o=r[t],i.push(o.then(null,(function(t,n){return e.when(n)})));return i}.call(a),e.when.apply(e,y(r))),this.__createGroupDf=e.Deferred(),this.__initApiDeferred()}return o(t,[{key:"files",value:function(){return this.__fileColl.get()}},{key:"__save",value:function(){var e=this;if(!this.__saved)return this.__saved=!0,this.__allFilesDf.done((function(){return e.__createGroup().done((function(t){return e.__uuid=t.id,e.__buildInfo((function(t){return e.settings.imagesOnly&&!t.isImage?e.__createGroupDf.reject("image",t):e.__createGroupDf.resolve(t)}))})).fail((function(){return e.__createGroupDf.reject("createGroup")}))}))}},{key:"promise",value:function(){return this.__save(),this.__apiDf.promise()}},{key:"__initApiDeferred",value:function(){var t,n,r,i=this;return this.__apiDf=e.Deferred(),this.__progressState="uploading",n=function(e){return i.__buildInfo((function(t){return i.__apiDf.reject(e,t)}))},r=function(e){return i.__apiDf.resolve(e)},(t=function(){return i.__apiDf.notify(i.__progressInfo())})(),this.__fileColl.onAnyProgress(t),this.__allFilesDf.done((function(){return i.__progressState="uploaded",t()})).fail(n),this.__createGroupDf.done((function(e){return i.__progressState="ready",t(),r(e)})).fail(n)}},{key:"__progressInfo",value:function(){var e,t,n,r,i;for(n=0,e=0,t=(i=this.__fileColl.lastProgresses()).length;e<t;e++)n+=((null!=(r=i[e])?r.progress:void 0)||0)/i.length;return{state:this.__progressState,uploadProgress:n,progress:"ready"===this.__progressState?1:.9*n}}},{key:"__buildInfo",value:function(e){var t;return t={uuid:this.__uuid,cdnUrl:this.__uuid?"".concat(this.settings.cdnBase,"/").concat(this.__uuid,"/"):null,name:It.t("file",this.__fileColl.length()),count:this.__fileColl.length(),size:0,isImage:!0,isStored:!0},this.__fileInfosDf.done((function(){for(var n,r,i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];for(r=0,i=a.length;r<i;r++)n=a[r],t.size+=n.size,n.isImage||(t.isImage=!1),n.isStored||(t.isStored=!1);return e(t)}))}},{key:"__createGroup",value:function(){var t,n=this;return t=e.Deferred(),this.__fileColl.length()?this.__fileInfosDf.done((function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;return Me("".concat(n.settings.urlBase,"/group/"),"POST",{pub_key:n.settings.publicKey,signature:n.settings.secureSignature,expire:n.settings.secureExpire,files:function(){var e,t,n;for(n=[],e=0,t=r.length;e<t;e++)o=r[e],n.push("/".concat(o.uuid,"/").concat(o.cdnUrlModifiers||""));return n}()},{headers:{"X-UC-User-Agent":n.settings._userAgent}}).fail((function(e){return n.settings.debugUploads&&ee("Can't create group.",n.settings.publicKey,e),t.reject()})).done(t.resolve)})):t.reject(),t.promise()}},{key:"api",value:function(){return this.__api||(this.__api=fe(this,["promise","files"])),this.__api}}]),t}(),Ft=function(e){c(r,e);var t=m(r);function r(e,i){var o,a;return n(this,r),a=wt("ready",e.files,i),(o=t.call(this,a,i)).__data=e,o}return o(r,[{key:"__createGroup",value:function(){return ce(this.__data)}}]),r}(Nt),Bt=function(){var e,t,n,r,i,o,a,s,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=arguments.length>1?arguments[1]:void 0;for(t=[],r=0,o=l.length;r<o;r++)if(n=l[r],xt(n))t.push(n);else if(Et(n))for(i=0,a=(s=n.files()).length;i<a;i++)e=s[i],t.push(e);return new Nt(t,u).api()},zt=function(t,n){var r,i;return n=Ue(n),r=e.Deferred(),(i=ye.exec(t))?Me("".concat(n.urlBase,"/group/info/"),"GET",{jsonerrors:1,pub_key:n.publicKey,group_id:i[0]},{headers:{"X-UC-User-Agent":n._userAgent}}).fail((function(e){return n.debugUploads&&ee("Can't load group info. Probably removed.",i[0],n.publicKey,e),r.reject()})).done((function(e){var t;return t=new Ft(e,n),r.resolve(t.api())})):r.reject(),r.promise()},Ut={};w()&&e(window).on("message",(function(e){var t,n,r,i,o,a,s=e.originalEvent;try{i=JSON.parse(s.data)}catch(e){return}if((null!=i?i.type:void 0)&&i.type in Ut){for(a=[],t=0,r=(o=Ut[i.type]).length;t<r;t++)n=o[t],s.source===n[0]?a.push(n[1](i)):a.push(void 0);return a}}));var qt=function(e,t,n){return e in Ut||(Ut[e]=[]),Ut[e].push([t,n])},Ht=function(t,n){if(t in Ut)return Ut[t]=e.grep(Ut[t],(function(e){return e[0]!==n})),Ut[t]},Wt=new He,Vt=function(){function t(e,r,i,o,a){var s=this;n(this,t),this.__createIframe=this.__createIframe.bind(this),this.container=e,this.tabButton=r,this.dialogApi=i,this.settings=o,this.name=a,this.dialogApi.progress((function(e){return e===s.name&&(s.__createIframe(),s.container.find(".uploadcare--tab__iframe").focus()),s.__sendMessage({type:"visibility-changed",visible:e===s.name})}))}return o(t,[{key:"remoteUrl",value:function(){return"".concat(this.settings.socialBase,"/window3/").concat(this.name,"?")+e.param({lang:this.settings.locale,public_key:this.settings.publicKey,widget_version:"3.10.2",images_only:this.settings.imagesOnly,pass_window_open:this.settings.passWindowOpen})}},{key:"__sendMessage",value:function(e){var t,n;return null!=(t=this.iframe)&&null!=(n=t[0].contentWindow)?n.postMessage(JSON.stringify(e),"*"):void 0}},{key:"__createIframe",value:function(){var t,n=this;if(!this.iframe)return this.iframe=e("<iframe>",{src:this.remoteUrl(),marginheight:0,marginwidth:0,frameborder:0,allowTransparency:"true"}).addClass("uploadcare--tab__iframe").appendTo(this.container).on("load",(function(){var e,t,r,i,o,a,s,l;for(n.iframe.css("opacity","1"),e=0,r=(o=Wt.urls).length;e<r;e++)l=o[e],n.__sendMessage({type:"embed-css",url:l});for(t=0,i=(a=Wt.styles).length;t<i;t++)s=a[t],n.__sendMessage({type:"embed-css",style:s})})),this.container.addClass("uploadcare--tab_remote"),t=this.iframe[0].contentWindow,qt("file-selected",t,(function(t){var r,i,o;return o=function(){var e,r,i,o,a;if(t.alternatives)for(e=0,i=(o=n.settings.preferredTypes).length;e<i;e++)for(r in a=o[e],a=xe(a),t.alternatives)if(a.test(r))return t.alternatives[r];return t.url}(),i=e.extend({source:n.name},t.info||{}),r=new ht(o,n.settings,i),t.filename&&r.setName(t.filename),null!=t.is_image&&r.setIsImage(t.is_image),n.dialogApi.addFiles([r.promise()])})),qt("open-new-window",t,(function(e){var t,r,i;if(n.settings.debugUploads&&te("Open new window message.",n.name),r=window.open(e.url,"_blank"))return i=function(){return n.settings.debugUploads&&te("Window is closed.",n.name),n.__sendMessage({type:"navigate",fragment:""})},"closed"in r?t=setInterval((function(){if(r.closed)return clearInterval(t),i()}),100):r.addEventListener("exit",i);ne("Can't open new window. Possible blocked.",n.name)})),this.dialogApi.done((function(){return Ht("file-selected",t),Ht("open-new-window",t)}))}}]),t}(),$t={version:"3.10.2",jQuery:e,utils:{abilities:{fileAPI:k,sendFileAPI:E,dragAndDrop:S,canvas:O,fileDragAndDrop:T,iOSVersion:C,Blob:R,URL:J,FileReader:Z},Collection:Ct,UniqCollection:At,CollectionOfPromises:Pt,imageLoader:Ve,videoLoader:$e,log:ee,debug:te,warn:ne,warnOnce:ie,registerMessage:qt,unregisterMessage:Ht,unique:ae,defer:se,gcd:le,once:ue,wrapToPromise:ce,then:de,bindAll:fe,upperCase:pe,publicCallbacks:he,uuid:me,splitUrlRegex:ge,uuidRegex:ve,groupIdRegex:ye,cdnUrlRegex:be,splitCdnUrl:_e,escapeRegExp:we,globRegexp:xe,normalizeUrl:ke,fitText:Ee,fitSizeInCdnLimit:function(e){return Se(e,[2048,2048])},fitSize:Se,applyCropCoordsToInfo:Oe,fileInput:Te,fileSelectDialog:Ce,fileSizeLabels:Ae,readableFileSize:Pe,ajaxDefaults:Re,jsonp:Me,canvasToBlob:Ie,taskRunner:je,fixedPipe:Le,isFile:xt,valueToFile:kt,image:{shrinkFile:Qe,shrinkImage:Xe,drawFileToCanvas:Je,readJpegChunks:Ze,replaceJpegChunk:et,getExif:tt,parseExifOrientation:rt,hasTransparency:ot},pusher:{getPusher:pt},isFileGroup:Et,valueToGroup:St,isFileGroupsEqual:Ot},settings:{globals:Be,build:Ue,common:ze,waitForSettings:qe,CssCollector:He},locale:It,tabsCss:Wt,files:{BaseFile:at,ObjectFile:lt,InputFile:ut,UrlFile:ht,UploadedFile:vt,ReadyFile:yt,FileGroup:Nt,SavedFileGroup:Ft},Pusher:ct,FileGroup:Bt,loadFileGroup:zt,fileFrom:_t,filesFrom:wt,__exports:{},namespace:function(e,t){var n=$t;if(e)for(var r=e.split("."),i=0,o=r.length;i<o;i++){var a=r[i];n[a]||(n[a]={}),n=n[a]}return t(n)},expose:function(e,t){for(var n=e.split("."),r=n.pop(),i=$t.__exports,o=$t,a=0,s=n.length;a<s;a++){var l=n[a];i[l]||(i[l]={}),i=i[l],o=null!=o?o[l]:void 0}i[r]=t||o[r]}};function Gt(e){return function(t){return t(e)}}var Kt={plugin:Gt($t),version:"3.10.2",jQuery:e,defaults:u(u({},L),{},{allTabs:W.tabs.all}),globals:ze,start:ze,fileFrom:_t,filesFrom:wt,FileGroup:Bt,loadFileGroup:zt,locales:["en"]},Yt=/["'&<>]/,Qt=function(e){var t,n=""+e,r=Yt.exec(n);if(!r)return n;var i="",o=0,a=0;for(o=r.index;o<n.length;o++){switch(n.charCodeAt(o)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#39;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}a!==o&&(i+=n.substring(a,o)),a=o+1,i+=t}return a!==o?i+n.substring(a,o):i},Xt={dialog:function(){return'<div class="uploadcare--dialog"><div class="uploadcare--dialog__container"><button type="button" title="'.concat(It.t("dialog.close"),'" aria-label="').concat(It.t("dialog.close"),'" class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--dialog__close"><svg role="presentation" width="32" height="32" class="uploadcare--icon"><use xlink:href="#uploadcare--icon-close"></use></svg></button><div class="uploadcare--dialog__placeholder"></div></div><div class="uploadcare--powered-by uploadcare--dialog__powered-by">').concat(It.t("dialog.footer.text"),' <a class="uploadcare--link uploadcare--powered-by__link" href="https://uploadcare.com/uploader/').concat("3.10.2",'/" target="_blank"><svg width="32" height="32" role="presentation" class="uploadcare--icon uploadcare--powered-by__logo"><use xlink:href="#uploadcare--icon-uploadcare"></use></svg> ').concat(It.t("dialog.footer.link"),"</a></div></div>")},dialog__panel:function(){return'<div class="uploadcare--panel"><div class="uploadcare--menu uploadcare--panel__menu"><button type="button" title="'.concat(It.t("dialog.openMenu"),'" aria-label="').concat(It.t("dialog.openMenu"),'" class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--menu__toggle"><svg role="presentation" width="32" height="32" class="uploadcare--icon uploadcare--menu__toggle-icon uploadcare--menu__toggle-icon_menu"><use xlink:href="#uploadcare--icon-menu"></use></svg> <svg role="presentation" width="32" height="32" class="uploadcare--icon uploadcare--menu__toggle-icon uploadcare--menu__toggle-icon_back"><use xlink:href="#uploadcare--icon-back"></use></svg></button><div class="uploadcare--menu__items"></div></div><div class="uploadcare--panel__content"><div class="uploadcare--footer uploadcare--panel__footer"><div class="uploadcare--footer__additions uploadcare--panel__message"></div><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--panel__show-files">').concat(It.t("dialog.showFiles"),'<div class="uploadcare--panel__file-counter"></div></button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--panel__done">').concat(It.t("dialog.done"),'</button></div><div class="uploadcare--powered-by uploadcare--panel__powered-by">').concat(It.t("dialog.footer.text"),' <a class="uploadcare--link uploadcare--powered-by__link" href="https://uploadcare.com/uploader/').concat("3.10.2",'/" target="_blank"><svg width="32" height="32" role="presentation" class="uploadcare--icon uploadcare--powered-by__logo"><use xlink:href="#uploadcare--icon-uploadcare"></use></svg> ').concat(It.t("dialog.footer.link"),"</a></div></div></div>")},progress__text:function(){return'<div class="uploadcare--progress__text-container"><div class="uploadcare--progress__text"></div></div>'},"tab-camera-capture":function(){return'<div class="uploadcare--tab__content"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">'.concat(It.t("dialog.tabs.camera.title"),'</div><div class="uploadcare--camera__controls"><button type="button" class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_photo">').concat(It.t("dialog.tabs.camera.capture"),'</button> <button type="button" class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_video">').concat(It.t("dialog.tabs.camera.startRecord"),"</button></div></div>")},"tab-camera":function(){return'<div class="uploadcare--tab__content"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">'.concat(It.t("dialog.tabs.camera.title"),'</div><div class="uploadcare--media uploadcare--camera__video-container"><video muted class="uploadcare--media__video uploadcare--camera__video uploadcare--camera__video_mirrored"></video><button type="button" class="uploadcare--button uploadcare--button_size_small uploadcare--button_overlay uploadcare--camera__button uploadcare--camera__button_type_mirror">').concat(It.t("dialog.tabs.camera.mirror"),'</button></div><div class="uploadcare--camera__controls"><button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_start-record">').concat(It.t("dialog.tabs.camera.startRecord"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_capture">').concat(It.t("dialog.tabs.camera.capture"),'</button> <button type="button" class="uploadcare--button uploadcare--camera__button uploadcare--camera__button_type_cancel-record">').concat(It.t("dialog.tabs.camera.cancelRecord"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_stop-record">').concat(It.t("dialog.tabs.camera.stopRecord"),'</button></div><div class="uploadcare--camera__please-allow"><div class="uploadcare--text uploadcare--text_size_medium">').concat(It.t("dialog.tabs.camera.pleaseAllow.title"),'</div><div class="uploadcare--text">').concat(It.t("dialog.tabs.camera.pleaseAllow.text"),'</div></div><div class="uploadcare--camera__not-found"><div class="uploadcare--text uploadcare--text_size_medium">').concat(It.t("dialog.tabs.camera.notFound.title"),'</div><div class="uploadcare--text">').concat(It.t("dialog.tabs.camera.notFound.text"),'</div></div><button type="button" class="uploadcare--button uploadcare--camera__button uploadcare--camera__button_type_retry">').concat(It.t("dialog.tabs.camera.retry"),"</button></div>")},"tab-file":function(){return'<div class="uploadcare--tab__content uploadcare--draganddrop"><div class="uploadcare--text uploadcare--text_size_extra-large uploadcare--dragging__show">'.concat(It.t("draghere"),'</div><div class="uploadcare--draganddrop__title uploadcare--dragging__hide"><div class="uploadcare--draganddrop__supported"><div class="uploadcare--text uploadcare--text_size_extra-large">').concat(It.t("dialog.tabs.file.drag"),'</div><div class="uploadcare--text uploadcare--text_size_small uploadcare--text_muted">').concat(It.t("dialog.tabs.file.or"),'</div></div><div class="uploadcare--text uploadcare--text_size_large uploadcare--draganddrop__not-supported">').concat(It.t("dialog.tabs.file.nodrop"),'</div></div><button type="button" class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--tab__action-button needsclick uploadcare--dragging__hide">').concat(It.t("dialog.tabs.file.button"),'</button><div class="uploadcare--file-sources uploadcare--dragging__hide"><div class="uploadcare--text uploadcare--text_size_small uploadcare--text_muted uploadcare--file-sources__caption">').concat(It.t("dialog.tabs.file.also"),'</div><div class="uploadcare--file-sources__items"><button type="button" class="uploadcare--button uploadcare--button_icon uploadcare--file-source uploadcare--file-source_all uploadcare--file-sources_item"><svg role="presentation" width="32" height="32" class="uploadcare--icon"><use xlink:href="#uploadcare--icon-more"></use></svg></button></div></div></div>')},"tab-preview-error":function(e){var t=e.error;return'<div class="uploadcare--tab__content uploadcare--preview__content uploadcare--error"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(It.t("dialog.tabs.preview.error."+t+".title")||It.t("dialog.tabs.preview.error.default.title"),'</div><div class="uploadcare--text">').concat(It.t("dialog.tabs.preview.error."+t+".text")||It.t("dialog.tabs.preview.error.default.text"),'</div><button type="button" class="uploadcare--button uploadcare--preview__back">').concat(It.t("dialog.tabs.preview.error."+t+".back")||It.t("dialog.tabs.preview.error.default.back"),"</button></div>")},"tab-preview-image":function(e){var t=e.src,n=e.name,r=void 0===n?"":n,i=e.crop;return'<div class="uploadcare--tab__header"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(It.t("dialog.tabs.preview.image.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--media"><img src="').concat(t,'" title="').concat(Qt(r),'" alt="').concat(Qt(r),'" class="uploadcare--media__image uploadcare--preview__image"></div></div><div class="uploadcare--footer uploadcare--tab__footer"><div class="uploadcare--footer__additions">').concat(i?'<div class="uploadcare--crop-sizes"><div role="button" tabindex="0" class="uploadcare--button uploadcare--button_icon uploadcare--crop-sizes__item" data-caption="free"><div class="uploadcare--crop-sizes__icon"></div></div></div>':"",'</div><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(It.t("dialog.tabs.preview.image.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">').concat(It.t("dialog.tabs.preview.done"),"</button></div>")},"tab-preview-multiple-file":function(){return'<div class="uploadcare--file uploadcare--files__item uploadcare--file_status_uploading"><div class="uploadcare--file__description" tabindex="0"><div class="uploadcare--file__preview"></div><div class="uploadcare--file__name">'.concat(It.t("dialog.tabs.preview.unknownName"),'</div><div class="uploadcare--file__size"></div><div class="uploadcare--file__error"></div></div><div class="uploadcare--file__progressbar"><div class="uploadcare--progressbar"><div class="uploadcare--progressbar__value"></div></div></div><button type="button" class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--file__remove"><svg role="presentation" width="32" height="32" class="uploadcare--icon"><use xlink:href="#uploadcare--icon-remove"></use></svg></button></div>')},"tab-preview-multiple":function(){return'<div class="uploadcare--tab__header"><div id="preview__title" class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title" role="status" aria-live="assertive"></div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--files"></div></div><div class="uploadcare--footer uploadcare--tab__footer"><div class="uploadcare--footer__additions uploadcare--preview__message"></div><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">'.concat(It.t("dialog.tabs.preview.multiple.clear"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done" aria-describedby="preview_title">').concat(It.t("dialog.tabs.preview.multiple.done"),"</button></div>")},"tab-preview-regular":function(e){var t=e.file;return'<div class="uploadcare--tab__header"><div id="tab__title" class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title" role="status" aria-live="assertive">'.concat(It.t("dialog.tabs.preview.regular.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--text uploadcare--preview__file-name">').concat(Qt(t.name)||It.t("dialog.tabs.preview.unknownName")," ").concat(Pe(t.size,"",", "),'</div></div><div class="uploadcare--footer uploadcare--tab__footer"><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(It.t("dialog.tabs.preview.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done" aria-describedby="tab__title">').concat(It.t("dialog.tabs.preview.done"),"</button></div>")},"tab-preview-unknown":function(){return'<div class="uploadcare--tab__header"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(It.t("dialog.tabs.preview.unknown.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--text uploadcare--preview__file-name"></div></div><div class="uploadcare--footer uploadcare--tab__footer"><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(It.t("dialog.tabs.preview.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">').concat(It.t("dialog.tabs.preview.unknown.done"),"</button></div>")},"tab-preview-video":function(){return'<div class="uploadcare--tab__header"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(It.t("dialog.tabs.preview.video.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--media"><video controls class="uploadcare--media__video uploadcare--preview__video"></video></div></div><div class="uploadcare--footer uploadcare--tab__footer"><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(It.t("dialog.tabs.preview.video.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">').concat(It.t("dialog.tabs.preview.done"),"</button></div>")},"tab-url":function(){return'<div class="uploadcare--tab__content"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">'.concat(It.t("dialog.tabs.url.title"),'</div><div class="uploadcare--text">').concat(It.t("dialog.tabs.url.line1"),'</div><div class="uploadcare--text">').concat(It.t("dialog.tabs.url.line2"),'</div><form class="uploadcare--form"><input type="text" class="uploadcare--input" placeholder="').concat(It.t("dialog.tabs.url.input"),'"> <button type="submit" class="uploadcare--button uploadcare--button_primary uploadcare--tab__action-button" type="submit">').concat(It.t("dialog.tabs.url.button"),"</button></form></div>")},"widget-button":function(e){var t=e.caption,n=e.name;return'<button type="button" class="uploadcare--widget__button uploadcare--widget__button_type_'.concat(n,'">').concat(t,"</button>")},"widget-file-name":function(e){var t=e.name,n=e.size;return'<div class="uploadcare--link uploadcare--widget__file-name" tabindex="0" role="link">'.concat(Qt(Ee(t,20)),'</div><div class="uploadcare--widget__file-size">, ').concat(Pe(n),"</div>")},widget:function(){return'<div class="uploadcare--widget" aria-describedby="uploadcare--widget__text uploadcare--widget__progress"><div class="uploadcare--widget__dragndrop-area">'.concat(It.t("draghere"),'</div><div id="uploadcare--widget__progress" class="uploadcare--widget__progress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div><div id="uploadcare--widget__text" class="uploadcare--widget__text" aria-live="polite"></div></div>')},icons:function(){return'<svg width="0" height="0" style="position:absolute"><symbol viewBox="0 0 32 32" id="uploadcare--icon-back" xmlns="http://www.w3.org/2000/svg"><path d="M21.132 9.06a1.5 1.5 0 00-2.122-2.12L9.88 16.07l9.06 9.061a1.5 1.5 0 102.122-2.121l-6.94-6.94 7.01-7.01z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-box" xmlns="http://www.w3.org/2000/svg"><path d="M4.962 9C4.385 9 4 9.384 4 9.96v8.243C4 20.793 6.213 23 8.811 23c1.829 0 3.464-1.043 4.33-2.578.866 1.535 2.406 2.578 4.33 2.578 2.695 0 4.812-2.206 4.812-4.797 0-2.686-2.117-4.886-4.811-4.886-1.829 0-3.465 1.043-4.33 2.578-.77-1.535-2.406-2.578-4.33-2.578a4.957 4.957 0 00-2.887.96V9.958c0-.48-.482-.959-.963-.959zm17.08 4.257a.841.841 0 00-.33.15c-.385.288-.5.965-.211 1.349l2.526 3.357-2.526 3.358c-.289.384-.174 1.061.21 1.35.385.287 1.065.173 1.354-.21l2.105-2.879 2.105 2.878c.288.384.968.498 1.353.21.385-.288.499-.965.21-1.349l-2.526-3.358 2.526-3.357c.289-.384.175-1.061-.21-1.35-.385-.287-1.065-.203-1.353.18l-2.105 2.879-2.105-2.878c-.217-.288-.657-.406-1.023-.33zm-13.23 2.068c1.539 0 2.886 1.344 2.886 2.878.096 1.535-1.25 2.878-2.887 2.878a2.89 2.89 0 01-2.886-2.878c0-1.63 1.347-2.878 2.886-2.878zm8.66 0a2.89 2.89 0 012.886 2.878c0 1.535-1.347 2.878-2.886 2.878a2.89 2.89 0 01-2.887-2.878c0-1.63 1.347-2.878 2.887-2.878z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-camera" xmlns="http://www.w3.org/2000/svg"><path d="M21 10h3c1.653 0 3 1.343 3 3v9c0 1.656-1.344 3-3.001 3H8A3 3 0 015 22v-9a3 3 0 013-3h3v-.999C11 7.901 11.895 7 13 7h6c1.113 0 2 .896 2 2.001V10zm-5 12a4.5 4.5 0 100-9 4.5 4.5 0 000 9zm0-2a2.5 2.5 0 110-5 2.5 2.5 0 010 5z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-close" xmlns="http://www.w3.org/2000/svg"><path d="M10.06 7.94a1.5 1.5 0 00-2.12 2.12L13.878 16l-5.94 5.94a1.5 1.5 0 002.122 2.12L16 18.122l5.94 5.94a1.5 1.5 0 002.12-2.122L18.122 16l5.94-5.94a1.5 1.5 0 00-2.122-2.12L16 13.878l-5.94-5.94z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-crop-free" xmlns="http://www.w3.org/2000/svg"><path d="M8 12a2.004 2.004 0 01-2-2.01V8.01C6 6.897 6.893 6 8.01 6h1.98c1.109 0 2.005.888 2.01 2h8c.005-1.107.896-2 2.01-2h1.98C25.103 6 26 6.893 26 8.01v1.98A2.004 2.004 0 0124 12v8c1.107.005 2 .896 2 2.01v1.98c0 1.112-.893 2.01-2.01 2.01h-1.98A2.004 2.004 0 0120 24h-8a2.004 2.004 0 01-2.01 2H8.01A2.004 2.004 0 016 23.99v-1.98c0-1.109.888-2.005 2-2.01v-8zm2 0v8a2.004 2.004 0 012 2h8a2.004 2.004 0 012-2v-8a2.004 2.004 0 01-2-2h-8a2.004 2.004 0 01-2 2zm12 10.01v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01v-1.98c0-.01 0-.01-.01-.01h-1.98c-.01 0-.01 0-.01.01zm0-14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01V8.01C24 8 24 8 23.99 8h-1.98C22 8 22 8 22 8.01zm-14 14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01v-1.98c0-.01 0-.01-.01-.01H8.01C8 22 8 22 8 22.01zm0-14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01V8.01C10 8 10 8 9.99 8H8.01C8 8 8 8 8 8.01z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-dropbox" xmlns="http://www.w3.org/2000/svg"><path d="M9.5 5L16 9.141l-6.5 4.141L3 9.141 9.5 5zm13 0L29 9.141l-6.5 4.141L16 9.141 22.5 5zM3 17.423l6.5-4.141 6.5 4.141-6.5 4.141L3 17.423zm19.5-4.141l6.5 4.141-6.5 4.141-6.5-4.141 6.5-4.141zm-13 9.662l6.5-4.14 6.5 4.14-6.5 4.141-6.5-4.14z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-empty-pubkey" xmlns="http://www.w3.org/2000/svg"><path d="M16 31C7.716 31 1 24.284 1 16 1 7.716 7.716 1 16 1c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15zm0-13.704a1.296 1.296 0 100-2.592 1.296 1.296 0 000 2.592z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-error" xmlns="http://www.w3.org/2000/svg"><path d="M18.122 23.93V21a.583.583 0 00-.179-.434.585.585 0 00-.423-.175h-2.616a.585.585 0 00-.424.175.583.583 0 00-.179.434v2.93c0 .172.06.316.18.433.118.117.26.175.423.175h2.616a.585.585 0 00.423-.175.583.583 0 00.18-.434zm-.037-6.326l.339-9.05a.404.404 0 00-.189-.351c-.163-.135-.313-.203-.452-.203H14.64c-.138 0-.288.068-.452.203-.125.086-.188.215-.188.388l.32 9.013c0 .123.063.224.188.304.126.08.277.12.452.12h2.484c.176 0 .324-.04.443-.12a.41.41 0 00.198-.304z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-evernote" xmlns="http://www.w3.org/2000/svg"><path d="M7.998 8.648h2.245a.233.233 0 00.232-.233s-.028-1.931-.028-2.468v-.006c0-.441.093-.825.253-1.148l.077-.144a.05.05 0 00-.026.014l-4.359 4.34a.05.05 0 00-.016.025c.09-.044.213-.106.23-.113.38-.172.84-.267 1.392-.267M24.196 6.56c-.553-.2-1.675-.408-3.084-.575-1.134-.134-2.467-.123-3.272-.098-.097-.665-.56-1.272-1.08-1.482-1.384-.56-3.523-.424-4.071-.27-.437.123-.92.373-1.188.76-.18.258-.297.59-.298 1.051 0 .262.007.878.014 1.426.006.548.014 1.04.014 1.043a.887.887 0 01-.884.888H8.103c-.479 0-.845.08-1.124.208-.28.127-.478.3-.628.503-.3.404-.352.902-.351 1.411 0 0 .004.416.104 1.22.083.622.756 4.971 1.394 6.294.248.514.413.73.9.956 1.083.466 3.559.984 4.72 1.133 1.158.148 1.885.46 2.318-.451.002-.003.087-.227.204-.557.377-1.144.43-2.16.43-2.894 0-.075.108-.078.108 0 0 .519-.098 2.354 1.283 2.847.545.194 1.676.367 2.826.502 1.039.12 1.793.53 1.793 3.208 0 1.628-.34 1.851-2.122 1.851-1.444 0-1.994.038-1.994-1.113 0-.932.917-.834 1.596-.834.304 0 .083-.226.083-.8 0-.572.357-.902.02-.91-2.35-.066-3.733-.003-3.733 2.947 0 2.679 1.021 3.176 4.357 3.176 2.614 0 3.536-.086 4.616-3.45.213-.663.73-2.69 1.043-6.092.197-2.15-.187-8.644-.491-10.282-.178-.958-.746-1.43-1.259-1.616zm-3.3 8.792a4.75 4.75 0 00-.923.056c.081-.66.353-1.473 1.316-1.439 1.066.037 1.216 1.049 1.22 1.734-.45-.201-1.006-.33-1.613-.35"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-facebook" xmlns="http://www.w3.org/2000/svg"><path d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.99 4.388 10.954 10.125 11.854V19.47h-3.047V16h3.047v-2.644c0-3.007 1.792-4.668 4.533-4.668 1.312 0 2.686.234 2.686.234v2.953H19.83c-1.491 0-1.956.925-1.956 1.875V16h3.328l-.532 3.469h-2.796v8.385C23.612 26.954 28 21.99 28 16z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-file" xmlns="http://www.w3.org/2000/svg"><path d="M19 6l5 5h-4c-.556 0-1-.448-1-1V6zm5 7v11.192c0 .995-.808 1.808-1.804 1.808H9.804A1.808 1.808 0 018 24.2V7.74C8 6.602 8.627 6 9.778 6H17v4.994c0 1.12.898 2.006 2.006 2.006H24z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-flickr" xmlns="http://www.w3.org/2000/svg"><path d="M11 20c-2.212 0-4-1.79-4-4s1.79-4 4-4a4 4 0 010 8zm10.001 0a4 4 0 11-.002-8 4 4 0 01.002 8z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-gdrive" xmlns="http://www.w3.org/2000/svg"><path d="M19.461 6l7.109 12h-7.004L12.539 6h6.922zm-9.27 19l3.467-6H27l-3.466 6H10.192zM5 18.841l6.618-11.36 3.566 5.929-6.722 11.36L5 18.84z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-gphotos" xmlns="http://www.w3.org/2000/svg"><path d="M8.797 9.5l-5.632 5.841c-.064.07-.165.228-.165.33 0 .202.127.329.33.329h8.869c1.444 0 2.501-1.09 2.501-2.534V9.5H8.797zM28.67 16H19.8c-1.444 0-2.501 1.09-2.501 2.534V22.5h5.903l5.632-5.841c.064-.07.165-.228.165-.33 0-.202-.127-.329-.33-.329zM16.659 3.165C16.589 3.1 16.43 3 16.329 3c-.202 0-.329.127-.329.33v8.869c0 1.444 1.09 2.501 2.534 2.501H22.5V8.797l-5.841-5.632zM13.466 17.3H9.5v5.903l5.841 5.632c.07.064.228.165.33.165.202 0 .329-.127.329-.33v-8.869c0-1.444-1.09-2.501-2.534-2.501z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-huddle" xmlns="http://www.w3.org/2000/svg"><path d="M13.63 14.39c.07-.102.17-.26.2-.313 1.474-2.683 6.857-2.686 8.49 1.002.43.968.67 1.97.675 3.023.008 1.978.004 3.957.002 5.936 0 1.192-.68 1.945-1.763 1.962-1.087.016-1.856-.766-1.865-1.944-.014-1.874.003-3.749-.006-5.623-.006-1.351-.654-2.388-1.719-2.793-1.775-.675-3.59.305-3.892 2.159-.122.747-.104 1.52-.114 2.281-.016 1.336-.002 2.673-.005 4.01-.003 1.125-.669 1.866-1.707 1.907-1.06.042-1.828-.668-1.922-1.78-.007-.086-.003-.173-.003-.26 0-5.31-.002-10.622.002-15.932 0-1.2.731-2.016 1.79-2.025 1.05-.01 1.832.74 1.837 1.792.01 2.013.003 4.026.005 6.04 0 .12.002.391-.005.558"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-instagram" xmlns="http://www.w3.org/2000/svg"><path d="M16 5c2.987 0 3.362.013 4.535.066 1.171.054 1.97.24 2.67.511a5.391 5.391 0 011.949 1.27 5.392 5.392 0 011.269 1.948c.272.7.457 1.499.51 2.67.054 1.173.067 1.548.067 4.535s-.013 3.362-.066 4.535c-.054 1.171-.24 1.97-.511 2.67a5.392 5.392 0 01-1.27 1.949 5.391 5.391 0 01-1.948 1.269c-.7.271-1.499.457-2.67.51-1.173.054-1.548.067-4.535.067s-3.362-.013-4.535-.066c-1.171-.054-1.97-.24-2.67-.511a5.392 5.392 0 01-1.949-1.27 5.391 5.391 0 01-1.268-1.948c-.273-.7-.458-1.499-.512-2.67C5.013 19.362 5 18.987 5 16s.013-3.362.066-4.535c.054-1.171.24-1.97.512-2.67a5.391 5.391 0 011.268-1.949 5.392 5.392 0 011.949-1.269c.7-.271 1.499-.457 2.67-.51C12.638 5.012 13.013 5 16 5zm0 1.982c-2.937 0-3.285.011-4.445.064-1.072.049-1.655.228-2.042.379-.514.2-.88.438-1.265.823a3.41 3.41 0 00-.823 1.264c-.15.388-.33.97-.379 2.043-.053 1.16-.064 1.508-.064 4.445 0 2.937.011 3.285.064 4.445.049 1.072.228 1.655.379 2.043.2.513.438.88.823 1.264.385.385.751.624 1.265.823.387.15.97.33 2.042.379 1.16.053 1.508.064 4.445.064 2.937 0 3.285-.011 4.445-.064 1.072-.049 1.655-.228 2.042-.379.514-.2.88-.438 1.265-.823.385-.385.624-.751.823-1.264.15-.388.33-.97.379-2.043.053-1.16.064-1.508.064-4.445 0-2.937-.011-3.285-.064-4.445-.049-1.072-.228-1.655-.379-2.043-.2-.513-.438-.88-.823-1.264a3.408 3.408 0 00-1.265-.823c-.387-.15-.97-.33-2.042-.379-1.16-.053-1.508-.064-4.445-.064zm0 3.37a5.649 5.649 0 110 11.297 5.649 5.649 0 010-11.298zm0 9.315a3.667 3.667 0 100-7.334 3.667 3.667 0 000 7.334zm7.192-9.539a1.32 1.32 0 11-2.64 0 1.32 1.32 0 012.64 0z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-menu" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 10a1.5 1.5 0 010-3h17a1.5 1.5 0 010 3h-17zm0 7a1.5 1.5 0 010-3h17a1.5 1.5 0 010 3h-17zm0 7a1.5 1.5 0 010-3h17a1.5 1.5 0 010 3h-17z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-more" xmlns="http://www.w3.org/2000/svg"><path d="M21 16a3 3 0 116 0 3 3 0 01-6 0zm-8 0a3 3 0 116 0 3 3 0 01-6 0zm-8 0a3 3 0 116 0 3 3 0 01-6 0z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-onedrive" xmlns="http://www.w3.org/2000/svg"><path d="M11.715 16.427c.584-2.413 2.699-4.177 5.209-4.177 1.483 0 2.873.621 3.878 1.7.425-.14.922-.248 1.364-.258v-.16c0-3.054-2.214-5.532-4.944-5.532-1.952 0-3.624 1.278-4.428 3.115a3.55 3.55 0 00-2.033-.658c-2.142 0-3.877 1.94-3.877 4.336 0 .258.028.51.068.754-1.652.167-2.946 1.9-2.946 3.79 0 .02.005.037.005.056-.001.017-.011.035-.011.052 0 .757.257 1.449.673 2.007a3.14 3.14 0 002.568 1.317h1.513a4.49 4.49 0 01-.477-1.987c-.001-2.138 1.476-3.93 3.438-4.355zm13.752 2.375c-.03 0-.06.01-.09.01.008-.09.026-.18.026-.273 0-1.812-1.431-3.279-3.198-3.279-.703 0-1.347.24-1.877.635-.655-1.249-1.924-2.107-3.405-2.107-2.146 0-3.885 1.784-3.885 3.984 0 .029.008.053.009.082a2.764 2.764 0 00-.431-.045c-1.602 0-2.898 1.33-2.898 2.973 0 .205.02.406.059.599C10.05 22.87 11.322 24 12.856 24h12.847v-.023C26.99 23.85 28 22.753 28 21.402c0-1.435-1.134-2.6-2.533-2.6z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-remove" xmlns="http://www.w3.org/2000/svg"><path d="M22.142 24.009c-.078 1.1-1.044 1.991-2.15 1.991h-7.983c-1.11 0-2.073-.897-2.151-1.991l-.786-11.002A.924.924 0 0110.007 12h11.986c.556 0 .975.45.935 1.007l-.786 11.002zM13 7V6c0-.556.444-1 .99-1h4.02A1 1 0 0119 6v1h4c.556 0 1 .447 1 .999v1.002A.997.997 0 0123 10H9c-.555 0-1-.447-1-.999V7.999A.996.996 0 019 7h4z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-uploadcare" xmlns="http://www.w3.org/2000/svg"><path fill="#ffd800" d="M16 31C7.716 31 1 24.284 1 16 1 7.716 7.716 1 16 1c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15zm0-13.704a1.296 1.296 0 100-2.592 1.296 1.296 0 000 2.592z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-url" xmlns="http://www.w3.org/2000/svg"><path d="M16 5c6.074 0 11 4.926 11 11s-4.926 11-11 11S5 22.074 5 16 9.926 5 16 5zm6.076 6.327a.992.992 0 10-1.403-1.403l-1.128 1.128c-1.431-.92-3.47-.768-4.697.461l-3.186 3.185a3.7 3.7 0 00-1.09 2.636c0 .748.22 1.46.624 2.067l-1.272 1.272a.992.992 0 101.402 1.403l1.273-1.272c.606.405 1.32.623 2.067.623.997 0 1.933-.386 2.634-1.089l3.187-3.186a3.729 3.729 0 00.464-4.7l1.125-1.125zm-4.252 3.841a.982.982 0 00.701-.29l.95-.95c.067.188.114.385.114.591 0 .466-.178.904-.505 1.23l-3.186 3.187c-.472.47-1.197.588-1.813.382l.793-.792a.992.992 0 10-1.404-1.404l-.801.802a1.752 1.752 0 01-.115-.59c0-.468.179-.905.506-1.232l3.186-3.186a1.736 1.736 0 011.23-.507c.207 0 .404.049.592.116l-.948.95a.992.992 0 00.7 1.693z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-vk" xmlns="http://www.w3.org/2000/svg"><path d="M27.791 21.484c-.416-.767-1.212-1.708-2.386-2.824l-.038-.038c-.558-.532-.895-.882-1.037-1.06-.258-.341-.316-.686-.175-1.036.1-.264.475-.821 1.125-1.673.341-.451.612-.813.812-1.086 1.441-1.959 2.066-3.21 1.874-3.756l-.074-.127c-.05-.077-.18-.147-.387-.211-.209-.064-.475-.075-.8-.032l-3.599.025a.457.457 0 00-.25.007l-.163.038-.062.032-.05.039a.56.56 0 00-.137.134.882.882 0 00-.125.223 21.072 21.072 0 01-1.337 2.875 27.31 27.31 0 01-.85 1.373c-.258.388-.475.673-.65.856a4.57 4.57 0 01-.475.44c-.141.112-.25.158-.324.141a8.987 8.987 0 01-.213-.05.843.843 0 01-.281-.314 1.425 1.425 0 01-.144-.498c-.025-.2-.04-.373-.044-.518-.003-.144-.002-.349.007-.613.008-.264.012-.443.012-.536 0-.324.007-.675.019-1.054l.031-.901c.009-.222.013-.456.013-.703 0-.247-.015-.44-.044-.581a2.02 2.02 0 00-.131-.409.684.684 0 00-.256-.307 1.426 1.426 0 00-.419-.172c-.441-.102-1.004-.158-1.687-.166-1.55-.017-2.545.085-2.986.307a1.69 1.69 0 00-.475.383c-.15.187-.171.29-.063.306.5.077.854.26 1.062.55l.075.153c.059.11.117.307.175.588.059.28.096.592.113.932.041.622.041 1.154 0 1.597-.042.443-.081.788-.119 1.035a2.107 2.107 0 01-.169.6 2.55 2.55 0 01-.15.281.217.217 0 01-.062.064.918.918 0 01-.337.064c-.117 0-.259-.06-.425-.179a3.024 3.024 0 01-.519-.492c-.179-.208-.38-.5-.606-.875a15.385 15.385 0 01-.7-1.328l-.2-.37a32.156 32.156 0 01-.512-1.042 20.306 20.306 0 01-.575-1.323.84.84 0 00-.3-.408l-.062-.039a.85.85 0 00-.2-.108 1.304 1.304 0 00-.287-.083L4.8 9.64c-.35 0-.587.081-.712.243l-.05.077a.421.421 0 00-.038.204c0 .094.025.209.075.345.5 1.201 1.043 2.36 1.63 3.475C6.294 15.1 6.804 16 7.237 16.68c.433.681.875 1.324 1.325 1.929.45.604.748.992.893 1.162.146.17.26.298.344.384l.312.306c.2.205.494.45.881.735.388.285.817.566 1.287.843.471.277 1.019.503 1.644.677a5.564 5.564 0 001.824.211h1.437c.292-.026.512-.12.662-.281l.05-.064a.858.858 0 00.094-.236c.029-.107.044-.224.044-.351a4.301 4.301 0 01.08-.99c.063-.294.134-.516.213-.665a1.632 1.632 0 01.482-.562.806.806 0 01.1-.045c.2-.068.434-.002.705.199.271.2.525.447.763.74.237.295.522.625.856.99.333.367.625.64.874.818l.25.154c.167.102.384.196.65.28.266.086.5.107.7.065l3.199-.051c.316 0 .562-.054.737-.16.175-.107.279-.224.312-.351.034-.128.035-.273.007-.435a1.632 1.632 0 00-.088-.338 1.694 1.694 0 00-.082-.16z"/></symbol></svg>'},styles:function(){return'.uploadcare--jcrop-handle{box-sizing:border-box;padding:12.5px;width:45px;height:45px;background:transparent;z-index:2147483621}@media (min-width:760px){.uploadcare--jcrop-handle{height:35px;width:35px;padding:10px}}.uploadcare--jcrop-handle:before{content:"";display:block;width:20px;height:20px;background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border-radius:50%}@media (min-width:760px){.uploadcare--jcrop-handle:before{height:15px;width:15px}}.uploadcare--jcrop-handle.ord-nw{margin-top:-22.5px;margin-left:-22.5px;top:0;left:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-nw{margin-left:-17.5px;margin-top:-17.5px}}.uploadcare--jcrop-handle.ord-ne{margin-top:-22.5px;margin-right:-22.5px;top:0;right:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-ne{margin-right:-17.5px;margin-top:-17.5px}}.uploadcare--jcrop-handle.ord-se{margin-bottom:-22.5px;margin-right:-22.5px;bottom:0;right:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-se{margin-right:-17.5px;margin-bottom:-17.5px}}.uploadcare--jcrop-handle.ord-sw{margin-bottom:-22.5px;margin-left:-22.5px;bottom:0;left:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-sw{margin-left:-17.5px;margin-bottom:-17.5px}}.uploadcare--jcrop-hline{width:100%;height:1px!important;background-color:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);z-index:2147483620}.uploadcare--jcrop-hline.bottom{bottom:0}.uploadcare--jcrop-vline{width:1px!important;height:100%;background-color:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);z-index:2147483620}.uploadcare--jcrop-vline.right{right:0}.uploadcare--jcrop-tracker{height:100%;width:100%;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.uploadcare--jcrop-holder img{max-width:none;max-height:none}.uploadcare--text{margin:0 0 10px;padding:0;font-size:17.5px;line-height:25px}.uploadcare--text:empty{display:none}.uploadcare--text_muted{color:#a4a2a1}.uploadcare--text_pre{box-sizing:border-box;overflow-x:auto;padding:20px;max-width:100%;background:#e3e1e1;font-family:monospace;white-space:pre;text-align:left}.uploadcare--text_size_small{font-size:15px;line-height:20px}.uploadcare--text_size_medium{font-size:20px;font-weight:700;line-height:25px}.uploadcare--text_size_large{font-size:22px;font-weight:700;line-height:25px}.uploadcare--text_size_extra-large{font-size:35px;line-height:45px}@media (min-width:760px){.uploadcare--text_size_extra-large{font-size:42.5px;line-height:50px}}.uploadcare--icon{all:initial;color:inherit;fill:currentColor;margin:0;padding:0;max-width:100%;width:32px;height:32px;cursor:inherit}.uploadcare--link,.uploadcare--link:link,.uploadcare--link:visited{cursor:pointer;color:#157cfc;text-decoration:underline}.uploadcare--link:focus,.uploadcare--link:hover{color:#3891ff;text-decoration:none}.uploadcare--link:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--link:active{color:#0969ee}.uploadcare--button{all:initial;-ms-flex-negative:0;flex-shrink:0;display:inline-block;overflow:hidden;box-sizing:border-box;margin:0;padding:10px;width:auto;min-width:100px;height:auto;min-height:0;border-radius:6px;border:1px solid #157cfc;background:transparent;color:#157cfc;cursor:default;white-space:nowrap;text-overflow:ellipsis;text-align:center;font-family:inherit;font-size:15px;font-weight:400;font-style:normal;line-height:20px;box-shadow:none;text-shadow:none;transition:background .3s,color .3s,border .3s}.uploadcare--button svg{pointer-events:none}.uploadcare--button:focus,.uploadcare--button:hover{background:transparent;border-color:#3891ff;color:#3891ff;font-weight:400;font-style:normal;box-shadow:none;text-shadow:none}.uploadcare--button:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--button:active{border-color:#0969ee;color:#0969ee}.uploadcare--button:disabled,.uploadcare--button[aria-disabled=true]{background:transparent!important;border-color:#d4d2d2!important;color:#d4d2d2!important;cursor:not-allowed}@media (min-width:760px){.uploadcare--button{padding:10px 20px;font-size:17.5px;line-height:25px}}.uploadcare--button_icon{padding:14px;min-width:0;width:60px;height:60px}.uploadcare--button_muted{border-color:transparent!important;color:#a4a2a1;border-radius:0}.uploadcare--button_muted:focus,.uploadcare--button_muted:hover{color:#157cfc}.uploadcare--button_muted:disabled,.uploadcare--button_muted[aria-disabled=true]{border-color:transparent!important}.uploadcare--button_overlay{background:rgba(53,53,53,.5);border-color:transparent;color:#fff}.uploadcare--button_overlay:focus,.uploadcare--button_overlay:hover{background:hsla(0,0%,40%,.5);border-color:transparent;color:#fff}.uploadcare--button_overlay:active{background:rgba(33,33,33,.5)}.uploadcare--button_primary{background:#157cfc;border-color:#157cfc;color:#fff}.uploadcare--button_primary:focus,.uploadcare--button_primary:hover{background:#3891ff;border-color:#3891ff;color:#fff}.uploadcare--button_primary:active{background:#0969ee;border-color:#0969ee}.uploadcare--button_primary:disabled,.uploadcare--button_primary[aria-disabled=true]{background:#d4d2d2!important;border-color:#d4d2d2!important;color:#fff!important}.uploadcare--button_size_big{padding:10px 25px;font-size:20px;line-height:30px}.uploadcare--button_size_small{padding:5px 10px;min-width:80px;font-size:15px;line-height:20px}.uploadcare--input{-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex-negative:0;flex-shrink:0;display:block;box-sizing:border-box;margin:5px 0 15px;padding:10px 15px;width:100%;font-size:17.5px;line-height:25px;background:#fff;color:#353535;border:1px solid #a4a2a1;border-radius:2px;box-shadow:none}.uploadcare--input:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--input::-webkit-input-placeholder{color:#a4a2a1}.uploadcare--input::-ms-input-placeholder{color:#a4a2a1}.uploadcare--input::placeholder{color:#a4a2a1}.uploadcare--form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;box-sizing:border-box;max-width:400px;width:100%}.uploadcare--error{color:#e66a6a}.uploadcare--powered-by{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;padding:7.5px 0;font-size:12.5px;line-height:15px;color:#fff;text-align:center}.uploadcare--powered-by__link{display:-ms-inline-flexbox;display:inline-flex;color:inherit!important;text-decoration:none!important}.uploadcare--powered-by__logo{display:-ms-inline-flexbox;display:inline-flex;width:20px;height:15px;vertical-align:text-bottom}.uploadcare--progress__canvas{width:100%;height:100%}.uploadcare--progress__text{display:table-cell;vertical-align:middle;text-align:center;font-size:60%;line-height:1}.uploadcare--progress__text-container{width:100%;height:100%;display:table;white-space:normal}.uploadcare--progress_type_canvas{padding:2px;width:32px;height:32px;color:#ffd800;border-color:#e3e1e1}.uploadcare--progressbar{overflow:hidden;width:100%;height:100%;background:#e3e1e1;border-radius:6px}.uploadcare--progressbar__value{width:0;height:100%;background:#ffd800}.uploadcare--menu{-ms-flex-negative:0;flex-shrink:0;width:100%;width:100vw;max-width:100%;height:100%;overflow:hidden}@media (min-width:760px){.uploadcare--menu{width:60px}}@media (max-width:759px){.uploadcare--menu{height:60px}}.uploadcare--menu__icon{-ms-flex-negative:0;flex-shrink:0;margin:14px}@media (max-width:759px){.uploadcare--menu:not(.uploadcare--menu_opened) .uploadcare--menu__item_current:not(.uploadcare--menu__item_tab_file) .uploadcare--menu__icon{position:absolute;top:0;left:50%;transform:translateX(-50%);margin-left:0}}.uploadcare--menu__item{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:100vw;height:60px;overflow:hidden;cursor:default;background:#e3e1e1;color:#666;transition:background .3s,color .3s}@media (min-width:760px){.uploadcare--menu__item{width:60px}}.uploadcare--menu__item:focus,.uploadcare--menu__item:hover{color:#157cfc}.uploadcare--menu__item:active{background-color:#fff;color:#0969ee}.uploadcare--menu__item:focus{outline:none;box-shadow:inset 0 0 0 2px rgba(21,124,252,.5)}.uploadcare--menu__item[aria-disabled=true]{background:#e3e1e1!important;color:#666!important;cursor:not-allowed}.uploadcare--menu__item:after{content:attr(title);-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;height:30px;font-size:17px;line-height:30px;white-space:nowrap}@media (min-width:760px){.uploadcare--menu__item:after{overflow:hidden;max-width:170px;text-overflow:ellipsis}}.uploadcare--menu__item_current,.uploadcare--menu__item_current:active,.uploadcare--menu__item_current:focus,.uploadcare--menu__item_current:hover{background-color:#fff;color:#353535}.uploadcare--menu__item_hidden{display:none}.uploadcare--menu__items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;padding-right:100vw;overflow-y:auto;overflow-x:hidden;background:#e3e1e1}.uploadcare--menu__toggle{width:60px;height:60px;transition:none}.uploadcare--menu__toggle:focus{outline-offset:-2px}@media (min-width:760px){.uploadcare--menu__toggle{display:none}}@media (max-width:759px){.uploadcare--menu:not(.uploadcare--menu_opened) .uploadcare--menu__toggle-icon_back{display:none}}@media (max-width:759px){.uploadcare--menu_opened{position:relative;z-index:1000;height:100%}.uploadcare--menu_opened .uploadcare--menu__toggle{-ms-flex-pack:start;justify-content:flex-start;width:100%;text-align:left;background:#e3e1e1}.uploadcare--menu_opened .uploadcare--menu__toggle-icon_menu{display:none}.uploadcare--menu_opened .uploadcare--menu__items{height:calc(100% - 60px)}}.uploadcare--footer{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;box-sizing:border-box;width:100%;margin-top:10px;padding:5px 20px 15px}@media (max-width:759px) and (orientation:portrait){.uploadcare--footer{display:block}}.uploadcare--footer:empty{display:none}.uploadcare--footer__additions{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;padding:0 0 15px;text-align:center}@media (max-width:759px) and (orientation:landscape){.uploadcare--footer__additions{padding:0 20px}}@media (max-width:500px) and (orientation:landscape){.uploadcare--footer__additions{display:none}}@media (min-width:760px){.uploadcare--footer__additions{padding:0 20px}}.uploadcare--footer__additions:empty{visibility:hidden;padding:0}.uploadcare--footer__button{margin-top:5px;margin-bottom:5px}.uploadcare--footer__button:first-of-type{-ms-flex-order:0;order:0}.uploadcare--footer__button:nth-of-type(2){-ms-flex-order:2;order:2}@media (max-width:759px){.uploadcare--footer__button{max-width:calc(50% - 20px)}}@media (max-width:759px) and (orientation:portrait){.uploadcare--footer__button:first-of-type{float:left}.uploadcare--footer__button:nth-of-type(2){float:right}}.uploadcare--dragging .uploadcare--draganddrop{margin:20px;background:#e3e1e1;color:#a4a2a1;border:2px dashed;border-radius:20px}.uploadcare--draganddrop.uploadcare--dragging{color:#157cfc!important}@media (max-width:759px){.uploadcare--draganddrop__title{display:none}}.uploadcare--draganddrop:not(.uploadcare--draganddrop_supported) .uploadcare--draganddrop__supported,.uploadcare--draganddrop_supported .uploadcare--draganddrop__not-supported,.uploadcare--dragging .uploadcare--dialog__close,.uploadcare--dragging__show{display:none}.uploadcare--dragging .uploadcare--dragging__show{display:block}.uploadcare--dragging .uploadcare--dragging__hide{display:none}.uploadcare--file{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:justify;justify-content:space-between;box-sizing:border-box;padding:5px 0 5px 20px;color:#353535;cursor:default}.uploadcare--file:hover{background:rgba(21,124,252,.1)}.uploadcare--file__description{-ms-flex-positive:1;flex-grow:1;min-width:0;padding-right:20px;text-align:left}.uploadcare--file__description:focus,.uploadcare--file__description:focus .uploadcare--file__preview,.uploadcare--file__description:hover,.uploadcare--file__description:hover .uploadcare--file__preview{color:#157cfc}.uploadcare--file__description:active,.uploadcare--file__description:active .uploadcare--file__preview{color:#0969ee}.uploadcare--file__description:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:2px}.uploadcare--file__icon{max-width:100%;max-height:100%}.uploadcare--file__name{overflow:hidden;margin:0;max-width:calc(100vw - 200px);line-height:25px;white-space:nowrap;text-overflow:ellipsis;transition:color .3s}@media (min-width:760px){.uploadcare--file__name{max-width:350px}}.uploadcare--file__preview{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;float:left;box-sizing:border-box;margin-right:10px;padding:2px;width:60px;height:60px;overflow:hidden;border:1px solid;border-radius:6px;background:transparent;color:#e3e1e1;transition:border .3s}.uploadcare--file__progressbar{-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:center;align-self:center;margin:0 10px;width:60px;height:10px}.uploadcare--file__size{font-size:12.5px;color:#a4a2a1}.uploadcare--file_status_error,.uploadcare--file_status_error .uploadcare--file__description,.uploadcare--file_status_error .uploadcare--file__preview{color:#e66a6a!important}.uploadcare--file_status_error .uploadcare--file__name{color:hsla(0,71%,66%,.5)!important}.uploadcare--file_status_error .uploadcare--file__progressbar,.uploadcare--file_status_error .uploadcare--file__size,.uploadcare--file_status_uploaded .uploadcare--file__progressbar{display:none}.uploadcare--file_status_uploading,.uploadcare--file_status_uploading .uploadcare--file__description{color:#353535!important}.uploadcare--file_status_uploading .uploadcare--file__name{max-width:calc(100vw - 280px)}@media (min-width:760px){.uploadcare--file_status_uploading .uploadcare--file__name{max-width:270px}}.uploadcare--file_status_uploading .uploadcare--file__preview{background:#ffd800;color:#ffd800!important}.uploadcare--files{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;width:100%;height:100%}.uploadcare--files__item{-ms-flex-negative:0;flex-shrink:0}.uploadcare--crop-sizes{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around}.uploadcare--crop-sizes__item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;padding:0;height:65px;background:transparent;border-color:transparent;color:#353535}.uploadcare--crop-sizes__item:focus,.uploadcare--crop-sizes__item:hover{background:transparent;border-color:transparent;color:#157cfc}.uploadcare--crop-sizes__item:active{background:transparent;border-color:transparent;color:#0969ee}.uploadcare--crop-sizes__item:disabled,.uploadcare--crop-sizes__item[aria-disabled=true]{border-color:transparent!important}.uploadcare--crop-sizes__item:after{content:attr(data-caption);display:block;font-size:14px;line-height:25px;text-transform:uppercase}@media (max-width:400px),(max-width:600px) and (orientation:landscape){.uploadcare--crop-sizes__item:after{font-size:12px}}.uploadcare--crop-sizes__item:before{content:"";display:block;-ms-flex-order:1;order:1;margin:1px 0;width:6px;height:6px;background:transparent;border-radius:50%}.uploadcare--crop-sizes__item_current:active,.uploadcare--crop-sizes__item_current:focus,.uploadcare--crop-sizes__item_current:hover{color:#353535}.uploadcare--crop-sizes__item_current:before{background:#157cfc}.uploadcare--crop-sizes__icon{box-sizing:border-box;width:30px;height:30px;border:2px solid;border-radius:2px;color:inherit;transform:scale(.666)}.uploadcare--crop-sizes__icon_free{border:none;border-radius:0;transform:none}.uploadcare--file-source{margin:10px;border-color:#e3e1e1;background:#e3e1e1;color:#353535}.uploadcare--file-source_all{-ms-flex-order:1;order:1;border-color:currentColor;background:transparent;color:#157cfc}.uploadcare--file-sources{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;width:100%}@media (max-width:759px) and (max-height:450px),(min-width:760px){.uploadcare--file-sources{display:none}}.uploadcare--file-sources__caption{margin:15px 0 5px}@media (max-width:759px) and (max-height:550px){.uploadcare--file-sources__item:nth-child(4),.uploadcare--file-sources__item:nth-child(5),.uploadcare--file-sources__item:nth-child(6){display:none}}.uploadcare--file-sources__items{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;max-width:300px}.uploadcare--file-sources__items:empty,.uploadcare--file-sources__items:not(.uploadcare--file-sources__items_many) .uploadcare--file-source__all{display:none}.uploadcare--media{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:relative;width:100%}.uploadcare--media__image{position:absolute;top:50%;left:50%;max-width:100%;max-height:100%;transform:translateX(-50%) translateY(-50%)}.uploadcare--media__video{all:initial;width:auto;max-width:100%;height:auto;min-height:100px;max-height:100%}@media (max-width:759px) and (max-height:379px){.uploadcare--media__video{max-height:120px}}@media (max-width:759px) and (min-height:380px) and (max-height:499px){.uploadcare--media__video{max-height:160px}}@media (max-width:759px) and (min-height:500px),(min-width:760px){.uploadcare--media__video{max-height:300px}}.uploadcare--camera__button{margin:5px 10px}.uploadcare--camera__button_type_mirror{position:absolute;top:15px;left:50%;margin:0;transform:translateX(-50%)}.uploadcare--camera__video{transition:transform .8s cubic-bezier(.23,1,.32,1)}.uploadcare--camera__video_mirrored{transform:scaleX(-1)}.uploadcare--camera__video-container{-ms-flex-positive:0;flex-grow:0;position:relative;margin-bottom:10px}.uploadcare--camera_status_denied .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_denied .uploadcare--camera__button_type_capture,.uploadcare--camera_status_denied .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_denied .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_denied .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_denied .uploadcare--camera__controls,.uploadcare--camera_status_denied .uploadcare--camera__not-found,.uploadcare--camera_status_denied .uploadcare--camera__please-allow,.uploadcare--camera_status_denied .uploadcare--camera__video-container,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_capture,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_retry,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_not-founded .uploadcare--camera__controls,.uploadcare--camera_status_not-founded .uploadcare--camera__please-allow,.uploadcare--camera_status_not-founded .uploadcare--camera__video-container,.uploadcare--camera_status_ready .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_ready .uploadcare--camera__button_type_retry,.uploadcare--camera_status_ready .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_ready .uploadcare--camera__not-found,.uploadcare--camera_status_ready .uploadcare--camera__please-allow,.uploadcare--camera_status_recording .uploadcare--camera__button_type_capture,.uploadcare--camera_status_recording .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_recording .uploadcare--camera__button_type_retry,.uploadcare--camera_status_recording .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_recording .uploadcare--camera__not-found,.uploadcare--camera_status_recording .uploadcare--camera__please-allow,.uploadcare--camera_status_requested .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_requested .uploadcare--camera__button_type_capture,.uploadcare--camera_status_requested .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_requested .uploadcare--camera__button_type_retry,.uploadcare--camera_status_requested .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_requested .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_requested .uploadcare--camera__controls,.uploadcare--camera_status_requested .uploadcare--camera__not-found,.uploadcare--camera_status_requested .uploadcare--camera__video-container{display:none}.uploadcare--crop-widget>.uploadcare--preview__image{-webkit-filter:brightness(60%);filter:brightness(60%);transform:none}.uploadcare--tab{-ms-flex-align:stretch;align-items:stretch;text-align:center}.uploadcare--tab,.uploadcare--tab__content{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.uploadcare--tab__content{-ms-flex-negative:1;flex-shrink:1;-ms-flex-align:center;align-items:center;overflow-y:auto;padding:0 20px}.uploadcare--tab__header{-ms-flex-negative:0;flex-shrink:0;padding:0 20px;overflow:hidden}@media (min-width:760px){.uploadcare--tab__header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding-right:60px;height:60px}}.uploadcare--tab__iframe{-ms-flex-positive:1;flex-grow:1;width:100%;height:100%;border:0;opacity:0}.uploadcare--tab__title{margin-top:10px;margin-bottom:10px}.uploadcare--tab:not(.uploadcare--tab_current),.uploadcare--tab_name_preview.uploadcare--tab_current~.uploadcare--panel__footer{display:none}.uploadcare--tab_remote.uploadcare--tab_current~.uploadcare--panel__footer{margin-top:0}.uploadcare--panel{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative;box-sizing:border-box;overflow:hidden;width:100%;height:500px;border:1px solid #a4a2a1;border-radius:6px;background:#fff;color:#353535;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Arial,sans-serif;font-weight:400;font-size:15px;line-height:20px}@media (min-width:760px){.uploadcare--panel{-ms-flex-direction:row;flex-direction:row}}.uploadcare--panel__content{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.uploadcare--panel__file-counter{display:inline}.uploadcare--panel__footer{padding-top:15px;background:#fff9d8}.uploadcare--panel__icon{box-sizing:border-box;padding:3px}.uploadcare--panel__menu_hidden{display:none}.uploadcare--panel__message_hidden{color:#d4d2d2}.uploadcare--panel__powered-by{background:#353535;color:hsla(0,0%,100%,.5)}@media (min-width:760px){.uploadcare--panel__powered-by{display:none}}.uploadcare--tab:not(:nth-child(2)).uploadcare--tab_current~.uploadcare--panel__powered-by{display:none}@media (max-width:759px){.uploadcare--panel_menu-hidden .uploadcare--tab__header{padding:6px 60px 0;min-height:60px}}.uploadcare--panel:not(.uploadcare--panel_multiple) .uploadcare--panel__footer{display:none}.uploadcare--panel_multiple .uploadcare--tab_name_preview{height:100%}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__content{padding-left:0;padding-right:0}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__footer{position:relative;margin-top:0;padding-top:15px}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__footer:before{content:"";position:absolute;top:0;left:20px;width:calc(100% - 40px);height:1px;background:#e3e1e1}.uploadcare--preview__content{overflow:hidden}.uploadcare--preview__content_crop{padding:10px 20px}.uploadcare--dialog{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:stretch;align-items:stretch;position:fixed;top:0;left:0;z-index:2147483647;box-sizing:border-box;overflow:hidden;width:100%;height:100%;background:#fff;color:#353535;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Arial,sans-serif;font-weight:400;font-size:15px;line-height:20px;opacity:0;transition:opacity .33s cubic-bezier(.05,.7,.25,1)}@media (min-width:760px){.uploadcare--dialog{-ms-flex-align:center;align-items:center;overflow-y:auto;background:rgba(0,0,0,.5)}}@media (min-width:760px) and (max-height:559px){.uploadcare--dialog{padding-top:30px}}@media (min-width:760px) and (min-height:560px){.uploadcare--dialog{-ms-flex-pack:center;justify-content:center}}.uploadcare--dialog__close{position:absolute;top:0;right:0;z-index:49}.uploadcare--dialog__close:focus{outline-offset:-2px}.uploadcare--dialog__container{display:-ms-flexbox;display:flex;position:relative;overflow:hidden}@media (max-width:759px){.uploadcare--dialog__container{-ms-flex-positive:1;flex-grow:1;height:100%}}@media (min-width:760px){.uploadcare--dialog__container{width:calc(100% - 60px);max-width:900px;height:calc(100% - 60px);min-height:500px;max-height:660px;border-radius:6px}}@media (min-width:1210px){.uploadcare--dialog__container{max-width:1050px}}.uploadcare--dialog__panel{height:100%;border:none;border-radius:0}@media (min-width:1210px){.uploadcare--dialog__panel .uploadcare--menu,.uploadcare--dialog__panel .uploadcare--menu__item{width:250px}}.uploadcare--dialog__powered-by{-ms-flex-negative:0;flex-shrink:0}@media (max-width:759px){.uploadcare--dialog__powered-by{display:none}}.uploadcare--dialog_status_active{opacity:1}.uploadcare--widget{display:inline-block;vertical-align:baseline}.uploadcare--dragging .uploadcare--widget,.uploadcare--widget.uploadcare--dragging{position:relative}.uploadcare--widget__button{all:initial;display:inline-block;box-sizing:border-box;margin:0;padding:.4em 1em;width:auto;min-width:0;height:auto;min-height:0;border-radius:6px;border:none;background:#c3c3c3;color:#fff;cursor:default;text-align:center;white-space:nowrap;font:inherit;line-height:inherit;box-shadow:none;text-shadow:inherit;transition:background .3s}.uploadcare--widget__button:focus,.uploadcare--widget__button:hover{background:#b3b3b3;color:#fff;font:inherit;box-shadow:none;text-shadow:inherit}.uploadcare--widget__button:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--widget__button:active{background:#b3b3b3}.uploadcare--widget__button:disabled{background:#c3c3c3;color:#fff;cursor:not-allowed}.uploadcare--widget__button_type_open{background:#157cfc;color:#fff}.uploadcare--widget__button_type_open:focus,.uploadcare--widget__button_type_open:hover{background:#3891ff}.uploadcare--widget__button_type_open:active{background:#0969ee}.uploadcare--widget__button_type_open:disabled{background:#c3c3c3}.uploadcare--widget__dragndrop-area{position:absolute;top:0;left:0;box-sizing:border-box;min-width:100%;min-height:100%;margin:0;padding:calc(.4em - 1.5px) 1em;font:inherit;line-height:inherit;text-align:center;white-space:nowrap;border:1.5px dashed;border-radius:6px;background:#e3e1e1;color:#a4a2a1;transition:color .3s;display:none}.uploadcare--dragging .uploadcare--widget__dragndrop-area{display:block}.uploadcare--widget.uploadcare--dragging .uploadcare--widget__dragndrop-area{color:#157cfc}.uploadcare--widget__file-name,.uploadcare--widget__file-size{display:inline}.uploadcare--widget__progress{display:inline-block;width:1.8em;height:1.8em;margin:0 .2em 0 0;padding:0;line-height:0;vertical-align:middle}.uploadcare--widget__text{display:inline-block;box-sizing:border-box;margin-right:.2em;padding:.4em 0;white-space:nowrap}.uploadcare--widget:not(.uploadcare--widget_option_clearable).uploadcare--widget_status_error .uploadcare--widget__button_type_remove,.uploadcare--widget:not(.uploadcare--widget_option_clearable).uploadcare--widget_status_loaded .uploadcare--widget__button_type_remove,.uploadcare--widget_option_clearable.uploadcare--widget_status_error .uploadcare--widget__button_type_open,.uploadcare--widget_status_error .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_error .uploadcare--widget__progress,.uploadcare--widget_status_loaded .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_loaded .uploadcare--widget__button_type_open,.uploadcare--widget_status_loaded .uploadcare--widget__progress,.uploadcare--widget_status_ready .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_ready .uploadcare--widget__button_type_remove,.uploadcare--widget_status_ready .uploadcare--widget__progress,.uploadcare--widget_status_ready .uploadcare--widget__text,.uploadcare--widget_status_started .uploadcare--widget__button_type_open,.uploadcare--widget_status_started .uploadcare--widget__button_type_remove{display:none}.uploadcare--page{width:auto;min-width:0;max-width:100%;height:auto;min-height:0;max-height:100%;overflow:hidden}.uploadcare--mouse-focused:focus{outline:none}'}},Jt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Xt[e];return null!=n?n(u({},t)):""};w()&&qe.add((function(t){var n=Jt("styles",{settings:t}),r=document.createElement("style");return r.setAttribute("type","text/css"),null!=r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),e("head").prepend(r)}));var Zt=function(e){return!e.find(".uploadcare--widget").is("[data-status=started], [data-status=error]")},en=function(e,t){return e.attr("data-uploadcare-submitted",t),e.find(":submit").attr("disabled",t)},tn='[role~="uploadcare-upload-form"]',nn=tn+"[data-uploadcare-submitted]";w()&&(e(document).on("submit",tn,(function(){var t;return t=e(this),!!Zt(t)||(en(t,!0),!1)})),e(document).on("loaded.uploadcare",nn,(function(){return e(this).submit()})),e(document).on("ready.uploadcare error.uploadcare",nn,(function(){var t;if(t=e(this),Zt(t))return en(t,!1)})));var rn=[".uploadcare--menu__item",".uploadcare--file__description",".uploadcare--crop-sizes__item"].join(", ");w()&&e(document.documentElement).on("mousedown",rn,(function(t){return se((function(){var t;if((t=document.activeElement)&&t!==document.body)return e(t).addClass("uploadcare--mouse-focused").one("blur",(function(){return e(t).removeClass("uploadcare--mouse-focused")}))}))})).on("keypress",rn,(function(t){if(13===t.which||32===t.which)return e(this).click(),t.preventDefault(),t.stopPropagation()}));var on=function(){function e(t){n(this,e),this.renderer=O?new ln(t):new sn(t),this.observed=null}return o(e,[{key:"listen",value:function(e,t){var n,r=this;return this.reset(),n=null!=t?function(e){return e[t]}:function(e){return e},this.observed=e,"resolved"===this.observed.state()?this.renderer.setValue(1,!0):this.observed.progress((function(t){if(e===r.observed)return r.renderer.setValue(n(t))})).always((function(t){if(e===r.observed)return r.renderer.setValue(1,!1)})),this}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.observed=null,this.renderer.setValue(e?1:0,!0)}},{key:"update",value:function(){return this.renderer.update()}}]),e}(),an=function(){function t(r){n(this,t),this.element=e(r),this.element.data("uploadcare-progress-renderer",this),this.element.addClass("uploadcare--progress")}return o(t,[{key:"update",value:function(){}}]),t}(),sn=function(e){c(r,e);var t=m(r);function r(){var e;return n(this,r),(e=t.apply(this,arguments)).element.addClass("uploadcare--progress_type_text"),e.element.html(Jt("progress__text")),e.text=e.element.find(".uploadcare--progress__text"),e}return o(r,[{key:"setValue",value:function(e){return e=Math.round(100*e),this.text.html("".concat(e," %"))}}]),r}(an),ln=function(t){c(i,t);var r=m(i);function i(){var t;return n(this,i),(t=r.apply(this,arguments)).canvasEl=e("<canvas>").addClass("uploadcare--progress__canvas").get(0),t.element.addClass("uploadcare--progress_type_canvas"),t.element.html(t.canvasEl),t.setValue(0,!0),t}return o(i,[{key:"update",value:function(){var e,t,n,r;if(r=2*(n=Math.floor(Math.min(this.element.width(),this.element.height()))),n)return this.canvasEl.width===r&&this.canvasEl.height===r||(this.canvasEl.width=r,this.canvasEl.height=r),e=function(e,r){var i;return i=-Math.PI/2,t.beginPath(),t.moveTo(n,n),t.arc(n,n,e,i,i+2*Math.PI*r,!1),t.fill()},(t=this.canvasEl.getContext("2d")).clearRect(0,0,r,r),t.globalCompositeOperation="source-over",t.fillStyle=this.element.css("border-left-color"),e(n-.5,1),t.fillStyle=this.element.css("color"),e(n,this.val),t.globalCompositeOperation="destination-out",e(n/7,1)}},{key:"__animateValue",value:function(e){var t,n,r,i=this;return r=this.val,n=new Date,t=e>r?2:-2,this.__animIntervalId=setInterval((function(){var o;return o=r+(new Date-n)/1e3*t,(o=(t>0?Math.min:Math.max)(o,e))===e&&i.__stopAnimation(),i.__setValue(o)}),15),this.__animIntervalId}},{key:"__stopAnimation",value:function(){return this.__animIntervalId&&clearInterval(this.__animIntervalId),this.__animIntervalId=null,this.__animIntervalId}},{key:"__setValue",value:function(e){return this.val=e,this.element.attr("aria-valuenow",(100*e).toFixed(0)),this.update()}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.__stopAnimation(),t?this.__setValue(e):this.__animateValue(e)}}]),i}(an),un=T,cn=function(e,t,n){return n=Ue(n),dn(e,(function(e,r){return t(n.multiple?wt(e,r,n):_t(e,r[0],n))}))},dn=un?function(t,n){fn(t),e(t).on({dragover:function(e){e.preventDefault(),e.originalEvent.dataTransfer.dropEffect="copy"},drop:function(t){var r,i,o,a,s,l;if(t.preventDefault(),r=t.originalEvent.dataTransfer){if(r.files.length)return n("object",r.files);for(l=[],i=0,o=(a=r.getData("text/uri-list").split()).length;i<o;i++)s=a[i],(s=e.trim(s))&&"#"!==s[0]&&l.push(s);return l?n("url",l):void 0}}})}:function(){},fn=un?function(t,n){var r,i,o;return o=!1,i=0,r=function(n){if(o!==n)return o=n,e(t).toggleClass("uploadcare--dragging",n)},e(n||t).on({dragenter:function(){return i+=1,r(!0)},dragleave:function(){if(0==(i-=1))return r(!1)},"drop mouseenter":function(){return i=0,r(!1)}})}:function(){};w()&&fn("body",document);var pn,hn,mn=function(){function t(r,i){n(this,t),this.settings=r,this.element=i,this.content=e(Jt("widget")),this.element.after(this.content),this.circle=new on(this.content.find(".uploadcare--widget__progress").removeClass("uploadcare--widget__progress")),this.content.find(".uploadcare--progress").addClass("uploadcare--widget__progress"),this.statusText=this.content.find(".uploadcare--widget__text"),this.content.toggleClass("uploadcare--widget_option_clearable",this.settings.clearable)}return o(t,[{key:"addButton",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e(Jt("widget-button",{name:t,caption:n})).appendTo(this.content)}},{key:"setStatus",value:function(e){var t;return t="uploadcare--widget_status_",this.content.removeClass(t+this.content.attr("data-status")),this.content.attr("data-status",e),this.content.addClass(t+e),this.element.trigger("".concat(e,".uploadcare"))}},{key:"reset",value:function(){return this.circle.reset(),this.setStatus("ready"),this.content.attr("aria-busy",!1),this.__file=void 0,this.__file}},{key:"loaded",value:function(){return this.setStatus("loaded"),this.content.attr("aria-busy",!1),this.circle.reset(!0)}},{key:"listen",value:function(e){var t=this;return this.__file=e,this.circle.listen(e,"uploadProgress"),this.setStatus("started"),this.content.attr("aria-busy",!0),e.progress((function(n){if(e===t.__file)switch(n.state){case"uploading":return t.statusText.text(It.t("uploading"));case"uploaded":return t.statusText.text(It.t("loadingInfo"))}}))}},{key:"error",value:function(e){return this.statusText.text(It.t("errors.".concat(e||"default"))),this.content.attr("aria-busy",!1),this.setStatus("error")}},{key:"setFileInfo",value:function(e){return this.statusText.html(Jt("widget-file-name",e)).find(".uploadcare--widget__file-name").toggleClass("needsclick",this.settings.systemDialog)}}]),t}(),gn=function(){function t(e,r,i,o,a){n(this,t),this.__initTabsList=this.__initTabsList.bind(this),this.container=e,this.tabButton=r,this.dialogApi=i,this.settings=o,this.name=a,this.container.append(Jt("tab-file")),this.__setupFileButton(),this.__initDragNDrop(),this.__initTabsList()}return o(t,[{key:"__initDragNDrop",value:function(){var e,t=this;if(e=this.container.find(".uploadcare--draganddrop"),T)return dn(e,(function(e,n){return t.settings.multiple?t.dialogApi.addFiles(e,n):t.dialogApi.addFiles(e,[n[0]]),t.dialogApi.switchTab("preview")})),e.addClass("uploadcare--draganddrop_supported")}},{key:"__setupFileButton",value:function(){var e,t=this;return e=this.container.find(".uploadcare--tab__action-button"),E?e.on("click",(function(){return Ce(t.container,t.settings,(function(e){return t.dialogApi.addFiles("object",e.files),t.dialogApi.switchTab("preview")})),!1})):Te(e,this.settings,(function(e){return t.dialogApi.addFiles("input",[e]),t.dialogApi.switchTab("preview")}))}},{key:"__initTabsList",value:function(){var e,t,n,r,i,o,a=this;for((n=this.container.find(".uploadcare--file-sources__items")).remove(".uploadcare--file-sources__item:not(.uploadcare--file-source_all)"),r=0,e=0,t=(i=this.settings.tabs).length;e<t;e++)"file"!==(o=i[e])&&"url"!==o&&"camera"!==o&&this.dialogApi.isTabVisible(o)&&((r+=1)>5||n.append([this.__tabButton(o)," "]));return n.find(".uploadcare--file-source_all").on("click",(function(){return a.dialogApi.openMenu()})),r>5&&n.addClass("uploadcare--file-sources__items_many"),this.container.find(".uploadcare--file-sources").attr("hidden",0===r)}},{key:"__tabButton",value:function(t){var n,r=this;return n=e("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-".concat(t,"'/></svg>")).attr("role","presentation").attr("class","uploadcare--icon uploadcare--file-source__icon"),e("<button>").addClass("uploadcare--button").addClass("uploadcare--button_icon").addClass("uploadcare--file-source").addClass("uploadcare--file-source_".concat(t)).addClass("uploadcare--file-sources__item").attr("type","button").attr("title",It.t("dialog.tabs.names.".concat(t))).attr("data-tab",t).append(n).on("click",(function(){return r.dialogApi.switchTab(t)}))}},{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--tab__action-button").focus()}}]),t}(),vn=function(){function t(r,i,o,a,s){var l,u,c=this;n(this,t),this.container=r,this.tabButton=i,this.dialogApi=o,this.settings=a,this.name=s,this.container.append(Jt("tab-url")),(u=this.container.find(".uploadcare--input")).on("change keyup input",(function(){var t=!e.trim(this.value);return l.attr("disabled",t).attr("aria-disabled",t)})),l=this.container.find(".uploadcare--button[type=submit]").attr("disabled",!0),this.container.find(".uploadcare--form").on("submit",(function(){var e=pn(u.val());return e&&(c.dialogApi.addFiles("url",[[e,{source:"url-tab"}]]),u.val("").trigger("change")),!1}))}return o(t,[{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--input").focus()}}]),t}();hn=/^[a-z][a-z0-9+\-.]*:?\/\//,pn=function(t){return t=e.trim(t),hn.test(t)?t:"http://"+t};var yn=w()&&"https:"===document.location.protocol,bn=function(){function t(e,r,i,o,a){var s;if(n(this,t),this.__captureInput=this.__captureInput.bind(this),this.__captureInputHandle=this.__captureInputHandle.bind(this),this.__setState=this.__setState.bind(this),this.__requestCamera=this.__requestCamera.bind(this),this.__revoke=this.__revoke.bind(this),this.__mirror=this.__mirror.bind(this),this.__capture=this.__capture.bind(this),this.__startRecording=this.__startRecording.bind(this),this.__stopRecording=this.__stopRecording.bind(this),this.__cancelRecording=this.__cancelRecording.bind(this),this.container=e,this.tabButton=r,this.dialogApi=i,this.settings=o,this.name=a,this.__checkCapture())this.container.append(Jt("tab-camera-capture")),this.container.addClass("uploadcare--camera"),this.container.find(".uploadcare--camera__button_type_photo").on("click",this.__captureInput("image/*")),s=this.container.find(".uploadcare--camera__button_type_video").on("click",this.__captureInput("video/*")),this.settings.imagesOnly&&s.hide();else{if(!this.__checkCompatibility())return void this.dialogApi.hideTab(this.name);this.__initCamera()}}return o(t,[{key:"__captureInput",value:function(e){var t=this;return function(){return Ce(t.container,{inputAcceptTypes:e},t.__captureInputHandle,{capture:"camera"})}}},{key:"__captureInputHandle",value:function(e){return this.dialogApi.addFiles("object",e.files),this.dialogApi.switchTab("preview")}},{key:"__initCamera",value:function(){var e,t=this;return this.__loaded=!1,this.mirrored=this.settings.cameraMirrorDefault,this.container.append(Jt("tab-camera")),this.container.addClass("uploadcare--camera"),this.container.addClass("uploadcare--camera_status_requested"),this.container.find(".uploadcare--camera__button_type_capture").on("click",this.__capture),e=this.container.find(".uploadcare--camera__button_type_start-record").on("click",this.__startRecording),this.container.find(".uploadcare--camera__button_type_stop-record").on("click",this.__stopRecording),this.container.find(".uploadcare--camera__button_type_cancel-record").on("click",this.__cancelRecording),this.container.find(".uploadcare--camera__button_type_mirror").on("click",this.__mirror),this.container.find(".uploadcare--camera__button_type_retry").on("click",this.__requestCamera),this.MediaRecorder&&!this.settings.imagesOnly||e.hide(),this.video=this.container.find(".uploadcare--camera__video"),this.video.toggleClass("uploadcare--camera__video_mirrored",this.mirrored),this.video.on("loadeddata",(function(){return this.play()})),this.dialogApi.progress((function(e){if(e===t.name){if(!t.__loaded)return t.__requestCamera()}else if(t.__loaded&&yn)return t.__revoke()})),this.dialogApi.always(this.__revoke)}},{key:"__checkCompatibility",value:function(){var e;return navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?this.getUserMedia=function(e,t,n){return navigator.mediaDevices.getUserMedia(e).then(t).catch(n)}:this.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia,this.URL=window.URL||window.webkitURL,this.MediaRecorder=window.MediaRecorder,yn||ne("Camera is not allowed for HTTP. Please use HTTPS connection."),e="localhost"===document.location.hostname,!!this.getUserMedia&&Uint8Array&&(yn||e)}},{key:"__checkCapture",value:function(){var e;return(e=document.createElement("input")).setAttribute("capture","camera"),!!e.capture}},{key:"__setState",value:function(e){var t=["","ready","requested","denied","not-founded","recording","error"].join(" uploadcare--camera_status_");this.container.removeClass(t).addClass("uploadcare--camera_status_".concat(e)),this.container.find(".uploadcare--camera__button").focus()}},{key:"__requestCamera",value:function(){var e=this;return this.__loaded=!0,this.getUserMedia.call(navigator,{audio:!0,video:{width:{ideal:1920},height:{ideal:1080},frameRate:{ideal:30}}},(function(t){return e.__setState("ready"),e.__stream=t,"srcObject"in e.video[0]?(e.video.prop("srcObject",t),e.video.on("loadedmetadata",(function(){return e.video[0].play()}))):(e.URL?(e.__streamObject=e.URL.createObjectURL(t),e.video.prop("src",e.__streamObject)):e.video.prop("src",t),e.video[0].play())}),(function(t){var n=Object.create(null);return n.NotFoundError=function(){e.__setState("not-founded")},n.NotAllowedError=function(){e.__setState("denied")},n.other=function(){e.__setState("denied"),console.warn("Camera error occurred: "+t.name)},(n[t.name]||n.other)(),e.__loaded=!1,e.__loaded}))}},{key:"__revoke",value:function(){var t;if(this.__setState("requested"),this.__loaded=!1,this.__stream)return this.__streamObject&&this.URL.revokeObjectURL(this.__streamObject),this.__stream.getTracks?e.each(this.__stream.getTracks(),(function(){return"function"==typeof this.stop?this.stop():void 0})):"function"==typeof(t=this.__stream).stop&&t.stop(),this.__stream=null,this.__stream}},{key:"__mirror",value:function(){return this.mirrored=!this.mirrored,this.video.toggleClass("uploadcare--camera__video_mirrored",this.mirrored)}},{key:"__capture",value:function(){var e,t,n,r,i,o=this;return i=(r=this.video[0]).videoWidth,n=r.videoHeight,(e=document.createElement("canvas")).width=i,e.height=n,t=e.getContext("2d"),this.mirrored&&(t.translate(i,0),t.scale(-1,1)),t.drawImage(r,0,0,i,n),Ie(e,"image/jpeg",.9,(function(t){return e.width=e.height=1,t.name="camera.jpg",o.dialogApi.addFiles("object",[[t,{source:"camera"}]]),o.dialogApi.switchTab("preview")}))}},{key:"__startRecording",value:function(){var t=this;this.__setState("recording"),this.__chunks=[];var n={},r=this.settings.videoPreferredMimeTypes;if(null!=r){var i=function(e,t){for(var n=e.length,r=0;r<n;){var i=e[r];if(t(i))return i;r++}}(e.isArray(r)?r:[r],(function(e){return t.MediaRecorder.isTypeSupported(e)}));null!=i&&(n.mimeType=i)}var o=navigator.userAgent.toLowerCase().indexOf("firefox")>-1;return null==n.mimeType&&o&&this.MediaRecorder.isTypeSupported("video/webm")&&(n.mimeType="video/webm"),null!==this.settings.audioBitsPerSecond&&(n.audioBitsPerSecond=this.settings.audioBitsPerSecond),null!==this.settings.videoBitsPerSecond&&(n.videoBitsPerSecond=this.settings.videoBitsPerSecond),0!==Object.keys(n).length?this.__recorder=new this.MediaRecorder(this.__stream,n):this.__recorder=new this.MediaRecorder(this.__stream),this.__recorder.start(),this.__recorder.ondataavailable=function(e){return t.__chunks.push(e.data)},this.__recorder.ondataavailable}},{key:"__stopRecording",value:function(){var e=this;return this.__setState("ready"),this.__recorder.onstop=function(){var t,n;return t=new window.Blob(e.__chunks,{type:e.__recorder.mimeType}),n=e.__guessExtensionByMime(e.__recorder.mimeType),t.name="record.".concat(n),e.dialogApi.addFiles("object",[[t,{source:"camera"}]]),e.dialogApi.switchTab("preview"),e.__chunks=[],e.__chunks},this.__recorder.stop()}},{key:"__cancelRecording",value:function(){return this.__setState("ready"),this.__recorder.stop(),this.__chunks=[],this.__chunks}},{key:"__guessExtensionByMime",value:function(e){var t={mp4:"mp4",ogg:"ogg",webm:"webm",quicktime:"mov","x-matroska":"mkv"};if(""===e)return"webm";if(e&&"video"===(e=e.split("/"))[0]){var n=(e=e.slice(1).join("/")).split(";")[0];if(t[n])return t[n]}return"avi"}},{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--camera__button").focus()}}]),t}();w()&&function(e){e.Jcrop=function(n,r){var i,o=e.extend({},e.Jcrop.defaults);function a(e){return Math.round(e)+"px"}function s(e){return o.baseClass+"-"+e}function l(t){var n=e(t).offset();return[n.left,n.top]}function u(e){return[e.pageX-i[0],e.pageY-i[1]]}function c(n){"object"!==t(n)&&(n={}),o=e.extend(o,n),e.each(["onChange","onSelect","onRelease","onDblClick"],(function(e,t){"function"!=typeof o[t]&&(o[t]=function(){})}))}function d(e,t){if(i=l(O),"move"===e)return K.activateHandlers(function(e){var t=e;return Y.watchKeys(),function(e){V.moveOffset([e[0]-t[0],e[1]-t[1]]),t=e,G.update()}}(t),m);var n=V.getFixed(),r=f(e),a=V.getCorner(f(r));V.setPressed(V.getCorner(r)),V.setCurrent(a),K.activateHandlers(function(e,t){return function(n){if(o.aspectRatio)switch(e){case"e":case"w":n[1]=t.y+1;break;case"n":case"s":n[0]=t.x+1}else switch(e){case"e":case"w":n[1]=t.y2;break;case"n":case"s":n[0]=t.x2}V.setCurrent(n),G.update()}}(e,n),m)}function f(e){switch(e){case"n":return"sw";case"s":case"e":return"nw";case"w":return"ne";case"ne":return"sw";case"nw":return"se";case"se":return"nw";case"sw":return"ne"}}function p(e){return function(t){return!(o.disabled||"move"===e&&!o.allowMove||(i=l(O),B=!0,d(e,u(t)),t.stopPropagation(),t.preventDefault(),1))}}function h(e){return{x:e.x*N,y:e.y*F,x2:e.x2*N,y2:e.y2*F,w:e.w*N,h:e.h*F}}function m(e){V.getFixed(),G.enableHandles(),G.done()}function g(){var t=e("<div></div>").addClass(s("tracker"));return t.css({opacity:0,backgroundColor:"white"}),t}"object"!==t(n)&&(n=e(n)[0]),"object"!==t(r)&&(r={}),c(r);var v,y,b,_,w,x={border:"none",visibility:"visible",margin:0,padding:0,position:"absolute",top:0,left:0},k=e(n),E=!0;if("IMG"==n.tagName){if(0!=k[0].width&&0!=k[0].height)k.width(k[0].width),k.height(k[0].height);else{var S=new Image;S.src=k[0].src,k.width(S.width),k.height(S.height)}var O=k.clone().removeAttr("id").css(x).show();O.width(k.width()),O.height(k.height()),k.after(O).hide()}else O=k.css(x).show(),E=!1,null===o.shade&&(o.shade=!0);v=O,y=o.boxWidth,b=o.boxHeight,_=v.width(),w=v.height(),_>y&&y>0&&(_=y,w=y/v.width()*v.height()),w>b&&b>0&&(w=b,_=b/v.height()*v.width()),N=v.width()/_,F=v.height()/w,v.width(_).height(w);var T=O.width(),C=O.height(),A=e("<div />").width(T).height(C).addClass(s("holder")).css({position:"relative",backgroundColor:o.bgColor}).insertAfter(k).append(O);o.addClass&&A.addClass(o.addClass);var P=e("<div />"),R=e("<div />").width("100%").height("100%").css({zIndex:310,position:"absolute",overflow:"hidden"}),M=e("<div />").css({position:"absolute",zIndex:600}).dblclick((function(){var e=V.getFixed();o.onDblClick.call(Z,e)})).insertBefore(O).append(R);E&&(P=e("<img />").attr("src",O.attr("src")).css(x).width(T).height(C),R.append(P));var I,j,D,L,N,F,B,z=o.boundary,U=g().width(T+2*z).height(C+2*z).css({position:"absolute",top:a(-z),left:a(-z),zIndex:290}),q=o.bgColor,H=o.bgOpacity;i=l(O);var W=function(){function e(){var e,t={},n=["touchstart","touchmove","touchend"],r=document.createElement("div");try{for(e=0;e<n.length;e++){var i=n[e],o=(i="on"+i)in r;o||(r.setAttribute(i,"return;"),o="function"==typeof r[i]),t[n[e]]=o}return t.touchstart&&t.touchend&&t.touchmove}catch(e){return!1}}return{createDragger:function(e){return function(t){return t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,!(o.disabled||"move"===e&&!o.allowMove||(B=!0,d(e,u(t)),t.stopPropagation(),t.preventDefault(),1))}},isSupported:e,support:!0===o.touchSupport||!1===o.touchSupport?o.touchSupport:e()}}(),V=function(){var e,t,n=0,r=0,i=0,a=0;function s(){if(!o.aspectRatio)return t=i-n,s=a-r,I&&Math.abs(t)>I&&(i=t>0?n+I:n-I),j&&Math.abs(s)>j&&(a=s>0?r+j:r-j),L/F&&Math.abs(s)<L/F&&(a=s>0?r+L/F:r-L/F),D/N&&Math.abs(t)<D/N&&(i=t>0?n+D/N:n-D/N),n<0&&(i-=n,n-=n),r<0&&(a-=r,r-=r),i<0&&(n-=i,i-=i),a<0&&(r-=a,a-=a),i>T&&(n-=e=i-T,i-=e),a>C&&(r-=e=a-C,a-=e),n>T&&(a-=e=n-C,r-=e),r>C&&(a-=e=r-C,r-=e),c(u(n,r,i,a));var e,t,s,l,d,f,p,h=o.aspectRatio,m=o.minSize[0]/N,g=o.maxSize[0]/N,v=o.maxSize[1]/F,y=i-n,b=a-r,_=Math.abs(y),w=Math.abs(b);return 0===g&&(g=10*T),0===v&&(v=10*C),_/w<h?(d=a,f=w*h,(l=y<0?n-f:f+n)<0?(l=0,p=Math.abs((l-n)/h),d=b<0?r-p:p+r):l>T&&(l=T,p=Math.abs((l-n)/h),d=b<0?r-p:p+r)):(l=i,p=_/h,(d=b<0?r-p:r+p)<0?(d=0,f=Math.abs((d-r)*h),l=y<0?n-f:f+n):d>C&&(d=C,f=Math.abs(d-r)*h,l=y<0?n-f:f+n)),l>n?(l-n<m?l=n+m:l-n>g&&(l=n+g),d=d>r?r+(l-n)/h:r-(l-n)/h):l<n&&(n-l<m?l=n-m:n-l>g&&(l=n-g),d=d>r?r+(n-l)/h:r-(n-l)/h),l<0?(n-=l,l=0):l>T&&(n-=l-T,l=T),d<0?(r-=d,d=0):d>C&&(r-=d-C,d=C),c(u(n,r,l,d))}function l(e){return e[0]<0&&(e[0]=0),e[1]<0&&(e[1]=0),e[0]>T&&(e[0]=T),e[1]>C&&(e[1]=C),[e[0],e[1]]}function u(e,t,n,r){var i=e,o=n,a=t,s=r;return n<e&&(i=n,o=e),r<t&&(a=r,s=t),[i,a,o,s]}function c(e){return{x:e[0],y:e[1],x2:e[2],y2:e[3],w:e[2]-e[0],h:e[3]-e[1]}}return{flipCoords:u,setPressed:function(e){e=l(e),i=n=e[0],a=r=e[1]},setCurrent:function(n){n=l(n),e=n[0]-i,t=n[1]-a,i=n[0],a=n[1]},getOffset:function(){return[e,t]},moveOffset:function(e){var t=e[0],o=e[1];0>n+t&&(t-=t+n),0>r+o&&(o-=o+r),C<a+o&&(o+=C-(a+o)),T<i+t&&(t+=T-(i+t)),n+=t,i+=t,r+=o,a+=o},getCorner:function(e){var t=s();switch(e){case"ne":return[t.x2,t.y];case"nw":return[t.x,t.y];case"se":return[t.x2,t.y2];case"sw":return[t.x,t.y2]}},getFixed:s}}(),$=function(){var t=!1,n=e("<div />").css({position:"absolute",zIndex:240,opacity:0}),r={top:l(),left:l().height(C),right:l().height(C),bottom:l()};function i(){return s(V.getFixed())}function s(e){r.top.css({left:a(e.x),width:a(e.w),height:a(e.y)}),r.bottom.css({top:a(e.y2),left:a(e.x),width:a(e.w),height:a(C-e.y2)}),r.right.css({left:a(e.x2),width:a(T-e.x2)}),r.left.css({width:a(e.x)})}function l(){return e("<div />").css({position:"absolute",backgroundColor:o.shadeColor||o.bgColor}).appendTo(n)}function u(){t||(t=!0,n.insertBefore(O),i(),G.setBgOpacity(1,0,1),P.hide(),c(o.shadeColor||o.bgColor,1),G.isAwake()?f(o.bgOpacity,1):f(1,1))}function c(e,t){X(p(),e,t)}function d(){t&&(n.remove(),P.show(),t=!1,G.isAwake()?G.setBgOpacity(o.bgOpacity,1,1):(G.setBgOpacity(1,1,1),G.disableHandles()),X(A,0,1))}function f(e,r){t&&(o.bgFade&&!r?n.animate({opacity:1-e},{queue:!1,duration:o.fadeTime}):n.css({opacity:1-e}))}function p(){return n.children()}return{update:i,updateRaw:s,getShades:p,setBgColor:c,enable:u,disable:d,resize:function(e,t){r.left.css({height:a(t)}),r.right.css({height:a(t)})},refresh:function(){o.shade?u():d(),G.isAwake()&&f(o.bgOpacity)},opacity:f}}(),G=function(){var t,n={},r={};function i(t){return function(t){var n=e("<div />").mousedown(p(t)).css({cursor:t+"-resize",position:"absolute"}).append("<div/>").addClass("ord-"+t);return W.support&&n.on("touchstart.jcrop",W.createDragger(t)),M.append(n),n}(t).addClass(s("handle"))}function l(){var e=V.getFixed();V.setPressed([e.x,e.y]),V.setCurrent([e.x2,e.y2]),u()}function u(e){if(t)return c(e)}function c(e){var n,r,i=V.getFixed();!function(e,t){M.width(Math.round(e)).height(Math.round(t))}(i.w,i.h),n=i.x,r=i.y,o.shade||P.css({top:a(-r),left:a(-n)}),M.css({top:a(r),left:a(n)}),o.shade&&$.updateRaw(i),t||(M.show(),o.shade?$.opacity(H):d(H,!0),t=!0),e?o.onSelect.call(Z,h(i)):o.onChange.call(Z,h(i))}function d(e,n,r){(t||n)&&(o.bgFade&&!r?O.animate({opacity:e},{queue:!1,duration:o.fadeTime}):O.css("opacity",e))}function f(){if(o.allowResize)return!0}function m(e){e||f()}e.isArray(o.createHandles)&&function(e){var t;for(t=0;t<e.length;t++)r[e[t]]=i(e[t])}(o.createHandles),o.drawBorders&&e.isArray(o.createBorders)&&function(t){var r,i,o,a;for(i=0;i<t.length;i++){switch(t[i]){case"n":r="hline";break;case"s":r="hline bottom";break;case"e":r="vline right";break;case"w":r="vline"}n[t[i]]=(o=r,a=void 0,a=e("<div />").css({position:"absolute"}).addClass(s(o)),M.append(a),a)}}(o.createBorders),e(document).on("touchstart.jcrop-ios",(function(t){e(t.currentTarget).hasClass("jcrop-tracker")&&t.stopPropagation()}));var v=g().mousedown(p("move")).css({cursor:"move",position:"absolute",zIndex:360});return W.support&&v.on("touchstart.jcrop",W.createDragger("move")),R.append(v),{updateVisible:u,update:c,release:function(){M.hide(),o.shade?$.opacity(1):d(1),t=!1,o.onRelease.call(Z)},refresh:l,isAwake:function(){return t},setCursor:function(e){v.css("cursor",e)},enableHandles:f,enableOnly:function(){},disableHandles:function(){},animMode:m,setBgOpacity:d,done:function(){m(!1),l()}}}(),K=function(){var t=function(){},n=function(){},r=o.trackDocument;function i(e){return t(u(e)),!1}function a(r){return r.preventDefault(),r.stopPropagation(),B&&(B=!1,n(u(r)),G.isAwake()&&o.onSelect.call(Z,h(V.getFixed())),U.css({zIndex:290}),e(document).off(".jcrop"),t=function(){},n=function(){}),!1}function s(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,i(e)}function l(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,a(e)}return r||U.mousemove(i).mouseup(a).mouseout(a),O.before(U),{activateHandlers:function(o,u){return B=!0,t=o,n=u,U.css({zIndex:450}),W.support&&e(document).on("touchmove.jcrop",s).on("touchend.jcrop",l),r&&e(document).on("mousemove.jcrop",i).on("mouseup.jcrop",a),!1}}}(),Y=function(){var t=e('<input type="radio" />').css({position:"fixed",left:"-120px",width:"12px"}).addClass("jcrop-keymgr"),n=e("<div />").css({position:"absolute",overflow:"hidden"}).append(t);function r(e,t,n){o.allowMove&&(V.moveOffset([t,n]),G.updateVisible(!0)),e.preventDefault(),e.stopPropagation()}return o.keySupport&&(t.keydown((function(e){if(e.ctrlKey||e.metaKey)return!0;var t=e.shiftKey?10:1;switch(e.keyCode){case 37:r(e,-t,0);break;case 39:r(e,t,0);break;case 38:r(e,0,-t);break;case 40:r(e,0,t);break;case 9:return!0}return!1})).blur((function(e){t.hide()})),t.css({position:"absolute",left:"-20px"}),n.append(t).insertBefore(O)),{watchKeys:function(){o.keySupport&&(t.show(),t.focus())}}}();function Q(e){!function(e){V.setPressed([e[0],e[1]]),V.setCurrent([e[2],e[3]]),G.update()}([e[0]/N,e[1]/F,e[2]/N,e[3]/F]),o.onSelect.call(Z,h(V.getFixed())),G.enableHandles()}function X(t,n,r){var i=n||o.bgColor;o.bgFade&&e.fx.step.hasOwnProperty("backgroundColor")&&o.fadeTime&&!r?t.animate({backgroundColor:i},{queue:!1,duration:o.fadeTime}):t.css("backgroundColor",i)}function J(e){o.allowResize?e?G.enableOnly():G.enableHandles():G.disableHandles(),G.setCursor(o.allowMove?"move":"default"),o.hasOwnProperty("trueSize")&&(N=o.trueSize[0]/T,F=o.trueSize[1]/C),o.hasOwnProperty("setSelect")&&(Q(o.setSelect),G.done(),delete o.setSelect),$.refresh(),o.bgColor!=q&&(X(o.shade?$.getShades():A,o.shade&&o.shadeColor||o.bgColor),q=o.bgColor),H!=o.bgOpacity&&(H=o.bgOpacity,o.shade?$.refresh():G.setBgOpacity(H)),I=o.maxSize[0]||0,j=o.maxSize[1]||0,D=o.minSize[0]||0,L=o.minSize[1]||0,o.hasOwnProperty("outerImage")&&(O.attr("src",o.outerImage),delete o.outerImage),G.refresh()}J(!0);var Z={setSelect:Q,setOptions:function(e){c(e),J()},tellSelect:function(){return h(V.getFixed())},tellScaled:function(){return V.getFixed()},setClass:function(e){A.removeClass().addClass(s("holder")).addClass(e)},disable:function(){o.disabled=!0,G.disableHandles(),G.setCursor("default")},enable:function(){o.disabled=!1,J()},cancel:function(){G.done(),K.activateHandlers(null,null)},release:G.release,destroy:function(){A.remove(),k.show(),k.css("visibility","visible"),e(n).removeData("Jcrop")},focus:Y.watchKeys,getBounds:function(){return[T*N,C*F]},getWidgetSize:function(){return[T,C]},getScaleFactor:function(){return[N,F]},getOptions:function(){return o},ui:{holder:A,selection:M}};return k.data("Jcrop",Z),Z},e.fn.Jcrop=function(t,n){var r;return this.each((function(){if(e(this).data("Jcrop")){if("api"===t)return e(this).data("Jcrop");e(this).data("Jcrop").setOptions(t)}else"IMG"==this.tagName?e.Jcrop.Loader(this,(function(){e(this).css({display:"block",visibility:"hidden"}),r=e.Jcrop(this,t),e.isFunction(n)&&n.call(r)})):(e(this).css({display:"block",visibility:"hidden"}),r=e.Jcrop(this,t),e.isFunction(n)&&n.call(r))})),this},e.Jcrop.Loader=function(t,n,r){var i=e(t),o=i[0];i.on("load.jcloader",(function t(){o.complete?(i.off(".jcloader"),e.isFunction(n)&&n.call(o)):window.setTimeout(t,50)})).on("error.jcloader",(function(t){i.off(".jcloader"),e.isFunction(r)&&r.call(o)})),o.complete&&e.isFunction(n)&&(i.off(".jcloader"),n.call(o))},e.Jcrop.defaults={allowMove:!0,allowResize:!0,trackDocument:!0,baseClass:"jcrop",addClass:null,bgColor:"black",bgOpacity:.6,bgFade:!1,aspectRatio:0,keySupport:!0,createHandles:["n","s","e","w","nw","ne","se","sw"],createBorders:["n","s","e","w"],drawBorders:!0,dragEdges:!0,fixedSupport:!0,touchSupport:null,shade:null,boxWidth:0,boxHeight:0,boundary:2,fadeTime:400,animationDelay:20,swingSpeed:3,maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){},onDblClick:function(){},onRelease:function(){}}}(e);var _n=/-\/crop\/([0-9]+)x([0-9]+)(\/(center|([0-9]+),([0-9]+)))?\//i,wn=function(){function t(r,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n(this,t),this.element=r,this.originalSize=i,this.__api=e.Jcrop(this.element[0],{trueSize:this.originalSize,baseClass:"uploadcare--jcrop",addClass:"uploadcare--crop-widget",createHandles:["nw","ne","se","sw"],bgColor:"transparent",bgOpacity:.8}),this.setCrop(o),this.setSelection()}return o(t,[{key:"setCrop",value:function(e){return this.crop=e,this.__api.setOptions({aspectRatio:e.preferedSize?e.preferedSize[0]/e.preferedSize[1]:0,minSize:e.notLess?Se(e.preferedSize,this.originalSize):[0,0]})}},{key:"setSelection",value:function(e){var t,n,r,i;return e?(t=e.center,r=[e.width,e.height]):(t=!0,r=this.originalSize),this.crop.preferedSize&&(r=Se(this.crop.preferedSize,r,!0)),t?(n=(this.originalSize[0]-r[0])/2,i=(this.originalSize[1]-r[1])/2):(n=e.left||0,i=e.top||0),this.__api.setSelect([n,i,r[0]+n,r[1]+i])}},{key:"__parseModifiers",value:function(e){var t=null!=e?e.match(_n):void 0;if(t)return{width:parseInt(t[1],10),height:parseInt(t[2],10),center:"center"===t[4],left:parseInt(t[5],10)||void 0,top:parseInt(t[6],10)||void 0}}},{key:"setSelectionFromModifiers",value:function(e){return this.setSelection(this.__parseModifiers(e))}},{key:"getSelection",value:function(){var e,t,n;return e=this.__api.tellSelect(),{left:t=Math.round(Math.max(0,e.x)),top:n=Math.round(Math.max(0,e.y)),width:Math.round(Math.min(this.originalSize[0],e.x2))-t,height:Math.round(Math.min(this.originalSize[1],e.y2))-n}}},{key:"applySelectionToFile",value:function(e){var t=this;return e.then((function(e){return Oe(e,t.crop,t.originalSize,t.getSelection())}))}}]),t}(),xn=function(){function t(e,r,i,o,a){var s=this;n(this,t),this.container=e,this.tabButton=r,this.dialogApi=i,this.settings=o,this.name=a,this.__initTabButtonCircle(),this.container.addClass("uploadcare--preview"),this.container.on("click",".uploadcare--preview__back:not(:disabled)",(function(){return s.dialogApi.fileColl.clear()})),this.container.on("click",".uploadcare--preview__done:not(:disabled)",this.dialogApi.resolve)}return o(t,[{key:"__initTabButtonCircle",value:function(){var t,n,r,i,o=this;return r=this.tabButton.find(".uploadcare--panel__icon"),n=e.Deferred(),i=function(){var e,t,r,i,a;for(i=0,e=0,r=(t=o.dialogApi.fileColl.lastProgresses()).length;e<r;e++)i+=((null!=(a=t[e])?a.progress:void 0)||0)/t.length;return n.notify(i)},this.dialogApi.fileColl.onAnyProgress(i),this.dialogApi.fileColl.onAdd.add(i),this.dialogApi.fileColl.onRemove.add(i),i(),t=new on(r).listen(n.promise()),this.dialogApi.progress((function(){var e;return(e=t).update.apply(e,arguments)}))}}]),t}(),kn=function(t){c(i,t);var r=m(i);function i(t,o,a,s,l){var u;return n(this,i),(u=r.apply(this,arguments)).container=t,u.tabButton=o,u.dialogApi=a,u.settings=s,u.name=l,e.each(u.dialogApi.fileColl.get(),(function(e,t){return u.__setFile(t)})),u.dialogApi.fileColl.onAdd.add(u.__setFile.bind(p(u))),u.widget=null,u.__state=null,u}return o(i,[{key:"__setFile",value:function(e){var t,n,r,i=this;return this.file=e,t=function(t){return function(){if(e===i.file){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.apply(null,r)}}},n=ue(this.__tryToLoadImagePreview.bind(this)),r=ue(this.__tryToLoadVideoPreview.bind(this)),this.__setState("unknown",{}),this.file.progress(t((function(t){var o,a,s;if(a=((t=t.incompleteFileInfo).name||"")+Pe(t.size,"",", "),i.container.find(".uploadcare--preview__file-name").text(a),s=t.sourceInfo,o=R,s.file&&o&&s.file instanceof o)return s.file.type&&-1!==s.file.type.search(/^image\//i)?n(e,s.file):s.file.type&&-1!==s.file.type.search(/^video\//i)?r(e,s.file):n(e,s.file).fail((function(){return r(e,s.file)}))}))),this.file.done(t((function(e){var t,n;if("video"!==i.__state)return e.isImage?"image"!==i.__state?(n=e.originalUrl,n+="-/preview/1162x693/-/setfill/ffffff/-/format/jpeg/-/progressive/yes/",i.settings.previewUrlCallback&&(n=i.settings.previewUrlCallback(n,e)),t=e.originalImageInfo,i.__setState("image",{src:n,name:e.name,info:e}),i.initImage([t.width,t.height],e.cdnUrlModifiers)):void 0:i.__setState("regular",{file:e})}))),this.file.fail(t((function(e,t){return i.__setState("error",{error:e,file:t})})))}},{key:"__tryToLoadImagePreview",value:function(t,n){var r,i=this;return r=e.Deferred(),"pending"!==t.state()||!n.size||n.size>=this.settings.multipartMinSize?r.reject().promise():(Je(n,1550,924,"#ffffff",this.settings.imagePreviewMaxSize).done((function(e,n){return Ie(e,"image/jpeg",.95,(function(o){var a;if(r.resolve(),e.width=e.height=1,"pending"===t.state()&&"pending"===i.dialogApi.state()&&i.file===t)return a=J.createObjectURL(o),i.dialogApi.always((function(){return J.revokeObjectURL(a)})),"image"!==i.__state?(i.__setState("image",{src:a,name:""}),i.initImage(n)):void 0}))})).fail(r.reject),r.promise())}},{key:"__tryToLoadVideoPreview",value:function(t,n){var r,i,o=this;return r=e.Deferred(),J&&n.size?(i=J.createObjectURL(n),$e(i).fail((function(){return J.revokeObjectURL(i),r.reject()})).done((function(){if("pending"===t.state()&&"pending"===o.dialogApi.state()&&o.file===t){o.dialogApi.always((function(){return J.revokeObjectURL(i)})),r.resolve(),o.__setState("video");var e=o.container.find(".uploadcare--preview__video");return e.on("loadeddata",(function(){return e.get(0).currentTime=36e4,e.off("loadeddata")})),e.on("ended",(function(){return e.get(0).currentTime=0,e.off("ended")})),e.attr("src",i),e.get(0).load()}J.revokeObjectURL(i)})),r.promise()):r.reject().promise()}},{key:"__setState",value:function(e,t){this.__state=e,(t=t||{}).crop=this.settings.crop,this.container.empty().append(Jt("tab-preview-".concat(e),t)),this.container.removeClass((function(e,t){return t.split(" ").filter((function(e){return!!~e.indexOf("uploadcare--preview_status_")})).join(" ")})),"unknown"===e&&this.settings.crop&&this.container.find(".uploadcare--preview__done").hide(),"error"===e&&this.container.addClass("uploadcare--preview_status_error-"+t.error),this.container.find(".uploadcare--preview__done").focus()}},{key:"initImage",value:function(e,t){var n,r,i,o,a=this;if(r=this.container.find(".uploadcare--preview__image"),n=this.container.find(".uploadcare--preview__done"),i=Ve(r[0]).done((function(){return a.container.addClass("uploadcare--preview_status_loaded")})).fail((function(){return a.file=null,a.__setState("error",{error:"loadImage"})})),o=function(){return a.container.find(".uploadcare--crop-sizes__item").attr("aria-disabled",!1).attr("tabindex",0),n.attr("disabled",!1).attr("aria-disabled",!1),a.widget=new wn(r,e,a.settings.crop[0]),t&&a.widget.setSelectionFromModifiers(t),n.on("click",(function(){var e;return e=a.widget.applySelectionToFile(a.file),a.dialogApi.fileColl.replace(a.file,e),!0}))},this.settings.crop)return this.container.find(".uploadcare--preview__title").text(It.t("dialog.tabs.preview.crop.title")),this.container.find(".uploadcare--preview__content").addClass("uploadcare--preview__content_crop"),n.attr("disabled",!0).attr("aria-disabled",!0),n.text(It.t("dialog.tabs.preview.crop.done")),this.populateCropSizes(),this.container.find(".uploadcare--crop-sizes__item").attr("aria-disabled",!0).attr("tabindex",-1),i.done((function(){return se(o)}))}},{key:"populateCropSizes",value:function(){var t,n,r,i=this;return t=this.container.find(".uploadcare--crop-sizes"),r=t.children(),n="uploadcare--crop-sizes__item_current",e.each(this.settings.crop,(function(o,a){var s,l,u,c,d,f;return(d=a.preferedSize)?(l=le(d[0],d[1]),s="".concat(d[0]/l,":").concat(d[1]/l)):s=It.t("dialog.tabs.preview.crop.free"),c=r.clone().appendTo(t).attr("data-caption",s).on("click",(function(r){"true"!==e(r.currentTarget).attr("aria-disabled")&&!e(r.currentTarget).hasClass(n)&&i.settings.crop.length>1&&i.widget&&(i.widget.setCrop(a),t.find(">*").removeClass(n),c.addClass(n))})),d?(f=Se(d,[30,30],!0),c.children().css({width:Math.max(20,f[0]),height:Math.max(12,f[1])})):(u=e("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-crop-free'/></svg>").attr("role","presentation").attr("class","uploadcare--icon"),c.children().append(u).addClass("uploadcare--crop-sizes__icon_free"))})),r.remove(),t.find(">*").eq(0).addClass(n)}},{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--preview__done").focus()}}]),i}(xn);w()&&function(e){function t(e){this.targets=e,this.last=null,this.update()}t.prototype={update:function(){var t={};this.targets.each((function(n){var r=e(this).offset();r.top in t||(t[r.top]=[]),t[r.top].push([r.left+this.offsetWidth/2,this])})),this.rows=t},find:function(e,t){var n,r,i,o=1/0,a=this.rows;for(r in a)(l=Math.abs(r-t))<o&&(o=l,n=a[r]);o=Math.abs(n[0][0]-e),i=n[0][1];for(var s=1;s<n.length;s++){var l;(l=Math.abs(n[s][0]-e))<o&&(o=l,i=n[s][1])}return i},findNotLast:function(e,t){var n=this.find(e,t);return this.last&&n&&this.last==n?null:this.last=n}};var n="uploadcareMovable",r={uploadcareMovable:function(t){function r(e){if(t.touch){var n,r;if((r=e.originalEvent.touches)&&r.length)n=r[0];else{if(!(r=e.originalEvent.changedTouches)||!r.length)return;n=r[0]}e.pageX=n.pageX,e.pageY=n.pageY,e.which=1}}t=e.extend({distance:4,anyButton:!1,axis:!1,zIndex:1e3,start:e.noop,move:e.noop,finish:e.noop,items:null,keepFake:!1,touch:!0},t);var i="mousedown.{} touchstart.{}".replace(/\{}/g,n);this.on(i,t.items,null,(function(i){if(r(i),t.anyButton||1==i.which){i.preventDefault();var o=!1,a=e(this),s=!1,l=a.position();l.top+=a.offsetParent().scrollTop(),l.left+=a.offsetParent().scrollLeft();var u="mousemove.{} touchmove.{}".replace(/\{}/g,n);e(document).on(u,(function(e){if(r(e),!o&&(Math.abs(e.pageX-i.pageX)>t.distance||Math.abs(e.pageY-i.pageY)>t.distance)&&(o=!0,s=a.clone().css({position:"absolute",zIndex:t.zIndex,width:a.width()}).appendTo(a.offsetParent()),t.start({event:e,dragged:a,fake:s})),o){e.preventDefault();var n="y"==t.axis?0:e.pageX-i.pageX,u="x"==t.axis?0:e.pageY-i.pageY;s.css({left:n+l.left,top:u+l.top}),t.move({event:e,dragged:a,fake:s,dx:n,dy:u})}})),u="mouseup.{} touchend.{} touchcancel.{} touchleave.{}",e(document).on(u.replace(/\{}/g,n),(function(l){if(r(l),e(document).off("mousemove.{} touchmove.{} mouseup.{} touchend.{} touchcancel.{} touchleave.{}".replace(/\{}/g,n)),o){l.preventDefault();var u=l.pageX-i.pageX,c=l.pageY-i.pageY;o=!1,t.finish({event:l,dragged:a,fake:s,dx:u,dy:c}),t.keepFake||s.remove()}}))}}))},uploadcareSortable:function(r){var i,o=e.extend({items:">*"},r),a=(r=e.extend({checkBounds:function(){return!0},start:e.noop,attach:e.noop,move:e.noop,finish:e.noop},r),!1),s=this;return o.start=function(e){r.start(e),i=new t(s.find(o.items).not(e.fake)),a=e.dragged.next()},o.move=function(t){if(t.nearest=null,r.checkBounds(t)){var n=t.fake.offset(),o=i.findNotLast(n.left+t.dragged.width()/2,n.top);t.nearest=e(o),o&&o!=t.dragged[0]&&(t.dragged.nextAll().filter(o).length>0?t.dragged.insertAfter(o):t.dragged.insertBefore(o),r.attach(t),i.last=null,i.update())}else null!==i.last&&(i.last=null,a.length?t.dragged.insertBefore(a):t.dragged.parent().append(t.dragged),r.attach(t),i.update());r.move(t)},o.finish=function(t){var n=t.fake.offset();t.nearest=null,r.checkBounds(t)&&(t.nearest=e(i.find(n.left+t.dragged.width()/2,n.top))),r.finish(t),i=null},this[n](o)}};e.fn.extend(r)}(e);var En=function(t){c(i,t);var r=m(i);function i(){var t;return n(this,i),(t=r.apply(this,arguments)).container.append(Jt("tab-preview-multiple")),t.__fileTpl=e(Jt("tab-preview-multiple-file")),t.fileListEl=t.container.find(".uploadcare--files"),t.doneBtnEl=t.container.find(".uploadcare--preview__done"),e.each(t.dialogApi.fileColl.get(),(function(e,n){return t.__fileAdded(n)})),t.__updateContainerView(),t.dialogApi.fileColl.onAdd.add(t.__fileAdded.bind(p(t)),(function(){return t.__updateContainerView()})),t.dialogApi.fileColl.onRemove.add(t.__fileRemoved.bind(p(t)),(function(){return t.__updateContainerView()})),t.dialogApi.fileColl.onReplace.add(t.__fileReplaced.bind(p(t)),(function(){return t.__updateContainerView()})),t.dialogApi.fileColl.onAnyProgress(t.__fileProgress.bind(p(t))),t.dialogApi.fileColl.onAnyDone(t.__fileDone.bind(p(t))),t.dialogApi.fileColl.onAnyFail(t.__fileFailed.bind(p(t))),t.fileListEl.addClass(t.settings.imagesOnly?"uploadcare--files_type_tiles":"uploadcare--files_type_table"),t.__setupSorting(),t}return o(i,[{key:"__setupSorting",value:function(){var e=this;return this.fileListEl.uploadcareSortable({touch:!1,axis:this.settings.imagesOnly?"xy":"y",start:function(e){return e.dragged.css("visibility","hidden")},finish:function(t){var n,r;return t.dragged.css("visibility","visible"),n=e.container.find(".uploadcare--file"),r=function(t){return n.index(e.__fileToEl(t))},e.dialogApi.fileColl.sort((function(e,t){return r(e)-r(t)}))}})}},{key:"__updateContainerView",value:function(){var e,t,n,r,i,o,a;if(o=(t=this.dialogApi.fileColl.length())>this.settings.multipleMax,i=t<this.settings.multipleMin,n=o||i,this.doneBtnEl.attr("disabled",n).attr("aria-disabled",n),r=It.t("dialog.tabs.preview.multiple.question").replace("%files%",It.t("file",t)),this.container.find(".uploadcare--preview__title").text(r),(e=this.container.find(".uploadcare--preview__message")).empty(),n)return a=o?It.t("dialog.tabs.preview.multiple.tooManyFiles").replace("%max%",this.settings.multipleMax):t&&i?It.t("dialog.tabs.preview.multiple.tooFewFiles").replace("%min%",this.settings.multipleMin).replace("%files%",It.t("file",t)):void 0,e.addClass("uploadcare--error").text(a)}},{key:"__updateFileInfo",value:function(e,t){var n;return n=t.name||It.t("dialog.tabs.preview.unknownName"),e.find(".uploadcare--file__name").text(n),e.find(".uploadcare--file__description").attr("aria-label",It.t("dialog.tabs.preview.multiple.file.preview").replace("%file%",n)),e.find(".uploadcare--file__remove").attr("title",It.t("dialog.tabs.preview.multiple.file.remove").replace("%file%",n)).attr("aria-label",It.t("dialog.tabs.preview.multiple.file.remove").replace("%file%",n)),e.find(".uploadcare--file__size").text(Pe(t.size,"–"))}},{key:"__fileProgress",value:function(e,t){var n;return(n=this.__fileToEl(e)).find(".uploadcare--progressbar__value").css("width",Math.round(100*t.progress)+"%"),this.__updateFileInfo(n,t.incompleteFileInfo)}},{key:"__fileDone",value:function(t,n){var r,i,o,a,s=this;return(i=this.__fileToEl(t).removeClass("uploadcare--file_status_uploading").addClass("uploadcare--file_status_uploaded")).find(".uploadcare--progressbar__value").css("width","100%"),this.__updateFileInfo(i,n),n.isImage?(r="".concat(n.cdnUrl,"-/quality/lightest/-/preview/108x108/"),this.settings.previewUrlCallback&&(r=this.settings.previewUrlCallback(r,n)),a=i.find(".uploadcare--file__name").text(),o=e("<img>").attr("src",r).attr("alt",a).addClass("uploadcare--file__icon")):o=e("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-file'/></svg>").attr("role","presentation").attr("class","uploadcare--icon uploadcare--file__icon"),i.find(".uploadcare--file__preview").html(o),i.find(".uploadcare--file__description").on("click",(function(){return Rn(t,s.settings).done((function(e){return s.dialogApi.fileColl.replace(t,e)}))}))}},{key:"__fileFailed",value:function(t,n,r){var i,o;return(i=this.__fileToEl(t).removeClass("uploadcare--file_status_uploading").addClass("uploadcare--file_status_error")).find(".uploadcare--file__error").text(It.t("errors.".concat(n))),o=e("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-error'/></svg>").attr("role","presentation").attr("class","uploadcare--icon uploadcare--file__icon"),i.find(".uploadcare--file__preview").html(o)}},{key:"__fileAdded",value:function(e){return this.__createFileEl(e).appendTo(this.fileListEl)}},{key:"__fileRemoved",value:function(t){return this.__fileToEl(t).remove(),e(t).removeData()}},{key:"__fileReplaced",value:function(e,t){return this.__createFileEl(t).insertAfter(this.__fileToEl(e)),this.__fileRemoved(e)}},{key:"__fileToEl",value:function(t){return e(t).data("dpm-el")||e()}},{key:"__createFileEl",value:function(t){var n,r=this;return n=this.__fileTpl.clone().on("click",".uploadcare--file__remove",(function(){return r.dialogApi.fileColl.remove(t)})),e(t).data("dpm-el",n),n}},{key:"displayed",value:function(){this.container.find(".uploadcare--preview__done").focus()}}]),i}(xn);w()&&e(window).on("keydown",(function(e){if(Cn()&&(27===e.which&&(e.stopImmediatePropagation(),null!=Sn&&Sn.reject()),9===e.which))return function(e){return!e.shiftKey&&Tn.last().is(e.target)?(e.preventDefault(),Tn.first().focus()):e.shiftKey&&Tn.first().is(e.target)?(e.preventDefault(),Tn.last().focus()):void 0}(e)}));var Sn=null,On=null,Tn=null,Cn=function(){return null!==Sn},An=function(){Sn&&(Sn.reject(),Sn=null)},Pn=function(t,n,r){var i,o,a;return An(),On=document.activeElement,o=e(Jt("dialog")).appendTo("body"),a=Mn(o.find(".uploadcare--dialog__placeholder"),t,n,r,{inModal:!0}),o.find(".uploadcare--panel").addClass("uploadcare--dialog__panel"),o.addClass("uploadcare--dialog_status_active"),a.dialogElement=o,(Tn=o.find("select, input, textarea, button, a[href]")).first().focus(),i=function(e,t){var n,r;return r=e.scrollTop(),n=e.scrollLeft(),t&&e.scrollTop(0).scrollLeft(0),function(){return e.scrollTop(r).scrollLeft(n)}}(e(window),"absolute"===o.css("position")),e("html, body").addClass("uploadcare--page"),o.find(".uploadcare--dialog__close").on("click",a.reject),o.on("dblclick",(function(t){var n;if(e.contains(document.documentElement,t.target)&&(n=".uploadcare--dialog__panel, .uploadcare--dialog__powered-by",!e(t.target).is(n)&&!e(t.target).parents(n).length))return a.reject()})),Sn=a.always((function(){return e("html, body").removeClass("uploadcare--page"),Sn=null,o.remove(),i(),On.focus()}))},Rn=function(t,n){var r,i;return i=Sn,Sn=null,n=e.extend({},n,{multiple:!1,tabs:""}),r=Pn(t,"preview",n),null!=i&&i.dialogElement.addClass("uploadcare--dialog_status_inactive"),r.always((function(){if(Sn=i,null!=i)return e("html, body").addClass("uploadcare--page"),i.dialogElement.removeClass("uploadcare--dialog_status_inactive")})),r.onTabVisibility((function(e,t){if("preview"===e&&!t)return r.reject()})),r},Mn=function(t,n,r,i){var o,a,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{inModal:!1};return e.isPlainObject(r)&&(i=r,r=null),n?Et(n)?n=n.files():e.isArray(n)||(n=[n]):n=[],i=Ue(i),a=new Dn(i,t,n,r,s).publicPromise(),de(a,o=function(e){return i.multiple?Bt(e,i):e[0]},o).promise(a)},In={},jn=function(e,t){return In[e]=t,In[e]};jn("file",gn),jn("url",vn),jn("camera",bn),jn("facebook",Vt),jn("dropbox",Vt),jn("gdrive",Vt),jn("gphotos",Vt),jn("instagram",Vt),jn("flickr",Vt),jn("vk",Vt),jn("evernote",Vt),jn("box",Vt),jn("onedrive",Vt),jn("huddle",Vt),jn("empty-pubkey",(function(e,t,n,r){return e.append('<div class="uploadcare--tab__content">\n<div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">Hello!</div>\n<div class="uploadcare--text">Your <a class="uploadcare--link" href="https://uploadcare.com/dashboard/">public key</a> is not set.</div>\n<div class="uploadcare--text">Add this to the &lt;head&gt; tag to start uploading files:</div>\n<div class="uploadcare--text uploadcare--text_pre">&lt;script&gt;\nUPLOADCARE_PUBLIC_KEY = \'your_public_key\';\n&lt;/script&gt;</div>\n</div>')})),jn("preview",(function(e,t,n,r,i){if(r.previewStep||0!==n.fileColl.length())return new(r.multiple?En:kn)(e,t,n,r,i)}));var Dn=function(){function t(r,i,o,a,s){var l,u=this;n(this,t),this.inModal=s.inModal||!1,this.addFiles=this.addFiles.bind(this),this.__resolve=this.__resolve.bind(this),this.__reject=this.__reject.bind(this),this.__updateFooter=this.__updateFooter.bind(this),this.__closePanel=this.__closePanel.bind(this),this.switchTab=this.switchTab.bind(this),this.showTab=this.showTab.bind(this),this.hideTab=this.hideTab.bind(this),this.isTabVisible=this.isTabVisible.bind(this),this.openMenu=this.openMenu.bind(this),this.settings=r,this.dfd=e.Deferred(),this.dfd.always(this.__closePanel),l=".uploadcare--panel",this.content=e(Jt("dialog__panel")),this.panel=this.content.find(l).add(this.content.filter(l)),this.placeholder=e(i),this.placeholder.replaceWith(this.content),this.panel.append(e(Jt("icons"))),this.settings.multiple&&this.panel.addClass("uploadcare--panel_multiple"),this.panel.find(".uploadcare--menu__toggle").on("click",(function(){return u.panel.find(".uploadcare--menu").toggleClass("uploadcare--menu_opened")})),this.files=new Pt(o),this.files.onRemove.add((function(){if(0===u.files.length())return u.hideTab("preview")})),this.__autoCrop(this.files),this.tabs={},this.__prepareFooter(),this.onTabVisibility=e.Callbacks().add((function(e,t){return u.panel.find(".uploadcare--menu__item_tab_".concat(e)).toggleClass("uploadcare--menu__item_hidden",!t)})),this.settings.publicKey?this.__prepareTabs(a):this.__welcome()}return o(t,[{key:"takeFocus",value:function(){return this.inModal}},{key:"publicPromise",value:function(){return this.promise||(this.promise=this.dfd.promise({reject:this.__reject,resolve:this.__resolve,fileColl:this.files,addFiles:this.addFiles,switchTab:this.switchTab,hideTab:this.hideTab,showTab:this.showTab,isTabVisible:this.isTabVisible,openMenu:this.openMenu,takeFocus:this.takeFocus.bind(this),onTabVisibility:he(this.onTabVisibility)})),this.promise}},{key:"addFiles",value:function(e,t){var n,r,i;for(t&&(e=wt(e,t,this.settings)),this.settings.multiple||(this.files.clear(),e=[e[0]]),r=0,i=e.length;r<i;r++)n=e[r],this.settings.multipleMaxStrict&&this.files.length()>=this.settings.multipleMax?n.cancel():this.files.add(n);return this.settings.previewStep?(this.showTab("preview"),this.settings.multiple?void 0:this.switchTab("preview")):this.__resolve()}},{key:"__autoCrop",value:function(e){var t,n,r,i=this;if(this.settings.crop&&this.settings.multiple){for(t=0,n=(r=this.settings.crop).length;t<n;t++)if(!r[t].preferedSize)return;return e.autoThen((function(e){var t,n;return!e.isImage||e.cdnUrlModifiers||e.crop?e:(t=e.originalImageInfo,n=Se(i.settings.crop[0].preferedSize,[t.width,t.height],!0),Oe(e,i.settings.crop[0],[t.width,t.height],{width:n[0],height:n[1],left:Math.round((t.width-n[0])/2),top:Math.round((t.height-n[1])/2)}))}))}}},{key:"__resolve",value:function(){return this.dfd.resolve(this.files.get())}},{key:"__reject",value:function(){return this.dfd.reject(this.files.get())}},{key:"__prepareTabs",value:function(e){var t,n,r,i;for(this.addTab("preview"),t=0,n=(r=this.settings.tabs).length;t<n;t++)i=r[t],this.addTab(i);if(this.files.length()?(this.showTab("preview"),this.switchTab("preview")):(this.hideTab("preview"),this.switchTab(e||this.__firstVisibleTab())),0===this.settings.tabs.length)return this.panel.addClass("uploadcare--panel_menu-hidden"),this.panel.find(".uploadcare--panel__menu").addClass("uploadcare--panel__menu_hidden")}},{key:"__prepareFooter",value:function(){var e=this;return this.footer=this.panel.find(".uploadcare--panel__footer"),this.footer.on("click",".uploadcare--panel__show-files:not(:disabled)",(function(){return e.switchTab("preview")})),this.footer.on("click",".uploadcare--panel__done:not(:disabled)",this.__resolve),this.__updateFooter(),this.files.onAdd.add(this.__updateFooter),this.files.onRemove.add(this.__updateFooter)}},{key:"__updateFooter",value:function(){var e,t,n,r=this.files.length();return n=r>this.settings.multipleMax,t=r<this.settings.multipleMin,this.footer.find(".uploadcare--panel__done").attr("disabled",n||t).attr("aria-disabled",n||t),this.footer.find(".uploadcare--panel__show-files").attr("disabled",0===r).attr("aria-disabled",0===r),e=n?It.t("dialog.tabs.preview.multiple.tooManyFiles").replace("%max%",this.settings.multipleMax):r&&t?It.t("dialog.tabs.preview.multiple.tooFewFiles").replace("%min%",this.settings.multipleMin):It.t("dialog.tabs.preview.multiple.title"),this.footer.find(".uploadcare--panel__message").toggleClass("uploadcare--panel__message_hidden",0===r).toggleClass("uploadcare--error",n||t).text(e.replace("%files%",It.t("file",r))),this.footer.find(".uploadcare--panel__file-counter").toggleClass("uploadcare--error",n||t).text(r?"(".concat(r,")"):"")}},{key:"__closePanel",value:function(){return this.panel.replaceWith(this.placeholder),this.content.remove()}},{key:"addTab",value:function(t){var n,r,i,o,a=this;if(!(t in this.tabs)){if(!(n=In[t]))throw new Error("No such tab: ".concat(t));return o=e("<div>").addClass("uploadcare--tab").addClass("uploadcare--tab_name_".concat(t)).insertBefore(this.footer),i="preview"===t?e('<div class="uploadcare--menu__icon uploadcare--panel__icon" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">'):e("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-".concat(t,"'/></svg>")).attr("role","presentation").attr("class","uploadcare--icon uploadcare--menu__icon"),r=e("<div>",{role:"button",tabindex:"0"}).addClass("uploadcare--menu__item").addClass("uploadcare--menu__item_tab_".concat(t)).attr("title",It.t("dialog.tabs.names.".concat(t))).append(i).appendTo(this.panel.find(".uploadcare--menu__items")).on("click",(function(){return t===a.currentTab?a.panel.find(".uploadcare--panel__menu").removeClass("uploadcare--menu_opened"):a.switchTab(t)})),this.tabs[t]=new n(o,r,this.publicPromise(),this.settings,t),this.tabs[t]}}},{key:"switchTab",value:function(e){var t;if(e&&this.currentTab!==e)return this.currentTab=e,this.panel.find(".uploadcare--panel__menu").removeClass("uploadcare--menu_opened").attr("data-current",e),this.panel.find(".uploadcare--menu__item").removeClass("uploadcare--menu__item_current").filter(".uploadcare--menu__item_tab_".concat(e)).addClass("uploadcare--menu__item_current"),t="uploadcare--tab",this.panel.find(".".concat(t)).removeClass("".concat(t,"_current")).filter(".".concat(t,"_name_").concat(e)).addClass("".concat(t,"_current")),this.tabs[e].displayed&&this.tabs[e].displayed(),this.dfd.notify(e)}},{key:"showTab",value:function(e){return this.onTabVisibility.fire(e,!0)}},{key:"hideTab",value:function(e){if(this.onTabVisibility.fire(e,!1),this.currentTab===e)return this.switchTab(this.__firstVisibleTab())}},{key:"isTabVisible",value:function(e){return!this.panel.find(".uploadcare--menu__item_tab_".concat(e)).is(".uploadcare--menu__item_hidden")}},{key:"openMenu",value:function(){return this.panel.find(".uploadcare--panel__menu").addClass("uploadcare--menu_opened")}},{key:"__firstVisibleTab",value:function(){var e,t,n,r;for(e=0,t=(n=this.settings.tabs).length;e<t;e++)if(r=n[e],this.isTabVisible(r))return r}},{key:"__welcome",value:function(){var e,t,n,r;for(this.addTab("empty-pubkey"),this.switchTab("empty-pubkey"),e=0,t=(n=this.settings.tabs).length;e<t;e++)r=n[e],this.__addFakeTab(r);return null}},{key:"__addFakeTab",value:function(t){var n;return n=e("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-".concat(t,"'/></svg>")).attr("role","presentation").attr("class","uploadcare--icon uploadcare--menu__icon"),"empty-pubkey"===t&&n.addClass("uploadcare--panel__icon"),e("<div>").addClass("uploadcare--menu__item").addClass("uploadcare--menu__item_tab_".concat(t)).attr("aria-disabled",!0).attr("title",It.t("dialog.tabs.names.".concat(t))).append(n).appendTo(this.panel.find(".uploadcare--menu__items"))}}]),t}(),Ln=function(){function t(r,i){var o=this;n(this,t),this.element=r,this.settings=i,this.validators=this.settings.validators=[],this.currentObject=null,this.__onDialogOpen=e.Callbacks(),this.__onUploadComplete=e.Callbacks(),this.__onChange=e.Callbacks().add((function(e){return null!=e?e.promise().done((function(e){return o.__onUploadComplete.fire(e)})):void 0})),this.__setupWidget(),this.element.on("change.uploadcare",this.reloadInfo.bind(this)),this.__hasValue=!1,se((function(){if(!o.__hasValue)return o.reloadInfo()}))}return o(t,[{key:"__setupWidget",value:function(){var e,t=this;return this.template=new mn(this.settings,this.element),(e=["buttons.choose"]).push(this.settings.imagesOnly?"images":"files"),e.push(this.settings.multiple?"other":"one"),this.template.addButton("open",It.t(e.join("."))).toggleClass("needsclick",this.settings.systemDialog).on("click",(function(){return t.openDialog()})),this.template.addButton("cancel",It.t("buttons.cancel")).on("click",(function(){return t.__setObject(null)})),this.template.addButton("remove",It.t("buttons.remove")).on("click",(function(){return t.__setObject(null)})),this.template.content.on("click",".uploadcare--widget__file-name",(function(){return t.openDialog()})),dn(this.template.content,this.__handleDirectSelection.bind(this)),this.template.reset()}},{key:"__infoToValue",value:function(e){return e.cdnUrlModifiers||this.settings.pathValue?e.cdnUrl:e.uuid}},{key:"__reset",value:function(){var e;return e=this.currentObject,this.currentObject=null,null!=e&&"function"==typeof e.cancel&&e.cancel(),this.template.reset()}},{key:"__setObject",value:function(e){if(e!==this.currentObject)return this.__reset(),e?(this.currentObject=e,this.__watchCurrentObject()):this.element.val(""),this.__onChange.fire(this.currentObject)}},{key:"__watchCurrentObject",value:function(){var e,t=this;if(e=this.__currentFile())return this.template.listen(e),e.done((function(n){if(e===t.__currentFile())return t.__onUploadingDone(n)})).fail((function(n){if(e===t.__currentFile())return t.__onUploadingFailed(n)}))}},{key:"__onUploadingDone",value:function(e){return this.element.val(this.__infoToValue(e)),this.template.setFileInfo(e),this.template.loaded()}},{key:"__onUploadingFailed",value:function(e){return this.template.reset(),this.template.error(e)}},{key:"__setExternalValue",value:function(e){return this.__setObject(kt(e,this.settings))}},{key:"value",value:function(e){return void 0!==e?(this.__hasValue=!0,this.__setExternalValue(e),this):this.currentObject}},{key:"reloadInfo",value:function(){return this.value(this.element.val())}},{key:"openDialog",value:function(e){var t=this;return this.settings.systemDialog?Ce(this.template.content,this.settings,(function(e){return t.__handleDirectSelection("object",e.files)})):this.__openDialog(e)}},{key:"__openDialog",value:function(e){var t;return t=Pn(this.currentObject,e,this.settings),this.__onDialogOpen.fire(t),t.done(this.__setObject.bind(this))}},{key:"api",value:function(){return this.__api||(this.__api=fe(this,["openDialog","reloadInfo","value","validators"]),this.__api.onChange=he(this.__onChange),this.__api.onUploadComplete=he(this.__onUploadComplete),this.__api.onDialogOpen=he(this.__onDialogOpen),this.__api.inputElement=this.element.get(0)),this.__api}}]),t}(),Nn=function(e){c(r,e);var t=m(r);function r(){return n(this,r),t.apply(this,arguments)}return o(r,[{key:"__currentFile",value:function(){return this.currentObject}},{key:"__handleDirectSelection",value:function(e,t){var n=_t(e,t[0],this.settings);return this.settings.systemDialog||!this.settings.previewStep?this.__setObject(n):this.__openDialog("preview").addFiles([n])}}]),r}(Ln);Nn._name="SingleWidget";var Fn=function(e){c(r,e);var t=m(r);function r(){return n(this,r),t.apply(this,arguments)}return o(r,[{key:"__currentFile",value:function(){var e;return null!=(e=this.currentObject)?e.promise():void 0}},{key:"__setObject",value:function(e){return Ot(this.currentObject,e)?e?void 0:(this.__reset(),this.element.val("")):g(d(r.prototype),"__setObject",this).call(this,e)}},{key:"__setExternalValue",value:function(e){var t,n=this;return this.__lastGroupPr=t=St(e,this.settings),e&&(this.template.setStatus("started"),this.template.statusText.text(It.t("loadingInfo"))),t.done((function(e){if(n.__lastGroupPr===t)return n.__setObject(e)})).fail((function(){if(n.__lastGroupPr===t)return n.__onUploadingFailed("createGroup")}))}},{key:"__handleDirectSelection",value:function(e,t){var n=wt(e,t,this.settings);return this.settings.systemDialog?this.__setObject(Bt(n,this.settings)):this.__openDialog("preview").addFiles(n)}}]),r}(Ln);Fn._name="MultipleWidget";var Bn="uploadcareWidget",zn='[role~="uploadcare-uploader"]',Un=function(){var t,n,r,i,o,a,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":root";for(o=[],n=0,r=(i=e(s)).length;n<r;n++)t=i[n],a=qn(t.querySelectorAll(zn)),o=o.concat(a);return o},qn=function(t){var n,r,i,o,a;for(i=[],n=0,r=t.length;n<r;n++)o=t[n],(a=e(o).data(Bn))&&a.inputElement===o||i.push($n(o));return i},Hn=function(e){return $n(e,Nn)},Wn=function(e){return $n(e,Fn)},Vn=function(e){return $n(e)},$n=function(t,n){var r=e(t);if(0===r.length)throw new Error("No DOM elements found matching selector");r.length>1&&ne("There are multiple DOM elements matching selector"),t=r.eq(0);var i=Ue(t.data()),o=i.multiple?Fn:Nn;if(n&&o!==n)throw new Error("This element should be processed using ".concat(o._name));var a=t.data(Bn);if(!a||a.inputElement!==t[0]){Gn(t);var s=new o(t,i);a=s.api(),t.data(Bn,a),s.template.content.data(Bn,a)}return a},Gn=function(t){return t.off(".uploadcare").each((function(){var t,n;if((t=(n=e(this).next(".uploadcare--widget")).data(Bn))&&t.inputElement===this)return n.remove()}))},Kn=ue((function(e,t){if(e=ze(e,t),!t)return e.live&&setInterval(Un,100),Un()}));w()&&e((function(){window.UPLOADCARE_MANUAL_START||Kn()}));var Yn=u(u({},$t),{},{templates:{JST:Xt,tpl:Jt},crop:{CropWidget:wn},dragdrop:{support:un,uploadDrop:cn,watchDragging:fn,receiveDrop:dn},ui:{progress:{Circle:on,BaseRenderer:an,TextRenderer:sn,CanvasRenderer:ln}},widget:{tabs:{FileTab:gn,UrlTab:vn,CameraTab:bn,RemoteTab:Vt,BasePreviewTab:xn,PreviewTab:kn,PreviewTabMultiple:En},Template:mn,BaseWidget:Ln,Widget:Nn,MultipleWidget:Fn},isDialogOpened:Cn,closeDialog:An,openDialog:Pn,openPreviewDialog:Rn,openPanel:Mn,registerTab:jn,initialize:Un,SingleWidget:Hn,MultipleWidget:Wn,Widget:Vn,start:Kn}),Qn=Gt(Yn),Xn=u(u({},Kt),{},{plugin:Qn,start:Kn,initialize:Un,openDialog:Pn,closeDialog:An,openPanel:Mn,registerTab:jn,Circle:on,SingleWidget:Hn,MultipleWidget:Wn,Widget:Vn,tabsCss:Wt,dragdrop:{receiveDrop:dn,support:un,uploadDrop:cn}}),Jn=Gt(Yn);return u(u({},Xn),{},{plugin:Jn,locales:Object.keys(It.translations)})}(n(1673))},function(e,t,n){"use strict";n.r(t),n.d(t,"VectorSourceEvent",(function(){return C}));var r=n(6),i=n(74),o=n(64),a=n(113),s=n(26),l=n(27),u=n(9),c=n(50),d=n(14),f=n(3),p=n(31),h=n(149);function m(e,t){return function(e,t,n,r){return function(i,o,a){var s=new XMLHttpRequest;s.open("GET","function"==typeof e?e(i,o,a):e,!0),t.getType()==h.a.ARRAY_BUFFER&&(s.responseType="arraybuffer"),s.onload=function(e){if(!s.status||s.status>=200&&s.status<300){var i,o=t.getType();o==h.a.JSON||o==h.a.TEXT?i=s.responseText:o==h.a.XML?(i=s.responseXML)||(i=(new DOMParser).parseFromString(s.responseText,"application/xml")):o==h.a.ARRAY_BUFFER&&(i=s.response),i?n.call(this,t.readFeatures(i,{featureProjection:a}),t.readProjection(i),t.getLastExtent()):r.call(this)}else r.call(this)}.bind(this),s.onerror=function(){r.call(this)}.bind(this),s.send()}}(e,t,(function(e,t){"function"==typeof this.addFeatures&&this.addFeatures(e)}),p.c)}function g(e,t){return[[-1/0,-1/0,1/0,1/0]]}var v=n(22),y=n(305),b=n(95),_="addfeature",w="changefeature",x="clear",k="removefeature",E=n(203),S=n.n(E),O=function(e){this.rbush_=S()(e,void 0),this.items_={}};O.prototype.insert=function(e,t){var n={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3],value:t};this.rbush_.insert(n),this.items_[Object(r.c)(t)]=n},O.prototype.load=function(e,t){for(var n=new Array(t.length),i=0,o=t.length;i<o;i++){var a=e[i],s=t[i],l={minX:a[0],minY:a[1],maxX:a[2],maxY:a[3],value:s};n[i]=l,this.items_[Object(r.c)(s)]=l}this.rbush_.load(n)},O.prototype.remove=function(e){var t=Object(r.c)(e),n=this.items_[t];return delete this.items_[t],null!==this.rbush_.remove(n)},O.prototype.update=function(e,t){var n=this.items_[Object(r.c)(t)],i=[n.minX,n.minY,n.maxX,n.maxY];Object(f.p)(i,e)||(this.remove(t),this.insert(e,t))},O.prototype.getAll=function(){return this.rbush_.all().map((function(e){return e.value}))},O.prototype.getInExtent=function(e){var t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return this.rbush_.search(t).map((function(e){return e.value}))},O.prototype.forEach=function(e,t){return this.forEach_(this.getAll(),e,t)},O.prototype.forEachInExtent=function(e,t,n){return this.forEach_(this.getInExtent(e),t,n)},O.prototype.forEach_=function(e,t,n){for(var r,i=0,o=e.length;i<o;i++)if(r=t.call(n,e[i]))return r;return r},O.prototype.isEmpty=function(){return Object(v.d)(this.items_)},O.prototype.clear=function(){this.rbush_.clear(),this.items_={}},O.prototype.getExtent=function(e){var t=this.rbush_.toJSON();return Object(f.k)(t.minX,t.minY,t.maxX,t.maxY,e)},O.prototype.concat=function(e){for(var t in this.rbush_.load(e.rbush_.all()),e.items_)this.items_[t]=e.items_[t]};var T=O,C=function(e){function t(t,n){e.call(this,t),this.feature=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(c.a),A=function(e){function t(t){var n=t||{};e.call(this,{attributions:n.attributions,projection:void 0,state:b.a.READY,wrapX:void 0===n.wrapX||n.wrapX}),this.loader_=p.c,this.format_=n.format,this.overlaps_=null==n.overlaps||n.overlaps,this.url_=n.url,void 0!==n.loader?this.loader_=n.loader:void 0!==this.url_&&(Object(l.a)(this.format_,7),this.loader_=m(this.url_,this.format_)),this.strategy_=void 0!==n.strategy?n.strategy:g;var r,o,a=void 0===n.useSpatialIndex||n.useSpatialIndex;this.featuresRtree_=a?new T:null,this.loadedExtentsRtree_=new T,this.nullGeometryFeatures_={},this.idIndex_={},this.undefIdIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(n.features)?o=n.features:n.features&&(o=(r=n.features).getArray()),a||void 0!==r||(r=new i.a(o)),void 0!==o&&this.addFeaturesInternal(o),void 0!==r&&this.bindFeaturesCollection_(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.addFeature=function(e){this.addFeatureInternal(e),this.changed()},t.prototype.addFeatureInternal=function(e){var t=Object(r.c)(e);if(this.addToIndex_(t,e)){this.setupChangeEvents_(t,e);var n=e.getGeometry();if(n){var i=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(i,e)}else this.nullGeometryFeatures_[t]=e;this.dispatchEvent(new C(_,e))}},t.prototype.setupChangeEvents_=function(e,t){this.featureChangeKeys_[e]=[Object(u.a)(t,d.a.CHANGE,this.handleFeatureChange_,this),Object(u.a)(t,a.a.PROPERTYCHANGE,this.handleFeatureChange_,this)]},t.prototype.addToIndex_=function(e,t){var n=!0,r=t.getId();return void 0!==r?r.toString()in this.idIndex_?n=!1:this.idIndex_[r.toString()]=t:(Object(l.a)(!(e in this.undefIdIndex_),30),this.undefIdIndex_[e]=t),n},t.prototype.addFeatures=function(e){this.addFeaturesInternal(e),this.changed()},t.prototype.addFeaturesInternal=function(e){for(var t=[],n=[],i=[],o=0,a=e.length;o<a;o++){var s=e[o],l=Object(r.c)(s);this.addToIndex_(l,s)&&n.push(s)}for(var u=0,c=n.length;u<c;u++){var d=n[u],f=Object(r.c)(d);this.setupChangeEvents_(f,d);var p=d.getGeometry();if(p){var h=p.getExtent();t.push(h),i.push(d)}else this.nullGeometryFeatures_[f]=d}this.featuresRtree_&&this.featuresRtree_.load(t,i);for(var m=0,g=n.length;m<g;m++)this.dispatchEvent(new C(_,n[m]))},t.prototype.bindFeaturesCollection_=function(e){var t=!1;Object(u.a)(this,_,(function(n){t||(t=!0,e.push(n.feature),t=!1)})),Object(u.a)(this,k,(function(n){t||(t=!0,e.remove(n.feature),t=!1)})),Object(u.a)(e,o.a.ADD,(function(e){t||(t=!0,this.addFeature(e.element),t=!1)}),this),Object(u.a)(e,o.a.REMOVE,(function(e){t||(t=!0,this.removeFeature(e.element),t=!1)}),this),this.featuresCollection_=e},t.prototype.clear=function(e){if(e){for(var t in this.featureChangeKeys_){this.featureChangeKeys_[t].forEach(u.e)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.undefIdIndex_={})}else if(this.featuresRtree_)for(var n in this.featuresRtree_.forEach(this.removeFeatureInternal,this),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[n]);this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.loadedExtentsRtree_.clear(),this.nullGeometryFeatures_={};var r=new C(x);this.dispatchEvent(r),this.changed()},t.prototype.forEachFeature=function(e){if(this.featuresRtree_)return this.featuresRtree_.forEach(e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},t.prototype.forEachFeatureAtCoordinateDirect=function(e,t){var n=[e[0],e[1],e[0],e[1]];return this.forEachFeatureInExtent(n,(function(n){return n.getGeometry().intersectsCoordinate(e)?t(n):void 0}))},t.prototype.forEachFeatureInExtent=function(e,t){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(e,t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},t.prototype.forEachFeatureIntersectingExtent=function(e,t){return this.forEachFeatureInExtent(e,(function(n){if(n.getGeometry().intersectsExtent(e)){var r=t(n);if(r)return r}}))},t.prototype.getFeaturesCollection=function(){return this.featuresCollection_},t.prototype.getFeatures=function(){var e;return this.featuresCollection_?e=this.featuresCollection_.getArray():this.featuresRtree_&&(e=this.featuresRtree_.getAll(),Object(v.d)(this.nullGeometryFeatures_)||Object(s.c)(e,Object(v.c)(this.nullGeometryFeatures_))),e},t.prototype.getFeaturesAtCoordinate=function(e){var t=[];return this.forEachFeatureAtCoordinateDirect(e,(function(e){t.push(e)})),t},t.prototype.getFeaturesInExtent=function(e){return this.featuresRtree_.getInExtent(e)},t.prototype.getClosestFeatureToCoordinate=function(e,t){var n=e[0],r=e[1],i=null,o=[NaN,NaN],a=1/0,s=[-1/0,-1/0,1/0,1/0],l=t||p.b;return this.featuresRtree_.forEachInExtent(s,(function(e){if(l(e)){var t=e.getGeometry(),u=a;if((a=t.closestPointXY(n,r,o,a))<u){i=e;var c=Math.sqrt(a);s[0]=n-c,s[1]=r-c,s[2]=n+c,s[3]=r+c}}})),i},t.prototype.getExtent=function(e){return this.featuresRtree_.getExtent(e)},t.prototype.getFeatureById=function(e){var t=this.idIndex_[e.toString()];return void 0!==t?t:null},t.prototype.getFormat=function(){return this.format_},t.prototype.getOverlaps=function(){return this.overlaps_},t.prototype.getUrl=function(){return this.url_},t.prototype.handleFeatureChange_=function(e){var t=e.target,n=Object(r.c)(t),i=t.getGeometry();if(i){var o=i.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(o,t)):this.featuresRtree_&&this.featuresRtree_.update(o,t)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(t),this.nullGeometryFeatures_[n]=t);var a=t.getId();if(void 0!==a){var s=a.toString();n in this.undefIdIndex_?(delete this.undefIdIndex_[n],this.idIndex_[s]=t):this.idIndex_[s]!==t&&(this.removeFromIdIndex_(t),this.idIndex_[s]=t)}else n in this.undefIdIndex_||(this.removeFromIdIndex_(t),this.undefIdIndex_[n]=t);this.changed(),this.dispatchEvent(new C(w,t))},t.prototype.hasFeature=function(e){var t=e.getId();return void 0!==t?t in this.idIndex_:Object(r.c)(e)in this.undefIdIndex_},t.prototype.isEmpty=function(){return this.featuresRtree_.isEmpty()&&Object(v.d)(this.nullGeometryFeatures_)},t.prototype.loadFeatures=function(e,t,n){var r=this,i=this.loadedExtentsRtree_,o=this.strategy_(e,t);this.loading=!1;for(var a=function(e,a){var s=o[e];i.forEachInExtent(s,(function(e){return Object(f.g)(e.extent,s)}))||(r.loader_.call(r,s,t,n),i.insert(s,{extent:s.slice()}),r.loading=r.loader_!==p.c)},s=0,l=o.length;s<l;++s)a(s)},t.prototype.removeLoadedExtent=function(e){var t,n=this.loadedExtentsRtree_;n.forEachInExtent(e,(function(n){if(Object(f.p)(n.extent,e))return t=n,!0})),t&&n.remove(t)},t.prototype.removeFeature=function(e){var t=Object(r.c)(e);t in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[t]:this.featuresRtree_&&this.featuresRtree_.remove(e),this.removeFeatureInternal(e),this.changed()},t.prototype.removeFeatureInternal=function(e){var t=Object(r.c)(e);this.featureChangeKeys_[t].forEach(u.e),delete this.featureChangeKeys_[t];var n=e.getId();void 0!==n?delete this.idIndex_[n.toString()]:delete this.undefIdIndex_[t],this.dispatchEvent(new C(k,e))},t.prototype.removeFromIdIndex_=function(e){var t=!1;for(var n in this.idIndex_)if(this.idIndex_[n]===e){delete this.idIndex_[n],t=!0;break}return t},t.prototype.setLoader=function(e){this.loader_=e},t}(y.a);t.default=A},function(e,t,n){"use strict";n.r(t),n.d(t,"createCenterConstraint",(function(){return O})),n.d(t,"createResolutionConstraint",(function(){return T})),n.d(t,"createRotationConstraint",(function(){return C})),n.d(t,"isNoopAnimation",(function(){return A}));var r=n(175),i=n(6),o=n(31),a=n(15);function s(e){return e}var l=n(35),u=n(26);var c=n(115),d=n(29),f="center",p="resolution",h="rotation",m=n(27),g=n(79),v=n(54),y=n(3),b=n(10),_=n(80),w=n(22),x=n(30),k=n(56),E=function(e){function t(t){e.call(this);var n=Object(w.a)({},t);this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.updateAnimations_=this.updateAnimations_.bind(this),this.projection_=Object(x.b)(n.projection,"EPSG:3857"),this.applyOptions_(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.applyOptions_=function(e){var t={};t[f]=void 0!==e.center?e.center:null;var n=T(e);this.maxResolution_=n.maxResolution,this.minResolution_=n.minResolution,this.zoomFactor_=n.zoomFactor,this.resolutions_=e.resolutions,this.minZoom_=n.minZoom;var r=O(e),i=n.constraint,o=C(e);this.constraints_={center:r,resolution:i,rotation:o},void 0!==e.resolution?t[p]=e.resolution:void 0!==e.zoom&&(t[p]=this.constrainResolution(this.maxResolution_,e.zoom-this.minZoom_),this.resolutions_&&(t[p]=Object(a.a)(Number(this.getResolution()||t[p]),this.minResolution_,this.maxResolution_))),t[h]=void 0!==e.rotation?e.rotation:0,this.setProperties(t),this.options_=e},t.prototype.getUpdatedOptions_=function(e){var t=Object(w.a)({},this.options_);return void 0!==t.resolution?t.resolution=this.getResolution():t.zoom=this.getZoom(),t.center=this.getCenter(),t.rotation=this.getRotation(),Object(w.a)({},t,e)},t.prototype.animate=function(e){var t,n=arguments,r=arguments.length;if(r>1&&"function"==typeof arguments[r-1]&&(t=arguments[r-1],--r),!this.isDef()){var i=arguments[r-1];return i.center&&this.setCenter(i.center),void 0!==i.zoom&&this.setZoom(i.zoom),void 0!==i.rotation&&this.setRotation(i.rotation),void(t&&S(t,!0))}for(var o=Date.now(),s=this.getCenter().slice(),l=this.getResolution(),u=this.getRotation(),c=[],f=0;f<r;++f){var p=n[f],h={start:o,complete:!1,anchor:p.anchor,duration:void 0!==p.duration?p.duration:1e3,easing:p.easing||v.c};if(p.center&&(h.sourceCenter=s,h.targetCenter=p.center,s=h.targetCenter),void 0!==p.zoom?(h.sourceResolution=l,h.targetResolution=this.constrainResolution(this.maxResolution_,p.zoom-this.minZoom_,0),l=h.targetResolution):p.resolution&&(h.sourceResolution=l,h.targetResolution=p.resolution,l=h.targetResolution),void 0!==p.rotation){h.sourceRotation=u;var m=Object(a.d)(p.rotation-u+Math.PI,2*Math.PI)-Math.PI;h.targetRotation=u+m,u=h.targetRotation}h.callback=t,A(h)?h.complete=!0:o+=h.duration,c.push(h)}this.animations_.push(c),this.setHint(d.a.ANIMATING,1),this.updateAnimations_()},t.prototype.getAnimating=function(){return this.hints_[d.a.ANIMATING]>0},t.prototype.getInteracting=function(){return this.hints_[d.a.INTERACTING]>0},t.prototype.cancelAnimations=function(){this.setHint(d.a.ANIMATING,-this.hints_[d.a.ANIMATING]);for(var e=0,t=this.animations_.length;e<t;++e){var n=this.animations_[e];n[0].callback&&S(n[0].callback,!1)}this.animations_.length=0},t.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var e=Date.now(),t=!1,n=this.animations_.length-1;n>=0;--n){for(var r=this.animations_[n],i=!0,o=0,s=r.length;o<s;++o){var l=r[o];if(!l.complete){var u=e-l.start,c=l.duration>0?u/l.duration:1;c>=1?(l.complete=!0,c=1):i=!1;var m=l.easing(c);if(l.sourceCenter){var g=l.sourceCenter[0],v=l.sourceCenter[1],y=g+m*(l.targetCenter[0]-g),b=v+m*(l.targetCenter[1]-v);this.set(f,[y,b])}if(l.sourceResolution&&l.targetResolution){var _=1===m?l.targetResolution:l.sourceResolution+m*(l.targetResolution-l.sourceResolution);l.anchor&&this.set(f,this.calculateCenterZoom(_,l.anchor)),this.set(p,_)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var w=1===m?Object(a.d)(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+m*(l.targetRotation-l.sourceRotation);l.anchor&&this.set(f,this.calculateCenterRotate(w,l.anchor)),this.set(h,w)}if(t=!0,!l.complete)break}}if(i){this.animations_[n]=null,this.setHint(d.a.ANIMATING,-1);var x=r[0].callback;x&&S(x,!0)}}this.animations_=this.animations_.filter(Boolean),t&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_))}},t.prototype.calculateCenterRotate=function(e,t){var n,r=this.getCenter();return void 0!==r&&(n=[r[0]-t[0],r[1]-t[1]],Object(g.c)(n,e-this.getRotation()),Object(g.a)(n,t)),n},t.prototype.calculateCenterZoom=function(e,t){var n,r=this.getCenter(),i=this.getResolution();void 0!==r&&void 0!==i&&(n=[t[0]-e*(t[0]-r[0])/i,t[1]-e*(t[1]-r[1])/i]);return n},t.prototype.getSizeFromViewport_=function(){var e=[100,100],t='.ol-viewport[data-view="'+Object(i.c)(this)+'"]',n=document.querySelector(t);if(n){var r=getComputedStyle(n);e[0]=parseInt(r.width,10),e[1]=parseInt(r.height,10)}return e},t.prototype.constrainCenter=function(e){return this.constraints_.center(e)},t.prototype.constrainResolution=function(e,t,n){var r=t||0,i=n||0;return this.constraints_.resolution(e,r,i)},t.prototype.constrainRotation=function(e,t){var n=t||0;return this.constraints_.rotation(e,n)},t.prototype.getCenter=function(){return this.get(f)},t.prototype.getConstraints=function(){return this.constraints_},t.prototype.getHints=function(e){return void 0!==e?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()},t.prototype.calculateExtent=function(e){var t=e||this.getSizeFromViewport_(),n=this.getCenter();Object(m.a)(n,1);var r=this.getResolution();Object(m.a)(void 0!==r,2);var i=this.getRotation();return Object(m.a)(void 0!==i,3),Object(y.z)(n,r,i,t)},t.prototype.getMaxResolution=function(){return this.maxResolution_},t.prototype.getMinResolution=function(){return this.minResolution_},t.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},t.prototype.setMaxZoom=function(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))},t.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},t.prototype.setMinZoom=function(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))},t.prototype.getProjection=function(){return this.projection_},t.prototype.getResolution=function(){return this.get(p)},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getResolutionForExtent=function(e,t){var n=t||this.getSizeFromViewport_(),r=Object(y.E)(e)/n[0],i=Object(y.A)(e)/n[1];return Math.max(r,i)},t.prototype.getResolutionForValueFunction=function(e){var t=e||2,n=this.maxResolution_,r=this.minResolution_,i=Math.log(n/r)/Math.log(t);return function(e){return n/Math.pow(t,e*i)}},t.prototype.getRotation=function(){return this.get(h)},t.prototype.getValueForResolutionFunction=function(e){var t=e||2,n=this.maxResolution_,r=this.minResolution_,i=Math.log(n/r)/Math.log(t);return function(e){return Math.log(n/e)/Math.log(t)/i}},t.prototype.getState=function(e){var t=this.getCenter(),n=this.getProjection(),r=this.getResolution(),i=r/e,o=this.getRotation();return{center:[Math.round(t[0]/i)*i,Math.round(t[1]/i)*i],projection:void 0!==n?n:null,resolution:r,rotation:o,zoom:this.getZoom()}},t.prototype.getZoom=function(){var e,t=this.getResolution();return void 0!==t&&(e=this.getZoomForResolution(t)),e},t.prototype.getZoomForResolution=function(e){var t,n,r=this.minZoom_||0;if(this.resolutions_){var i=Object(u.f)(this.resolutions_,e,1);r=i,t=this.resolutions_[i],n=i==this.resolutions_.length-1?2:t/this.resolutions_[i+1]}else t=this.maxResolution_,n=this.zoomFactor_;return r+Math.log(t/e)/Math.log(n)},t.prototype.getResolutionForZoom=function(e){return this.constrainResolution(this.maxResolution_,e-this.minZoom_,0)},t.prototype.fit=function(e,t){var n,r=t||{},i=r.size;i||(i=this.getSizeFromViewport_()),Object(m.a)(Array.isArray(e)||"function"==typeof e.getSimplifiedGeometry,24),Array.isArray(e)?(Object(m.a)(!Object(y.H)(e),25),n=Object(_.c)(e)):e.getType()===b.a.CIRCLE?(e=e.getExtent(),(n=Object(_.c)(e)).rotate(this.getRotation(),Object(y.x)(e))):n=e;var a,s=void 0!==r.padding?r.padding:[0,0,0,0],l=void 0===r.constrainResolution||r.constrainResolution,u=void 0!==r.nearest&&r.nearest;a=void 0!==r.minResolution?r.minResolution:void 0!==r.maxZoom?this.constrainResolution(this.maxResolution_,r.maxZoom-this.minZoom_,0):0;for(var c=n.getFlatCoordinates(),d=this.getRotation(),f=Math.cos(-d),p=Math.sin(-d),h=1/0,g=1/0,v=-1/0,w=-1/0,x=n.getStride(),k=0,E=c.length;k<E;k+=x){var O=c[k]*f-c[k+1]*p,T=c[k]*p+c[k+1]*f;h=Math.min(h,O),g=Math.min(g,T),v=Math.max(v,O),w=Math.max(w,T)}var C=this.getResolutionForExtent([h,g,v,w],[i[0]-s[1]-s[3],i[1]-s[0]-s[2]]);if(C=isNaN(C)?a:Math.max(C,a),l){var A=this.constrainResolution(C,0,0);!u&&A<C&&(A=this.constrainResolution(A,-1,0)),C=A}p=-p;var P=(h+v)/2,R=(g+w)/2,M=[(P+=(s[1]-s[3])/2*C)*f-(R+=(s[0]-s[2])/2*C)*p,R*f+P*p],I=r.callback?r.callback:o.c;void 0!==r.duration?this.animate({resolution:C,center:M,duration:r.duration,easing:r.easing},I):(this.setResolution(C),this.setCenter(M),S(I,!0))},t.prototype.centerOn=function(e,t,n){var r=this.getRotation(),i=Math.cos(-r),o=Math.sin(-r),a=e[0]*i-e[1]*o,s=e[1]*i+e[0]*o,l=this.getResolution(),u=(a+=(t[0]/2-n[0])*l)*i-(s+=(n[1]-t[1]/2)*l)*(o=-o),c=s*i+a*o;this.setCenter([u,c])},t.prototype.isDef=function(){return!!this.getCenter()&&void 0!==this.getResolution()},t.prototype.rotate=function(e,t){if(void 0!==t){var n=this.calculateCenterRotate(e,t);this.setCenter(n)}this.setRotation(e)},t.prototype.setCenter=function(e){this.set(f,e),this.getAnimating()&&this.cancelAnimations()},t.prototype.setHint=function(e,t){return this.hints_[e]+=t,this.changed(),this.hints_[e]},t.prototype.setResolution=function(e){this.set(p,e),this.getAnimating()&&this.cancelAnimations()},t.prototype.setRotation=function(e){this.set(h,e),this.getAnimating()&&this.cancelAnimations()},t.prototype.setZoom=function(e){this.setResolution(this.getResolutionForZoom(e))},t}(l.a);function S(e,t){setTimeout((function(){e(t)}),0)}function O(e){return void 0!==e.extent?(t=e.extent,function(e){return e?[Object(a.a)(e[0],t[0],t[2]),Object(a.a)(e[1],t[1],t[3])]:void 0}):s;var t}function T(e){var t,n,i,o=void 0!==e.minZoom?e.minZoom:0,s=void 0!==e.maxZoom?e.maxZoom:28,l=void 0!==e.zoomFactor?e.zoomFactor:2;if(void 0!==e.resolutions){var c=e.resolutions;n=c[o],i=void 0!==c[s]?c[s]:c[c.length-1],t=function(e){return function(t,n,r){if(void 0!==t){var i=Object(u.f)(e,t,r);i=Object(a.a)(i+n,0,e.length-1);var o=Math.floor(i);if(i!=o&&o<e.length-1){var s=e[o]/e[o+1];return e[o]/Math.pow(s,i-o)}return e[o]}}}(c)}else{var d=Object(x.b)(e.projection,"EPSG:3857"),f=d.getExtent(),p=(f?Math.max(Object(y.E)(f),Object(y.A)(f)):360*x.a[k.b.DEGREES]/d.getMetersPerUnit())/r.b/Math.pow(2,0),h=p/Math.pow(2,28);void 0!==(n=e.maxResolution)?o=0:n=p/Math.pow(l,o),void 0===(i=e.minResolution)&&(i=void 0!==e.maxZoom?void 0!==e.maxResolution?n/Math.pow(l,s):p/Math.pow(l,s):h),s=o+Math.floor(Math.log(n/i)/Math.log(l)),i=n/Math.pow(l,s-o),t=function(e,t,n){return function(r,i,o){if(void 0!==r){var a=-o/2+.5,s=Math.floor(Math.log(t/r)/Math.log(e)+a),l=Math.max(s+i,0);return void 0!==n&&(l=Math.min(l,n)),t/Math.pow(e,l)}}}(l,n,s-o)}return{constraint:t,maxResolution:n,minResolution:i,minZoom:o,zoomFactor:l}}function C(e){if(void 0===e.enableRotation||e.enableRotation){var t=e.constrainRotation;return void 0===t||!0===t?Object(c.b)():!1===t?c.d:"number"==typeof t?Object(c.a)(t):c.d}return c.c}function A(e){return!(e.sourceCenter&&e.targetCenter&&!Object(g.b)(e.sourceCenter,e.targetCenter))&&(e.sourceResolution===e.targetResolution&&e.sourceRotation===e.targetRotation)}t.default=E},function(e,t,n){"use strict";(function(e){var r=n(1),i=n.n(r),o=n(63),a=n(2),s=n.n(a),l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function u(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var c=i.a.createContext||function(e,t){var n,i,a,c="__create-react-context-"+((l[a="__global_unique_id__"]=(l[a]||0)+1)+"__"),d=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=u(t.props.value),t}Object(o.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[c]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o==1/a:o!=o&&a!=a)?n=0:(n="function"==typeof t?t(r,i):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(r.Component);d.childContextTypes=((n={})[c]=s.a.object.isRequired,n);var f=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(o.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[c]&&this.context[c].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[c]&&this.context[c].off(this.onUpdate)},r.getValue=function(){return this.context[c]?this.context[c].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return f.contextTypes=((i={})[c]=s.a.object,i),{Provider:d,Consumer:f}};t.a=c}).call(this,n(43))},function(e,t,n){var r=n(696);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],f=n[1],p=n.index;if(s+=e.slice(a,p),a=p+d.length,f)s+=f[1];else{var h=e[a],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],_=n[7];s&&(r.push(s),s="");var w=null!=m&&null!=h&&h!==m,x="+"===b||"*"===b,k="?"===b||"*"===b,E=n[2]||c,S=v||y;r.push({name:g||o++,prefix:m||"",delimiter:E,optional:k,repeat:x,partial:w,asterisk:!!_,pattern:S?u(S):_?".*":"[^"+l(E)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",d(t)));return function(t,i){for(var o="",s=t||{},l=(i||{}).pretty?a:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!=typeof c){var d,f=s[c.name];if(null==f){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(f)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=l(f[p]),!n[u].test(d))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===p?c.prefix:c.delimiter)+d}}else{if(d=c.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[u].test(d))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+d+'"');o+=c.prefix+d}}else o+=c}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var u=e[s];if("string"==typeof u)a+=l(u);else{var f=l(u.prefix),p="(?:"+u.pattern+")";t.push(u),u.repeat&&(p+="(?:"+f+p+")*"),a+=p=u.optional?u.partial?f+"("+p+")?":"(?:"+f+"("+p+"))?":f+"("+p+")"}}var h=l(n.delimiter||"/"),m=a.slice(-h.length)===h;return i||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+h+"|$)",c(new RegExp("^"+a,d(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(p(e[i],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(o(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=!("undefined"==typeof window||!window.document||!window.document.createElement);var i=void 0;function o(){return void 0===i&&(i=function(){if(!r)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()),i}function a(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function s(e){this.target=e,this.events={}}s.prototype.getEventHandlers=function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(n.capture<<0)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]},s.prototype.handleEvent=function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach((function(e){e&&e(n)}))},s.prototype.add=function(e,t,n){var r=this,i=this.getEventHandlers(e,n);a(i),0===i.nextHandlers.length&&(i.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,i.handleEvent,n)),i.nextHandlers.push(t);var o=!0;return function(){if(o){o=!1,a(i);var s=i.nextHandlers.indexOf(t);i.nextHandlers.splice(s,1),0===i.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,i.handleEvent,n),i.handleEvent=void 0)}}};function l(e,t,n,r){e.__consolidated_events_handlers__||(e.__consolidated_events_handlers__=new s(e));var i=function(e){if(e)return o()?e:!!e.capture}(r);return e.__consolidated_events_handlers__.add(t,n,i)}},function(e,t,n){(function(e,r){var i;/*! https://mths.be/esrever v0.2.0 by @mathias */!function(o){var a=t,s=(e&&e.exports,"object"==typeof r&&r);s.global!==s&&s.window;var l=/([\0-\u02FF\u0370-\u1AAF\u1B00-\u1DBF\u1E00-\u20CF\u2100-\uD7FF\uE000-\uFE1F\uFE30-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])([\u0300-\u036F\u1AB0-\u1AFF\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]+)/g,u=/([\uD800-\uDBFF])([\uDC00-\uDFFF])/g,c=function(e){for(var t="",n=(e=e.replace(l,(function(e,t,n){return c(n)+t})).replace(u,"$2$1")).length;n--;)t+=e.charAt(n);return t},d={version:"0.2.0",reverse:c};void 0===(i=function(){return d}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(135)(e),n(43))},function(e,t,n){"use strict";t.atob=self.atob.bind(self),t.btoa=self.btoa.bind(self)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsCore=void 0;var r=i(n(688));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l=a(a({},i(n(122)).default),{},{init:r.default});t.NetlifyCmsCore=l;var u=l;t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(200),i=u(n(697)),o=n(404),a=n(419),s=u(n(698)),l=u(n(152));function u(e){return e&&e.__esModule?e:{default:e}}var c=(0,r.createStore)((0,s.default)(l.default),(0,r.compose)((0,r.applyMiddleware)((0,o.routerMiddleware)(l.default),i.default,a.waitUntilAction),window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():e=>e));t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitUntilAction=t.WAIT_UNTIL_ACTION=void 0;t.WAIT_UNTIL_ACTION="WAIT_UNTIL_ACTION";t.waitUntilAction=({dispatch:e,getState:t})=>{let n=[];return r=>i=>{if("WAIT_UNTIL_ACTION"===i.type)return n.push(i),null;const o=r(i);return function(r){const i=[],o=[];for(const e of n)e.predicate(r)?i.push(e):o.push(e);n=o;for(const n of i)n.run(e,t,r)}(i),o}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notifSend=function(e){var t=r({},e);t.id||(t.id=(new Date).getTime());return function(e){e({type:i,payload:t}),t.dismissAfter&&setTimeout((function(){e({type:o,payload:t.id})}),t.dismissAfter)}},t.notifDismiss=function(e){return{type:o,payload:e}},t.notifClear=function(){return{type:a}};var r=n(179),i=t.NOTIF_SEND="NOTIF_SEND",o=t.NOTIF_DISMISS="NOTIF_DISMISS",a=t.NOTIF_CLEAR="NOTIF_CLEAR"},function(e,t,n){"use strict";var r=n(311);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var i=r(n(707));e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=r,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.nameShape=void 0,t.transitionTimeout=function(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}};i(n(1));var r=i(n(2));function i(e){return e&&e.__esModule?e:{default:e}}t.nameShape=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,leave:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterActive:r.default.string,leave:r.default.string,leaveActive:r.default.string,appear:r.default.string,appearActive:r.default.string})])},function(e,t,n){e.exports=n(711)},function(e,t,n){var r=n(427);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){var r=n(312),i=n(154),o=n(183),a=n(76),s=n(134);e.exports=function(e,t,n,l){if(!a(e))return e;for(var u=-1,c=(t=i(t,e)).length,d=c-1,f=e;null!=f&&++u<c;){var p=s(t[u]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=d){var m=f[p];void 0===(h=l?l(m,p,f):void 0)&&(h=a(m)?m:o(t[u+1])?[]:{})}r(f,p,h),f=f[p]}return e}},function(e,t,n){var r=n(153),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(43))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(719),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(120),i=n(210),o=n(102),a=n(448),s=n(767),l=n(156),u=n(768),c=n(215),d=n(44);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[c];var f=-1;t=r(t,l(o));var p=a(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++f,value:e}}));return s(p,(function(e,t){return u(e,t,n)}))}},function(e,t,n){var r=n(247),i=n(750),o=n(248);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<c;){var v=e[h],y=t[h];if(a)var b=u?a(y,v,h,t,e,l):a(v,y,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(t,(function(e,t){if(!o(g,t)&&(v===e||s(v,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},function(e,t,n){var r=n(75).Uint8Array;e.exports=r},function(e,t,n){var r=n(436),i=n(318),o=n(184);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(245),i=n(44);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(754),i=n(213),o=n(44),a=n(214),s=n(183),l=n(249),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&a(e),f=!n&&!c&&!d&&l(e),p=n||c||d||f,h=p?r(e.length,String):[],m=h.length;for(var g in e)!t&&!u.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(153)(n(75),"Set");e.exports=r},function(e,t,n){var r=n(153)(n(75),"WeakMap");e.exports=r},function(e,t,n){var r=n(76);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(762),i=n(446);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t,n){var r=n(154),i=n(213),o=n(44),a=n(183),s=n(319),l=n(134);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,d=!1;++u<c;){var f=l(t[u]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&s(c)&&a(f,c)&&(o(e)||i(e))}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(449),i=n(136);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},function(e,t,n){var r=n(450),i=n(766)(r);e.exports=i},function(e,t,n){var r=n(451),i=n(184);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){var r=n(765)();e.exports=r},function(e,t,n){var r=n(252),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=n(l),r(e,this,u)}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(209),i=n(136),o=n(183),a=n(76);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){var r=n(322);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},function(e,t,n){var r=n(322);e.exports=function(e,t){for(var n=-1,i=e.length;++n<i&&r(t,e[n],0)>-1;);return n}},function(e,t,n){var r=n(325);e.exports=function(e){return e&&e.length?r(e):[]}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(252),i=n(137),o=n(256),a=i((function(e,t){try{return r(e,void 0,t)}catch(e){return o(e)?e:new Error(e)}}));e.exports=a},function(e,t,n){var r;r={},e.exports=r,r.simpleFilter=function(e,t){return t.filter((function(t){return r.test(e,t)}))},r.test=function(e,t){return null!==r.match(e,t)},r.match=function(e,t,n){n=n||{};var r,i=0,o=[],a=t.length,s=0,l=0,u=n.pre||"",c=n.post||"",d=n.caseSensitive&&t||t.toLowerCase();e=n.caseSensitive&&e||e.toLowerCase();for(var f=0;f<a;f++)r=t[f],d[f]===e[i]?(r=u+r+c,i+=1,l+=1+l):l=0,s+=l,o[o.length]=r;return i===e.length?(s=d===e?1/0:s,{rendered:o.join(""),score:s}):null},r.filter=function(e,t,n){return t&&0!==t.length?"string"!=typeof e?t:(n=n||{},t.reduce((function(t,i,o,a){var s=i;n.extract&&(s=n.extract(i));var l=r.match(e,s,n);return null!=l&&(t[t.length]={string:l.rendered,score:l.score,index:o,original:i}),t}),[]).sort((function(e,t){var n=t.score-e.score;return n||e.index-t.index}))):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(329))&&r.__esModule?r:{default:r},o=n(463);const a=(e,t,n="")=>{e.forEach(e=>{if(void 0!==e.key){var r;const i=e.key.toString(),o=n?`${n}.${i}`:i;if(t[o]){const n=t[o].split("\\n").join("\n ");e.commentBefore=" "+n}Array.isArray(null===(r=e.value)||void 0===r?void 0:r.items)&&a(e.value.items,t,o)}})},s={identify:e=>e instanceof Date,default:!0,tag:"!timestamp",test:RegExp("^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}(\\.[0-9]+)?)Z$"),resolve:e=>new Date(e),stringify:e=>e.toISOString()};var l={fromFile:e=>(e&&e.trim().endsWith("---")&&(e=e.trim().slice(0,-3)),i.default.parse(e,{customTags:[s]})),toFile(e,t=[],n={}){const r=i.default.createNode(e);a(r.items,n),r.items.sort((0,o.sortKeys)(t,e=>{var t;return null===(t=e.key)||void 0===t?void 0:t.toString()}));const s=new i.default.Document;return s.contents=r,s.toString()}};t.default=l},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortKeys=void 0;t.sortKeys=(e=[],t=(e=>e))=>(n,r)=>{const i=e.indexOf(t(n)),o=e.indexOf(t(r));return-1===i||-1===o?0:i>o?1:i<o?-1:0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(779)),i=l(n(802)),o=l(n(139)),a=l(n(219)),s=n(463);function l(e){return e&&e.__esModule?e:{default:e}}const u=(e,t)=>o.default.isMoment(t)?t.format(t._f):t instanceof a.default?""+t.path:!!Number.isInteger(t)&&t.toString();var c={fromFile:e=>r.default.parse(e),toFile:(e,t=[])=>i.default.toToml(e,{replace:u,sort:(0,s.sortKeys)(t)})};t.default=c},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(788),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(43))},function(e,t,n){"use strict";(function(t,r){var i=n(258);e.exports=b;var o,a=n(462);b.ReadableState=y;n(333).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n(467),u=n(335).Buffer,c=t.Uint8Array||function(){};var d=Object.create(n(218));d.inherits=n(158);var f=n(791),p=void 0;p=f&&f.debuglog?f.debuglog("stream"):function(){};var h,m=n(792),g=n(468);d.inherits(b,l);var v=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var r=t instanceof(o=o||n(159));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=n(469).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function b(e){if(o=o||n(159),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function _(e,t,n,r,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,k(e)}(e,a)):(i||(o=function(e,t){var n;r=t,u.isBuffer(r)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):S(e,a)):w(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function w(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&k(e)),S(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),_(this,e,t,!1,n)},b.prototype.unshift=function(e){return _(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return h||(h=n(469).StringDecoder),this._readableState.decoder=new h(e),this._readableState.encoding=e,this};function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(E,e):E(e))}function E(e){p("emit readable"),e.emit("readable"),A(e)}function S(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(O,e,t))}function O(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function T(e){p("readable nexttick read 0"),e.read(0)}function C(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function R(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function I(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}b.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):k(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&R(this),null;var r,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(n,t))),null===(r=e>0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&R(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,t);var l=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?c:b;function u(t,r){p("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,p("cleanup"),e.removeListener("close",v),e.removeListener("finish",y),e.removeListener("drain",d),e.removeListener("error",g),e.removeListener("unpipe",u),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",m),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function c(){p("onend"),e.end()}o.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",u);var d=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,A(e))}}(n);e.on("drain",d);var f=!1;var h=!1;function m(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==I(o.pipes,e))&&!f&&(p("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function g(t){p("onerror",t),b(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",y),b()}function y(){p("onfinish"),e.removeListener("close",v),b()}function b(){p("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",g),e.once("close",v),e.once("finish",y),e.emit("pipe",n),o.flowing||(p("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=I(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},b.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&k(this):i.nextTick(T,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(C,e,t))}(this,e)),this},b.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(p("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(p("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<v.length;o++)e.on(v[o],this.emit.bind(this,v[o]));return this._read=function(t){p("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=P}).call(this,n(43),n(70))},function(e,t,n){e.exports=n(333).EventEmitter},function(e,t,n){"use strict";var r=n(258);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";var r=n(795).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=d,t=3;break;default:return this.write=f,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if((i=a(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if((i=a(t[r]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=a;var r=n(159),i=Object.create(n(218));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){l(e,t,n)})):l(this,null,null)}function l(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(158),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={fromFile:e=>JSON.parse(e),toFile:e=>JSON.stringify(e,null,2)};t.default=r},function(module,exports,__webpack_require__){"use strict";const yaml=__webpack_require__(809),engines=exports=module.exports;engines.yaml={parse:yaml.safeLoad.bind(yaml),stringify:yaml.safeDump.bind(yaml)},engines.json={parse:JSON.parse.bind(JSON),stringify:function(e,t){const n=Object.assign({replacer:null,space:2},t);return JSON.stringify(e,n.replacer,n.space)}},engines.javascript={parse:function parse(str,options,wrap){try{return!1!==wrap&&(str="(function() {\nreturn "+str.trim()+";\n}());"),eval(str)||{}}catch(e){if(!1!==wrap&&/(unexpected|identifier)/i.test(e.message))return parse(str,options,!1);throw new SyntaxError(e)}},stringify:function(){throw new Error("stringifying JavaScript is not supported")}}},function(e,t,n){"use strict";var r=n(187);e.exports=new r({include:[n(474)]})},function(e,t,n){"use strict";var r=n(187);e.exports=new r({include:[n(337)],implicit:[n(816),n(817),n(818),n(819)]})},function(e,t,n){"use strict";const r=n(259),i=n(476),o=n(260);function a(e){return"\n"!==e.slice(-1)?e+"\n":e}e.exports=function(e,t,n){if(null==t&&null==n)switch(r(e)){case"object":t=e.data,n={};break;case"string":return e;default:throw new TypeError("expected file to be a string or object")}const s=e.content,l=o(n);if(null==t){if(!l.data)return e;t=l.data}const u=e.language||l.language,c=i(u,l);if("function"!=typeof c.stringify)throw new TypeError('expected "'+u+'.stringify" to be a function');t=Object.assign({},e.data,t);const d=l.delimiters[0],f=l.delimiters[1],p=c.stringify(t,n).trim();let h="";return"{}"!==p&&(h=a(d)+a(p)+a(f)),"string"==typeof e.excerpt&&""!==e.excerpt&&-1===s.indexOf(e.excerpt.trim())&&(h+=a(e.excerpt)+a(f)),h+a(s)}},function(e,t,n){"use strict";e.exports=function(e,t){let n=t.engines[e]||t.engines[function(e){switch(e.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return e}}(e)];if(void 0===n)throw new Error('gray-matter engine "'+e+'" is not registered');return"function"==typeof n&&(n={parse:n}),n}},function(e,t,n){"use strict";var r=n(188);e.exports=function(e){r.copy(e,this)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r="",i=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),a=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var l="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(l);e.logger.warn(l)}}if(e.isTop&&(r+=" var validate = ",i&&(e.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(e.opts.sourceCode||e.opts.processCode)&&(r+=" /*# sourceURL="+a+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){var u=e.level,c=e.dataLevel,d=e.schema["false schema"],f=e.schemaPath+e.util.getProperty("false schema"),p=e.errSchemaPath+"/false schema",h=!e.opts.allErrors,m="data"+(c||""),g="valid"+u;if(!1===e.schema){e.isTop?h=!0:r+=" var "+g+" = false; ",(Q=Q||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'boolean schema is false' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";var v=r;r=Q.pop(),!e.compositeRule&&h?e.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?r+=i?" return data; ":" validate.errors = null; return true; ":r+=" var "+g+" = true; ";return e.isTop&&(r+=" }; return validate; "),r}if(e.isTop){var y=e.isTop;u=e.level=0,c=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[void 0],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{u=e.level,m="data"+((c=e.dataLevel)||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),i&&!e.async)throw new Error("async schema in sync schema");r+=" var errs_"+u+" = errors;"}g="valid"+u,h=!e.opts.allErrors;var _="",w="",x=e.schema.type,k=Array.isArray(x);if(x&&e.opts.nullable&&!0===e.schema.nullable&&(k?-1==x.indexOf("null")&&(x=x.concat("null")):"null"!=x&&(x=[x,"null"],k=!0)),k&&1==x.length&&(x=x[0],k=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(r+=" "+e.RULES.all.$comment.code(e,"$comment")),x){if(e.opts.coerceTypes)var E=e.util.coerceToTypes(e.opts.coerceTypes,x);var S=e.RULES.types[x];if(E||k||!0===S||S&&!X(S)){f=e.schemaPath+".type",p=e.errSchemaPath+"/type",f=e.schemaPath+".type",p=e.errSchemaPath+"/type";var O=k?"checkDataTypes":"checkDataType";if(r+=" if ("+e.util[O](x,m,e.opts.strictNumbers,!0)+") { ",E){var T="dataType"+u,C="coerced"+u;r+=" var "+T+" = typeof "+m+"; var "+C+" = undefined; ","array"==e.opts.coerceTypes&&(r+=" if ("+T+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+T+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+C+" = "+m+"; } "),r+=" if ("+C+" !== undefined) ; ";var A=E;if(A)for(var P,R=-1,M=A.length-1;R<M;)"string"==(P=A[R+=1])?r+=" else if ("+T+" == 'number' || "+T+" == 'boolean') "+C+" = '' + "+m+"; else if ("+m+" === null) "+C+" = ''; ":"number"==P||"integer"==P?(r+=" else if ("+T+" == 'boolean' || "+m+" === null || ("+T+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==P&&(r+=" && !("+m+" % 1)"),r+=")) "+C+" = +"+m+"; "):"boolean"==P?r+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+C+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+C+" = true; ":"null"==P?r+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+C+" = null; ":"array"==e.opts.coerceTypes&&"array"==P&&(r+=" else if ("+T+" == 'string' || "+T+" == 'number' || "+T+" == 'boolean' || "+m+" == null) "+C+" = ["+m+"]; ");r+=" else { ",(Q=Q||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",r+=k?""+x.join(","):""+x,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=k?""+x.join(","):""+x,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";v=r;r=Q.pop(),!e.compositeRule&&h?e.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } if ("+C+" !== undefined) { ";var I=c?"data"+(c-1||""):"parentData";r+=" "+m+" = "+C+"; ",c||(r+="if ("+I+" !== undefined)"),r+=" "+I+"["+(c?e.dataPathArr[c]:"parentDataProperty")+"] = "+C+"; } "}else{(Q=Q||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",r+=k?""+x.join(","):""+x,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=k?""+x.join(","):""+x,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";v=r;r=Q.pop(),!e.compositeRule&&h?e.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(e.schema.$ref&&!o)r+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",h&&(r+=" } if (errors === ",r+=y?"0":"errs_"+u,r+=") { ",w+="}");else{var j=e.RULES;if(j)for(var D=-1,L=j.length-1;D<L;)if(X(S=j[D+=1])){if(S.type&&(r+=" if ("+e.util.checkDataType(S.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==S.type&&e.schema.properties){d=e.schema.properties;var N=Object.keys(d);if(N)for(var F,B=-1,z=N.length-1;B<z;){if(void 0!==(H=d[F=N[B+=1]]).default){var U=m+e.util.getProperty(F);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+U;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else r+=" if ("+U+" === undefined ","empty"==e.opts.useDefaults&&(r+=" || "+U+" === null || "+U+" === '' "),r+=" ) "+U+" = ","shared"==e.opts.useDefaults?r+=" "+e.useDefault(H.default)+" ":r+=" "+JSON.stringify(H.default)+" ",r+="; "}}}else if("array"==S.type&&Array.isArray(e.schema.items)){var q=e.schema.items;if(q){R=-1;for(var H,W=q.length-1;R<W;)if(void 0!==(H=q[R+=1]).default){U=m+"["+R+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+U;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else r+=" if ("+U+" === undefined ","empty"==e.opts.useDefaults&&(r+=" || "+U+" === null || "+U+" === '' "),r+=" ) "+U+" = ","shared"==e.opts.useDefaults?r+=" "+e.useDefault(H.default)+" ":r+=" "+JSON.stringify(H.default)+" ",r+="; "}}}var V=S.rules;if(V)for(var $,G=-1,K=V.length-1;G<K;)if(J($=V[G+=1])){var Y=$.code(e,$.keyword,S.type);Y&&(r+=" "+Y+" ",h&&(_+="}"))}if(h&&(r+=" "+_+" ",_=""),S.type&&(r+=" } ",x&&x===S.type&&!E)){r+=" else { ";var Q;f=e.schemaPath+".type",p=e.errSchemaPath+"/type";(Q=Q||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",r+=k?""+x.join(","):""+x,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=k?""+x.join(","):""+x,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";v=r;r=Q.pop(),!e.compositeRule&&h?e.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "}h&&(r+=" if (errors === ",r+=y?"0":"errs_"+u,r+=") { ",w+="}")}}function X(e){for(var t=e.rules,n=0;n<t.length;n++)if(J(t[n]))return!0}function J(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var n=t.implements,r=0;r<n.length;r++)if(void 0!==e.schema[n[r]])return!0}(t)}return h&&(r+=" "+w+" "),y?(i?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+g+" = errors === errs_"+u+";",r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,d="data"+(a||""),f=e.opts.$data&&s&&s.$data;f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s;var p="maximum"==t,h=p?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[h],g=e.opts.$data&&m&&m.$data,v=p?"<":">",y=p?">":"<",b=void 0;if(!f&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(h+" must be number or boolean");if(g){var _=e.util.getData(m.$data,a,e.dataPathArr),w="exclusive"+o,x="exclType"+o,k="exclIsNumber"+o,E="' + "+(T="op"+o)+" + '";i+=" var schemaExcl"+o+" = "+_+"; ",i+=" var "+w+"; var "+x+" = typeof "+(_="schemaExcl"+o)+"; if ("+x+" != 'boolean' && "+x+" != 'undefined' && "+x+" != 'number') { ";var S;b=h;(S=S||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(i+=" , message: '"+h+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ";var O=i;i=S.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+O+"]); ":i+=" validate.errors = ["+O+"]; return false; ":i+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+x+" == 'number' ? ( ("+w+" = "+r+" === undefined || "+_+" "+v+"= "+r+") ? "+d+" "+y+"= "+_+" : "+d+" "+y+" "+r+" ) : ( ("+w+" = "+_+" === true) ? "+d+" "+y+"= "+r+" : "+d+" "+y+" "+r+" ) || "+d+" !== "+d+") { var op"+o+" = "+w+" ? '"+v+"' : '"+v+"='; ",void 0===s&&(b=h,u=e.errSchemaPath+"/"+h,r=_,f=g)}else{E=v;if((k="number"==typeof m)&&f){var T="'"+E+"'";i+=" if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" ( "+r+" === undefined || "+m+" "+v+"= "+r+" ? "+d+" "+y+"= "+m+" : "+d+" "+y+" "+r+" ) || "+d+" !== "+d+") { "}else{k&&void 0===s?(w=!0,b=h,u=e.errSchemaPath+"/"+h,r=m,y+="="):(k&&(r=Math[p?"min":"max"](m,s)),m===(!k||r)?(w=!0,b=h,u=e.errSchemaPath+"/"+h,y+="="):(w=!1,E+="="));T="'"+E+"'";i+=" if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+d+" "+y+" "+r+" || "+d+" !== "+d+") { "}}b=b||t,(S=S||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+T+", limit: "+r+", exclusive: "+w+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be "+E+" ",i+=f?"' + "+r:r+"'"),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+l:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ";O=i;return i=S.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+O+"]); ":i+=" validate.errors = ["+O+"]; return false; ":i+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",c&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,d="data"+(a||""),f=e.opts.$data&&s&&s.$data;if(f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,!f&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+d+".length "+("maxItems"==t?">":"<")+" "+r+") { ";var p=t,h=h||[];h.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(p||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==t?"more":"fewer",i+=" than ",i+=f?"' + "+r+" + '":""+s,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+l:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ";var m=i;return i=h.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,d="data"+(a||""),f=e.opts.$data&&s&&s.$data;if(f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,!f&&"number"!=typeof s)throw new Error(t+" must be number");var p="maxLength"==t?">":"<";i+="if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),!1===e.opts.unicode?i+=" "+d+".length ":i+=" ucs2length("+d+") ",i+=" "+p+" "+r+") { ";var h=t,m=m||[];m.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(h||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==t?"longer":"shorter",i+=" than ",i+=f?"' + "+r+" + '":""+s,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+l:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ";var g=i;return i=m.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,d="data"+(a||""),f=e.opts.$data&&s&&s.$data;if(f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,!f&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" Object.keys("+d+").length "+("maxProperties"==t?">":"<")+" "+r+") { ";var p=t,h=h||[];h.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(p||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==t?"more":"fewer",i+=" than ",i+=f?"' + "+r+" + '":""+s,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+l:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ";var m=i;return i=h.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(e){e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},function(e,t,n){"use strict";var r=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d:\d\d)?$/i,i=/t|\s/i,o={date:s,time:l,"date-time":function(e,t){if(!e||!t)return;e=e.split(i),t=t.split(i);var n=s(e[0],t[0]);if(void 0===n)return;return n||l(e[1],t[1])}},a={type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};function s(e,t){if(e&&t)return e>t?1:e<t?-1:e===t?0:void 0}function l(e,t){if(e&&t&&(e=e.match(r),t=t.match(r),e&&t))return(e=e[1]+e[2]+e[3]+(e[4]||""))>(t=t[1]+t[2]+t[3]+(t[4]||""))?1:e<t?-1:e===t?0:void 0}e.exports=function(e){var t="format"+e;return function r(i){return r.definition={type:"string",inline:n(883),statements:!0,errors:"full",dependencies:["format"],metaSchema:{anyOf:[{type:"string"},a]}},i.addKeyword(t,r.definition),i.addKeyword("formatExclusive"+e,{dependencies:["format"+e],metaSchema:{anyOf:[{type:"boolean"},a]}}),function(e){var t=e._formats;for(var n in o){var r=t[n];("object"!=typeof r||r instanceof RegExp||!r.validate)&&(r=t[n]={validate:r}),r.compare||(r.compare=o[n])}}(i),i}}},function(e,t,n){var r=n(109),i=/[\\^$.*+?()[\]{}|]/g,o=RegExp(i.source);e.exports=function(e){return(e=r(e))&&o.test(e)?e.replace(i,"\\$&"):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FOLDER=t.FILES=void 0;t.FILES="file_based_collection";t.FOLDER="folder_based_collection"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INFERABLE_FIELDS=t.SORTABLE_FIELDS=t.IDENTIFIER_FIELDS=void 0;(r=n(1))&&r.__esModule;var r,i=n(11);t.IDENTIFIER_FIELDS=["title","path"];t.SORTABLE_FIELDS=["title","date","author","description"];const o={title:{type:"string",secondaryTypes:[],synonyms:["title","name","label","headline","header"],defaultPreview:e=>(0,i.jsx)("h1",null,e),fallbackToFirstField:!0,showError:!0},shortTitle:{type:"string",secondaryTypes:[],synonyms:["short_title","shortTitle","short"],defaultPreview:e=>(0,i.jsx)("h2",null,e),fallbackToFirstField:!1,showError:!1},author:{type:"string",secondaryTypes:[],synonyms:["author","name","by","byline","owner"],defaultPreview:e=>(0,i.jsx)("strong",null,e),fallbackToFirstField:!1,showError:!1},date:{type:"datetime",secondaryTypes:["date"],synonyms:["date","publishDate","publish_date"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},description:{type:"string",secondaryTypes:["text","markdown"],synonyms:["shortDescription","short_description","shortdescription","description","intro","introduction","brief","content","biography","bio","summary"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},image:{type:"image",secondaryTypes:[],synonyms:["image","thumbnail","thumb","picture","avatar","photo","cover","hero","logo"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1}};t.INFERABLE_FIELDS=o},function(e,t,n){var r=n(432),i=n(44);e.exports=function(e,t,n,o){return null==e?[]:(i(t)||(t=null==t?[]:[t]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},function(e,t,n){var r=n(76),i=n(182),o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeValues=t.serializeValues=void 0;var r,i=(r=n(898))&&r.__esModule?r:{default:r},o=n(4),a=n(122);const s=(e,t,n)=>{let r=t.reduce((t,r)=>{const l=r.get("name"),u=e.get(l),c=(0,a.getWidgetValueSerializer)(r.get("widget")),d=r.get("fields");return d&&o.List.isList(u)?t.set(l,u.map(e=>s(e,d,n))):d&&o.Map.isMap(u)?t.set(l,s(u,d,n)):c&&!(0,i.default)(u)?t.set(l,c[n](u)):(0,i.default)(u)?t:t.set(l,u)},(0,o.Map)());return r=e.mergeDeep(r),r};t.serializeValues=(e,t)=>s(e,t,"serialize");t.deserializeValues=(e,t)=>s(e,t,"deserialize")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAbsolutePath=function(e){return r.test(e)},t.basename=function(e,t=""){if(""===e)return e;const n=(e=i(e)).split("/"),r=n[n.length-1];if(""===r&&n.length>1)return n[n.length-2];if(t.length>0){if(r.substr(r.length-t.length)===t)return r.substr(0,r.length-t.length)}return r},t.fileExtensionWithSeparator=o,t.fileExtension=function(e){const t=o(e);return""===t?t:t.substr(1)};const r=new RegExp("^(?:[a-z]+:)?//","i"),i=e=>e.replace(/[\\/]+/g,"/");function o(e){const t=(e=i(e)).split("/");if(""===(e=t.pop())&&t.length>0&&(e=t.pop()),".."===e)return"";const n=e.lastIndexOf(".");return-1===n||0===n?"":e.substr(n)}},function(e,t,n){var r=n(442),i=r&&new r;e.exports=i},function(e,t,n){var r=n(908),i=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],o=i.call(r,t)?n.length:0;o--;){var a=n[o],s=a.func;if(null==s||s==e)return a.name}return t}},function(e,t,n){var r=n(350),i=n(349),o=n(493),a=n(909);e.exports=function(e){var t=o(e),n=a[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var s=i(n);return!!s&&e===s[0]}},function(e,t,n){var r=n(222);function i(e,t,n){var o=r(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return o.placeholder=i.placeholder,o}i.placeholder={},e.exports=i},function(e,t,n){var r=n(215),i=n(492),o=i?function(e,t){return i.set(e,t),e}:r;e.exports=o},function(e,t,n){var r=n(498),i=n(499),o=n(913),a=n(266),s=n(500),l=n(267),u=n(917),c=n(223),d=n(75);e.exports=function e(t,n,f,p,h,m,g,v,y,b){var _=128&n,w=1&n,x=2&n,k=24&n,E=512&n,S=x?void 0:a(t);return function O(){for(var T=arguments.length,C=Array(T),A=T;A--;)C[A]=arguments[A];if(k)var P=l(O),R=o(C,P);if(p&&(C=r(C,p,h,k)),m&&(C=i(C,m,g,k)),T-=R,k&&T<b){var M=c(C,P);return s(t,n,e,O.placeholder,f,C,M,v,y,b-T)}var I=w?f:this,j=x?I[t]:t;return T=C.length,v?C=u(C,v):E&&T>1&&C.reverse(),_&&y<T&&(C.length=y),this&&this!==d&&this instanceof O&&(j=S||a(j)),j.apply(I,C)}}},function(e,t){var n=Math.max;e.exports=function(e,t,r,i){for(var o=-1,a=e.length,s=r.length,l=-1,u=t.length,c=n(a-s,0),d=Array(u+c),f=!i;++l<u;)d[l]=t[l];for(;++o<s;)(f||o<a)&&(d[r[o]]=e[o]);for(;c--;)d[l++]=e[o++];return d}},function(e,t){var n=Math.max;e.exports=function(e,t,r,i){for(var o=-1,a=e.length,s=-1,l=r.length,u=-1,c=t.length,d=n(a-l,0),f=Array(d+c),p=!i;++o<d;)f[o]=e[o];for(var h=o;++u<c;)f[h+u]=t[u];for(;++s<l;)(p||o<a)&&(f[h+r[s]]=e[o++]);return f}},function(e,t,n){var r=n(494),i=n(501),o=n(502);e.exports=function(e,t,n,a,s,l,u,c,d,f){var p=8&t;t|=p?32:64,4&(t&=~(p?64:32))||(t&=-4);var h=[e,t,s,p?l:void 0,p?u:void 0,p?void 0:l,p?void 0:u,c,d,f],m=n.apply(void 0,h);return r(e)&&i(m,h),m.placeholder=a,o(m,e,t)}},function(e,t,n){var r=n(496),i=n(453)(r);e.exports=i},function(e,t,n){var r=n(914),i=n(915),o=n(321),a=n(916);e.exports=function(e,t,n){var s=t+"";return o(e,i(s,a(r(s),n)))}},function(e,t,n){var r=n(190),i=n(184);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){(function(e){var r=n(75),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(135)(e))},function(e,t,n){var r=n(245),i=n(327),o=n(318),a=n(438),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},function(e,t,n){var r=n(357);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(264),i=n(327),o=n(251);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},function(e,t){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(945))&&r.__esModule?r:{default:r};t.default=e=>new Promise((t,n)=>{const r=new FileReader;r.onload=({target:e})=>t((0,i.default)(null==e?void 0:e.result)),r.onerror=e=>{r.abort(),n(e)},r.readAsArrayBuffer(e)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asyncLock=void 0;var r,i=(r=n(191))&&r.__esModule?r:{default:r};t.asyncLock=()=>{let e=(0,i.default)(1);return{acquire:(t=15e3)=>new Promise(n=>{const r=setTimeout(()=>{e=(0,i.default)(1),n(!1)},t);e.take(()=>{clearTimeout(r),n(!0)})}),release:()=>{try{e.leave()}catch(t){if("leave called too many times."!==t.message)throw t;console.warn("leave called too many times."),e=(0,i.default)(1)}}}}},function(e,t,n){var r=n(268)("fromPairs",n(508));r.placeholder=n(224),e.exports=r},function(e,t,n){var r=n(268)("flow",n(124));r.placeholder=n(224),e.exports=r},function(e,t,n){var r=n(210),i=n(427),o=n(154);e.exports=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var u=t[a],c=r(e,u);n(c,u)&&i(l,o(u,e),c)}return l}},function(e,t,n){var r=n(137),i=n(222),o=n(267),a=n(223),s=r((function(e,t){var n=a(t,o(s));return i(e,64,void 0,t,n)}));s.placeholder={},e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitUntilWithTimeout=t.waitUntil=void 0;var r=n(419);const i=({predicate:e,run:t})=>({type:r.WAIT_UNTIL_ACTION,predicate:e,run:t});t.waitUntil=i;t.waitUntilWithTimeout=async(e,t,n=3e4)=>{let r=!1;const o=new Promise(n=>{e(i(t(n)))}),a=new Promise(e=>{setTimeout(()=>{r?e():(console.warn("Wait Action timed out"),e(null))},n)});return await Promise.race([o.then(e=>(r=!0,e)).catch(null),a])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.selectIntegration=void 0;var r=n(4),i=n(160);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}t.selectIntegration=(e,t,n)=>t?e.getIn(["hooks",t,n],!1):e.getIn(["hooks",n],!1);var l=(e=null,t)=>{switch(t.type){case i.CONFIG_SUCCESS:{const e=(t.payload.get("integrations",(0,r.List)()).toJS()||[]).reduce((e,n)=>{const{hooks:r,collections:i,provider:l}=n,u=s(n,["hooks","collections","provider"]);if(e.providers[l]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},u),!i)return r.forEach(t=>{e.hooks[t]=l}),e;return("*"===i?t.payload.get("collections").map(e=>e.get("name")):i).forEach(t=>{r.forEach(n=>{e.hooks[t]?e.hooks[t][n]=l:e.hooks[t]={[n]:l}})}),e},{providers:{},hooks:{}});return(0,r.fromJS)(e)}default:return e}};t.default=l},function(e,t,n){var r=n(518),i=n(155),o=n(110),a=n(109);e.exports=function(e,t,n){return e=a(e),n=null==n?0:r(o(n),0,e.length),t=i(t),e.slice(n,n+t.length)==t}},function(e,t){e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deployPreviewLoading=s,t.deployPreviewLoaded=l,t.deployPreviewError=u,t.loadDeployPreview=function(e,t,n,r,c){return async(d,f)=>{const p=f(),h=(0,i.currentBackend)(p.config),m=(0,o.selectDeployPreview)(p,e,t);if(!m||!m.get("isFetching")){d(s(e,t));try{const i=r?h.getDeploy(e,t,n):await h.getDeployPreview(e,t,n,c);return d(i?l(e,t,i):u(e,t))}catch(n){console.error(n),d(a({message:{details:n.message,key:"ui.toast.onFailToLoadDeployPreview"},kind:"danger",dismissAfter:8e3})),d(u(e,t))}}}},t.DEPLOY_PREVIEW_FAILURE=t.DEPLOY_PREVIEW_SUCCESS=t.DEPLOY_PREVIEW_REQUEST=void 0;var r=n(133),i=n(119),o=n(100);const{notifSend:a}=r.actions;t.DEPLOY_PREVIEW_REQUEST="DEPLOY_PREVIEW_REQUEST";t.DEPLOY_PREVIEW_SUCCESS="DEPLOY_PREVIEW_SUCCESS";function s(e,t){return{type:"DEPLOY_PREVIEW_REQUEST",payload:{collection:e.get("name"),slug:t}}}function l(e,t,{url:n,status:r}){return{type:"DEPLOY_PREVIEW_SUCCESS",payload:{collection:e.get("name"),slug:t,url:n,status:r}}}function u(e,t){return{type:"DEPLOY_PREVIEW_FAILURE",payload:{collection:e.get("name"),slug:t}}}t.DEPLOY_PREVIEW_FAILURE="DEPLOY_PREVIEW_FAILURE"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusRequest=s,t.statusSuccess=l,t.statusFailure=u,t.checkBackendStatus=function(){return async(e,t)=>{try{const n=t();if(!0===n.status.get("isFetching"))return;e(s());const i=(0,r.currentBackend)(n.config),u=await i.status(),c="ui.toast.onBackendDown",d=n.notifs.filter(e=>{var t;return(null===(t=e.message)||void 0===t?void 0:t.key)===c});if(!1===u.api.status)return 0===d.length&&e(o({message:{details:u.api.statusPage,key:"ui.toast.onBackendDown"},kind:"danger"})),e(l(u));!0===u.api.status&&d.length>0&&d.forEach(t=>{e(a(t.id))});if(!1===u.auth.status){const t="ui.toast.onLoggedOut";n.notifs.find(e=>{var n;return(null===(n=e.message)||void 0===n?void 0:n.key)===t})||e(o({message:{key:"ui.toast.onLoggedOut"},kind:"danger"}))}e(l(u))}catch(t){e(u(t))}}},t.STATUS_FAILURE=t.STATUS_SUCCESS=t.STATUS_REQUEST=void 0;var r=n(119),i=n(133);const{notifSend:o,notifDismiss:a}=i.actions;t.STATUS_REQUEST="STATUS_REQUEST";t.STATUS_SUCCESS="STATUS_SUCCESS";function s(){return{type:"STATUS_REQUEST"}}function l(e){return{type:"STATUS_SUCCESS",payload:{status:e}}}function u(e){return{type:"STATUS_FAILURE",payload:{error:e}}}t.STATUS_FAILURE="STATUS_FAILURE"},function(e,t,n){var r=n(240),i=n(209);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){"use strict";var r=n(364),i=n(274),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o);e.exports=function(){return s(r,a,arguments)},e.exports.apply=function(){return s(r,o,arguments)}},function(e,t,n){"use strict";var r=n(991),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,l=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),u=function(e,t,n,r){var i;(!(t in e)||"function"==typeof(i=r)&&"[object Function]"===o.call(i)&&r())&&(l?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)u(e,o[s],t[o[s]],n[o[s]])};c.supportsDescriptors=!!l,e.exports=c},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(993),i=n(994),o=n(995)("String.prototype.replace"),a=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,s=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=i(r(this));return o(o(e,a,""),s,"")}},function(e,t,n){"use strict";var r=n(526);e.exports=function(){return String.prototype.trim&&"​"==="​".trim()?String.prototype.trim:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DropdownButton",{enumerable:!0,get:function(){return a.Button}}),t.StyledDropdownButton=t.DropdownCheckedItem=t.DropdownItem=t.default=void 0;var r=u(n(18)),i=(u(n(1)),u(n(2))),o=n(11),a=n(999),s=n(111),l=u(n(167));function u(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const f=(0,r.default)(a.Wrapper,{target:"e1d27pw00",label:"StyledWrapper"})({name:"p2aa31",styles:"position:relative;font-size:14px;user-select:none;"}),p=(0,r.default)(a.Button,{target:"e1d27pw01",label:"StyledDropdownButton"})(s.buttons.button,";",s.buttons.default,";display:block;padding-left:20px;padding-right:40px;position:relative;&:after{",s.components.caretDown,";content:'';display:block;position:absolute;top:16px;right:10px;color:currentColor;}");t.StyledDropdownButton=p;const h=(0,r.default)("ul",{target:"e1d27pw02",label:"DropdownList"})(s.components.dropdownList,";margin:0;position:absolute;top:0;left:0;min-width:100%;z-index:",s.zIndex.zIndex299,";",e=>(0,o.css)("width:",e.width,";top:",e.top,";left:","left"===e.position?0:"auto",";right:","right"===e.position?0:"auto",";;label:DropdownList;"),";"),m=e=>{let{isActive:t,isCheckedItem:n=!1}=e,r=d(e,["isActive","isCheckedItem"]);return(0,o.jsx)(a.MenuItem,c({css:(0,o.css)(s.components.dropdownItem,";&:focus,&:active,&:not(:focus),&:not(:active){background-color:",t?s.colors.activeBackground:"inherit",";color:",t?s.colors.active:"inherit",";",n?"display: flex; justify-content: start":"",";}&:hover{color:",s.colors.active,";background-color:",s.colors.activeBackground,";};label:StyledMenuItem;")},r))},g=(0,r.default)("div",{target:"e1d27pw03",label:"MenuItemIconContainer"})("flex:1 0 32px;text-align:right;position:relative;top:",e=>e.iconSmall?"0":"2px",";"),v=({closeOnSelection:e=!0,renderButton:t,dropdownWidth:n="auto",dropdownPosition:r="left",dropdownTopOverlap:i="0",className:s,children:l})=>(0,o.jsx)(f,{closeOnSelection:e,onSelection:e=>e(),className:s},t(),(0,o.jsx)(a.Menu,null,(0,o.jsx)(h,{width:n,top:i,position:r},l)));t.default=v,v.propTypes={renderButton:i.default.func.isRequired,dropdownWidth:i.default.string,dropdownPosition:i.default.string,dropdownTopOverlap:i.default.string,className:i.default.string,children:i.default.node};const y=({label:e,icon:t,iconDirection:n,iconSmall:r,isActive:i,onClick:a,className:s})=>(0,o.jsx)(m,{value:a,isActive:i,className:s},(0,o.jsx)("span",null,e),t?(0,o.jsx)(g,{iconSmall:r},(0,o.jsx)(l.default,{type:t,direction:n,size:r?"xsmall":"small"})):null);t.DropdownItem=y,y.propTypes={label:i.default.string,icon:i.default.string,iconDirection:i.default.string,onClick:i.default.func,className:i.default.string};var b={name:"5afxk1-StyledDropdownCheckbox",styles:"margin-right:10px;;label:StyledDropdownCheckbox;"};const _=({checked:e,id:t})=>(0,o.jsx)("input",{readOnly:!0,type:"checkbox",css:b,checked:e,id:t}),w=({label:e,id:t,checked:n,onClick:r})=>(0,o.jsx)(m,{isCheckedItem:!0,isActive:n,onClick:r},(0,o.jsx)(_,{checked:n,id:t}),(0,o.jsx)("span",{htmlFor:t},e));t.DropdownCheckedItem=w,w.propTypes={label:i.default.string.isRequired,id:i.default.string.isRequired,checked:i.default.bool.isRequired,onClick:i.default.func.isRequired}},function(e,t,n){"use strict";var r={},i="a menu outside a mounted Wrapper with an id, or a menu that does not exist";e.exports={registerManager:function(e,t){r[e]=t},unregisterManager:function(e){delete r[e]},openMenu:function(e,t){var n=r[e];if(!n)throw new Error("Cannot open "+i);n.openMenu(t)},closeMenu:function(e,t){var n=r[e];if(!n)throw new Error("Cannot close "+i);n.closeMenu(t)}}},function(e,t,n){"use strict";var r=n(1003)();e.exports=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(2));var r=s(n(421)),i=s(n(422)),o=s(n(1)),a=s(n(532));n(533);function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))},c=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,i.default)(e,t)}))},d=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),u(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,i=t.getClassNames("enter").doneClassName,o=n?r+" "+i:i;t.removeClasses(e,n?"appear":"enter"),u(e,o),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),u(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),u(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?(r&&n?n+"-":"")+e:n[e];return{className:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,i=n.activeClassName,o=n.doneClassName;r&&c(e,r),i&&c(e,i),o&&c(e,o)},i.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,u(e,t))},i.render=function(){var e=l({},this.props);return delete e.classNames,o.default.createElement(a.default,l({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(o.default.Component);d.defaultProps={classNames:""},d.propTypes={};var f=d;t.default=f,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2)),i=s(n(1)),o=s(n(49)),a=n(235);n(533);function s(e){return e&&e.__esModule?e:{default:e}}t.UNMOUNTED="unmounted";t.EXITED="exited";t.ENTERING="entering";t.ENTERED="entered";t.EXITING="exiting";var l=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var i,o=n.transitionGroup,a=o&&!o.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i="exited",r.appearStatus="entering"):i="entered":i=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=o.default.findDOMNode(this);"entering"===t?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},a.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;t||r?(this.props.onEnter(e,i),this.safeSetState({status:"entering"},(function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(e,i)}))}))}))):this.safeSetState({status:"entered"},(function(){n.props.onEntered(e)}))},a.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var o=i.default.Children.only(n);return i.default.cloneElement(o,r)},r}(i.default.Component);function u(){}l.contextTypes={transitionGroup:r.object},l.childContextTypes={transitionGroup:function(){}},l.propTypes={},l.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:u,onEntering:u,onEntered:u,onExit:u,onExiting:u,onExited:u},l.UNMOUNTED=0,l.EXITED=1,l.ENTERING=2,l.ENTERED=3,l.EXITING=4;var c=(0,a.polyfill)(l);t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(2))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(18)),i=u(n(1)),o=u(n(2)),a=n(111),s=u(n(167)),l=n(11);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("a",{target:"ett28fv0",label:"GoBackButtonStyle"})({name:"uebubq",styles:"display:flex;align-items:center;margin-top:50px;padding:10px;font-size:14px;"}),d=(0,r.default)("p",{target:"ett28fv1",label:"ButtonText"})("color:",a.colorsRaw.gray,";margin:0 10px;");class f extends i.default.Component{render(){const{href:e,t:t}=this.props;return(0,l.jsx)(c,{href:e},(0,l.jsx)(s.default,{type:"arrow",size:"small"}),(0,l.jsx)(d,null,t("ui.default.goBackToSite")))}}t.default=f,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(f,"propTypes",{href:o.default.string.isRequired,t:o.default.func.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=function(e){var t=null;return function(){return null==t&&(t=e()),t}},t.without=function(e,t){return e.filter((function(e){return e!==t}))},t.union=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var i=[];return n.forEach((function(e){return i.push(e)})),i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(535);t.isFirefox=r.memoize((function(){return/firefox/i.test(navigator.userAgent)})),t.isSafari=r.memoize((function(){return Boolean(window.safari)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(t.HandlerRole||(t.HandlerRole={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.strictEquality=function(e,t){return e===t},t.areCoordsEqual=function(e,t){return!e&&!t||!(!e||!t)&&(e.x===t.x&&e.y===t.y)},t.areArraysEqual=function(e,n,r){if(void 0===r&&(r=t.strictEquality),e.length!==n.length)return!1;for(var i=0;i<e.length;++i)if(!r(e[i],n[i]))return!1;return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(193);t.NONE=[],t.ALL=[],t.NONE.__IS_NONE__=!0,t.ALL.__IS_ALL__=!0,t.areDirty=function(e,n){return e!==t.NONE&&(e===t.ALL||void 0===n||r.intersection(n,e).length>0)}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(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,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(275),l=n(1059),u=n(368),c=(n(169),n(38)),d=n(127),f=n(228);t.default=function(e){var t=e.DecoratedComponent,n=e.createHandler,r=e.createMonitor,p=e.createConnector,h=e.registerHandler,m=e.containerDisplayName,g=e.getType,v=e.collect,y=e.options.arePropsEqual,b=void 0===y?f:y,_=t,w=t.displayName||t.name||"Component",x=function(e){function d(t){var n=e.call(this,t)||this;return n.decoratedRef=a.createRef(),n.handleChange=function(){var e=n.getCurrentState();f(e,n.state)||n.setState(e)},n.disposable=new l.SerialDisposable,n.receiveProps(t),n.dispose(),n}return i(d,e),d.prototype.getHandlerId=function(){return this.handlerId},d.prototype.getDecoratedComponentInstance=function(){return c(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current},d.prototype.shouldComponentUpdate=function(e,t){return!b(e,this.props)||!f(t,this.state)},d.prototype.componentDidMount=function(){this.disposable=new l.SerialDisposable,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()},d.prototype.componentDidUpdate=function(e){b(this.props,e)||(this.receiveProps(this.props),this.handleChange())},d.prototype.componentWillUnmount=function(){this.dispose()},d.prototype.receiveProps=function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(g(e)))},d.prototype.receiveType=function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=h(e,this.handler,this.manager),n=t[0],r=t[1];this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var i=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new l.CompositeDisposable(new l.Disposable(i),new l.Disposable(r)))}},d.prototype.dispose=function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)},d.prototype.getCurrentState=function(){return this.handlerConnector?v(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}},d.prototype.render=function(){var e=this;return a.createElement(s.Consumer,null,(function(t){var n=t.dragDropManager;return e.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){return e.handlerConnector.reconnect()})),a.createElement(_,o({},e.props,e.getCurrentState(),{ref:u.isRefable(_)?e.decoratedRef:null}))}))},d.prototype.receiveDragDropManager=function(e){void 0===this.manager&&(c(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",w,w),void 0!==e&&(this.manager=e,this.handlerMonitor=r(e),this.handlerConnector=p(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))},d.DecoratedComponent=t,d.displayName=m+"("+w+")",d}(a.Component);return d(x,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=n.getRegistry(),i=r.addSource(e,t);return[i,function(){return r.removeSource(i)}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDecoratedComponent=function(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(38),i=!1,o=!1,a=function(){function e(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}return e.prototype.receiveHandlerId=function(e){this.sourceId=e},e.prototype.getHandlerId=function(){return this.sourceId},e.prototype.canDrag=function(){r(!i,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return i=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{i=!1}},e.prototype.isDragging=function(){if(!this.sourceId)return!1;r(!o,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return o=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{o=!1}},e.prototype.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},e.prototype.isDraggingSource=function(e){return this.internalMonitor.isDraggingSource(e)},e.prototype.isOverTarget=function(e,t){return this.internalMonitor.isOverTarget(e,t)},e.prototype.getTargetIds=function(){return this.internalMonitor.getTargetIds()},e.prototype.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},e.prototype.getSourceId=function(){return this.internalMonitor.getSourceId()},e.prototype.subscribeToOffsetChange=function(e){return this.internalMonitor.subscribeToOffsetChange(e)},e.prototype.canDragSource=function(e){return this.internalMonitor.canDragSource(e)},e.prototype.canDropOnTarget=function(e){return this.internalMonitor.canDropOnTarget(e)},e.prototype.getItemType=function(){return this.internalMonitor.getItemType()},e.prototype.getItem=function(){return this.internalMonitor.getItem()},e.prototype.getDropResult=function(){return this.internalMonitor.getDropResult()},e.prototype.didDrop=function(){return this.internalMonitor.didDrop()},e.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},e.prototype.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},e.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},e.prototype.getClientOffset=function(){return this.internalMonitor.getClientOffset()},e.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(546),i=n(547),o=n(228),a=function(){function e(e){var t=this;this.backend=e,this.hooks=r.default({dragSource:function(e,n){t.dragSourceOptions=n||null,i.isRef(e)?t.dragSourceRef=e:t.dragSourceNode=e,t.reconnectDragSource()},dragPreview:function(e,n){t.dragPreviewOptions=n||null,i.isRef(e)?t.dragPreviewRef=e:t.dragPreviewNode=e,t.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null}return e.prototype.receiveHandlerId=function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())},Object.defineProperty(e.prototype,"connectTarget",{get:function(){return this.dragSource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dragSourceOptions",{get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dragPreviewOptions",{get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e},enumerable:!0,configurable:!0}),e.prototype.reconnect=function(){this.reconnectDragSource(),this.reconnectDragPreview()},e.prototype.reconnectDragSource=function(){var e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();e&&this.disconnectDragSource();var t=this.dragSource;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)):this.lastConnectedDragSource=t)},e.prototype.reconnectDragPreview=function(){var e=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();e&&this.disconnectDragPreview();var t=this.dragPreview;this.handlerId&&t&&e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))},e.prototype.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},e.prototype.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},e.prototype.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},e.prototype.didDragSourceOptionsChange=function(){return!o(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},e.prototype.didDragPreviewOptionsChange=function(){return!o(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},e.prototype.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)},e.prototype.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)},Object.defineProperty(e.prototype,"dragSource",{get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dragPreview",{get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current},enumerable:!0,configurable:!0}),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(1064);function o(e){return function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!r.isValidElement(t)){var o=t;return e(o,n),o}var a=t;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors.You can either wrap "+t+" into a <div>, or turn it into a drag source or a drop target itself.")}}(a);var s=n?function(t){return e(t,n)}:e;return i.default(a,s)}}n(1065),t.default=function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var i=o(r);t[n]=function(){return i}}})),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isRef=function(e){return null!==e&&"object"==typeof e&&e.hasOwnProperty("current")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){return"string"==typeof t||"symbol"==typeof t||!!n&&Array.isArray(t)&&t.every((function(t){return e(t,!1)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=n.getRegistry(),i=r.addTarget(e,t);return[i,function(){return r.removeTarget(i)}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(38),i=!1,o=function(){function e(e){this.targetId=null,this.internalMonitor=e.getMonitor()}return e.prototype.receiveHandlerId=function(e){this.targetId=e},e.prototype.getHandlerId=function(){return this.targetId},e.prototype.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},e.prototype.canDrop=function(){if(!this.targetId)return!1;r(!i,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return i=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{i=!1}},e.prototype.isOver=function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)},e.prototype.getItemType=function(){return this.internalMonitor.getItemType()},e.prototype.getItem=function(){return this.internalMonitor.getItem()},e.prototype.getDropResult=function(){return this.internalMonitor.getDropResult()},e.prototype.didDrop=function(){return this.internalMonitor.didDrop()},e.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},e.prototype.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},e.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},e.prototype.getClientOffset=function(){return this.internalMonitor.getClientOffset()},e.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(546),i=n(547),o=n(228),a=function(){function e(e){var t=this;this.backend=e,this.hooks=r.default({dropTarget:function(e,n){t.dropTargetOptions=n,i.isRef(e)?t.dropTargetRef=e:t.dropTargetNode=e,t.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null}return Object.defineProperty(e.prototype,"connectTarget",{get:function(){return this.dropTarget},enumerable:!0,configurable:!0}),e.prototype.reconnect=function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)},e.prototype.receiveHandlerId=function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())},Object.defineProperty(e.prototype,"dropTargetOptions",{get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e},enumerable:!0,configurable:!0}),e.prototype.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},e.prototype.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},e.prototype.didOptionsChange=function(){return!o(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},e.prototype.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},Object.defineProperty(e.prototype,"dropTarget",{get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current},enumerable:!0,configurable:!0}),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(553);t.useMonitorOutput=function(e,t,n){var o=i.useCollector(e,t,n),a=o[0],s=o[1];return r.useEffect((function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(s,{handlerIds:[t]})}),[e,s]),a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(228),i=n(1);t.useCollector=function(e,t,n){var o=i.useState((function(){return t(e)})),a=o[0],s=o[1],l=i.useCallback((function(){var i=t(e);r(a,i)||(s(i),n&&n())}),[a,e,n]);return[a,l]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return[].slice.call(e.querySelectorAll("*"),0).filter(a)};
+/*!
+ * Adapted from jQuery UI core
+ *
+ * http://jqueryui.com
+ *
+ * Copyright 2014 jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/category/ui-core/
+ */
+var r=/input|select|textarea|button|object/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}function o(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e;t&&t!==document.body;){if(i(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&o(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t="length"in n?n[0]:n}return s=t||s},t.validateElement=u,t.hide=function(e){u(e)&&(e||s).setAttribute("aria-hidden","true")},t.show=function(e){u(e)&&(e||s).removeAttribute("aria-hidden")},t.documentNotReadyOrSSRTesting=function(){s=null},t.resetForTesting=function(){s=null};var r,i=n(363),o=(r=i)&&r.__esModule?r:{default:r},a=n(370);var s=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){return!(!e&&!s)||((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=new function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]};t.default=r,e.exports=t.default},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Waypoint",(function(){return y}));var r=n(414),i=(n(2),n(1)),o=n.n(i),a=n(174);function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(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 d(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,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function f(e,t){var n,r=(n=e,!isNaN(parseFloat(n))&&isFinite(n)?parseFloat(n):"px"===n.slice(-2)?parseFloat(n.slice(0,-2)):void 0);if("number"==typeof r)return r;var i=function(e){if("%"===e.slice(-1))return parseFloat(e.slice(0,-1))/100}(e);return"number"==typeof i?i*t:void 0}function p(e){return"string"==typeof e.type}var h;var m=[];function g(e){m.push(e),h||(h=setTimeout((function(){var e;for(h=null;e=m.shift();)e()}),0));var t=!0;return function(){if(t){t=!1;var n=m.indexOf(e);-1!==n&&(m.splice(n,1),!m.length&&h&&(clearTimeout(h),h=null))}}}var v={debug:!1,scrollableAncestor:void 0,children:void 0,topOffset:"0px",bottomOffset:"0px",horizontal:!1,onEnter:function(){},onLeave:function(){},onPositionChange:function(){},fireOnRapidScroll:!0},y=function(t){!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)}(h,t);var n,i,l,c=d(h);function h(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(t=c.call(this,e)).refElement=function(e){t._ref=e},t}return n=h,(i=[{key:"componentDidMount",value:function(){var e=this;h.getWindow()&&(this.cancelOnNextTick=g((function(){e.cancelOnNextTick=null;var t=e.props,n=t.children;t.debug,function(e,t){if(e&&!p(e)&&!t)throw new Error("<Waypoint> needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g. <div>) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.")}(n,e._ref),e._handleScroll=e._handleScroll.bind(e),e.scrollableAncestor=e._findScrollableAncestor(),e.scrollEventListenerUnsubscribe=Object(r.a)(e.scrollableAncestor,"scroll",e._handleScroll,{passive:!0}),e.resizeEventListenerUnsubscribe=Object(r.a)(window,"resize",e._handleScroll,{passive:!0}),e._handleScroll(null)})))}},{key:"componentDidUpdate",value:function(){var e=this;h.getWindow()&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=g((function(){e.cancelOnNextTick=null,e._handleScroll(null)}))))}},{key:"componentWillUnmount",value:function(){h.getWindow()&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())}},{key:"_findScrollableAncestor",value:function(){var t=this.props,n=t.horizontal,r=t.scrollableAncestor;if(r)return function(t){return"window"===t?e.window:t}(r);for(var i=this._ref;i.parentNode;){if((i=i.parentNode)===document.body)return window;var o=window.getComputedStyle(i),a=(n?o.getPropertyValue("overflow-x"):o.getPropertyValue("overflow-y"))||o.getPropertyValue("overflow");if("auto"===a||"scroll"===a||"overlay"===a)return i}return window}},{key:"_handleScroll",value:function(e){if(this._ref){var t=this._getBounds(),n=function(e){return e.viewportBottom-e.viewportTop==0?"invisible":e.viewportTop<=e.waypointTop&&e.waypointTop<=e.viewportBottom||e.viewportTop<=e.waypointBottom&&e.waypointBottom<=e.viewportBottom||e.waypointTop<=e.viewportTop&&e.viewportBottom<=e.waypointBottom?"inside":e.viewportBottom<e.waypointTop?"below":e.waypointTop<e.viewportTop?"above":"invisible"}(t),r=this._previousPosition,i=this.props,o=(i.debug,i.onPositionChange),a=i.onEnter,s=i.onLeave,l=i.fireOnRapidScroll;if(this._previousPosition=n,r!==n){var u={currentPosition:n,previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom};o.call(this,u),"inside"===n?a.call(this,u):"inside"===r&&s.call(this,u),l&&("below"===r&&"above"===n||"above"===r&&"below"===n)&&(a.call(this,{currentPosition:"inside",previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}),s.call(this,{currentPosition:n,previousPosition:"inside",event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}))}}}},{key:"_getBounds",value:function(){var e,t,n=this.props,r=n.horizontal,i=(n.debug,this._ref.getBoundingClientRect()),o=i.left,a=i.top,s=i.right,l=i.bottom,u=r?o:a,c=r?s:l;this.scrollableAncestor===window?(e=r?window.innerWidth:window.innerHeight,t=0):(e=r?this.scrollableAncestor.offsetWidth:this.scrollableAncestor.offsetHeight,t=r?this.scrollableAncestor.getBoundingClientRect().left:this.scrollableAncestor.getBoundingClientRect().top);var d=this.props,p=d.bottomOffset;return{waypointTop:u,waypointBottom:c,viewportTop:t+f(d.topOffset,e),viewportBottom:t+e-f(p,e)}}},{key:"render",value:function(){var e=this,t=this.props.children;return t?p(t)||Object(a.isForwardRef)(t)?o.a.cloneElement(t,{ref:function(n){e.refElement(n),t.ref&&("function"==typeof t.ref?t.ref(n):t.ref.current=n)}}):o.a.cloneElement(t,{innerRef:this.refElement}):o.a.createElement("span",{ref:this.refElement,style:{fontSize:0}})}}])&&s(n.prototype,i),l&&s(n,l),h}(o.a.PureComponent);y.above="above",y.below="below",y.inside="inside",y.invisible="invisible",y.getWindow=function(){if("undefined"!=typeof window)return window},y.defaultProps=v,y.displayName="Waypoint"}.call(this,n(43))},function(e,t,n){"use strict";n.r(t),n.d(t,"VariableSizeGrid",(function(){return S})),n.d(t,"VariableSizeList",(function(){return I})),n.d(t,"FixedSizeGrid",(function(){return j})),n.d(t,"FixedSizeList",(function(){return D})),n.d(t,"areEqual",(function(){return N})),n.d(t,"shouldComponentUpdate",(function(){return F}));var r=n(32),i=n(63),o=n(25),a=n(116),s=n(1),l=n(57),u="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function c(e){cancelAnimationFrame(e.id)}function d(e,t){var n=u();var r={id:requestAnimationFrame((function i(){u()-n>=t?e.call(null):r.id=requestAnimationFrame(i)}))};return r}var f=-1;var p=null;function h(e){if(void 0===e&&(e=!1),null===p||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?p="positive-descending":(t.scrollLeft=1,p=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),p}return p}var m=function(e){var t=e.columnIndex;e.data;return e.rowIndex+":"+t};function g(e){var t,n,l=e.getColumnOffset,u=e.getColumnStartIndexForOffset,p=e.getColumnStopIndexForStartIndex,g=e.getColumnWidth,y=e.getEstimatedTotalHeight,b=e.getEstimatedTotalWidth,_=e.getOffsetForColumnAndAlignment,w=e.getOffsetForRowAndAlignment,x=e.getRowHeight,k=e.getRowOffset,E=e.getRowStartIndexForOffset,S=e.getRowStopIndexForStartIndex,O=e.initInstanceProps,T=e.shouldResetStyleCacheOnItemSizeChange,C=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=O(n.props,Object(o.a)(Object(o.a)(n))),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Object(o.a)(Object(o.a)(n)),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Object(a.a)((function(e,t,r,i,o,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:i,visibleColumnStartIndex:o,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=Object(a.a)((function(e,t,r,i,o){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:i,scrollUpdateWasRequested:o})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var r,i,o=n.props,a=o.columnWidth,s=o.direction,u=o.rowHeight,c=n._getItemStyleCache(T&&a,T&&s,T&&u),d=e+":"+t;c.hasOwnProperty(d)?r=c[d]:c[d]=((i={position:"absolute"})["rtl"===s?"right":"left"]=l(n.props,t,n._instanceProps),i.top=k(n.props,e,n._instanceProps),i.height=x(n.props,e,n._instanceProps),i.width=g(n.props,t,n._instanceProps),r=i);return r},n._getItemStyleCache=void 0,n._getItemStyleCache=Object(a.a)((function(e,t,n){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,i=t.clientWidth,o=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===o&&e.scrollTop===a)return null;var t=n.props.direction,u=o;if("rtl"===t)switch(h()){case"negative":u=-o;break;case"positive-descending":u=l-i-o}u=Math.max(0,Math.min(u,l-i));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<o?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&c(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=d(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return v(e,t),C(e),null};var n=t.prototype;return n.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},n.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,i=e.rowIndex,o=this.props,a=o.columnCount,s=o.height,l=o.rowCount,u=o.width,c=this.state,d=c.scrollLeft,p=c.scrollTop,h=function(e){if(void 0===e&&(e=!1),-1===f||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),f=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return f}();void 0!==r&&(r=Math.max(0,Math.min(r,a-1))),void 0!==i&&(i=Math.max(0,Math.min(i,l-1)));var m=y(this.props,this._instanceProps),g=b(this.props,this._instanceProps)>u?h:0,v=m>s?h:0;this.scrollTo({scrollLeft:void 0!==r?_(this.props,r,n,d,this._instanceProps,v):d,scrollTop:void 0!==i?w(this.props,i,n,p,this._instanceProps,g):p})},n.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("rtl"===e)switch(h()){case"negative":i.scrollLeft=-n;break;case"positive-ascending":i.scrollLeft=n;break;default:var o=i.clientWidth,a=i.scrollWidth;i.scrollLeft=a-o-n}else i.scrollLeft=Math.max(0,n);i.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&c(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,i=e.columnCount,o=e.direction,a=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,f=e.itemKey,p=void 0===f?m:f,h=e.outerElementType,g=e.outerTagName,v=e.rowCount,_=e.style,w=e.useIsScrolling,x=e.width,k=this.state.isScrolling,E=this._getHorizontalRangeToRender(),S=E[0],O=E[1],T=this._getVerticalRangeToRender(),C=T[0],A=T[1],P=[];if(i>0&&v)for(var R=C;R<=A;R++)for(var M=S;M<=O;M++)P.push(Object(s.createElement)(t,{columnIndex:M,data:d,isScrolling:w?k:void 0,key:p({columnIndex:M,data:d,rowIndex:R}),rowIndex:R,style:this._getItemStyle(R,M)}));var I=y(this.props,this._instanceProps),j=b(this.props,this._instanceProps);return Object(s.createElement)(h||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Object(r.a)({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},_)},Object(s.createElement)(u||c||"div",{children:P,ref:l,style:{height:I,pointerEvents:k?"none":void 0,width:j}}))},n._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,i=e.rowCount;if("function"==typeof n&&t>0&&i>0){var o=this._getHorizontalRangeToRender(),a=o[0],s=o[1],l=o[2],u=o[3],c=this._getVerticalRangeToRender(),d=c[0],f=c[1],p=c[2],h=c[3];this._callOnItemsRendered(a,s,d,f,l,u,p,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,y=m.scrollTop,b=m.scrollUpdateWasRequested,_=m.verticalScrollDirection;this._callOnScroll(v,y,g,_,b)}},n._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,r=e.overscanColumnsCount,i=e.overscanCount,o=e.rowCount,a=this.state,s=a.horizontalScrollDirection,l=a.isScrolling,c=a.scrollLeft,d=n||r||i||1;if(0===t||0===o)return[0,0,0,0];var f=u(this.props,c,this._instanceProps),h=p(this.props,f,c,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,d),g=l&&"forward"!==s?1:Math.max(1,d);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},n._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,i=e.overscanRowsCount,o=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=r||i||n||1;if(0===t||0===o)return[0,0,0,0];var d=E(this.props,u,this._instanceProps),f=S(this.props,d,u,this._instanceProps),p=s&&"backward"!==l?1:Math.max(1,c),h=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-p),Math.max(0,Math.min(o-1,f+h)),d,f]},t}(s.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},n}var v=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},y=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,i=t.estimatedRowHeight,o=t.lastMeasuredRowIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},b=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,i=t.estimatedColumnWidth,o=t.lastMeasuredColumnIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},_=function(e,t,n,r){var i,o,a;if("column"===e?(i=r.columnMetadataMap,o=t.columnWidth,a=r.lastMeasuredColumnIndex):(i=r.rowMetadataMap,o=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var s=0;if(a>=0){var l=i[a];s=l.offset+l.size}for(var u=a+1;u<=n;u++){var c=o(u);i[u]={offset:s,size:c},s+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return i[n]},w=function(e,t,n,r){var i,o;return"column"===e?(i=n.columnMetadataMap,o=n.lastMeasuredColumnIndex):(i=n.rowMetadataMap,o=n.lastMeasuredRowIndex),(o>0?i[o].offset:0)>=r?x(e,t,n,o,0,r):k(e,t,n,Math.max(0,o),r)},x=function(e,t,n,r,i,o){for(;i<=r;){var a=i+Math.floor((r-i)/2),s=_(e,t,a,n).offset;if(s===o)return a;s<o?i=a+1:s>o&&(r=a-1)}return i>0?i-1:0},k=function(e,t,n,r,i){for(var o="column"===e?t.columnCount:t.rowCount,a=1;r<o&&_(e,t,r,n).offset<i;)r+=a,a*=2;return x(e,t,n,Math.min(r,o-1),Math.floor(r/2),i)},E=function(e,t,n,r,i,o,a){var s="column"===e?t.width:t.height,l=_(e,t,n,o),u="column"===e?b(t,o):y(t,o),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=i>=d-s&&i<=c+s?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);case"auto":default:return i>=d&&i<=c?i:d>c||i<d?d:c}},S=g({getColumnOffset:function(e,t,n){return _("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return w("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var i=e.columnCount,o=e.width,a=_("column",e,t,r),s=n+o,l=a.offset+a.size,u=t;u<i-1&&l<s;)u++,l+=_("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:y,getEstimatedTotalWidth:b,getOffsetForColumnAndAlignment:function(e,t,n,r,i,o){return E("column",e,t,n,r,i,o)},getOffsetForRowAndAlignment:function(e,t,n,r,i,o){return E("row",e,t,n,r,i,o)},getRowOffset:function(e,t,n){return _("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return w("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var i=e.rowCount,o=e.height,a=_("row",e,t,r),s=n+o,l=a.offset+a.size,u=t;u<i-1&&l<s;)u++,l+=_("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,i=e.rowIndex,o=e.shouldForceUpdate,a=void 0===o||o;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof i&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,i-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),O=function(e,t){return e};function T(e){var t,n,l=e.getItemOffset,u=e.getEstimatedTotalSize,f=e.getItemSize,p=e.getOffsetForIndexAndAlignment,m=e.getStartIndexForOffset,g=e.getStopIndexForStartIndex,v=e.initInstanceProps,y=e.shouldResetStyleCacheOnItemSizeChange,b=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=v(n.props,Object(o.a)(Object(o.a)(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Object(o.a)(Object(o.a)(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Object(a.a)((function(e,t,r,i){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:i})})),n._callOnScroll=void 0,n._callOnScroll=Object(a.a)((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,r=n.props,i=r.direction,o=r.itemSize,a=r.layout,s=n._getItemStyleCache(y&&o,y&&a,y&&i);if(s.hasOwnProperty(e))t=s[e];else{var u,c=l(n.props,e,n._instanceProps),d=f(n.props,e,n._instanceProps),p="horizontal"===i||"horizontal"===a;s[e]=((u={position:"absolute"})["rtl"===i?"right":"left"]=p?c:0,u.top=p?0:c,u.height=p?"100%":d,u.width=p?d:"100%",t=u)}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Object(a.a)((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===i)return null;var t=n.props.direction,a=i;if("rtl"===t)switch(h()){case"negative":a=-i;break;case"positive-descending":a=o-r-i}return a=Math.max(0,Math.min(a,o-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<i?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;n.setState((function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&c(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=d(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return C(e,t),b(e),null};var n=t.prototype;return n.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},n.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(p(this.props,e,t,r,this._instanceProps))},n.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(h()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&c(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,o=e.height,a=e.innerRef,l=e.innerElementType,c=e.innerTagName,d=e.itemCount,f=e.itemData,p=e.itemKey,h=void 0===p?O:p,m=e.layout,g=e.outerElementType,v=e.outerTagName,y=e.style,b=e.useIsScrolling,_=e.width,w=this.state.isScrolling,x="horizontal"===i||"horizontal"===m,k=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),S=E[0],T=E[1],C=[];if(d>0)for(var A=S;A<=T;A++)C.push(Object(s.createElement)(t,{data:f,key:h(A,f),index:A,isScrolling:b?w:void 0,style:this._getItemStyle(A)}));var P=u(this.props,this._instanceProps);return Object(s.createElement)(g||v||"div",{className:n,onScroll:k,ref:this._outerRefSetter,style:Object(r.a)({position:"relative",height:o,width:_,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},y)},Object(s.createElement)(l||c||"div",{children:C,ref:a,style:{height:x?"100%":P,pointerEvents:w?"none":void 0,width:x?P:"100%"}}))},n._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"==typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,l=o.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var s=m(this.props,a,this._instanceProps),l=g(this.props,s,a,this._instanceProps),u=i&&"backward"!==o?1:Math.max(1,n),c=i&&"forward"!==o?1:Math.max(1,n);return[Math.max(0,s-u),Math.max(0,Math.min(t-1,l+c)),s,l]},t}(s.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var C=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},A=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,o=n.lastMeasuredIndex;if(t>o){var a=0;if(o>=0){var s=i[o];a=s.offset+s.size}for(var l=o+1;l<=t;l++){var u=r(l);i[l]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return i[t]},P=function(e,t,n,r,i){for(;r<=n;){var o=r+Math.floor((n-r)/2),a=A(e,o,t).offset;if(a===i)return o;a<i?r=o+1:a>i&&(n=o-1)}return r>0?r-1:0},R=function(e,t,n,r){for(var i=e.itemCount,o=1;n<i&&A(e,n,t).offset<r;)n+=o,o*=2;return P(e,t,Math.min(n,i-1),Math.floor(n/2),r)},M=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,i=t.estimatedItemSize,o=t.lastMeasuredIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},I=T({getItemOffset:function(e,t,n){return A(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:M,getOffsetForIndexAndAlignment:function(e,t,n,r,i){var o=e.direction,a=e.height,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:a,c=A(e,t,i),d=M(e,i),f=Math.max(0,Math.min(d-u,c.offset)),p=Math.max(0,c.offset-u+c.size);switch("smart"===n&&(n=r>=p-u&&r<=f+u?"auto":"center"),n){case"start":return f;case"end":return p;case"center":return Math.round(p+(f-p)/2);case"auto":default:return r>=p&&r<=f?r:r<p?p:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?r[i].offset:0)>=n?P(e,t,i,0,n):R(e,t,Math.max(0,i),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var i=e.direction,o=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===i||"horizontal"===s?l:o,c=A(e,t,r),d=n+u,f=c.offset+c.size,p=t;p<a-1&&f<d;)p++,f+=A(e,p,r).size;return p},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}}),j=g({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,i,o){var a=e.columnCount,s=e.columnWidth,l=e.width,u=Math.max(0,a*s-l),c=Math.min(u,t*s),d=Math.max(0,t*s-l+o+s);switch("smart"===n&&(n=r>=d-l&&r<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":var f=Math.round(d+(c-d)/2);return f<Math.ceil(l/2)?0:f>u+Math.floor(l/2)?u:f;case"auto":default:return r>=d&&r<=c?r:d>c||r<d?d:c}},getOffsetForRowAndAlignment:function(e,t,n,r,i,o){var a=e.rowHeight,s=e.height,l=e.rowCount,u=Math.max(0,l*a-s),c=Math.min(u,t*a),d=Math.max(0,t*a-s+o+a);switch("smart"===n&&(n=r>=d-s&&r<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":var f=Math.round(d+(c-d)/2);return f<Math.ceil(s/2)?0:f>u+Math.floor(s/2)?u:f;case"auto":default:return r>=d&&r<=c?r:d>c||r<d?d:c}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,i=e.columnCount,o=e.width,a=t*r,s=Math.ceil((o+n-a)/r);return Math.max(0,Math.min(i-1,t+s-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,i=e.rowCount,o=e.height,a=t*r,s=Math.ceil((o+n-a)/r);return Math.max(0,Math.min(i-1,t+s-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),D=T({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r){var i=e.direction,o=e.height,a=e.itemCount,s=e.itemSize,l=e.layout,u=e.width,c="horizontal"===i||"horizontal"===l?u:o,d=Math.max(0,a*s-c),f=Math.min(d,t*s),p=Math.max(0,t*s-c+s);switch("smart"===n&&(n=r>=p-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return p;case"center":var h=Math.round(p+(f-p)/2);return h<Math.ceil(c/2)?0:h>d+Math.floor(c/2)?d:h;case"auto":default:return r>=p&&r<=f?r:r<p?p:f}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,i=e.height,o=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,u=t*a,c="horizontal"===r||"horizontal"===s?l:i,d=Math.ceil((c+n-u)/a);return Math.max(0,Math.min(o-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});function L(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}function N(e,t){var n=e.style,r=Object(l.a)(e,["style"]),i=t.style,o=Object(l.a)(t,["style"]);return!L(n,i)&&!L(r,o)}function F(e,t){return!N(this.props,e)||L(this.state,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(18)),i=d(n(2)),o=d(n(1)),a=d(n(24)),s=n(48),l=n(16),u=d(n(1117)),c=n(11);function d(e){return e&&e.__esModule?e:{default:e}}const f=(0,r.default)("div",{target:"e18jbcla0",label:"PaginationMessage"})("width:",l.lengths.topCardWidth,";padding:16px;text-align:center;"),p=(0,r.default)(f,{target:"e18jbcla1",label:"NoEntriesMessage"})({name:"1yuhvjn",styles:"margin-top:16px;"}),h=({collections:e,entries:t,isFetching:n,viewStyle:r,cursor:i,handleCursorActions:a,t:s,page:d})=>{var h;const m=[s("collection.entries.loadingEntries"),s("collection.entries.cachingEntries"),s("collection.entries.longerLoading")];if(n&&void 0===d)return(0,c.jsx)(l.Loader,{active:!0},m);return t&&t.size>0||(null==i||null===(h=i.actions)||void 0===h?void 0:h.has("append_next"))?(0,c.jsx)(o.default.Fragment,null,(0,c.jsx)(u.default,{collections:e,entries:t,viewStyle:r,cursor:i,handleCursorActions:a,page:d}),n&&void 0!==d&&t.size>0?(0,c.jsx)(f,null,s("collection.entries.loadingEntries")):null):(0,c.jsx)(p,null,s("collection.entries.noEntries"))};h.propTypes={collections:a.default.iterable.isRequired,entries:a.default.list,page:i.default.number,isFetching:i.default.bool,viewStyle:i.default.string,cursor:i.default.any.isRequired,handleCursorActions:i.default.func.isRequired,t:i.default.func.isRequired};var m=(0,s.translate)()(h);t.default=m},function(e,t,n){var r;r=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"ScrollSync",{enumerable:!0,get:function(){return o(r).default}});var i=n(12);function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ScrollSyncPane",{enumerable:!0,get:function(){return o(i).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2),o=s(i),a=s(n(3));function s(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 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 c=function(e){function t(){var e,n,r;l(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.panes={},r.registerPane=function(e,t){t.forEach((function(t){r.panes[t]||(r.panes[t]=[]),r.findPane(e,t)||(r.panes[t].length>0&&r.syncScrollPosition(r.panes[t][0],e),r.panes[t].push(e))})),r.addEvents(e,t)},r.unregisterPane=function(e,t){t.forEach((function(t){r.findPane(e,t)&&(r.removeEvents(e),r.panes[t].splice(r.panes[t].indexOf(e),1))}))},r.addEvents=function(e,t){e.onscroll=r.handlePaneScroll.bind(r,e,t)},r.removeEvents=function(e){e.onscroll=null},r.findPane=function(e,t){return!!r.panes[t]&&r.panes[t].find((function(t){return t===e}))},r.handlePaneScroll=function(e,t){r.props.enabled&&window.requestAnimationFrame((function(){r.syncScrollPositions(e,t)}))},r.syncScrollPositions=function(e,t){t.forEach((function(n){r.panes[n].forEach((function(i){e!==i&&(r.removeEvents(i,n),r.syncScrollPosition(e,i),window.requestAnimationFrame((function(){r.addEvents(i,t)})))}))})),r.props.onSync&&r.props.onSync(e)},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"getChildContext",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(e,t){var n=e.scrollTop,r=e.scrollHeight,i=e.clientHeight,o=e.scrollLeft,a=e.scrollWidth,s=e.clientWidth,l=r-i,u=a-s,c=this.props,d=c.proportional,f=c.vertical,p=c.horizontal,h=t.scrollHeight-i,m=t.scrollWidth-s;f&&l>0&&(t.scrollTop=d?h*n/l:n),p&&u>0&&(t.scrollLeft=d?m*o/u:o)}},{key:"render",value:function(){return o.default.Children.only(this.props.children)}}]),t}(i.Component);c.propTypes={onSync:a.default.func,children:a.default.element.isRequired,proportional:a.default.bool,vertical:a.default.bool,horizontal:a.default.bool,enabled:a.default.bool},c.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},c.childContextTypes={registerPane:a.default.func,unregisterPane:a.default.func},t.default=c,e.exports=t.default},function(t,n){t.exports=e},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(5)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(11)()}).call(t,n(4))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,d=-1;function f(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&p())}function p(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var r=n(6),i=n(7),o=n(8),a=n(9),s=n(10);e.exports=function(e,n){var l="function"==typeof Symbol&&Symbol.iterator,u={array:f("array"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:d(r.thatReturnsNull),arrayOf:function(e){return d((function(t,n,r,i,o){if("function"!=typeof e)return new c("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new c("Invalid "+i+" `"+o+"` of type `"+h(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var u=e(s,l,r,i,o+"["+l+"]",a);if(u instanceof Error)return u}return null}))},element:d((function(t,n,r,i,o){var a=t[n];return e(a)?null:new c("Invalid "+i+" `"+o+"` of type `"+h(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return d((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||"<<anonymous>>";return new c("Invalid "+i+" `"+o+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:"<<anonymous>>")+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:d((function(e,t,n,r,i){return p(e[t])?null:new c("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return d((function(t,n,r,i,o){if("function"!=typeof e)return new c("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],l=h(s);if("object"!==l)return new c("Invalid "+i+" `"+o+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var u in s)if(s.hasOwnProperty(u)){var d=e(s,u,r,i,o+"."+u,a);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?d((function(t,n,r,i,o){for(var a=t[n],s=0;s<e.length;s++)if(l=a,u=e[s],l===u?0!==l||1/l==1/u:l!=l&&u!=u)return null;var l,u;return new c("Invalid "+i+" `"+o+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")})):("production"!==t.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var i=e[n];if("function"!=typeof i)return o(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",g(i),n),r.thatReturnsNull}return d((function(t,n,r,i,o){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,n,r,i,o,a))return null;return new c("Invalid "+i+" `"+o+"` supplied to `"+r+"`.")}))},shape:function(e){return d((function(t,n,r,i,o){var s=t[n],l=h(s);if("object"!==l)return new c("Invalid "+i+" `"+o+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var d=e[u];if(d){var f=d(s,u,r,i,o+"."+u,a);if(f)return f}}return null}))}};function c(e){this.message=e,this.stack=""}function d(e){if("production"!==t.env.NODE_ENV)var r={},s=0;function l(l,u,d,f,p,h,m){if(f=f||"<<anonymous>>",h=h||d,m!==a)if(n)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var g=f+":"+d;!r[g]&&s<3&&(o(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",h,f),r[g]=!0,s++)}return null==u[d]?l?null===u[d]?new c("The "+p+" `"+h+"` is marked as required in `"+f+"`, but its value is `null`."):new c("The "+p+" `"+h+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(u,d,f,p,h)}var u=l.bind(null,!1);return u.isRequired=l.bind(null,!0),u}function f(e){return d((function(t,n,r,i,o,a){var s=t[n];return h(s)!==e?new c("Invalid "+i+" `"+o+"` of type `"+m(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function p(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(p);if(null===t||e(t))return!0;var n=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,i=n.call(t);if(n!==t.entries){for(;!(r=i.next()).done;)if(!p(r.value))return!1}else for(;!(r=i.next()).done;){var o=r.value;if(o&&!p(o[1]))return!1}return!0;default:return!1}}function h(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function m(e){if(null==e)return""+e;var t=h(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function g(e){var t=m(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return c.prototype=Error.prototype,u.checkPropTypes=s,u.PropTypes=u,u}}).call(t,n(4))},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){(function(t){"use strict";var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,i,o,a,s,l){if(n(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,i,o,a,s,l],d=0;(u=new Error(t.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}}).call(t,n(4))},function(e,t,n){(function(t){"use strict";var r,i=n(6);"production"!==t.env.NODE_ENV&&(r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,(function(){return n[i++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}},i=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,i=Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];r.apply(void 0,[t].concat(i))}}),e.exports=i}).call(t,n(4))},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){"use strict";if("production"!==t.env.NODE_ENV)var r=n(7),i=n(8),o=n(9),a={};e.exports=function(e,n,s,l,u){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var d;try{r("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",l||"React class",s,c),d=e[c](n,c,l,s,null,o)}catch(e){d=e}if(i(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",s,c,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=u?u():"";i(!1,"Failed %s type: %s%s",s,d.message,null!=f?f:"")}}}}).call(t,n(4))},function(e,t,n){"use strict";var r=n(6),i=n(7),o=n(9);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2),o=s(n(13)),a=s(n(3));function s(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 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 c=function(e){function t(){var e,n,r;l(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.toArray=function(e){return[].concat(e)},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.props.enabled&&(this.node=this.props.attachTo||o.default.findDOMNode(this),this.context.registerPane(this.node,this.toArray(this.props.group)))}},{key:"componentDidUpdate",value:function(e){this.props.enabled&&this.props.group!==e.group&&(this.context.unregisterPane(this.node,this.toArray(e.group)),this.context.registerPane(this.node,this.toArray(this.props.group)))}},{key:"componentWillUnmount",value:function(){this.props.enabled&&this.context.unregisterPane(this.node,this.toArray(this.props.group))}},{key:"render",value:function(){return this.props.children}}]),t}(i.Component);c.propTypes={children:a.default.node.isRequired,attachTo:a.default.object,group:a.default.oneOfType([a.default.string,a.default.arrayOf(a.default.string)]),enabled:a.default.bool},c.defaultProps={group:"default",enabled:!0},c.contextTypes={registerPane:a.default.func,unregisterPane:a.default.func},t.default=c,e.exports=t.default},function(e,n){e.exports=t}])},e.exports=r(n(1),n(49))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FrameContextConsumer=t.FrameContext=void 0;var r=n(562);Object.defineProperty(t,"FrameContext",{enumerable:!0,get:function(){return r.FrameContext}}),Object.defineProperty(t,"FrameContextConsumer",{enumerable:!0,get:function(){return r.FrameContextConsumer}});var i,o=n(1137),a=(i=o)&&i.__esModule?i:{default:i};t.default=a.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FrameContextConsumer=t.FrameContextProvider=t.FrameContext=void 0;var r,i=n(1),o=(r=i)&&r.__esModule?r:{default:r};var a=void 0,s=void 0;"undefined"!=typeof document&&(a=document),"undefined"!=typeof window&&(s=window);var l=t.FrameContext=o.default.createContext({document:a,window:s}),u=l.Provider,c=l.Consumer;t.FrameContextProvider=u,t.FrameContextConsumer=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(18)),i=c(n(1)),o=c(n(2)),a=n(11),s=n(48),l=n(16),u=n(164);function c(e){return e&&e.__esModule?e:{default:e}}const d={avatarImage:{name:"1towst8-avatarImage",styles:"width:32px;border-radius:32px;;label:avatarImage;"}},f=(0,r.default)(l.DropdownButton,{target:"e1cy7qi00",label:"AvatarDropdownButton"})({name:"1s7e6lp",styles:"display:inline-block;padding:8px;cursor:pointer;color:#1e2532;background-color:transparent;"}),p=(0,r.default)("img",{target:"e1cy7qi01",label:"AvatarImage"})(d.avatarImage,";"),h=(0,r.default)(l.Icon,{target:"e1cy7qi02",label:"AvatarPlaceholderIcon"})(d.avatarImage,";height:32px;color:#1e2532;background-color:",l.colors.textFieldBorder,";"),m=(0,r.default)("a",{target:"e1cy7qi03",label:"AppHeaderSiteLink"})({name:"1hf3zrx",styles:"font-size:14px;font-weight:400;color:#7b8290;padding:10px 16px;"}),g=(0,r.default)("a",{target:"e1cy7qi04",label:"AppHeaderTestRepoIndicator"})({name:"1hf3zrx",styles:"font-size:14px;font-weight:400;color:#7b8290;padding:10px 16px;"}),v=({imageUrl:e})=>e?(0,a.jsx)(p,{src:e}):(0,a.jsx)(h,{type:"user",size:"large"});v.propTypes={imageUrl:o.default.string};const y=({displayUrl:e,isTestRepo:t,imageUrl:n,onLogoutClick:r,t:o})=>(0,a.jsx)(i.default.Fragment,null,t&&(0,a.jsx)(g,{href:"https://www.netlifycms.org/docs/test-backend",target:"_blank",rel:"noopener noreferrer"},"Test Backend ↗"),e?(0,a.jsx)(m,{href:e,target:"_blank"},(0,u.stripProtocol)(e)):null,(0,a.jsx)(l.Dropdown,{dropdownTopOverlap:"50px",dropdownWidth:"100px",dropdownPosition:"right",renderButton:()=>(0,a.jsx)(f,null,(0,a.jsx)(v,{imageUrl:n}))},(0,a.jsx)(l.DropdownItem,{label:o("ui.settingsDropdown.logOut"),onClick:r})));y.propTypes={displayUrl:o.default.string,isTestRepo:o.default.bool,imageUrl:o.default.string,onLogoutClick:o.default.func.isRequired,t:o.default.func.isRequired};var b=(0,s.translate)()(y);t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(18)),i=u(n(1)),o=u(n(2)),a=n(279),s=n(16),l=n(11);function u(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}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}const f=(0,r.default)(s.Icon,{target:"e191r7590",label:"LoginButtonIcon"})({name:"x0sdsu",styles:"margin-right:18px;"}),p=(0,r.default)("div",{target:"e191r7591",label:"ForkApprovalContainer"})({name:"1u9l27n",styles:"display:flex;flex-flow:column nowrap;justify-content:space-around;flex-grow:0.2;"}),h=(0,r.default)("div",{target:"e191r7592",label:"ForkButtonsContainer"})({name:"qh5xse",styles:"display:flex;flex-flow:row nowrap;justify-content:space-around;"});class m extends i.default.Component{constructor(...e){super(...e),d(this,"state",{}),d(this,"getPermissionToFork",()=>new Promise((e,t)=>{this.setState({requestingFork:!0,approveFork:()=>{this.setState({requestingFork:!1}),e()},refuseFork:()=>{this.setState({requestingFork:!1}),t()}})})),d(this,"handleLogin",e=>{e.preventDefault();const t={base_url:this.props.base_url,site_id:"localhost"===document.location.host.split(":")[0]?"cms.netlify.com":this.props.siteId,auth_endpoint:this.props.authEndpoint},n=new a.NetlifyAuthenticator(t),{open_authoring:r=!1,auth_scope:i=""}=this.props.config.backend,o=i||(r?"public_repo":"repo");n.authenticate({provider:"github",scope:o},(e,t)=>{if(!e)return r?this.loginWithOpenAuthoring(t).then(()=>this.props.onLogin(t)):void this.props.onLogin(t);this.setState({loginError:e.toString()})})}),d(this,"renderLoginButton",()=>{const{inProgress:e,t:t}=this.props;return e||this.state.findingFork?t("auth.loggingIn"):(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(f,{type:"github"}),t("auth.loginWithGitHub"))})}loginWithOpenAuthoring(e){const{backend:t}=this.props;return this.setState({findingFork:!0}),t.authenticateWithFork({userData:e,getPermissionToFork:this.getPermissionToFork}).catch(e=>{throw this.setState({findingFork:!1}),console.error(e),e})}getAuthenticationPageRenderArgs(){const{requestingFork:e}=this.state;if(e){const{approveFork:e,refuseFork:t}=this.state;return{renderPageContent:({LoginButton:n})=>(0,l.jsx)(p,null,(0,l.jsx)("p",null,"Open Authoring is enabled: we need to use a fork on your github account. (If a fork already exists, we'll use that.)"),(0,l.jsx)(h,null,(0,l.jsx)(n,{onClick:e},"Fork the repo"),(0,l.jsx)(n,{onClick:t},"Don't fork the repo")))}}return{renderButtonContent:this.renderLoginButton}}render(){const{inProgress:e,config:t,t:n}=this.props,{loginError:r,requestingFork:i,findingFork:o}=this.state;return(0,l.jsx)(s.AuthenticationPage,c({onLogin:this.handleLogin,loginDisabled:e||o||i,loginErrorMessage:r,logoUrl:t.logo_url,siteUrl:t.site_url},this.getAuthenticationPageRenderArgs(),{t:n}))}}t.default=m,d(m,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,base_url:o.default.string,siteId:o.default.string,authEndpoint:o.default.string,config:o.default.object.isRequired,clearHash:o.default.func,t:o.default.func.isRequired})},function(e,t,n){var r=n(154),i=n(180),o=n(134);e.exports=function(e,t,n){var a=-1,s=(t=r(t,e)).length;for(s||(s=1,e=void 0);++a<s;){var l=null==e?void 0:e[o(t[a])];void 0===l&&(a=s,l=n),e=i(l)?l.call(e):l}return e}},function(e,t,n){(function(n){var r;!function(n,i){e.exports=function(n){"use strict";var i,o=(n=n||{}).Base64,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e.charAt(n)]=n;return t}(a),l=String.fromCharCode,u=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?l(192|t>>>6)+l(128|63&t):l(224|t>>>12&15)+l(128|t>>>6&63)+l(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return l(240|t>>>18&7)+l(128|t>>>12&63)+l(128|t>>>6&63)+l(128|63&t)},c=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,d=function(e){return e.replace(c,u)},f=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[a.charAt(n>>>18),a.charAt(n>>>12&63),t>=2?"=":a.charAt(n>>>6&63),t>=1?"=":a.charAt(63&n)].join("")},p=n.btoa&&"function"==typeof n.btoa?function(e){return n.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,f)},h=function(e){return p(d(String(e)))},m=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},g=function(e,t){return t?m(h(e)):h(e)};n.Uint8Array&&(i=function(e,t){for(var n="",r=0,i=e.length;r<i;r+=3){var o=e[r],s=e[r+1],l=e[r+2],u=o<<16|s<<8|l;n+=a.charAt(u>>>18)+a.charAt(u>>>12&63)+(void 0!==s?a.charAt(u>>>6&63):"=")+(void 0!==l?a.charAt(63&u):"=")}return t?m(n):n});var v,y=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return l(55296+(t>>>10))+l(56320+(1023&t));case 3:return l((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return l((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},_=function(e){return e.replace(y,b)},w=function(e){var t=e.length,n=t%4,r=(t>0?s[e.charAt(0)]<<18:0)|(t>1?s[e.charAt(1)]<<12:0)|(t>2?s[e.charAt(2)]<<6:0)|(t>3?s[e.charAt(3)]:0),i=[l(r>>>16),l(r>>>8&255),l(255&r)];return i.length-=[0,0,2,1][n],i.join("")},x=n.atob&&"function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/\S{1,4}/g,w)},k=function(e){return x(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},E=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},S=function(e){return function(e){return _(x(e))}(E(e))};n.Uint8Array&&(v=function(e){return Uint8Array.from(k(E(e)),(function(e){return e.charCodeAt(0)}))});var O=function(){var e=n.Base64;return n.Base64=o,e};if(n.Base64={VERSION:"2.6.4",atob:k,btoa:p,fromBase64:S,toBase64:g,utob:d,encode:g,encodeURI:function(e){return g(e,!0)},btou:_,decode:S,noConflict:O,fromUint8Array:i,toUint8Array:v},"function"==typeof Object.defineProperty){var T=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",T((function(){return S(this)}))),Object.defineProperty(String.prototype,"toBase64",T((function(e){return g(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",T((function(){return g(this,!0)})))}}n.Meteor&&(Base64=n.Base64);e.exports?e.exports.Base64=n.Base64:void 0===(r=function(){return n.Base64}.apply(t,[]))||(e.exports=r);return{Base64:n.Base64}}(n)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:this)}).call(this,n(43))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return a(e,[])};var r,i=(r=n(568))&&r.__esModule?r:{default:r};function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){switch(o(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(i.default)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==r){var o=r.call(e);if(o!==e)return"string"==typeof o?o:a(o,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(a(e[o],t));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.default=r},function(e,t,n){"use strict";function r(e){for(var t=null,n=1;n<e.length;n++){var r=e[n],o=i(r);if(o!==r.length&&((null===t||o<t)&&0===(t=o)))break}return null===t?0:t}function i(e){for(var t=0;t<e.length&&(" "===e[t]||"\t"===e[t]);)t++;return t}function o(e){return i(e)===e.length}Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringValue=function(e){var t=e.split(/\r\n|[\n\r]/g),n=r(t);if(0!==n)for(var i=1;i<t.length;i++)t[i]=t[i].slice(n);for(;t.length>0&&o(t[0]);)t.shift();for(;t.length>0&&o(t[t.length-1]);)t.pop();return t.join("\n")},t.getBlockStringIndentation=r,t.printBlockString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a=!r||o||n,s="";!a||r&&i||(s+="\n"+t);s+=t?e.replace(/\n/g,"\n"+t):e,a&&(s+="\n");return'"""'+s.replace(/"""/g,'\\"""')+'"""'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!Boolean(e))throw new Error(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,i.default&&(e.prototype[i.default]=t)};var r,i=(r=n(568))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new r.GraphQLError("Syntax Error: ".concat(n),void 0,e,[t])};var r=n(1163)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;for(;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0;var r=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});t.TokenKind=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileEntry=t.treeEntry=t.pullRequest=t.branch=t.object=t.blobWithText=t.repository=void 0;var r,i=(r=n(374))&&r.__esModule?r:{default:r};const o=i.default`
+ fragment RepositoryParts on Repository {
+ id
+ isFork
+ }
+`;t.repository=o;const a=i.default`
+ fragment BlobWithTextParts on Blob {
+ id
+ text
+ is_binary: isBinary
+ }
+`;t.blobWithText=a;const s=i.default`
+ fragment ObjectParts on GitObject {
+ id
+ sha: oid
+ }
+`;t.object=s;const l=i.default`
+ fragment BranchParts on Ref {
+ commit: target {
+ ...ObjectParts
+ }
+ id
+ name
+ prefix
+ repository {
+ ...RepositoryParts
+ }
+ }
+ ${s}
+ ${o}
+`;t.branch=l;const u=i.default`
+ fragment PullRequestParts on PullRequest {
+ id
+ baseRefName
+ baseRefOid
+ body
+ headRefName
+ headRefOid
+ number
+ state
+ title
+ merged_at: mergedAt
+ repository {
+ ...RepositoryParts
+ }
+ labels(last: 100) {
+ nodes {
+ name
+ }
+ }
+ }
+ ${o}
+`;t.pullRequest=u;const c=i.default`
+ fragment TreeEntryParts on TreeEntry {
+ path: name
+ sha: oid
+ type
+ mode
+ }
+`;t.treeEntry=c;const d=i.default`
+ fragment FileEntryParts on TreeEntry {
+ name
+ sha: oid
+ type
+ blob: object {
+ ... on Blob {
+ size: byteSize
+ }
+ }
+ }
+`;t.fileEntry=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(18)),i=u(n(1)),o=u(n(2)),a=n(279),s=n(16),l=n(11);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"e1224wm40",label:"LoginButtonIcon"})({name:"x0sdsu",styles:"margin-right:18px;"});class f extends i.default.Component{constructor(...e){super(...e),c(this,"state",{}),c(this,"handleLogin",e=>{e.preventDefault(),this.auth.authenticate({provider:"gitlab",scope:"api"},(e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)})})}componentDidMount(){const{auth_type:e="",base_url:t="https://gitlab.com",auth_endpoint:n="oauth/authorize",app_id:r=""}=this.props.config.backend;"implicit"===e?(this.auth=new a.ImplicitAuthenticator({base_url:t,auth_endpoint:n,app_id:r,clearHash:this.props.clearHash}),this.auth.completeAuth((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)})):this.auth=new a.NetlifyAuthenticator({base_url:this.props.base_url,site_id:"localhost"===document.location.host.split(":")[0]?"cms.netlify.com":this.props.siteId,auth_endpoint:this.props.authEndpoint})}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,siteUrl:t.site_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"gitlab"})," ",n(e?"auth.loggingIn":"auth.loginWithGitLab")),t:n})}}t.default=f,c(f,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,base_url:o.default.string,siteId:o.default.string,authEndpoint:o.default.string,config:o.default.object.isRequired,clearHash:o.default.func,t:o.default.func.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.getMaxAccess=t.API_NAME=void 0;var r=d(n(121)),i=d(n(565)),o=d(n(170)),a=d(n(124)),s=n(37),l=n(566),u=n(4),c=n(89);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m,g;t.API_NAME="GitLab",function(e){e.CREATE="create",e.DELETE="delete",e.MOVE="move",e.UPDATE="update"}(m||(m={})),function(e){e.Pending="pending",e.Running="running",e.Success="success",e.Failed="failed",e.Canceled="canceled"}(g||(g={}));const v=e=>e.reduce((e,t)=>t.group_access_level>e.group_access_level?t:e,e[0]);t.getMaxAccess=v;t.default=class{constructor(e){h(this,"apiRoot",void 0),h(this,"token",void 0),h(this,"branch",void 0),h(this,"useOpenAuthoring",void 0),h(this,"repo",void 0),h(this,"repoURL",void 0),h(this,"commitAuthor",void 0),h(this,"squashMerges",void 0),h(this,"initialWorkflowStatus",void 0),h(this,"withAuthorizationHeaders",e=>{const t=s.unsentRequest.withHeaders(this.token?{Authorization:"Bearer "+this.token}:{},e);return Promise.resolve(t)}),h(this,"buildRequest",async e=>{const t=s.unsentRequest.withRoot(this.apiRoot)(e),n=await this.withAuthorizationHeaders(t);if(n.has("cache"))return n;return s.unsentRequest.withNoCache(n)}),h(this,"request",async e=>{try{return(0,s.requestWithBackoff)(this,e)}catch(e){throw new s.APIError(e.message,null,"GitLab")}}),h(this,"responseToJSON",(0,s.responseParser)({format:"json",apiName:"GitLab"})),h(this,"responseToBlob",(0,s.responseParser)({format:"blob",apiName:"GitLab"})),h(this,"responseToText",(0,s.responseParser)({format:"text",apiName:"GitLab"})),h(this,"requestJSON",e=>this.request(e).then(this.responseToJSON)),h(this,"requestText",e=>this.request(e).then(this.responseToText)),h(this,"user",()=>this.requestJSON("/user")),h(this,"WRITE_ACCESS",30),h(this,"MAINTAINER_ACCESS",40),h(this,"hasWriteAccess",async()=>{const{shared_with_groups:e,permissions:t}=await this.requestJSON(this.repoURL),{project_access:n,group_access:r}=t;if(n&&n.access_level>=this.WRITE_ACCESS)return!0;if(r&&r.access_level>=this.WRITE_ACCESS)return!0;if(e&&e.length>0){const t=v(e);if(t.group_access_level>=this.MAINTAINER_ACCESS)return!0;if(t.group_access_level>=this.WRITE_ACCESS)try{const e=await this.getDefaultBranch();if(e.developers_can_merge&&e.developers_can_push)return!0}catch(e){console.log("Failed getting default branch",e)}}return!1}),h(this,"readFile",async(e,t,{parseText:n=!0,branch:r=this.branch}={})=>await(0,s.readFile)(t,async()=>await this.request({url:`${this.repoURL}/repository/files/${encodeURIComponent(e)}/raw`,params:{ref:r},cache:"no-store"}).then(n?this.responseToText:this.responseToBlob),s.localForage,n)),h(this,"getCursorFromHeaders",e=>{const t=parseInt(e.get("X-Page"),10),n=parseInt(e.get("X-Total-Pages"),10),r=parseInt(e.get("X-Per-Page"),10),i=parseInt(e.get("X-Total"),10),o=(0,s.parseLinkHeader)(e.get("Link")),a=(0,u.Map)(o).keySeq().flatMap(e=>"prev"===e&&t>1||"next"===e&&t<n||"first"===e&&t>1||"last"===e&&t<n?[e]:[]);return s.Cursor.create({actions:a,meta:{page:t,count:i,pageSize:r,pageCount:n},data:{links:o}})}),h(this,"getCursor",({headers:e})=>this.getCursorFromHeaders(e)),h(this,"fetchCursor",e=>(0,a.default)([s.unsentRequest.withMethod("HEAD"),this.request,(0,s.then)(this.getCursor)])(e)),h(this,"fetchCursorAndEntries",e=>(0,a.default)([s.unsentRequest.withMethod("GET"),this.request,e=>Promise.all([e.then(this.getCursor),e.then(this.responseToJSON).catch(e=>{if(404===e.status)return[];throw e})]),(0,s.then)(([e,t])=>({cursor:e,entries:t}))])(e)),h(this,"listFiles",async(e,t=!1)=>{const{entries:n,cursor:r}=await this.fetchCursorAndEntries({url:this.repoURL+"/repository/tree",params:{path:e,ref:this.branch,recursive:t}});return{files:n.filter(({type:e})=>"blob"===e),cursor:r}}),h(this,"traverseCursor",async(e,t)=>{const n=e.data.getIn(["links",t]),{entries:r,cursor:i}=await this.fetchCursorAndEntries(n);return{entries:r.filter(({type:e})=>"blob"===e),cursor:i}}),h(this,"listAllFiles",async(e,t=!1,n=this.branch)=>{const r=[];let{cursor:i,entries:o}=await this.fetchCursorAndEntries({url:this.repoURL+"/repository/tree",params:{path:e,ref:n,per_page:100,recursive:t}});for(r.push(...o);i&&i.actions.has("next");){const e=i.data.getIn(["links","next"]),{cursor:t,entries:n}=await this.fetchCursorAndEntries(e);r.push(...n),i=t}return r.filter(({type:e})=>"blob"===e)}),h(this,"toBase64",e=>Promise.resolve(l.Base64.encode(e))),h(this,"fromBase64",e=>l.Base64.decode(e)),h(this,"deleteFile",(e,t)=>{const n={commit_message:t,branch:this.branch};if(this.commitAuthor){const{name:e,email:t}=this.commitAuthor;n.author_name=e,n.author_email=t}return(0,a.default)([s.unsentRequest.withMethod("DELETE"),s.unsentRequest.withParams(n),this.request])(`${this.repoURL}/repository/files/${encodeURIComponent(e)}`)}),this.apiRoot=e.apiRoot||"https://gitlab.com/api/v4",this.token=e.token||!1,this.branch=e.branch||"master",this.repo=e.repo||"",this.repoURL="/projects/"+encodeURIComponent(this.repo),this.squashMerges=e.squashMerges,this.initialWorkflowStatus=e.initialWorkflowStatus}async readFileMetadata(e,t){return await(0,s.readFileMetadata)(t,async()=>{try{const t=(await this.requestJSON({url:this.repoURL+"/repository/commits",params:{path:e,ref_name:this.branch}}))[0];return{author:t.author_name||t.author_email,updatedOn:t.authored_date}}catch(e){return{author:"",updatedOn:""}}},s.localForage)}async getBranch(e){return await this.requestJSON(`${this.repoURL}/repository/branches/${encodeURIComponent(e)}`)}async uploadAndCommit(e,{commitMessage:t="",branch:n=this.branch,newBranch:r=!1}){const i=e.map(e=>p(p({action:e.action,file_path:e.path},e.oldPath?{previous_path:e.oldPath}:{}),void 0!==e.base64Content?{content:e.base64Content,encoding:"base64"}:{})),o=p({branch:n,commit_message:t,actions:i},r?{start_branch:this.branch}:{});if(this.commitAuthor){const{name:e,email:t}=this.commitAuthor;o.author_name=e,o.author_email=t}try{return await this.requestJSON({url:this.repoURL+"/repository/commits",method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(o)})}catch(e){const t=e.message||"";throw r&&t.includes("Could not update "+n)&&await(0,s.throwOnConflictingBranches)(n,e=>this.getBranch(e),"GitLab"),e}}async getCommitItems(e,t){const n=await Promise.all(e.map(async e=>{const[n,a]=await Promise.all([(0,i.default)(e,"toBase64",(0,o.default)(this.toBase64,e.raw)),this.isFileExists(e.path,t)]);let s=m.CREATE,l=(0,r.default)(e.path,"/"),u=void 0;return a&&(u=e.newPath&&l,s=e.newPath&&e.newPath!==u?m.MOVE:m.UPDATE,l=e.newPath?(0,r.default)(e.newPath,"/"):l),{action:s,base64Content:n,path:l,oldPath:u}}));for(const e of n.filter(e=>e.oldPath&&e.action===m.MOVE)){const r=(0,c.dirname)(e.oldPath),i=(0,c.dirname)(e.path);(await this.listAllFiles(r,!0,t)).filter(t=>t.path!==e.oldPath).forEach(e=>{n.push({action:m.MOVE,path:e.path.replace(r,i),oldPath:e.path})})}return n}async persistFiles(e,t,n){const r=e?[e,...t]:t;if(n.useWorkflow)return this.editorialWorkflowGit(r,e,n);{const e=await this.getCommitItems(r,this.branch);return this.uploadAndCommit(e,{commitMessage:n.commitMessage})}}async getMergeRequests(e){return(await this.requestJSON({url:this.repoURL+"/merge_requests",params:p({state:"opened",labels:"Any",target_branch:this.branch},e?{source_branch:e}:{})})).filter(e=>e.source_branch.startsWith(s.CMS_BRANCH_PREFIX)&&e.labels.some(s.isCMSLabel))}async listUnpublishedBranches(){console.log("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold");return(await this.getMergeRequests()).map(e=>e.source_branch)}async getFileId(e,t){return(await this.request({method:"HEAD",url:`${this.repoURL}/repository/files/${encodeURIComponent(e)}`,params:{ref:t}})).headers.get("X-Gitlab-Blob-Id")}async isFileExists(e,t){return await this.requestText({method:"HEAD",url:`${this.repoURL}/repository/files/${encodeURIComponent(e)}`,params:{ref:t}}).then(()=>!0).catch(e=>{if(e instanceof s.APIError&&404===e.status)return!1;throw e})}async getBranchMergeRequest(e){const t=await this.getMergeRequests(e);if(t.length<=0)throw new s.EditorialWorkflowError("content is not under editorial workflow",!0);return t[0]}async getDifferences(e,t=this.branch){if(e===t)return[];const n=await this.requestJSON({url:this.repoURL+"/repository/compare",params:{from:t,to:e}});if(n.diffs.length>=1e3)throw new s.APIError("Diff limit reached",null,"GitLab");return n.diffs.map(e=>{let t="modified";return e.new_file?t="added":e.deleted_file?t="deleted":e.renamed_file&&(t="renamed"),{status:t,oldPath:e.old_path,newPath:e.new_path,newFile:e.new_file,path:e.new_path||e.old_path,binary:e.diff.startsWith("Binary")||/.svg$/.test(e.new_path)}})}async retrieveUnpublishedEntryData(e){const{collection:t,slug:n}=(0,s.parseContentKey)(e),r=(0,s.branchFromContentKey)(e),i=await this.getBranchMergeRequest(r),o=await this.getDifferences(i.sha),a=await Promise.all(o.map(async e=>{const{path:t,newFile:n}=e;return{id:await this.getFileId(t,r),path:t,newFile:n}})),l=i.labels.find(s.isCMSLabel);return{collection:t,slug:n,status:(0,s.labelToStatus)(l),diffs:a,updatedAt:i.updated_at}}async rebaseMergeRequest(e){let t=await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}/rebase`}),n=1;for(;t.rebase_in_progress&&(await new Promise(e=>setTimeout(e,1e3)),t=await this.requestJSON({url:`${this.repoURL}/merge_requests/${e.iid}`,params:{include_rebase_in_progress:!0}}),t.rebase_in_progress&&!(n>10));)n++;if(t.rebase_in_progress)throw new s.APIError("Timed out rebasing merge request",null,"GitLab");if(t.merge_error)throw new s.APIError("Rebase error: "+t.merge_error,null,"GitLab")}async createMergeRequest(e,t,n){await this.requestJSON({method:"POST",url:this.repoURL+"/merge_requests",params:{source_branch:e,target_branch:this.branch,title:t,description:s.DEFAULT_PR_BODY,labels:(0,s.statusToLabel)(n),remove_source_branch:!0,squash:this.squashMerges}})}async editorialWorkflowGit(e,t,n){const r=(0,s.generateContentKey)(n.collectionName,t.slug),i=(0,s.branchFromContentKey)(r);if(n.unpublished||!1){const t=await this.getBranchMergeRequest(i);await this.rebaseMergeRequest(t);const[r,o]=await Promise.all([this.getCommitItems(e,i),this.getDifferences(i)]);for(const e of o.filter(e=>e.binary))r.some(t=>t.path===e.path)||r.push({action:m.DELETE,path:e.newPath});await this.uploadAndCommit(r,{commitMessage:n.commitMessage,branch:i})}else{const t=await this.getCommitItems(e,this.branch);await this.uploadAndCommit(t,{commitMessage:n.commitMessage,branch:i,newBranch:!0}),await this.createMergeRequest(i,n.commitMessage,n.status||this.initialWorkflowStatus)}}async updateMergeRequestLabels(e,t){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}`,params:{labels:t.join(",")}})}async updateUnpublishedEntryStatus(e,t,n){const r=(0,s.generateContentKey)(e,t),i=(0,s.branchFromContentKey)(r),o=await this.getBranchMergeRequest(i),a=[...o.labels.filter(e=>!(0,s.isCMSLabel)(e)),(0,s.statusToLabel)(n)];await this.updateMergeRequestLabels(o,a)}async mergeMergeRequest(e){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}/merge`,params:{merge_commit_message:s.MERGE_COMMIT_MESSAGE,squash_commit_message:s.MERGE_COMMIT_MESSAGE,squash:this.squashMerges,should_remove_source_branch:!0}})}async publishUnpublishedEntry(e,t){const n=(0,s.generateContentKey)(e,t),r=(0,s.branchFromContentKey)(n),i=await this.getBranchMergeRequest(r);await this.mergeMergeRequest(i)}async closeMergeRequest(e){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}`,params:{state_event:"close"}})}async getDefaultBranch(){return await this.getBranch(this.branch)}async isShaExistsInBranch(e,t){return(await this.requestJSON({url:`${this.repoURL}/repository/commits/${t}/refs`,params:{type:"branch"}})).some(t=>t.name===e)}async deleteBranch(e){await this.request({method:"DELETE",url:`${this.repoURL}/repository/branches/${encodeURIComponent(e)}`})}async deleteUnpublishedEntry(e,t){const n=(0,s.generateContentKey)(e,t),r=(0,s.branchFromContentKey)(n),i=await this.getBranchMergeRequest(r);await this.closeMergeRequest(i),await this.deleteBranch(r)}async getMergeRequestStatues(e,t){return await this.requestJSON({url:`${this.repoURL}/repository/commits/${e.sha}/statuses`,params:{ref:t}})}async getStatuses(e,t){const n=(0,s.generateContentKey)(e,t),r=(0,s.branchFromContentKey)(n),i=await this.getBranchMergeRequest(r);return(await this.getMergeRequestStatues(i,r)).map(({name:e,status:t,target_url:n})=>({context:e,state:t===g.Success?s.PreviewState.Success:s.PreviewState.Other,target_url:n}))}async getUnpublishedEntrySha(e,t){const n=(0,s.generateContentKey)(e,t),r=(0,s.branchFromContentKey)(n);return(await this.getBranchMergeRequest(r)).sha}}},function(e,t,n){var r=n(120),i=n(1175),o=n(137),a=n(1176),s=o((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]}));e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONHTTPError=t.TextHTTPError=t.HTTPError=t.getPagination=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1179);function a(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}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"getPagination",{enumerable:!0,get:function(){return o.getPagination}});var u=t.HTTPError=function(e){function t(e){a(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.statusText));return n.name=n.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(n,n.constructor):n.stack=new Error(e.statusText).stack,n.status=e.status,n}return l(t,e),t}(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)),c=t.TextHTTPError=function(e){function t(e,n){a(this,t);var r=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.data=n,r}return l(t,e),t}(u),d=t.JSONHTTPError=function(e){function t(e,n){a(this,t);var r=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.json=n,r}return l(t,e),t}(u),f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments[1];a(this,e),this.apiURL=t,this.apiURL.match(/\/[^\/]?/)&&(this._sameOrigin=!0),this.defaultHeaders=n&&n.defaultHeaders||{}}return i(e,[{key:"headers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r({},this.defaultHeaders,{"Content-Type":"application/json"},e)}},{key:"parseJsonResponse",value:function(e){return e.json().then((function(t){if(!e.ok)return Promise.reject(new d(e,t));var n=(0,o.getPagination)(e);return n?{pagination:n,items:t}:t}))}},{key:"request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.headers(n.headers||{});return this._sameOrigin&&(n.credentials=n.credentials||"same-origin"),fetch(this.apiURL+e,r({},n,{headers:i})).then((function(e){var n=e.headers.get("Content-Type");return n&&n.match(/json/)?t.parseJsonResponse(e):e.ok?e.text().then((function(e){})):e.text().then((function(t){return Promise.reject(new c(e,t))}))}))}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BitbucketBackend",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),t.NetlifyCmsBackendBitbucket=void 0;var r=a(n(1186)),i=a(n(582)),o=a(n(581));function a(e){return e&&e.__esModule?e:{default:e}}const s={BitbucketBackend:r.default,API:i.default,AuthenticationPage:o.default};t.NetlifyCmsBackendBitbucket=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(18)),i=u(n(1)),o=u(n(2)),a=n(279),s=n(16),l=n(11);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"eu4xeqg0",label:"LoginButtonIcon"})({name:"x0sdsu",styles:"margin-right:18px;"});class f extends i.default.Component{constructor(...e){super(...e),c(this,"state",{}),c(this,"handleLogin",e=>{e.preventDefault(),this.auth.authenticate(this.authSettings,(e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)})})}componentDidMount(){const{auth_type:e=""}=this.props.config.backend;if("implicit"===e){const{base_url:e="https://bitbucket.org",auth_endpoint:t="site/oauth2/authorize",app_id:n=""}=this.props.config.backend;this.auth=new a.ImplicitAuthenticator({base_url:e,auth_endpoint:t,app_id:n,clearHash:this.props.clearHash}),this.auth.completeAuth((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}),this.authSettings={scope:"repository:write"}}else this.auth=new a.NetlifyAuthenticator({base_url:this.props.base_url,site_id:"localhost"===document.location.host.split(":")[0]?"cms.netlify.com":this.props.siteId,auth_endpoint:this.props.authEndpoint}),this.authSettings={provider:"bitbucket",scope:"repo"}}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,siteUrl:t.site_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"bitbucket"}),n(e?"auth.loggingIn":"auth.loginWithBitbucket")),t:n})}}t.default=f,c(f,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,base_url:o.default.string,siteId:o.default.string,authEndpoint:o.default.string,config:o.default.object.isRequired,clearHash:o.default.func,t:o.default.func.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_NAME=void 0;var r,i,o=d(n(82)),a=d(n(124)),s=n(37),l=n(89),u=n(107),c=n(1187);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}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}!function(e){e.MERGED="MERGED",e.SUPERSEDED="SUPERSEDED",e.OPEN="OPEN",e.DECLINED="DECLINED"}(r||(r={})),function(e){e.Successful="SUCCESSFUL",e.Failed="FAILED",e.InProgress="INPROGRESS",e.Stopped="STOPPED"}(i||(i={}));t.API_NAME="Bitbucket";const h=e=>e&&404===e.status?(console.log("This 404 was expected and handled appropriately."),{size:0,values:[]}):Promise.reject(e);t.default=class{constructor(e){p(this,"apiRoot",void 0),p(this,"branch",void 0),p(this,"repo",void 0),p(this,"requestFunction",void 0),p(this,"repoURL",void 0),p(this,"commitAuthor",void 0),p(this,"mergeStrategy",void 0),p(this,"initialWorkflowStatus",void 0),p(this,"buildRequest",e=>{const t=s.unsentRequest.withRoot(this.apiRoot)(e);if(t.has("cache"))return t;return s.unsentRequest.withNoCache(t)}),p(this,"request",e=>{try{return(0,s.requestWithBackoff)(this,e)}catch(e){throw new s.APIError(e.message,null,"Bitbucket")}}),p(this,"responseToJSON",(0,s.responseParser)({format:"json",apiName:"Bitbucket"})),p(this,"responseToBlob",(0,s.responseParser)({format:"blob",apiName:"Bitbucket"})),p(this,"responseToText",(0,s.responseParser)({format:"text",apiName:"Bitbucket"})),p(this,"requestJSON",e=>this.request(e).then(this.responseToJSON)),p(this,"requestText",e=>this.request(e).then(this.responseToText)),p(this,"user",()=>this.requestJSON("/user")),p(this,"hasWriteAccess",async()=>{const e=await this.request(this.repoURL);if(404===e.status)throw Error("Repo not found");return e.ok}),p(this,"getBranch",async e=>await this.requestJSON(`${this.repoURL}/refs/branches/${e}`)),p(this,"branchCommitSha",async e=>{const{target:{hash:t}}=await this.getBranch(e);return t}),p(this,"defaultBranchCommitSha",()=>this.branchCommitSha(this.branch)),p(this,"isFile",({type:e})=>"commit_file"===e),p(this,"getFileId",(e,t)=>`${e}/${t}`),p(this,"processFile",e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,type:e.type,path:e.path,name:(0,s.basename)(e.path)},e.commit&&e.commit.hash?{id:this.getFileId(e.commit.hash,e.path)}:{})),p(this,"processFiles",e=>e.filter(this.isFile).map(this.processFile)),p(this,"readFile",async(e,t,{parseText:n=!0,branch:r=this.branch,head:i=""}={})=>await(0,s.readFile)(t,async()=>{const t=i||await this.branchCommitSha(r);return await this.request({url:`${this.repoURL}/src/${t}/${e}`,cache:"no-store"}).then(n?this.responseToText:this.responseToBlob)},s.localForage,n)),p(this,"getEntriesAndCursor",e=>{const{size:t,page:n,pagelen:r,next:i,previous:o,values:a}=e,l=r&&t?Math.ceil(t/r):void 0;return{entries:a,cursor:s.Cursor.create({actions:[...i?["next"]:[],...o?["prev"]:[]],meta:{page:n,count:t,pageSize:r,pageCount:l},data:{links:{next:i,prev:o}}})}}),p(this,"listFiles",async(e,t=1,n,r)=>{const i=await this.branchCommitSha(r),o=await this.requestJSON({url:`${this.repoURL}/src/${i}/${e}`,params:{max_depth:t,pagelen:n}}).catch(h),{entries:a,cursor:s}=this.getEntriesAndCursor(o);return{entries:this.processFiles(a),cursor:s}}),p(this,"traverseCursor",async(e,t)=>(0,a.default)([this.requestJSON,(0,s.then)(this.getEntriesAndCursor),(0,s.then)(({cursor:e,entries:t})=>({cursor:e,entries:this.processFiles(t)}))])(e.data.getIn(["links",t]))),p(this,"listAllFiles",async(e,t,n)=>{const{cursor:r,entries:i}=await this.listFiles(e,t,100,n),o=[...i];let a=r;for(;a&&a.actions.has("next");){const{cursor:e,entries:t}=await this.traverseCursor(a,"next");o.push(...t),a=e}return this.processFiles(o)}),p(this,"deleteFile",(e,t)=>{const n=new FormData;if(n.append("files",e),n.append("branch",this.branch),t&&n.append("message",t),this.commitAuthor){const{name:e,email:t}=this.commitAuthor;n.append("author",`${e} <${t}>`)}return(0,a.default)([s.unsentRequest.withMethod("POST"),s.unsentRequest.withBody(n),this.request])(this.repoURL+"/src")}),this.apiRoot=e.apiRoot||"https://api.bitbucket.org/2.0",this.branch=e.branch||"master",this.repo=e.repo||"",this.requestFunction=e.requestFunction||s.unsentRequest.performRequest,this.hasWriteAccess=e.hasWriteAccess||this.hasWriteAccess,this.repoURL=this.repo?"/repositories/"+this.repo:"",this.mergeStrategy=e.squashMerges?"squash":"merge_commit",this.initialWorkflowStatus=e.initialWorkflowStatus}async readFileMetadata(e,t){return await(0,s.readFileMetadata)(t,async()=>{try{const{values:t}=await this.requestJSON({url:this.repoURL+"/commits",params:{path:e,include:this.branch}}),n=t[0];return{author:n.author.user?n.author.user.display_name||n.author.user.nickname:n.author.raw,updatedOn:n.date}}catch(e){return{author:"",updatedOn:""}}},s.localForage)}async isShaExistsInBranch(e,t){const{values:n}=await this.requestJSON({url:this.repoURL+"/commits",params:{include:e,pagelen:100}}).catch(t=>(console.log(`Failed getting commits for branch '${e}'`,t),[]));return n.some(e=>e.hash===t)}async uploadFiles(e,{commitMessage:t,branch:n,parentSha:r}){const i=new FormData,a=[];e.forEach(e=>{if(e.delete)i.append("files",e.path);else if(e.newPath){const t=(0,o.default)(e,"fileObj",new Blob([e.raw]));a.push({from:e.path,to:e.newPath,contentBlob:t})}else{const t=(0,o.default)(e,"fileObj",new Blob([e.raw]));i.append(e.path,t,(0,s.basename)(e.path))}});for(const{from:e,to:t,contentBlob:o}of a){const a=(0,l.dirname)(e),u=(0,l.dirname)(t),c=r?this.branch:n,d=await this.listAllFiles(a,100,c);for(const t of d){i.append("files",t.path);const n=t.path===e?o:await this.readFile(t.path,null,{branch:c,parseText:!1});i.append(t.path.replace(a,u),n,(0,s.basename)(t.path))}}if(t&&i.append("message",t),this.commitAuthor){const{name:e,email:t}=this.commitAuthor;i.append("author",`${e} <${t}>`)}i.append("branch",n),r&&i.append("parents",r);try{await this.requestText({url:this.repoURL+"/src",method:"POST",body:i})}catch(e){const t=e.message||"";throw r&&t.includes("Something went wrong")&&await(0,s.throwOnConflictingBranches)(n,e=>this.getBranch(e),"Bitbucket"),e}return e}async persistFiles(e,t,n){const r=e?[e,...t]:t;return n.useWorkflow?this.editorialWorkflowGit(r,e,n):this.uploadFiles(r,{commitMessage:n.commitMessage,branch:this.branch})}async addPullRequestComment(e,t){await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests/${e.id}/comments`,headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({content:{raw:t}})})}async getPullRequestLabel(e){const t=await this.requestJSON({url:`${this.repoURL}/pullrequests/${e}/comments`,params:{pagelen:100}});return t.values.map(e=>e.content.raw)[t.values.length-1]}async createPullRequest(e,t,n){const r=await this.requestJSON({method:"POST",url:this.repoURL+"/pullrequests",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({title:t,source:{branch:{name:e}},destination:{branch:{name:this.branch}},description:s.DEFAULT_PR_BODY,close_source_branch:!0})});await this.addPullRequestComment(r,(0,s.statusToLabel)(n))}async getDifferences(e,t=this.branch){if(e===t)return[];const n=await this.requestText({url:`${this.repoURL}/diff/${e}..${t}`,params:{binary:!1}});return(0,c.parse)(n).map(e=>{var t,n;const r=(null===(t=e.oldPath)||void 0===t?void 0:t.replace(/b\//,""))||"",i=(null===(n=e.newPath)||void 0===n?void 0:n.replace(/b\//,""))||"",o=i||r;return{oldPath:r,newPath:i,status:e.status,newFile:"added"===e.status,path:o,binary:e.binary||/.svg$/.test(o)}})}async editorialWorkflowGit(e,t,n){const r=(0,s.generateContentKey)(n.collectionName,t.slug),i=(0,s.branchFromContentKey)(r);if(n.unpublished||!1){const t=await this.getDifferences(i),r=[];for(const n of t.filter(e=>e.binary&&"deleted"!==e.status))e.some(e=>e.path===n.path)||r.push({path:n.path,delete:!0});await this.uploadFiles([...e,...r],{commitMessage:n.commitMessage,branch:i})}else{const t=await this.branchCommitSha(this.branch);await this.uploadFiles(e,{commitMessage:n.commitMessage,branch:i,parentSha:t}),await this.createPullRequest(i,n.commitMessage,n.status||this.initialWorkflowStatus)}}async getPullRequests(e){const t=e?`source.branch.name = "${e}"`:`source.branch.name ~ "${s.CMS_BRANCH_PREFIX}/"`,n=await this.requestJSON({url:this.repoURL+"/pullrequests",params:{pagelen:50,q:u.oneLine`
+ source.repository.full_name = "${this.repo}"
+ AND state = "${r.OPEN}"
+ AND destination.branch.name = "${this.branch}"
+ AND comment_count > 0
+ AND ${t}
+ `}}),i=await Promise.all(n.values.map(e=>this.getPullRequestLabel(e.id)));return n.values.filter((e,t)=>(0,s.isCMSLabel)(i[t]))}async getBranchPullRequest(e){const t=await this.getPullRequests(e);if(t.length<=0)throw new s.EditorialWorkflowError("content is not under editorial workflow",!0);return t[0]}async listUnpublishedBranches(){console.log("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold");return(await this.getPullRequests()).map(e=>e.source.branch.name)}async retrieveUnpublishedEntryData(e){const{collection:t,slug:n}=(0,s.parseContentKey)(e),r=(0,s.branchFromContentKey)(e),i=await this.getBranchPullRequest(r),o=await this.getDifferences(r),a=await this.getPullRequestLabel(i.id),l=(0,s.labelToStatus)(a),u=i.updated_on;return{collection:t,slug:n,status:l,diffs:o.filter(e=>"deleted"!==e.status).map(e=>({path:e.path,newFile:e.newFile,id:""})),updatedAt:u}}async updateUnpublishedEntryStatus(e,t,n){const r=(0,s.generateContentKey)(e,t),i=(0,s.branchFromContentKey)(r),o=await this.getBranchPullRequest(i);await this.addPullRequestComment(o,(0,s.statusToLabel)(n))}async mergePullRequest(e){await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests/${e.id}/merge`,headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({message:s.MERGE_COMMIT_MESSAGE,close_source_branch:!0,merge_strategy:this.mergeStrategy})})}async publishUnpublishedEntry(e,t){const n=(0,s.generateContentKey)(e,t),r=(0,s.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.mergePullRequest(i)}async declinePullRequest(e){await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests/${e.id}/decline`})}async deleteBranch(e){await this.request({method:"DELETE",url:`${this.repoURL}/refs/branches/${e}`})}async deleteUnpublishedEntry(e,t){const n=(0,s.generateContentKey)(e,t),r=(0,s.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.declinePullRequest(i),await this.deleteBranch(r)}async getPullRequestStatuses(e){return(await this.requestJSON({url:`${this.repoURL}/pullrequests/${e.id}/statuses`,params:{pagelen:100}})).values}async getStatuses(e,t){const n=(0,s.generateContentKey)(e,t),r=(0,s.branchFromContentKey)(n),o=await this.getBranchPullRequest(r);return(await this.getPullRequestStatuses(o)).map(({key:e,state:t,url:n})=>({context:e,state:t===i.Successful?s.PreviewState.Success:s.PreviewState.Other,target_url:n}))}async getUnpublishedEntrySha(e,t){const n=(0,s.generateContentKey)(e,t),r=(0,s.branchFromContentKey)(n);return(await this.getBranchPullRequest(r)).destination.commit.hash}}},function(e,t,n){e.exports=c,c.Minimatch=d;var r={sep:"/"};try{r=n(89)}catch(e){}var i=c.GLOBSTAR=d.GLOBSTAR={},o=n(1190),a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},s="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{});var l=/\/+/;function u(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function c(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function f(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}c.filter=function(e,t){return t=t||{},function(n,r,i){return c(n,e,t)}},c.defaults=function(e){if(!e||!Object.keys(e).length)return c;var t=c,n=function(n,r,i){return t.minimatch(n,r,u(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,u(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?c.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(l)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,o=e.length;i<o&&"!"===e.charAt(i);i++)t=!t,r++;r&&(this.pattern=e.substr(r));this.negate=t},c.braceExpand=function(e,t){return f(e,t)},d.prototype.braceExpand=f,d.prototype.parse=function(e,t){if(e.length>65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",l=!!n.nocase,u=!1,c=[],d=[],f=!1,h=-1,m=-1,g="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",v=this;function y(){if(r){switch(r){case"*":o+="[^/]*?",l=!0;break;case"?":o+="[^/]",l=!0;break;default:o+="\\"+r}v.debug("clearStateChar %j %j",r,o),r=!1}}for(var b,_=0,w=e.length;_<w&&(b=e.charAt(_));_++)if(this.debug("%s\t%s %s %j",e,_,o,b),u&&s[b])o+="\\"+b,u=!1;else switch(b){case"/":return!1;case"\\":y(),u=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,_,o,b),f){this.debug(" in class"),"!"===b&&_===m+1&&(b="^"),o+=b;continue}v.debug("call clearStateChar %j",r),y(),r=b,n.noext&&y();continue;case"(":if(f){o+="(";continue}if(!r){o+="\\(";continue}c.push({type:r,start:_-1,reStart:o.length,open:a[r].open,close:a[r].close}),o+="!"===r?"(?:(?!(?:":"(?:",this.debug("plType %j %j",r,o),r=!1;continue;case")":if(f||!c.length){o+="\\)";continue}y(),l=!0;var x=c.pop();o+=x.close,"!"===x.type&&d.push(x),x.reEnd=o.length;continue;case"|":if(f||!c.length||u){o+="\\|",u=!1;continue}y(),o+="|";continue;case"[":if(y(),f){o+="\\"+b;continue}f=!0,m=_,h=o.length,o+=b;continue;case"]":if(_===m+1||!f){o+="\\"+b,u=!1;continue}if(f){var k=e.substring(m+1,_);try{RegExp("["+k+"]")}catch(e){var E=this.parse(k,p);o=o.substr(0,h)+"\\["+E[0]+"\\]",l=l||E[1],f=!1;continue}}l=!0,f=!1,o+=b;continue;default:y(),u?u=!1:!s[b]||"^"===b&&f||(o+="\\"),o+=b}f&&(k=e.substr(m+1),E=this.parse(k,p),o=o.substr(0,h)+"\\["+E[0],l=l||E[1]);for(x=c.pop();x;x=c.pop()){var S=o.slice(x.reStart+x.open.length);this.debug("setting tail",o,x),S=S.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,n){return n||(n="\\"),t+t+n+"|"})),this.debug("tail=%j\n %s",S,S,x,o);var O="*"===x.type?"[^/]*?":"?"===x.type?"[^/]":"\\"+x.type;l=!0,o=o.slice(0,x.reStart)+O+"\\("+S}y(),u&&(o+="\\\\");var T=!1;switch(o.charAt(0)){case".":case"[":case"(":T=!0}for(var C=d.length-1;C>-1;C--){var A=d[C],P=o.slice(0,A.reStart),R=o.slice(A.reStart,A.reEnd-8),M=o.slice(A.reEnd-8,A.reEnd),I=o.slice(A.reEnd);M+=I;var j=P.split("(").length-1,D=I;for(_=0;_<j;_++)D=D.replace(/\)[+*?]?/,"");var L="";""===(I=D)&&t!==p&&(L="$"),o=P+R+I+L+M}""!==o&&l&&(o="(?=.)"+o);T&&(o=g+o);if(t===p)return[o,l];if(!l)return function(e){return e.replace(/\\(.)/g,"$1")}(e);var N=n.nocase?"i":"";try{var F=new RegExp("^"+o+"$",N)}catch(e){return new RegExp("$.")}return F._glob=e,F._src=o,F};var p={};c.makeRe=function(e,t){return new d(e,t||{}).makeRe()},d.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?"[^/]*?":t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=t.nocase?"i":"",o=e.map((function(e){return e.map((function(e){return e===i?n:"string"==typeof e?function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,r)}catch(e){this.regexp=!1}return this.regexp},c.match=function(e,t,n){var r=new d(t,n=n||{});return e=e.filter((function(e){return r.match(e)})),r.options.nonull&&!e.length&&e.push(t),e},d.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var n=this.options;"/"!==r.sep&&(e=e.split(r.sep).join("/"));e=e.split(l),this.debug(this.pattern,"split",e);var i,o,a=this.set;for(this.debug(this.pattern,"set",a),o=e.length-1;o>=0&&!(i=e[o]);o--);for(o=0;o<a.length;o++){var s=a[o],u=e;if(n.matchBase&&1===s.length&&(u=[i]),this.matchOne(u,s,t))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate},d.prototype.matchOne=function(e,t,n){var r=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,a=0,s=e.length,l=t.length;o<s&&a<l;o++,a++){this.debug("matchOne loop");var u,c=t[a],d=e[o];if(this.debug(t,c,d),!1===c)return!1;if(c===i){this.debug("GLOBSTAR",[t,c,d]);var f=o,p=a+1;if(p===l){for(this.debug("** at the end");o<s;o++)if("."===e[o]||".."===e[o]||!r.dot&&"."===e[o].charAt(0))return!1;return!0}for(;f<s;){var h=e[f];if(this.debug("\nglobstar while",e,f,t,p,h),this.matchOne(e.slice(f),t.slice(p),n))return this.debug("globstar found match!",f,s,h),!0;if("."===h||".."===h||!r.dot&&"."===h.charAt(0)){this.debug("dot detected!",e,f,t,p);break}this.debug("globstar swallow a segment, and continue"),f++}return!(!n||(this.debug("\n>>> no match, partial?",e,f,t,p),f!==s))}if("string"==typeof c?(u=r.nocase?d.toLowerCase()===c.toLowerCase():d===c,this.debug("string match",c,d,u)):(u=d.match(c),this.debug("pattern match",c,d,u)),!u)return!1}if(o===s&&a===l)return!0;if(o===s)return n;if(a===l)return o===s-1&&""===e[o];throw new Error("wtf?")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(18)),i=u(n(170)),o=u(n(2)),a=u(n(1)),s=n(16),l=n(11);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,r.default)("button",{target:"ey01qwa0",label:"LoginButton"})(s.buttons.button,";",s.shadows.dropDeep,";",s.buttons.default,";",s.buttons.gray,";padding:0 30px;display:block;margin-top:20px;margin-left:auto;"),h=(0,r.default)("form",{target:"ey01qwa1",label:"AuthForm"})({name:"olstp8",styles:"width:350px;margin-top:-80px;"}),m=(0,r.default)("input",{target:"ey01qwa2",label:"AuthInput"})("background-color:",s.colorsRaw.white,";border-radius:",s.lengths.borderRadius,";font-size:14px;padding:10px 10px;margin-bottom:15px;margin-top:6px;width:100%;position:relative;z-index:",s.zIndex.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",s.colors.active,";}"),g=(0,r.default)("p",{target:"ey01qwa3",label:"ErrorMessage"})("color:",s.colors.errorText,";");let v=null;window.netlifyIdentity&&(window.netlifyIdentity.on("login",e=>{v&&v.handleIdentityLogin(e)}),window.netlifyIdentity.on("logout",()=>{v&&v.handleIdentityLogout()}),window.netlifyIdentity.on("error",e=>{v&&v.handleIdentityError(e)}));class y extends a.default.Component{constructor(e){super(e),f(this,"handleIdentityLogin",e=>{this.props.onLogin(e),window.netlifyIdentity.close()}),f(this,"handleIdentityLogout",()=>{window.netlifyIdentity.open()}),f(this,"handleIdentityError",e=>{var t;(null==e||null===(t=e.message)||void 0===t?void 0:t.match(/^Failed to load settings from.+\.netlify\/identity$/))&&(window.netlifyIdentity.close(),this.setState({errors:{identity:this.props.t("auth.errors.identitySettings")}}))}),f(this,"handleIdentity",()=>{const e=window.netlifyIdentity.currentUser();e?this.props.onLogin(e):window.netlifyIdentity.open()}),f(this,"state",{email:"",password:"",errors:{}}),f(this,"handleChange",(e,t)=>{this.setState(d(d({},this.state),{},{[e]:t.target.value}))}),f(this,"handleLogin",async e=>{e.preventDefault();const{email:t,password:n}=this.state,{t:r}=this.props,i={};if(t||(i.email=r("auth.errors.email")),n||(i.password=r("auth.errors.password")),Object.keys(i).length>0)this.setState({errors:i});else try{const e=await y.authClient(),t=await e.login(this.state.email,this.state.password,!0);this.props.onLogin(t)}catch(e){this.setState({errors:{server:e.description||e.msg||e},loggingIn:!1})}}),v=this}componentDidMount(){!this.loggedIn&&window.netlifyIdentity&&window.netlifyIdentity.currentUser()&&(this.props.onLogin(window.netlifyIdentity.currentUser()),window.netlifyIdentity.close())}componentWillUnmount(){v=null}render(){const{errors:e}=this.state,{error:t,inProgress:n,config:r,t:o}=this.props;return window.netlifyIdentity?e.identity?(0,l.jsx)(s.AuthenticationPage,{logoUrl:r.logo_url,siteUrl:r.site_url,onLogin:this.handleIdentity,renderPageContent:()=>(0,l.jsx)("a",{href:"https://docs.netlify.com/visitor-access/git-gateway/#setup-and-settings",target:"_blank",rel:"noopener noreferrer"},e.identity),t:o}):(0,l.jsx)(s.AuthenticationPage,{logoUrl:r.logo_url,siteUrl:r.site_url,onLogin:this.handleIdentity,renderButtonContent:()=>o("auth.loginWithNetlifyIdentity"),t:o}):(0,l.jsx)(s.AuthenticationPage,{logoUrl:r.logo_url,siteUrl:r.site_url,renderPageContent:()=>(0,l.jsx)(h,{onSubmit:this.handleLogin},t?(0,l.jsx)(g,null,t):null,e.server?(0,l.jsx)(g,null,String(e.server)):null,(0,l.jsx)(g,null,e.email||null),(0,l.jsx)(m,{type:"text",name:"email",placeholder:"Email",value:this.state.email,onChange:(0,i.default)(this.handleChange,"email")}),(0,l.jsx)(g,null,e.password||null),(0,l.jsx)(m,{type:"password",name:"password",placeholder:"Password",value:this.state.password,onChange:(0,i.default)(this.handleChange,"password")}),(0,l.jsx)(p,{disabled:n},o(n?"auth.loggingIn":"auth.login"))),t:o})}}t.default=y,f(y,"authClient",void 0),f(y,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool.isRequired,error:o.default.node,config:o.default.object.isRequired,t:o.default.func.isRequired})},function(e,t,n){var r=n(154),i=n(162),o=n(1199),a=n(134);e.exports=function(e,t){return t=r(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(18)),i=l(n(1)),o=l(n(2)),a=n(16),s=n(11);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=(0,r.default)("section",{target:"e121jgcy0",label:"StyledAuthenticationPage"})({name:"1ul3gz4",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;height:100vh;"}),d=(0,r.default)(a.Icon,{target:"e121jgcy1",label:"PageLogoIcon"})({name:"11nl61t",styles:"color:#c4c6d2;margin-top:-300px;"}),f=(0,r.default)("button",{target:"e121jgcy2",label:"LoginButton"})(a.buttons.button,";",a.shadows.dropDeep,";",a.buttons.default,";",a.buttons.gray,";padding:0 30px;margin-top:-40px;display:flex;align-items:center;position:relative;",a.Icon,"{margin-right:18px;}");class p extends i.default.Component{constructor(...e){super(...e),u(this,"handleLogin",e=>{e.preventDefault(),this.props.onLogin(this.state)})}componentDidMount(){!1===this.props.config.backend.login&&this.props.onLogin(this.state)}render(){const{config:e,inProgress:t,t:n}=this.props;return(0,s.jsx)(c,null,(0,s.jsx)(d,{size:"300px",type:"netlify-cms"}),(0,s.jsx)(f,{disabled:t,onClick:this.handleLogin},n(t?"auth.loggingIn":"auth.login")),e.site_url&&(0,s.jsx)(a.GoBackButton,{href:e.site_url,t:n}))}}t.default=p,u(p,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,config:o.default.object.isRequired,t:o.default.func.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(18)),i=l(n(1)),o=l(n(2)),a=n(16),s=n(11);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=(0,r.default)("section",{target:"eyzerh70",label:"StyledAuthenticationPage"})({name:"1ul3gz4",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;height:100vh;"}),d=(0,r.default)(a.Icon,{target:"eyzerh71",label:"PageLogoIcon"})({name:"11nl61t",styles:"color:#c4c6d2;margin-top:-300px;"}),f=(0,r.default)("button",{target:"eyzerh72",label:"LoginButton"})(a.buttons.button,";",a.shadows.dropDeep,";",a.buttons.default,";",a.buttons.gray,";padding:0 30px;margin-top:-40px;display:flex;align-items:center;position:relative;",a.Icon,"{margin-right:18px;}");class p extends i.default.Component{constructor(...e){super(...e),u(this,"handleLogin",e=>{e.preventDefault(),this.props.onLogin(this.state)})}render(){const{config:e,inProgress:t,t:n}=this.props;return(0,s.jsx)(c,null,(0,s.jsx)(d,{size:"300px",type:"netlify-cms"}),(0,s.jsx)(f,{disabled:t,onClick:this.handleLogin},n(t?"auth.loggingIn":"auth.login")),e.site_url&&(0,s.jsx)(a.GoBackButton,{href:e.site_url,t:n}))}}t.default=p,u(p,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,config:o.default.object.isRequired,t:o.default.func.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetFile=void 0;var r=a(n(1215)),i=a(n(1216)),o=a(n(1217));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=(0,r.default)(),c={Widget:(e={})=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"file",controlComponent:u,previewComponent:i.default,schema:o.default},e),controlComponent:u,previewComponent:i.default,withFileControl:r.default};t.NetlifyCmsWidgetFile=c;var d=c;t.default=d},function(e,t,n){var r=n(102),i=n(136),o=n(184);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var l=r(n,3);t=o(t),n=function(e){return l(s[e],e,s)}}var u=e(t,n,a);return u>-1?s[l?t[u]:u]:void 0}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=s(n(2)),i=s(n(1)),o=n(235),a=n(1226);function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},d=function(e){var t,n;function r(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(u(u(r)));return r.state={handleExited:i,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},o.componentDidMount=function(){this.appeared=!0,this.mounted=!0},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,a.getInitialChildMapping)(e,r):(0,a.getNextChildMapping)(e,n,r),firstRender:!1}},o.handleExited=function(e,t){var n=(0,a.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=l({},t.children);return delete n[e.key],{children:n}})))},o.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["component","childFactory"]),o=c(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o:i.default.createElement(t,r,o)},r}(i.default.Component);d.childContextTypes={transitionGroup:r.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var f=(0,o.polyfill)(d);t.default=f,e.exports=t.default},function(e,t){var n=1e3,r=6e4,i=60*r,o=24*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};var s=typeof e;if("string"===s&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var a=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*i;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===s&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=o)return a(e,t,o,"day");if(t>=i)return a(e,t,i,"hour");if(t>=r)return a(e,t,r,"minute");if(t>=n)return a(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},l=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!o)return!1;for(t in e);return void 0===t||r.call(e,t)},u=function(e,t){o&&"__proto__"===t.name?o(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(!r.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,n,r,i,o,a,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)r=c(d,n),d!==(i=c(t,n))&&(h&&i&&(l(i)||(o=s(i)))?(o?(o=!1,a=r&&s(r)?r:[]):a=r&&l(r)?r:{},u(d,{name:n,newValue:e(h,a,i)})):void 0!==i&&u(d,{name:n,newValue:i}));return d}},function(e,t,n){"use strict";var r=n(53),i=n(158);e.exports=function(e){var t,n,o;for(n in i(s,e),i(a,s),t=s.prototype)(o=t[n])&&"object"==typeof o&&(t[n]="concat"in o?o.concat():r(o));return s;function a(t){return e.apply(this,t)}function s(){return this instanceof s?e.apply(this,arguments):new a(arguments)}}},function(e,t,n){"use strict";e.exports=function(e,t,n){return function(){var r=n||this,i=r[e];return r[e]=!t,function(){r[e]=i}}}},function(e,t,n){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},function(e,t,n){"use strict";e.exports=a;var r=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],i=r.concat(["~","|"]),o=i.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);function a(e){var t=e||{};return t.commonmark?o:t.gfm?i:r}a.default=r,a.gfm=i,a.commonmark=o},function(e,t,n){"use strict";e.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(1258)}},function(e,t,n){"use strict";e.exports=i;var r=n(1261);function i(e,t,n,i){var a;function s(e,r,l){var u,c=[];return(t&&!a(e,r,l[l.length-1]||null)||!1!==(c=o(n(e,l)))[0])&&e.children&&"skip"!==c[0]&&!1===(u=o(function(e,t){var n,r=i?-1:1,o=(i?e.length:-1)+r;for(;o>-1&&o<e.length;){if(!1===(n=s(e[o],o,t))[0])return n;o="number"==typeof n[1]?n[1]:o+r}}(e.children,l.concat(e))))[0]?u:c}"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),a=r(t),s(e,null,[])}function o(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[!0,e]:[e]}i.CONTINUE=!0,i.SKIP="skip",i.EXIT=!1},function(e,t,n){"use strict";e.exports=function(e){var t,n=0,r=0,i=e.charAt(n),o={};for(;"\t"===i||" "===i;)r+=t="\t"===i?4:1,t>1&&(r=Math.floor(r/t)*t),o[r]=n,i=e.charAt(++n);return{indent:r,stops:o}}},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";t.openCloseTag=new RegExp("^(?:"+r+"|"+i+")"),t.tag=new RegExp("^(?:"+r+"|"+i+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Za-z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)")},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("<",t)}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("[",t),r=e.indexOf("![",t);if(-1===r)return n;return n<r?n:r}},function(e,t,n){"use strict";e.exports=function(e){return e}},function(e,t,n){"use strict";e.exports={gfm:!0,commonmark:!1,pedantic:!1,entities:"false",setext:!1,closeAtx:!1,looseTable:!1,spacedTable:!0,paddedTable:!0,stringLength:function(e){return e.length},incrementListMarker:!0,fences:!1,fence:"`",bullet:"-",listItemIndent:"tab",rule:"*",ruleSpaces:!0,ruleRepetition:3,strong:"*",emphasis:"_"}},function(e){e.exports=JSON.parse('{"nbsp":" ","iexcl":"¡","cent":"¢","pound":"£","curren":"¤","yen":"¥","brvbar":"¦","sect":"§","uml":"¨","copy":"©","ordf":"ª","laquo":"«","not":"¬","shy":"­","reg":"®","macr":"¯","deg":"°","plusmn":"±","sup2":"²","sup3":"³","acute":"´","micro":"µ","para":"¶","middot":"·","cedil":"¸","sup1":"¹","ordm":"º","raquo":"»","frac14":"¼","frac12":"½","frac34":"¾","iquest":"¿","Agrave":"À","Aacute":"Á","Acirc":"Â","Atilde":"Ã","Auml":"Ä","Aring":"Å","AElig":"Æ","Ccedil":"Ç","Egrave":"È","Eacute":"É","Ecirc":"Ê","Euml":"Ë","Igrave":"Ì","Iacute":"Í","Icirc":"Î","Iuml":"Ï","ETH":"Ð","Ntilde":"Ñ","Ograve":"Ò","Oacute":"Ó","Ocirc":"Ô","Otilde":"Õ","Ouml":"Ö","times":"×","Oslash":"Ø","Ugrave":"Ù","Uacute":"Ú","Ucirc":"Û","Uuml":"Ü","Yacute":"Ý","THORN":"Þ","szlig":"ß","agrave":"à","aacute":"á","acirc":"â","atilde":"ã","auml":"ä","aring":"å","aelig":"æ","ccedil":"ç","egrave":"è","eacute":"é","ecirc":"ê","euml":"ë","igrave":"ì","iacute":"í","icirc":"î","iuml":"ï","eth":"ð","ntilde":"ñ","ograve":"ò","oacute":"ó","ocirc":"ô","otilde":"õ","ouml":"ö","divide":"÷","oslash":"ø","ugrave":"ù","uacute":"ú","ucirc":"û","uuml":"ü","yacute":"ý","thorn":"þ","yuml":"ÿ","fnof":"ƒ","Alpha":"Α","Beta":"Β","Gamma":"Γ","Delta":"Δ","Epsilon":"Ε","Zeta":"Ζ","Eta":"Η","Theta":"Θ","Iota":"Ι","Kappa":"Κ","Lambda":"Λ","Mu":"Μ","Nu":"Ν","Xi":"Ξ","Omicron":"Ο","Pi":"Π","Rho":"Ρ","Sigma":"Σ","Tau":"Τ","Upsilon":"Υ","Phi":"Φ","Chi":"Χ","Psi":"Ψ","Omega":"Ω","alpha":"α","beta":"β","gamma":"γ","delta":"δ","epsilon":"ε","zeta":"ζ","eta":"η","theta":"θ","iota":"ι","kappa":"κ","lambda":"λ","mu":"μ","nu":"ν","xi":"ξ","omicron":"ο","pi":"π","rho":"ρ","sigmaf":"ς","sigma":"σ","tau":"τ","upsilon":"υ","phi":"φ","chi":"χ","psi":"ψ","omega":"ω","thetasym":"ϑ","upsih":"ϒ","piv":"ϖ","bull":"•","hellip":"…","prime":"′","Prime":"″","oline":"‾","frasl":"⁄","weierp":"℘","image":"ℑ","real":"ℜ","trade":"™","alefsym":"ℵ","larr":"←","uarr":"↑","rarr":"→","darr":"↓","harr":"↔","crarr":"↵","lArr":"⇐","uArr":"⇑","rArr":"⇒","dArr":"⇓","hArr":"⇔","forall":"∀","part":"∂","exist":"∃","empty":"∅","nabla":"∇","isin":"∈","notin":"∉","ni":"∋","prod":"∏","sum":"∑","minus":"−","lowast":"∗","radic":"√","prop":"∝","infin":"∞","ang":"∠","and":"∧","or":"∨","cap":"∩","cup":"∪","int":"∫","there4":"∴","sim":"∼","cong":"≅","asymp":"≈","ne":"≠","equiv":"≡","le":"≤","ge":"≥","sub":"⊂","sup":"⊃","nsub":"⊄","sube":"⊆","supe":"⊇","oplus":"⊕","otimes":"⊗","perp":"⊥","sdot":"⋅","lceil":"⌈","rceil":"⌉","lfloor":"⌊","rfloor":"⌋","lang":"〈","rang":"〉","loz":"◊","spades":"♠","clubs":"♣","hearts":"♥","diams":"♦","quot":"\\"","amp":"&","lt":"<","gt":">","OElig":"Œ","oelig":"œ","Scaron":"Š","scaron":"š","Yuml":"Ÿ","circ":"ˆ","tilde":"˜","ensp":" ","emsp":" ","thinsp":" ","zwnj":"‌","zwj":"‍","lrm":"‎","rlm":"‏","ndash":"–","mdash":"—","lsquo":"‘","rsquo":"’","sbquo":"‚","ldquo":"“","rdquo":"”","bdquo":"„","dagger":"†","Dagger":"‡","permil":"‰","lsaquo":"‹","rsaquo":"›","euro":"€"}')},function(e,t,n){"use strict";var r=n(281);e.exports=function(e){var t;if("&"!==e.charAt(0))return 0;return(t=e.split("&",2).join("&")).length-r(t).length}},function(e,t,n){"use strict";var r=n(83);e.exports=function(e,t){var n=e.split("\n"),i=n.length,o=r(" ",4*t);for(;i--;)0!==n[i].length&&(n[i]=o+n[i]);return n.join("\n")}},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i=0,o=0;if("string"!=typeof t||1!==t.length)throw new Error("Expected character");e=String(e),r=e.indexOf(t),n=r;for(;-1!==r;)i++,r===n?i>o&&(o=i):i=1,n=r+1,r=e.indexOf(t,n);return o}},function(e,t,n){"use strict";e.exports=function(e){var t=e.referenceType;if("shortcut"===t)return"";return"["+("collapsed"===t?"":e.label||e.identifier)+"]"}},function(e,t,n){"use strict";var r=a("start"),i=a("end");function o(e){return{start:r(e),end:i(e)}}function a(e){return t.displayName=e,t;function t(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}}e.exports=o,o.start=r,o.end=i},function(e,t,n){"use strict";var r=n(282);e.exports=function(e,t){return function(e){return function(t){var n=t&&o(t);return n&&i.call(e,n)?e[n]:null}}(function(e,t){var n={};if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return r(e,"definition",t&&t.commonmark?function(e){var t=o(e.identifier);i.call(n,t)||(n[t]=e)}:function(e){n[o(e.identifier)]=e}),n}(e,t))};var i={}.hasOwnProperty;function o(e){return e.toUpperCase()}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=t&&t.type,i=o.call(e.handlers,r)?e.handlers[r]:null;if(!r)throw new Error("Expected node, got `"+t+"`");return("function"==typeof i?i:a)(e,t,n)};var r=n(60),i=n(84),o={}.hasOwnProperty;function a(e,t){return function(e){var t=e.data||{};if(o.call(t,"hName")||o.call(t,"hProperties")||o.call(t,"hChildren"))return!1;return"value"in e}(t)?e.augment(t,r("text",t.value)):e(t,"div",i(e,t))}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"hr")}},function(e,t,n){"use strict";e.exports=function(e,t){var n={},o=t.ordered?"ol":"ul";"number"==typeof t.start&&1!==t.start&&(n.start=t.start);return e(t,o,n,r(i(e,t),!0))};var r=n(195),i=n(84)},function(e,t,n){"use strict";e.exports=function(e,t){var n=t.identifier;return e(t.position,"sup",{id:"fnref-"+n},[e(t,"a",{href:"#fn-"+n,className:["footnote-ref"]},[r("text",n)])])};var r=n(60)},function(e,t,n){"use strict";e.exports=function(e,t){var n,o,a,s=t.referenceType,l="]";"collapsed"===s?l+="[]":"full"===s&&(l+="["+(t.label||t.identifier)+"]");if("imageReference"===t.type)return r("text","!["+t.alt+l);n=i(e,t),(o=n[0])&&"text"===o.type?o.value="["+o.value:n.unshift(r("text","["));(a=n[n.length-1])&&"text"===a.type?a.value+=l:n.push(r("text",l));return n};var r=n(60),i=n(84)},function(e,t,n){"use strict";var r=n(53),i=n(618);e.exports=function(e){var t,n,o=e.length,a=[],s=[],l=-1;for(;++l<o;)t=e[l],a.push(t.property),s.push(t.normal),n=t.space;return new i(r.apply(null,a),r.apply(null,s),n)}},function(e,t,n){"use strict";e.exports=i;var r=i.prototype;function i(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}r.space=null,r.normal={},r.property={}},function(e,t,n){"use strict";var r=n(196);e.exports=r({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},function(e,t,n){"use strict";var r=n(621),i=n(286);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=o.length;function s(e,t,n,s){var u,c=-1;for(l(this,"space",s),r.call(this,e,t);++c<a;)l(this,u=o[c],(n&i[u])===i[u])}function l(e,t,n){n&&(e[t]=n)}},function(e,t,n){"use strict";e.exports=i;var r=i.prototype;function i(e,t){this.property=e,this.attribute=t}r.space=null,r.attribute=null,r.property=null,r.boolean=!1,r.booleanish=!1,r.overloadedBoolean=!1,r.number=!1,r.commaSeparated=!1,r.spaceSeparated=!1,r.commaOrSpaceSeparated=!1,r.mustUseProperty=!1,r.defined=!1},function(e,t,n){"use strict";var r=n(196);e.exports=r({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},function(e,t,n){"use strict";var r=n(196),i=n(624);e.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:i,properties:{xmlns:null,xmlnsXLink:null}})},function(e,t,n){"use strict";var r=n(625);e.exports=function(e,t){return r(e,t.toLowerCase())}},function(e,t,n){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},function(e,t,n){"use strict";var r=n(286),i=n(196),o=r.booleanish,a=r.number,s=r.spaceSeparated;e.exports=i({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:o,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:s,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:a,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:s,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:o,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}})},function(e,t,n){"use strict";var r=n(172),i=n(390);e.exports=function(e){return o(e)&&i(e.value.charAt(0))};var o=r("text")},function(e,t,n){"use strict";var r=n(172),i=n(106),o=n(627),a=n(389).after,s=n(629),l=r("comment"),u=["option"].concat("optgroup"),c=["dt","dd"],d=["menuitem","hr","menu"],f=["rp","rt"],p=["tbody","tfoot"],h=["td","th"],m=["a","audio","del","ins","map","noscript","video"],g=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"];function v(e,t,n){var r=a(n,t,!0);return!r||!l(r)&&!o(r)}function y(e,t,n){var r=a(n,t);return!r||i(r,f)}function b(e,t,n){var r=a(n,t);return!r||i(r,h)}e.exports=s({html:function(e,t,n){var r=a(n,t);return!r||!l(r)},head:v,body:function(e,t,n){var r=a(n,t);return!r||!l(r)},p:function(e,t,n){var r=a(n,t);return r?i(r,g):!n||!i(n,m)},li:function(e,t,n){var r=a(n,t);return!r||i(r,"li")},dt:function(e,t,n){var r=a(n,t);return r&&i(r,c)},dd:function(e,t,n){var r=a(n,t);return!r||i(r,c)},rt:y,rp:y,optgroup:function(e,t,n){var r=a(n,t);return!r||i(r,"optgroup")},option:function(e,t,n){var r=a(n,t);return!r||i(r,u)},menuitem:function(e,t,n){var r=a(n,t);return!r||i(r,d)},colgroup:v,caption:v,thead:function(e,t,n){var r=a(n,t);return r&&i(r,p)},tbody:function(e,t,n){var r=a(n,t);return!r||i(r,p)},tfoot:function(e,t,n){return!a(n,t)},tr:function(e,t,n){var r=a(n,t);return!r||i(r,"tr")},td:b,th:b})},function(e,t,n){"use strict";e.exports=function(e){return function(t,n,i){var o=t.tagName;return!!r.call(e,o)&&e[o](t,n,i)}};var r={}.hasOwnProperty},function(e,t,n){"use strict";e.exports=function(e,t,n,o){var a=t&&t.type;if(!a)throw new Error("Expected node, not `"+t+"`");if(!r.call(i,a))throw new Error("Cannot compile unknown node `"+a+"`");return i[a](e,t,n,o)};var r={}.hasOwnProperty,i={};i.root=n(631),i.text=n(632),i.element=n(1376),i.doctype=n(1378),i.comment=n(1379),i.raw=n(1380)},function(e,t,n){"use strict";var r=n(630);e.exports=function(e,t){var n=t&&t.children,i=n&&n.length,o=-1,a=[];for(;++o<i;)a[o]=r(e,n[o],o,t);return a.join("")}},function(e,t,n){"use strict";var r=n(53),i=n(288);e.exports=function(e,t,n,o){var a=t.value;return function(e){return e&&("script"===e.tagName||"style"===e.tagName)}(o)?a:i(a,r(e.entities,{subset:["<","&"]}))}},function(e,t,n){"use strict";t.parse=function(e){var t=String(e||"").trim();return""===t?[]:t.split(r)},t.stringify=function(e){return e.join(" ").trim()};var r=/[ \t\n\r\f]+/g},function(e,t,n){"use strict";t.parse=function(e){var t,n=[],r=String(e||""),i=r.indexOf(","),o=0,a=!1;for(;!a;)-1===i&&(i=r.length,a=!0),!(t=r.slice(o,i).trim())&&a||n.push(t),o=i+1,i=r.indexOf(",",o);return n},t.stringify=function(e,t){var n=t||{},r=!1===n.padLeft?"":" ",i=n.padRight?" ":"";""===e[e.length-1]&&(e=e.concat(""));return e.join(i+","+r).trim()}},function(e,t,n){"use strict";var r=n(391),i=n(388),o=n(1386),a=n(633).parse,s=n(634).parse;e.exports=function(e,t,n){var i=n?function(e){var t,n=e.length,r=-1,i={};for(;++r<n;)t=e[r],i[t.toLowerCase()]=t;return i}(n):null;return function(e,n){var r,a=o(e,t),s=Array.prototype.slice.call(arguments,2),d=a.tagName.toLowerCase();a.tagName=i&&l.call(i,d)?i[d]:d,n&&u(n,a)&&(s.unshift(n),n=null);if(n)for(r in n)f(a.properties,r,n[r]);c(a.children,s),"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]);return a};function f(t,n,i){var o,l,u;null!=i&&i==i&&(l=(o=r(e,n)).property,"string"==typeof(u=i)&&(o.spaceSeparated?u=a(u):o.commaSeparated?u=s(u):o.commaOrSpaceSeparated&&(u=a(s(u).join(" ")))),"style"===l&&"string"!=typeof i&&(u=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(u)),"className"===l&&t.className&&(u=t.className.concat(u)),t[l]=function(e,t,n){var r,i,o;if("object"!=typeof n||!("length"in n))return d(e,t,n);i=n.length,r=-1,o=[];for(;++r<i;)o[r]=d(e,t,n[r]);return o}(o,l,u))}};var l={}.hasOwnProperty;function u(e,t){return"string"==typeof e||"length"in e||function(e,t){var n=t.type;if("input"===e||!n||"string"!=typeof n)return!1;if("object"==typeof t.children&&"length"in t.children)return!0;if(n=n.toLowerCase(),"button"===e)return"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n;return"value"in t}(t.tagName,e)}function c(e,t){var n,r;if("string"!=typeof t&&"number"!=typeof t)if("object"==typeof t&&"length"in t)for(n=-1,r=t.length;++n<r;)c(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function d(e,t,n){var r=n;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&("string"!=typeof r||""!==r&&i(n)!==i(t)||(r=!0)),r}},function(e,t,n){"use strict";const r=n(125),i=n(289),o=n(637);e.exports=class extends r{constructor(e){super(e),this.tokenizer=e,this.posTracker=r.install(e.preprocessor,o),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const n={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.ctLoc},_createCharacterToken(n,r){t._createCharacterToken.call(this,n,r),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const n=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=n.startLine,this.currentCharacterToken.location.endCol=n.startCol,this.currentCharacterToken.location.endOffset=n.startOffset),this.currentToken.type===i.EOF_TOKEN?(n.endLine=n.startLine,n.endCol=n.startCol,n.endOffset=n.startOffset):(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col+1,n.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const n=this.currentCharacterToken&&this.currentCharacterToken.location;n&&-1===n.endOffset&&(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col,n.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(i.MODE).forEach(r=>{const o=i.MODE[r];n[o]=function(n){e.ctLoc=e._getCurrentLocation(),t[o].call(this,n)}}),n}}},function(e,t,n){"use strict";const r=n(125);e.exports=class extends r{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const n=this.pos+1,r=this.html[n];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=n),("\n"===r||"\r"===r&&"\n"!==this.html[n+1])&&(e.isEol=!0),e.col=n-e.lineStartPos+1,e.offset=e.droppedBufferSize+n,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const n=this.pos;t.dropParsedChunk.call(this);const r=n-this.pos;e.lineStartPos-=r,e.droppedBufferSize+=r,e.offset=e.droppedBufferSize+this.pos}}}}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=null;if("element"===t.type){if(t.properties&&"ignore"===t.properties.dataMdast)return;o.call(e.handlers,t.tagName)&&(r=e.handlers[t.tagName])}else o.call(e.handlers,t.type)&&(r=e.handlers[t.type]);return("function"==typeof r?r:a)(e,t,n)};var r=n(71),i=n(112),o={}.hasOwnProperty;function a(e,t){return t.value?e(t,"text",i(e,t.value)):r(e,t)}},function(e,t,n){"use strict";e.exports=function(e,t){var n,i=r(e,t),o=i.length,a=-1;for(;++a<o;)"listItem"!==(n=i[a]).type&&(i[a]={type:"listItem",spread:!1,checked:null,children:[n]});return i};var r=n(71)},function(e,t,n){"use strict";e.exports=function(e){var t=e.length,n=-1;if(t>1)for(;++n<t;)if(e[n].spread)return!0;return!1}},function(e,t,n){"use strict";var r=n(106),i=n(398),o=n(290),a=n(112);e.exports=function(e,t,n){var s,l,u,c,d,f=n||t.properties,p=f.multiple,h=Math.min(parseInt(f.size,10),0)||(p?4:1),m=function e(t){var n,o=t.children,a=o.length,s=-1,l=[];for(;++s<a;)n=o[s],r(n,"option")?i(n,"disabled")||l.push(n):"children"in n&&(l=l.concat(e(n)));return l}(t),g=m.length,v=-1,y=[],b=[];for(;++v<g;)(s=m[v]).properties.selected&&y.push(s);l=0===y.length?m:y,m=l.slice(0,h),g=m.length,v=-1;for(;++v<g;)s=m[v],u=a(e,o(s)),c=u||s.properties.label,d=s.properties.value||u,b.push([d,c===d?null:c]);return b}},function(e,t,n){var r=n(1446),i=n(446);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t,n){var r=n(212),i=n(161);e.exports=function(e,t){return r(i(e,t),1)}},function(e,t,n){var r=n(1461),i=n(137),o=n(269),a=i((function(e,t){return o(e)?r(e,t):[]}));e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorControlBar=t.editorStyleVars=void 0;var r,i=(r=n(18))&&r.__esModule?r:{default:r},o=n(16);const a={stickyDistanceBottom:"100px"};t.editorStyleVars=a;const s=(0,i.default)("div",{target:"eqipg3b0",label:"EditorControlBar"})("z-index:",o.zIndex.zIndex200,";position:sticky;top:0;margin-bottom:",a.stickyDistanceBottom,";");t.EditorControlBar=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(18)),i=d(n(1)),o=d(n(2)),a=d(n(24)),s=n(11),l=n(4),u=n(16),c=d(n(1468));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,r.default)("div",{target:"e169jtoy0",label:"ToolbarContainer"})("background-color:",u.colors.textFieldBorder,";border-top-right-radius:",u.lengths.borderRadius,";position:relative;display:flex;justify-content:space-between;align-items:center;padding:11px 14px;min-height:58px;transition:background-color ",u.transitions.main,",color ",u.transitions.main,";color:",u.colors.text,";"),h=(0,r.default)("div",{target:"e169jtoy1",label:"ToolbarDropdownWrapper"})({name:"b3pn3b",styles:"display:inline-block;position:relative;"}),m=(0,r.default)("div",{target:"e169jtoy2",label:"ToolbarToggle"})({name:"1xp6irr",styles:"flex-shrink:0;display:flex;align-items:center;font-size:14px;margin:0 10px;"}),g=m.withComponent(u.Toggle,{target:"e169jtoy4",label:"StyledToggle"}),v=(0,r.default)("span",{target:"e169jtoy3",label:"ToolbarToggleLabel"})("display:inline-block;text-align:center;white-space:nowrap;line-height:20px;min-width:",e=>e.offPosition?"62px":"70px",";",e=>e.isActive&&(0,s.css)("font-weight:600;color:",u.colors.active,";;label:ToolbarToggleLabel;"),";");class y extends i.default.Component{constructor(...e){super(...e),f(this,"isVisible",e=>{const{buttons:t}=this.props;return!l.List.isList(t)||t.includes(e)}),f(this,"handleBlockClick",(e,t)=>{e&&e.preventDefault(),this.props.onBlockClick(t)}),f(this,"handleMarkClick",(e,t)=>{e.preventDefault(),this.props.onMarkClick(t)})}render(){const{onLinkClick:e,onToggleMode:t,rawMode:n,plugins:r,disabled:i,onSubmit:o,hasMark:a=(()=>{}),hasInline:d=(()=>{}),hasBlock:f=(()=>{}),editorComponents:y,t:b}=this.props,_=this.isVisible,w=!y||y.size>=1,x=r?r.toList().filter(({id:e})=>!y||y.includes(e)):(0,l.List)(),k={"heading-one":b("editor.editorWidgets.headingOptions.headingOne"),"heading-two":b("editor.editorWidgets.headingOptions.headingTwo"),"heading-three":b("editor.editorWidgets.headingOptions.headingThree"),"heading-four":b("editor.editorWidgets.headingOptions.headingFour"),"heading-five":b("editor.editorWidgets.headingOptions.headingFive"),"heading-six":b("editor.editorWidgets.headingOptions.headingSix")};return(0,s.jsx)(p,null,(0,s.jsx)("div",null,_("bold")&&(0,s.jsx)(c.default,{type:"bold",label:"Bold",icon:"bold",onClick:this.handleMarkClick,isActive:a("bold"),disabled:i}),_("italic")&&(0,s.jsx)(c.default,{type:"italic",label:"Italic",icon:"italic",onClick:this.handleMarkClick,isActive:a("italic"),disabled:i}),_("code")&&(0,s.jsx)(c.default,{type:"code",label:"Code",icon:"code",onClick:this.handleMarkClick,isActive:a("code"),disabled:i}),_("link")&&(0,s.jsx)(c.default,{type:"link",label:"Link",icon:"link",onClick:e,isActive:d("link"),disabled:i}),Object.keys(k).some(_)&&(0,s.jsx)(h,null,(0,s.jsx)(u.Dropdown,{dropdownWidth:"max-content",dropdownTopOverlap:"36px",renderButton:()=>(0,s.jsx)(u.DropdownButton,null,(0,s.jsx)(c.default,{type:"headings",label:"Headings",icon:"hOptions",disabled:i,isActive:!i&&Object.keys(k).some(f)}))},!i&&Object.keys(k).map((e,t)=>_(e)&&(0,s.jsx)(u.DropdownItem,{key:t,label:k[e],className:f(e)?"active":"",onClick:()=>this.handleBlockClick(null,e)})))),_("quote")&&(0,s.jsx)(c.default,{type:"quote",label:"Quote",icon:"quote",onClick:this.handleBlockClick,isActive:f("quote"),disabled:i}),_("bulleted-list")&&(0,s.jsx)(c.default,{type:"bulleted-list",label:"Bulleted List",icon:"list-bulleted",onClick:this.handleBlockClick,isActive:f("bulleted-list"),disabled:i}),_("numbered-list")&&(0,s.jsx)(c.default,{type:"numbered-list",label:"Numbered List",icon:"list-numbered",onClick:this.handleBlockClick,isActive:f("numbered-list"),disabled:i}),w&&(0,s.jsx)(h,null,(0,s.jsx)(u.Dropdown,{dropdownTopOverlap:"36px",dropdownWidth:"110px",renderButton:()=>(0,s.jsx)(u.DropdownButton,null,(0,s.jsx)(c.default,{label:"Add Component",icon:"add-with",onClick:this.handleComponentsMenuToggle,disabled:i}))},x.map((e,t)=>(0,s.jsx)(u.DropdownItem,{key:t,label:e.label,onClick:()=>o(e)}))))),(0,s.jsx)(m,null,(0,s.jsx)(v,{isActive:!n,offPosition:!0},b("editor.editorWidgets.markdown.richText")),(0,s.jsx)(g,{active:n,onChange:t}),(0,s.jsx)(v,{isActive:n},b("editor.editorWidgets.markdown.markdown"))))}}t.default=y,f(y,"propTypes",{buttons:a.default.list,editorComponents:a.default.list,onToggleMode:o.default.func.isRequired,rawMode:o.default.bool,plugins:a.default.map,onSubmit:o.default.func,onAddAsset:o.default.func,getAsset:o.default.func,disabled:o.default.bool,onMarkClick:o.default.func,onBlockClick:o.default.func,onLinkClick:o.default.func,hasMark:o.default.func,hasInline:o.default.func,hasBlock:o.default.func,t:o.default.func.isRequired})},function(e,t,n){var r=n(1515);e.exports="string"==typeof r?r:r.toString()},function(e,t,n){"use strict";var r=n(649),i=n(2),o=n(143),a=n(139),s=n(1),l=n(1516),u=n(1521).default,c=Object.freeze({YEARS:"years",MONTHS:"months",DAYS:"days",TIME:"time"}),d=i,f=o({displayName:"DateTime",propTypes:{onFocus:d.func,onBlur:d.func,onChange:d.func,onViewModeChange:d.func,onNavigateBack:d.func,onNavigateForward:d.func,locale:d.string,utc:d.bool,displayTimeZone:d.string,input:d.bool,inputProps:d.object,timeConstraints:d.object,viewMode:d.oneOf([c.YEARS,c.MONTHS,c.DAYS,c.TIME]),isValidDate:d.func,open:d.bool,strictParsing:d.bool,closeOnSelect:d.bool,closeOnTab:d.bool},getInitialState:function(){this.checkTZ(this.props);var e=this.getStateFromProps(this.props);return void 0===e.open&&(e.open=!this.props.input),e.currentView=this.props.dateFormat?this.props.viewMode||e.updateOn||c.DAYS:c.TIME,e},parseDate:function(e,t){var n;return e&&"string"==typeof e?n=this.localMoment(e,t.datetime):e&&(n=this.localMoment(e)),n&&!n.isValid()&&(n=null),n},getStateFromProps:function(e){var t,n,r,i,o=this.getFormats(e),a=e.value||e.defaultValue;return t=this.parseDate(a,o),n=this.parseDate(e.viewDate,o),n=t?t.clone().startOf("month"):n?n.clone().startOf("month"):this.localMoment().startOf("month"),r=this.getUpdateOn(o),i=t?t.format(o.datetime):a.isValid&&!a.isValid()?"":a||"",{updateOn:r,inputFormat:o.datetime,viewDate:n,selectedDate:t,inputValue:i,open:e.open}},getUpdateOn:function(e){return e.date.match(/[lLD]/)?c.DAYS:-1!==e.date.indexOf("M")?c.MONTHS:-1!==e.date.indexOf("Y")?c.YEARS:c.DAYS},getFormats:function(e){var t={date:e.dateFormat||"",time:e.timeFormat||""},n=this.localMoment(e.date,null,e).localeData();return!0===t.date?t.date=n.longDateFormat("L"):this.getUpdateOn(t)!==c.DAYS&&(t.time=""),!0===t.time&&(t.time=n.longDateFormat("LT")),t.datetime=t.date&&t.time?t.date+" "+t.time:t.date||t.time,t},componentWillReceiveProps:function(e){var t=this.getFormats(e),n={};if(e.value===this.props.value&&t.datetime===this.getFormats(this.props).datetime||(n=this.getStateFromProps(e)),void 0===n.open&&(void 0!==e.open?n.open=e.open:this.props.closeOnSelect&&this.state.currentView!==c.TIME?n.open=!1:n.open=this.state.open),e.viewMode!==this.props.viewMode&&(n.currentView=e.viewMode),e.locale!==this.props.locale){if(this.state.viewDate){var r=this.state.viewDate.clone().locale(e.locale);n.viewDate=r}if(this.state.selectedDate){var i=this.state.selectedDate.clone().locale(e.locale);n.selectedDate=i,n.inputValue=i.format(t.datetime)}}e.utc===this.props.utc&&e.displayTimeZone===this.props.displayTimeZone||(e.utc?(this.state.viewDate&&(n.viewDate=this.state.viewDate.clone().utc()),this.state.selectedDate&&(n.selectedDate=this.state.selectedDate.clone().utc(),n.inputValue=n.selectedDate.format(t.datetime))):e.displayTimeZone?(this.state.viewDate&&(n.viewDate=this.state.viewDate.clone().tz(e.displayTimeZone)),this.state.selectedDate&&(n.selectedDate=this.state.selectedDate.clone().tz(e.displayTimeZone),n.inputValue=n.selectedDate.tz(e.displayTimeZone).format(t.datetime))):(this.state.viewDate&&(n.viewDate=this.state.viewDate.clone().local()),this.state.selectedDate&&(n.selectedDate=this.state.selectedDate.clone().local(),n.inputValue=n.selectedDate.format(t.datetime)))),e.viewDate!==this.props.viewDate&&(n.viewDate=a(e.viewDate)),this.checkTZ(e),this.setState(n)},onInputChange:function(e){var t=null===e.target?e:e.target.value,n=this.localMoment(t,this.state.inputFormat),r={inputValue:t};return n.isValid()&&!this.props.value?(r.selectedDate=n,r.viewDate=n.clone().startOf("month")):r.selectedDate=null,this.setState(r,(function(){return this.props.onChange(n.isValid()?n:this.state.inputValue)}))},onInputKey:function(e){9===e.which&&this.props.closeOnTab&&this.closeCalendar()},showView:function(e){var t=this;return function(){t.state.currentView!==e&&t.props.onViewModeChange(e),t.setState({currentView:e})}},setDate:function(e){var t=this,n={month:c.DAYS,year:c.MONTHS};return function(r){t.setState({viewDate:t.state.viewDate.clone()[e](parseInt(r.target.getAttribute("data-value"),10)).startOf(e),currentView:n[e]}),t.props.onViewModeChange(n[e])}},subtractTime:function(e,t,n){var r=this;return function(){r.props.onNavigateBack(e,t),r.updateTime("subtract",e,t,n)}},addTime:function(e,t,n){var r=this;return function(){r.props.onNavigateForward(e,t),r.updateTime("add",e,t,n)}},updateTime:function(e,t,n,r){var i={},o=r?"selectedDate":"viewDate";i[o]=this.state[o].clone()[e](t,n),this.setState(i)},allowedSetTime:["hours","minutes","seconds","milliseconds"],setTime:function(e,t){var n,r=this.allowedSetTime.indexOf(e)+1,i=this.state,o=(i.selectedDate||i.viewDate).clone();for(o[e](t);r<this.allowedSetTime.length;r++)o[n=this.allowedSetTime[r]](o[n]());this.props.value||this.setState({selectedDate:o,inputValue:o.format(i.inputFormat)}),this.props.onChange(o)},updateSelectedDate:function(e,t){var n,r=e.currentTarget,i=0,o=this.state.viewDate,a=this.state.selectedDate||o;if(-1!==r.className.indexOf("rdtDay")?(-1!==r.className.indexOf("rdtNew")?i=1:-1!==r.className.indexOf("rdtOld")&&(i=-1),n=o.clone().month(o.month()+i).date(parseInt(r.getAttribute("data-value"),10))):-1!==r.className.indexOf("rdtMonth")?n=o.clone().month(parseInt(r.getAttribute("data-value"),10)).date(a.date()):-1!==r.className.indexOf("rdtYear")&&(n=o.clone().month(a.month()).date(a.date()).year(parseInt(r.getAttribute("data-value"),10))),n.hours(a.hours()).minutes(a.minutes()).seconds(a.seconds()).milliseconds(a.milliseconds()),this.props.value)this.props.closeOnSelect&&t&&this.closeCalendar();else{var s=!(this.props.closeOnSelect&&t);s||this.props.onBlur(n),this.setState({selectedDate:n,viewDate:n.clone().startOf("month"),inputValue:n.format(this.state.inputFormat),open:s})}this.props.onChange(n)},openCalendar:function(e){this.state.open||this.setState({open:!0},(function(){this.props.onFocus(e)}))},closeCalendar:function(){this.setState({open:!1},(function(){this.props.onBlur(this.state.selectedDate||this.state.inputValue)}))},handleClickOutside:function(){this.props.input&&this.state.open&&void 0===this.props.open&&!this.props.disableCloseOnClickOutside&&this.setState({open:!1},(function(){this.props.onBlur(this.state.selectedDate||this.state.inputValue)}))},localMoment:function(e,t,n){var r=null;return r=(n=n||this.props).utc?a.utc(e,t,n.strictParsing):n.displayTimeZone?a.tz(e,t,n.displayTimeZone):a(e,t,n.strictParsing),n.locale&&r.locale(n.locale),r},checkTZ:function(e){var t=console;!e.displayTimeZone||this.tzWarning||a.tz||(this.tzWarning=!0,t&&t.error('react-datetime: displayTimeZone prop with value "'+e.displayTimeZone+'" is used but moment.js timezone is not loaded.'))},componentProps:{fromProps:["value","isValidDate","renderDay","renderMonth","renderYear","timeConstraints"],fromState:["viewDate","selectedDate","updateOn"],fromThis:["setDate","setTime","showView","addTime","subtractTime","updateSelectedDate","localMoment","handleClickOutside"]},getComponentProps:function(){var e=this,t=this.getFormats(this.props),n={dateFormat:t.date,timeFormat:t.time};return this.componentProps.fromProps.forEach((function(t){n[t]=e.props[t]})),this.componentProps.fromState.forEach((function(t){n[t]=e.state[t]})),this.componentProps.fromThis.forEach((function(t){n[t]=e[t]})),n},overrideEvent:function(e,t){if(this.overridenEvents||(this.overridenEvents={}),!this.overridenEvents[e]){var n=this;this.overridenEvents[e]=function(r){var i;n.props.inputProps&&n.props.inputProps[e]&&(i=n.props.inputProps[e](r)),!1!==i&&t(r)}}return this.overridenEvents[e]},render:function(){var e="rdt"+(this.props.className?Array.isArray(this.props.className)?" "+this.props.className.join(" "):" "+this.props.className:""),t=[];if(this.props.input){var n=r({type:"text",className:"form-control",value:this.state.inputValue},this.props.inputProps,{onClick:this.overrideEvent("onClick",this.openCalendar),onFocus:this.overrideEvent("onFocus",this.openCalendar),onChange:this.overrideEvent("onChange",this.onInputChange),onKeyDown:this.overrideEvent("onKeyDown",this.onInputKey)});t=this.props.renderInput?[s.createElement("div",{key:"i"},this.props.renderInput(n,this.openCalendar,this.closeCalendar))]:[s.createElement("input",r({key:"i"},n))]}else e+=" rdtStatic";return(this.props.open||void 0===this.props.open&&this.state.open)&&(e+=" rdtOpen"),s.createElement(p,{className:e,onClickOut:this.handleClickOutside},t.concat(s.createElement("div",{key:"dt",className:"rdtPicker"},s.createElement(l,{view:this.state.currentView,viewProps:this.getComponentProps()}))))}}),p=u(o({render:function(){return s.createElement("div",{className:this.props.className},this.props.children)},handleClickOutside:function(e){this.props.onClickOut(e)}}));f.defaultProps={className:"",defaultValue:"",inputProps:{},input:!0,onFocus:function(){},onBlur:function(){},onChange:function(){},onViewModeChange:function(){},onNavigateBack:function(){},onNavigateForward:function(){},timeFormat:!0,timeConstraints:{},dateFormat:!0,strictParsing:!0,closeOnSelect:!1,closeOnTab:!0,utc:!1},f.moment=a,e.exports=f},function(e,t,n){"use strict";var r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(e){var t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t.filter((function(t){return r.call(e,t)}))}e.exports=Object.assign||function(e,t){for(var n,r,a=i(e),s=1;s<arguments.length;s++){n=arguments[s],r=o(Object(n));for(var l=0;l<r.length;l++)a[r[l]]=n[r[l]]}return a}},function(e,t,n){!function(e){"use strict";var t,n,r=e.Pos;function i(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,i=0;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return n==r?e:new RegExp(e.source,r)}function o(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function a(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.lastLine();o<=s;o++,a=0){t.lastIndex=a;var l=e.getLine(o),u=t.exec(l);if(u)return{from:r(o,u.index),to:r(o,u.index+u[0].length),match:u}}}function s(e,t,n){if(!o(t))return a(e,t,n);t=i(t,"gm");for(var s,l=1,u=n.line,c=e.lastLine();u<=c;){for(var d=0;d<l&&!(u>c);d++){var f=e.getLine(u++);s=null==s?f:s+"\n"+f}l*=2,t.lastIndex=n.ch;var p=t.exec(s);if(p){var h=s.slice(0,p.index).split("\n"),m=p[0].split("\n"),g=n.line+h.length-1,v=h[h.length-1].length;return{from:r(g,v),to:r(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:p}}}}function l(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function u(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var u=e.getLine(o),c=l(u,t,a<0?0:u.length-a);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function c(e,t,n){if(!o(t))return u(e,t,n);t=i(t,"gm");for(var a,s=1,c=e.getLine(n.line).length-n.ch,d=n.line,f=e.firstLine();d>=f;){for(var p=0;p<s&&d>=f;p++){var h=e.getLine(d--);a=null==a?h:h+"\n"+a}s*=2;var m=l(a,t,c);if(m){var g=a.slice(0,m.index).split("\n"),v=m[0].split("\n"),y=d+g.length,b=g[g.length-1].length;return{from:r(y,b),to:r(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:m}}}}function d(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,f=e.lastLine()+1-l.length;u<=f;u++,c=0){var p=e.getLine(u).slice(c),h=s(p);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=d(p,h,m,s)+c,{from:r(u,d(p,h,m,s)+c),to:r(u,d(p,h,m+l[0].length,s)+c)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(u+v))!=l[v])continue e;var y=e.getLine(u+l.length-1),b=s(y),_=l[l.length-1];if(b.slice(0,_.length)==_)return{from:r(u,d(p,h,g,s)+c),to:r(u+l.length-1,d(y,b,_.length,s))}}}}function p(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,f=e.firstLine()-1+l.length;u>=f;u--,c=-1){var p=e.getLine(u);c>-1&&(p=p.slice(0,c));var h=s(p);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(u,d(p,h,m,s)),to:r(u,d(p,h,m+l[0].length,s))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var v=1;for(o=u-l.length+1;v<l.length-1;v++)if(s(e.getLine(o+v))!=l[v])continue e;var y=e.getLine(u+1-l.length),b=s(y);if(b.slice(b.length-l[0].length)==l[0])return{from:r(u+1-l.length,d(y,b,y.length-l[0].length,s)),to:r(u,d(p,h,g.length,s))}}}}function h(e,t,n,o){var l;this.atOccurrence=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof o?l=o.caseFold:(l=o,o=null),"string"==typeof t?(null==l&&(l=!1),this.matches=function(n,r){return(n?p:f)(e,t,r,l)}):(t=i(t,"gm"),o&&!1===o.multiline?this.matches=function(n,r){return(n?u:a)(e,t,r)}:this.matches=function(n,r){return(n?c:s)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),h.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var n=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));n&&0==e.cmpPos(n.from,n.to);)t?n.from.ch?n.from=r(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(r(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=r(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(t,r(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var i=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new h(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new h(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(5))},function(e,t,n){!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),d=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!d)return null;var f=">"==d.charAt(1)?1:-1;if(o&&o.strict&&f>0!=(l==t.ch))return null;var p=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(f>0?1:0)),f,p||null,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==d.charAt(0),forward:f>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],d=i(s),f=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),p=t.line;p!=f;p+=o){var h=e.getLine(p);if(h){var m=o>0?0:h.length-1,g=o>0?h.length:-1;if(!(h.length>l))for(p==t.line&&(m=t.ch-(o<0?1:0));m!=g;m+=o){var v=h.charAt(m);if(d.test(v)&&(void 0===a||e.getTokenTypeAt(n(p,m+1))==a)){var y=r[v];if(y&&">"==y.charAt(1)==o>0)c.push(v);else{if(!c.length)return{pos:n(p,m),ch:v};c.pop()}}}}}return p-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=[],l=e.listSelections(),u=0;u<l.length;u++){var c=l[u].empty()&&o(e,l[u].head,i);if(c&&e.getLine(c.from.line).length<=a){var d=c.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(e.markText(c.from,n(c.from.line,c.from.ch+1),{className:d})),c.to&&e.getLine(c.to.line).length<=a&&s.push(e.markText(c.to,n(c.to.line,c.to.ch+1),{className:d}))}}if(s.length){t&&e.state.focused&&e.focus();var f=function(){e.operation((function(){for(var e=0;e<s.length;e++)s[e].clear()}))};if(!r)return f;setTimeout(f,800)}}function l(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)}))}e.defineOption("matchBrackets",!1,(function(t,n,r){function i(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}r&&r!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",i),i(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",i))})),e.defineExtension("matchBrackets",(function(){s(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return a(this,e,t,n,r)}))}(n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(18)),i=(a(n(1)),n(16)),o=n(11);function a(e){return e&&e.__esModule?e:{default:e}}const s=(0,r.default)("button",{target:"ehe71p20",label:"StyledSettingsButton"})(i.buttons.button,";",i.buttons.default,";",i.shadows.drop,";display:block;position:absolute;z-index:",i.zIndex.zIndex100,";right:8px;top:8px;opacity:0.8;padding:2px 4px;line-height:1;height:auto;",i.Icon,"{position:relative;top:1px;}");var l=({showClose:e,onClick:t})=>(0,o.jsx)(s,{onClick:t},(0,o.jsx)(i.Icon,{type:e?"close":"settings",size:"small"}));t.default=l},function(e,t,n){!function(e){"use strict";e.defineMode("coffeescript",(function(e,t){function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var r=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,i=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,o=/^[_A-Za-z$][_A-Za-z$0-9]*/,a=/^@[_A-Za-z$][_A-Za-z$0-9]*/,s=n(["and","or","not","is","isnt","in","instanceof","typeof"]),l=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],u=n(l.concat(["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"]));l=n(l);var c=/^('{3}|\"{3}|['\"])/,d=/^(\/{3}|\/)/,f=n(["Infinity","NaN","undefined","null","true","false","on","off","yes","no"]);function p(e,t){if(e.sol()){null===t.scope.align&&(t.scope.align=!1);var n=t.scope.offset;if(e.eatSpace()){var l=e.indentation();return l>n&&"coffee"==t.scope.type?"indent":l<n?"dedent":null}n>0&&v(e,t)}if(e.eatSpace())return null;var p=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return t.tokenize=m,t.tokenize(e,t);if("#"===p)return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var g=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(g=!0),e.match(/^-?\d+\.\d*/)&&(g=!0),e.match(/^-?\.\d+/)&&(g=!0),g)return"."==e.peek()&&e.backUp(1),"number";var y=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(y=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(y=!0),e.match(/^-?0(?![\dx])/i)&&(y=!0),y)return"number"}if(e.match(c))return t.tokenize=h(e.current(),!1,"string"),t.tokenize(e,t);if(e.match(d)){if("/"!=e.current()||e.match(/^.*\//,!1))return t.tokenize=h(e.current(),!0,"string-2"),t.tokenize(e,t);e.backUp(1)}return e.match(r)||e.match(s)?"operator":e.match(i)?"punctuation":e.match(f)?"atom":e.match(a)||t.prop&&e.match(o)?"property":e.match(u)?"keyword":e.match(o)?"variable":(e.next(),"error")}function h(e,n,r){return function(i,o){for(;!i.eol();)if(i.eatWhile(/[^'"\/\\]/),i.eat("\\")){if(i.next(),n&&i.eol())return r}else{if(i.match(e))return o.tokenize=p,r;i.eat(/['"\/]/)}return n&&(t.singleLineStringErrors?r="error":o.tokenize=p),r}}function m(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){t.tokenize=p;break}e.eatWhile("#")}return"comment"}function g(t,n,r){r=r||"coffee";for(var i=0,o=!1,a=null,s=n.scope;s;s=s.prev)if("coffee"===s.type||"}"==s.type){i=s.offset+e.indentUnit;break}"coffee"!==r?(o=null,a=t.column()+t.current().length):n.scope.align&&(n.scope.align=!1),n.scope={offset:i,type:r,prev:n.scope,align:o,alignOffset:a}}function v(e,t){if(t.scope.prev){if("coffee"===t.scope.type){for(var n=e.indentation(),r=!1,i=t.scope;i;i=i.prev)if(n===i.offset){r=!0;break}if(!r)return!0;for(;t.scope.prev&&t.scope.offset!==n;)t.scope=t.scope.prev;return!1}return t.scope=t.scope.prev,!1}}return{startState:function(e){return{tokenize:p,scope:{offset:e||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(e,t){var n=null===t.scope.align&&t.scope;n&&e.sol()&&(n.align=!1);var r=function(e,t){var n=t.tokenize(e,t),r=e.current();"return"===r&&(t.dedent=!0),(("->"===r||"=>"===r)&&e.eol()||"indent"===n)&&g(e,t);var i="[({".indexOf(r);if(-1!==i&&g(e,t,"])}".slice(i,i+1)),l.exec(r)&&g(e,t),"then"==r&&v(e,t),"dedent"===n&&v(e,t))return"error";if(-1!==(i="])}".indexOf(r))){for(;"coffee"==t.scope.type&&t.scope.prev;)t.scope=t.scope.prev;t.scope.type==r&&(t.scope=t.scope.prev)}return t.dedent&&e.eol()&&("coffee"==t.scope.type&&t.scope.prev&&(t.scope=t.scope.prev),t.dedent=!1),n}(e,t);return r&&"comment"!=r&&(n&&(n.align=!0),t.prop="punctuation"==r&&"."==e.current()),r},indent:function(e,t){if(e.tokenize!=p)return 0;var n=e.scope,r=t&&"])}".indexOf(t.charAt(0))>-1;if(r)for(;"coffee"==n.type&&n.prev;)n=n.prev;var i=r&&n.type===t.charAt(0);return n.align?n.alignOffset-(i?1:0):(i?n.prev:n).offset},lineComment:"#",fold:"indent"}})),e.defineMIME("application/vnd.coffeescript","coffeescript"),e.defineMIME("text/x-coffeescript","coffeescript"),e.defineMIME("text/coffeescript","coffeescript")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("markdown",(function(t,n){var r=e.getMode(t,"text/html"),i="null"==r.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.fencedCodeBlockDefaultMode&&(n.fencedCodeBlockDefaultMode="text/plain"),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var o={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var a in o)o.hasOwnProperty(a)&&n.tokenTypeOverrides[a]&&(o[a]=n.tokenTypeOverrides[a]);var s=/^([*\-_])(?:\s*\1){2,}\s*$/,l=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,c=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,d=/^ {0,3}(?:\={1,}|-{2,})\s*$/,f=/^[^#!\[\]*_\\<>` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,h=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/;function g(e,t,n){return t.f=t.inline=n,n(e,t)}function v(e,t,n){return t.f=t.block=n,n(e,t)}function y(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==_){var n=i;if(!n){var o=e.innerMode(r,t.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(t.f=E,t.block=b,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function b(r,i){var a,f=r.column()===i.indentation,m=!(a=i.prevLine.stream)||!/\S/.test(a.string),v=i.indentedCode,y=i.prevLine.hr,b=!1!==i.list,_=(i.listStack[i.listStack.length-1]||0)+3;i.indentedCode=!1;var k=i.indentation;if(null===i.indentationDiff&&(i.indentationDiff=i.indentation,b)){for(i.list=null;k<i.listStack[i.listStack.length-1];)i.listStack.pop(),i.listStack.length?i.indentation=i.listStack[i.listStack.length-1]:i.list=!1;!1!==i.list&&(i.indentationDiff=k-i.listStack[i.listStack.length-1])}var E=!(m||y||i.prevLine.header||b&&v||i.prevLine.fencedCodeEnd),S=(!1===i.list||y||m)&&i.indentation<=_&&r.match(s),O=null;if(i.indentationDiff>=4&&(v||i.prevLine.fencedCodeEnd||i.prevLine.header||m))return r.skipToEnd(),i.indentedCode=!0,o.code;if(r.eatSpace())return null;if(f&&i.indentation<=_&&(O=r.match(c))&&O[1].length<=6)return i.quote=0,i.header=O[1].length,i.thisLine.header=!0,n.highlightFormatting&&(i.formatting="header"),i.f=i.inline,x(i);if(i.indentation<=_&&r.eat(">"))return i.quote=f?1:i.quote+1,n.highlightFormatting&&(i.formatting="quote"),r.eatSpace(),x(i);if(!S&&!i.setext&&f&&i.indentation<=_&&(O=r.match(l))){var T=O[1]?"ol":"ul";return i.indentation=k+r.current().length,i.list=!0,i.quote=0,i.listStack.push(i.indentation),i.em=!1,i.strong=!1,i.code=!1,i.strikethrough=!1,n.taskLists&&r.match(u,!1)&&(i.taskList=!0),i.f=i.inline,n.highlightFormatting&&(i.formatting=["list","list-"+T]),x(i)}return f&&i.indentation<=_&&(O=r.match(p,!0))?(i.quote=0,i.fencedEndRE=new RegExp(O[1]+"+ *$"),i.localMode=n.fencedCodeBlockHighlighting&&function(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return"null"==i.name?null:i}(O[2]||n.fencedCodeBlockDefaultMode),i.localMode&&(i.localState=e.startState(i.localMode)),i.f=i.block=w,n.highlightFormatting&&(i.formatting="code-block"),i.code=-1,x(i)):i.setext||!(E&&b||i.quote||!1!==i.list||i.code||S||h.test(r.string))&&(O=r.lookAhead(1))&&(O=O.match(d))?(i.setext?(i.header=i.setext,i.setext=0,r.skipToEnd(),n.highlightFormatting&&(i.formatting="header")):(i.header="="==O[0].charAt(0)?1:2,i.setext=i.header),i.thisLine.header=!0,i.f=i.inline,x(i)):S?(r.skipToEnd(),i.hr=!0,i.thisLine.hr=!0,o.hr):"["===r.peek()?g(r,i,C):g(r,i,i.inline)}function _(t,n){var o=r.token(t,n.htmlState);if(!i){var a=e.innerMode(r,n.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=E,n.block=b,n.htmlState=null)}return o}function w(e,t){var r,i=t.listStack[t.listStack.length-1]||0,a=t.indentation<i,s=i+3;return t.fencedEndRE&&t.indentation<=s&&(a||e.match(t.fencedEndRE))?(n.highlightFormatting&&(t.formatting="code-block"),a||(r=x(t)),t.localMode=t.localState=null,t.block=b,t.f=E,t.fencedEndRE=null,t.code=0,t.thisLine.fencedCodeEnd=!0,a?v(e,t,t.block):r):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),o.code)}function x(e){var t=[];if(e.formatting){t.push(o.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)t.push(o.formatting+"-"+e.formatting[r]),"header"===e.formatting[r]&&t.push(o.formatting+"-"+e.formatting[r]+"-"+e.header),"quote"===e.formatting[r]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(o.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(o.linkHref,"url"):(e.strong&&t.push(o.strong),e.em&&t.push(o.em),e.strikethrough&&t.push(o.strikethrough),e.emoji&&t.push(o.emoji),e.linkText&&t.push(o.linkText),e.code&&t.push(o.code),e.image&&t.push(o.image),e.imageAltText&&t.push(o.imageAltText,"link"),e.imageMarker&&t.push(o.imageMarker)),e.header&&t.push(o.header,o.header+"-"+e.header),e.quote&&(t.push(o.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(o.quote+"-"+e.quote):t.push(o.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?t.push(o.list2):t.push(o.list3):t.push(o.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function k(e,t){if(e.match(f,!0))return x(t)}function E(t,i){var a=i.text(t,i);if(void 0!==a)return a;if(i.list)return i.list=null,x(i);if(i.taskList)return" "===t.match(u,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,x(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),x(i);var s=t.next();if(i.linkTitle){i.linkTitle=!1;var l=s;"("===s&&(l=")");var c="^\\s*(?:[^"+(l=(l+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(t.match(new RegExp(c),!0))return o.linkHref}if("`"===s){var d=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var f=t.current().length;if(0!=i.code||i.quote&&1!=f){if(f==i.code){var p=x(i);return i.code=0,p}return i.formatting=d,x(i)}return i.code=f,x(i)}if(i.code)return x(i);if("\\"===s&&(t.next(),n.highlightFormatting)){var h=x(i),g=o.formatting+"-escape";return h?h+" "+g:g}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),x(i);if("["===s&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),x(i);if("]"===s&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");var h=x(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=O,h}if("["===s&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,n.highlightFormatting&&(i.formatting="link")),x(i);if("]"===s&&i.linkText){n.highlightFormatting&&(i.formatting="link");var h=x(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?O:E,h}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=S,n.highlightFormatting&&(i.formatting="link"),(h=x(i))?h+=" ":h="",h+o.linkInline;if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=S,n.highlightFormatting&&(i.formatting="link"),(h=x(i))?h+=" ":h="",h+o.linkEmail;if(n.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var y=t.string.indexOf(">",t.pos);if(-1!=y){var b=t.string.substring(t.start,y);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(b)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),v(t,i,_)}if(n.xml&&"<"===s&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var w=1,k=1==t.pos?" ":t.string.charAt(t.pos-2);w<3&&t.eat(s);)w++;var T=t.peek()||" ",C=!/\s/.test(T)&&(!m.test(T)||/\s/.test(k)||m.test(k)),A=!/\s/.test(k)&&(!m.test(k)||/\s/.test(T)||m.test(T)),P=null,R=null;if(w%2&&(i.em||!C||"*"!==s&&A&&!m.test(k)?i.em!=s||!A||"*"!==s&&C&&!m.test(T)||(P=!1):P=!0),w>1&&(i.strong||!C||"*"!==s&&A&&!m.test(k)?i.strong!=s||!A||"*"!==s&&C&&!m.test(T)||(R=!1):R=!0),null!=R||null!=P)return n.highlightFormatting&&(i.formatting=null==P?"strong":null==R?"em":"strong em"),!0===P&&(i.em=s),!0===R&&(i.strong=s),p=x(i),!1===P&&(i.em=!1),!1===R&&(i.strong=!1),p}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return x(i);t.backUp(1)}if(n.strikethrough)if("~"===s&&t.eatWhile(s)){if(i.strikethrough)return n.highlightFormatting&&(i.formatting="strikethrough"),p=x(i),i.strikethrough=!1,p;if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),x(i)}else if(" "===s&&t.match(/^~~/,!0)){if(" "===t.peek())return x(i);t.backUp(2)}if(n.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var M=x(i);return i.emoji=!1,M}return" "===s&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),x(i)}function S(e,t){if(">"===e.next()){t.f=t.inline=E,n.highlightFormatting&&(t.formatting="link");var r=x(t);return r?r+=" ":r="",r+o.linkInline}return e.match(/^[^>]+/,!0),o.linkInline}function O(e,t){if(e.eatSpace())return null;var r,i=e.next();return"("===i||"["===i?(t.f=t.inline=(r="("===i?")":"]",function(e,t){if(e.next()===r){t.f=t.inline=E,n.highlightFormatting&&(t.formatting="link-string");var i=x(t);return t.linkHref=!1,i}return e.match(T[r]),t.linkHref=!0,x(t)}),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,x(t)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function C(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=A,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,x(t)):g(e,t,E)}function A(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=P,n.highlightFormatting&&(t.formatting="link");var r=x(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function P(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=E,o.linkHref+" url")}var R={startState:function(){return{f:b,prevLine:{stream:null},thisLine:{stream:null},block:b,htmlState:null,indentation:0,inline:E,text:k,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return y(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=_)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==_?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:R}},indent:function(t,n,i){return t.block==_&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:y,getType:x,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return R}),"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")}(n(5),n(233),n(1570))},function(e,t,n){!function(e){"use strict";e.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{\{/,push:"handlebars_raw",token:"tag"},{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",token:"tag"}],handlebars_raw:[{regex:/\}\}\}/,pop:!0,token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),e.defineMode("handlebars",(function(t,n){var r=e.getMode(t,"handlebars-tags");return n&&n.base?e.multiplexingMode(e.getMode(t,n.base),{open:"{{",close:/\}\}\}?/,mode:r,parseDelimiters:!0}):r})),e.defineMIME("text/x-handlebars-template","handlebars")}(n(5),n(199),n(403))},function(e,t,n){!function(e){"use strict";e.defineMode("haskell",(function(e,t){function n(e,t,n){return t(n),n(e,t)}var r=/[a-z_]/,i=/[A-Z]/,o=/\d/,a=/[0-9A-Fa-f]/,s=/[0-7]/,l=/[a-z_A-Z0-9'\xa1-\uffff]/,u=/[-!#$%&*+.\/<=>?@\\^|~:]/,c=/[(),;[\]`{}]/,d=/[ \t\v\f]/;function f(e,t){if(e.eatWhile(d))return null;var h=e.next();if(c.test(h)){if("{"==h&&e.eat("-")){var m="comment";return e.eat("#")&&(m="meta"),n(e,t,function e(t,n){return 0==n?f:function(r,i){for(var o=n;!r.eol();){var a=r.next();if("{"==a&&r.eat("-"))++o;else if("-"==a&&r.eat("}")&&0==--o)return i(f),t}return i(e(t,o)),t}}(m,1))}return null}if("'"==h)return e.eat("\\"),e.next(),e.eat("'")?"string":"string error";if('"'==h)return n(e,t,p);if(i.test(h))return e.eatWhile(l),e.eat(".")?"qualifier":"variable-2";if(r.test(h))return e.eatWhile(l),"variable";if(o.test(h)){if("0"==h){if(e.eat(/[xX]/))return e.eatWhile(a),"integer";if(e.eat(/[oO]/))return e.eatWhile(s),"number"}return e.eatWhile(o),m="number",e.match(/^\.\d+/)&&(m="number"),e.eat(/[eE]/)&&(m="number",e.eat(/[-+]/),e.eatWhile(o)),m}return"."==h&&e.eat(".")?"keyword":u.test(h)?"-"==h&&e.eat(/-/)&&(e.eatWhile(/-/),!e.eat(u))?(e.skipToEnd(),"comment"):(m="variable",":"==h&&(m="variable-2"),e.eatWhile(u),m):"error"}function p(e,t){for(;!e.eol();){var n=e.next();if('"'==n)return t(f),"string";if("\\"==n){if(e.eol()||e.eat(d))return t(h),"string";e.eat("&")||e.next()}}return t(f),"string error"}function h(e,t){return e.eat("\\")?n(e,t,p):(e.next(),t(f),"error")}var m=function(){var e={};function n(t){return function(){for(var n=0;n<arguments.length;n++)e[arguments[n]]=t}}n("keyword")("case","class","data","default","deriving","do","else","foreign","if","import","in","infix","infixl","infixr","instance","let","module","newtype","of","then","type","where","_"),n("keyword")("..",":","::","=","\\","<-","->","@","~","=>"),n("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),n("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),n("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var r=t.overrideKeywords;if(r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i]);return e}();return{startState:function(){return{f:f}},copyState:function(e){return{f:e.f}},token:function(e,t){var n=t.f(e,(function(e){t.f=e})),r=e.current();return m.hasOwnProperty(r)?m[r]:n},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}})),e.defineMIME("text/x-haskell","haskell")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("pug",(function(t){var n="keyword",r={"{":"}","(":")","[":"]"},i=e.getMode(t,"javascript");function o(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=e.startState(i),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}function a(e,t){if(e.match("#{"))return t.isInterpolating=!0,t.interpolationNesting=0,"punctuation"}function s(n,r){var i;if(n.match(/^:([\w\-]+)/))return t&&t.innerModes&&(i=t.innerModes(n.current().substring(1))),i||(i=n.current().substring(1)),"string"==typeof i&&(i=e.getMode(t,i)),l(n,r,i),"atom"}function l(n,r,i){i=e.mimeModes[i]||i,i=t.innerModes&&t.innerModes(i)||i,i=e.mimeModes[i]||i,i=e.getMode(t,i),r.indentOf=n.indentation(),i&&"null"!==i.name?r.innerMode=i:r.indentToken="string"}function u(t,n,r){if(t.indentation()>n.indentOf||n.innerModeForLine&&!t.sol()||r)return n.innerMode?(n.innerState||(n.innerState=n.innerMode.startState?e.startState(n.innerMode,t.indentation()):{}),t.hideFirstChars(n.indentOf+2,(function(){return n.innerMode.token(t,n.innerState)||!0}))):(t.skipToEnd(),n.indentToken);t.sol()&&(n.indentOf=1/0,n.indentToken=null,n.innerMode=null,n.innerState=null)}return o.prototype.copy=function(){var t=new o;return t.javaScriptLine=this.javaScriptLine,t.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,t.javaScriptArguments=this.javaScriptArguments,t.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,t.isInterpolating=this.isInterpolating,t.interpolationNesting=this.interpolationNesting,t.jsState=e.copyState(i,this.jsState),t.innerMode=this.innerMode,this.innerMode&&this.innerState&&(t.innerState=e.copyState(this.innerMode,this.innerState)),t.restOfLine=this.restOfLine,t.isIncludeFiltered=this.isIncludeFiltered,t.isEach=this.isEach,t.lastTag=this.lastTag,t.scriptType=this.scriptType,t.isAttrs=this.isAttrs,t.attrsNest=this.attrsNest.slice(),t.inAttributeName=this.inAttributeName,t.attributeIsType=this.attributeIsType,t.attrValue=this.attrValue,t.indentOf=this.indentOf,t.indentToken=this.indentToken,t.innerModeForLine=this.innerModeForLine,t},{startState:function(){return new o},copyState:function(e){return e.copy()},token:function(t,o){var c=u(t,o)||function(e,t){if(e.sol()&&(t.restOfLine=""),t.restOfLine){e.skipToEnd();var n=t.restOfLine;return t.restOfLine="",n}}(t,o)||function(e,t){if(t.isInterpolating){if("}"===e.peek()){if(t.interpolationNesting--,t.interpolationNesting<0)return e.next(),t.isInterpolating=!1,"punctuation"}else"{"===e.peek()&&t.interpolationNesting++;return i.token(e,t.jsState)||!0}}(t,o)||function(e,t){if(t.isIncludeFiltered){var n=s(e,t);return t.isIncludeFiltered=!1,t.restOfLine="string",n}}(t,o)||function(e,t){if(t.isEach){if(e.match(/^ in\b/))return t.javaScriptLine=!0,t.isEach=!1,n;if(e.sol()||e.eol())t.isEach=!1;else if(e.next()){for(;!e.match(/^ in\b/,!1)&&e.next(););return"variable"}}}(t,o)||function t(n,o){if(o.isAttrs){if(r[n.peek()]&&o.attrsNest.push(r[n.peek()]),o.attrsNest[o.attrsNest.length-1]===n.peek())o.attrsNest.pop();else if(n.eat(")"))return o.isAttrs=!1,"punctuation";if(o.inAttributeName&&n.match(/^[^=,\)!]+/))return"="!==n.peek()&&"!"!==n.peek()||(o.inAttributeName=!1,o.jsState=e.startState(i),"script"===o.lastTag&&"type"===n.current().trim().toLowerCase()?o.attributeIsType=!0:o.attributeIsType=!1),"attribute";var a=i.token(n,o.jsState);if(o.attributeIsType&&"string"===a&&(o.scriptType=n.current().toString()),0===o.attrsNest.length&&("string"===a||"variable"===a||"keyword"===a))try{return Function("","var x "+o.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),o.inAttributeName=!0,o.attrValue="",n.backUp(n.current().length),t(n,o)}catch(e){}return o.attrValue+=n.current(),a||!0}}(t,o)||function(e,t){if(e.sol()&&(t.javaScriptLine=!1,t.javaScriptLineExcludesColon=!1),t.javaScriptLine){if(t.javaScriptLineExcludesColon&&":"===e.peek())return t.javaScriptLine=!1,void(t.javaScriptLineExcludesColon=!1);var n=i.token(e,t.jsState);return e.eol()&&(t.javaScriptLine=!1),n||!0}}(t,o)||function(e,t){if(t.javaScriptArguments)return 0===t.javaScriptArgumentsDepth&&"("!==e.peek()?void(t.javaScriptArguments=!1):("("===e.peek()?t.javaScriptArgumentsDepth++:")"===e.peek()&&t.javaScriptArgumentsDepth--,0===t.javaScriptArgumentsDepth?void(t.javaScriptArguments=!1):i.token(e,t.jsState)||!0)}(t,o)||function(e,t){if(t.mixinCallAfter)return t.mixinCallAfter=!1,e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),!0}(t,o)||function(e){if(e.match(/^yield\b/))return"keyword"}(t)||function(e){if(e.match(/^(?:doctype) *([^\n]+)?/))return"meta"}(t)||a(t,o)||function(e,t){if(e.match(/^case\b/))return t.javaScriptLine=!0,n}(t,o)||function(e,t){if(e.match(/^when\b/))return t.javaScriptLine=!0,t.javaScriptLineExcludesColon=!0,n}(t,o)||function(e){if(e.match(/^default\b/))return n}(t)||function(e,t){if(e.match(/^extends?\b/))return t.restOfLine="string",n}(t,o)||function(e,t){if(e.match(/^append\b/))return t.restOfLine="variable",n}(t,o)||function(e,t){if(e.match(/^prepend\b/))return t.restOfLine="variable",n}(t,o)||function(e,t){if(e.match(/^block\b *(?:(prepend|append)\b)?/))return t.restOfLine="variable",n}(t,o)||function(e,t){if(e.match(/^include\b/))return t.restOfLine="string",n}(t,o)||function(e,t){if(e.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&e.match("include"))return t.isIncludeFiltered=!0,n}(t,o)||function(e,t){if(e.match(/^mixin\b/))return t.javaScriptLine=!0,n}(t,o)||function(e,t){return e.match(/^\+([-\w]+)/)?(e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),"variable"):e.match(/^\+#{/,!1)?(e.next(),t.mixinCallAfter=!0,a(e,t)):void 0}(t,o)||function(e,t){if(e.match(/^(if|unless|else if|else)\b/))return t.javaScriptLine=!0,n}(t,o)||function(e,t){if(e.match(/^(- *)?(each|for)\b/))return t.isEach=!0,n}(t,o)||function(e,t){if(e.match(/^while\b/))return t.javaScriptLine=!0,n}(t,o)||function(e,t){var n;if(n=e.match(/^(\w(?:[-:\w]*\w)?)\/?/))return t.lastTag=n[1].toLowerCase(),"script"===t.lastTag&&(t.scriptType="application/javascript"),"tag"}(t,o)||s(t,o)||function(e,t){if(e.match(/^(!?=|-)/))return t.javaScriptLine=!0,"punctuation"}(t,o)||function(e){if(e.match(/^#([\w-]+)/))return"builtin"}(t)||function(e){if(e.match(/^\.([\w-]+)/))return"qualifier"}(t)||function(e,t){if("("==e.peek())return e.next(),t.isAttrs=!0,t.attrsNest=[],t.inAttributeName=!0,t.attrValue="",t.attributeIsType=!1,"punctuation"}(t,o)||function(e,t){if(e.match(/^&attributes\b/))return t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0,"keyword"}(t,o)||function(e){if(e.sol()&&e.eatSpace())return"indent"}(t)||function(e,t){return e.match(/^(?:\| ?| )([^\n]+)/)?"string":e.match(/^(<[^\n]*)/,!1)?(l(e,t,"htmlmixed"),t.innerModeForLine=!0,u(e,t,!0)):void 0}(t,o)||function(e,t){if(e.match(/^ *\/\/(-)?([^\n]*)/))return t.indentOf=e.indentation(),t.indentToken="comment","comment"}(t,o)||function(e){if(e.match(/^: */))return"colon"}(t)||function(e,t){if(e.eat(".")){var n=null;return"script"===t.lastTag&&-1!=t.scriptType.toLowerCase().indexOf("javascript")?n=t.scriptType.toLowerCase().replace(/"|'/g,""):"style"===t.lastTag&&(n="css"),l(e,t,n),"dot"}}(t,o)||function(e){return e.next(),null}(t);return!0===c?null:c}}}),"javascript","css","htmlmixed"),e.defineMIME("text/x-pug","pug"),e.defineMIME("text/x-jade","pug")}(n(5),n(198),n(232),n(126))},function(e,t,n){!function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n,r=t(["and","or","not","is"]),i=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],o=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function a(e){return e.scopes[e.scopes.length-1]}e.registerHelper("hintWords","python",i.concat(o)),e.defineMode("python",(function(n,s){for(var l=s.delimiters||s.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,u=[s.singleOperators,s.doubleOperators,s.doubleDelimiters,s.tripleDelimiters,s.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],c=0;c<u.length;c++)u[c]||u.splice(c--,1);var d=s.hangingIndent||n.indentUnit,f=i,p=o;null!=s.extra_keywords&&(f=f.concat(s.extra_keywords)),null!=s.extra_builtins&&(p=p.concat(s.extra_builtins));var h=!(s.version&&Number(s.version)<3);if(h){var m=s.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;f=f.concat(["nonlocal","False","True","None","async","await"]),p=p.concat(["ascii","bytes","exec","print"]);var g=new RegExp("^(([rbuf]|(br)|(fr))?('{3}|\"{3}|['\"]))","i")}else m=s.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/,f=f.concat(["exec","print"]),p=p.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]),g=new RegExp("^(([rubf]|(ur)|(br))?('{3}|\"{3}|['\"]))","i");var v=t(f),y=t(p);function b(e,t){var n=e.sol()&&"\\"!=t.lastToken;if(n&&(t.indent=e.indentation()),n&&"py"==a(t).type){var r=a(t).offset;if(e.eatSpace()){var i=e.indentation();return i>r?w(t):i<r&&x(e,t)&&"#"!=e.peek()&&(t.errorToken=!0),null}var o=_(e,t);return r>0&&x(e,t)&&(o+=" error"),o}return _(e,t)}function _(e,t,n){if(e.eatSpace())return null;if(!n&&e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,!1)){var i=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^[\d_]+\.\d*/)&&(i=!0),e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var o=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(o=!0),e.match(/^0b[01_]+/i)&&(o=!0),e.match(/^0o[0-7_]+/i)&&(o=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),o=!0),e.match(/^0(?![\dx])/i)&&(o=!0),o)return e.eat(/L/i),"number"}if(e.match(g))return-1!==e.current().toLowerCase().indexOf("f")?(t.tokenize=function(e,t){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length;function r(e){return function(t,n){var o=_(t,n,!0);return"punctuation"==o&&("{"==t.current()?n.tokenize=r(e+1):"}"==t.current()&&(n.tokenize=e>1?r(e-1):i)),o}}function i(i,o){for(;!i.eol();)if(i.eatWhile(/[^'"\{\}\\]/),i.eat("\\")){if(i.next(),n&&i.eol())return"string"}else{if(i.match(e))return o.tokenize=t,"string";if(i.match("{{"))return"string";if(i.match("{",!1))return o.tokenize=r(0),i.current()?"string":o.tokenize(i,o);if(i.match("}}"))return"string";if(i.match("}"))return"error";i.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return"error";o.tokenize=t}return"string"}return i.isString=!0,i}(e.current(),t.tokenize),t.tokenize(e,t)):(t.tokenize=function(e,t){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length;function r(r,i){for(;!r.eol();)if(r.eatWhile(/[^'"\\]/),r.eat("\\")){if(r.next(),n&&r.eol())return"string"}else{if(r.match(e))return i.tokenize=t,"string";r.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return"error";i.tokenize=t}return"string"}return r.isString=!0,r}(e.current(),t.tokenize),t.tokenize(e,t));for(var a=0;a<u.length;a++)if(e.match(u[a]))return"operator";return e.match(l)?"punctuation":"."==t.lastToken&&e.match(m)?"property":e.match(v)||e.match(r)?"keyword":e.match(y)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(m)?"def"==t.lastToken||"class"==t.lastToken?"def":"variable":(e.next(),n?null:"error")}function w(e){for(;"py"!=a(e).type;)e.scopes.pop();e.scopes.push({offset:a(e).offset+n.indentUnit,type:"py",align:null})}function x(e,t){for(var n=e.indentation();t.scopes.length>1&&a(t).offset>n;){if("py"!=a(t).type)return!0;t.scopes.pop()}return a(t).offset!=n}function k(e,t){e.sol()&&(t.beginningOfLine=!0);var n=t.tokenize(e,t),r=e.current();if(t.beginningOfLine&&"@"==r)return e.match(m,!1)?"meta":h?"operator":"error";if(/\S/.test(r)&&(t.beginningOfLine=!1),"variable"!=n&&"builtin"!=n||"meta"!=t.lastToken||(n="meta"),"pass"!=r&&"return"!=r||(t.dedent+=1),"lambda"==r&&(t.lambda=!0),":"!=r||t.lambda||"py"!=a(t).type||w(t),1==r.length&&!/string|comment/.test(n)){var i="[({".indexOf(r);if(-1!=i&&function(e,t,n){var r=e.match(/^([\s\[\{\(]|#.*)*$/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+d,type:n,align:r})}(e,t,"])}".slice(i,i+1)),-1!=(i="])}".indexOf(r))){if(a(t).type!=r)return"error";t.indent=t.scopes.pop().offset-d}}return t.dedent>0&&e.eol()&&"py"==a(t).type&&(t.scopes.length>1&&t.scopes.pop(),t.dedent-=1),n}return{startState:function(e){return{tokenize:b,scopes:[{offset:e||0,type:"py",align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var n=t.errorToken;n&&(t.errorToken=!1);var r=k(e,t);return r&&"comment"!=r&&(t.lastToken="keyword"==r||"punctuation"==r?e.current():r),"punctuation"==r&&(r=null),e.eol()&&t.lambda&&(t.lambda=!1),n?r+" error":r},indent:function(t,n){if(t.tokenize!=b)return t.tokenize.isString?e.Pass:0;var r=a(t),i=r.type==n.charAt(0);return null!=r.align?r.align-(i?1:0):r.offset-(i?d:0)},electricInput:/^\s*[\}\]\)]$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-python","python"),e.defineMIME("text/x-cython",{name:"python",extra_keywords:(n="by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE",n.split(" "))})}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("stex",(function(e,t){function n(e,t){e.cmdState.push(t)}function r(e){return e.cmdState.length>0?e.cmdState[e.cmdState.length-1]:null}function i(e,t,n){return function(){this.name=e,this.bracketNo=0,this.style=t,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var o={};function a(e,t){e.f=t}function s(e,t){var i;if(e.match(/^\\[a-zA-Z@]+/)){var s=e.current().slice(1);return n(t,i=new(i=o.hasOwnProperty(s)?o[s]:o.DEFAULT)),a(t,u),i.style}if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/\\]/))return"tag";if(e.match("\\["))return a(t,(function(e,t){return l(e,t,"\\]")})),"keyword";if(e.match("\\("))return a(t,(function(e,t){return l(e,t,"\\)")})),"keyword";if(e.match("$$"))return a(t,(function(e,t){return l(e,t,"$$")})),"keyword";if(e.match("$"))return a(t,(function(e,t){return l(e,t,"$")})),"keyword";var c=e.next();return"%"==c?(e.skipToEnd(),"comment"):"}"==c||"]"==c?(i=r(t))?(i.closeBracket(c),a(t,u),"bracket"):"error":"{"==c||"["==c?(n(t,i=new(i=o.DEFAULT)),"bracket"):/\d/.test(c)?(e.eatWhile(/[\w.%]/),"atom"):(e.eatWhile(/[\w\-_]/),"begin"==(i=function(e){for(var t=e.cmdState,n=t.length-1;n>=0;n--){var r=t[n];if("DEFAULT"!=r.name)return r}return{styleIdentifier:function(){return null}}}(t)).name&&(i.argument=e.current()),i.styleIdentifier())}function l(e,t,n){if(e.eatSpace())return null;if(n&&e.match(n))return a(t,s),"keyword";if(e.match(/^\\[a-zA-Z@]+/))return"tag";if(e.match(/^[a-zA-Z]+/))return"variable-2";if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/]/))return"tag";if(e.match(/^[\^_&]/))return"tag";if(e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var r=e.next();return"{"==r||"}"==r||"["==r||"]"==r||"("==r||")"==r?"bracket":"%"==r?(e.skipToEnd(),"comment"):"error"}function u(e,t){var n=e.peek();return"{"==n||"["==n?(r(t).openBracket(n),e.eat(n),a(t,s),"bracket"):/[ \t\r]/.test(n)?(e.eat(n),null):(a(t,s),function(e){var t=e.cmdState.pop();t&&t.closeBracket()}(t),s(e,t))}return o.importmodule=i("importmodule","tag",["string","builtin"]),o.documentclass=i("documentclass","tag",["","atom"]),o.usepackage=i("usepackage","tag",["atom"]),o.begin=i("begin","tag",["atom"]),o.end=i("end","tag",["atom"]),o.label=i("label","tag",["atom"]),o.ref=i("ref","tag",["atom"]),o.eqref=i("eqref","tag",["atom"]),o.cite=i("cite","tag",["atom"]),o.bibitem=i("bibitem","tag",["atom"]),o.Bibitem=i("Bibitem","tag",["atom"]),o.RBibitem=i("RBibitem","tag",["atom"]),o.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{startState:function(){return{cmdState:[],f:t.inMathMode?function(e,t){return l(e,t)}:s}},copyState:function(e){return{cmdState:e.cmdState.slice(),f:e.f}},token:function(e,t){return t.f(e,t)},blankLine:function(e){e.f=s,e.cmdState.length=0},lineComment:"%"}})),e.defineMIME("text/x-stex","stex"),e.defineMIME("text/x-latex","stex")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("sass",(function(t){var n,r=e.mimeModes["text/css"],i=r.propertyKeywords||{},o=r.colorKeywords||{},a=r.valueKeywords||{},s=r.fontProperties||{},l=new RegExp("^"+["true","false","null","auto"].join("|")),u=new RegExp("^"+["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"].join("|")),c=/^::?[a-zA-Z_][\w\-]*/;function d(e){return!e.peek()||e.match(/\s+$/,!1)}function f(e,t){var n=e.peek();return")"===n?(e.next(),t.tokenizer=y,"operator"):"("===n?(e.next(),e.eatSpace(),"operator"):"'"===n||'"'===n?(t.tokenizer=h(e.next()),"string"):(t.tokenizer=h(")",!1),"string")}function p(e,t){return function(n,r){return n.sol()&&n.indentation()<=e?(r.tokenizer=y,y(n,r)):(t&&n.skipTo("*/")?(n.next(),n.next(),r.tokenizer=y):n.skipToEnd(),"comment")}}function h(e,t){return null==t&&(t=!0),function n(r,i){var o=r.next(),a=r.peek(),s=r.string.charAt(r.pos-2);return"\\"!==o&&a===e||o===e&&"\\"!==s?(o!==e&&t&&r.next(),d(r)&&(i.cursorHalf=0),i.tokenizer=y,"string"):"#"===o&&"{"===a?(i.tokenizer=m(n),r.next(),"operator"):"string"}}function m(e){return function(t,n){return"}"===t.peek()?(t.next(),n.tokenizer=e,"operator"):y(t,n)}}function g(e){if(0==e.indentCount){e.indentCount++;var n=e.scopes[0].offset+t.indentUnit;e.scopes.unshift({offset:n})}}function v(e){1!=e.scopes.length&&e.scopes.shift()}function y(e,t){var r=e.peek();if(e.match("/*"))return t.tokenizer=p(e.indentation(),!0),t.tokenizer(e,t);if(e.match("//"))return t.tokenizer=p(e.indentation(),!1),t.tokenizer(e,t);if(e.match("#{"))return t.tokenizer=m(y),"operator";if('"'===r||"'"===r)return e.next(),t.tokenizer=h(r),"string";if(t.cursorHalf){if("#"===r&&(e.next(),e.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)))return d(e)&&(t.cursorHalf=0),"number";if(e.match(/^-?[0-9\.]+/))return d(e)&&(t.cursorHalf=0),"number";if(e.match(/^(px|em|in)\b/))return d(e)&&(t.cursorHalf=0),"unit";if(e.match(l))return d(e)&&(t.cursorHalf=0),"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=f,d(e)&&(t.cursorHalf=0),"atom";if("$"===r)return e.next(),e.eatWhile(/[\w-]/),d(e)&&(t.cursorHalf=0),"variable-2";if("!"===r)return e.next(),t.cursorHalf=0,e.match(/^[\w]+/)?"keyword":"operator";if(e.match(u))return d(e)&&(t.cursorHalf=0),"operator";if(e.eatWhile(/[\w-]/))return d(e)&&(t.cursorHalf=0),n=e.current().toLowerCase(),a.hasOwnProperty(n)?"atom":o.hasOwnProperty(n)?"keyword":i.hasOwnProperty(n)?(t.prevProp=e.current().toLowerCase(),"property"):"tag";if(d(e))return t.cursorHalf=0,null}else{if("-"===r&&e.match(/^-\w+-/))return"meta";if("."===r){if(e.next(),e.match(/^[\w-]+/))return g(t),"qualifier";if("#"===e.peek())return g(t),"tag"}if("#"===r){if(e.next(),e.match(/^[\w-]+/))return g(t),"builtin";if("#"===e.peek())return g(t),"tag"}if("$"===r)return e.next(),e.eatWhile(/[\w-]/),"variable-2";if(e.match(/^-?[0-9\.]+/))return"number";if(e.match(/^(px|em|in)\b/))return"unit";if(e.match(l))return"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=f,"atom";if("="===r&&e.match(/^=[\w-]+/))return g(t),"meta";if("+"===r&&e.match(/^\+[\w-]+/))return"variable-3";if("@"===r&&e.match(/@extend/)&&(e.match(/\s*[\w]/)||v(t)),e.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return g(t),"def";if("@"===r)return e.next(),e.eatWhile(/[\w-]/),"def";if(e.eatWhile(/[\w-]/)){if(e.match(/ *: *[\w-\+\$#!\("']/,!1)){n=e.current().toLowerCase();var b=t.prevProp+"-"+n;return i.hasOwnProperty(b)?"property":i.hasOwnProperty(n)?(t.prevProp=n,"property"):s.hasOwnProperty(n)?"property":"tag"}return e.match(/ *:/,!1)?(g(t),t.cursorHalf=1,t.prevProp=e.current().toLowerCase(),"property"):(e.match(/ *,/,!1)||g(t),"tag")}if(":"===r)return e.match(c)?"variable-3":(e.next(),t.cursorHalf=1,"operator")}return e.match(u)?"operator":(e.next(),null)}return{startState:function(){return{tokenizer:y,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(e,n){var r=function(e,n){e.sol()&&(n.indentCount=0);var r=n.tokenizer(e,n),i=e.current();if("@return"!==i&&"}"!==i||v(n),null!==r){for(var o=e.pos-i.length+t.indentUnit*n.indentCount,a=[],s=0;s<n.scopes.length;s++){var l=n.scopes[s];l.offset<=o&&a.push(l)}n.scopes=a}return r}(e,n);return n.lastToken={style:r,content:e.current()},r},indent:function(e){return e.scopes[0].offset}}}),"css"),e.defineMIME("text/x-sass","sass")}(n(5),n(232))},function(e,t,n){!function(e){"use strict";e.defineMode("stylus",(function(e){for(var p,g,v,y,b=e.indentUnit,_="",w=m(t),x=/^(a|b|i|s|col|em)$/i,k=m(o),E=m(a),S=m(u),O=m(l),T=m(n),C=h(n),A=m(i),P=m(r),R=m(s),M=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,I=h(c),j=m(d),D=new RegExp(/^\-(moz|ms|o|webkit)-/i),L=m(f),N="",F={};_.length<b;)_+=" ";function B(e,t){if(N=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),t.context.line.firstWord=N?N[0].replace(/^\s*/,""):"",t.context.line.indent=e.indentation(),p=e.peek(),e.match("//"))return e.skipToEnd(),["comment","comment"];if(e.match("/*"))return t.tokenize=z,z(e,t);if('"'==p||"'"==p)return e.next(),t.tokenize=U(p),t.tokenize(e,t);if("@"==p)return e.next(),e.eatWhile(/[\w\\-]/),["def",e.current()];if("#"==p){if(e.next(),e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(e.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return e.match(D)?["meta","vendor-prefixes"]:e.match(/^-?[0-9]?\.?[0-9]/)?(e.eatWhile(/[a-z%]/i),["number","unit"]):"!"==p?(e.next(),[e.match(/^(important|optional)/i)?"keyword":"operator","important"]):"."==p&&e.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:e.match(C)?("("==e.peek()&&(t.tokenize=q),["property","word"]):e.match(/^[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","mixin"]):e.match(/^(\+|-)[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","block-mixin"]):e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(e.backUp(1),["variable-3","reference"]):e.match(/^&{1}\s*$/)?["variable-3","reference"]:e.match(I)?["operator","operator"]:e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?e.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!G(e.current())?(e.match(/\./),["variable-2","variable-name"]):["variable-2","word"]:e.match(M)?["operator",e.current()]:/[:;,{}\[\]\(\)]/.test(p)?(e.next(),[null,p]):(e.next(),[null,null])}function z(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}function U(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),["string","string"]}}function q(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=U(")"),[null,"("]}function H(e,t,n,r){this.type=e,this.indent=t,this.prev=n,this.line=r||{firstWord:"",indent:0}}function W(e,t,n,r){return r=r>=0?r:b,e.context=new H(n,t.indentation()+r,e.context),n}function V(e,t){var n=e.context.indent-b;return t=t||!1,e.context=e.context.prev,t&&(e.context.indent=n),e.context.type}function $(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return function(e,t,n){return F[n.context.type](e,t,n)}(e,t,n)}function G(e){return e.toLowerCase()in w}function K(e){return(e=e.toLowerCase())in k||e in R}function Y(e){return e.toLowerCase()in j}function Q(e){return e.toLowerCase().match(D)}function X(e){var t=e.toLowerCase(),n="variable-2";return G(e)?n="tag":Y(e)?n="block-keyword":K(e)?n="property":t in S||t in L?n="atom":"return"==t||t in O?n="keyword":e.match(/^[A-Z]/)&&(n="string"),n}function J(e,t){return ne(t)&&("{"==e||"]"==e||"hash"==e||"qualifier"==e)||"block-mixin"==e}function Z(e,t){return"{"==e&&t.match(/^\s*\$?[\w-]+/i,!1)}function ee(e,t){return":"==e&&t.match(/^[a-z-]+/,!1)}function te(e){return e.sol()||e.string.match(new RegExp("^\\s*"+e.current().replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")))}function ne(e){return e.eol()||e.match(/^\s*$/,!1)}function re(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i,n="string"==typeof e?e.match(t):e.string.match(t);return n?n[0].replace(/^\s*/,""):""}return F.block=function(e,t,n){if("comment"==e&&te(t)||","==e&&ne(t)||"mixin"==e)return W(n,t,"block",0);if(Z(e,t))return W(n,t,"interpolation");if(ne(t)&&"]"==e&&!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!G(re(t)))return W(n,t,"block",0);if(J(e,t))return W(n,t,"block");if("}"==e&&ne(t))return W(n,t,"block",0);if("variable-name"==e)return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||Y(re(t))?W(n,t,"variableName"):W(n,t,"variableName",0);if("="==e)return ne(t)||Y(re(t))?W(n,t,"block"):W(n,t,"block",0);if("*"==e&&(ne(t)||t.match(/\s*(,|\.|#|\[|:|{)/,!1)))return y="tag",W(n,t,"block");if(ee(e,t))return W(n,t,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(e))return W(n,t,ne(t)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return W(n,t,"keyframes");if(/@extends?/.test(e))return W(n,t,"extend",0);if(e&&"@"==e.charAt(0))return t.indentation()>0&&K(t.current().slice(1))?(y="variable-2","block"):/(@import|@require|@charset)/.test(e)?W(n,t,"block",0):W(n,t,"block");if("reference"==e&&ne(t))return W(n,t,"block");if("("==e)return W(n,t,"parens");if("vendor-prefixes"==e)return W(n,t,"vendorPrefixes");if("word"==e){var r=t.current();if("property"==(y=X(r)))return te(t)?W(n,t,"block",0):(y="atom","block");if("tag"==y){if(/embed|menu|pre|progress|sub|table/.test(r)&&K(re(t)))return y="atom","block";if(t.string.match(new RegExp("\\[\\s*"+r+"|"+r+"\\s*\\]")))return y="atom","block";if(x.test(r)&&(te(t)&&t.string.match(/=/)||!te(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!G(re(t))))return y="variable-2",Y(re(t))?"block":W(n,t,"block",0);if(ne(t))return W(n,t,"block")}if("block-keyword"==y)return y="keyword",t.current(/(if|unless)/)&&!te(t)?"block":W(n,t,"block");if("return"==r)return W(n,t,"block",0);if("variable-2"==y&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return W(n,t,"block")}return n.context.type},F.parens=function(e,t,n){if("("==e)return W(n,t,"parens");if(")"==e)return"parens"==n.context.prev.type?V(n):t.string.match(/^[a-z][\w-]*\(/i)&&ne(t)||Y(re(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(re(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&G(re(t))?W(n,t,"block"):t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)?W(n,t,"block",0):ne(t)?W(n,t,"block"):W(n,t,"block",0);if(e&&"@"==e.charAt(0)&&K(t.current().slice(1))&&(y="variable-2"),"word"==e){var r=t.current();"tag"==(y=X(r))&&x.test(r)&&(y="variable-2"),"property"!=y&&"to"!=r||(y="atom")}return"variable-name"==e?W(n,t,"variableName"):ee(e,t)?W(n,t,"pseudo"):n.context.type},F.vendorPrefixes=function(e,t,n){return"word"==e?(y="property",W(n,t,"block",0)):V(n)},F.pseudo=function(e,t,n){return K(re(t.string))?$(e,t,n):(t.match(/^[a-z-]+/),y="variable-3",ne(t)?W(n,t,"block"):V(n))},F.atBlock=function(e,t,n){if("("==e)return W(n,t,"atBlock_parens");if(J(e,t))return W(n,t,"block");if(Z(e,t))return W(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();if("tag"==(y=/^(only|not|and|or)$/.test(r)?"keyword":T.hasOwnProperty(r)?"tag":P.hasOwnProperty(r)?"attribute":A.hasOwnProperty(r)?"property":E.hasOwnProperty(r)?"string-2":X(t.current()))&&ne(t))return W(n,t,"block")}return"operator"==e&&/^(not|and|or)$/.test(t.current())&&(y="keyword"),n.context.type},F.atBlock_parens=function(e,t,n){if("{"==e||"}"==e)return n.context.type;if(")"==e)return ne(t)?W(n,t,"block"):W(n,t,"atBlock");if("word"==e){var r=t.current().toLowerCase();return y=X(r),/^(max|min)/.test(r)&&(y="property"),"tag"==y&&(y=x.test(r)?"variable-2":"atom"),n.context.type}return F.atBlock(e,t,n)},F.keyframes=function(e,t,n){return"0"==t.indentation()&&("}"==e&&te(t)||"]"==e||"hash"==e||"qualifier"==e||G(t.current()))?$(e,t,n):"{"==e?W(n,t,"keyframes"):"}"==e?te(t)?V(n,!0):W(n,t,"keyframes"):"unit"==e&&/^[0-9]+\%$/.test(t.current())?W(n,t,"keyframes"):"word"==e&&"block-keyword"==(y=X(t.current()))?(y="keyword",W(n,t,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(e)?W(n,t,ne(t)?"block":"atBlock"):"mixin"==e?W(n,t,"block",0):n.context.type},F.interpolation=function(e,t,n){return"{"==e&&V(n)&&W(n,t,"block"),"}"==e?t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&G(re(t))?W(n,t,"block"):!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,!1)?W(n,t,"block",0):W(n,t,"block"):"variable-name"==e?W(n,t,"variableName",0):("word"==e&&"tag"==(y=X(t.current()))&&(y="atom"),n.context.type)},F.extend=function(e,t,n){return"["==e||"="==e?"extend":"]"==e?V(n):"word"==e?(y=X(t.current()),"extend"):V(n)},F.variableName=function(e,t,n){return"string"==e||"["==e||"]"==e||t.current().match(/^(\.|\$)/)?(t.current().match(/^\.[\w-]+/i)&&(y="variable-2"),"variableName"):$(e,t,n)},{startState:function(e){return{tokenize:null,state:"block",context:new H("block",e||0,null)}},token:function(e,t){return!t.tokenize&&e.eatSpace()?null:((g=(t.tokenize||B)(e,t))&&"object"==typeof g&&(v=g[1],g=g[0]),y=g,t.state=F[t.state](v,e,t),y)},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),o=r.indent,a=re(t),s=n.match(/^\s*/)[0].replace(/\t/g,_).length,l=e.context.prev?e.context.prev.line.firstWord:"",u=e.context.prev?e.context.prev.line.indent:s;return r.prev&&("}"==i&&("block"==r.type||"atBlock"==r.type||"keyframes"==r.type)||")"==i&&("parens"==r.type||"atBlock_parens"==r.type)||"{"==i&&"at"==r.type)?o=r.indent-b:/(\})/.test(i)||(/@|\$|\d/.test(i)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(l)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||Y(a)?o=s:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(i)||G(a)?o=/\,\s*$/.test(l)?u:/^\s+/.test(n)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(l)||G(l))?s<=u?u:u+b:s:/,\s*$/.test(n)||!Q(a)&&!K(a)||(o=Y(l)?s<=u?u:u+b:/^\{/.test(l)?s<=u?s:u+b:Q(l)||K(l)?s>=u?u:s:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(l)||/=\s*$/.test(l)||G(l)||/^\$[\w-\.\[\]\'\"]/.test(l)?u+b:s)),o},electricChars:"}",lineComment:"//",fold:"indent"}}));var t=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],n=["domain","regexp","url","url-prefix"],r=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid"],o=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],a=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],s=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],l=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],u=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],c=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],d=["for","if","else","unless","from","to"],f=["null","true","false","href","title","type","not-allowed","readonly","disabled"],p=t.concat(n,r,i,o,a,l,u,s,c,d,f,["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"]);function h(e){return e=e.sort((function(e,t){return t>e})),new RegExp("^(("+e.join(")|(")+"))\\b")}function m(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}e.registerHelper("hintWords","stylus",p),e.defineMIME("text/x-styl","stylus")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("yaml",(function(){var e=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");return{token:function(t,n){var r=t.peek(),i=n.escaped;if(n.escaped=!1,"#"==r&&(0==t.pos||/\s/.test(t.string.charAt(t.pos-1))))return t.skipToEnd(),"comment";if(t.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(n.literal&&t.indentation()>n.keyCol)return t.skipToEnd(),"string";if(n.literal&&(n.literal=!1),t.sol()){if(n.keyCol=0,n.pair=!1,n.pairStart=!1,t.match(/---/))return"def";if(t.match(/\.\.\./))return"def";if(t.match(/\s*-\s+/))return"meta"}if(t.match(/^(\{|\}|\[|\])/))return"{"==r?n.inlinePairs++:"}"==r?n.inlinePairs--:"["==r?n.inlineList++:n.inlineList--,"meta";if(n.inlineList>0&&!i&&","==r)return t.next(),"meta";if(n.inlinePairs>0&&!i&&","==r)return n.keyCol=0,n.pair=!1,n.pairStart=!1,t.next(),"meta";if(n.pairStart){if(t.match(/^\s*(\||\>)\s*/))return n.literal=!0,"meta";if(t.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==n.inlinePairs&&t.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(n.inlinePairs>0&&t.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(t.match(e))return"keyword"}return!n.pair&&t.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(n.pair=!0,n.keyCol=t.indentation(),"atom"):n.pair&&t.match(/^:\s*/)?(n.pairStart=!0,"meta"):(n.pairStart=!1,n.escaped="\\"==r,t.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-yaml","yaml"),e.defineMIME("text/yaml","yaml")}(n(5))},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){e.exports=n(1158).Observable},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,r.visit)(e,{leave:o})};var r=n(92),i=n(569);var o={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return s(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=u("(",s(e.variableDefinitions,", "),")"),i=s(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?s([t,s([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+u(" = ",r)+u(" ",s(i," "))},SelectionSet:function(e){return l(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet;return s([u("",t,": ")+n+u("(",s(r,", "),")"),s(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",s(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return s(["...",u("on ",t),s(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(u("(",s(r,", "),")")," ")+"on ".concat(n," ").concat(u("",s(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,i.printBlockString)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+s(e.values,", ")+"]"},ObjectValue:function(e){return"{"+s(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",s(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,n=e.operationTypes;return s(["schema",s(t," "),l(n)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a((function(e){return s(["scalar",e.name,s(e.directives," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["type",t,u("implements ",s(n," & ")),s(r," "),l(i)]," ")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(f(n)?u("(\n",c(s(n,"\n")),"\n)"):u("(",s(n,", "),")"))+": "+r+u(" ",s(i," "))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return s([t+": "+n,u("= ",r),s(i," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return s(["interface",t,s(n," "),l(r)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.types;return s(["union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.values;return s(["enum",t,s(n," "),l(r)]," ")})),EnumValueDefinition:a((function(e){return s([e.name,s(e.directives," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return s(["input",t,s(n," "),l(r)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(f(n)?u("(\n",c(s(n,"\n")),"\n)"):u("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return s(["extend schema",s(t," "),l(n)]," ")},ScalarTypeExtension:function(e){return s(["extend scalar",e.name,s(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["extend type",t,u("implements ",s(n," & ")),s(r," "),l(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return s(["extend interface",t,s(n," "),l(r)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return s(["extend union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return s(["extend enum",t,s(n," "),l(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return s(["extend input",t,s(n," "),l(r)]," ")}};function a(e){return function(t){return s([t.description,e(t)],"\n")}}function s(e,t){return e?e.filter((function(e){return e})).join(t||""):""}function l(e){return e&&0!==e.length?"{\n"+c(s(e,"\n"))+"\n}":""}function u(e,t,n){return t?e+t+(n||""):""}function c(e){return e&&" "+e.replace(/\n/g,"\n ")}function d(e){return-1!==e.indexOf("\n")}function f(e){return e&&e.some(d)}},function(e,t,n){e.exports=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,l,u,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(i[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}}()},function(e,t,n){(function(t){for(var r=n(1224),i="undefined"==typeof window?t:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],l=i["cancel"+a]||i["cancelRequest"+a],u=0;!s&&u<o.length;u++)s=i[o[u]+"Request"+a],l=i[o[u]+"Cancel"+a]||i[o[u]+"CancelRequest"+a];if(!s||!l){var c=0,d=0,f=[];s=function(e){if(0===f.length){var t=r(),n=Math.max(0,1e3/60-(t-c));c=n+t,setTimeout((function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return f.push({handle:++d,callback:e,cancelled:!1}),d},l=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=l}}).call(this,n(43))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1),a=l(o),s=l(n(2));function l(e){return e&&e.__esModule?e:{default:e}}var u={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],d=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},f=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),p=function(){return f?"_"+Math.random().toString(36).substr(2,12):void 0},h=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.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||p()},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:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||p()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(d(e,this.sizer),this.placeHolderSizer&&d(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return f&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(i),i.className=this.props.inputClassName,i.id=this.state.inputId,i.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},i,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}(o.Component);h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.default=h},function(e,t,n){"use strict";var r,i;r=new RegExp("^[^֑-߿יִ-﷽ﹰ-ﻼ]*[A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿]"),i=new RegExp("^[^A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿]*[֑-߿יִ-﷽ﹰ-ﻼ]"),e.exports=function(e){return e=e.toString(),i.test(e)?"rtl":r.test(e)?"ltr":"neutral"}},function(e,t){e.exports=function(e){var t=e.anchorNode,n=e.anchorOffset,r=e.focusNode,i=e.focusOffset,o=t.compareDocumentPosition(r);return!(4===o||0===o&&n<i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsMediaLibraryUploadcare=void 0;var r=a(n(409)),i=a(n(1674)),o=n(4);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}window.UPLOADCARE_LIVE=!1,window.UPLOADCARE_MANUAL_START=!0;const d={previewStep:!0,integration:"NetlifyCMS-Uploadcare-MediaLibrary"};function f(e){if(Array.isArray(e)||o.Iterable.isIterable(e)){const t=Array.isArray(e)?e:e.toJS();return function(e){const t=`~${e.length}/nth/`;return Array.from({length:e.length},(e,n)=>new RegExp(`${t}${n}/$`)).every(t=>e.some(e=>t.test(e)))}(t)?function(e){const t=new RegExp(`^.+/([^/]+~${e.length})/nth/`).exec(e[0])[1];return new Promise(e=>r.default.loadFileGroup(t).done(t=>e(t)))}(t):Promise.all(t.map(e=>p(e)))}return e&&"string"==typeof e?p(e):null}function p(e){const t=e.startsWith("https://ucarecdn.com")&&!/~\d+\/nth\/\d+\//.test(e);return r.default.fileFrom(t?"uploaded":"url",e)}function h({files:e,config:t,handleInsert:n,settings:i={}}){i.defaultOperations&&!i.defaultOperations.startsWith("/")&&console.warn("Uploadcare default operations should start with `/`. Example: `/preview/-/resize/100x100/image.png`");const o=e=>{const{cdnUrl:t,name:n,isImage:r}=e;let o=r&&i.defaultOperations?`${t}-${i.defaultOperations}`:t;return!!o.endsWith("/")&&i.autoFilename&&(o+=n),o};r.default.openDialog(e,t).done(({promise:e,files:t})=>{const r=Boolean(t);return e().then(e=>{if(r)return Promise.all(t().map(e=>e.then(e=>o(e)))).then(e=>n(e));n(o(e))})})}const m={name:"uploadcare",init:async function({options:e={config:{},settings:{}},handleInsert:t}={}){const n=e.config,{publicKey:o}=n,a=c(n,["publicKey"]),s=l(l({},d),a);return window.UPLOADCARE_PUBLIC_KEY=o,r.default.registerTab("preview",i.default),{show:({value:n,config:r={},allowMultiple:i,imagesOnly:o=!1}={})=>{const a=l(l({},s),{},{imagesOnly:o},r),u=!1!==i&&!!a.multiple,c=l(l({},a),{},{multiple:u}),d=f(n);return d&&!d.state?d.then(n=>h({files:n,config:c,settings:e.settings,handleInsert:t})):h({files:d,config:c,settings:e.settings,handleInsert:t})},enableStandalone:()=>!1}}},g=m;t.NetlifyCmsMediaLibraryUploadcare=g;var v=m;t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsMediaLibraryCloudinary=void 0;var r,i=(r=n(147))&&r.__esModule?r:{default:r},o=n(37);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const c={use_secure_url:!0,use_transformations:!0,output_filename_only:!1},d={button_class:void 0,inline_container:void 0,insert_transformation:!1,z_index:"99999"},f={multiple:!1};const p={name:"cloudinary",init:async function({options:e={},handleInsert:t}={}){const{config:n={}}=e,r=u(e,["config"]),a=s(s({},c),r),l=s(s(s({},f),n),d),p=(0,i.default)(l,["default_transformations","max_files","multiple"]);await(0,o.loadScript)("https://media-library.cloudinary.com/global/all.js");const h=window.cloudinary.createMediaLibrary(l,{insertHandler:e=>{const r=e.assets.map(e=>function(e,{use_secure_url:t,use_transformations:n,output_filename_only:r}){return r?`${e.public_id}.${e.format}`:(e.derived&&n?e.derived[0]:e)[t?"secure_url":"url"]}(e,a));t(n.multiple||r.length>1?r:r[0])}});return{show:({config:e={},allowMultiple:t}={})=>(!1===t&&(e.multiple=!1),h.show(s(s({},p),e))),hide:()=>h.hide(),enableStandalone:()=>!0}}},h=p;t.NetlifyCmsMediaLibraryCloudinary=h;var m=p;t.default=m},function(e,t,n){"use strict";var r=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},i={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,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};var o=function(e){for(var t,n=e.length,r=n^n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)};var a=function(e){function t(e,t,r){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var u=0;u<a;++u)t[l++]=n(e[u]+" ",i[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,o){var a=e+";",s=2*t+3*n+4*o;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===A||2===A&&i(l,1)?"-webkit-"+l+l:l}if(0===A||2===A&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(S,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(b,"tb");break;case 232:l=a.replace(b,"tb-rl");break;case 220:l=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(x,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(x,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+o&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?r:r.replace(k,"$1"),n,t)}function o(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,i,o,a,s,u,c){for(var d,f=0,p=t;f<M;++f)switch(d=R[f].call(l,e,p,n,r,i,o,a,s,u,c)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?A=1:(A=2,I=e):A=0),s}function l(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<M){var l=a(-1,n,s,s,T,O,0,0,0,0);void 0!==l&&"string"==typeof l&&(n=l)}var d=function e(n,s,l,d,f){for(var p,h,m,b,w,x=0,k=0,E=0,S=0,R=0,I=0,D=m=p=0,L=0,N=0,F=0,B=0,z=l.length,U=z-1,q="",H="",W="",V="";L<z;){if(h=l.charCodeAt(L),L===U&&0!==k+S+E+x&&(0!==k&&(h=47===k?10:47),S=E=x=0,z++,U++),0===k+S+E+x){if(L===U&&(0<N&&(q=q.replace(c,"")),0<q.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:q+=l.charAt(L)}h=59}switch(h){case 123:for(p=(q=q.trim()).charCodeAt(0),m=1,B=++L;L<z;){switch(h=l.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(L+1)){case 42:case 47:e:{for(D=L+1;D<U;++D)switch(l.charCodeAt(D)){case 47:if(42===h&&42===l.charCodeAt(D-1)&&L+2!==D){L=D+1;break e}break;case 10:if(47===h){L=D+1;break e}}L=D}}break;case 91:h++;case 40:h++;case 34:case 39:for(;L++<U&&l.charCodeAt(L)!==h;);}if(0===m)break;L++}switch(m=l.substring(B,L),0===p&&(p=(q=q.replace(u,"").trim()).charCodeAt(0)),p){case 64:switch(0<N&&(q=q.replace(c,"")),h=q.charCodeAt(1)){case 100:case 109:case 115:case 45:N=s;break;default:N=P}if(B=(m=e(s,N,m,h,f+1)).length,0<M&&(w=a(3,m,N=t(P,q,F),s,T,O,B,h,f,d),q=N.join(""),void 0!==w&&0===(B=(m=w.trim()).length)&&(h=0,m="")),0<B)switch(h){case 115:q=q.replace(_,o);case 100:case 109:case 45:m=q+"{"+m+"}";break;case 107:m=(q=q.replace(g,"$1 $2"))+"{"+m+"}",m=1===A||2===A&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=q+m,112===d&&(H+=m,m="")}else m="";break;default:m=e(s,t(s,q,F),m,d,f+1)}W+=m,m=F=N=D=p=0,q="",h=l.charCodeAt(++L);break;case 125:case 59:if(1<(B=(q=(0<N?q.replace(c,""):q).trim()).length))switch(0===D&&(p=q.charCodeAt(0),45===p||96<p&&123>p)&&(B=(q=q.replace(" ",":")).length),0<M&&void 0!==(w=a(1,q,s,n,T,O,H.length,d,f,d))&&0===(B=(q=w.trim()).length)&&(q="\0\0"),p=q.charCodeAt(0),h=q.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){V+=q+l.charAt(L);break}default:58!==q.charCodeAt(B-1)&&(H+=r(q,p,h,q.charCodeAt(2)))}F=N=D=p=0,q="",h=l.charCodeAt(++L)}}switch(h){case 13:case 10:47===k?k=0:0===1+p&&107!==d&&0<q.length&&(N=1,q+="\0"),0<M*j&&a(0,q,s,n,T,O,H.length,d,f,d),O=1,T++;break;case 59:case 125:if(0===k+S+E+x){O++;break}default:switch(O++,b=l.charAt(L),h){case 9:case 32:if(0===S+x+k)switch(R){case 44:case 58:case 9:case 32:b="";break;default:32!==h&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===S+k+x&&(N=F=1,b="\f"+b);break;case 108:if(0===S+k+x+C&&0<D)switch(L-D){case 2:112===R&&58===l.charCodeAt(L-3)&&(C=R);case 8:111===I&&(C=I)}break;case 58:0===S+k+x&&(D=L);break;case 44:0===k+E+S+x&&(N=1,b+="\r");break;case 34:case 39:0===k&&(S=S===h?0:0===S?h:S);break;case 91:0===S+k+E&&x++;break;case 93:0===S+k+E&&x--;break;case 41:0===S+k+x&&E--;break;case 40:if(0===S+k+x){if(0===p)switch(2*R+3*I){case 533:break;default:p=1}E++}break;case 64:0===k+E+S+x+D+m&&(m=1);break;case 42:case 47:if(!(0<S+x+E))switch(k){case 0:switch(2*h+3*l.charCodeAt(L+1)){case 235:k=47;break;case 220:B=L,k=42}break;case 42:47===h&&42===R&&B+2!==L&&(33===l.charCodeAt(B+2)&&(H+=l.substring(B,L+1)),b="",k=0)}}0===k&&(q+=b)}I=R,R=h,L++}if(0<(B=H.length)){if(N=s,0<M&&(void 0!==(w=a(2,H,N,n,T,O,B,d,f,d))&&0===(H=w).length))return V+H+W;if(H=N.join(",")+"{"+H+"}",0!=A*C){switch(2!==A||i(H,2)||(C=0),C){case 111:H=H.replace(y,":-moz-$1")+H;break;case 112:H=H.replace(v,"::-webkit-input-$1")+H.replace(v,"::-moz-$1")+H.replace(v,":-ms-input-$1")+H}C=0}}return V+H+W}(P,s,n,0,0);return 0<M&&(void 0!==(l=a(-2,d,s,s,T,O,d.length,0,0,0))&&(d=l)),"",C=0,O=T=1,d}var u=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,x=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,O=1,T=1,C=0,A=1,P=[],R=[],M=0,I=null,j=0;return l.use=function e(t){switch(t){case void 0:case null:M=R.length=0;break;default:switch(t.constructor){case Array:for(var n=0,r=t.length;n<r;++n)e(t[n]);break;case Function:R[M++]=t;break;case Boolean:j=0|!!t}}return e},l.set=s,void 0!==e&&s(e),l},s=n(668),l=n.n(s),u=/[A-Z]|^ms/g,c=r((function(e){return e.replace(u,"-$&").toLowerCase()})),d=function(e,t){return null==t||"boolean"==typeof t?"":1===i[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},f=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"function":0,a=e([o()]);break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i},p="undefined"!=typeof document;function h(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("")),(void 0!==e.container?e.container:document.head).appendChild(t),t}var m=function(){function e(e){this.isSpeedy=!0,this.tags=[],this.ctr=0,this.opts=e}var t=e.prototype;return t.inject=function(){if(this.injected)throw new Error("already injected!");this.tags[0]=h(this.opts),this.injected=!0},t.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},t.insert=function(e,t){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]}(this.tags[this.tags.length-1]);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else{var r=h(this.opts);this.tags.push(r),r.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(h(this.opts))},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,this.injected=!1},e}();t.a=function(e,t){if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var n,r,i=t.key||"css",s=l()((function(e){n+=e,p&&h.insert(e,v)}));void 0!==t.prefix&&(r={prefix:t.prefix});var u={registered:{},inserted:{},nonce:t.nonce,key:i},h=new m(t);p&&h.inject();var g=new a(r);g.use(t.stylisPlugins)(s);var v="";function y(e,t){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":if(void 0!==e.__emotion_styles){var n=e.toString();return n}return y.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return x.call(this,e);default:var r=u.registered[e];return!1===t&&void 0!==r?r:e}}var b,_,w=new WeakMap;function x(e){if(w.has(e))return w.get(e);var t="";return Array.isArray(e)?e.forEach((function(e){t+=y.call(this,e,!1)}),this):Object.keys(e).forEach((function(n){"object"!=typeof e[n]?void 0!==u.registered[e[n]]?t+=n+"{"+u.registered[e[n]]+"}":t+=c(n)+":"+d(n,e[n])+";":Array.isArray(e[n])&&"string"==typeof e[n][0]&&void 0===u.registered[e[n][0]]?e[n].forEach((function(e){t+=c(n)+":"+d(n,e)+";"})):t+=n+"{"+y.call(this,e[n],!1)+"}"}),this),w.set(e,t),t}var k=/label:\s*([^\s;\n{]+)\s*;/g,E=function(e,t){return o(e+t)+t},S=function(e){var t=!0,n="",r="";null==e||void 0===e.raw?(t=!1,n+=y.call(this,e,!1)):n+=e[0];for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return o.forEach((function(r,i){n+=y.call(this,r,46===n.charCodeAt(n.length-1)),!0===t&&void 0!==e[i+1]&&(n+=e[i+1])}),this),_=n,n=n.replace(k,(function(e,t){return r+="-"+t,""})),b=E(n,r),n};function O(e,t){void 0===u.inserted[b]&&(n="",g(e,t),u.inserted[b]=n)}var T=function(){var e=S.apply(this,arguments),t=i+"-"+b;return void 0===u.registered[t]&&(u.registered[t]=_),O("."+t,e),t};function C(e,t){var n="";return t.split(" ").forEach((function(t){void 0!==u.registered[t]?e.push(t):n+=t+" "})),n}function A(e,t){var n=[],r=C(n,e);return n.length<2?e:r+T(n,t)}function P(e){u.inserted[e]=!0}if(p){var R=document.querySelectorAll("[data-emotion-"+i+"]");Array.prototype.forEach.call(R,(function(e){h.tags[0].parentNode.insertBefore(e,h.tags[0]),e.getAttribute("data-emotion-"+i).split(" ").forEach(P)}))}var M={flush:function(){p&&(h.flush(),h.inject()),u.inserted={},u.registered={}},hydrate:function(e){e.forEach(P)},cx:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A(f(t))},merge:A,getRegisteredStyles:C,injectGlobal:function(){var e=S.apply(this,arguments);O("",e)},keyframes:function(){var e=S.apply(this,arguments),t="animation-"+b;return O("","@keyframes "+t+"{"+e+"}"),t},css:T,sheet:h,caches:u};return e.__SECRET_EMOTION__=M,M}},,,,,,,,,function(e,t,n){"use strict";
+/** @license React v16.13.1
+ * react.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var r=n(179),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,u=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,f=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function _(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function w(){}function x(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=_.prototype;var k=x.prototype=new w;k.constructor=x,r(k,_.prototype),k.isPureReactComponent=!0;var E={current:null},S=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,r)&&!O.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:E.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var A=/\/+/g,P=[];function R(e,t,n,r){if(P.length){var i=P.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function M(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function I(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case o:case a:l=!0}}if(l)return r(i,t,""===n?"."+j(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u<t.length;u++){var c=n+j(s=t[u],u);l+=e(s,c,r,i)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=g&&t[g]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),u=0;!(s=t.next()).done;)l+=e(s=s.value,c=n+j(s,u++),r,i);else if("object"===s)throw r=""+t,Error(v(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return l}(e,"",t,n)}function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function D(e,t){e.func.call(e.context,t,e.count++)}function L(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?N(e,r,n,(function(e){return e})):null!=e&&(C(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(A,"$&/")+"/")+n)),r.push(e))}function N(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(A,"$&/")+"/"),I(e,L,t=R(t,o,r,i)),M(t)}var F={current:null};function B(){var e=F.current;if(null===e)throw Error(v(321));return e}var z={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return N(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;I(e,D,t=R(null,null,t,n)),M(t)},count:function(e){return I(e,(function(){return null}),null)},toArray:function(e){var t=[];return N(e,t,null,(function(e){return e})),t},only:function(e){if(!C(e))throw Error(v(143));return e}},t.Component=_,t.Fragment=s,t.Profiler=u,t.PureComponent=x,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var i=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)S.call(t,c)&&!O.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];i.children=u}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return B().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,n){return B().useReducer(e,t,n)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().useState(e)},t.version="16.13.1"},function(e,t,n){"use strict";var r=n(179),i=n(686),o=n(687);e.exports=function(e,t,n){var a=[],s={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},l={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},u={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)d(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=p(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(!t)return;for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(o(!(n in u),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){var i=l.hasOwnProperty(n)?l[n]:null;return o("DEFINE_MANY_MERGED"===i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=p(e[n],r))}e[n]=r}}}(e,t)},autobind:function(){}};function c(e,t){var n=s.hasOwnProperty(t)?s[t]:null;y.hasOwnProperty(t)&&o("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&o("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function d(e,n){if(n){o("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),o(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,i=r.__reactAutoBindPairs;for(var a in n.hasOwnProperty("mixins")&&u.mixins(e,n.mixins),n)if(n.hasOwnProperty(a)&&"mixins"!==a){var l=n[a],d=r.hasOwnProperty(a);if(c(d,a),u.hasOwnProperty(a))u[a](e,l);else{var f=s.hasOwnProperty(a);if("function"==typeof l&&!f&&!d&&!1!==n.autobind)i.push(a,l),r[a]=l;else if(d){var m=s[a];o(f&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,a),"DEFINE_MANY_MERGED"===m?r[a]=p(r[a],l):"DEFINE_MANY"===m&&(r[a]=h(r[a],l))}else r[a]=l}}}else;}function f(e,t){for(var n in o(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(o(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function p(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return f(i,n),f(i,r),i}}function h(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function m(e,t){return t.bind(e)}var g={componentDidMount:function(){this.__isMounted=!0}},v={componentWillUnmount:function(){this.__isMounted=!1}},y={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},b=function(){};return r(b.prototype,e.prototype,y),function(e){var t=function(e,r,a){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=m(e,i)}}(this),this.props=e,this.context=r,this.refs=i,this.updater=a||n,this.state=null;var s=this.getInitialState?this.getInitialState():null;o("object"==typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=s};for(var r in t.prototype=new b,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],a.forEach(d.bind(null,t)),d(t,g),d(t,e),d(t,v),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),o(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),s)t.prototype[r]||(t.prototype[r]=null);return t}}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(1)),i=n(49),o=n(61),a=n(118),s=n(404),l=y(n(152)),u=y(n(418)),c=n(160),d=n(976),f=n(339),p=n(48),h=n(16),m=n(192),g=y(n(1096));n(1146),n(1149),n(1150);var v=n(11);function y(e){return e&&e.__esModule?e:{default:e}}const b=(0,o.connect)(e=>({locale:(0,f.selectLocale)(e.config),config:e.config}))(({locale:e,config:t})=>(0,v.jsx)(p.I18n,{locale:e,messages:(0,d.getPhrases)(e)},(0,v.jsx)(m.ErrorBoundary,{showBackup:!0,config:t},(0,v.jsx)(s.ConnectedRouter,{history:l.default},(0,v.jsx)(a.Route,{component:g.default})))));var _=function(e={}){const{config:t}=e;console.log("netlify-cms-core 2.30.4"),t&&u.default.dispatch((0,c.mergeConfig)(t)),(0,i.render)((0,v.jsx)(()=>(0,v.jsx)(r.default.Fragment,null,(0,v.jsx)(h.GlobalStyles,null),(0,v.jsx)(o.Provider,{store:u.default},(0,v.jsx)(b,null))),null),function(){const e=document.getElementById("nc-root");if(e)return e;const t=document.createElement("div");return t.id="nc-root",document.body.appendChild(t),t}())};t.default=_},function(e,t,n){"use strict";
+/** @license React v16.13.1
+ * react-dom.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var r=n(1),i=n(179),o=n(690);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var l=!1,u=null,c=!1,d=null,f={onError:function(e){l=!0,u=e}};function p(e,t,n,r,i,o,a,c,d){l=!1,u=null,s.apply(f,arguments)}var h=null,m=null,g=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=g(n),function(e,t,n,r,i,o,s,f,h){if(p.apply(this,arguments),l){if(!l)throw Error(a(198));var m=u;l=!1,u=null,c||(c=!0,d=m)}}(r,t,void 0,e),e.currentTarget=null}var y=null,b={};function _(){if(y)for(var e in b){var t=b[e],n=y.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!x[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in x[n]=t,n=t.eventTypes){var i=void 0,o=n[r],s=t,l=r;if(k.hasOwnProperty(l))throw Error(a(99,l));k[l]=o;var u=o.phasedRegistrationNames;if(u){for(i in u)u.hasOwnProperty(i)&&w(u[i],s,l);i=!0}else o.registrationName?(w(o.registrationName,s,l),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function w(e,t,n){if(E[e])throw Error(a(100,e));E[e]=t,S[e]=t.eventTypes[n].dependencies}var x=[],k={},E={},S={};function O(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&_()}var T=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),C=null,A=null,P=null;function R(e){if(e=m(e)){if("function"!=typeof C)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),C(e.stateNode,e.type,t))}}function M(e){A?P?P.push(e):P=[e]:A=e}function I(){if(A){var e=A,t=P;if(P=A=null,R(e),t)for(e=0;e<t.length;e++)R(t[e])}}function j(e,t){return e(t)}function D(e,t,n,r,i){return e(t,n,r,i)}function L(){}var N=j,F=!1,B=!1;function z(){null===A&&null===P||(L(),I())}function U(e,t,n){if(B)return e(t,n);B=!0;try{return N(e,t,n)}finally{B=!1,z()}}var q=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,H=Object.prototype.hasOwnProperty,W={},V={};function $(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){G[e]=new $(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];G[t]=new $(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){G[e]=new $(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){G[e]=new $(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){G[e]=new $(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){G[e]=new $(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){G[e]=new $(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){G[e]=new $(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){G[e]=new $(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function Y(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(K,Y);G[t]=new $(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(K,Y);G[t]=new $(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,Y);G[t]=new $(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){G[e]=new $(e,1,!1,e.toLowerCase(),null,!1)})),G.xlinkHref=new $("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){G[e]=new $(e,1,!1,e.toLowerCase(),null,!0)}));var Q=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,n,r){var i=G.hasOwnProperty(t)?G[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!H.call(V,e)||!H.call(W,e)&&(q.test(e)?V[e]=!0:(W[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}Q.hasOwnProperty("ReactCurrentDispatcher")||(Q.ReactCurrentDispatcher={current:null}),Q.hasOwnProperty("ReactCurrentBatchConfig")||(Q.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Z="function"==typeof Symbol&&Symbol.for,ee=Z?Symbol.for("react.element"):60103,te=Z?Symbol.for("react.portal"):60106,ne=Z?Symbol.for("react.fragment"):60107,re=Z?Symbol.for("react.strict_mode"):60108,ie=Z?Symbol.for("react.profiler"):60114,oe=Z?Symbol.for("react.provider"):60109,ae=Z?Symbol.for("react.context"):60110,se=Z?Symbol.for("react.concurrent_mode"):60111,le=Z?Symbol.for("react.forward_ref"):60112,ue=Z?Symbol.for("react.suspense"):60113,ce=Z?Symbol.for("react.suspense_list"):60120,de=Z?Symbol.for("react.memo"):60115,fe=Z?Symbol.for("react.lazy"):60116,pe=Z?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ge(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case ue:return"Suspense";case ce:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case de:return ge(e.type);case pe:return ge(e.render);case fe:if(e=1===e._status?e._result:null)return ge(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=ge(e.type);n=null,r&&(n=ge(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(J,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function _e(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function we(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function xe(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ke(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ee(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function Se(e,t){Ee(e,t);var n=ye(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Te(e,t.type,n):t.hasOwnProperty("defaultValue")&&Te(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Oe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Te(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ce(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Pe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function Me(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var je="http://www.w3.org/1999/xhtml",De="http://www.w3.org/2000/svg";function Le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ne(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Fe,Be=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==De||"innerHTML"in e)e.innerHTML=t;else{for((Fe=Fe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Fe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ze(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ue(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var qe={animationend:Ue("Animation","AnimationEnd"),animationiteration:Ue("Animation","AnimationIteration"),animationstart:Ue("Animation","AnimationStart"),transitionend:Ue("Transition","TransitionEnd")},He={},We={};function Ve(e){if(He[e])return He[e];if(!qe[e])return e;var t,n=qe[e];for(t in n)if(n.hasOwnProperty(t)&&t in We)return He[e]=n[t];return e}T&&(We=document.createElement("div").style,"AnimationEvent"in window||(delete qe.animationend.animation,delete qe.animationiteration.animation,delete qe.animationstart.animation),"TransitionEvent"in window||delete qe.transitionend.transition);var $e=Ve("animationend"),Ge=Ve("animationiteration"),Ke=Ve("animationstart"),Ye=Ve("transitionend"),Qe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xe=new("function"==typeof WeakMap?WeakMap:Map);function Je(e){var t=Xe.get(e);return void 0===t&&(t=new Map,Xe.set(e,t)),t}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Ze(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return tt(i),e;if(o===r)return tt(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(ot=rt(ot,e)),e=ot,ot=null,e){if(it(e,at),ot)throw Error(a(95));if(c)throw e=d,c=!1,d=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ut(e){if(!T)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ct=[];function dt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ct.length&&ct.push(e)}function ft(e,t,n,r){if(ct.length){var i=ct.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Tn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=lt(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<x.length;l++){var u=x[l];u&&(u=u.extractEvents(r,t,o,i,a))&&(s=rt(s,u))}st(s)}}function ht(e,t,n){if(!n.has(e)){switch(e){case"scroll":Kt(t,"scroll",!0);break;case"focus":case"blur":Kt(t,"focus",!0),Kt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ut(e)&&Kt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Qe.indexOf(e)&&Gt(e,t)}n.set(e,null)}}var mt,gt,vt,yt=!1,bt=[],_t=null,wt=null,xt=null,kt=new Map,Et=new Map,St=[],Ot="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Tt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ct(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function At(e,t){switch(e){case"focus":case"blur":_t=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":xt=null;break;case"pointerover":case"pointerout":kt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Et.delete(t.pointerId)}}function Pt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=Ct(t,n,r,i,o),null!==t&&(null!==(t=Cn(t))&&gt(t)),e):(e.eventSystemFlags|=r,e)}function Rt(e){var t=Tn(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){vt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mt(e){if(null!==e.blockedOn)return!1;var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Cn(t);return null!==n&&gt(n),e.blockedOn=t,!1}return!0}function It(e,t,n){Mt(e)&&n.delete(t)}function jt(){for(yt=!1;0<bt.length;){var e=bt[0];if(null!==e.blockedOn){null!==(e=Cn(e.blockedOn))&&mt(e);break}var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:bt.shift()}null!==_t&&Mt(_t)&&(_t=null),null!==wt&&Mt(wt)&&(wt=null),null!==xt&&Mt(xt)&&(xt=null),kt.forEach(It),Et.forEach(It)}function Dt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,jt)))}function Lt(e){function t(t){return Dt(t,e)}if(0<bt.length){Dt(bt[0],e);for(var n=1;n<bt.length;n++){var r=bt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_t&&Dt(_t,e),null!==wt&&Dt(wt,e),null!==xt&&Dt(xt,e),kt.forEach(t),Et.forEach(t),n=0;n<St.length;n++)(r=St[n]).blockedOn===e&&(r.blockedOn=null);for(;0<St.length&&null===(n=St[0]).blockedOn;)Rt(n),null===n.blockedOn&&St.shift()}var Nt={},Ft=new Map,Bt=new Map,zt=["abort","abort",$e,"animationEnd",Ge,"animationIteration",Ke,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ye,"transitionEnd","waiting","waiting"];function Ut(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},Bt.set(r,t),Ft.set(r,o),Nt[i]=o}}Ut("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ut("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ut(zt,2);for(var qt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ht=0;Ht<qt.length;Ht++)Bt.set(qt[Ht],0);var Wt=o.unstable_UserBlockingPriority,Vt=o.unstable_runWithPriority,$t=!0;function Gt(e,t){Kt(t,e,!1)}function Kt(e,t,n){var r=Bt.get(t);switch(void 0===r?2:r){case 0:r=Yt.bind(null,t,1,e);break;case 1:r=Qt.bind(null,t,1,e);break;default:r=Xt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Yt(e,t,n,r){F||L();var i=Xt,o=F;F=!0;try{D(i,e,t,n,r)}finally{(F=o)||z()}}function Qt(e,t,n,r){Vt(Wt,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){if($t)if(0<bt.length&&-1<Ot.indexOf(e))e=Ct(null,e,t,n,r),bt.push(e);else{var i=Jt(e,t,n,r);if(null===i)At(e,r);else if(-1<Ot.indexOf(e))e=Ct(i,e,t,n,r),bt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return _t=Pt(_t,e,t,n,r,i),!0;case"dragenter":return wt=Pt(wt,e,t,n,r,i),!0;case"mouseover":return xt=Pt(xt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return kt.set(o,Pt(kt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Et.set(o,Pt(Et.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){At(e,r),e=ft(e,r,null,t);try{U(pt,e)}finally{dt(e)}}}}function Jt(e,t,n,r){if(null!==(n=Tn(n=lt(r)))){var i=Ze(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=et(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=ft(e,r,n,t);try{U(pt,e)}finally{dt(e)}return null}var Zt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Zt.hasOwnProperty(e)&&Zt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Zt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]}))}));var rn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function an(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sn=je;function ln(e,t){var n=Je(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var r=0;r<t.length;r++)ht(t[r],e,n)}function un(){}function cn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fn(e,t){var n,r=dn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dn(r)}}function pn(){for(var e=window,t=cn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=cn((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn=null,gn=null;function vn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var bn="function"==typeof setTimeout?setTimeout:void 0,_n="function"==typeof clearTimeout?clearTimeout:void 0;function wn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function xn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var kn=Math.random().toString(36).slice(2),En="__reactInternalInstance$"+kn,Sn="__reactEventHandlers$"+kn,On="__reactContainere$"+kn;function Tn(e){var t=e[En];if(t)return t;for(var n=e.parentNode;n;){if(t=n[On]||n[En]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=xn(e);null!==e;){if(n=e[En])return n;e=xn(e)}return t}n=(e=n).parentNode}return null}function Cn(e){return!(e=e[En]||e[On])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function An(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Pn(e){return e[Sn]||null}function Rn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Mn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function In(e,t,n){(t=Mn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function jn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Rn(t);for(t=n.length;0<t--;)In(n[t],"captured",e);for(t=0;t<n.length;t++)In(n[t],"bubbled",e)}}function Dn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Mn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Ln(e){e&&e.dispatchConfig.registrationName&&Dn(e._targetInst,null,e)}function Nn(e){it(e,jn)}var Fn=null,Bn=null,zn=null;function Un(){if(zn)return zn;var e,t,n=Bn,r=n.length,i="value"in Fn?Fn.value:Fn.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return zn=i.slice(e,1<t?1-t:void 0)}function qn(){return!0}function Hn(){return!1}function Wn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?qn:Hn,this.isPropagationStopped=Hn,this}function Vn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function $n(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Gn(e){e.eventPool=[],e.getPooled=Vn,e.release=$n}i(Wn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=qn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=qn)},persist:function(){this.isPersistent=qn},isPersistent:Hn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Hn,this._dispatchInstances=this._dispatchListeners=null}}),Wn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Wn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Gn(n),n},Gn(Wn);var Kn=Wn.extend({data:null}),Yn=Wn.extend({data:null}),Qn=[9,13,27,32],Xn=T&&"CompositionEvent"in window,Jn=null;T&&"documentMode"in document&&(Jn=document.documentMode);var Zn=T&&"TextEvent"in window&&!Jn,er=T&&(!Xn||Jn&&8<Jn&&11>=Jn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ir(e,t){switch(e){case"keyup":return-1!==Qn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function or(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ar=!1;var sr={eventTypes:nr,extractEvents:function(e,t,n,r){var i;if(Xn)e:{switch(e){case"compositionstart":var o=nr.compositionStart;break e;case"compositionend":o=nr.compositionEnd;break e;case"compositionupdate":o=nr.compositionUpdate;break e}o=void 0}else ar?ir(e,n)&&(o=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=nr.compositionStart);return o?(er&&"ko"!==n.locale&&(ar||o!==nr.compositionStart?o===nr.compositionEnd&&ar&&(i=Un()):(Bn="value"in(Fn=r)?Fn.value:Fn.textContent,ar=!0)),o=Kn.getPooled(o,t,n,r),i?o.data=i:null!==(i=or(n))&&(o.data=i),Nn(o),i=o):i=null,(e=Zn?function(e,t){switch(e){case"compositionend":return or(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(ar)return"compositionend"===e||!Xn&&ir(e,t)?(e=Un(),zn=Bn=Fn=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Yn.getPooled(nr.beforeInput,t,n,r)).data=e,Nn(t)):t=null,null===i?t:null===t?i:[i,t]}},lr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!lr[e.type]:"textarea"===t}var cr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function dr(e,t,n){return(e=Wn.getPooled(cr.change,e,t,n)).type="change",M(n),Nn(e),e}var fr=null,pr=null;function hr(e){st(e)}function mr(e){if(we(An(e)))return e}function gr(e,t){if("change"===e)return t}var vr=!1;function yr(){fr&&(fr.detachEvent("onpropertychange",br),pr=fr=null)}function br(e){if("value"===e.propertyName&&mr(pr))if(e=dr(pr,e,lt(e)),F)st(e);else{F=!0;try{j(hr,e)}finally{F=!1,z()}}}function _r(e,t,n){"focus"===e?(yr(),pr=n,(fr=t).attachEvent("onpropertychange",br)):"blur"===e&&yr()}function wr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return mr(pr)}function xr(e,t){if("click"===e)return mr(t)}function kr(e,t){if("input"===e||"change"===e)return mr(t)}T&&(vr=ut("input")&&(!document.documentMode||9<document.documentMode));var Er={eventTypes:cr,_isInputEventSupported:vr,extractEvents:function(e,t,n,r){var i=t?An(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=gr;else if(ur(i))if(vr)a=kr;else{a=wr;var s=_r}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=xr);if(a&&(a=a(e,t)))return dr(a,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Te(i,"number",i.value)}},Sr=Wn.extend({view:null,detail:null}),Or={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Or[e])&&!!t[e]}function Cr(){return Tr}var Ar=0,Pr=0,Rr=!1,Mr=!1,Ir=Sr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Cr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ar;return Ar=e.screenX,Rr?"mousemove"===e.type?e.screenX-t:0:(Rr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Pr;return Pr=e.screenY,Mr?"mousemove"===e.type?e.screenY-t:0:(Mr=!0,0)}}),jr=Ir.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Dr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Lr={eventTypes:Dr,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0==(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Tn(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Ir,l=Dr.mouseLeave,u=Dr.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=jr,l=Dr.pointerLeave,u=Dr.pointerEnter,c="pointer");if(e=null==a?o:An(a),o=null==t?o:An(t),(l=s.getPooled(l,a,n,r)).type=c+"leave",l.target=e,l.relatedTarget=o,(n=s.getPooled(u,t,n,r)).type=c+"enter",n.target=o,n.relatedTarget=e,c=t,(r=a)&&c)e:{for(u=c,a=0,e=s=r;e;e=Rn(e))a++;for(e=0,t=u;t;t=Rn(t))e++;for(;0<a-e;)s=Rn(s),a--;for(;0<e-a;)u=Rn(u),e--;for(;a--;){if(s===u||s===u.alternate)break e;s=Rn(s),u=Rn(u)}s=null}else s=null;for(u=s,s=[];r&&r!==u&&(null===(a=r.alternate)||a!==u);)s.push(r),r=Rn(r);for(r=[];c&&c!==u&&(null===(a=c.alternate)||a!==u);)r.push(c),c=Rn(c);for(c=0;c<s.length;c++)Dn(s[c],"bubbled",l);for(c=r.length;0<c--;)Dn(r[c],"captured",n);return 0==(64&i)?[l]:[l,n]}};var Nr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Fr=Object.prototype.hasOwnProperty;function Br(e,t){if(Nr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Fr.call(t,n[r])||!Nr(e[n[r]],t[n[r]]))return!1;return!0}var zr=T&&"documentMode"in document&&11>=document.documentMode,Ur={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},qr=null,Hr=null,Wr=null,Vr=!1;function $r(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Vr||null==qr||qr!==cn(n)?null:("selectionStart"in(n=qr)&&hn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Wr&&Br(Wr,n)?null:(Wr=n,(e=Wn.getPooled(Ur.select,Hr,e,t)).type="select",e.target=qr,Nn(e),e))}var Gr={eventTypes:Ur,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Je(i),o=S.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?An(t):window,e){case"focus":(ur(i)||"true"===i.contentEditable)&&(qr=i,Hr=t,Wr=null);break;case"blur":Wr=Hr=qr=null;break;case"mousedown":Vr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vr=!1,$r(n,r);case"selectionchange":if(zr)break;case"keydown":case"keyup":return $r(n,r)}return null}},Kr=Wn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Yr=Wn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qr=Sr.extend({relatedTarget:null});function Xr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Jr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ei=Sr.extend({key:function(e){if(e.key){var t=Jr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Xr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Zr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Cr,charCode:function(e){return"keypress"===e.type?Xr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Xr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ti=Ir.extend({dataTransfer:null}),ni=Sr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Cr}),ri=Wn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=Ir.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),oi={eventTypes:Nt,extractEvents:function(e,t,n,r){var i=Ft.get(e);if(!i)return null;switch(e){case"keypress":if(0===Xr(n))return null;case"keydown":case"keyup":e=ei;break;case"blur":case"focus":e=Qr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Ir;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ti;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ni;break;case $e:case Ge:case Ke:e=Kr;break;case Ye:e=ri;break;case"scroll":e=Sr;break;case"wheel":e=ii;break;case"copy":case"cut":case"paste":e=Yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=jr;break;default:e=Wn}return Nn(t=e.getPooled(i,t,n,r)),t}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),_(),h=Pn,m=Cn,g=An,O({SimpleEventPlugin:oi,EnterLeaveEventPlugin:Lr,ChangeEventPlugin:Er,SelectEventPlugin:Gr,BeforeInputEventPlugin:sr});var ai=[],si=-1;function li(e){0>si||(e.current=ai[si],ai[si]=null,si--)}function ui(e,t){si++,ai[si]=e.current,e.current=t}var ci={},di={current:ci},fi={current:!1},pi=ci;function hi(e,t){var n=e.type.contextTypes;if(!n)return ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function mi(e){return null!=(e=e.childContextTypes)}function gi(){li(fi),li(di)}function vi(e,t,n){if(di.current!==ci)throw Error(a(168));ui(di,t),ui(fi,n)}function yi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,ge(t)||"Unknown",o));return i({},n,{},r)}function bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ci,pi=di.current,ui(di,e),ui(fi,fi.current),!0}function _i(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=yi(e,t,pi),r.__reactInternalMemoizedMergedChildContext=e,li(fi),li(di),ui(di,e)):li(fi),ui(fi,n)}var wi=o.unstable_runWithPriority,xi=o.unstable_scheduleCallback,ki=o.unstable_cancelCallback,Ei=o.unstable_requestPaint,Si=o.unstable_now,Oi=o.unstable_getCurrentPriorityLevel,Ti=o.unstable_ImmediatePriority,Ci=o.unstable_UserBlockingPriority,Ai=o.unstable_NormalPriority,Pi=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,Mi={},Ii=o.unstable_shouldYield,ji=void 0!==Ei?Ei:function(){},Di=null,Li=null,Ni=!1,Fi=Si(),Bi=1e4>Fi?Si:function(){return Si()-Fi};function zi(){switch(Oi()){case Ti:return 99;case Ci:return 98;case Ai:return 97;case Pi:return 96;case Ri:return 95;default:throw Error(a(332))}}function Ui(e){switch(e){case 99:return Ti;case 98:return Ci;case 97:return Ai;case 96:return Pi;case 95:return Ri;default:throw Error(a(332))}}function qi(e,t){return e=Ui(e),wi(e,t)}function Hi(e,t,n){return e=Ui(e),xi(e,t,n)}function Wi(e){return null===Di?(Di=[e],Li=xi(Ti,$i)):Di.push(e),Mi}function Vi(){if(null!==Li){var e=Li;Li=null,ki(e)}$i()}function $i(){if(!Ni&&null!==Di){Ni=!0;var e=0;try{var t=Di;qi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Di=null}catch(t){throw null!==Di&&(Di=Di.slice(e+1)),xi(Ti,Vi),t}finally{Ni=!1}}}function Gi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Ki(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Yi={current:null},Qi=null,Xi=null,Ji=null;function Zi(){Ji=Xi=Qi=null}function eo(e){var t=Yi.current;li(Yi),e.type._context._currentValue=t}function to(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function no(e,t){Qi=e,Ji=Xi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Pa=!0),e.firstContext=null)}function ro(e,t){if(Ji!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ji=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xi){if(null===Qi)throw Error(a(308));Xi=t,Qi.dependencies={expirationTime:0,firstContext:t,responders:null}}else Xi=Xi.next=t;return e._currentValue}var io=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function so(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function lo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function uo(e,t){var n=e.alternate;null!==n&&ao(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function co(e,t,n,r){var o=e.updateQueue;io=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,o.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=s))}if(null!==a){l=a.next;var u=o.baseState,c=0,d=null,f=null,p=null;if(null!==l)for(var h=l;;){if((s=h.expirationTime)<r){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(f=p=m,d=u):p=p.next=m,s>c&&(c=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),ol(s,h.suspenseConfig);e:{var g=e,v=h;switch(s=t,m=n,v.tag){case 1:if("function"==typeof(g=v.payload)){u=g.call(m,u,s);break e}u=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(s="function"==typeof(g=v.payload)?g.call(m,u,s):g))break e;u=i({},u,s);break e;case 2:io=!0}}null!==h.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[h]:s.push(h))}if(null===(h=h.next)||h===l){if(null===(s=o.shared.pending))break;h=a.next=s.next,s.next=l,o.baseQueue=a=s,o.shared.pending=null}}null===p?d=u:p.next=f,o.baseState=d,o.baseQueue=p,al(c),e.expirationTime=c,e.memoizedState=u}}function fo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}var po=Q.ReactCurrentBatchConfig,ho=(new r.Component).refs;function mo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var go={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=$s(),i=po.suspense;(i=so(r=Gs(r,e,i),i)).payload=t,null!=n&&(i.callback=n),lo(e,i),Ks(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=$s(),i=po.suspense;(i=so(r=Gs(r,e,i),i)).tag=1,i.payload=t,null!=n&&(i.callback=n),lo(e,i),Ks(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=$s(),r=po.suspense;(r=so(n=Gs(n,e,r),r)).tag=2,null!=t&&(r.callback=t),lo(e,r),Ks(e,n)}};function vo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Br(n,r)||!Br(i,o))}function yo(e,t,n){var r=!1,i=ci,o=t.contextType;return"object"==typeof o&&null!==o?o=ro(o):(i=mi(t)?pi:di.current,o=(r=null!=(r=t.contextTypes))?hi(e,i):ci),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=go,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function bo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&go.enqueueReplaceState(t,t.state,null)}function _o(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ho,oo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=ro(o):(o=mi(t)?pi:di.current,i.context=hi(e,o)),co(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(mo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&go.enqueueReplaceState(i,i.state,null),co(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var wo=Array.isArray;function xo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===ho&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ko(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Eo(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ol(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Al(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=xo(e,t,n),r.return=e,r):((r=Tl(n.type,n.key,n.props,null,e.mode,r)).ref=xo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Pl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Cl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Al(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Tl(t.type,t.key,t.props,null,e.mode,n)).ref=xo(e,null,t),n.return=e,n;case te:return(t=Pl(t,e.mode,n)).return=e,t}if(wo(t)||me(t))return(t=Cl(t,e.mode,n,null)).return=e,t;ko(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?n.type===ne?d(e,t,n.props.children,r,i):u(e,t,n,r):null;case te:return n.key===i?c(e,t,n,r):null}if(wo(n)||me(n))return null!==i?null:d(e,t,n,r,null);ko(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?d(t,e,r.props.children,i,r.key):u(t,e,r,i);case te:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(wo(r)||me(r))return d(t,e=e.get(n)||null,r,i,null);ko(t,r)}return null}function m(i,a,s,l){for(var u=null,c=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return n(i,d),u;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(a=o(d,a,m),null===c?u=d:c.sibling=d,c=d);return u}for(d=r(i,d);m<s.length;m++)null!==(g=h(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(i,e)})),u}function g(i,s,l,u){var c=me(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,u))&&(s=o(y,s,g),null===d?c=y:d.sibling=y,d=y);return c}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=o(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,o,l){var u="object"==typeof o&&null!==o&&o.type===ne&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case ee:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){switch(u.tag){case 7:if(o.type===ne){n(e,u.sibling),(r=i(u,o.props.children)).return=e,e=r;break e}break;default:if(u.elementType===o.type){n(e,u.sibling),(r=i(u,o.props)).ref=xo(e,u,o),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}o.type===ne?((r=Cl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Tl(o.type,o.key,o.props,null,e.mode,l)).ref=xo(e,r,o),l.return=e,e=l)}return s(e);case te:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Pl(o,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Al(o,e.mode,l)).return=e,e=r),s(e);if(wo(o))return m(e,r,o,l);if(me(o))return g(e,r,o,l);if(c&&ko(e,o),void 0===o&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var So=Eo(!0),Oo=Eo(!1),To={},Co={current:To},Ao={current:To},Po={current:To};function Ro(e){if(e===To)throw Error(a(174));return e}function Mo(e,t){switch(ui(Po,t),ui(Ao,e),ui(Co,To),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ne(null,"");break;default:t=Ne(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}li(Co),ui(Co,t)}function Io(){li(Co),li(Ao),li(Po)}function jo(e){Ro(Po.current);var t=Ro(Co.current),n=Ne(t,e.type);t!==n&&(ui(Ao,e),ui(Co,n))}function Do(e){Ao.current===e&&(li(Co),li(Ao))}var Lo={current:0};function No(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Fo(e,t){return{responder:e,props:t}}var Bo=Q.ReactCurrentDispatcher,zo=Q.ReactCurrentBatchConfig,Uo=0,qo=null,Ho=null,Wo=null,Vo=!1;function $o(){throw Error(a(321))}function Go(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Nr(e[n],t[n]))return!1;return!0}function Ko(e,t,n,r,i,o){if(Uo=o,qo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Bo.current=null===e||null===e.memoizedState?va:ya,e=n(r,i),t.expirationTime===Uo){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Wo=Ho=null,t.updateQueue=null,Bo.current=ba,e=n(r,i)}while(t.expirationTime===Uo)}if(Bo.current=ga,t=null!==Ho&&null!==Ho.next,Uo=0,Wo=Ho=qo=null,Vo=!1,t)throw Error(a(300));return e}function Yo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wo?qo.memoizedState=Wo=e:Wo=Wo.next=e,Wo}function Qo(){if(null===Ho){var e=qo.alternate;e=null!==e?e.memoizedState:null}else e=Ho.next;var t=null===Wo?qo.memoizedState:Wo.next;if(null!==t)Wo=t,Ho=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Ho=e).memoizedState,baseState:Ho.baseState,baseQueue:Ho.baseQueue,queue:Ho.queue,next:null},null===Wo?qo.memoizedState=Wo=e:Wo=Wo.next=e}return Wo}function Xo(e,t){return"function"==typeof t?t(e):t}function Jo(e){var t=Qo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Ho,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=o=null,u=i;do{var c=u.expirationTime;if(c<Uo){var d={expirationTime:u.expirationTime,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=d,o=r):l=l.next=d,c>qo.expirationTime&&(qo.expirationTime=c,al(c))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),ol(c,u.suspenseConfig),r=u.eagerReducer===e?u.eagerState:e(r,u.action);u=u.next}while(null!==u&&u!==i);null===l?o=r:l.next=s,Nr(r,t.memoizedState)||(Pa=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Zo(e){var t=Qo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Nr(o,t.memoizedState)||(Pa=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ea(e){var t=Yo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:e}).dispatch=ma.bind(null,qo,e),[t.memoizedState,e]}function ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=qo.updateQueue)?(t={lastEffect:null},qo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function na(){return Qo().memoizedState}function ra(e,t,n,r){var i=Yo();qo.effectTag|=e,i.memoizedState=ta(1|t,n,void 0,void 0===r?null:r)}function ia(e,t,n,r){var i=Qo();r=void 0===r?null:r;var o=void 0;if(null!==Ho){var a=Ho.memoizedState;if(o=a.destroy,null!==r&&Go(r,a.deps))return void ta(t,n,o,r)}qo.effectTag|=e,i.memoizedState=ta(1|t,n,o,r)}function oa(e,t){return ra(516,4,e,t)}function aa(e,t){return ia(516,4,e,t)}function sa(e,t){return ia(4,2,e,t)}function la(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ua(e,t,n){return n=null!=n?n.concat([e]):null,ia(4,2,la.bind(null,t,e),n)}function ca(){}function da(e,t){return Yo().memoizedState=[e,void 0===t?null:t],e}function fa(e,t){var n=Qo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Go(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pa(e,t){var n=Qo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Go(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ha(e,t,n){var r=zi();qi(98>r?98:r,(function(){e(!0)})),qi(97<r?97:r,(function(){var r=zo.suspense;zo.suspense=void 0===t?null:t;try{e(!1),n()}finally{zo.suspense=r}}))}function ma(e,t,n){var r=$s(),i=po.suspense;i={expirationTime:r=Gs(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===qo||null!==o&&o===qo)Vo=!0,i.expirationTime=Uo,qo.expirationTime=Uo;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,Nr(s,a))return}catch(e){}Ks(e,r)}}var ga={readContext:ro,useCallback:$o,useContext:$o,useEffect:$o,useImperativeHandle:$o,useLayoutEffect:$o,useMemo:$o,useReducer:$o,useRef:$o,useState:$o,useDebugValue:$o,useResponder:$o,useDeferredValue:$o,useTransition:$o},va={readContext:ro,useCallback:da,useContext:ro,useEffect:oa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ra(4,2,la.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ra(4,2,e,t)},useMemo:function(e,t){var n=Yo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ma.bind(null,qo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Yo().memoizedState=e},useState:ea,useDebugValue:ca,useResponder:Fo,useDeferredValue:function(e,t){var n=ea(e),r=n[0],i=n[1];return oa((function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{i(e)}finally{zo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ea(!1),n=t[0];return t=t[1],[da(ha.bind(null,t,e),[t,e]),n]}},ya={readContext:ro,useCallback:fa,useContext:ro,useEffect:aa,useImperativeHandle:ua,useLayoutEffect:sa,useMemo:pa,useReducer:Jo,useRef:na,useState:function(){return Jo(Xo)},useDebugValue:ca,useResponder:Fo,useDeferredValue:function(e,t){var n=Jo(Xo),r=n[0],i=n[1];return aa((function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{i(e)}finally{zo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Jo(Xo),n=t[0];return t=t[1],[fa(ha.bind(null,t,e),[t,e]),n]}},ba={readContext:ro,useCallback:fa,useContext:ro,useEffect:aa,useImperativeHandle:ua,useLayoutEffect:sa,useMemo:pa,useReducer:Zo,useRef:na,useState:function(){return Zo(Xo)},useDebugValue:ca,useResponder:Fo,useDeferredValue:function(e,t){var n=Zo(Xo),r=n[0],i=n[1];return aa((function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{i(e)}finally{zo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Zo(Xo),n=t[0];return t=t[1],[fa(ha.bind(null,t,e),[t,e]),n]}},_a=null,wa=null,xa=!1;function ka(e,t){var n=El(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ea(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Sa(e){if(xa){var t=wa;if(t){var n=t;if(!Ea(e,t)){if(!(t=wn(n.nextSibling))||!Ea(e,t))return e.effectTag=-1025&e.effectTag|2,xa=!1,void(_a=e);ka(_a,n)}_a=e,wa=wn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,xa=!1,_a=e}}function Oa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;_a=e}function Ta(e){if(e!==_a)return!1;if(!xa)return Oa(e),xa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!yn(t,e.memoizedProps))for(t=wa;t;)ka(e,t),t=wn(t.nextSibling);if(Oa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){wa=wn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}wa=null}}else wa=_a?wn(e.stateNode.nextSibling):null;return!0}function Ca(){wa=_a=null,xa=!1}var Aa=Q.ReactCurrentOwner,Pa=!1;function Ra(e,t,n,r){t.child=null===e?Oo(t,null,n,r):So(t,e.child,n,r)}function Ma(e,t,n,r,i){n=n.render;var o=t.ref;return no(t,i),r=Ko(e,t,n,r,o,i),null===e||Pa?(t.effectTag|=1,Ra(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ka(e,t,i))}function Ia(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Sl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Tl(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ja(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Br)(i,r)&&e.ref===t.ref)?Ka(e,t,o):(t.effectTag|=1,(e=Ol(a,r)).ref=t.ref,e.return=t,t.child=e)}function ja(e,t,n,r,i,o){return null!==e&&Br(e.memoizedProps,r)&&e.ref===t.ref&&(Pa=!1,i<o)?(t.expirationTime=e.expirationTime,Ka(e,t,o)):La(e,t,n,r,o)}function Da(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function La(e,t,n,r,i){var o=mi(n)?pi:di.current;return o=hi(t,o),no(t,i),n=Ko(e,t,n,r,o,i),null===e||Pa?(t.effectTag|=1,Ra(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ka(e,t,i))}function Na(e,t,n,r,i){if(mi(n)){var o=!0;bi(t)}else o=!1;if(no(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),yo(t,n,r),_o(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=ro(u):u=hi(t,u=mi(n)?pi:di.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&bo(t,a,r,u),io=!1;var f=t.memoizedState;a.state=f,co(t,r,a,i),l=t.memoizedState,s!==r||f!==l||fi.current||io?("function"==typeof c&&(mo(t,n,c,r),l=t.memoizedState),(s=io||vo(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,ao(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Ki(t.type,s),l=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=ro(u):u=hi(t,u=mi(n)?pi:di.current),(d="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&bo(t,a,r,u),io=!1,l=t.memoizedState,a.state=l,co(t,r,a,i),f=t.memoizedState,s!==r||l!==f||fi.current||io?("function"==typeof c&&(mo(t,n,c,r),f=t.memoizedState),(c=io||vo(t,n,s,r,l,f,u))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Fa(e,t,n,r,o,i)}function Fa(e,t,n,r,i,o){Da(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&_i(t,n,!1),Ka(e,t,o);r=t.stateNode,Aa.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=So(t,e.child,null,o),t.child=So(t,null,s,o)):Ra(e,t,s,o),t.memoizedState=r.state,i&&_i(t,n,!0),t.child}function Ba(e){var t=e.stateNode;t.pendingContext?vi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vi(0,t.context,!1),Mo(e,t.containerInfo)}var za,Ua,qa,Ha={dehydrated:null,retryTime:0};function Wa(e,t,n){var r,i=t.mode,o=t.pendingProps,a=Lo.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),ui(Lo,1&a),null===e){if(void 0!==o.fallback&&Sa(t),s){if(s=o.fallback,(o=Cl(null,i,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Cl(s,i,n,null)).return=t,o.sibling=n,t.memoizedState=Ha,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=Oo(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(n=Ol(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Ol(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=Ha,t.child=n,i}return n=So(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=Cl(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Cl(s,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Ha,t.child=o,n}return t.memoizedState=null,t.child=So(t,e,o.children,n)}function Va(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),to(e.return,t)}function $a(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Ga(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ra(e,t,r.children,n),0!=(2&(r=Lo.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Va(e,n);else if(19===e.tag)Va(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ui(Lo,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===No(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),$a(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===No(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}$a(t,!0,n,null,o,t.lastEffect);break;case"together":$a(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ka(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&al(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ol(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ol(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ya(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qa(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return mi(t.type)&&gi(),null;case 3:return Io(),li(fi),li(di),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Ta(t)||(t.effectTag|=4),null;case 5:Do(t),n=Ro(Po.current);var o=t.type;if(null!==e&&null!=t.stateNode)Ua(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ro(Co.current),Ta(t)){r=t.stateNode,o=t.type;var s=t.memoizedProps;switch(r[En]=t,r[Sn]=s,o){case"iframe":case"object":case"embed":Gt("load",r);break;case"video":case"audio":for(e=0;e<Qe.length;e++)Gt(Qe[e],r);break;case"source":Gt("error",r);break;case"img":case"image":case"link":Gt("error",r),Gt("load",r);break;case"form":Gt("reset",r),Gt("submit",r);break;case"details":Gt("toggle",r);break;case"input":ke(r,s),Gt("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Gt("invalid",r),ln(n,"onChange");break;case"textarea":Re(r,s),Gt("invalid",r),ln(n,"onChange")}for(var l in on(o,s),e=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?r.textContent!==u&&(e=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(e=["children",""+u]):E.hasOwnProperty(l)&&null!=u&&ln(n,l)}switch(o){case"input":_e(r),Oe(r,s,!0);break;case"textarea":_e(r),Ie(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=un)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===sn&&(e=Le(o)),e===sn?"script"===o?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(o,{is:r.is}):(e=l.createElement(o),"select"===o&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,o),e[En]=t,e[Sn]=r,za(e,t),t.stateNode=e,l=an(o,r),o){case"iframe":case"object":case"embed":Gt("load",e),u=r;break;case"video":case"audio":for(u=0;u<Qe.length;u++)Gt(Qe[u],e);u=r;break;case"source":Gt("error",e),u=r;break;case"img":case"image":case"link":Gt("error",e),Gt("load",e),u=r;break;case"form":Gt("reset",e),Gt("submit",e),u=r;break;case"details":Gt("toggle",e),u=r;break;case"input":ke(e,r),u=xe(e,r),Gt("invalid",e),ln(n,"onChange");break;case"option":u=Ce(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},u=i({},r,{value:void 0}),Gt("invalid",e),ln(n,"onChange");break;case"textarea":Re(e,r),u=Pe(e,r),Gt("invalid",e),ln(n,"onChange");break;default:u=r}on(o,u);var c=u;for(s in c)if(c.hasOwnProperty(s)){var d=c[s];"style"===s?nn(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&Be(e,d):"children"===s?"string"==typeof d?("textarea"!==o||""!==d)&&ze(e,d):"number"==typeof d&&ze(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(E.hasOwnProperty(s)?null!=d&&ln(n,s):null!=d&&X(e,s,d,l))}switch(o){case"input":_e(e),Oe(e,r,!1);break;case"textarea":_e(e),Ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ye(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Ae(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof u.onClick&&(e.onclick=un)}vn(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)qa(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Ro(Po.current),Ro(Co.current),Ta(t)?(n=t.stateNode,r=t.memoizedProps,n[En]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[En]=t,t.stateNode=n)}return null;case 13:return li(Lo),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Ta(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Lo.current)?Ts===_s&&(Ts=ws):(Ts!==_s&&Ts!==ws||(Ts=xs),0!==Ms&&null!==Es&&(Il(Es,Os),jl(Es,Ms)))),(n||r)&&(t.effectTag|=4),null);case 4:return Io(),null;case 10:return eo(t),null;case 17:return mi(t.type)&&gi(),null;case 19:if(li(Lo),null===(r=t.memoizedState))return null;if(o=0!=(64&t.effectTag),null===(s=r.rendering)){if(o)Ya(r,!1);else if(Ts!==_s||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=No(s))){for(t.effectTag|=64,Ya(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return ui(Lo,1&Lo.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=No(s))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Ya(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Bi()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,Ya(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Bi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Bi(),n.sibling=null,t=Lo.current,ui(Lo,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Xa(e){switch(e.tag){case 1:mi(e.type)&&gi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Io(),li(fi),li(di),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Do(e),null;case 13:return li(Lo),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return li(Lo),null;case 4:return Io(),null;case 10:return eo(e),null;default:return null}}function Ja(e,t){return{value:e,source:t,stack:ve(t)}}za=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ua=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s,l,u=t.stateNode;switch(Ro(Co.current),e=null,n){case"input":a=xe(u,a),r=xe(u,r),e=[];break;case"option":a=Ce(u,a),r=Ce(u,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=Pe(u,a),r=Pe(u,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(u.onclick=un)}for(s in on(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in u=a[s])u.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(E.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var c=r[s];if(u=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&c!==u&&(null!=c||null!=u))if("style"===s)if(u){for(l in u)!u.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&u[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(e||(e=[]),e.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(s,c)):"children"===s?u===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(E.hasOwnProperty(s)?(null!=c&&ln(o,s),e||u===c||(e=[])):(e=e||[]).push(s,c))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},qa=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Za="function"==typeof WeakSet?WeakSet:Set;function es(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ve(n)),null!==n&&ge(n.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ts(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){yl(e,t)}else t.current=null}function ns(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ki(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function is(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void is(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Ki(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&fo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&vn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Lt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function as(e,t,n){switch("function"==typeof xl&&xl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;qi(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(e){yl(i,e)}}e=e.next}while(e!==r)}))}break;case 1:ts(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){yl(e,t)}}(t,n);break;case 5:ts(t);break;case 4:cs(e,t,n)}}function ss(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ss(t)}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function us(e){e:{for(var t=e.return;null!==t;){if(ls(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(ze(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ls(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=un));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function cs(e,t,n){for(var r,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var l=e,u=o,c=n,d=u;;)if(as(l,d,c),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===u)break e;for(;null===d.sibling;){if(null===d.return||d.return===u)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}i?(l=r,u=o.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(as(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function ds(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void rs(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Sn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ee(n,r),an(e,i),t=an(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?nn(n,l):"dangerouslySetInnerHTML"===s?Be(n,l):"children"===s?ze(n,l):X(n,s,l,t)}switch(e){case"input":Se(n,r);break;case"textarea":Me(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Ae(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ae(n,!!r.multiple,r.defaultValue,!0):Ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Lt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,js=Bi()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=tn("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void fs(t);case 19:return void fs(t);case 17:return}throw Error(a(163))}function fs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Za),t.forEach((function(t){var r=_l.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=so(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ls||(Ls=!0,Ns=r),es(e,t)},n}function ms(e,t,n){(n=so(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return es(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Fs?Fs=new Set([this]):Fs.add(this),es(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var gs,vs=Math.ceil,ys=Q.ReactCurrentDispatcher,bs=Q.ReactCurrentOwner,_s=0,ws=3,xs=4,ks=0,Es=null,Ss=null,Os=0,Ts=_s,Cs=null,As=1073741823,Ps=1073741823,Rs=null,Ms=0,Is=!1,js=0,Ds=null,Ls=!1,Ns=null,Fs=null,Bs=!1,zs=null,Us=90,qs=null,Hs=0,Ws=null,Vs=0;function $s(){return 0!=(48&ks)?1073741821-(Bi()/10|0):0!==Vs?Vs:Vs=1073741821-(Bi()/10|0)}function Gs(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=zi();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&ks))return Os;if(null!==n)e=Gi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Gi(e,150,100);break;case 97:case 96:e=Gi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Es&&e===Os&&--e,e}function Ks(e,t){if(50<Hs)throw Hs=0,Ws=null,Error(a(185));if(null!==(e=Ys(e,t))){var n=zi();1073741823===t?0!=(8&ks)&&0==(48&ks)?Zs(e):(Xs(e),0===ks&&Vi()):Xs(e),0==(4&ks)||98!==n&&99!==n||(null===qs?qs=new Map([[e,t]]):(void 0===(n=qs.get(e))||n>t)&&qs.set(e,t))}}function Ys(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Es===i&&(al(t),Ts===xs&&Il(i,Os)),jl(i,t)),i}function Qs(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Ml(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Xs(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Wi(Zs.bind(null,e));else{var t=Qs(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=$s();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Mi&&ki(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Wi(Zs.bind(null,e)):Hi(r,Js.bind(null,e),{timeout:10*(1073741821-t)-Bi()}),e.callbackNode=t}}}function Js(e,t){if(Vs=0,t)return Dl(e,t=$s()),Xs(e),null;var n=Qs(e);if(0!==n){if(t=e.callbackNode,0!=(48&ks))throw Error(a(327));if(ml(),e===Es&&n===Os||nl(e,n),null!==Ss){var r=ks;ks|=16;for(var i=il();;)try{ll();break}catch(t){rl(e,t)}if(Zi(),ks=r,ys.current=i,1===Ts)throw t=Cs,nl(e,n),Il(e,n),Xs(e),t;if(null===Ss)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Ts,Es=null,r){case _s:case 1:throw Error(a(345));case 2:Dl(e,2<n?2:n);break;case ws:if(Il(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=dl(i)),1073741823===As&&10<(i=js+500-Bi())){if(Is){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,nl(e,n);break}}if(0!==(o=Qs(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=bn(fl.bind(null,e),i);break}fl(e);break;case xs:if(Il(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=dl(i)),Is&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,nl(e,n);break}if(0!==(i=Qs(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ps?r=10*(1073741821-Ps)-Bi():1073741823===As?r=0:(r=10*(1073741821-As)-5e3,0>(r=(i=Bi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vs(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=bn(fl.bind(null,e),r);break}fl(e);break;case 5:if(1073741823!==As&&null!==Rs){o=As;var s=Rs;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(o=Bi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Il(e,n),e.timeoutHandle=bn(fl.bind(null,e),r);break}}fl(e);break;default:throw Error(a(329))}if(Xs(e),e.callbackNode===t)return Js.bind(null,e)}}return null}function Zs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&ks))throw Error(a(327));if(ml(),e===Es&&t===Os||nl(e,t),null!==Ss){var n=ks;ks|=16;for(var r=il();;)try{sl();break}catch(t){rl(e,t)}if(Zi(),ks=n,ys.current=r,1===Ts)throw n=Cs,nl(e,t),Il(e,t),Xs(e),n;if(null!==Ss)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Es=null,fl(e),Xs(e)}return null}function el(e,t){var n=ks;ks|=1;try{return e(t)}finally{0===(ks=n)&&Vi()}}function tl(e,t){var n=ks;ks&=-2,ks|=8;try{return e(t)}finally{0===(ks=n)&&Vi()}}function nl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,_n(n)),null!==Ss)for(n=Ss.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&gi();break;case 3:Io(),li(fi),li(di);break;case 5:Do(r);break;case 4:Io();break;case 13:case 19:li(Lo);break;case 10:eo(r)}n=n.return}Es=e,Ss=Ol(e.current,null),Os=t,Ts=_s,Cs=null,Ps=As=1073741823,Rs=null,Ms=0,Is=!1}function rl(e,t){for(;;){try{if(Zi(),Bo.current=ga,Vo)for(var n=qo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Uo=0,Wo=Ho=qo=null,Vo=!1,null===Ss||null===Ss.return)return Ts=1,Cs=t,Ss=null;e:{var i=e,o=Ss.return,a=Ss,s=t;if(t=Os,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(0==(2&a.mode)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.expirationTime=u.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=0!=(1&Lo.current),d=o;do{var f;if(f=13===d.tag){var p=d.memoizedState;if(null!==p)f=null!==p.dehydrated;else{var h=d.memoizedProps;f=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!c)}}if(f){var m=d.updateQueue;if(null===m){var g=new Set;g.add(l),d.updateQueue=g}else m.add(l);if(0==(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=so(1073741823,null);v.tag=2,lo(a,v)}a.expirationTime=1073741823;break e}s=void 0,a=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new ps,s=new Set,y.set(l,s)):void 0===(s=y.get(l))&&(s=new Set,y.set(l,s)),!s.has(a)){s.add(a);var b=bl.bind(null,i,l,a);l.then(b,b)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((ge(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ve(a))}5!==Ts&&(Ts=2),s=Ja(s,a),d=o;do{switch(d.tag){case 3:l=s,d.effectTag|=4096,d.expirationTime=t,uo(d,hs(d,l,t));break e;case 1:l=s;var _=d.type,w=d.stateNode;if(0==(64&d.effectTag)&&("function"==typeof _.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===Fs||!Fs.has(w)))){d.effectTag|=4096,d.expirationTime=t,uo(d,ms(d,l,t));break e}}d=d.return}while(null!==d)}Ss=cl(Ss)}catch(e){t=e;continue}break}}function il(){var e=ys.current;return ys.current=ga,null===e?ga:e}function ol(e,t){e<As&&2<e&&(As=e),null!==t&&e<Ps&&2<e&&(Ps=e,Rs=t)}function al(e){e>Ms&&(Ms=e)}function sl(){for(;null!==Ss;)Ss=ul(Ss)}function ll(){for(;null!==Ss&&!Ii();)Ss=ul(Ss)}function ul(e){var t=gs(e.alternate,e,Os);return e.memoizedProps=e.pendingProps,null===t&&(t=cl(e)),bs.current=null,t}function cl(e){Ss=e;do{var t=Ss.alternate;if(e=Ss.return,0==(2048&Ss.effectTag)){if(t=Qa(t,Ss,Os),1===Os||1!==Ss.childExpirationTime){for(var n=0,r=Ss.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Ss.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ss.firstEffect),null!==Ss.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ss.firstEffect),e.lastEffect=Ss.lastEffect),1<Ss.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ss:e.firstEffect=Ss,e.lastEffect=Ss))}else{if(null!==(t=Xa(Ss)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ss.sibling))return t;Ss=e}while(null!==Ss);return Ts===_s&&(Ts=5),null}function dl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function fl(e){var t=zi();return qi(99,pl.bind(null,e,t)),null}function pl(e,t){do{ml()}while(null!==zs);if(0!=(48&ks))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=dl(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Es&&(Ss=Es=null,Os=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=ks;ks|=32,bs.current=null,mn=$t;var s=pn();if(hn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var u=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(u&&0!==u.rangeCount){l=u.anchorNode;var c=u.anchorOffset,d=u.focusNode;u=u.focusOffset;try{l.nodeType,d.nodeType}catch(e){l=null;break e}var f=0,p=-1,h=-1,m=0,g=0,v=s,y=null;t:for(;;){for(var b;v!==l||0!==c&&3!==v.nodeType||(p=f+c),v!==d||0!==u&&3!==v.nodeType||(h=f+u),3===v.nodeType&&(f+=v.nodeValue.length),null!==(b=v.firstChild);)y=v,v=b;for(;;){if(v===s)break t;if(y===l&&++m===c&&(p=f),y===d&&++g===u&&(h=f),null!==(b=v.nextSibling))break;y=(v=y).parentNode}v=b}l=-1===p||-1===h?null:{start:p,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;gn={activeElementDetached:null,focusedElem:s,selectionRange:l},$t=!1,Ds=i;do{try{hl()}catch(e){if(null===Ds)throw Error(a(330));yl(Ds,e),Ds=Ds.nextEffect}}while(null!==Ds);Ds=i;do{try{for(s=e,l=t;null!==Ds;){var _=Ds.effectTag;if(16&_&&ze(Ds.stateNode,""),128&_){var w=Ds.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&_){case 2:us(Ds),Ds.effectTag&=-3;break;case 6:us(Ds),Ds.effectTag&=-3,ds(Ds.alternate,Ds);break;case 1024:Ds.effectTag&=-1025;break;case 1028:Ds.effectTag&=-1025,ds(Ds.alternate,Ds);break;case 4:ds(Ds.alternate,Ds);break;case 8:cs(s,c=Ds,l),ss(c)}Ds=Ds.nextEffect}}catch(e){if(null===Ds)throw Error(a(330));yl(Ds,e),Ds=Ds.nextEffect}}while(null!==Ds);if(x=gn,w=pn(),_=x.focusedElem,l=x.selectionRange,w!==_&&_&&_.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(_.ownerDocument.documentElement,_)){null!==l&&hn(_)&&(w=l.start,void 0===(x=l.end)&&(x=w),"selectionStart"in _?(_.selectionStart=w,_.selectionEnd=Math.min(x,_.value.length)):(x=(w=_.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),c=_.textContent.length,s=Math.min(l.start,c),l=void 0===l.end?s:Math.min(l.end,c),!x.extend&&s>l&&(c=l,l=s,s=c),c=fn(_,s),d=fn(_,l),c&&d&&(1!==x.rangeCount||x.anchorNode!==c.node||x.anchorOffset!==c.offset||x.focusNode!==d.node||x.focusOffset!==d.offset)&&((w=w.createRange()).setStart(c.node,c.offset),x.removeAllRanges(),s>l?(x.addRange(w),x.extend(d.node,d.offset)):(w.setEnd(d.node,d.offset),x.addRange(w))))),w=[];for(x=_;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof _.focus&&_.focus(),_=0;_<w.length;_++)(x=w[_]).element.scrollLeft=x.left,x.element.scrollTop=x.top}$t=!!mn,gn=mn=null,e.current=n,Ds=i;do{try{for(_=e;null!==Ds;){var k=Ds.effectTag;if(36&k&&os(_,Ds.alternate,Ds),128&k){w=void 0;var E=Ds.ref;if(null!==E){var S=Ds.stateNode;switch(Ds.tag){case 5:w=S;break;default:w=S}"function"==typeof E?E(w):E.current=w}}Ds=Ds.nextEffect}}catch(e){if(null===Ds)throw Error(a(330));yl(Ds,e),Ds=Ds.nextEffect}}while(null!==Ds);Ds=null,ji(),ks=o}else e.current=n;if(Bs)Bs=!1,zs=e,Us=t;else for(Ds=i;null!==Ds;)t=Ds.nextEffect,Ds.nextEffect=null,Ds=t;if(0===(t=e.firstPendingTime)&&(Fs=null),1073741823===t?e===Ws?Hs++:(Hs=0,Ws=e):Hs=0,"function"==typeof wl&&wl(n.stateNode,r),Xs(e),Ls)throw Ls=!1,e=Ns,Ns=null,e;return 0!=(8&ks)||Vi(),null}function hl(){for(;null!==Ds;){var e=Ds.effectTag;0!=(256&e)&&ns(Ds.alternate,Ds),0==(512&e)||Bs||(Bs=!0,Hi(97,(function(){return ml(),null}))),Ds=Ds.nextEffect}}function ml(){if(90!==Us){var e=97<Us?97:Us;return Us=90,qi(e,gl)}}function gl(){if(null===zs)return!1;var e=zs;if(zs=null,0!=(48&ks))throw Error(a(331));var t=ks;for(ks|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:rs(5,n),is(5,n)}}catch(t){if(null===e)throw Error(a(330));yl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return ks=t,Vi(),!0}function vl(e,t,n){lo(e,t=hs(e,t=Ja(n,t),1073741823)),null!==(e=Ys(e,1073741823))&&Xs(e)}function yl(e,t){if(3===e.tag)vl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){vl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Fs||!Fs.has(r))){lo(n,e=ms(n,e=Ja(t,e),1073741823)),null!==(n=Ys(n,1073741823))&&Xs(n);break}}n=n.return}}function bl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Es===e&&Os===n?Ts===xs||Ts===ws&&1073741823===As&&Bi()-js<500?nl(e,Os):Is=!0:Ml(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Xs(e)))}function _l(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Gs(t=$s(),e,null)),null!==(e=Ys(e,t))&&Xs(e)}gs=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||fi.current)Pa=!0;else{if(r<n){switch(Pa=!1,t.tag){case 3:Ba(t),Ca();break;case 5:if(jo(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:mi(t.type)&&bi(t);break;case 4:Mo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,ui(Yi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Wa(e,t,n):(ui(Lo,1&Lo.current),null!==(t=Ka(e,t,n))?t.sibling:null);ui(Lo,1&Lo.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Ga(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),ui(Lo,Lo.current),!r)return null}return Ka(e,t,n)}Pa=!1}}else Pa=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=hi(t,di.current),no(t,n),i=Ko(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mi(r)){var o=!0;bi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&mo(t,r,s,e),i.updater=go,t.stateNode=i,i._reactInternalFiber=t,_o(t,r,e,n),t=Fa(null,t,r,!0,o,n)}else t.tag=0,Ra(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"==typeof e)return Sl(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===de)return 14}return 2}(i),e=Ki(i,e),o){case 0:t=La(null,t,i,e,n);break e;case 1:t=Na(null,t,i,e,n);break e;case 11:t=Ma(null,t,i,e,n);break e;case 14:t=Ia(null,t,i,Ki(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,La(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 1:return r=t.type,i=t.pendingProps,Na(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 3:if(Ba(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ao(e,t),co(t,r,null,n),(r=t.memoizedState.element)===i)Ca(),t=Ka(e,t,n);else{if((i=t.stateNode.hydrate)&&(wa=wn(t.stateNode.containerInfo.firstChild),_a=t,i=xa=!0),i)for(n=Oo(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ra(e,t,r,n),Ca();t=t.child}return t;case 5:return jo(t),null===e&&Sa(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,yn(r,i)?s=null:null!==o&&yn(r,o)&&(t.effectTag|=16),Da(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ra(e,t,s,n),t=t.child),t;case 6:return null===e&&Sa(t),null;case 13:return Wa(e,t,n);case 4:return Mo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=So(t,null,r,n):Ra(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ma(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 7:return Ra(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ra(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(ui(Yi,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0===(o=Nr(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!fi.current){t=Ka(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===l.tag&&((c=so(n,null)).tag=2,lo(l,c)),l.expirationTime<n&&(l.expirationTime=n),null!==(c=l.alternate)&&c.expirationTime<n&&(c.expirationTime=n),to(l.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Ra(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,no(t,n),r=r(i=ro(i,o.unstable_observedBits)),t.effectTag|=1,Ra(e,t,r,n),t.child;case 14:return o=Ki(i=t.type,t.pendingProps),Ia(e,t,i,o=Ki(i.type,o),r,n);case 15:return ja(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ki(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,mi(r)?(e=!0,bi(t)):e=!1,no(t,n),yo(t,r,i),_o(t,r,i,n),Fa(null,t,r,!0,e,n);case 19:return Ga(e,t,n)}throw Error(a(156,t.tag))};var wl=null,xl=null;function kl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function El(e,t,n,r){return new kl(e,t,n,r)}function Sl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ol(e,t){var n=e.alternate;return null===n?((n=El(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Tl(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)Sl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return Cl(n.children,i,o,t);case se:s=8,i|=7;break;case re:s=8,i|=1;break;case ie:return(e=El(12,n,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=o,e;case ue:return(e=El(13,n,t,i)).type=ue,e.elementType=ue,e.expirationTime=o,e;case ce:return(e=El(19,n,t,i)).elementType=ce,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:s=10;break e;case ae:s=9;break e;case le:s=11;break e;case de:s=14;break e;case fe:s=16,r=null;break e;case pe:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=El(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function Cl(e,t,n,r){return(e=El(7,e,r,t)).expirationTime=n,e}function Al(e,t,n){return(e=El(6,e,null,t)).expirationTime=n,e}function Pl(e,t,n){return(t=El(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rl(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Ml(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Il(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function jl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Dl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Ll(e,t,n,r){var i=t.current,o=$s(),s=po.suspense;o=Gs(o,i,s);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(mi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var u=n.type;if(mi(u)){n=yi(n,u,l);break e}}n=l}else n=ci;return null===t.context?t.context=n:t.pendingContext=n,(t=so(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),lo(i,t),Ks(i,o),o}function Nl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Fl(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Bl(e,t){Fl(e,t),(e=e.alternate)&&Fl(e,t)}function zl(e,t,n){var r=new Rl(e,t,n=null!=n&&!0===n.hydrate),i=El(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,oo(i),e[On]=r.current,n&&0!==t&&function(e,t){var n=Je(t);Ot.forEach((function(e){ht(e,t,n)})),Tt.forEach((function(e){ht(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Ul(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ql(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Nl(a);s.call(e)}}Ll(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new zl(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=Nl(a);l.call(e)}}tl((function(){Ll(t,a,e,i)}))}return Nl(a)}function Hl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Wl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ul(t))throw Error(a(200));return Hl(e,t,null,n)}zl.prototype.render=function(e){Ll(e,this._internalRoot,null,null)},zl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ll(null,e,null,(function(){t[On]=null}))},mt=function(e){if(13===e.tag){var t=Gi($s(),150,100);Ks(e,t),Bl(e,t)}},gt=function(e){13===e.tag&&(Ks(e,3),Bl(e,3))},vt=function(e){if(13===e.tag){var t=$s();Ks(e,t=Gs(t,e,null)),Bl(e,t)}},C=function(e,t,n){switch(t){case"input":if(Se(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Pn(r);if(!i)throw Error(a(90));we(r),Se(r,i)}}}break;case"textarea":Me(e,n);break;case"select":null!=(t=n.value)&&Ae(e,!!n.multiple,t,!1)}},j=el,D=function(e,t,n,r,i){var o=ks;ks|=4;try{return qi(98,e.bind(null,t,n,r,i))}finally{0===(ks=o)&&Vi()}},L=function(){0==(49&ks)&&(function(){if(null!==qs){var e=qs;qs=null,e.forEach((function(e,t){Dl(t,e),Xs(t)})),Vi()}}(),ml())},N=function(e,t){var n=ks;ks|=2;try{return e(t)}finally{0===(ks=n)&&Vi()}};var Vl,$l,Gl={Events:[Cn,An,Pn,O,k,Nn,function(e){it(e,Ln)},M,I,Xt,st,ml,{current:!1}]};$l=(Vl={findFiberByHostInstance:Tn,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);wl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},xl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(i({},Vl,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return $l?$l(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gl,t.createPortal=Wl,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&ks))throw Error(a(187));var n=ks;ks|=1;try{return qi(99,e.bind(null,t))}finally{ks=n,Vi()}},t.hydrate=function(e,t,n){if(!Ul(t))throw Error(a(200));return ql(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ul(t))throw Error(a(200));return ql(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ul(e))throw Error(a(40));return!!e._reactRootContainer&&(tl((function(){ql(null,null,e,!1,(function(){e._reactRootContainer=null,e[On]=null}))})),!0)},t.unstable_batchedUpdates=el,t.unstable_createPortal=function(e,t){return Wl(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ul(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return ql(e,t,n,!1,r)},t.version="16.13.1"},function(e,t,n){"use strict";e.exports=n(691)},function(e,t,n){"use strict";
+/** @license React v0.19.1
+ * scheduler.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var r,i,o,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,u=null,c=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(c,0),e}},d=Date.now();t.unstable_now=function(){return Date.now()-d},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(c,0))},i=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,p=window.Date,h=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var v=p.now();t.unstable_now=function(){return p.now()-v}}var y=!1,b=null,_=-1,w=5,x=0;a=function(){return t.unstable_now()>=x},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,E=k.port2;k.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();x=e+w;try{b(!0,e)?E.postMessage(null):(y=!1,b=null)}catch(e){throw E.postMessage(null),e}}else y=!1},r=function(e){b=e,y||(y=!0,E.postMessage(null))},i=function(e,n){_=h((function(){e(t.unstable_now())}),n)},o=function(){m(_),_=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<C(i,t)))break e;e[r]=t,e[n]=i,n=r}}function O(e){return void 0===(e=e[0])?null:e}function T(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>C(a,n))void 0!==l&&0>C(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>C(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var A=[],P=[],R=1,M=null,I=3,j=!1,D=!1,L=!1;function N(e){for(var t=O(P);null!==t;){if(null===t.callback)T(P);else{if(!(t.startTime<=e))break;T(P),t.sortIndex=t.expirationTime,S(A,t)}t=O(P)}}function F(e){if(L=!1,N(e),!D)if(null!==O(A))D=!0,r(B);else{var t=O(P);null!==t&&i(F,t.startTime-e)}}function B(e,n){D=!1,L&&(L=!1,o()),j=!0;var r=I;try{for(N(n),M=O(A);null!==M&&(!(M.expirationTime>n)||e&&!a());){var s=M.callback;if(null!==s){M.callback=null,I=M.priorityLevel;var l=s(M.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?M.callback=l:M===O(A)&&T(A),N(n)}else T(A);M=O(A)}if(null!==M)var u=!0;else{var c=O(P);null!==c&&i(F,c.startTime-n),u=!1}return u}finally{M=null,I=r,j=!1}}function z(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||j||(D=!0,r(B))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return O(A)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=U,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:z(e)}else a=z(e),l=s;return e={id:R++,callback:n,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,S(P,e),null===O(A)&&e===O(P)&&(L?o():L=!0,i(F,l-s))):(e.sortIndex=a,S(A,e),D||j||(D=!0,r(B))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();N(e);var n=O(A);return n!==M&&null!==M&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<M.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},function(e,t,n){"use strict";var r=n(693);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}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:i};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";
+/** @license React v16.13.1
+ * react-is.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case f:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case v:case g:case u:return e;default:return t}}case o:return t}}}function k(e){return x(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=i,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return k(e)||x(e)===d},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===l},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===u||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===_||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}n.r(t);var i=r();i.withExtraArgument=r,t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(200),i=n(404),o=n(133),a=l(n(425)),s=l(n(100));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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 f=e=>(0,a.default)((0,r.combineReducers)(c(c({},s.default),{},{notifs:o.reducer,router:(0,i.connectRouter)(e)})));t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(!t||!t.type)return e;switch(t.type){case r.NOTIF_SEND:return[t.payload].concat(i(e.filter((function(e){return e.id!==t.payload.id}))));case r.NOTIF_DISMISS:return e.filter((function(e){return e.id!==t.payload}));case r.NOTIF_CLEAR:return[];default:return e}};var r=n(420);function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=u(n(1)),o=n(61),a=u(n(701)),s=u(n(710)),l=u(n(2));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e,t){return e.get?e.get(t):e[t]},d=function(e){var t=e.notifications,n=e.className,o=e.componentClassName,l=e.CustomComponent,u=e.transitionEnterTimeout,d=e.transitionLeaveTimeout,f=t.map((function(t){return l?i.default.createElement(l,r({},e,{componentClassName:o,key:c(t,"id"),id:c(t,"id"),message:c(t,"message"),kind:c(t,"kind")})):i.default.createElement(s.default,r({},e,{componentClassName:o,key:c(t,"id"),id:c(t,"id"),message:c(t,"message"),kind:c(t,"kind")}))})),p=[o+"__container",n].join(" ").split();return i.default.createElement("div",{className:p},i.default.createElement(a.default,{transitionName:o+"-transition",transitionEnterTimeout:u,transitionLeaveTimeout:d},f))};d.defaultProps={className:null,componentClassName:"notif",CustomComponent:null,transitionEnterTimeout:600,transitionLeaveTimeout:600},d.propTypes={notifications:l.default.array.isRequired,className:l.default.string,CustomComponent:l.default.oneOfType([l.default.func,l.default.node,l.default.element]),componentClassName:l.default.string,transitionEnterTimeout:l.default.number,transitionLeaveTimeout:l.default.number},t.default=(0,o.connect)((function(e){return{notifications:e.get?e.get("notifs"):e.notifs}}))(d)},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=u(n(1)),o=u(n(2)),a=u(n(702)),s=u(n(706)),l=n(424);function u(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 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}l.nameShape.isRequired,o.default.bool,o.default.bool,o.default.bool,(0,l.transitionTimeout)("Appear"),(0,l.transitionTimeout)("Enter"),(0,l.transitionTimeout)("Leave");var f=function(e){function t(){var n,r;c(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r=d(this,e.call.apply(e,[this].concat(a))),r._wrapChild=function(e){return i.default.createElement(s.default,{name:r.props.transitionName,appear:r.props.transitionAppear,enter:r.props.transitionEnter,leave:r.props.transitionLeave,appearTimeout:r.props.transitionAppearTimeout,enterTimeout:r.props.transitionEnterTimeout,leaveTimeout:r.props.transitionLeaveTimeout},e)},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return i.default.createElement(a.default,r({},this.props,{childFactory:this._wrapChild}))},t}(i.default.Component);f.displayName="CSSTransitionGroup",f.propTypes={},f.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},t.default=f,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=l(n(703)),o=l(n(1)),a=l(n(2)),s=(l(n(704)),n(705));function l(e){return e&&e.__esModule?e:{default:e}}a.default.any,a.default.func,a.default.node;var u=function(e){function t(n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=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,e.call(this,n,i));return o.performAppear=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillAppear?t.componentWillAppear(o._handleDoneAppearing.bind(o,e,t)):o._handleDoneAppearing(e,t)},o._handleDoneAppearing=function(e,t){t.componentDidAppear&&t.componentDidAppear(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)||o.performLeave(e,t)},o.performEnter=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillEnter?t.componentWillEnter(o._handleDoneEntering.bind(o,e,t)):o._handleDoneEntering(e,t)},o._handleDoneEntering=function(e,t){t.componentDidEnter&&t.componentDidEnter(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)||o.performLeave(e,t)},o.performLeave=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillLeave?t.componentWillLeave(o._handleDoneLeaving.bind(o,e,t)):o._handleDoneLeaving(e,t)},o._handleDoneLeaving=function(e,t){t.componentDidLeave&&t.componentDidLeave(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)?o.keysToEnter.push(e):o.setState((function(t){var n=r({},t.children);return delete n[e],{children:n}}))},o.childRefs=Object.create(null),o.state={children:(0,s.getChildMapping)(n.children)},o}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.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t,this.childRefs[t])},t.prototype.componentWillReceiveProps=function(e){var t=(0,s.getChildMapping)(e.children),n=this.state.children;for(var r in this.setState({children:(0,s.mergeChildMappings)(n,t)}),t){var i=n&&n.hasOwnProperty(r);!t[r]||i||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(var o in n){var a=t&&t.hasOwnProperty(o);!n[o]||a||this.currentlyTransitioningKeys[o]||this.keysToLeave.push(o)}},t.prototype.componentDidUpdate=function(){var e=this,t=this.keysToEnter;this.keysToEnter=[],t.forEach((function(t){return e.performEnter(t,e.childRefs[t])}));var n=this.keysToLeave;this.keysToLeave=[],n.forEach((function(t){return e.performLeave(t,e.childRefs[t])}))},t.prototype.render=function(){var e=this,t=[],n=function(n){var r=e.state.children[n];if(r){var a="string"!=typeof r.ref,s=e.props.childFactory(r),l=function(t){e.childRefs[n]=t};s===r&&a&&(l=(0,i.default)(r.ref,l)),t.push(o.default.cloneElement(s,{key:n,ref:l}))}};for(var a in this.state.children)n(a);var s=r({},this.props);return delete s.transitionLeave,delete s.transitionName,delete s.transitionAppear,delete s.transitionEnter,delete s.childFactory,delete s.transitionLeaveTimeout,delete s.transitionEnterTimeout,delete s.transitionAppearTimeout,delete s.component,o.default.createElement(this.props.component,s,t)},t}(o.default.Component);u.displayName="TransitionGroup",u.propTypes={},u.defaultProps={component:"span",childFactory:function(e){return e}},t.default=u,e.exports=t.default},function(e,t){e.exports=function(){for(var e=arguments.length,t=[],n=0;n<e;n++)t[n]=arguments[n];if(0!==(t=t.filter((function(e){return null!=e}))).length)return 1===t.length?t[0]:t.reduce((function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}))}},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=function(e){if(!e)return e;var t={};return r.Children.map(e,(function(e){return e})).forEach((function(e){t[e.key]=e})),t},t.mergeChildMappings=function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},i=[];for(var o in e)t.hasOwnProperty(o)?i.length&&(r[o]=i,i=[]):i.push(o);var a=void 0,s={};for(var l in t){if(r.hasOwnProperty(l))for(a=0;a<r[l].length;a++){var u=r[l][a];s[r[l][a]]=n(u)}s[l]=n(l)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s};var r=n(1)},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=f(n(421)),o=f(n(422)),a=f(n(708)),s=n(709),l=f(n(1)),u=f(n(2)),c=n(49),d=n(424);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 m=[];s.transitionEnd&&m.push(s.transitionEnd),s.animationEnd&&m.push(s.animationEnd);u.default.node,d.nameShape.isRequired,u.default.bool,u.default.bool,u.default.bool,u.default.number,u.default.number,u.default.number;var g=function(e){function t(){var n,r;p(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=h(this,e.call.apply(e,[this].concat(o))),r.componentWillAppear=function(e){r.props.appear?r.transition("appear",e,r.props.appearTimeout):e()},r.componentWillEnter=function(e){r.props.enter?r.transition("enter",e,r.props.enterTimeout):e()},r.componentWillLeave=function(e){r.props.leave?r.transition("leave",e,r.props.leaveTimeout):e()},h(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach((function(e){clearTimeout(e)})),this.classNameAndNodeQueue.length=0},t.prototype.transition=function(e,t,n){var r=(0,c.findDOMNode)(this);if(r){var a=this.props.name[e]||this.props.name+"-"+e,l=this.props.name[e+"Active"]||a+"-active",u=null,d=void 0;(0,i.default)(r,a),this.queueClassAndNode(l,r);var f=function(e){e&&e.target!==r||(clearTimeout(u),d&&d(),(0,o.default)(r,a),(0,o.default)(r,l),d&&d(),t&&t())};n?(u=setTimeout(f,n),this.transitionTimeouts.push(u)):s.transitionEnd&&(d=function(e,t){return m.length?m.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){m.length&&m.forEach((function(n){return e.removeEventListener(n,t,!1)}))}}(r,f))}else t&&t()},t.prototype.queueClassAndNode=function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=(0,a.default)((function(){return n.flushClassNameAndNodeQueue()})))},t.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,(0,i.default)(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null},t.prototype.render=function(){var e=r({},this.props);return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,l.default.cloneElement(l.default.Children.only(this.props.children),e)},t}(l.default.Component);g.displayName="CSSTransitionGroupChild",g.propTypes={},t.default=g,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";var r=n(311);t.__esModule=!0,t.default=void 0;var i,o=r(n(423)),a="clearTimeout",s=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-u)),r=setTimeout(e,n);return u=t,r},l=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};o.default&&["","webkit","moz","o","ms"].some((function(e){var t=l(e,"request");if(t in window)return a=l(e,"cancel"),s=function(e){return window[t](e)}}));var u=(new Date).getTime();(i=function(e){return s(e)}).cancel=function(e){window[a]&&"function"==typeof window[a]&&window[a](e)};var c=i;t.default=c,e.exports=t.default},function(e,t,n){"use strict";var r=n(311);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var i,o,a,s,l,u,c,d,f,p,h,m=r(n(423)),g="transform";if(t.transform=g,t.animationEnd=a,t.transitionEnd=o,t.transitionDelay=c,t.transitionTiming=u,t.transitionDuration=l,t.transitionProperty=s,t.animationDelay=h,t.animationTiming=p,t.animationDuration=f,t.animationName=d,m.default){var v=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},i=Object.keys(r),o="",a=0;a<i.length;a++){var s=i[a];if(s+"TransitionProperty"in n){o="-"+s.toLowerCase(),e=r[s]("TransitionEnd"),t=r[s]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:o}}();i=v.prefix,t.transitionEnd=o=v.transitionEnd,t.animationEnd=a=v.animationEnd,t.transform=g=i+"-"+g,t.transitionProperty=s=i+"-transition-property",t.transitionDuration=l=i+"-transition-duration",t.transitionDelay=c=i+"-transition-delay",t.transitionTiming=u=i+"-transition-timing-function",t.animationName=d=i+"-animation-name",t.animationDuration=f=i+"-animation-duration",t.animationTiming=p=i+"-animation-delay",t.animationDelay=h=i+"-animation-timing-function"}var y={transform:g,end:o,property:s,timing:u,delay:c,duration:l};t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(1)),i=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=e.kind,n=e.componentClassName,i=e.actionLabel,o=e.onActionClick,a=e.id,s=e.message;return r.default.createElement("div",{className:n+" "+n+"--"+t},r.default.createElement("div",{className:n+"__icon"}),r.default.createElement("div",{className:n+"__content"},r.default.createElement("span",{className:n+"__message"},s)),i&&r.default.createElement("span",{className:n+"__action"},r.default.createElement("button",{onClick:function(e){e.preventDefault(),o&&o(a)}},i)),r.default.createElement("div",{className:n+"__close"}))};a.defaultProps={kind:"info"},a.propTypes={id:i.default.oneOfType([i.default.string,i.default.number]).isRequired,message:i.default.node.isRequired,kind:i.default.oneOf(["success","info","warning","danger"]).isRequired,componentClassName:i.default.string,onActionClick:i.default.func,actionLabel:i.default.string},t.default=a},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var i=[];function o(e,t){return e.optimist&&e.optimist.id===t}function a(e,t){if(!e||"object"!=typeof e||Array.isArray(e))throw new TypeError('Error while handling "'+t.type+'": Optimist requires that state is always a plain object.')}function s(e){if(e){var t=e.optimist;return{optimist:void 0===t?i:t,innerState:function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["optimist"])}}return{optimist:i,innerState:e}}e.exports=function(e){function t(t,n,i){return t.length&&(t=t.concat([{action:i}])),a(n=e(n,i),i),r({optimist:t},n)}return function(n,i){if(i.optimist)switch(i.optimist.type){case"BEGIN":return function(t,n){var i=s(t),o=i.optimist,l=i.innerState;return o=o.concat([{beforeState:l,action:n}]),a(l=e(l,n),n),r({optimist:o},l)}(n,i);case"COMMIT":return function(e,n){var r=s(e),i=r.optimist,a=r.innerState,l=[],u=!1,c=!1;return i.forEach((function(e){u?e.beforeState&&o(e.action,n.optimist.id)?(c=!0,l.push({action:e.action})):l.push(e):e.beforeState&&!o(e.action,n.optimist.id)?(u=!0,l.push(e)):e.beforeState&&o(e.action,n.optimist.id)&&(c=!0)})),c||console.error('Cannot commit transaction with id "'+n.optimist.id+'" because it does not exist'),t(i=l,a,n)}(n,i);case"REVERT":return function(n,r){var i=s(n),l=i.optimist,u=i.innerState,c=[],d=!1,f=!1,p=u;return l.forEach((function(t){t.beforeState&&o(t.action,r.optimist.id)&&(p=t.beforeState,f=!0),o(t.action,r.optimist.id)||(t.beforeState&&(d=!0),d&&(f&&t.beforeState?c.push({beforeState:p,action:t.action}):c.push(t)),f&&(p=e(p,t.action),a(u,r)))})),f||console.error('Cannot revert transaction with id "'+r.optimist.id+'" because it does not exist'),t(l=c,p,r)}(n,i)}var l=s(n),u=l.optimist,c=l.innerState;if(n&&!u.length){var d=e(c,i);return d===c?n:(a(d,i),r({optimist:u},d))}return t(u,c,i)}},e.exports.BEGIN="BEGIN",e.exports.COMMIT="COMMIT",e.exports.REVERT="REVERT"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(4))&&r.__esModule?r:{default:r},o=n(208);var a=(e=null,t)=>{switch(t.type){case o.AUTH_REQUEST:return i.default.Map({isFetching:!0});case o.AUTH_SUCCESS:return i.default.fromJS({user:t.payload});case o.AUTH_FAILURE:return i.default.Map({error:t.payload&&t.payload.toString()});case o.AUTH_REQUEST_DONE:return e.remove("isFetching");case o.LOGOUT:return e.remove("user").remove("isFetching");default:return e}};t.default=a},function(e,t,n){var r=n(180),i=n(716),o=n(76),a=n(430),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:s).test(a(e))}},function(e,t,n){var r=n(181),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,i=n(717),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(75)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(720);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(314);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(722),i=n(242),o=n(315);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(723),i=n(724),o=n(725),a=n(726),s=n(727);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(241);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(241),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(241),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(241);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(243),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(243);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(243);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(243);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(244);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(244);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(244);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(244);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(181),i=n(213),o=n(44),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(101),i=n(69);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(741),i=n(760),o=n(444);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(246),i=n(316);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=n[a])[0],d=e[c],f=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var p=new r;if(o)var h=o(d,f,c,e,t,p);if(!(void 0===h?i(f,d,3,o,p):h))return!1}}return!0}},function(e,t,n){var r=n(242);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(242),i=n(315),o=n(314);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(246),i=n(433),o=n(751),a=n(753),s=n(185),l=n(44),u=n(214),c=n(249),d="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,p,h,m){var g=l(e),v=l(t),y=g?"[object Array]":s(e),b=v?"[object Array]":s(t),_=(y="[object Arguments]"==y?d:y)==d,w=(b="[object Arguments]"==b?d:b)==d,x=y==b;if(x&&u(e)){if(!u(t))return!1;g=!0,_=!1}if(x&&!_)return m||(m=new r),g||c(e)?i(e,t,n,p,h,m):o(e,t,y,n,p,h,m);if(!(1&n)){var k=_&&f.call(e,"__wrapped__"),E=w&&f.call(t,"__wrapped__");if(k||E){var S=k?e.value():e,O=E?t.value():t;return m||(m=new r),h(S,O,n,p,m)}}return!!x&&(m||(m=new r),a(e,t,n,p,h,m))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(181),i=n(434),o=n(209),a=n(433),s=n(752),l=n(317),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,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 i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var g=a(p(e),p(t),r,u,d,f);return f.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t,n){var r=n(435),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var f=u[d];if(!(l?f in t:i.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<c;){var v=e[f=u[d]],y=t[f];if(o)var b=l?o(y,v,f,t,e,s):o(v,y,f,e,t,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(e),s.delete(t),m}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(101),i=n(319),o=n(69),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(440)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(153)(n(75),"DataView");e.exports=r},function(e,t,n){var r=n(153)(n(75),"Promise");e.exports=r},function(e,t,n){var r=n(443),i=n(184);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},function(e,t,n){var r=n(316),i=n(82),o=n(445),a=n(313),s=n(443),l=n(444),u=n(134);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(447),i=n(764),o=n(313),a=n(134);e.exports=function(e){return o(e)?r(a(e)):i(e)}},function(e,t,n){var r=n(210);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},function(e,t,n){var r=n(136);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(769);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,l=n.length;++i<s;){var u=r(o[i],a[i]);if(u)return i>=l?u:u*("desc"==n[i]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(182);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!u)return-1}return 0}},function(e,t,n){var r=n(771),i=n(428),o=n(215),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),c="(?:"+[o+r+"?",r,a,s,n].join("|")+")",d=RegExp(i+"(?="+i+")|"+c+u,"g");e.exports=function(e){return e.match(d)||[]}},function(e,t,n){var r=n(441),i=n(458),o=n(317),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),a=r[0],s=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(c(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*m}},function(e,t,n){"use strict";t.parse=n(780),t.stringify=n(801)},function(e,t,n){"use strict";e.exports=n(781),e.exports.async=n(787),e.exports.stream=n(789),e.exports.prettyError=n(332)},function(e,t,n){"use strict";(function(t){e.exports=function(e){t.Buffer&&t.Buffer.isBuffer(e)&&(e=e.toString("utf8"));const n=new r;try{return n.parse(e),n.finish()}catch(t){throw i(t,e)}};const r=n(330),i=n(332)}).call(this,n(43))},function(e,t,n){"use strict";class r extends Error{constructor(e,t,n){super("[ParserError] "+e,t,n),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,r)}}class i{constructor(e){this.parser=e,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}}class o{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new i(this.parseStart)}parse(e){if(0===e.length||null==e.length)return;let t;for(this._buf=String(e),this.ii=-1,this.char=-1;!1===t||this.nextChar();)t=this.runOne();this._buf=null}nextChar(){return 10===this.char&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii<this._buf.length}runOne(){return this.state.parser.call(this,this.state.returned)}finish(){let e;this.char=1114112;do{e=this.state.parser,this.runOne()}while(this.state.parser!==e);return this.ctx=null,this.state=null,this._buf=null,this.obj}next(e){if("function"!=typeof e)throw new r("Tried to set state to non-existent state: "+JSON.stringify(e));this.state.parser=e}goto(e){return this.next(e),this.runOne()}call(e,t){t&&this.next(t),this.stack.push(this.state),this.state=new i(e)}callNow(e,t){return this.call(e,t),this.runOne()}return(e){if(0===this.stack.length)throw this.error(new r("Stack underflow"));void 0===e&&(e=this.state.buf),this.state=this.stack.pop(),this.state.returned=e}returnNow(e){return this.return(e),this.runOne()}consume(){if(1114112===this.char)throw this.error(new r("Unexpected end-of-buffer"));this.state.buf+=this._buf[this.ii]}error(e){return e.line=this.line,e.col=this.col,e.pos=this.pos,e}parseStart(){throw new r("Must declare a parseStart method")}}o.END=1114112,o.Error=r,e.exports=o},function(e,t,n){"use strict";e.exports=e=>{const t=new Date(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},function(e,t,n){"use strict";const r=n(331);class i extends Date{constructor(e){super(e+"Z"),this.isFloating=!0}toISOString(){return`${`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}`}T${`${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`}`}}e.exports=e=>{const t=new i(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},function(e,t,n){"use strict";(function(t){const r=n(331),i=t.Date;class o extends i{constructor(e){super(e),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}`}}e.exports=e=>{const t=new o(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}}).call(this,n(43))},function(e,t,n){"use strict";const r=n(331);class i extends Date{constructor(e){super(`0000-01-01T${e}Z`),this.isTime=!0}toISOString(){return`${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`}}e.exports=e=>{const t=new i(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},function(e,t,n){"use strict";(function(t){e.exports=function(e,n){n||(n={});const o=n.blocksize||40960,a=new r;return new Promise((e,n)=>{t(s,0,o,e,n)});function s(n,r,o,l){if(n>=e.length)try{return o(a.finish())}catch(t){return l(i(t,e))}try{a.parse(e.slice(n,n+r)),t(s,n+r,r,o,l)}catch(t){l(i(t,e))}}};const r=n(330),i=n(332)}).call(this,n(465).setImmediate)},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,l=1,u={},c=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return u[l]=i,r(l),l++},f.clearImmediate=p}function p(e){delete u[e]}function h(e){if(c)setTimeout(h,0,e);else{var t=u[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(43),n(70))},function(e,t,n){"use strict";e.exports=function(e){return e?function(e){const t=new i;return e.setEncoding("utf8"),new Promise((n,r)=>{let i,o=!1,a=!1;function s(){if(o=!0,!i)try{n(t.finish())}catch(e){r(e)}}function l(e){a=!0,r(e)}e.once("end",s),e.once("error",l),function n(){let r;i=!0;for(;null!==(r=e.read());)try{t.parse(r)}catch(e){return l(e)}if(i=!1,o)return s();if(a)return;e.once("readable",n)}()})}(e):function(){const e=new i;return new r.Transform({objectMode:!0,transform(t,n,r){try{e.parse(t.toString(n))}catch(e){this.emit("error",e)}r()},flush(t){try{this.push(e.finish())}catch(e){this.emit("error",e)}t()}})}()};const r=n(790),i=n(330)},function(e,t,n){e.exports=i;var r=n(333).EventEmitter;function i(){r.call(this)}n(158)(i,r),i.Readable=n(334),i.Writable=n(797),i.Duplex=n(798),i.Transform=n(799),i.PassThrough=n(800),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},function(e,t){},function(e,t,n){"use strict";var r=n(335).Buffer,i=n(793);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i,o=r.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=o,i=s,t.copy(n,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(43))},function(e,t,n){
+/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
+var r=n(157),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";e.exports=o;var r=n(470),i=Object.create(n(218));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(158),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(336)},function(e,t,n){e.exports=n(159)},function(e,t,n){e.exports=n(334).Transform},function(e,t,n){e.exports=n(334).PassThrough},function(e,t,n){"use strict";function r(e){return new Error("Can only stringify objects, not "+e)}function i(e){return Object.keys(e).filter(t=>s(e[t]))}function o(e){let t=Array.isArray(e)?[]:Object.prototype.hasOwnProperty.call(e,"__proto__")?{["__proto__"]:void 0}:{};for(let n of Object.keys(e))e[n]&&"function"==typeof e[n].toJSON&&!("toISOString"in e[n])?t[n]=e[n].toJSON():t[n]=e[n];return t}function a(e,t,n){var c,d;c=i(n=o(n)),d=function(e){return Object.keys(e).filter(t=>!s(e[t]))}(n);var p=[],h=t||"";c.forEach(e=>{var t=l(n[e]);"undefined"!==t&&"null"!==t&&p.push(h+u(e)+" = "+f(n[e],!0))}),p.length>0&&p.push("");var g=e&&c.length>0?t+" ":"";return d.forEach(t=>{p.push(function(e,t,n,s){var c=l(s);if("array"===c)return function(e,t,n,i){m(i=o(i));var s=l(i[0]);if("table"!==s)throw r(s);var c=e+u(n),d="";return i.forEach(e=>{d.length>0&&(d+="\n"),d+=t+"[["+c+"]]\n",d+=a(c+".",t,e)}),d}(e,t,n,s);if("table"===c)return function(e,t,n,r){var o=e+u(n),s="";i(r).length>0&&(s+=t+"["+o+"]\n");return s+a(o+".",t,r)}(e,t,n,s);throw r(c)}(e,g,t,n[t]))}),p.join("\n")}function s(e){switch(l(e)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return 0===e.length||"table"!==l(e[0]);case"table":return 0===Object.keys(e).length;default:return!1}}function l(e){return void 0===e?"undefined":null===e?"null":"bigint"==typeof e||Number.isInteger(e)&&!Object.is(e,-0)?"integer":"number"==typeof e?"float":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"toISOString"in e?isNaN(e)?"undefined":"datetime":Array.isArray(e)?"array":"table"}function u(e){var t=String(e);return/^[-A-Za-z0-9_]+$/.test(t)?t:c(t)}function c(e){return'"'+d(e).replace(/"/g,'\\"')+'"'}function d(e){return e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,e=>"\\u"+function(e,t){for(;t.length<e;)t="0"+t;return t}(4,e.codePointAt(0).toString(16)))}function f(e,t){let n=l(e);return"string"===n&&(t&&/\n/.test(e)?n="string-multiline":!/[\b\t\n\f\r']/.test(e)&&/"/.test(e)&&(n="string-literal")),p(e,n)}function p(e,t){switch(t||(t=l(e)),t){case"string-multiline":return function(e){let t=e.split(/\n/).map(e=>d(e).replace(/"(?="")/g,'\\"')).join("\n");return'"'===t.slice(-1)&&(t+="\\\n"),'"""\n'+t+'"""'}(e);case"string":return c(e);case"string-literal":return"'"+e+"'";case"integer":return h(e);case"float":return function(e){if(e===1/0)return"inf";if(e===-1/0)return"-inf";if(Object.is(e,NaN))return"nan";if(Object.is(e,-0))return"-0.0";var t=String(e).split("."),n=t[0],r=t[1]||0;return h(n)+"."+r}(e);case"boolean":return function(e){return String(e)}(e);case"datetime":return function(e){return e.toISOString()}(e);case"array":return function(e){const t=m(e=o(e));var n="[",r=e.map(e=>p(e,t));r.join(", ").length>60||/\n/.test(r)?n+="\n "+r.join(",\n ")+"\n":n+=" "+r.join(", ")+(r.length>0?" ":"");return n+"]"}(e.filter(e=>"null"!==l(e)&&"undefined"!==l(e)&&"nan"!==l(e)));case"table":return function(e){e=o(e);var t=[];return Object.keys(e).forEach(n=>{t.push(u(n)+" = "+f(e[n],!1))}),"{ "+t.join(", ")+(t.length>0?" ":"")+"}"}(e);default:throw r(t)}}function h(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}function m(e){const t=function(e){var t=l(e[0]);return e.every(e=>l(e)===t)?t:e.every(e=>{return"float"===(t=l(e))||"integer"===t;var t})?"float":"mixed"}(e);if("mixed"===t)throw new Error("Array values can't have mixed types");return t}e.exports=function(e){if(null===e)throw r("null");if(void 0===e)throw r("undefined");if("object"!=typeof e)throw r(typeof e);"function"==typeof e.toJSON&&(e=e.toJSON());if(null==e)return null;const t=l(e);if("table"!==t)throw r(t);return a("","",e)},e.exports.value=p},function(e,t,n){(function(e){var n;(function(){"use strict";var r=function(e,t){if(0===e.length)return"";for(var n="",r=0,i=e.length;r<i;r++)if(a(e[r])&&e[r])n+=(n?".":"")+m(e[r]);else{if(!s(e[r]))return!1;t||(n+=(n?".":"")+"["+e[r]+"]")}return n||!1},i=function(e,t){return(r(e)||"<root>")+": "+t},o=function(e){return Object.prototype.toString.call(e)};o.Boolean=o(!1),o.String=o(""),o.Number=o(0),o.Array=o([]),o.Date=o(new Date(0));var a=function(e){return"string"==typeof e},s=function(e){return"number"==typeof e},l=Array.isArray||function(e){return o(e)===o.Array},u=function(e){return null!==e&&"object"==typeof e&&!(l(e)||function(e){return o(e)===o.Date}(e))},c=function(e){if(e.length<1)return!1;for(var t=0,n=e.length;t<n;t++)if(u(e[t]))return!0;return!1},d=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f=function(e,t,n){return"object"==typeof JSON&&JSON?JSON.stringify(n):'"'+String(n).replace(/[\x00-\x1F"\\]/g,(function(e){switch(e){case'"':case"\\":return"\\"+e;case"\t":return"\\t";case"\n":return"\\n";case"\r":return"\\r";case"\b":return"\\b";case"\f":return"\\f";default:var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substr(t.length)+t}}))+'"'},p=function(e,t,n){if(function(e){if(e.length<2)return!1;for(var t=o(e[0]),n=1,r=e.length;n<r;n++)if(null!=e[n]&&o(e[n])!==t)return!0;return!1}(n))throw new Error(i(e.path,"Array cannot contain values of different types."));var r=e.table;e.table=n;var s=[],l=e.inPair;c(n)&&(e.inPair=!0);for(var u=0,d=n.length;u<d;u++){e.path.push(u);var f=h(e,u,n[u]);a(f)&&s.push(f),e.path.pop()}return e.inPair=l,e.table=r,!e.inPair&&s.length>0&&e.space?"[\n"+w(s.join(",\n"),1,e.space)+"\n]":"["+s.join(", ")+"]"},h=function(e,t,n){if(e.replace){var r=e.replace.call(v(e),t,n);if(a(r))return r;if(null==r)return null;if(!1!==r)throw new Error(i(e.path,"Replacer must return a string, false, null or undefined."))}switch(o(n)){case o.Boolean:return function(e,t,n){return n?"true":"false"}(0,0,n);case o.String:return f(0,0,n);case o.Number:return function(e,t,n){if(!isFinite(n))throw new Error(i(e.path,"Number must be finite."));var r;return r=(r=(Number.isInteger?Number.isInteger(n):Math.floor(n)===n)?n.toFixed(1):String(n)).replace(/([eE])(\d)/,"$1+$2"),/[.eE]/.test(r)?r:r+".0"}(e,0,n);case o.Array:return p(e,0,n);case o.Date:return function(e,t,n){if(!isFinite(n.getTime()))throw new Error(i(e.path,"Invalid Date"));return n.toISOString()}(e,0,n);default:return null==n?null:function(e,t,n){var r=e.table;e.table=n;var o=e.inPair;e.inPair=!0;var s=[],l=Object.keys(n);e.sort&&l.sort(e.sort);for(var u=0,c=l.length;u<c;u++){var f=l[u];if(d(n,f)&&null!=n[f]){if(!f)throw new Error(i(e.path,"Key cannot be an empty string."));e.path.push(f);var p=h(e,f,n[f]);a(p)&&s.push(m(f)+" = "+p),e.path.pop()}}return e.inPair=o,e.table=r,"{"+s.join(", ")+"}"}(e,0,n)}},m=function(e){return!!e&&(/^[a-zA-Z0-9\-_]+$/.test(e)?e:f(0,0,e))},g=function(e,t,n){var r=m(t);if(!r)throw new Error(i(e.path,"Key cannot be an empty string."));var o=h(e,t,n);return a(o)?r+" = "+o:null},v=function(e){return{path:e.path.slice(0),table:e.table}},y=function(e,t,n){if(e.replace){var r=e.replace.call(v(e),t,n);if(a(r))return m(t)+" = "+r;if(null==r)return null;if(!1!==r)throw new Error(i(e.path,"Replacer must return a string, false, null or undefined."))}return!1},b=function(e,t,n,r){var i;if(!(e.replace&&0===e.path.length&&(i=y(e,t,n),a(i)&&e.lines.push(i),!1!==i)||r(e,t,n))){var o=e.table;if(e.table=n,l(n)){var s=e.inTableArray;e.inTableArray=c(n);for(var f=0,p=n.length;f<p;f++)e.path.push(f),b(e,f,n[f],r),e.path.pop();e.inTableArray=s}else if(u(n)){s=e.inTableArray;e.inTableArray=!1;var h=[],m=Object.keys(n);e.sort&&m.sort(e.sort);for(f=0,p=m.length;f<p;f++){var v=m[f];if(d(n,v)){var _=n[v],x=e.path.length>0&&(l(_)?c(_):u(_));l(_)&&c(_)?h.push([!0,v,_,x]):u(_)?h.push([!1,v,_,x]):(e.path.push(v),b(e,v,_,r),e.path.pop())}}if(m=null,e.replace)for(f=0,p=h.length;f<p;f++){if((o=h[f])[0]){if(e.path.push(o[1]),!1!==(i=y(e,o[1],o[2]))){a(i)&&e.lines.push(w(i,e.level,e.space)),o[2]=null,e.path.pop();continue}var k=o[2],E=0;for(v=k.length;E<v;E++){var S=k[E];if(e.path.push(E),i=y(e,E,S),e.path.pop(),!1!==i){if(null==i){k[E]=null;continue}i=g(e,o[1],o[2]),a(i)&&e.lines.push(w(i,e.level,e.space)),o[2]=null;break}}e.path.pop()}else e.path.push(o[1]),!1!==(i=y(e,o[1],o[2]))&&(a(i)&&e.lines.push(w(i,e.level,e.space)),o[2]=null),e.path.pop()}for(f=0,p=h.length;f<p;f++){null!=(o=h[f])[2]&&(e.path.push(o[1]),o[3]&&e.level++,b(e,o[1],o[2],r),o[3]&&e.level--,e.path.pop())}e.inTableArray=s}e.table=o}},_=function(e,t){if(e.repeat)return e.repeat(t);for(var n="",r="";t>0;)r+=r||e,1&t&&(n+=r),t>>>=1;return n},w=function(e,t,n){var r=_(n,t);return e.replace(/^(?!$)/gm,r)},x=function(e){return a(e)?e:s(e)&&e>=0&&isFinite(e)&&Math.floor(e)===e?_(" ",e):""},k=function(e,t){if(null==e)throw new Error("Undefined or null cannot be stringified.");if(function(e){var t=function(e,n){if(!l(e)&&!u(e))return!1;if(-1!==n.indexOf(e))return!0;for(var r in n.push(e),e)if(d(e,r)){var i=n.length;if(t(e[r],n))return!0;n.splice(i)}return!1};return t(e,[])}(e))throw new Error("Converting circular structure to TOML.");if(null!=t&&"object"!=typeof t)throw new Error("Options must be an object.");if(null!=t.replace&&"function"!=typeof t.replace)throw new Error("Replacer must be a function.");if(null!=t.sort&&"function"!=typeof t.sort)throw new Error("Compare function for sorting must be a function.")},E={};E.toToml=function(e,t){if(!u(e))throw new Error("An object other than Array or Date is expected.");return k(e,t=null!=t?t:{}),function(e,t){var n=[];return b({path:[],table:{"":e},inPair:!1,inTableArray:!1,replace:t.replace,sort:t.sort,level:0,space:x(t.space),lines:n},"",e,(function(e,t,i){var o=null;if(u(i))""!==t&&(n.length>0&&n.push(""),o=e.inTableArray?"[["+r(e.path,!0)+"]]":"["+r(e.path,!0)+"]",n.push(w(o,e.level,e.space)));else{if(!l(i))return a(t)&&(o=g(e,t,i),a(o)&&n.push(w(o,e.level,e.space))),!0;if(!a(t))return!0;c(i)||(o=g(e,t,i),a(o)&&n.push(w(o,e.level,e.space)))}})),n.join("\n")}(e,t)},E.toKey=function(e,t){if(a(e)){if(!(n=m(e)))throw new Error("Key cannot be an empty string.");return n}if(l(e)){var n;if(!1===(n=r(e,t)))throw new Error("Key path must consist of non-empty string(s).");return n}throw new Error("Invalid Arguments for tomlify.toKey({String | Array})")},E.toValue=function(e,t){return k(e,t=null!=t?t:{}),function(e,t){return h({path:[],table:{"":e},inPair:!1,inTableArray:!1,sort:t.sort,replace:t.replace,level:0,space:x(t.space)},"",e)}(e,t)},null!=(null!==e?e.exports:void 0)?e.exports=E:void 0===(n=function(){return E}.apply(t,[]))||(e.exports=n)}).call(this)}).call(this,n(135)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.frontmatterJSON=t.frontmatterTOML=t.frontmatterYAML=t.FrontmatterInfer=t.getFormatOpts=void 0;var r=s(n(804)),i=s(n(464)),o=s(n(461)),a=s(n(471));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}const f={toml:{parse:e=>i.default.fromFile(e),stringify:(e,{sortedKeys:t})=>i.default.toFile(e,t)},json:{parse:e=>{let t=e.trim();return"{"!==t.substr(0,1)&&(t="{"+t),"}"!==t.substr(-1)&&(t+="}"),a.default.fromFile(t)},stringify:(e,{sortedKeys:t})=>{let n=a.default.toFile(e,t).trim();return"{"===n.substr(0,1)&&"}"===n.substr(-1)&&(n=n.substring(1,n.length-1)),n}},yaml:{parse:e=>o.default.fromFile(e),stringify:(e,{sortedKeys:t,comments:n})=>o.default.toFile(e,t,n)}};const p=e=>({yaml:{language:"yaml",delimiters:"---"},toml:{language:"toml",delimiters:"+++"},json:{language:"json",delimiters:["{","}"]}}[e]);t.getFormatOpts=p;class h{constructor(e,t){this.format=p(e),this.customDelimiter=t}fromFile(e){const t=this.format||function(e){const t=e.substr(0,e.indexOf("\n")).trim();if(!(t.length>3&&"---"===t.substr(0,3)))switch(t){case"---":return p("yaml");case"+++":return p("toml");case"{":return p("json");default:console.warn("Unrecognized front-matter format.")}}(e);this.customDelimiter&&(this.format.delimiters=this.customDelimiter);const n=(0,r.default)(e,c({engines:f},t));return c(c({},n.data),n.content.trim()&&{body:n.content})}toFile(e,t,n={}){const{body:i=""}=e,o=l(e,["body"]),a=this.format||p("yaml");this.customDelimiter&&(this.format.delimiters=this.customDelimiter);const s="\n"!==i.slice(-1),u=r.default.stringify(i,o,c({engines:f,sortedKeys:t,comments:n},a));return s&&"\n"===u.slice(-1)?u.substring(0,u.length-1):u}}const m=new h;t.FrontmatterInfer=m;t.frontmatterYAML=e=>new h("yaml",e);t.frontmatterTOML=e=>new h("toml",e);t.frontmatterJSON=e=>new h("json",e)},function(e,t,n){"use strict";const r=n(805),i=n(806),o=n(260),a=n(475),s=n(831),l=n(472),u=n(832),c=n(833),d=n(338);function f(e,t){if(""===e)return{data:{},content:e,excerpt:"",orig:e};let n=u(e);const r=f.cache[n.content];if(!t){if(r)return n=Object.assign({},r),n.orig=r.orig,n;f.cache[n.content]=n}return function(e,t){const n=o(t),r=n.delimiters[0],a="\n"+n.delimiters[1];let l=e.content;n.language&&(e.language=n.language);const u=r.length;if(!d.startsWith(l,r,u))return s(e,n),e;if(l.charAt(u)===r.slice(-1))return e;l=l.slice(u);const p=l.length,h=f.language(l,n);h.name&&(e.language=h.name,l=l.slice(h.raw.length));let m=l.indexOf(a);-1===m&&(m=p);e.matter=l.slice(0,m);""===e.matter.replace(/^\s*#[^\n]+/gm,"").trim()?(e.isEmpty=!0,e.empty=e.content,e.data={}):e.data=c(e.language,e.matter,n);m===p?e.content="":(e.content=l.slice(m+a.length),"\r"===e.content[0]&&(e.content=e.content.slice(1)),"\n"===e.content[0]&&(e.content=e.content.slice(1)));s(e,n),(!0===n.sections||"function"==typeof n.section)&&i(e,n.section);return e}(n,t)}f.engines=l,f.stringify=function(e,t,n){return"string"==typeof e&&(e=f(e,n)),a(e,t,n)},f.read=function(e,t){const n=f(r.readFileSync(e,"utf8"),t);return n.path=e,n},f.test=function(e,t){return d.startsWith(e,o(t).delimiters[0])},f.language=function(e,t){const n=o(t).delimiters[0];f.test(e)&&(e=e.slice(n.length));const r=e.slice(0,e.search(/\r?\n/));return{raw:r,name:r?r.trim():""}},f.cache={},f.clearCache=()=>f.cache={},e.exports=f},function(e,t){},function(e,t,n){"use strict";var r=n(259),i=n(807);function o(e,t){return e.slice(0,t.length)===t&&e.charAt(t.length+1)!==t.slice(-1)}function a(e){return e}e.exports=function(e,t){"function"==typeof t&&(t={parse:t});var n=function(e){"object"!==r(e)&&(e={content:e});if("string"!=typeof e.content&&!function(e){if(e&&e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e.content))throw new TypeError("expected a buffer or string");return e.content=e.content.toString(),e.sections=[],e}(e),s=i({},{section_delimiter:"---",parse:a},t),l=s.section_delimiter,u=n.content.split(/\r?\n/),c=null,d={key:"",data:"",content:""},f=[],p=[];function h(e){n.content=e,c=[],f=[]}function m(e){p.length&&(d.key=function(e,t){return e?e.slice(t.length).trim():""}(p[0],l),d.content=e,s.parse(d,c),c.push(d),d={key:"",data:"",content:""},f=[],p=[])}for(var g=0;g<u.length;g++){var v=u[g],y=p.length,b=v.trim();if(o(b,l)){if(3===b.length&&0!==g){if(0===y||2===y){f.push(v);continue}p.push(b),d.data=f.join("\n"),f=[];continue}null===c&&h(f.join("\n")),2===y&&m(f.join("\n")),p.push(b)}else f.push(v)}return null===c?h(f.join("\n")):m(f.join("\n")),n.sections=c,n}},function(e,t,n){"use strict";var r=n(808);function i(e,t){for(var n in t)o(t,n)&&(e[n]=t[n])}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e){r(e)||(e={});for(var t=arguments.length,n=1;n<t;n++){var o=arguments[n];r(o)&&i(e,o)}return e}},function(e,t,n){"use strict";
+/*!
+ * is-extendable <https://github.com/jonschlinkert/is-extendable>
+ *
+ * Copyright (c) 2015, Jon Schlinkert.
+ * Licensed under the MIT License.
+ */e.exports=function(e){return null!=e&&("object"==typeof e||"function"==typeof e)}},function(e,t,n){"use strict";var r=n(810);e.exports=r},function(e,t,n){"use strict";var r=n(811),i=n(829);function o(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=n(59),e.exports.Schema=n(187),e.exports.FAILSAFE_SCHEMA=n(337),e.exports.JSON_SCHEMA=n(474),e.exports.CORE_SCHEMA=n(473),e.exports.DEFAULT_SAFE_SCHEMA=n(221),e.exports.DEFAULT_FULL_SCHEMA=n(261),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.safeLoad=r.safeLoad,e.exports.safeLoadAll=r.safeLoadAll,e.exports.dump=i.dump,e.exports.safeDump=i.safeDump,e.exports.YAMLException=n(220),e.exports.MINIMAL_SCHEMA=n(337),e.exports.SAFE_SCHEMA=n(221),e.exports.DEFAULT_SCHEMA=n(261),e.exports.scan=o("scan"),e.exports.parse=o("parse"),e.exports.compose=o("compose"),e.exports.addConstructor=o("addConstructor")},function(e,t,n){"use strict";var r=n(186),i=n(220),o=n(812),a=n(221),s=n(261),l=Object.prototype.hasOwnProperty,u=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=/[\x85\u2028\u2029]/,d=/[,\[\]\{\}]/,f=/^(?:!|!!|![a-z\-]+!)$/i,p=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function h(e){return Object.prototype.toString.call(e)}function m(e){return 10===e||13===e}function g(e){return 9===e||32===e}function v(e){return 9===e||32===e||10===e||13===e}function y(e){return 44===e||91===e||93===e||123===e||125===e}function b(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function _(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function w(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var x=new Array(256),k=new Array(256),E=0;E<256;E++)x[E]=_(E)?1:0,k[E]=_(E);function S(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||s,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function O(e,t){return new i(t,new o(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function T(e,t){throw O(e,t)}function C(e,t){e.onWarning&&e.onWarning.call(null,O(e,t))}var A={YAML:function(e,t,n){var r,i,o;null!==e.version&&T(e,"duplication of %YAML directive"),1!==n.length&&T(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&T(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&T(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&C(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,i;2!==n.length&&T(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],f.test(r)||T(e,"ill-formed tag handle (first argument) of the TAG directive"),l.call(e.tagMap,r)&&T(e,'there is a previously declared suffix for "'+r+'" tag handle'),p.test(i)||T(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[r]=i}};function P(e,t,n,r){var i,o,a,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,o=s.length;i<o;i+=1)9===(a=s.charCodeAt(i))||32<=a&&a<=1114111||T(e,"expected valid JSON character");else u.test(s)&&T(e,"the stream contains non-printable characters");e.result+=s}}function R(e,t,n,i){var o,a,s,u;for(r.isObject(n)||T(e,"cannot merge mappings; the provided source object is unacceptable"),s=0,u=(o=Object.keys(n)).length;s<u;s+=1)a=o[s],l.call(t,a)||(t[a]=n[a],i[a]=!0)}function M(e,t,n,r,i,o,a,s){var u,c;if(Array.isArray(i))for(u=0,c=(i=Array.prototype.slice.call(i)).length;u<c;u+=1)Array.isArray(i[u])&&T(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===h(i[u])&&(i[u]="[object Object]");if("object"==typeof i&&"[object Object]"===h(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(o))for(u=0,c=o.length;u<c;u+=1)R(e,t,o[u],n);else R(e,t,o,n);else e.json||l.call(n,i)||!l.call(t,i)||(e.line=a||e.line,e.position=s||e.position,T(e,"duplicated mapping key")),t[i]=o,delete n[i];return t}function I(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):T(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function j(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;g(i);)i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!m(i))break;for(I(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&C(e,"deficient indentation"),r}function D(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!v(t)))}function L(e,t){1===t?e.result+=" ":t>1&&(e.result+=r.repeat("\n",t-1))}function N(e,t){var n,r,i=e.tag,o=e.anchor,a=[],s=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),r=e.input.charCodeAt(e.position);0!==r&&45===r&&v(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,j(e,!0,-1)&&e.lineIndent<=t)a.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,z(e,t,3,!1,!0),a.push(e.result),j(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)T(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=i,e.anchor=o,e.kind="sequence",e.result=a,!0)}function F(e){var t,n,r,i,o=!1,a=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&T(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(o=!0,i=e.input.charCodeAt(++e.position)):33===i?(a=!0,n="!!",i=e.input.charCodeAt(++e.position)):n="!",t=e.position,o){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(r=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):T(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!v(i);)33===i&&(a?T(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),f.test(n)||T(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),d.test(r)&&T(e,"tag suffix cannot contain flow indicator characters")}return r&&!p.test(r)&&T(e,"tag name cannot contain such characters: "+r),o?e.tag=r:l.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:T(e,'undeclared tag handle "'+n+'"'),!0}function B(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&T(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!v(n)&&!y(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&T(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function z(e,t,n,i,o){var a,s,u,c,d,f,p,h,_=1,E=!1,S=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=u=4===n||3===n,i&&j(e,!0,-1)&&(E=!0,e.lineIndent>t?_=1:e.lineIndent===t?_=0:e.lineIndent<t&&(_=-1)),1===_)for(;F(e)||B(e);)j(e,!0,-1)?(E=!0,u=a,e.lineIndent>t?_=1:e.lineIndent===t?_=0:e.lineIndent<t&&(_=-1)):u=!1;if(u&&(u=E||o),1!==_&&4!==n||(p=1===n||2===n?t:t+1,h=e.position-e.lineStart,1===_?u&&(N(e,h)||function(e,t,n){var r,i,o,a,s,l=e.tag,u=e.anchor,c={},d={},f=null,p=null,h=null,m=!1,y=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=c),s=e.input.charCodeAt(e.position);0!==s;){if(r=e.input.charCodeAt(e.position+1),o=e.line,a=e.position,63!==s&&58!==s||!v(r)){if(!z(e,n,2,!1,!0))break;if(e.line===o){for(s=e.input.charCodeAt(e.position);g(s);)s=e.input.charCodeAt(++e.position);if(58===s)v(s=e.input.charCodeAt(++e.position))||T(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(M(e,c,d,f,p,null),f=p=h=null),y=!0,m=!1,i=!1,f=e.tag,p=e.result;else{if(!y)return e.tag=l,e.anchor=u,!0;T(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=l,e.anchor=u,!0;T(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===s?(m&&(M(e,c,d,f,p,null),f=p=h=null),y=!0,m=!0,i=!0):m?(m=!1,i=!0):T(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,s=r;if((e.line===o||e.lineIndent>t)&&(z(e,t,4,!0,i)&&(m?p=e.result:h=e.result),m||(M(e,c,d,f,p,h,o,a),f=p=h=null),j(e,!0,-1),s=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==s)T(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&M(e,c,d,f,p,null),y&&(e.tag=l,e.anchor=u,e.kind="mapping",e.result=c),y}(e,h,p))||function(e,t){var n,r,i,o,a,s,l,u,c,d,f=!0,p=e.tag,h=e.anchor,m={};if(91===(d=e.input.charCodeAt(e.position)))i=93,s=!1,r=[];else{if(123!==d)return!1;i=125,s=!0,r={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=r),d=e.input.charCodeAt(++e.position);0!==d;){if(j(e,!0,t),(d=e.input.charCodeAt(e.position))===i)return e.position++,e.tag=p,e.anchor=h,e.kind=s?"mapping":"sequence",e.result=r,!0;f||T(e,"missed comma between flow collection entries"),c=null,o=a=!1,63===d&&v(e.input.charCodeAt(e.position+1))&&(o=a=!0,e.position++,j(e,!0,t)),n=e.line,z(e,t,1,!1,!0),u=e.tag,l=e.result,j(e,!0,t),d=e.input.charCodeAt(e.position),!a&&e.line!==n||58!==d||(o=!0,d=e.input.charCodeAt(++e.position),j(e,!0,t),z(e,t,1,!1,!0),c=e.result),s?M(e,r,m,u,l,c):o?r.push(M(e,null,m,u,l,c)):r.push(l),j(e,!0,t),44===(d=e.input.charCodeAt(e.position))?(f=!0,d=e.input.charCodeAt(++e.position)):f=!1}T(e,"unexpected end of the stream within a flow collection")}(e,p)?S=!0:(s&&function(e,t){var n,i,o,a,s,l=1,u=!1,c=!1,d=t,f=0,p=!1;if(124===(a=e.input.charCodeAt(e.position)))i=!1;else{if(62!==a)return!1;i=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===l?l=43===a?3:2:T(e,"repeat of a chomping mode identifier");else{if(!((o=48<=(s=a)&&s<=57?s-48:-1)>=0))break;0===o?T(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?T(e,"repeat of an indentation width identifier"):(d=t+o-1,c=!0)}if(g(a)){do{a=e.input.charCodeAt(++e.position)}while(g(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!m(a)&&0!==a)}for(;0!==a;){for(I(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!c||e.lineIndent<d)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>d&&(d=e.lineIndent),m(a))f++;else{if(e.lineIndent<d){3===l?e.result+=r.repeat("\n",u?1+f:f):1===l&&u&&(e.result+="\n");break}for(i?g(a)?(p=!0,e.result+=r.repeat("\n",u?1+f:f)):p?(p=!1,e.result+=r.repeat("\n",f+1)):0===f?u&&(e.result+=" "):e.result+=r.repeat("\n",f):e.result+=r.repeat("\n",u?1+f:f),u=!0,c=!0,f=0,n=e.position;!m(a)&&0!==a;)a=e.input.charCodeAt(++e.position);P(e,n,e.position,!1)}}return!0}(e,p)||function(e,t){var n,r,i;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(P(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,i=e.position}else m(n)?(P(e,r,i,!0),L(e,j(e,!1,t)),r=i=e.position):e.position===e.lineStart&&D(e)?T(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);T(e,"unexpected end of the stream within a single quoted scalar")}(e,p)||function(e,t){var n,r,i,o,a,s,l;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return P(e,n,e.position,!0),e.position++,!0;if(92===s){if(P(e,n,e.position,!0),m(s=e.input.charCodeAt(++e.position)))j(e,!1,t);else if(s<256&&x[s])e.result+=k[s],e.position++;else if((a=120===(l=s)?2:117===l?4:85===l?8:0)>0){for(i=a,o=0;i>0;i--)(a=b(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:T(e,"expected hexadecimal character");e.result+=w(o),e.position++}else T(e,"unknown escape sequence");n=r=e.position}else m(s)?(P(e,n,r,!0),L(e,j(e,!1,t)),n=r=e.position):e.position===e.lineStart&&D(e)?T(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}T(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?S=!0:!function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!v(r)&&!y(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&T(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||T(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],j(e,!0,-1),!0}(e)?function(e,t,n){var r,i,o,a,s,l,u,c,d=e.kind,f=e.result;if(v(c=e.input.charCodeAt(e.position))||y(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if((63===c||45===c)&&(v(r=e.input.charCodeAt(e.position+1))||n&&y(r)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,a=!1;0!==c;){if(58===c){if(v(r=e.input.charCodeAt(e.position+1))||n&&y(r))break}else if(35===c){if(v(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&D(e)||n&&y(c))break;if(m(c)){if(s=e.line,l=e.lineStart,u=e.lineIndent,j(e,!1,-1),e.lineIndent>=t){a=!0,c=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=l,e.lineIndent=u;break}}a&&(P(e,i,o,!1),L(e,e.line-s),i=o=e.position,a=!1),g(c)||(o=e.position+1),c=e.input.charCodeAt(++e.position)}return P(e,i,o,!1),!!e.result||(e.kind=d,e.result=f,!1)}(e,p,1===n)&&(S=!0,null===e.tag&&(e.tag="?")):(S=!0,null===e.tag&&null===e.anchor||T(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===_&&(S=u&&N(e,h))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&T(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,d=e.implicitTypes.length;c<d;c+=1)if((f=e.implicitTypes[c]).resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else l.call(e.typeMap[e.kind||"fallback"],e.tag)?(f=e.typeMap[e.kind||"fallback"][e.tag],null!==e.result&&f.kind!==e.kind&&T(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result)?(e.result=f.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):T(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):T(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||S}function U(e){var t,n,r,i,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(i=e.input.charCodeAt(e.position))&&(j(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(a=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!v(i);)i=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&T(e,"directive name must not be less than one character in length");0!==i;){for(;g(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!m(i));break}if(m(i))break;for(t=e.position;0!==i&&!v(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&I(e),l.call(A,n)?A[n](e,n,r):C(e,'unknown document directive "'+n+'"')}j(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,j(e,!0,-1)):a&&T(e,"directives end mark is expected"),z(e,e.lineIndent-1,4,!1,!0),j(e,!0,-1),e.checkLineBreaks&&c.test(e.input.slice(o,e.position))&&C(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&D(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,j(e,!0,-1)):e.position<e.length-1&&T(e,"end of the stream or a document separator is expected")}function q(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new S(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,T(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)U(n);return n.documents}function H(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=q(e,n);if("function"!=typeof t)return r;for(var i=0,o=r.length;i<o;i+=1)t(r[i])}function W(e,t){var n=q(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new i("expected a single document in the stream, but found more")}}e.exports.loadAll=H,e.exports.load=W,e.exports.safeLoadAll=function(e,t,n){return"object"==typeof t&&null!==t&&void 0===n&&(n=t,t=null),H(e,t,r.extend({schema:a},n))},e.exports.safeLoad=function(e,t){return W(e,r.extend({schema:a},t))}},function(e,t,n){"use strict";var r=n(186);function i(e,t,n,r,i){this.name=e,this.buffer=t,this.position=n,this.line=r,this.column=i}i.prototype.getSnippet=function(e,t){var n,i,o,a,s;if(!this.buffer)return null;for(e=e||4,t=t||75,n="",i=this.position;i>0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>t/2-1){n=" ... ",i+=5;break}for(o="",a=this.position;a<this.buffer.length&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(a));)if((a+=1)-this.position>t/2-1){o=" ... ",a-=5;break}return s=this.buffer.slice(i,a),r.repeat(" ",e)+n+s+o+"\n"+r.repeat(" ",e+this.position-i+n.length)+"^"},i.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n},e.exports=i},function(e,t,n){"use strict";var r=n(59);e.exports=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},function(e,t,n){"use strict";var r=n(59);e.exports=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},function(e,t,n){"use strict";var r=n(59);e.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},function(e,t,n){"use strict";var r=n(59);e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var r=n(59);e.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var r=n(186),i=n(59);function o(e){return 48<=e&&e<=55}function a(e){return 48<=e&&e<=57}e.exports=new i("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=e.length,i=0,s=!1;if(!r)return!1;if("-"!==(t=e[i])&&"+"!==t||(t=e[++i]),"0"===t){if(i+1===r)return!0;if("b"===(t=e[++i])){for(i++;i<r;i++)if("_"!==(t=e[i])){if("0"!==t&&"1"!==t)return!1;s=!0}return s&&"_"!==t}if("x"===t){for(i++;i<r;i++)if("_"!==(t=e[i])){if(!(48<=(n=e.charCodeAt(i))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;s=!0}return s&&"_"!==t}for(;i<r;i++)if("_"!==(t=e[i])){if(!o(e.charCodeAt(i)))return!1;s=!0}return s&&"_"!==t}if("_"===t)return!1;for(;i<r;i++)if("_"!==(t=e[i])){if(":"===t)break;if(!a(e.charCodeAt(i)))return!1;s=!0}return!(!s||"_"===t)&&(":"!==t||/^(:[0-5]?[0-9])+$/.test(e.slice(i)))},construct:function(e){var t,n,r=e,i=1,o=[];return-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(i=-1),t=(r=r.slice(1))[0]),"0"===r?0:"0"===t?"b"===r[1]?i*parseInt(r.slice(2),2):"x"===r[1]?i*parseInt(r,16):i*parseInt(r,8):-1!==r.indexOf(":")?(r.split(":").forEach((function(e){o.unshift(parseInt(e,10))})),r=0,n=1,o.forEach((function(e){r+=e*n,n*=60})),i*r):i*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!r.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},function(e,t,n){"use strict";var r=n(186),i=n(59),o=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var a=/^[-+]?[0-9]+e/;e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!o.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n,r,i;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach((function(e){i.unshift(parseFloat(e,10))})),t=0,r=1,i.forEach((function(e){t+=e*r,r*=60})),n*t):n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||r.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(e))return"-0.0";return n=e.toString(10),a.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var r=n(59),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),o=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==i.exec(e)||null!==o.exec(e))},construct:function(e){var t,n,r,a,s,l,u,c,d=0,f=null;if(null===(t=i.exec(e))&&(t=o.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(s=+t[4],l=+t[5],u=+t[6],t[7]){for(d=t[7].slice(0,3);d.length<3;)d+="0";d=+d}return t[9]&&(f=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(f=-f)),c=new Date(Date.UTC(n,r,a,s,l,u,d)),f&&c.setTime(c.getTime()-f),c},instanceOf:Date,represent:function(e){return e.toISOString()}})},function(e,t,n){"use strict";var r=n(59);e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},function(e,t,n){"use strict";var r;try{r=n(157).Buffer}catch(e){}var i=n(59),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new i("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,i=e.length,a=o;for(n=0;n<i;n++)if(!((t=a.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,i=e.replace(/[\r\n=]/g,""),a=i.length,s=o,l=0,u=[];for(t=0;t<a;t++)t%4==0&&t&&(u.push(l>>16&255),u.push(l>>8&255),u.push(255&l)),l=l<<6|s.indexOf(i.charAt(t));return 0===(n=a%4*6)?(u.push(l>>16&255),u.push(l>>8&255),u.push(255&l)):18===n?(u.push(l>>10&255),u.push(l>>2&255)):12===n&&u.push(l>>4&255),r?r.from?r.from(u):new r(u):u},predicate:function(e){return r&&r.isBuffer(e)},represent:function(e){var t,n,r="",i=0,a=e.length,s=o;for(t=0;t<a;t++)t%3==0&&t&&(r+=s[i>>18&63],r+=s[i>>12&63],r+=s[i>>6&63],r+=s[63&i]),i=(i<<8)+e[t];return 0===(n=a%3)?(r+=s[i>>18&63],r+=s[i>>12&63],r+=s[i>>6&63],r+=s[63&i]):2===n?(r+=s[i>>10&63],r+=s[i>>4&63],r+=s[i<<2&63],r+=s[64]):1===n&&(r+=s[i>>2&63],r+=s[i<<4&63],r+=s[64],r+=s[64]),r}})},function(e,t,n){"use strict";var r=n(59),i=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,a,s,l=[],u=e;for(t=0,n=u.length;t<n;t+=1){if(r=u[t],s=!1,"[object Object]"!==o.call(r))return!1;for(a in r)if(i.call(r,a)){if(s)return!1;s=!0}if(!s)return!1;if(-1!==l.indexOf(a))return!1;l.push(a)}return!0},construct:function(e){return null!==e?e:[]}})},function(e,t,n){"use strict";var r=n(59),i=Object.prototype.toString;e.exports=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,o,a,s=e;for(a=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(r=s[t],"[object Object]"!==i.call(r))return!1;if(1!==(o=Object.keys(r)).length)return!1;a[t]=[o[0],r[o[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,r,i,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],i=Object.keys(r),o[t]=[i[0],r[i[0]]];return o}})},function(e,t,n){"use strict";var r=n(59),i=Object.prototype.hasOwnProperty;e.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(i.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})},function(e,t,n){"use strict";var r=n(59);e.exports=new r("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})},function(e,t,n){"use strict";var r=n(59);e.exports=new r("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r="";if("/"===t[0]){if(n&&(r=n[1]),r.length>3)return!1;if("/"!==t[t.length-r.length-1])return!1}return!0},construct:function(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return"/"===t[0]&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},function(e,t,n){"use strict";var r;try{r=n(!function(){var e=new Error("Cannot find module 'esprima'");throw e.code="MODULE_NOT_FOUND",e}())}catch(e){"undefined"!=typeof window&&(r=window.esprima)}var i=n(59);e.exports=new i("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",n=r.parse(t,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&("ArrowFunctionExpression"===n.body[0].expression.type||"FunctionExpression"===n.body[0].expression.type)}catch(e){return!1}},construct:function(e){var t,n="("+e+")",i=r.parse(n,{range:!0}),o=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"ArrowFunctionExpression"!==i.body[0].expression.type&&"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach((function(e){o.push(e.name)})),t=i.body[0].expression.body.range,"BlockStatement"===i.body[0].expression.body.type?new Function(o,n.slice(t[0]+1,t[1]-1)):new Function(o,"return "+n.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})},function(e,t,n){"use strict";var r=n(186),i=n(220),o=n(261),a=n(221),s=Object.prototype.toString,l=Object.prototype.hasOwnProperty,u={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},c=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function d(e){var t,n,o;if(t=e.toString(16).toUpperCase(),e<=255)n="x",o=2;else if(e<=65535)n="u",o=4;else{if(!(e<=4294967295))throw new i("code point within a string may not be greater than 0xFFFFFFFF");n="U",o=8}return"\\"+n+r.repeat("0",o-t.length)+t}function f(e){this.schema=e.schema||o,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=r.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,i,o,a,s,u;if(null===t)return{};for(n={},i=0,o=(r=Object.keys(t)).length;i<o;i+=1)a=r[i],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(u=e.compiledTypeMap.fallback[a])&&l.call(u.styleAliases,s)&&(s=u.styleAliases[s]),n[a]=s;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function p(e,t){for(var n,i=r.repeat(" ",t),o=0,a=-1,s="",l=e.length;o<l;)-1===(a=e.indexOf("\n",o))?(n=e.slice(o),o=l):(n=e.slice(o,a+1),o=a+1),n.length&&"\n"!==n&&(s+=i),s+=n;return s}function h(e,t){return"\n"+r.repeat(" ",e.indent*t)}function m(e){return 32===e||9===e}function g(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function v(e,t){return g(e)&&65279!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&58!==e&&(35!==e||t&&function(e){return g(e)&&!m(e)&&65279!==e&&13!==e&&10!==e}(t))}function y(e){return/^\n* /.test(e)}function b(e,t,n,r,i){var o,a,s,l,u=!1,c=!1,d=-1!==r,f=-1,p=g(l=e.charCodeAt(0))&&65279!==l&&!m(l)&&45!==l&&63!==l&&58!==l&&44!==l&&91!==l&&93!==l&&123!==l&&125!==l&&35!==l&&38!==l&&42!==l&&33!==l&&124!==l&&61!==l&&62!==l&&39!==l&&34!==l&&37!==l&&64!==l&&96!==l&&!m(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(!g(a=e.charCodeAt(o)))return 5;s=o>0?e.charCodeAt(o-1):null,p=p&&v(a,s)}else{for(o=0;o<e.length;o++){if(10===(a=e.charCodeAt(o)))u=!0,d&&(c=c||o-f-1>r&&" "!==e[f+1],f=o);else if(!g(a))return 5;s=o>0?e.charCodeAt(o-1):null,p=p&&v(a,s)}c=c||d&&o-f-1>r&&" "!==e[f+1]}return u||c?n>9&&y(e)?5:c?4:3:p&&!i(e)?1:2}function _(e,t,n,r){e.dump=function(){if(0===t.length)return"''";if(!e.noCompatMode&&-1!==c.indexOf(t))return"'"+t+"'";var o=e.indent*Math.max(1,n),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),s=r||e.flowLevel>-1&&n>=e.flowLevel;switch(b(t,s,e.indent,a,(function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)}))){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+w(t,e.indent)+x(p(t,o));case 4:return">"+w(t,e.indent)+x(p(function(e,t){var n,r,i=/(\n+)([^\n]*)/g,o=(s=e.indexOf("\n"),s=-1!==s?s:e.length,i.lastIndex=s,k(e.slice(0,s),t)),a="\n"===e[0]||" "===e[0];var s;for(;r=i.exec(e);){var l=r[1],u=r[2];n=" "===u[0],o+=l+(a||n||""===u?"":"\n")+k(u,t),a=n}return o}(t,a),o));case 5:return'"'+function(e){for(var t,n,r,i="",o=0;o<e.length;o++)(t=e.charCodeAt(o))>=55296&&t<=56319&&(n=e.charCodeAt(o+1))>=56320&&n<=57343?(i+=d(1024*(t-55296)+n-56320+65536),o++):(r=u[t],i+=!r&&g(t)?e[o]:r||d(t));return i}(t)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function w(e,t){var n=y(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function x(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function k(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,o=0,a=0,s=0,l="";n=i.exec(e);)(s=n.index)-o>t&&(r=a>o?a:s,l+="\n"+e.slice(o,r),o=r+1),a=s;return l+="\n",e.length-o>t&&a>o?l+=e.slice(o,a)+"\n"+e.slice(a+1):l+=e.slice(o),l.slice(1)}function E(e,t,n){var r,o,a,u,c,d;for(a=0,u=(o=n?e.explicitTypes:e.implicitTypes).length;a<u;a+=1)if(((c=o[a]).instanceOf||c.predicate)&&(!c.instanceOf||"object"==typeof t&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=n?c.tag:"?",c.represent){if(d=e.styleMap[c.tag]||c.defaultStyle,"[object Function]"===s.call(c.represent))r=c.represent(t,d);else{if(!l.call(c.represent,d))throw new i("!<"+c.tag+'> tag resolver accepts not "'+d+'" style');r=c.represent[d](t,d)}e.dump=r}return!0}return!1}function S(e,t,n,r,o,a){e.tag=null,e.dump=n,E(e,n,!1)||E(e,n,!0);var l=s.call(e.dump);r&&(r=e.flowLevel<0||e.flowLevel>t);var u,c,d="[object Object]"===l||"[object Array]"===l;if(d&&(c=-1!==(u=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||c||2!==e.indent&&t>0)&&(o=!1),c&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(d&&c&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===l)r&&0!==Object.keys(e.dump).length?(!function(e,t,n,r){var o,a,s,l,u,c,d="",f=e.tag,p=Object.keys(n);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new i("sortKeys must be a boolean or a function");for(o=0,a=p.length;o<a;o+=1)c="",r&&0===o||(c+=h(e,t)),l=n[s=p[o]],S(e,t+1,s,!0,!0,!0)&&((u=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,u&&(c+=h(e,t)),S(e,t+1,l,!0,u)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",d+=c+=e.dump));e.tag=f,e.dump=d||"{}"}(e,t,e.dump,o),c&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,n){var r,i,o,a,s,l="",u=e.tag,c=Object.keys(n);for(r=0,i=c.length;r<i;r+=1)s="",0!==r&&(s+=", "),e.condenseFlow&&(s+='"'),a=n[o=c[r]],S(e,t,o,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),S(e,t,a,!1,!1)&&(l+=s+=e.dump));e.tag=u,e.dump="{"+l+"}"}(e,t,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===l){var f=e.noArrayIndent&&t>0?t-1:t;r&&0!==e.dump.length?(!function(e,t,n,r){var i,o,a="",s=e.tag;for(i=0,o=n.length;i<o;i+=1)S(e,t+1,n[i],!0,!0)&&(r&&0===i||(a+=h(e,t)),e.dump&&10===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=s,e.dump=a||"[]"}(e,f,e.dump,o),c&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,n){var r,i,o="",a=e.tag;for(r=0,i=n.length;r<i;r+=1)S(e,t,n[r],!1,!1)&&(0!==r&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,f,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump))}else{if("[object String]"!==l){if(e.skipInvalid)return!1;throw new i("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&_(e,e.dump,t,a)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function O(e,t){var n,r,i=[],o=[];for(function e(t,n,r){var i,o,a;if(null!==t&&"object"==typeof t)if(-1!==(o=n.indexOf(t)))-1===r.indexOf(o)&&r.push(o);else if(n.push(t),Array.isArray(t))for(o=0,a=t.length;o<a;o+=1)e(t[o],n,r);else for(i=Object.keys(t),o=0,a=i.length;o<a;o+=1)e(t[i[o]],n,r)}(e,i,o),n=0,r=o.length;n<r;n+=1)t.duplicates.push(i[o[n]]);t.usedDuplicates=new Array(r)}function T(e,t){var n=new f(t=t||{});return n.noRefs||O(e,n),S(n,0,e,!0,!0)?n.dump+"\n":""}e.exports.dump=T,e.exports.safeDump=function(e,t){return T(e,r.extend({schema:a},t))}},function(e,t,n){"use strict";
+/*!
+ * strip-bom-string <https://github.com/jonschlinkert/strip-bom-string>
+ *
+ * Copyright (c) 2015, 2017, Jon Schlinkert.
+ * Released under the MIT License.
+ */e.exports=function(e){return"string"==typeof e&&"\ufeff"===e.charAt(0)?e.slice(1):e}},function(e,t,n){"use strict";const r=n(260);e.exports=function(e,t){const n=r(t);if(null==e.data&&(e.data={}),"function"==typeof n.excerpt)return n.excerpt(e,n);const i=e.data.excerpt_separator||n.excerpt_separator;if(null==i&&(!1===n.excerpt||null==n.excerpt))return e;const o="string"==typeof n.excerpt?n.excerpt:i||n.delimiters[0],a=e.content.indexOf(o);return-1!==a&&(e.excerpt=e.content.slice(0,a)),e}},function(e,t,n){"use strict";const r=n(259),i=n(475),o=n(338);e.exports=function(e){return"object"!==r(e)&&(e={content:e}),"object"!==r(e.data)&&(e.data={}),e.contents&&null==e.content&&(e.content=e.contents),o.define(e,"orig",o.toBuffer(e.content)),o.define(e,"language",e.language||""),o.define(e,"matter",e.matter||""),o.define(e,"stringify",(function(t,n){return n&&n.language&&(e.language=n.language),i(e,t,n)})),e.content=o.toString(e.content),e.isEmpty=!1,e.excerpt="",e}},function(e,t,n){"use strict";const r=n(476),i=n(260);e.exports=function(e,t,n){const o=i(n),a=r(e,o);if("function"!=typeof a.parse)throw new TypeError('expected "'+e+'.parse" to be a function');return a.parse(t,o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateConfig=function(e){const t=new r.default({allErrors:!0,jsonPointers:!0,$data:!0});(0,i.uniqueItemProperties)(t),(0,i.select)(t),(0,i.instanceof)(t),(0,o.default)(t);if(!t.validate({type:"object",properties:{backend:{type:"object",properties:{name:{type:"string",examples:["test-repo"]},auth_scope:{type:"string",examples:["repo","public_repo"],enum:["repo","public_repo"]},open_authoring:{type:"boolean",examples:[!0]}},required:["name"]},local_backend:{oneOf:[{type:"boolean"},{type:"object",properties:{url:{type:"string",examples:["http://localhost:8081/api/v1"]},allowed_hosts:{type:"array",items:{type:"string"}}},additionalProperties:!1}]},locale:{type:"string",examples:["en","fr","de"]},site_url:{type:"string",examples:["https://example.com"]},display_url:{type:"string",examples:["https://example.com"]},logo_url:{type:"string",examples:["https://example.com/images/logo.svg"]},show_preview_links:{type:"boolean"},media_folder:{type:"string",examples:["assets/uploads"]},public_folder:{type:"string",examples:["/uploads"]},media_folder_relative:{type:"boolean"},media_library:{type:"object",properties:{name:{type:"string",examples:["uploadcare"]},config:{type:"object"}},required:["name"]},publish_mode:{type:"string",enum:["simple","editorial_workflow"],examples:["editorial_workflow"]},slug:{type:"object",properties:{encoding:{type:"string",enum:["unicode","ascii"]},clean_accents:{type:"boolean"}}},collections:{type:"array",minItems:1,items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},label_singular:{type:"string"},description:{type:"string"},folder:{type:"string"},files:{type:"array",items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},label_singular:{type:"string"},description:{type:"string"},file:{type:"string"},fields:f()},required:["name","label","file","fields"]},uniqueItemProperties:["name"]},identifier_field:{type:"string"},summary:{type:"string"},slug:{type:"string"},path:{type:"string"},preview_path:{type:"string"},preview_path_date_field:{type:"string"},create:{type:"boolean"},publish:{type:"boolean"},hide:{type:"boolean"},editor:{type:"object",properties:{preview:{type:"boolean"}}},format:{type:"string",enum:Object.keys(a.formatExtensions)},extension:{type:"string"},frontmatter_delimiter:{type:["string","array"],minItems:2,maxItems:2,items:{type:"string"}},fields:f(),sortableFields:{type:"array",items:{type:"string"}},view_filters:p,nested:{type:"object",properties:{depth:{type:"number",minimum:1,maximum:1e3},summary:{type:"string"}},required:["depth"]},meta:{type:"object",properties:{path:{type:"object",properties:{label:{type:"string"},widget:{type:"string"},index_file:{type:"string"}},required:["label","widget","index_file"]}},additionalProperties:!1,minProperties:1}},required:["name","label"],oneOf:[{required:["files"]},{required:["folder","fields"]}],if:{required:["extension"]},then:{if:{properties:{extension:{enum:Object.keys(a.extensionFormatters)}}},else:{required:["format"]}},dependencies:{frontmatter_delimiter:{properties:{format:{enum:a.frontmatterFormats}},required:["format"]}}},uniqueItemProperties:["name"]}},required:["backend","collections"],anyOf:[{required:["media_folder"]},{required:["media_library"]}]},e)){const e=t.errors.map(e=>{switch(e.keyword){case"uniqueItemProperties":{const t=e.dataPath||"";let n=e;return t.endsWith("/fields")?n=c(c({},e),{},{message:"fields names must be unique"}):t.endsWith("/files")?n=c(c({},e),{},{message:"files names must be unique"}):t.endsWith("/collections")&&(n=c(c({},e),{},{message:"collections names must be unique"})),n}case"instanceof":{const t=e.dataPath||"";let n=e;return/fields\/\d+\/pattern\/\d+/.test(t)&&(n=c(c({},e),{},{message:"should be a regular expression"})),n}default:return e}});throw console.error("Config Errors",e),new m(e)}};var r=l(n(835)),i=n(869),o=l(n(891)),a=n(328),s=n(122);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}const f=()=>({$id:"fields",type:"array",minItems:1,items:{$id:"field",type:"object",properties:{name:{type:"string"},label:{type:"string"},widget:{type:"string"},required:{type:"boolean"},hint:{type:"string"},pattern:{type:"array",minItems:2,items:[{oneOf:[{type:"string"},{instanceof:"RegExp"}]},{type:"string"}]},field:{$ref:"field"},fields:{$ref:"fields"},types:{$ref:"fields"}},select:{$data:"0/widget"},selectCases:c({},h()),required:["name"]},uniqueItemProperties:["name"]}),p={type:"array",minItems:1,items:{type:"object",properties:{label:{type:"string"},field:{type:"string"},pattern:{oneOf:[{type:"boolean"},{type:"string"}]}},additionalProperties:!1,required:["label","field","pattern"]}};function h(){const e=(0,s.getWidgets)().map(e=>({[e.name]:e.schema}));return Object.assign(...e)}class m extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,...t){const n=e.map(({message:e,dataPath:t})=>{const n=t.slice(1).split("/").map(e=>e.match(/^\d+$/)?`[${e}]`:"."+e).join("").slice(1);return`${n?`'${n}'`:"config"} ${e}`}).join("\n");super(n,...t),this.errors=e,this.message=n}toString(){return this.message}}},function(e,t,n){"use strict";var r=n(836),i=n(340),o=n(840),a=n(477),s=n(292),l=n(841),u=n(842),c=n(863),d=n(188);e.exports=v,v.prototype.validate=function(e,t){var n;if("string"==typeof e){if(!(n=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var r=this._addSchema(e);n=r.validate||this._compile(r)}var i=n(t);!0!==n.$async&&(this.errors=n.errors);return i},v.prototype.compile=function(e,t){var n=this._addSchema(e,void 0,t);return n.validate||this._compile(n)},v.prototype.addSchema=function(e,t,n,r){if(Array.isArray(e)){for(var o=0;o<e.length;o++)this.addSchema(e[o],void 0,n,r);return this}var a=this._getId(e);if(void 0!==a&&"string"!=typeof a)throw new Error("schema id must be string");return k(this,t=i.normalizeId(t||a)),this._schemas[t]=this._addSchema(e,n,r,!0),this},v.prototype.addMetaSchema=function(e,t,n){return this.addSchema(e,t,n,!0),this},v.prototype.validateSchema=function(e,t){var n=e.$schema;if(void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(!(n=n||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(h)?h:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var r=this.validate(n,e);if(!r&&t){var i="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(i);this.logger.error(i)}return r},v.prototype.getSchema=function(e){var t=y(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var n=i.schema.call(e,{schema:{}},t);if(n){var o=n.schema,s=n.root,l=n.baseId,u=r.call(e,o,s,void 0,l);return e._fragments[t]=new a({ref:t,fragment:!0,schema:o,root:s,baseId:l,validate:u}),u}}(this,e)}},v.prototype.removeSchema=function(e){if(e instanceof RegExp)return b(this,this._schemas,e),b(this,this._refs,e),this;switch(typeof e){case"undefined":return b(this,this._schemas),b(this,this._refs),this._cache.clear(),this;case"string":var t=y(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var n=this._opts.serialize,r=n?n(e):e;this._cache.del(r);var o=this._getId(e);o&&(o=i.normalizeId(o),delete this._schemas[o],delete this._refs[o])}return this},v.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},v.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var n=void 0===(t=t||{}).separator?", ":t.separator,r=void 0===t.dataVar?"data":t.dataVar,i="",o=0;o<e.length;o++){var a=e[o];a&&(i+=r+a.dataPath+" "+a.message+n)}return i.slice(0,-n.length)},v.prototype._addSchema=function(e,t,n,r){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var o=this._opts.serialize,s=o?o(e):e,l=this._cache.get(s);if(l)return l;r=r||!1!==this._opts.addUsedSchema;var u=i.normalizeId(this._getId(e));u&&r&&k(this,u);var c,d=!1!==this._opts.validateSchema&&!t;d&&!(c=u&&u==i.normalizeId(e.$schema))&&this.validateSchema(e,!0);var f=i.ids.call(this,e),p=new a({id:u,schema:e,localRefs:f,cacheKey:s,meta:n});"#"!=u[0]&&r&&(this._refs[u]=p);this._cache.put(s,p),d&&c&&this.validateSchema(e,!0);return p},v.prototype._compile=function(e,t){if(e.compiling)return e.validate=o,o.schema=e.schema,o.errors=null,o.root=t||o,!0===e.schema.$async&&(o.$async=!0),o;var n,i;e.compiling=!0,e.meta&&(n=this._opts,this._opts=this._metaOpts);try{i=r.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=n)}return e.validate=i,e.refs=i.refs,e.refVal=i.refVal,e.root=i.root,i;function o(){var t=e.validate,n=t.apply(this,arguments);return o.errors=t.errors,n}},v.prototype.compileAsync=n(864);var f=n(865);v.prototype.addKeyword=f.add,v.prototype.getKeyword=f.get,v.prototype.removeKeyword=f.remove,v.prototype.validateKeyword=f.validate;var p=n(342);v.ValidationError=p.Validation,v.MissingRefError=p.MissingRef,v.$dataMetaSchema=c;var h="http://json-schema.org/draft-07/schema",m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],g=["/properties"];function v(e){if(!(this instanceof v))return new v(e);e=this._opts=d.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:E,warn:E,error:E};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=l(e.format),this._cache=e.cache||new o,this._loadingSchemas={},this._compilations=[],this.RULES=u(),this._getId=function(e){switch(e.schemaId){case"auto":return x;case"id":return _;default:return w}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=s),this._metaOpts=function(e){for(var t=d.copy(e._opts),n=0;n<m.length;n++)delete t[m[n]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var n=e._opts.formats[t];e.addFormat(t,n)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var n=e._opts.keywords[t];e.addKeyword(t,n)}}(this),function(e){var t;e._opts.$data&&(t=n(868),e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var r=n(483);e._opts.$data&&(r=c(r,g));e.addMetaSchema(r,h,!0),e._refs["http://json-schema.org/schema"]=h}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var n in t)e.addSchema(t[n],n)}(this)}function y(e,t){return t=i.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function b(e,t,n){for(var r in t){var i=t[r];i.meta||n&&!n.test(r)||(e._cache.del(i.cacheKey),delete t[r])}}function _(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function w(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function x(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function k(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function E(){}},function(e,t,n){"use strict";var r=n(340),i=n(188),o=n(342),a=n(292),s=n(478),l=i.ucs2length,u=n(341),c=o.Validation;function d(e,t,n){var r=p.call(this,e,t,n);return r>=0?{index:r,compiling:!0}:(r=this._compilations.length,this._compilations[r]={schema:e,root:t,baseId:n},{index:r,compiling:!1})}function f(e,t,n){var r=p.call(this,e,t,n);r>=0&&this._compilations.splice(r,1)}function p(e,t,n){for(var r=0;r<this._compilations.length;r++){var i=this._compilations[r];if(i.schema==e&&i.root==t&&i.baseId==n)return r}return-1}function h(e,t){return"var pattern"+e+" = new RegExp("+i.toQuotedString(t[e])+");"}function m(e){return"var default"+e+" = defaults["+e+"];"}function g(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function v(e){return"var customRule"+e+" = customRules["+e+"];"}function y(e,t){if(!e.length)return"";for(var n="",r=0;r<e.length;r++)n+=t(r,e);return n}e.exports=function e(t,n,p,b){var _=this,w=this._opts,x=[void 0],k={},E=[],S={},O=[],T={},C=[];n=n||{schema:t,refVal:x,refs:k};var A=d.call(this,t,n,b),P=this._compilations[A.index];if(A.compiling)return P.callValidate=function e(){var t=P.validate,n=t.apply(this,arguments);return e.errors=t.errors,n};var R=this._formats,M=this.RULES;try{var I=D(t,n,p,b);P.validate=I;var j=P.callValidate;return j&&(j.schema=I.schema,j.errors=null,j.refs=I.refs,j.refVal=I.refVal,j.root=I.root,j.$async=I.$async,w.sourceCode&&(j.source=I.source)),I}finally{f.call(this,t,n,b)}function D(t,a,d,f){var p=!a||a&&a.schema==t;if(a.schema!=n.schema)return e.call(_,t,a,d,f);var b,S=!0===t.$async,T=s({isTop:!0,schema:t,isRoot:p,baseId:f,root:a,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:o.MissingRef,RULES:M,validate:s,util:i,resolve:r,resolveRef:L,usePattern:B,useDefault:z,useCustomRule:U,opts:w,formats:R,logger:_.logger,self:_});T=y(x,g)+y(E,h)+y(O,m)+y(C,v)+T,w.processCode&&(T=w.processCode(T,t));try{b=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",T)(_,M,R,n,x,O,C,u,l,c),x[0]=b}catch(e){throw _.logger.error("Error compiling schema, function code:",T),e}return b.schema=t,b.errors=null,b.refs=k,b.refVal=x,b.root=p?b:a,S&&(b.$async=!0),!0===w.sourceCode&&(b.source={code:T,patterns:E,defaults:O}),b}function L(t,i,o){i=r.url(t,i);var a,s,l=k[i];if(void 0!==l)return F(a=x[l],s="refVal["+l+"]");if(!o&&n.refs){var u=n.refs[i];if(void 0!==u)return F(a=n.refVal[u],s=N(i,a))}s=N(i);var c=r.call(_,D,n,i);if(void 0===c){var d=p&&p[i];d&&(c=r.inlineRef(d,w.inlineRefs)?d:e.call(_,d,n,p,t))}if(void 0!==c)return function(e,t){var n=k[e];x[n]=t}(i,c),F(c,s);!function(e){delete k[e]}(i)}function N(e,t){var n=x.length;return x[n]=t,k[e]=n,"refVal"+n}function F(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function B(e){var t=S[e];return void 0===t&&(t=S[e]=E.length,E[t]=e),"pattern"+t}function z(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return i.toQuotedString(e);case"object":if(null===e)return"null";var t=a(e),n=T[t];return void 0===n&&(n=T[t]=O.length,O[n]=e),"default"+n}}function U(e,t,n,r){if(!1!==_._opts.validateSchema){var i=e.definition.dependencies;if(i&&!i.every((function(e){return Object.prototype.hasOwnProperty.call(n,e)})))throw new Error("parent schema must have all required keywords: "+i.join(","));var o=e.definition.validateSchema;if(o)if(!o(t)){var a="keyword schema is invalid: "+_.errorsText(o.errors);if("log"!=_._opts.validateSchema)throw new Error(a);_.logger.error(a)}}var s,l=e.definition.compile,u=e.definition.inline,c=e.definition.macro;if(l)s=l.call(_,t,n,r);else if(c)s=c.call(_,t,n,r),!1!==w.validateSchema&&_.validateSchema(s,!0);else if(u)s=u.call(_,r,e.keyword,t,n);else if(!(s=e.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var d=C.length;return C[d]=s,{code:"customRule"+d,validate:s}}}},function(e,t,n){
+/** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
+!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,i=1;i<r;++i)t[i]=t[i].slice(1,-1);return t[r]=t[r].slice(1),t.join("")}return t[0]}function n(e){return"(?:"+e+")"}function r(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function i(e){return e.toUpperCase()}function o(e){var r=t("[0-9]","[A-Fa-f]"),i=n(n("%[EFef]"+r+"%"+r+r+"%"+r+r)+"|"+n("%[89A-Fa-f]"+r+"%"+r+r)+"|"+n("%"+r+r)),o="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",a=t("[\\:\\/\\?\\#\\[\\]\\@]",o),s=e?"[\\uE000-\\uF8FF]":"[]",l=t("[A-Za-z]","[0-9]","[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),u=n("[A-Za-z]"+t("[A-Za-z]","[0-9]","[\\+\\-\\.]")+"*"),c=n(n(i+"|"+t(l,o,"[\\:]"))+"*"),d=(n(n("25[0-5]")+"|"+n("2[0-4][0-9]")+"|"+n("1[0-9][0-9]")+"|"+n("[1-9][0-9]")+"|[0-9]"),n(n("25[0-5]")+"|"+n("2[0-4][0-9]")+"|"+n("1[0-9][0-9]")+"|"+n("0?[1-9][0-9]")+"|0?0?[0-9]")),f=n(d+"\\."+d+"\\."+d+"\\."+d),p=n(r+"{1,4}"),h=n(n(p+"\\:"+p)+"|"+f),m=n(n(p+"\\:")+"{6}"+h),g=n("\\:\\:"+n(p+"\\:")+"{5}"+h),v=n(n(p)+"?\\:\\:"+n(p+"\\:")+"{4}"+h),y=n(n(n(p+"\\:")+"{0,1}"+p)+"?\\:\\:"+n(p+"\\:")+"{3}"+h),b=n(n(n(p+"\\:")+"{0,2}"+p)+"?\\:\\:"+n(p+"\\:")+"{2}"+h),_=n(n(n(p+"\\:")+"{0,3}"+p)+"?\\:\\:"+p+"\\:"+h),w=n(n(n(p+"\\:")+"{0,4}"+p)+"?\\:\\:"+h),x=n(n(n(p+"\\:")+"{0,5}"+p)+"?\\:\\:"+p),k=n(n(n(p+"\\:")+"{0,6}"+p)+"?\\:\\:"),E=n([m,g,v,y,b,_,w,x,k].join("|")),S=n(n(l+"|"+i)+"+"),O=(n(E+"\\%25"+S),n(E+n("\\%25|\\%(?!"+r+"{2})")+S)),T=n("[vV]"+r+"+\\."+t(l,o,"[\\:]")+"+"),C=n("\\["+n(O+"|"+E+"|"+T)+"\\]"),A=n(n(i+"|"+t(l,o))+"*"),P=n(C+"|"+f+"(?!"+A+")|"+A),R=n("[0-9]*"),M=n(n(c+"@")+"?"+P+n("\\:"+R)+"?"),I=n(i+"|"+t(l,o,"[\\:\\@]")),j=n(I+"*"),D=n(I+"+"),L=n(n(i+"|"+t(l,o,"[\\@]"))+"+"),N=n(n("\\/"+j)+"*"),F=n("\\/"+n(D+N)+"?"),B=n(L+N),z=n(D+N),U="(?!"+I+")",q=(n(N+"|"+F+"|"+B+"|"+z+"|"+U),n(n(I+"|"+t("[\\/\\?]",s))+"*")),H=n(n(I+"|[\\/\\?]")+"*"),W=n(n("\\/\\/"+M+N)+"|"+F+"|"+z+"|"+U),V=n(u+"\\:"+W+n("\\?"+q)+"?"+n("\\#"+H)+"?"),$=n(n("\\/\\/"+M+N)+"|"+F+"|"+B+"|"+U),G=n($+n("\\?"+q)+"?"+n("\\#"+H)+"?");return n(V+"|"+G),n(u+"\\:"+W+n("\\?"+q)+"?"),n(n("\\/\\/("+n("("+c+")@")+"?("+P+")"+n("\\:("+R+")")+"?)")+"?("+N+"|"+F+"|"+z+"|"+U+")"),n("\\?("+q+")"),n("\\#("+H+")"),n(n("\\/\\/("+n("("+c+")@")+"?("+P+")"+n("\\:("+R+")")+"?)")+"?("+N+"|"+F+"|"+B+"|"+U+")"),n("\\?("+q+")"),n("\\#("+H+")"),n(n("\\/\\/("+n("("+c+")@")+"?("+P+")"+n("\\:("+R+")")+"?)")+"?("+N+"|"+F+"|"+z+"|"+U+")"),n("\\?("+q+")"),n("\\#("+H+")"),n("("+c+")@"),n("\\:("+R+")"),{NOT_SCHEME:new RegExp(t("[^]","[A-Za-z]","[0-9]","[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,o),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,o),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,o),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,o),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,o,"[\\:\\@\\/\\?]",s),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,o,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,o),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,a),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+f+")$"),IPV6ADDRESS:new RegExp("^\\[?("+E+")"+n(n("\\%25|\\%(?!"+r+"{2})")+"("+S+")")+"?\\]?$")}}var a=o(!1),s=o(!0),l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},u=2147483647,c=/^xn--/,d=/[^\0-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,m=String.fromCharCode;function g(e){throw new RangeError(p[e])}function v(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var i=function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(f,".")).split("."),t).join(".");return r+i}function y(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}var b=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},_=function(e,t,n){var r=0;for(e=n?h(e/700):e>>1,e+=h(e/t);e>455;r+=36)e=h(e/35);return h(r+36*e/(e+38))},w=function(e){var t,n=[],r=e.length,i=0,o=128,a=72,s=e.lastIndexOf("-");s<0&&(s=0);for(var l=0;l<s;++l)e.charCodeAt(l)>=128&&g("not-basic"),n.push(e.charCodeAt(l));for(var c=s>0?s+1:0;c<r;){for(var d=i,f=1,p=36;;p+=36){c>=r&&g("invalid-input");var m=(t=e.charCodeAt(c++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36;(m>=36||m>h((u-i)/f))&&g("overflow"),i+=m*f;var v=p<=a?1:p>=a+26?26:p-a;if(m<v)break;var y=36-v;f>h(u/y)&&g("overflow"),f*=y}var b=n.length+1;a=_(i-d,b,0==d),h(i/b)>u-o&&g("overflow"),o+=h(i/b),i%=b,n.splice(i++,0,o)}return String.fromCodePoint.apply(String,n)},x=function(e){var t=[],n=(e=y(e)).length,r=128,i=0,o=72,a=!0,s=!1,l=void 0;try{for(var c,d=e[Symbol.iterator]();!(a=(c=d.next()).done);a=!0){var f=c.value;f<128&&t.push(m(f))}}catch(e){s=!0,l=e}finally{try{!a&&d.return&&d.return()}finally{if(s)throw l}}var p=t.length,v=p;for(p&&t.push("-");v<n;){var w=u,x=!0,k=!1,E=void 0;try{for(var S,O=e[Symbol.iterator]();!(x=(S=O.next()).done);x=!0){var T=S.value;T>=r&&T<w&&(w=T)}}catch(e){k=!0,E=e}finally{try{!x&&O.return&&O.return()}finally{if(k)throw E}}var C=v+1;w-r>h((u-i)/C)&&g("overflow"),i+=(w-r)*C,r=w;var A=!0,P=!1,R=void 0;try{for(var M,I=e[Symbol.iterator]();!(A=(M=I.next()).done);A=!0){var j=M.value;if(j<r&&++i>u&&g("overflow"),j==r){for(var D=i,L=36;;L+=36){var N=L<=o?1:L>=o+26?26:L-o;if(D<N)break;var F=D-N,B=36-N;t.push(m(b(N+F%B,0))),D=h(F/B)}t.push(m(b(D,0))),o=_(i,C,v==p),i=0,++v}}}catch(e){P=!0,R=e}finally{try{!A&&I.return&&I.return()}finally{if(P)throw R}}++i,++r}return t.join("")},k=function(e){return v(e,(function(e){return d.test(e)?"xn--"+x(e):e}))},E=function(e){return v(e,(function(e){return c.test(e)?w(e.slice(4).toLowerCase()):e}))},S={};function O(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function T(e){for(var t="",n=0,r=e.length;n<r;){var i=parseInt(e.substr(n+1,2),16);if(i<128)t+=String.fromCharCode(i),n+=3;else if(i>=194&&i<224){if(r-n>=6){var o=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&i)<<6|63&o)}else t+=e.substr(n,6);n+=6}else if(i>=224){if(r-n>=9){var a=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&i)<<12|(63&a)<<6|63&s)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function C(e,t){function n(e){var n=T(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,O).replace(t.PCT_ENCODED,i)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,O).replace(t.PCT_ENCODED,i)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,O).replace(t.PCT_ENCODED,i)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,O).replace(t.PCT_ENCODED,i)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,O).replace(t.PCT_ENCODED,i)),e}function A(e){return e.replace(/^0*(.*)/,"$1")||"0"}function P(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=l(n,2)[1];return r?r.split(".").map(A).join("."):e}function R(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=l(n,3),i=r[1],o=r[2];if(i){for(var a=i.toLowerCase().split("::").reverse(),s=l(a,2),u=s[0],c=s[1],d=c?c.split(":").map(A):[],f=u.split(":").map(A),p=t.IPV4ADDRESS.test(f[f.length-1]),h=p?7:8,m=f.length-h,g=Array(h),v=0;v<h;++v)g[v]=d[v]||f[m+v]||"";p&&(g[h-1]=P(g[h-1],t));var y=g.reduce((function(e,t,n){if(!t||"0"===t){var r=e[e.length-1];r&&r.index+r.length===n?r.length++:e.push({index:n,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(y&&y.length>1){var _=g.slice(0,y.index),w=g.slice(y.index+y.length);b=_.join(":")+"::"+w.join(":")}else b=g.join(":");return o&&(b+="%"+o),b}return e}var M=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,I=void 0==="".match(/(){0}/)[1];function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?s:a;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var i=e.match(M);if(i){I?(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5])):(n.scheme=i[1]||void 0,n.userinfo=-1!==e.indexOf("@")?i[3]:void 0,n.host=-1!==e.indexOf("//")?i[4]:void 0,n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=-1!==e.indexOf("?")?i[7]:void 0,n.fragment=-1!==e.indexOf("#")?i[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),n.host&&(n.host=R(P(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var o=S[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)C(n,r);else{if(n.host&&(t.domainHost||o&&o.domainHost))try{n.host=k(n.host.replace(r.PCT_ENCODED,T).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}C(n,a)}o&&o.parse&&o.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}function D(e,t){var n=!1!==t.iri?s:a,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(R(P(String(e.host),n),n).replace(n.IPV6ADDRESS,(function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"}))),"number"==typeof e.port&&(r.push(":"),r.push(e.port.toString(10))),r.length?r.join(""):void 0}var L=/^\.\.?\//,N=/^\/\.(\/|$)/,F=/^\/\.\.(\/|$)/,B=/^\/?(?:.|\n)*?(?=\/|$)/;function z(e){for(var t=[];e.length;)if(e.match(L))e=e.replace(L,"");else if(e.match(N))e=e.replace(N,"/");else if(e.match(F))e=e.replace(F,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(B);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?s:a,r=[],i=S[(t.scheme||e.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||i&&i.domainHost)try{e.host=t.iri?E(e.host):k(e.host.replace(n.PCT_ENCODED,T).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}C(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var o=D(e,t);if(void 0!==o&&("suffix"!==t.reference&&r.push("//"),r.push(o),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var l=e.path;t.absolutePath||i&&i.absolutePath||(l=z(l)),void 0===o&&(l=l.replace(/^\/\//,"/%2F")),r.push(l)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments[3],i={};return r||(e=j(U(e,n),n),t=j(U(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=z(t.path||""),i.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=z(t.path||""),i.query=t.query):(t.path?("/"===t.path.charAt(0)?i.path=z(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path:i.path="/"+t.path,i.path=z(i.path)),i.query=t.query):(i.path=e.path,void 0!==t.query?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function H(e,t){return e&&e.toString().replace(t&&t.iri?s.PCT_ENCODED:a.PCT_ENCODED,T)}var W={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){return e.port!==("https"!==String(e.scheme).toLowerCase()?80:443)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},V={scheme:"https",domainHost:W.domainHost,parse:W.parse,serialize:W.serialize},$={},G="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",K="[0-9A-Fa-f]",Y=n(n("%[EFef]"+K+"%"+K+K+"%"+K+K)+"|"+n("%[89A-Fa-f]"+K+"%"+K+K)+"|"+n("%"+K+K)),Q=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),X=new RegExp(G,"g"),J=new RegExp(Y,"g"),Z=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Q),"g"),ee=new RegExp(t("[^]",G,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),te=ee;function ne(e){var t=T(e);return t.match(X)?t:e}var re={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var i=!1,o={},a=n.query.split("&"),s=0,l=a.length;s<l;++s){var u=a[s].split("=");switch(u[0]){case"to":for(var c=u[1].split(","),d=0,f=c.length;d<f;++d)r.push(c[d]);break;case"subject":n.subject=H(u[1],t);break;case"body":n.body=H(u[1],t);break;default:i=!0,o[H(u[0],t)]=H(u[1],t)}}i&&(n.headers=o)}n.query=void 0;for(var p=0,h=r.length;p<h;++p){var m=r[p].split("@");if(m[0]=H(m[0]),t.unicodeSupport)m[1]=H(m[1],t).toLowerCase();else try{m[1]=k(H(m[1],t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}r[p]=m.join("@")}return n},serialize:function(e,t){var n,r=e,o=null!=(n=e.to)?n instanceof Array?n:"number"!=typeof n.length||n.split||n.setInterval||n.call?[n]:Array.prototype.slice.call(n):[];if(o){for(var a=0,s=o.length;a<s;++a){var l=String(o[a]),u=l.lastIndexOf("@"),c=l.slice(0,u).replace(J,ne).replace(J,i).replace(Z,O),d=l.slice(u+1);try{d=t.iri?E(d):k(H(d,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}o[a]=c+"@"+d}r.path=o.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var p=[];for(var h in f)f[h]!==$[h]&&p.push(h.replace(J,ne).replace(J,i).replace(ee,O)+"="+f[h].replace(J,ne).replace(J,i).replace(te,O));return p.length&&(r.query=p.join("&")),r}},ie=/^([^\:]+)\:(.*)/,oe={scheme:"urn",parse:function(e,t){var n=e.path&&e.path.match(ie),r=e;if(n){var i=t.scheme||r.scheme||"urn",o=n[1].toLowerCase(),a=n[2],s=i+":"+(t.nid||o),l=S[s];r.nid=o,r.nss=a,r.path=void 0,l&&(r=l.parse(r,t))}else r.error=r.error||"URN can not be parsed.";return r},serialize:function(e,t){var n=t.scheme||e.scheme||"urn",r=e.nid,i=n+":"+(t.nid||r),o=S[i];o&&(e=o.serialize(e,t));var a=e,s=e.nss;return a.path=(r||t.nid)+":"+s,a}},ae=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,se={scheme:"urn:uuid",parse:function(e,t){var n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&n.uuid.match(ae)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||"").toLowerCase(),n}};S[W.scheme]=W,S[V.scheme]=V,S[re.scheme]=re,S[oe.scheme]=oe,S[se.scheme]=se,e.SCHEMES=S,e.pctEncChar=O,e.pctDecChars=T,e.parse=j,e.removeDotSegments=z,e.serialize=U,e.resolveComponents=q,e.resolve=function(e,t,n){var r=function(e,t){var n=e;if(t)for(var r in t)n[r]=t[r];return n}({scheme:"null"},n);return U(q(j(e,r),j(t,r),r,!0),r)},e.normalize=function(e,t){return"string"==typeof e?e=U(j(e,t),t):"object"===r(e)&&(e=j(U(e,t),t)),e},e.equal=function(e,t,n){return"string"==typeof e?e=U(j(e,n),n):"object"===r(e)&&(e=U(e,n)),"string"==typeof t?t=U(j(t,n),n):"object"===r(t)&&(t=U(t,n)),e===t},e.escapeComponent=function(e,t){return e&&e.toString().replace(t&&t.iri?s.ESCAPE:a.ESCAPE,O)},e.unescapeComponent=H,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";e.exports=function(e){for(var t,n=0,r=e.length,i=0;i<r;)n++,(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<r&&56320==(64512&(t=e.charCodeAt(i)))&&i++;return n}},function(e,t,n){"use strict";var r=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),function e(t,n,i,o,a,s,l,u,c,d){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var f in n(o,a,s,l,u,c,d),o){var p=o[f];if(Array.isArray(p)){if(f in r.arrayKeywords)for(var h=0;h<p.length;h++)e(t,n,i,p[h],a+"/"+f+"/"+h,s,a,f,o,h)}else if(f in r.propsKeywords){if(p&&"object"==typeof p)for(var m in p)e(t,n,i,p[m],a+"/"+f+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),s,a,f,o,m)}else(f in r.keywords||t.allKeys&&!(f in r.skipKeywords))&&e(t,n,i,p,a+"/"+f,s,a,f,o)}i(o,a,s,l,u,c,d)}}(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};r.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},r.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},r.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},r.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},function(e,t,n){"use strict";var r=e.exports=function(){this._cache={}};r.prototype.put=function(e,t){this._cache[e]=t},r.prototype.get=function(e){return this._cache[e]},r.prototype.del=function(e){delete this._cache[e]},r.prototype.clear=function(){this._cache={}}},function(e,t,n){"use strict";var r=n(188),i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31],a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,l=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,u=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,c=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,d=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,f=/^(?:\/(?:[^~/]|~0|~1)*)*$/,p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,h=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return e="full"==e?"full":"fast",r.copy(m[e])}function g(e){var t=e.match(i);if(!t)return!1;var n=+t[1],r=+t[2],a=+t[3];return r>=1&&r<=12&&a>=1&&a<=(2==r&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(n)?29:o[r])}function v(e,t){var n=e.match(a);if(!n)return!1;var r=n[1],i=n[2],o=n[3],s=n[5];return(r<=23&&i<=59&&o<=59||23==r&&59==i&&60==o)&&(!t||s)}e.exports=m,m.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":u,url:c,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:d,"json-pointer":f,"json-pointer-uri-fragment":p,"relative-json-pointer":h},m.full={date:g,time:v,"date-time":function(e){var t=e.split(y);return 2==t.length&&g(t[0])&&v(t[1],!0)},uri:function(e){return b.test(e)&&l.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":u,url:c,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:d,"json-pointer":f,"json-pointer-uri-fragment":p,"relative-json-pointer":h};var y=/t|\s/i;var b=/\/|:/;var _=/[^\\]\\Z/;function w(e){if(_.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},function(e,t,n){"use strict";var r=n(843),i=n(188).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=i(t),e.types=i(["number","integer","string","array","object","boolean","null"]),e.forEach((function(n){n.rules=n.rules.map((function(n){var i;if("object"==typeof n){var o=Object.keys(n)[0];i=n[o],n=o,i.forEach((function(n){t.push(n),e.all[n]=!0}))}return t.push(n),e.all[n]={keyword:n,code:r[n],implements:i}})),e.all.$comment={keyword:"$comment",code:r.$comment},n.type&&(e.types[n.type]=n)})),e.keywords=i(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},function(e,t,n){"use strict";e.exports={$ref:n(844),allOf:n(845),anyOf:n(846),$comment:n(847),const:n(848),contains:n(849),dependencies:n(850),enum:n(851),format:n(852),if:n(853),items:n(854),maximum:n(479),minimum:n(479),maxItems:n(480),minItems:n(480),maxLength:n(481),minLength:n(481),maxProperties:n(482),minProperties:n(482),multipleOf:n(855),not:n(856),oneOf:n(857),pattern:n(858),properties:n(859),propertyNames:n(860),required:n(861),uniqueItems:n(862),validate:n(478)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o=" ",a=e.level,s=e.dataLevel,l=e.schema[t],u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,d="data"+(s||""),f="valid"+a;if("#"==l||"#/"==l)e.isRoot?(r=e.async,i="validate"):(r=!0===e.root.schema.$async,i="root.refVal[0]");else{var p=e.resolveRef(e.baseId,l,e.isRoot);if(void 0===p){var h=e.MissingRefError.message(e.baseId,l);if("fail"==e.opts.missingRefs){e.logger.error(h),(y=y||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { ref: '"+e.util.escapeQuotes(l)+"' } ",!1!==e.opts.messages&&(o+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(l)+"' "),e.opts.verbose&&(o+=" , schema: "+e.util.toQuotedString(l)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var m=o;o=y.pop(),!e.compositeRule&&c?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(o+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,l,h);e.logger.warn(h),c&&(o+=" if (true) { ")}}else if(p.inline){var g=e.util.copy(e);g.level++;var v="valid"+g.level;g.schema=p.schema,g.schemaPath="",g.errSchemaPath=l,o+=" "+e.validate(g).replace(/validate\.schema/g,p.code)+" ",c&&(o+=" if ("+v+") { ")}else r=!0===p.$async||e.async&&!1!==p.$async,i=p.code}if(i){var y;(y=y||[]).push(o),o="",e.opts.passContext?o+=" "+i+".call(this, ":o+=" "+i+"( ",o+=" "+d+", (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var b=o+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(o=y.pop(),r){if(!e.async)throw new Error("async schema referenced by sync schema");c&&(o+=" var "+f+"; "),o+=" try { await "+b+"; ",c&&(o+=" "+f+" = true; "),o+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",c&&(o+=" "+f+" = false; "),o+=" } ",c&&(o+=" if ("+f+") { ")}else o+=" if (!"+b+") { if (vErrors === null) vErrors = "+i+".errors; else vErrors = vErrors.concat("+i+".errors); errors = vErrors.length; } ",c&&(o+=" else { ")}return o}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.schema[t],o=e.schemaPath+e.util.getProperty(t),a=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,l=e.util.copy(e),u="";l.level++;var c="valid"+l.level,d=l.baseId,f=!0,p=i;if(p)for(var h,m=-1,g=p.length-1;m<g;)h=p[m+=1],(e.opts.strictKeywords?"object"==typeof h&&Object.keys(h).length>0:e.util.schemaHasRules(h,e.RULES.all))&&(f=!1,l.schema=h,l.schemaPath=o+"["+m+"]",l.errSchemaPath=a+"/"+m,r+=" "+e.validate(l)+" ",l.baseId=d,s&&(r+=" if ("+c+") { ",u+="}"));return s&&(r+=f?" if (true) { ":" "+u.slice(0,-1)+" "),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(o||""),d="valid"+i,f="errs__"+i,p=e.util.copy(e),h="";p.level++;var m="valid"+p.level;if(a.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0:e.util.schemaHasRules(t,e.RULES.all)}))){var g=p.baseId;r+=" var "+f+" = errors; var "+d+" = false; ";var v=e.compositeRule;e.compositeRule=p.compositeRule=!0;var y=a;if(y)for(var b,_=-1,w=y.length-1;_<w;)b=y[_+=1],p.schema=b,p.schemaPath=s+"["+_+"]",p.errSchemaPath=l+"/"+_,r+=" "+e.validate(p)+" ",p.baseId=g,r+=" "+d+" = "+d+" || "+m+"; if (!"+d+") { ",h+="}";e.compositeRule=p.compositeRule=v,r+=" "+h+" if (!"+d+") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else u&&(r+=" if (true) { ");return r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.schema[t],o=e.errSchemaPath+"/"+t,a=(e.opts.allErrors,e.util.toQuotedString(i));return!0===e.opts.$comment?r+=" console.log("+a+");":"function"==typeof e.opts.$comment&&(r+=" self._opts.$comment("+a+", "+e.util.toQuotedString(o)+", validate.root.schema);"),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(o||""),d="valid"+i,f=e.opts.$data&&a&&a.$data;f&&(r+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; "),f||(r+=" var schema"+i+" = validate.schema"+s+";"),r+="var "+d+" = equal("+c+", schema"+i+"); if (!"+d+") { ";var p=p||[];p.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValue: schema"+i+" } ",!1!==e.opts.messages&&(r+=" , message: 'should be equal to constant' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var h=r;return r=p.pop(),!e.compositeRule&&u?e.async?r+=" throw new ValidationError(["+h+"]); ":r+=" validate.errors = ["+h+"]; return false; ":r+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",u&&(r+=" else { "),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(o||""),d="valid"+i,f="errs__"+i,p=e.util.copy(e);p.level++;var h="valid"+p.level,m="i"+i,g=p.dataLevel=e.dataLevel+1,v="data"+g,y=e.baseId,b=e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0:e.util.schemaHasRules(a,e.RULES.all);if(r+="var "+f+" = errors;var "+d+";",b){var _=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=a,p.schemaPath=s,p.errSchemaPath=l,r+=" var "+h+" = false; for (var "+m+" = 0; "+m+" < "+c+".length; "+m+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var w=c+"["+m+"]";p.dataPathArr[g]=m;var x=e.validate(p);p.baseId=y,e.util.varOccurences(x,v)<2?r+=" "+e.util.varReplace(x,v,w)+" ":r+=" var "+v+" = "+w+"; "+x+" ",r+=" if ("+h+") break; } ",e.compositeRule=p.compositeRule=_,r+=" if (!"+h+") {"}else r+=" if ("+c+".length == 0) {";var k=k||[];k.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should contain a valid item' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var E=r;return r=k.pop(),!e.compositeRule&&u?e.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ",b&&(r+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } "),e.opts.allErrors&&(r+=" } "),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(o||""),d="errs__"+i,f=e.util.copy(e),p="";f.level++;var h="valid"+f.level,m={},g={},v=e.opts.ownProperties;for(w in a)if("__proto__"!=w){var y=a[w],b=Array.isArray(y)?g:m;b[w]=y}r+="var "+d+" = errors;";var _=e.errorPath;for(var w in r+="var missing"+i+";",g)if((b=g[w]).length){if(r+=" if ( "+c+e.util.getProperty(w)+" !== undefined ",v&&(r+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(w)+"') "),u){r+=" && ( ";var x=b;if(x)for(var k=-1,E=x.length-1;k<E;){P=x[k+=1],k&&(r+=" || "),r+=" ( ( "+(j=c+(I=e.util.getProperty(P)))+" === undefined ",v&&(r+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(P)+"') "),r+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?P:I)+") ) "}r+=")) { ";var S="missing"+i,O="' + "+S+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(_,S,!0):_+" + "+S);var T=T||[];T.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+O+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(r+=" , message: 'should have ",1==b.length?r+="property "+e.util.escapeQuotes(b[0]):r+="properties "+e.util.escapeQuotes(b.join(", ")),r+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var C=r;r=T.pop(),!e.compositeRule&&u?e.async?r+=" throw new ValidationError(["+C+"]); ":r+=" validate.errors = ["+C+"]; return false; ":r+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{r+=" ) { ";var A=b;if(A)for(var P,R=-1,M=A.length-1;R<M;){P=A[R+=1];var I=e.util.getProperty(P),j=(O=e.util.escapeQuotes(P),c+I);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(_,P,e.opts.jsonPointers)),r+=" if ( "+j+" === undefined ",v&&(r+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(P)+"') "),r+=") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+O+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(r+=" , message: 'should have ",1==b.length?r+="property "+e.util.escapeQuotes(b[0]):r+="properties "+e.util.escapeQuotes(b.join(", ")),r+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r+=" } ",u&&(p+="}",r+=" else { ")}e.errorPath=_;var D=f.baseId;for(var w in m){y=m[w];(e.opts.strictKeywords?"object"==typeof y&&Object.keys(y).length>0:e.util.schemaHasRules(y,e.RULES.all))&&(r+=" "+h+" = true; if ( "+c+e.util.getProperty(w)+" !== undefined ",v&&(r+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(w)+"') "),r+=") { ",f.schema=y,f.schemaPath=s+e.util.getProperty(w),f.errSchemaPath=l+"/"+e.util.escapeFragment(w),r+=" "+e.validate(f)+" ",f.baseId=D,r+=" } ",u&&(r+=" if ("+h+") { ",p+="}"))}return u&&(r+=" "+p+" if ("+d+" == errors) {"),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(o||""),d="valid"+i,f=e.opts.$data&&a&&a.$data;f&&(r+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ");var p="i"+i,h="schema"+i;f||(r+=" var "+h+" = validate.schema"+s+";"),r+="var "+d+";",f&&(r+=" if (schema"+i+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+i+")) "+d+" = false; else {"),r+=d+" = false;for (var "+p+"=0; "+p+"<"+h+".length; "+p+"++) if (equal("+c+", "+h+"["+p+"])) { "+d+" = true; break; }",f&&(r+=" } "),r+=" if (!"+d+") { ";var m=m||[];m.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValues: schema"+i+" } ",!1!==e.opts.messages&&(r+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var g=r;return r=m.pop(),!e.compositeRule&&u?e.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",u&&(r+=" else { "),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(o||"");if(!1===e.opts.format)return u&&(r+=" if (true) { "),r;var d,f=e.opts.$data&&a&&a.$data;f?(r+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",d="schema"+i):d=a;var p=e.opts.unknownFormats,h=Array.isArray(p);if(f){r+=" var "+(m="format"+i)+" = formats["+d+"]; var "+(g="isObject"+i)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(v="formatType"+i)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(r+=" var async"+i+" = "+m+".async; "),r+=" "+m+" = "+m+".validate; } if ( ",f&&(r+=" ("+d+" !== undefined && typeof "+d+" != 'string') || "),r+=" (","ignore"!=p&&(r+=" ("+d+" && !"+m+" ",h&&(r+=" && self._opts.unknownFormats.indexOf("+d+") == -1 "),r+=") || "),r+=" ("+m+" && "+v+" == '"+n+"' && !(typeof "+m+" == 'function' ? ",e.async?r+=" (async"+i+" ? await "+m+"("+c+") : "+m+"("+c+")) ":r+=" "+m+"("+c+") ",r+=" : "+m+".test("+c+"))))) {"}else{var m;if(!(m=e.formats[a])){if("ignore"==p)return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(r+=" if (true) { "),r;if(h&&p.indexOf(a)>=0)return u&&(r+=" if (true) { "),r;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,v=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var y=!0===m.async;m=m.validate}if(v!=n)return u&&(r+=" if (true) { "),r;if(y){if(!e.async)throw new Error("async format in sync schema");r+=" if (!(await "+(b="formats"+e.util.getProperty(a)+".validate")+"("+c+"))) { "}else{r+=" if (! ";var b="formats"+e.util.getProperty(a);g&&(b+=".validate"),r+="function"==typeof m?" "+b+"("+c+") ":" "+b+".test("+c+") ",r+=") { "}}var _=_||[];_.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { format: ",r+=f?""+d:""+e.util.toQuotedString(a),r+=" } ",!1!==e.opts.messages&&(r+=" , message: 'should match format \"",r+=f?"' + "+d+" + '":""+e.util.escapeQuotes(a),r+="\"' "),e.opts.verbose&&(r+=" , schema: ",r+=f?"validate.schema"+s:""+e.util.toQuotedString(a),r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var w=r;return r=_.pop(),!e.compositeRule&&u?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",u&&(r+=" else { "),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(o||""),d="valid"+i,f="errs__"+i,p=e.util.copy(e);p.level++;var h="valid"+p.level,m=e.schema.then,g=e.schema.else,v=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0:e.util.schemaHasRules(m,e.RULES.all)),y=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0:e.util.schemaHasRules(g,e.RULES.all)),b=p.baseId;if(v||y){var _;p.createErrors=!1,p.schema=a,p.schemaPath=s,p.errSchemaPath=l,r+=" var "+f+" = errors; var "+d+" = true; ";var w=e.compositeRule;e.compositeRule=p.compositeRule=!0,r+=" "+e.validate(p)+" ",p.baseId=b,p.createErrors=!0,r+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.compositeRule=p.compositeRule=w,v?(r+=" if ("+h+") { ",p.schema=e.schema.then,p.schemaPath=e.schemaPath+".then",p.errSchemaPath=e.errSchemaPath+"/then",r+=" "+e.validate(p)+" ",p.baseId=b,r+=" "+d+" = "+h+"; ",v&&y?r+=" var "+(_="ifClause"+i)+" = 'then'; ":_="'then'",r+=" } ",y&&(r+=" else { ")):r+=" if (!"+h+") { ",y&&(p.schema=e.schema.else,p.schemaPath=e.schemaPath+".else",p.errSchemaPath=e.errSchemaPath+"/else",r+=" "+e.validate(p)+" ",p.baseId=b,r+=" "+d+" = "+h+"; ",v&&y?r+=" var "+(_="ifClause"+i)+" = 'else'; ":_="'else'",r+=" } "),r+=" if (!"+d+") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { failingKeyword: "+_+" } ",!1!==e.opts.messages&&(r+=" , message: 'should match \"' + "+_+" + '\" schema' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } ",u&&(r+=" else { ")}else u&&(r+=" if (true) { ");return r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(o||""),d="valid"+i,f="errs__"+i,p=e.util.copy(e),h="";p.level++;var m="valid"+p.level,g="i"+i,v=p.dataLevel=e.dataLevel+1,y="data"+v,b=e.baseId;if(r+="var "+f+" = errors;var "+d+";",Array.isArray(a)){var _=e.schema.additionalItems;if(!1===_){r+=" "+d+" = "+c+".length <= "+a.length+"; ";var w=l;l=e.errSchemaPath+"/additionalItems",r+=" if (!"+d+") { ";var x=x||[];x.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+a.length+" } ",!1!==e.opts.messages&&(r+=" , message: 'should NOT have more than "+a.length+" items' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var k=r;r=x.pop(),!e.compositeRule&&u?e.async?r+=" throw new ValidationError(["+k+"]); ":r+=" validate.errors = ["+k+"]; return false; ":r+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",l=w,u&&(h+="}",r+=" else { ")}var E=a;if(E)for(var S,O=-1,T=E.length-1;O<T;)if(S=E[O+=1],e.opts.strictKeywords?"object"==typeof S&&Object.keys(S).length>0:e.util.schemaHasRules(S,e.RULES.all)){r+=" "+m+" = true; if ("+c+".length > "+O+") { ";var C=c+"["+O+"]";p.schema=S,p.schemaPath=s+"["+O+"]",p.errSchemaPath=l+"/"+O,p.errorPath=e.util.getPathExpr(e.errorPath,O,e.opts.jsonPointers,!0),p.dataPathArr[v]=O;var A=e.validate(p);p.baseId=b,e.util.varOccurences(A,y)<2?r+=" "+e.util.varReplace(A,y,C)+" ":r+=" var "+y+" = "+C+"; "+A+" ",r+=" } ",u&&(r+=" if ("+m+") { ",h+="}")}if("object"==typeof _&&(e.opts.strictKeywords?"object"==typeof _&&Object.keys(_).length>0:e.util.schemaHasRules(_,e.RULES.all))){p.schema=_,p.schemaPath=e.schemaPath+".additionalItems",p.errSchemaPath=e.errSchemaPath+"/additionalItems",r+=" "+m+" = true; if ("+c+".length > "+a.length+") { for (var "+g+" = "+a.length+"; "+g+" < "+c+".length; "+g+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);C=c+"["+g+"]";p.dataPathArr[v]=g;A=e.validate(p);p.baseId=b,e.util.varOccurences(A,y)<2?r+=" "+e.util.varReplace(A,y,C)+" ":r+=" var "+y+" = "+C+"; "+A+" ",u&&(r+=" if (!"+m+") break; "),r+=" } } ",u&&(r+=" if ("+m+") { ",h+="}")}}else if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=l,r+=" for (var "+g+" = 0; "+g+" < "+c+".length; "+g+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);C=c+"["+g+"]";p.dataPathArr[v]=g;A=e.validate(p);p.baseId=b,e.util.varOccurences(A,y)<2?r+=" "+e.util.varReplace(A,y,C)+" ":r+=" var "+y+" = "+C+"; "+A+" ",u&&(r+=" if (!"+m+") break; "),r+=" }"}return u&&(r+=" "+h+" if ("+f+" == errors) {"),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,d="data"+(a||""),f=e.opts.$data&&s&&s.$data;if(f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,!f&&"number"!=typeof s)throw new Error(t+" must be number");i+="var division"+o+";if (",f&&(i+=" "+r+" !== undefined && ( typeof "+r+" != 'number' || "),i+=" (division"+o+" = "+d+" / "+r+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+o+" !== parseInt(division"+o+") ",i+=" ) ",f&&(i+=" ) "),i+=" ) { ";var p=p||[];p.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be multiple of ",i+=f?"' + "+r:r+"'"),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+l:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ";var h=i;return i=p.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+h+"]); ":i+=" validate.errors = ["+h+"]; return false; ":i+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(o||""),d="errs__"+i,f=e.util.copy(e);f.level++;var p="valid"+f.level;if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0:e.util.schemaHasRules(a,e.RULES.all)){f.schema=a,f.schemaPath=s,f.errSchemaPath=l,r+=" var "+d+" = errors; ";var h,m=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.createErrors=!1,f.opts.allErrors&&(h=f.opts.allErrors,f.opts.allErrors=!1),r+=" "+e.validate(f)+" ",f.createErrors=!0,h&&(f.opts.allErrors=h),e.compositeRule=f.compositeRule=m,r+=" if ("+p+") { ";var g=g||[];g.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var v=r;r=g.pop(),!e.compositeRule&&u?e.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else r+=" var err = ",!1!==e.createErrors?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(r+=" if (false) { ");return r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(o||""),d="valid"+i,f="errs__"+i,p=e.util.copy(e),h="";p.level++;var m="valid"+p.level,g=p.baseId,v="prevValid"+i,y="passingSchemas"+i;r+="var "+f+" = errors , "+v+" = false , "+d+" = false , "+y+" = null; ";var b=e.compositeRule;e.compositeRule=p.compositeRule=!0;var _=a;if(_)for(var w,x=-1,k=_.length-1;x<k;)w=_[x+=1],(e.opts.strictKeywords?"object"==typeof w&&Object.keys(w).length>0:e.util.schemaHasRules(w,e.RULES.all))?(p.schema=w,p.schemaPath=s+"["+x+"]",p.errSchemaPath=l+"/"+x,r+=" "+e.validate(p)+" ",p.baseId=g):r+=" var "+m+" = true; ",x&&(r+=" if ("+m+" && "+v+") { "+d+" = false; "+y+" = ["+y+", "+x+"]; } else { ",h+="}"),r+=" if ("+m+") { "+d+" = "+v+" = true; "+y+" = "+x+"; }";return e.compositeRule=p.compositeRule=b,r+=h+"if (!"+d+") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { passingSchemas: "+y+" } ",!1!==e.opts.messages&&(r+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+="} else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; }",e.opts.allErrors&&(r+=" } "),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,d="data"+(a||""),f=e.opts.$data&&s&&s.$data;f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,i+="if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'string') || "),i+=" !"+(f?"(new RegExp("+r+"))":e.usePattern(s))+".test("+d+") ) { ";var p=p||[];p.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",i+=f?""+r:""+e.util.toQuotedString(s),i+=" } ",!1!==e.opts.messages&&(i+=" , message: 'should match pattern \"",i+=f?"' + "+r+" + '":""+e.util.escapeQuotes(s),i+="\"' "),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+l:""+e.util.toQuotedString(s),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ";var h=i;return i=p.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+h+"]); ":i+=" validate.errors = ["+h+"]; return false; ":i+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(o||""),d="errs__"+i,f=e.util.copy(e),p="";f.level++;var h="valid"+f.level,m="key"+i,g="idx"+i,v=f.dataLevel=e.dataLevel+1,y="data"+v,b="dataProperties"+i,_=Object.keys(a||{}).filter(I),w=e.schema.patternProperties||{},x=Object.keys(w).filter(I),k=e.schema.additionalProperties,E=_.length||x.length,S=!1===k,O="object"==typeof k&&Object.keys(k).length,T=e.opts.removeAdditional,C=S||O||T,A=e.opts.ownProperties,P=e.baseId,R=e.schema.required;if(R&&(!e.opts.$data||!R.$data)&&R.length<e.opts.loopRequired)var M=e.util.toHash(R);function I(e){return"__proto__"!==e}if(r+="var "+d+" = errors;var "+h+" = true;",A&&(r+=" var "+b+" = undefined;"),C){if(r+=A?" "+b+" = "+b+" || Object.keys("+c+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+c+") { ",E){if(r+=" var isAdditional"+i+" = !(false ",_.length)if(_.length>8)r+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var j=_;if(j)for(var D=-1,L=j.length-1;D<L;)Y=j[D+=1],r+=" || "+m+" == "+e.util.toQuotedString(Y)+" "}if(x.length){var N=x;if(N)for(var F=-1,B=N.length-1;F<B;)oe=N[F+=1],r+=" || "+e.usePattern(oe)+".test("+m+") "}r+=" ); if (isAdditional"+i+") { "}if("all"==T)r+=" delete "+c+"["+m+"]; ";else{var z=e.errorPath,U="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),S)if(T)r+=" delete "+c+"["+m+"]; ";else{r+=" "+h+" = false; ";var q=l;l=e.errSchemaPath+"/additionalProperties",(ne=ne||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { additionalProperty: '"+U+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is an invalid additional property":r+="should NOT have additional properties",r+="' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var H=r;r=ne.pop(),!e.compositeRule&&u?e.async?r+=" throw new ValidationError(["+H+"]); ":r+=" validate.errors = ["+H+"]; return false; ":r+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=q,u&&(r+=" break; ")}else if(O)if("failing"==T){r+=" var "+d+" = errors; ";var W=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=k,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var V=c+"["+m+"]";f.dataPathArr[v]=m;var $=e.validate(f);f.baseId=P,e.util.varOccurences($,y)<2?r+=" "+e.util.varReplace($,y,V)+" ":r+=" var "+y+" = "+V+"; "+$+" ",r+=" if (!"+h+") { errors = "+d+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+c+"["+m+"]; } ",e.compositeRule=f.compositeRule=W}else{f.schema=k,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);V=c+"["+m+"]";f.dataPathArr[v]=m;$=e.validate(f);f.baseId=P,e.util.varOccurences($,y)<2?r+=" "+e.util.varReplace($,y,V)+" ":r+=" var "+y+" = "+V+"; "+$+" ",u&&(r+=" if (!"+h+") break; ")}e.errorPath=z}E&&(r+=" } "),r+=" } ",u&&(r+=" if ("+h+") { ",p+="}")}var G=e.opts.useDefaults&&!e.compositeRule;if(_.length){var K=_;if(K)for(var Y,Q=-1,X=K.length-1;Q<X;){var J=a[Y=K[Q+=1]];if(e.opts.strictKeywords?"object"==typeof J&&Object.keys(J).length>0:e.util.schemaHasRules(J,e.RULES.all)){var Z=e.util.getProperty(Y),ee=(V=c+Z,G&&void 0!==J.default);f.schema=J,f.schemaPath=s+Z,f.errSchemaPath=l+"/"+e.util.escapeFragment(Y),f.errorPath=e.util.getPath(e.errorPath,Y,e.opts.jsonPointers),f.dataPathArr[v]=e.util.toQuotedString(Y);$=e.validate(f);if(f.baseId=P,e.util.varOccurences($,y)<2){$=e.util.varReplace($,y,V);var te=V}else{te=y;r+=" var "+y+" = "+V+"; "}if(ee)r+=" "+$+" ";else{if(M&&M[Y]){r+=" if ( "+te+" === undefined ",A&&(r+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(Y)+"') "),r+=") { "+h+" = false; ";z=e.errorPath,q=l;var ne,re=e.util.escapeQuotes(Y);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(z,Y,e.opts.jsonPointers)),l=e.errSchemaPath+"/required",(ne=ne||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+re+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+re+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";H=r;r=ne.pop(),!e.compositeRule&&u?e.async?r+=" throw new ValidationError(["+H+"]); ":r+=" validate.errors = ["+H+"]; return false; ":r+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=q,e.errorPath=z,r+=" } else { "}else u?(r+=" if ( "+te+" === undefined ",A&&(r+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(Y)+"') "),r+=") { "+h+" = true; } else { "):(r+=" if ("+te+" !== undefined ",A&&(r+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(Y)+"') "),r+=" ) { ");r+=" "+$+" } "}}u&&(r+=" if ("+h+") { ",p+="}")}}if(x.length){var ie=x;if(ie)for(var oe,ae=-1,se=ie.length-1;ae<se;){J=w[oe=ie[ae+=1]];if(e.opts.strictKeywords?"object"==typeof J&&Object.keys(J).length>0:e.util.schemaHasRules(J,e.RULES.all)){f.schema=J,f.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(oe),f.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(oe),r+=A?" "+b+" = "+b+" || Object.keys("+c+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+c+") { ",r+=" if ("+e.usePattern(oe)+".test("+m+")) { ",f.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);V=c+"["+m+"]";f.dataPathArr[v]=m;$=e.validate(f);f.baseId=P,e.util.varOccurences($,y)<2?r+=" "+e.util.varReplace($,y,V)+" ":r+=" var "+y+" = "+V+"; "+$+" ",u&&(r+=" if (!"+h+") break; "),r+=" } ",u&&(r+=" else "+h+" = true; "),r+=" } ",u&&(r+=" if ("+h+") { ",p+="}")}}}return u&&(r+=" "+p+" if ("+d+" == errors) {"),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(o||""),d="errs__"+i,f=e.util.copy(e);f.level++;var p="valid"+f.level;if(r+="var "+d+" = errors;",e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0:e.util.schemaHasRules(a,e.RULES.all)){f.schema=a,f.schemaPath=s,f.errSchemaPath=l;var h="key"+i,m="idx"+i,g="i"+i,v="' + "+h+" + '",y="data"+(f.dataLevel=e.dataLevel+1),b="dataProperties"+i,_=e.opts.ownProperties,w=e.baseId;_&&(r+=" var "+b+" = undefined; "),r+=_?" "+b+" = "+b+" || Object.keys("+c+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+h+" = "+b+"["+m+"]; ":" for (var "+h+" in "+c+") { ",r+=" var startErrs"+i+" = errors; ";var x=h,k=e.compositeRule;e.compositeRule=f.compositeRule=!0;var E=e.validate(f);f.baseId=w,e.util.varOccurences(E,y)<2?r+=" "+e.util.varReplace(E,y,x)+" ":r+=" var "+y+" = "+x+"; "+E+" ",e.compositeRule=f.compositeRule=k,r+=" if (!"+p+") { for (var "+g+"=startErrs"+i+"; "+g+"<errors; "+g+"++) { vErrors["+g+"].propertyName = "+h+"; } var err = ",!1!==e.createErrors?(r+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { propertyName: '"+v+"' } ",!1!==e.opts.messages&&(r+=" , message: 'property name \\'"+v+"\\' is invalid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),u&&(r+=" break; "),r+=" } }"}return u&&(r+=" if ("+d+" == errors) {"),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(o||""),d="valid"+i,f=e.opts.$data&&a&&a.$data;f&&(r+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ");var p="schema"+i;if(!f)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var h=[],m=a;if(m)for(var g,v=-1,y=m.length-1;v<y;){g=m[v+=1];var b=e.schema.properties[g];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0:e.util.schemaHasRules(b,e.RULES.all))||(h[h.length]=g)}}else h=a;if(f||h.length){var _=e.errorPath,w=f||h.length>=e.opts.loopRequired,x=e.opts.ownProperties;if(u)if(r+=" var missing"+i+"; ",w){f||(r+=" var "+p+" = validate.schema"+s+"; ");var k="' + "+(A="schema"+i+"["+(O="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(_,A,e.opts.jsonPointers)),r+=" var "+d+" = true; ",f&&(r+=" if (schema"+i+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+i+")) "+d+" = false; else {"),r+=" for (var "+O+" = 0; "+O+" < "+p+".length; "+O+"++) { "+d+" = "+c+"["+p+"["+O+"]] !== undefined ",x&&(r+=" && Object.prototype.hasOwnProperty.call("+c+", "+p+"["+O+"]) "),r+="; if (!"+d+") break; } ",f&&(r+=" } "),r+=" if (!"+d+") { ",(C=C||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var E=r;r=C.pop(),!e.compositeRule&&u?e.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else{r+=" if ( ";var S=h;if(S)for(var O=-1,T=S.length-1;O<T;){R=S[O+=1],O&&(r+=" || "),r+=" ( ( "+(D=c+(j=e.util.getProperty(R)))+" === undefined ",x&&(r+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(R)+"') "),r+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?R:j)+") ) "}r+=") { ";var C;k="' + "+(A="missing"+i)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(_,A,!0):_+" + "+A),(C=C||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";E=r;r=C.pop(),!e.compositeRule&&u?e.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else if(w){f||(r+=" var "+p+" = validate.schema"+s+"; ");var A;k="' + "+(A="schema"+i+"["+(O="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(_,A,e.opts.jsonPointers)),f&&(r+=" if ("+p+" && !Array.isArray("+p+")) { var err = ",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+p+" !== undefined) { "),r+=" for (var "+O+" = 0; "+O+" < "+p+".length; "+O+"++) { if ("+c+"["+p+"["+O+"]] === undefined ",x&&(r+=" || ! Object.prototype.hasOwnProperty.call("+c+", "+p+"["+O+"]) "),r+=") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",f&&(r+=" } ")}else{var P=h;if(P)for(var R,M=-1,I=P.length-1;M<I;){R=P[M+=1];var j=e.util.getProperty(R),D=(k=e.util.escapeQuotes(R),c+j);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(_,R,e.opts.jsonPointers)),r+=" if ( "+D+" === undefined ",x&&(r+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(R)+"') "),r+=") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=_}else u&&(r+=" if (true) {");return r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,d="data"+(a||""),f="valid"+o,p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,(s||p)&&!1!==e.opts.uniqueItems){p&&(i+=" var "+f+"; if ("+r+" === false || "+r+" === undefined) "+f+" = true; else if (typeof "+r+" != 'boolean') "+f+" = false; else { "),i+=" var i = "+d+".length , "+f+" = true , j; if (i > 1) { ";var h=e.schema.items&&e.schema.items.type,m=Array.isArray(h);if(!h||"object"==h||"array"==h||m&&(h.indexOf("object")>=0||h.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+f+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var g="checkDataType"+(m?"s":"");i+=" if ("+e.util[g](h,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(i+=" if (typeof item == 'string') item = '\"' + item; "),i+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",p&&(i+=" } "),i+=" if (!"+f+") { ";var v=v||[];v.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+l:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ";var y=i;i=v.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",c&&(i+=" else { ")}else c&&(i+=" if (true) { ");return i}},function(e,t,n){"use strict";var r=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,t){for(var n=0;n<t.length;n++){e=JSON.parse(JSON.stringify(e));var i,o=t[n].split("/"),a=e;for(i=1;i<o.length;i++)a=a[o[i]];for(i=0;i<r.length;i++){var s=r[i],l=a[s];l&&(a[s]={anyOf:[l,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},function(e,t,n){"use strict";var r=n(342).MissingRef;e.exports=function e(t,n,i){var o=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof n&&(i=n,n=void 0);var a=s(t).then((function(){var e=o._addSchema(t,void 0,n);return e.validate||function e(t){try{return o._compile(t)}catch(e){if(e instanceof r)return i(e);throw e}function i(r){var i=r.missingSchema;if(u(i))throw new Error("Schema "+i+" is loaded but "+r.missingRef+" cannot be resolved");var a=o._loadingSchemas[i];return a||(a=o._loadingSchemas[i]=o._opts.loadSchema(i)).then(l,l),a.then((function(e){if(!u(i))return s(e).then((function(){u(i)||o.addSchema(e,i,void 0,n)}))})).then((function(){return e(t)}));function l(){delete o._loadingSchemas[i]}function u(e){return o._refs[e]||o._schemas[e]}}}(e)}));i&&a.then((function(e){i(null,e)}),i);return a;function s(t){var n=t.$schema;return n&&!o.getSchema(n)?e.call(o,{$ref:n},!0):Promise.resolve()}}},function(e,t,n){"use strict";var r=/^[a-z_$][a-z0-9_$-]*$/i,i=n(866),o=n(867);e.exports={add:function(e,t){var n=this.RULES;if(n.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!r.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var o=t.type;if(Array.isArray(o))for(var a=0;a<o.length;a++)l(e,o[a],t);else l(e,o,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(s,!0))}function l(e,t,r){for(var o,a=0;a<n.length;a++){var s=n[a];if(s.type==t){o=s;break}}o||(o={type:t,rules:[]},n.push(o));var l={keyword:e,definition:r,custom:!0,code:i,implements:r.implements};o.rules.push(l),n.custom[e]=l}return n.keywords[e]=n.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var n=0;n<t.length;n++)for(var r=t[n].rules,i=0;i<r.length;i++)if(r[i].keyword==e){r.splice(i,1);break}return this},validate:function e(t,n){e.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(o,!0);if(r(t))return!0;if(e.errors=r.errors,n)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o=" ",a=e.level,s=e.dataLevel,l=e.schema[t],u=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,f="data"+(s||""),p="valid"+a,h="errs__"+a,m=e.opts.$data&&l&&l.$data;m?(o+=" var schema"+a+" = "+e.util.getData(l.$data,s,e.dataPathArr)+"; ",i="schema"+a):i=l;var g,v,y,b,_,w="definition"+a,x=this.definition,k="";if(m&&x.$data){_="keywordValidate"+a;var E=x.validateSchema;o+=" var "+w+" = RULES.custom['"+t+"'].definition; var "+_+" = "+w+".validate;"}else{if(!(b=e.useCustomRule(this,l,e.schema,e)))return;i="validate.schema"+u,_=b.code,g=x.compile,v=x.inline,y=x.macro}var S=_+".errors",O="i"+a,T="ruleErr"+a,C=x.async;if(C&&!e.async)throw new Error("async keyword in sync schema");if(v||y||(o+=S+" = null;"),o+="var "+h+" = errors;var "+p+";",m&&x.$data&&(k+="}",o+=" if ("+i+" === undefined) { "+p+" = true; } else { ",E&&(k+="}",o+=" "+p+" = "+w+".validateSchema("+i+"); if ("+p+") { ")),v)x.statements?o+=" "+b.validate+" ":o+=" "+p+" = "+b.validate+"; ";else if(y){var A=e.util.copy(e);k="";A.level++;var P="valid"+A.level;A.schema=b.validate,A.schemaPath="";var R=e.compositeRule;e.compositeRule=A.compositeRule=!0;var M=e.validate(A).replace(/validate\.schema/g,_);e.compositeRule=A.compositeRule=R,o+=" "+M}else{(L=L||[]).push(o),o="",o+=" "+_+".call( ",e.opts.passContext?o+="this":o+="self",g||!1===x.schema?o+=" , "+f+" ":o+=" , "+i+" , "+f+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var I=s?"data"+(s-1||""):"parentData",j=s?e.dataPathArr[s]:"parentDataProperty",D=o+=" , "+I+" , "+j+" , rootData ) ";o=L.pop(),!1===x.errors?(o+=" "+p+" = ",C&&(o+="await "),o+=D+"; "):o+=C?" var "+(S="customErrors"+a)+" = null; try { "+p+" = await "+D+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+S+" = e.errors; else throw e; } ":" "+S+" = null; "+p+" = "+D+"; "}if(x.modifying&&(o+=" if ("+I+") "+f+" = "+I+"["+j+"];"),o+=""+k,x.valid)d&&(o+=" if (true) { ");else{var L;o+=" if ( ",void 0===x.valid?(o+=" !",o+=y?""+P:""+p):o+=" "+!x.valid+" ",o+=") { ",r=this.keyword,(L=L||[]).push(o),o="",(L=L||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(r||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { keyword: '"+this.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+this.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var N=o;o=L.pop(),!e.compositeRule&&d?e.async?o+=" throw new ValidationError(["+N+"]); ":o+=" validate.errors = ["+N+"]; return false; ":o+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var F=o;o=L.pop(),v?x.errors?"full"!=x.errors&&(o+=" for (var "+O+"="+h+"; "+O+"<errors; "+O+"++) { var "+T+" = vErrors["+O+"]; if ("+T+".dataPath === undefined) "+T+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+T+".schemaPath === undefined) { "+T+'.schemaPath = "'+c+'"; } ',e.opts.verbose&&(o+=" "+T+".schema = "+i+"; "+T+".data = "+f+"; "),o+=" } "):!1===x.errors?o+=" "+F+" ":(o+=" if ("+h+" == errors) { "+F+" } else { for (var "+O+"="+h+"; "+O+"<errors; "+O+"++) { var "+T+" = vErrors["+O+"]; if ("+T+".dataPath === undefined) "+T+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+T+".schemaPath === undefined) { "+T+'.schemaPath = "'+c+'"; } ',e.opts.verbose&&(o+=" "+T+".schema = "+i+"; "+T+".data = "+f+"; "),o+=" } } "):y?(o+=" var err = ",!1!==e.createErrors?(o+=" { keyword: '"+(r||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { keyword: '"+this.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+this.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&d&&(e.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; ")):!1===x.errors?o+=" "+F+" ":(o+=" if (Array.isArray("+S+")) { if (vErrors === null) vErrors = "+S+"; else vErrors = vErrors.concat("+S+"); errors = vErrors.length; for (var "+O+"="+h+"; "+O+"<errors; "+O+"++) { var "+T+" = vErrors["+O+"]; if ("+T+".dataPath === undefined) "+T+".dataPath = (dataPath || '') + "+e.errorPath+"; "+T+'.schemaPath = "'+c+'"; ',e.opts.verbose&&(o+=" "+T+".schema = "+i+"; "+T+".data = "+f+"; "),o+=" } } else { "+F+" } "),o+=" } ",d&&(o+=" else { ")}return o}},function(e,t,n){"use strict";var r=n(483);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:r.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:r.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},function(e){e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},function(e,t,n){"use strict";e.exports={instanceof:n(870),range:n(871),regexp:n(872),typeof:n(873),dynamicDefaults:n(874),allRequired:n(875),anyRequired:n(876),oneRequired:n(877),prohibited:n(878),uniqueItemProperties:n(879),deepProperties:n(880),deepRequired:n(881),formatMinimum:n(882),formatMaximum:n(884),patternRequired:n(885),switch:n(887),select:n(889),transform:n(890)}},function(e,t,n){"use strict";(function(t){var n={Object:Object,Array:Array,Function:Function,Number:Number,String:String,Date:Date,RegExp:RegExp};e.exports=function e(r){return void 0!==t&&(n.Buffer=t),"undefined"!=typeof Promise&&(n.Promise=Promise),e.definition={compile:function(e){if("string"==typeof e){var t=i(e);return function(e){return e instanceof t}}var n=e.map(i);return function(e){for(var t=0;t<n.length;t++)if(e instanceof n[t])return!0;return!1}},CONSTRUCTORS:n,metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},r.addKeyword("instanceof",e.definition),r;function i(e){var t=n[e];if(t)return t;throw new Error('invalid "instanceof" keyword value '+e)}}}).call(this,n(157).Buffer)},function(e,t,n){"use strict";e.exports=function e(t){return e.definition={type:"number",macro:function(e,t){var n=e[0],r=e[1],i=t.exclusiveRange;return function(e,t,n){if(void 0!==n&&"boolean"!=typeof n)throw new Error("Invalid schema for exclusiveRange keyword, should be boolean");if(e>t||n&&e==t)throw new Error("There are no numbers in range")}(n,r,i),!0===i?{exclusiveMinimum:n,exclusiveMaximum:r}:{minimum:n,maximum:r}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}},t.addKeyword("range",e.definition),t.addKeyword("exclusiveRange"),t}},function(e,t,n){"use strict";e.exports=function e(t){return e.definition={type:"string",inline:function(e,t,n){return function(){try{if("object"==typeof n)return new RegExp(n.pattern,n.flags);var e=n.match(/^\/(.*)\/([gimuy]*)$/);if(e)return new RegExp(e[1],e[2]);throw new Error("cannot parse string into RegExp")}catch(e){throw console.error("regular expression",n,"is invalid"),e}}()+".test(data"+(e.dataLevel||"")+")"},metaSchema:{type:["string","object"],properties:{pattern:{type:"string"},flags:{type:"string"}},required:["pattern"],additionalProperties:!1}},t.addKeyword("regexp",e.definition),t}},function(e,t,n){"use strict";var r=["undefined","string","number","object","function","boolean","symbol"];e.exports=function e(t){return e.definition={inline:function(e,t,n){var r="data"+(e.dataLevel||"");return"string"==typeof n?"typeof "+r+' == "'+n+'"':(n="validate.schema"+e.schemaPath+"."+t)+".indexOf(typeof "+r+") >= 0"},metaSchema:{anyOf:[{type:"string",enum:r},{type:"array",items:{type:"string",enum:r}}]}},t.addKeyword("typeof",e.definition),t}},function(e,t,n){"use strict";var r={},i={timestamp:function(){return Date.now()},datetime:function(){return(new Date).toISOString()},date:function(){return(new Date).toISOString().slice(0,10)},time:function(){return(new Date).toISOString().slice(11)},random:function(){return Math.random()},randomint:function(e){var t=e&&e.max||2;return function(){return Math.floor(Math.random()*t)}},seq:function(e){var t=e&&e.name||"";return r[t]=r[t]||0,function(){return r[t]++}}};e.exports=function e(t){return e.definition={compile:function(e,t,r){var i={};for(var o in e){var a=e[o],s=n("string"==typeof a?a:a.func);i[o]=s.length?s(a.args):s}return r.opts.useDefaults&&!r.compositeRule?function(t){for(var n in e)void 0!==t[n]&&("empty"!=r.opts.useDefaults||null!==t[n]&&""!==t[n])||(t[n]=i[n]());return!0}:function(){return!0}},DEFAULTS:i,metaSchema:{type:"object",additionalProperties:{type:["string","object"],additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}}},t.addKeyword("dynamicDefaults",e.definition),t;function n(e){var t=i[e];if(t)return t;throw new Error('invalid "dynamicDefaults" keyword property value: '+e)}}},function(e,t,n){"use strict";e.exports=function e(t){return e.definition={type:"object",macro:function(e,t){if(!e)return!0;var n=Object.keys(t.properties);return 0==n.length||{required:n}},metaSchema:{type:"boolean"},dependencies:["properties"]},t.addKeyword("allRequired",e.definition),t}},function(e,t,n){"use strict";e.exports=function e(t){return e.definition={type:"object",macro:function(e){return 0==e.length||(1==e.length?{required:e}:{anyOf:e.map((function(e){return{required:[e]}}))})},metaSchema:{type:"array",items:{type:"string"}}},t.addKeyword("anyRequired",e.definition),t}},function(e,t,n){"use strict";e.exports=function e(t){return e.definition={type:"object",macro:function(e){return 0==e.length||(1==e.length?{required:e}:{oneOf:e.map((function(e){return{required:[e]}}))})},metaSchema:{type:"array",items:{type:"string"}}},t.addKeyword("oneRequired",e.definition),t}},function(e,t,n){"use strict";e.exports=function e(t){return e.definition={type:"object",macro:function(e){return 0==e.length||(1==e.length?{not:{required:e}}:{not:{anyOf:e.map((function(e){return{required:[e]}}))}})},metaSchema:{type:"array",items:{type:"string"}}},t.addKeyword("prohibited",e.definition),t}},function(e,t,n){"use strict";var r=["number","integer","string","boolean","null"];e.exports=function e(t){return e.definition={type:"array",compile:function(e,t,n){var i=n.util.equal,o=function(e,t){return e.map((function(e){var n=t.items&&t.items.properties,i=n&&n[e]&&n[e].type;return Array.isArray(i)?i.indexOf("object")<0&&i.indexOf("array")<0:r.indexOf(i)>=0}))}(e,t);return function(t){if(t.length>1)for(var n=0;n<e.length;n++){var r,a=e[n];if(o[n]){var s={};for(r=t.length;r--;)if(t[r]&&"object"==typeof t[r]){var l=t[r][a];if(!l||"object"!=typeof l){if("string"==typeof l&&(l='"'+l),s[l])return!1;s[l]=!0}}}else for(r=t.length;r--;)if(t[r]&&"object"==typeof t[r])for(var u=r;u--;)if(t[u]&&"object"==typeof t[u]&&i(t[r][a],t[u][a]))return!1}return!0}},metaSchema:{type:"array",items:{type:"string"}}},t.addKeyword("uniqueItemProperties",e.definition),t}},function(e,t,n){"use strict";var r=n(343);function i(e,t){for(var n=e.split("/"),r={},i=r,o=1;o<n.length;o++){var a=n[o],s=o==n.length-1;a=a.replace(/~1/g,"/").replace(/~0/g,"~");var l=i.properties={},u=void 0;if(/[0-9]+/.test(a)){var c=+a;for(u=i.items=[];c--;)u.push({})}i=s?t:{},l[a]=i,u&&u.push(i)}return r}e.exports=function e(t){return e.definition={type:"object",macro:function(e){var t=[];for(var n in e)t.push(i(n,e[n]));return{allOf:t}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:r.metaSchemaRef(t)}},t.addKeyword("deepProperties",e.definition),t}},function(e,t,n){"use strict";function r(e,t){var n="data"+(t||"");if(!e)return n;for(var r,s=n,l=e.split("/"),u=1;u<l.length;u++){var c=l[u];s+=" && "+(n+=(r=c.replace(/~1/g,"/").replace(/~0/g,"~"),o.test(r)?"["+r+"]":i.test(r)?"."+r:"['"+r.replace(a,"\\$&")+"']"))}return s}e.exports=function e(t){return e.definition={type:"object",inline:function(e,t,n){for(var i="",o=0;o<n.length;o++)o&&(i+=" && "),i+="("+r(n[o],e.dataLevel)+" !== undefined)";return i},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}},t.addKeyword("deepRequired",e.definition),t};var i=/^[a-z$_][a-z$_0-9]*$/i,o=/^[0-9]+$/,a=/'|\\/g},function(e,t,n){"use strict";e.exports=n(484)("Minimum")},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(o||""),d="valid"+i;if(r+="var "+d+" = undefined;",!1===e.opts.format)return r+=" "+d+" = true; ";var f=e.schema.format,p=e.opts.$data&&f.$data,h="";if(p){r+=" var "+(m="format"+i)+" = formats["+e.util.getData(f.$data,o,e.dataPathArr)+"] , "+(g="compare"+i)+" = "+m+" && "+m+".compare;"}else{var m;if(!(m=e.formats[f])||!m.compare)return r+=" "+d+" = true; ";var g="formats"+e.util.getProperty(f)+".compare"}var v,y="formatMaximum"==t,b="formatExclusive"+(y?"Maximum":"Minimum"),_=e.schema[b],w=e.opts.$data&&_&&_.$data,x=y?"<":">",k="result"+i,E=e.opts.$data&&a&&a.$data;if(E?(r+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",v="schema"+i):v=a,w){var S=e.util.getData(_.$data,o,e.dataPathArr),O="exclusive"+i,T="' + "+(P="op"+i)+" + '";r+=" var schemaExcl"+i+" = "+S+"; ",r+=" if (typeof "+(S="schemaExcl"+i)+" != 'boolean' && "+S+" !== undefined) { "+d+" = false; ";var C=b;(R=R||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: '"+(C||"_formatExclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: '"+b+" should be boolean' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var A=r;r=R.pop(),!e.compositeRule&&u?e.async?r+=" throw new ValidationError(["+A+"]); ":r+=" validate.errors = ["+A+"]; return false; ":r+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",u&&(h+="}",r+=" else { "),E&&(r+=" if ("+v+" === undefined) "+d+" = true; else if (typeof "+v+" != 'string') "+d+" = false; else { ",h+="}"),p&&(r+=" if (!"+g+") "+d+" = true; else { ",h+="}"),r+=" var "+k+" = "+g+"("+c+", ",r+=E?""+v:""+e.util.toQuotedString(a),r+=" ); if ("+k+" === undefined) "+d+" = false; var "+O+" = "+S+" === true; if ("+d+" === undefined) { "+d+" = "+O+" ? "+k+" "+x+" 0 : "+k+" "+x+"= 0; } if (!"+d+") var op"+i+" = "+O+" ? '"+x+"' : '"+x+"=';"}else{T=x;(O=!0===_)||(T+="=");var P="'"+T+"'";E&&(r+=" if ("+v+" === undefined) "+d+" = true; else if (typeof "+v+" != 'string') "+d+" = false; else { ",h+="}"),p&&(r+=" if (!"+g+") "+d+" = true; else { ",h+="}"),r+=" var "+k+" = "+g+"("+c+", ",r+=E?""+v:""+e.util.toQuotedString(a),r+=" ); if ("+k+" === undefined) "+d+" = false; if ("+d+" === undefined) "+d+" = "+k+" "+x,O||(r+="="),r+=" 0;"}r+=h+"if (!"+d+") { ";var R;C=t;(R=R||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: '"+(C||"_formatLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+P+", limit: ",r+=E?""+v:""+e.util.toQuotedString(a),r+=" , exclusive: "+O+" } ",!1!==e.opts.messages&&(r+=" , message: 'should be "+T+' "',r+=E?"' + "+v+" + '":""+e.util.escapeQuotes(a),r+="\"' "),e.opts.verbose&&(r+=" , schema: ",r+=E?"validate.schema"+s:""+e.util.toQuotedString(a),r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";A=r;return r=R.pop(),!e.compositeRule&&u?e.async?r+=" throw new ValidationError(["+A+"]); ":r+=" validate.errors = ["+A+"]; return false; ":r+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="}"}},function(e,t,n){"use strict";e.exports=n(484)("Maximum")},function(e,t,n){"use strict";e.exports=function e(t){return e.definition={type:"object",inline:n(886),statements:!0,errors:"full",metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:!0}},t.addKeyword("patternRequired",e.definition),t}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(o||""),d="valid"+i,f="key"+i,p="idx"+i,h="patternMatched"+i,m="dataProperties"+i,g="",v=e.opts.ownProperties;r+="var "+d+" = true;",v&&(r+=" var "+m+" = undefined;");var y=a;if(y)for(var b,_=-1,w=y.length-1;_<w;){b=y[_+=1],r+=" var "+h+" = false; ",r+=v?" "+m+" = "+m+" || Object.keys("+c+"); for (var "+p+"=0; "+p+"<"+m+".length; "+p+"++) { var "+f+" = "+m+"["+p+"]; ":" for (var "+f+" in "+c+") { ",r+=" "+h+" = "+e.usePattern(b)+".test("+f+"); if ("+h+") break; } ";var x=e.util.escapeQuotes(b);r+=" if (!"+h+") { "+d+" = false; var err = ",!1!==e.createErrors?(r+=" { keyword: 'patternRequired' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingPattern: '"+x+"' } ",!1!==e.opts.messages&&(r+=" , message: 'should have property matching pattern \\'"+x+"\\'' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ",u&&(g+="}",r+=" else { ")}return r+=""+g}},function(e,t,n){"use strict";var r=n(343);e.exports=function e(t){if(!t.RULES.keywords.switch||!t.RULES.keywords.if){var i=r.metaSchemaRef(t);return e.definition={inline:n(888),statements:!0,errors:"full",metaSchema:{type:"array",items:{required:["then"],properties:{if:i,then:{anyOf:[{type:"boolean"},i]},continue:{type:"boolean"}},additionalProperties:!1,dependencies:{continue:["if"]}}}},t.addKeyword("switch",e.definition),t}}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(o||""),d="valid"+i,f="errs__"+i,p=e.util.copy(e),h="";p.level++;var m,g="valid"+p.level,v="ifPassed"+e.level,y=p.baseId;r+="var "+v+";";var b=a;if(b)for(var _,w=-1,x=b.length-1;w<x;){if(_=b[w+=1],w&&!m&&(r+=" if (!"+v+") { ",h+="}"),_.if&&(e.opts.strictKeywords?"object"==typeof _.if&&Object.keys(_.if).length>0:e.util.schemaHasRules(_.if,e.RULES.all))){r+=" var "+f+" = errors; ";var k=e.compositeRule;if(e.compositeRule=p.compositeRule=!0,p.createErrors=!1,p.schema=_.if,p.schemaPath=s+"["+w+"].if",p.errSchemaPath=l+"/"+w+"/if",r+=" "+e.validate(p)+" ",p.baseId=y,p.createErrors=!0,e.compositeRule=p.compositeRule=k,r+=" "+v+" = "+g+"; if ("+v+") { ","boolean"==typeof _.then){if(!1===_.then){(S=S||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'switch' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { caseIndex: "+w+" } ",!1!==e.opts.messages&&(r+=" , message: 'should pass \"switch\" keyword validation' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var E=r;r=S.pop(),!e.compositeRule&&u?e.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" var "+g+" = "+_.then+"; "}else p.schema=_.then,p.schemaPath=s+"["+w+"].then",p.errSchemaPath=l+"/"+w+"/then",r+=" "+e.validate(p)+" ",p.baseId=y;r+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } } "}else if(r+=" "+v+" = true; ","boolean"==typeof _.then){if(!1===_.then){var S;(S=S||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'switch' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { caseIndex: "+w+" } ",!1!==e.opts.messages&&(r+=" , message: 'should pass \"switch\" keyword validation' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";E=r;r=S.pop(),!e.compositeRule&&u?e.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" var "+g+" = "+_.then+"; "}else p.schema=_.then,p.schemaPath=s+"["+w+"].then",p.errSchemaPath=l+"/"+w+"/then",r+=" "+e.validate(p)+" ",p.baseId=y;m=_.continue}return r+=h+"var "+d+" = "+g+";"}},function(e,t,n){"use strict";var r=n(343);e.exports=function e(t){if(!t._opts.$data)return console.warn("keyword select requires $data option"),t;var n=r.metaSchemaRef(t),i=[];return e.definition={validate:function e(t,n,r){if(void 0===r.selectCases)throw new Error('keyword "selectCases" is absent');var i=o(r,!1),a=i.cases[t];if(void 0===a&&(a=i.default),"boolean"==typeof a)return a;var s=a(n);return s||(e.errors=a.errors),s},$data:!0,metaSchema:{type:["string","number","boolean","null"]}},t.addKeyword("select",e.definition),t.addKeyword("selectCases",{compile:function(e,t){var n=o(t);for(var r in e)n.cases[r]=a(e[r]);return function(){return!0}},valid:!0,metaSchema:{type:"object",additionalProperties:n}}),t.addKeyword("selectDefault",{compile:function(e,t){return o(t).default=a(e),function(){return!0}},valid:!0,metaSchema:n}),t;function o(e,t){var n;return i.some((function(t){if(t.parentSchema===e)return n=t,!0})),n||!1===t||(n={parentSchema:e,cases:{},default:!0},i.push(n)),n}function a(e){return"boolean"==typeof e?e:t.compile(e)}}},function(e,t,n){"use strict";e.exports=function e(t){var n={trimLeft:function(e){return e.replace(/^[\s]+/,"")},trimRight:function(e){return e.replace(/[\s]+$/,"")},trim:function(e){return e.trim()},toLowerCase:function(e){return e.toLowerCase()},toUpperCase:function(e){return e.toUpperCase()},toEnumCase:function(e,t){return t.hash[r(e)]||e}};return e.definition={type:"string",errors:!1,modifying:!0,valid:!0,compile:function(e,t){var i;if(-1!==e.indexOf("toEnumCase")){if(i={hash:{}},!t.enum)throw new Error('Missing enum. To use `transform:["toEnumCase"]`, `enum:[...]` is required.');for(var o=t.enum.length;o--;o){var a=t.enum[o];if("string"==typeof a){var s=r(a);if(i.hash[s])throw new Error('Invalid enum uniqueness. To use `transform:["toEnumCase"]`, all values must be unique when case insensitive.');i.hash[s]=a}}}return function(t,r,o,a){if(o){for(var s=0,l=e.length;s<l;s++)t=n[e[s]](t,i);o[a]=t}}},metaSchema:{type:"array",items:{type:"string",enum:["trimLeft","trimRight","trim","toLowerCase","toUpperCase","toEnumCase"]}}},t.addKeyword("transform",e.definition),t;function r(e){return e.toLowerCase()}}},function(e,t,n){"use strict";e.exports=function(e,t){if(!e._opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");return e._opts.jsonPointers||(console.warn("ajv-errors: Ajv option jsonPointers changed to true"),e._opts.jsonPointers=!0),e.addKeyword("errorMessage",{inline:n(892),statements:!0,valid:!0,errors:"full",config:{KEYWORD_PROPERTY_PARAMS:{required:"missingProperty",dependencies:"property"},options:t||{}},metaSchema:{type:["string","object"],properties:{properties:{$ref:"#/definitions/stringMap"},items:{$ref:"#/definitions/stringList"},required:{$ref:"#/definitions/stringOrMap"},dependencies:{$ref:"#/definitions/stringOrMap"}},additionalProperties:{type:"string"},definitions:{stringMap:{type:["object"],additionalProperties:{type:"string"}},stringOrMap:{type:["string","object"],additionalProperties:{type:"string"}},stringList:{type:["array"],items:{type:"string"}}}}}),e}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=(e.errSchemaPath,e.opts.allErrors,"data"+(o||""));if(!1!==e.createErrors){var u=/\$\{[^\}]+\}/,c=/\$\{([^\}]+)\}/g,d=/^\'\'\s*\+\s*|\s*\+\s*\'\'$/g,f=e.self.getKeyword(t).config,p="_em_dataPath"+i,h="_em_i"+i,m="_em_key"+i,g="_em_keyProp"+i,v="_em_err"+i,y="_em_child"+i,b="_em_childKeyword"+i,_="_em_matches"+i,w="_em_isArray"+i,x="_em_errors"+i,k="_em_message"+i,E="_em_paramsErrors"+i,S="_em_propParam"+i,O="_em_keywordPropParams"+i,T="_em_templates"+i,C=e.util.toQuotedString(e.errSchemaPath);if(r+=" if (errors > 0) { var "+p+" = (dataPath || '') + "+e.errorPath+"; var "+h+", "+v+", "+x+"; ","object"==typeof a){var A={},P={},R={properties:{},items:{}},M=!1,I=!1,j=!1;for(var D in a)switch(D){case"properties":for(var L in a.properties)I=!0,R.properties[L]=[];break;case"items":for(var N=0;N<a.items.length;N++)j=!0,R.items[N]=[];break;default:if("object"==typeof a[D])for(var L in M=!0,P[D]={},a[D])P[D][L]=[];else A[D]=[]}var F=Object.keys(A);if(F.length){r+=" "+h+" = 0; "+x+" = "+JSON.stringify(A)+"; var "+T+" = { ";var B=!1,z=F;if(z)for(var U=-1,q=z.length-1;U<q;)D=z[U+=1],u.test(a[D])&&(B&&(r+=","),r+=e.util.toQuotedString(D)+": "+fe(a[D])+" ",B=!0);r+=" }; while ("+h+" < errors) { "+v+" = vErrors["+h+"]; if ( "+v+".keyword != '"+t+"' ",f.options.keepErrors&&(r+=" && !"+v+".emUsed "),r+=" && "+v+".keyword in "+x+" && "+v+".dataPath == "+p+" && "+v+".schemaPath.indexOf("+C+") == 0 && /^\\/[^\\/]*$/.test("+v+".schemaPath.slice("+e.errSchemaPath.length+"))) { "+x+"["+v+".keyword].push("+v+"); ",f.options.keepErrors?r+=" "+v+".emUsed = true; ":r+=" vErrors.splice("+h+", 1); errors--; ",r+=" } else { "+h+"++; } } ",f.options.singleError&&(r+=" var "+k+" = ''; var "+E+" = []; "),r+=" for (var "+m+" in "+x+") { if ("+x+"["+m+"].length) { ",f.options.singleError?(r+=" if ("+k+") { "+k+" += ","string"==typeof f.options.singleError?r+=" "+e.util.toQuotedString(f.options.singleError)+" ":r+=" '; ' ",r+="; } "+k+" += "+m+" in "+T+" ? "+T+"["+m+"] () : validate.schema"+s+"["+m+"]; "+E+" = "+E+".concat("+x+"["+m+"]); } } "):r+=" var "+k+" = "+m+" in "+T+" ? "+T+"["+m+"] () : validate.schema"+s+"["+m+"]; var "+E+" = "+x+"["+m+"]; ",r+=" var err = { keyword: '"+t+"' , dataPath: "+p+" , schemaPath: "+C+" + '/"+t+"' , params: { errors: "+E+" } , message: "+k+" ",e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),r+=" }; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",f.options.singleError||(r+=" } } ")}if(M){r+=" "+h+" = 0; "+x+" = "+JSON.stringify(P)+"; var "+E+", "+S+"; var "+O+" = "+JSON.stringify(f.KEYWORD_PROPERTY_PARAMS)+"; var "+T+" = { ";B=!1;var H=Object.keys(P);if(H)for(var W=-1,V=H.length-1;W<V;){var $=a[D=H[W+=1]];B&&(r+=","),r+=e.util.toQuotedString(D)+": { ",B=!0;var G=!1,K=Object.keys($);if(K)for(var Y=-1,Q=K.length-1;Y<Q;)L=K[Y+=1],u.test($[L])&&(G&&(r+=","),r+=e.util.toQuotedString(L)+": "+fe($[L])+" ",G=!0);r+=" } "}r+=" }; while ("+h+" < errors) { "+v+" = vErrors["+h+"]; if ( "+v+".keyword != '"+t+"' ",f.options.keepErrors&&(r+=" && !"+v+".emUsed "),r+=" && "+v+".keyword in "+x+" && "+v+".dataPath == "+p+" && "+v+".schemaPath.indexOf("+C+") == 0 && /^\\/[^\\/]*$/.test("+v+".schemaPath.slice("+e.errSchemaPath.length+"))) { "+S+" = "+O+"["+v+".keyword]; "+E+" = "+x+"["+v+".keyword]["+v+".params["+S+"]]; if ("+E+") { "+E+".push("+v+"); ",f.options.keepErrors?r+=" "+v+".emUsed = true; ":r+=" vErrors.splice("+h+", 1); errors--; ",r+=" } else { "+h+"++; } } else { "+h+"++; } } for (var "+m+" in "+x+") { for (var "+g+" in "+x+"["+m+"]) { "+E+" = "+x+"["+m+"]["+g+"]; if ("+E+".length) { var "+k+" = "+m+" in "+T+" && "+g+" in "+T+"["+m+"] ? "+T+"["+m+"]["+g+"] () : validate.schema"+s+"["+m+"]["+g+"]; var err = { keyword: '"+t+"' , dataPath: "+p+" , schemaPath: "+C+" + '/"+t+"' , params: { errors: "+E+" } , message: "+k+" ",e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),r+=" }; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } } "}if(I||j){if(r+=" var "+w+" = Array.isArray("+l+"); if ",I&&j){r+=" (typeof "+l+" == 'object') { ";var X="["+b+"]";r+=" "+h+" = 0; if ("+w+") { var "+b+" = 'items'; "+x+" = "+JSON.stringify(R.items)+"; ",r+=" var "+T+" = { ";B=!1;var J=Object.keys(R.items);if(J)for(var Z=-1,ee=J.length-1;Z<ee;)D=J[Z+=1],u.test(a.items[D])&&(B&&(r+=","),r+=e.util.toQuotedString(D)+": "+fe(a.items[D])+" ",B=!0);r+=" }; } else { var "+b+" = 'properties'; "+x+" = "+JSON.stringify(R.properties)+"; ",r+=" var "+T+" = { ";B=!1;var te=Object.keys(R.properties);if(te)for(var ne=-1,re=te.length-1;ne<re;)D=te[ne+=1],u.test(a.properties[D])&&(B&&(r+=","),r+=e.util.toQuotedString(D)+": "+fe(a.properties[D])+" ",B=!0);r+=" }; } "}else if(I){r+=" (typeof "+l+" == 'object' && !"+w+") { ";X=".properties";r+=" "+h+" = 0; "+x+" = "+JSON.stringify(R.properties)+"; ",r+=" var "+T+" = { ";B=!1;var ie=Object.keys(R.properties);if(ie)for(var oe=-1,ae=ie.length-1;oe<ae;)D=ie[oe+=1],u.test(a.properties[D])&&(B&&(r+=","),r+=e.util.toQuotedString(D)+": "+fe(a.properties[D])+" ",B=!0);r+=" }; "}else{r+=" ("+w+") { ";X=".items";r+=" "+h+" = 0; "+x+" = "+JSON.stringify(R.items)+"; ",r+=" var "+T+" = { ";B=!1;var se=Object.keys(R.items);if(se)for(var le=-1,ue=se.length-1;le<ue;)D=se[le+=1],u.test(a.items[D])&&(B&&(r+=","),r+=e.util.toQuotedString(D)+": "+fe(a.items[D])+" ",B=!0);r+=" }; "}r+=" var "+y+", "+_+"; while ("+h+" < errors) { "+v+" = vErrors["+h+"]; if ( "+v+".keyword != '"+t+"' ",f.options.keepErrors&&(r+=" && !"+v+".emUsed "),r+=" && "+v+".dataPath.indexOf("+p+") == 0 && ("+_+" = "+v+".dataPath.slice("+p+".length).match(/^\\/([^\\/]*)(?:\\/|$)/), "+y+" = "+_+" && "+_+"[1].replace(/~1/g, '/').replace(/~0/g, '~') ) !== undefined && "+y+" in "+x+") { "+x+"["+y+"].push("+v+"); ",f.options.keepErrors?r+=" "+v+".emUsed = true; ":r+=" vErrors.splice("+h+", 1); errors--; ",r+=" } else { "+h+"++; } } for (var "+m+" in "+x+") { if ("+x+"["+m+"].length) { var err = { keyword: '"+t+"' , dataPath: "+p+" + '/' + "+m+".replace(/~/g, '~0').replace(/\\//g, '~1') , schemaPath: "+C+" + '/"+t+"' , params: { errors: "+x+"["+m+"] } , message: "+m+" in "+T+" ? "+T+"["+m+"] () : validate.schema"+s+X+"["+m+"] ",e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),r+=" }; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } } "}}var ce="string"==typeof a?a:a._;ce&&(r+=" "+h+" = 0; "+x+" = []; while ("+h+" < errors) { "+v+" = vErrors["+h+"]; if ( "+v+".keyword != '"+t+"' ",f.options.keepErrors&&(r+=" && !"+v+".emUsed "),r+=" && ("+v+".dataPath == "+p+" || ("+v+".dataPath.indexOf("+p+") == 0 && "+v+".dataPath["+p+".length] == '/')) && "+v+".schemaPath.indexOf("+C+") == 0 && "+v+".schemaPath["+e.errSchemaPath.length+"] == '/') { "+x+".push("+v+"); ",f.options.keepErrors?r+=" "+v+".emUsed = true; ":r+=" vErrors.splice("+h+", 1); errors--; ",r+=" } else { "+h+"++; } } if ("+x+".length) { var err = { keyword: '"+t+"' , dataPath: "+p+" , schemaPath: "+C+" + '/"+t+"' , params: { errors: "+x+" } , message: "+de(ce)+" ",e.opts.verbose&&(r+=" , schema: "+e.util.toQuotedString(ce)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),r+=" }; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "),r+=" }"}function de(t){return t=e.util.escapeQuotes(t),u.test(t)?("'"+t.replace(c,(function(t,n){return"' + JSON.stringify("+e.util.getData(n,o,e.dataPathArr)+") + '"}))+"'").replace(d,""):"'"+t+"'"}function fe(e){return"function() { return "+de(e)+"; }"}return r}},function(e,t,n){"use strict";n.r(t),function(e){var r;n.d(t,"Immer",(function(){return H})),n.d(t,"applyPatches",(function(){return Y})),n.d(t,"createDraft",(function(){return Q})),n.d(t,"finishDraft",(function(){return X})),n.d(t,"immerable",(function(){return o})),n.d(t,"isDraft",(function(){return s})),n.d(t,"isDraftable",(function(){return l})),n.d(t,"nothing",(function(){return i})),n.d(t,"original",(function(){return u})),n.d(t,"produce",(function(){return V})),n.d(t,"produceWithPatches",(function(){return $})),n.d(t,"setAutoFreeze",(function(){return G})),n.d(t,"setUseProxies",(function(){return K}));var i="undefined"!=typeof Symbol?Symbol("immer-nothing"):((r={})["immer-nothing"]=!0,r),o="undefined"!=typeof Symbol&&Symbol.for?Symbol.for("immer-draftable"):"__$immer_draftable",a="undefined"!=typeof Symbol&&Symbol.for?Symbol.for("immer-state"):"__$immer_state";function s(e){return!!e&&!!e[a]}function l(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e))return!0;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}(e)||!!e[o]||!!e.constructor[o])}function u(e){if(e&&e[a])return e[a].base}var c=Object.assign||function(e,t){for(var n in t)m(t,n)&&(e[n]=t[n]);return e},d="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function f(e,t){if(void 0===t&&(t=!1),Array.isArray(e))return e.slice();var n=Object.create(Object.getPrototypeOf(e));return d(e).forEach((function(r){if(r!==a){var i=Object.getOwnPropertyDescriptor(e,r),o=i.value;if(i.get){if(!t)throw new Error("Immer drafts cannot have computed properties");o=i.get.call(e)}i.enumerable?n[r]=o:Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0})}})),n}function p(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(n,e[n],e);else d(e).forEach((function(n){return t(n,e[n],e)}))}function h(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.enumerable}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function g(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function v(e){if(!l(e))return e;if(Array.isArray(e))return e.map(v);var t=Object.create(Object.getPrototypeOf(e));for(var n in e)t[n]=v(e[n]);return t}var y=function(e){this.drafts=[],this.parent=e,this.canAutoFreeze=!0,this.patches=null};function b(e){e[a].revoke()}y.prototype.usePatches=function(e){e&&(this.patches=[],this.inversePatches=[],this.patchListener=e)},y.prototype.revoke=function(){this.leave(),this.drafts.forEach(b),this.drafts=null},y.prototype.leave=function(){this===y.current&&(y.current=this.parent)},y.current=null,y.enter=function(){return this.current=new y(this.current)};var _={};function w(e,t){var n=Array.isArray(e),r=T(e);p(r,(function(t){!function(e,t,n){var r=_[t];r?r.enumerable=n:_[t]=r={configurable:!0,enumerable:n,get:function(){return function(e,t){C(e);var n=E(k(e),t);if(e.finalizing)return n;if(n===E(e.base,t)&&l(n))return O(e),e.copy[t]=w(n,e);return n}(this[a],t)},set:function(e){!function(e,t,n){if(C(e),e.assigned[t]=!0,!e.modified){if(g(n,E(k(e),t)))return;S(e),O(e)}e.copy[t]=n}(this[a],t,e)}};Object.defineProperty(e,t,r)}(r,t,n||h(e,t))}));var i=t?t.scope:y.current;return function(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0})}(r,a,{scope:i,modified:!1,finalizing:!1,finalized:!1,assigned:{},parent:t,base:e,draft:r,copy:null,revoke:x,revoked:!1}),i.drafts.push(r),r}function x(){this.revoked=!0}function k(e){return e.copy||e.base}function E(e,t){var n=e[a];if(n&&!n.finalizing){n.finalizing=!0;var r=e[t];return n.finalizing=!1,r}return e[t]}function S(e){e.modified||(e.modified=!0,e.parent&&S(e.parent))}function O(e){e.copy||(e.copy=T(e.base))}function T(e){var t=e&&e[a];if(t){t.finalizing=!0;var n=f(t.draft,!0);return t.finalizing=!1,n}return f(e)}function C(e){if(!0===e.revoked)throw new Error("Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+JSON.stringify(k(e)))}function A(e){for(var t=e.length-1;t>=0;t--){var n=e[t][a];n.modified||(Array.isArray(n.base)?R(n)&&S(n):P(n)&&S(n))}}function P(e){for(var t=e.base,n=e.draft,r=Object.keys(n),i=r.length-1;i>=0;i--){var o=r[i],s=t[o];if(void 0===s&&!m(t,o))return!0;var l=n[o],u=l&&l[a];if(u?u.base!==s:!g(l,s))return!0}return r.length!==Object.keys(t).length}function R(e){var t=e.draft;if(t.length!==e.base.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!n||n.get)}var M=Object.freeze({willFinalize:function(e,t,n){e.drafts.forEach((function(e){e[a].finalizing=!0})),n?s(t)&&t[a].scope===e&&A(e.drafts):(e.patches&&function e(t){if(!t||"object"!=typeof t)return;var n=t[a];if(!n)return;var r=n.base,i=n.draft,o=n.assigned;if(Array.isArray(t)){if(R(n)){if(S(n),o.length=!0,i.length<r.length)for(var s=i.length;s<r.length;s++)o[s]=!1;else for(var l=r.length;l<i.length;l++)o[l]=!0;for(var u=0;u<i.length;u++)void 0===o[u]&&e(i[u])}}else Object.keys(i).forEach((function(t){void 0!==r[t]||m(r,t)?o[t]||e(i[t]):(o[t]=!0,S(n))})),Object.keys(r).forEach((function(e){void 0!==i[e]||m(i,e)||(o[e]=!1,S(n))}))}(e.drafts[0]),A(e.drafts))},createProxy:w});function I(e,t){var n=t?t.scope:y.current,r={scope:n,modified:!1,finalized:!1,assigned:{},parent:t,base:e,draft:null,drafts:{},copy:null,revoke:null},i=Array.isArray(e)?Proxy.revocable([r],D):Proxy.revocable(r,j),o=i.revoke,a=i.proxy;return r.draft=a,r.revoke=o,n.drafts.push(a),a}var j={get:function(e,t){if(t===a)return e;var n=e.drafts;if(!e.modified&&m(n,t))return n[t];var r=L(e)[t];if(e.finalized||!l(r))return r;if(e.modified){if(r!==N(e.base,t))return r;n=e.copy}return n[t]=I(r,e)},has:function(e,t){return t in L(e)},ownKeys:function(e){return Reflect.ownKeys(L(e))},set:function(e,t,n){if(!e.modified){var r=N(e.base,t);if(n?g(r,n)||n===e.drafts[t]:g(r,n)&&t in e.base)return!0;F(e)}return e.assigned[t]=!0,e.copy[t]=n,!0},deleteProperty:function(e,t){void 0!==N(e.base,t)||t in e.base?(e.assigned[t]=!1,F(e)):e.assigned[t]&&delete e.assigned[t];e.copy&&delete e.copy[t];return!0},getOwnPropertyDescriptor:function(e,t){var n=L(e),r=Reflect.getOwnPropertyDescriptor(n,t);r&&(r.writable=!0,r.configurable=!Array.isArray(n)||"length"!==t);return r},defineProperty:function(){throw new Error("Object.defineProperty() cannot be used on an Immer draft")},getPrototypeOf:function(e){return Object.getPrototypeOf(e.base)},setPrototypeOf:function(){throw new Error("Object.setPrototypeOf() cannot be used on an Immer draft")}},D={};function L(e){return e.copy||e.base}function N(e,t){var n=e[a],r=Reflect.getOwnPropertyDescriptor(n?L(n):e,t);return r&&r.value}function F(e){e.modified||(e.modified=!0,e.copy=c(f(e.base),e.drafts),e.drafts=null,e.parent&&F(e.parent))}p(j,(function(e,t){D[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),D.deleteProperty=function(e,t){if(isNaN(parseInt(t)))throw new Error("Immer only supports deleting array indices");return j.deleteProperty.call(this,e[0],t)},D.set=function(e,t,n){if("length"!==t&&isNaN(parseInt(t)))throw new Error("Immer only supports setting array indices and the 'length' property");return j.set.call(this,e[0],t,n)};var B=Object.freeze({willFinalize:function(){},createProxy:I});function z(e,t,n,r){Array.isArray(e.base)?function(e,t,n,r){var i,o,a=e.base,s=e.copy,l=e.assigned;s.length<a.length&&(a=(i=[s,a])[0],s=i[1],n=(o=[r,n])[0],r=o[1]);var u=s.length-a.length,c=0;for(;a[c]===s[c]&&c<a.length;)++c;var d=a.length;for(;d>c&&a[d-1]===s[d+u-1];)--d;for(var f=c;f<d;++f)if(l[f]&&s[f]!==a[f]){var p=t.concat([f]);n.push({op:"replace",path:p,value:s[f]}),r.push({op:"replace",path:p,value:a[f]})}for(var h=n.length,m=d+u-1;m>=d;--m){var g=t.concat([m]);n[h+m-d]={op:"add",path:g,value:s[m]},r.push({op:"remove",path:g})}}(e,t,n,r):function(e,t,n,r){var i=e.base,o=e.copy;p(e.assigned,(function(e,a){var s=i[e],l=o[e],u=a?e in i?"replace":"add":"remove";if(s!==l||"replace"!==u){var c=t.concat(e);n.push("remove"===u?{op:u,path:c}:{op:u,path:c,value:l}),r.push("add"===u?{op:"remove",path:c}:"remove"===u?{op:"add",path:c,value:s}:{op:"replace",path:c,value:s})}}))}(e,t,n,r)}var U=function(e,t){for(var n=0,r=t;n<r.length;n+=1){var i=r[n],o=i.path,a=i.op,s=v(i.value);if(!o.length)throw new Error("Illegal state");for(var l=e,u=0;u<o.length-1;u++)if(!(l=l[o[u]])||"object"!=typeof l)throw new Error("Cannot apply patch, path doesn't resolve: "+o.join("/"));var c=o[o.length-1];switch(a){case"replace":l[c]=s;break;case"add":Array.isArray(l)?l.splice(c,0,s):l[c]=s;break;case"remove":Array.isArray(l)?l.splice(c,1):delete l[c];break;default:throw new Error("Unsupported patch operation: "+a)}}return e};var q={useProxies:"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect,autoFreeze:void 0===e&&"verifyMinified"===function(){}.name,onAssign:null,onDelete:null,onCopy:null},H=function(e){c(this,q,e),this.setUseProxies(this.useProxies),this.produce=this.produce.bind(this)};H.prototype.produce=function(e,t,n){var r,o=this;if("function"==typeof e&&"function"!=typeof t){var a=t;t=e;var s=this;return function(e){var n=this;void 0===e&&(e=a);for(var r=[],i=arguments.length-1;i-- >0;)r[i]=arguments[i+1];return s.produce(e,(function(e){return t.call.apply(t,[n,e].concat(r))}))}}if("function"!=typeof t)throw new Error("The first or second argument to `produce` must be a function");if(void 0!==n&&"function"!=typeof n)throw new Error("The third argument to `produce` must be a function or undefined");if(l(e)){var u=y.enter(),c=this.createProxy(e),d=!0;try{r=t(c),d=!1}finally{d?u.revoke():u.leave()}return r instanceof Promise?r.then((function(e){return u.usePatches(n),o.processResult(e,u)}),(function(e){throw u.revoke(),e})):(u.usePatches(n),this.processResult(r,u))}return void 0===(r=t(e))?e:r!==i?r:void 0},H.prototype.produceWithPatches=function(e,t,n){var r,i,o=this;if("function"==typeof e)return function(t){for(var n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return o.produceWithPatches(t,(function(t){return e.apply(void 0,[t].concat(n))}))};if(n)throw new Error("A patch listener cannot be passed to produceWithPatches");return[this.produce(e,t,(function(e,t){r=e,i=t})),r,i]},H.prototype.createDraft=function(e){if(!l(e))throw new Error("First argument to `createDraft` must be a plain object, an array, or an immerable object");var t=y.enter(),n=this.createProxy(e);return n[a].isManual=!0,t.leave(),n},H.prototype.finishDraft=function(e,t){var n=e&&e[a];if(!n||!n.isManual)throw new Error("First argument to `finishDraft` must be a draft returned by `createDraft`");if(n.finalized)throw new Error("The given draft is already finalized");var r=n.scope;return r.usePatches(t),this.processResult(void 0,r)},H.prototype.setAutoFreeze=function(e){this.autoFreeze=e},H.prototype.setUseProxies=function(e){this.useProxies=e,c(this,e?B:M)},H.prototype.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}return s(e)?U(e,t):this.produce(e,(function(e){return U(e,t.slice(n+1))}))},H.prototype.processResult=function(e,t){var n=t.drafts[0],r=void 0!==e&&e!==n;if(this.willFinalize(t,e,r),r){if(n[a].modified)throw t.revoke(),new Error("An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.");l(e)&&(e=this.finalize(e,null,t)),t.patches&&(t.patches.push({op:"replace",path:[],value:e}),t.inversePatches.push({op:"replace",path:[],value:n[a].base}))}else e=this.finalize(n,[],t);return t.revoke(),t.patches&&t.patchListener(t.patches,t.inversePatches),e!==i?e:void 0},H.prototype.finalize=function(e,t,n){var r=this,i=e[a];if(!i)return Object.isFrozen(e)?e:this.finalizeTree(e,null,n);if(i.scope!==n)return e;if(!i.modified)return i.base;if(!i.finalized){if(i.finalized=!0,this.finalizeTree(i.draft,t,n),this.onDelete)if(this.useProxies){var o=i.assigned;for(var s in o)o[s]||this.onDelete(i,s)}else{var l=i.base,u=i.copy;p(l,(function(e){m(u,e)||r.onDelete(i,e)}))}this.onCopy&&this.onCopy(i),this.autoFreeze&&n.canAutoFreeze&&Object.freeze(i.copy),t&&n.patches&&z(i,t,n.patches,n.inversePatches)}return i.copy},H.prototype.finalizeTree=function(e,t,n){var r=this,i=e[a];i&&(this.useProxies||(i.copy=f(i.draft,!0)),e=i.copy);var o=!!t&&!!n.patches,u=function(a,c,d){if(c===d)throw Error("Immer forbids circular references");var f=!!i&&d===e;if(s(c)){var m=f&&o&&!i.assigned[a]?t.concat(a):null;if(s(c=r.finalize(c,m,n))&&(n.canAutoFreeze=!1),Array.isArray(d)||h(d,a)?d[a]=c:Object.defineProperty(d,a,{value:c}),f&&c===i.base[a])return}else{if(f&&g(c,i.base[a]))return;l(c)&&!Object.isFrozen(c)&&p(c,u)}f&&r.onAssign&&r.onAssign(i,a,c)};return p(e,u),e};var W=new H,V=W.produce,$=W.produceWithPatches.bind(W),G=W.setAutoFreeze.bind(W),K=W.setUseProxies.bind(W),Y=W.applyPatches.bind(W),Q=W.createDraft.bind(W),X=W.finishDraft.bind(W);t.default=V}.call(this,n(70))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const{id:t=null,label:n="unnamed component",icon:r="exclamation-triangle",type:i="shortcode",widget:c="object",pattern:d=l,fields:f=[],fromBlock:p,toBlock:h,toPreview:m}=e,g=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["id","label","icon","type","widget","pattern","fields","fromBlock","toBlock","toPreview"]);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:t||n.replace(/[^A-Z0-9]+/gi,"_"),label:n,type:i,icon:r,widget:c,pattern:d,fromBlock:u(p)||(()=>({})),toBlock:u(h)||(()=>"Plugin"),toPreview:u(m)||!c&&(u(h)||(()=>"Plugin")),fields:(0,o.fromJS)(f)},g)};var r,i=(r=n(180))&&r.__esModule?r:{default:r},o=n(4);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l=/.^/,u=e=>(0,i.default)(e)&&e.bind(null)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){console.error(`%c ⛔ ${e}\n%c${t}\n\n`,"color: black; font-weight: bold; font-size: 16px; line-height: 50px;","color: black;")}},function(e,t,n){var r=n(110);e.exports=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=r(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}},function(e,t,n){var r=n(489);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(217))&&r.__esModule?r:{default:r},o=n(345),a=n(67),s=n(37);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{fetchWithTimeout:d}=s.unsentRequest;t.default=class{constructor(e){if(this.config=e,null==e.get("applicationID")||null==e.get("apiKey"))throw"The Algolia search integration needs the credentials (applicationID and apiKey) in the integration configuration.";this.applicationID=e.get("applicationID"),this.apiKey=e.get("apiKey");const t=e.get("indexPrefix");this.indexPrefix=t?t+"-":"",this.searchURL=`https://${this.applicationID}-dsn.algolia.net/1`,this.entriesCache={collection:null,page:null,entries:[]}}requestHeaders(e={}){return u({"X-Algolia-API-Key":this.apiKey,"X-Algolia-Application-Id":this.applicationID,"Content-Type":"application/json"},e)}parseJsonResponse(e){return e.json().then(t=>e.ok?t:Promise.reject(t))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+="?"+n.join("&")),e}request(e,t={}){const n=this.requestHeaders(t.headers||{}),r=this.urlFor(e,t);return d(r,u(u({},t),{},{headers:n})).then(e=>{const t=e.headers.get("Content-Type");return t&&t.match(/json/)?this.parseJsonResponse(e):e.text()})}search(e,t,n){const r=e.map(e=>({indexName:`${this.indexPrefix}${e}`,params:`query=${t}&page=${n}`}));return this.request(this.searchURL+"/indexes/*/queries",{method:"POST",body:JSON.stringify({requests:r})}).then(t=>{const r=t.results.map((t,n)=>t.hits.map(t=>{const r=t.path.split("/").pop().replace(/\.[^.]+$/,"");return(0,o.createEntry)(e[n],r,t.path,{data:t.data,partial:!0})}));return{entries:(0,i.default)(r),pagination:n}})}searchBy(e,t,n){return this.request(`${this.searchURL}/indexes/${this.indexPrefix}${t}`,{params:{restrictSearchableAttributes:e,query:n}})}listEntries(e,t){return this.entriesCache.collection===e&&this.entriesCache.page===t?Promise.resolve({page:this.entriesCache.page,entries:this.entriesCache.entries}):this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:{page:t}}).then(t=>{const n=t.hits.map(t=>{const n=(0,a.selectEntrySlug)(e,t.path);return(0,o.createEntry)(e.get("name"),n,t.path,{data:t.data,partial:!0})});return this.entriesCache={collection:e,pagination:t.page,entries:n},{entries:n,pagination:t.page}})}async listAllEntries(e){const t={hitsPerPage:1e3};let n=await this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:t}),{nbPages:r=0,hits:i,page:s}=n;for(s+=1;s<r;)n=await this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:u(u({},t),{},{page:s})}),i=[...i,...n.hits],s+=1;return i.map(t=>{const n=(0,a.selectEntrySlug)(e,t.path);return(0,o.createEntry)(e.get("name"),n,t.path,{data:t.data,partial:!0})})}getEntry(e,t){return this.searchBy("slug",e.get("name"),t).then(n=>{const r=n.hits.filter(e=>e.slug===t)[0];return(0,o.createEntry)(e.get("name"),t,r.path,{data:r.data,partial:!0})})}}},function(e,t,n){var r=n(101),i=n(69);e.exports=function(e){return!0===e||!1===e||i(e)&&"[object Boolean]"==r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CURSOR_COMPATIBILITY_SYMBOL=t.default=void 0;var r=n(4);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}const o=e=>{if(void 0===e)return(0,r.Map)();const t=(0,r.fromJS)(e);if(!r.Map.isMap(t))throw new Error("Object must be equivalent to a Map.");return t},a=(0,r.Set)(["index","page","count","pageSize","pageCount","usingOldPaginationAPI","extension","folder","depth"]),s=e=>e.filter((e,t)=>a.has(t));class l{static create(...e){return new l(...e)}constructor(...e){if(i(this,"store",void 0),i(this,"actions",void 0),i(this,"data",void 0),i(this,"meta",void 0),e[0]instanceof l)return e[0];this.store=((...e)=>{const{actions:t,data:n,meta:i}=1===e.length?o(e[0]).toObject():{actions:e[0],data:e[1],meta:e[2]};return(0,r.Map)({actions:(0,r.Set)(t),data:o(n),meta:o(i).update(s)})})(...e),this.actions=this.store.get("actions"),this.data=this.store.get("data"),this.meta=this.store.get("meta")}updateStore(...e){return new l(this.store.update(...e))}updateInStore(...e){return new l(this.store.updateIn(...e))}hasAction(e){return((e,t)=>e.hasIn(["actions",t]))(this.store,e)}addAction(e){return this.updateStore("actions",t=>t.add(e))}removeAction(e){return this.updateStore("actions",t=>t.delete(e))}setActions(e){return this.updateStore(t=>t.set("actions",(0,r.Set)(e)))}mergeActions(e){return this.updateStore("actions",t=>t.union(e))}getActionHandlers(e){return((e,t)=>e.get("actions",(0,r.Set)()).toMap().map(e=>t(e)))(this.store,e)}setData(e){return new l(this.store.set("data",o(e)))}mergeData(e){return new l(this.store.mergeIn(["data"],o(e)))}wrapData(e){return this.updateStore("data",t=>o(e).set("wrapped_cursor_data",t))}unwrapData(){return[this.store.get("data").delete("wrapped_cursor_data"),this.updateStore("data",e=>e.get("wrapped_cursor_data"))]}clearData(){return this.updateStore("data",()=>(0,r.Map)())}setMeta(e){return this.updateStore(t=>t.set("meta",o(e)))}mergeMeta(e){return this.updateStore(t=>t.update("meta",t=>t.merge(o(e))))}}t.default=l;const u=Symbol("cursor key for compatibility with old backends");t.CURSOR_COMPATIBILITY_SYMBOL=u},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.EDITORIAL_WORKFLOW_ERROR=void 0;t.EDITORIAL_WORKFLOW_ERROR="EDITORIAL_WORKFLOW_ERROR";class i extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t){super(e),r(this,"message",void 0),r(this,"notUnderEditorialWorkflow",void 0),this.message=e,this.notUnderEditorialWorkflow=t,this.name="EDITORIAL_WORKFLOW_ERROR"}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ACCESS_TOKEN_ERROR=void 0;t.ACCESS_TOKEN_ERROR="ACCESS_TOKEN_ERROR";class r extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e){super(e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"message",void 0),this.message=e,this.name="ACCESS_TOKEN_ERROR"}}t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(905))&&r.__esModule?r:{default:r};i.default.setItem("localForageTest",{expires:Date.now()+3e5}).then(()=>{i.default.removeItem("localForageTest")}).catch(e=>{if(22===e.code){const e="Unable to set localStorage key. Quota exceeded! Full disk?";console.warn(e)}console.log(e)});var o=i.default;t.default=o},function(e,t,n){(function(t){e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){var n=t[a][1][e];return i(n||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var o=!1,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,n,r){(function(e){"use strict";var t,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(c),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),t=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)t="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,t=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}r=!1}n.exports=function(e){1!==u.push(e)||r||t()}}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r=e(1);function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function c(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r((function(){var r;try{r=t(n)}catch(t){return o.reject(e,t)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var a=h((function(){t(i,r)}));"error"===a.status&&r(a.value)}function h(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}t.exports=u,u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(i);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new c(n,e,t)),n},c.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){o.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=h(f,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,u=new this(i);++l<n;)c(e[l],l);return u;function c(e,i){t.resolve(e).then((function(e){a[i]=e,++s!==n||r||(r=!0,o.resolve(u,a))}),(function(e){r||(r=!0,o.reject(u,e))}))}},u.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=-1,s=new this(i);++a<n;)l(e[a]);return s;function l(e){t.resolve(e).then((function(e){r||(r=!0,o.resolve(s,e))}),(function(e){r||(r=!0,o.reject(s,e))}))}}},{1:1}],3:[function(e,n,r){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";var 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},i=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function o(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(i){if("TypeError"!==i.name)throw i;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var a=Promise;function s(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function l(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function u(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function c(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var d=void 0,f={},p=Object.prototype.toString;function h(e){return"boolean"==typeof d?a.resolve(d):function(e){return new a((function(t){var n=e.transaction("local-forage-detect-blob-support","readwrite"),r=o([""]);n.objectStore("local-forage-detect-blob-support").put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}(e).then((function(e){return d=e}))}function m(e){var t=f[e.name],n={};n.promise=new a((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function g(e){var t=f[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function v(e,t){var n=f[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function y(e,t){return new a((function(n,r){if(f[e.name]=f[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);m(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var a=i.open.apply(i,o);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore("local-forage-detect-blob-support")}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){n(a.result),g(e)}}))}function b(e){return y(e,!1)}function _(e){return y(e,!0)}function w(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,i=e.version>e.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function x(e){return o([function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i<t;i++)r[i]=e.charCodeAt(i);return n}(atob(e.data))],{type:e.type})}function k(e){return e&&e.__local_forage_encoded_blob}function E(e){var t=this,n=t._initReady().then((function(){var e=f[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return l(n,e,e),n}function S(e,t,n,r){void 0===r&&(r=1);try{var i=e.db.transaction(e.storeName,t);n(null,i)}catch(i){if(r>0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return a.resolve().then((function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),_(e)})).then((function(){return function(e){m(e);for(var t=f[e.name],n=t.forages,r=0;r<n.length;r++){var i=n[r];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return e.db=null,b(e).then((function(t){return e.db=t,w(e)?_(e):t})).then((function(r){e.db=t.db=r;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=r})).catch((function(t){throw v(e,t),t}))}(e).then((function(){S(e,t,n,r-1)}))})).catch(n);n(i)}}var O={_driver:"asyncStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=f[n.name];i||(i={forages:[],db:null,dbReady:null,deferredOperations:[]},f[n.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=E);var o=[];function s(){return a.resolve()}for(var l=0;l<i.forages.length;l++){var u=i.forages[l];u!==t&&o.push(u._initReady().catch(s))}var c=i.forages.slice(0);return a.all(o).then((function(){return n.db=i.db,b(n)})).then((function(e){return n.db=e,w(n,t._defaultConfig.version)?_(n):e})).then((function(e){n.db=i.db=e,t._dbInfo=n;for(var r=0;r<c.length;r++){var o=c[r];o!==t&&(o._dbInfo.db=n.db,o._dbInfo.version=n.version)}}))},_support:function(){try{if(!i||!i.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){S(n._dbInfo,"readonly",(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var n=a.result;if(n){var r=n.value;k(r)&&(r=x(r));var i=e(r,n.key,s++);void 0!==i?t(i):n.continue()}else t()},a.onerror=function(){r(a.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){S(n._dbInfo,"readonly",(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),k(e)&&(e=x(e)),t(e)},a.onerror=function(){r(a.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},setItem:function(e,t,n){var r=this;e=u(e);var i=new a((function(n,i){var o;r.ready().then((function(){return o=r._dbInfo,"[object Blob]"===p.call(t)?h(o.db).then((function(e){return e?t:(n=t,new a((function(e,t){var r=new FileReader;r.onerror=t,r.onloadend=function(t){var r=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:r,type:n.type})},r.readAsBinaryString(n)})));var n})):t})).then((function(t){S(r._dbInfo,"readwrite",(function(o,a){if(o)return i(o);try{var s=a.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var l=s.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),n(t)},a.onabort=a.onerror=function(){var e=l.error?l.error:l.transaction.error;i(e)}}catch(e){i(e)}}))})).catch(i)}));return s(i,n),i},removeItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){S(n._dbInfo,"readwrite",(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).delete(e);o.oncomplete=function(){t()},o.onerror=function(){r(a.error)},o.onabort=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},clear:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){S(t._dbInfo,"readwrite",(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){var e=o.error?o.error:o.transaction.error;n(e)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},length:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){S(t._dbInfo,"readonly",(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).count();o.onsuccess=function(){e(o.result)},o.onerror=function(){n(o.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},key:function(e,t){var n=this,r=new a((function(t,r){e<0?t(null):n.ready().then((function(){S(n._dbInfo,"readonly",(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName),s=!1,l=a.openKeyCursor();l.onsuccess=function(){var n=l.result;n?0===e||s?t(n.key):(s=!0,n.advance(e)):t(null)},l.onerror=function(){r(l.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},keys:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){S(t._dbInfo,"readonly",(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).openKeyCursor(),a=[];o.onsuccess=function(){var t=o.result;t?(a.push(t.key),t.continue()):e(a)},o.onerror=function(){n(o.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},dropInstance:function(e,t){t=c.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,o=this;if(e.name){var l=e.name===n.name&&o._dbInfo.db,u=l?a.resolve(o._dbInfo.db):b(e).then((function(t){var n=f[e.name],r=n.forages;n.db=t;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=t;return t}));r=e.storeName?u.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;m(e);var r=f[e.name],o=r.forages;t.close();for(var s=0;s<o.length;s++){var l=o[s];l._dbInfo.db=null,l._dbInfo.version=n}return new a((function(t,r){var o=i.open(e.name,n);o.onerror=function(e){o.result.close(),r(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),t(e)}})).then((function(e){r.db=e;for(var t=0;t<o.length;t++){var n=o[t];n._dbInfo.db=e,g(n._dbInfo)}})).catch((function(t){throw(v(e,t)||a.resolve()).catch((function(){})),t}))}})):u.then((function(t){m(e);var n=f[e.name],r=n.forages;t.close();for(var o=0;o<r.length;o++)r[o]._dbInfo.db=null;return new a((function(t,n){var r=i.deleteDatabase(e.name);r.onerror=r.onblocked=function(e){var t=r.result;t&&t.close(),n(e)},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}})).then((function(e){n.db=e;for(var t=0;t<r.length;t++)g(r[t]._dbInfo)})).catch((function(t){throw(v(e,t)||a.resolve()).catch((function(){})),t}))}))}else r=a.reject("Invalid arguments");return s(r,t),r}},T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C=/^~~local_forage_type~([^~]+)~/,A="__lfsc__:".length,P=A+"arbf".length,R=Object.prototype.toString;function M(e){var t,n,r,i,o,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var u=new ArrayBuffer(a),c=new Uint8Array(u);for(t=0;t<s;t+=4)n=T.indexOf(e[t]),r=T.indexOf(e[t+1]),i=T.indexOf(e[t+2]),o=T.indexOf(e[t+3]),c[l++]=n<<2|r>>4,c[l++]=(15&r)<<4|i>>2,c[l++]=(3&i)<<6|63&o;return u}function I(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=T[n[t]>>2],r+=T[(3&n[t])<<4|n[t+1]>>4],r+=T[(15&n[t+1])<<2|n[t+2]>>6],r+=T[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var j={serialize:function(e,t){var n="";if(e&&(n=R.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===R.call(e.buffer))){var r,i="__lfsc__:";e instanceof ArrayBuffer?(r=e,i+="arbf"):(r=e.buffer,"[object Int8Array]"===n?i+="si08":"[object Uint8Array]"===n?i+="ui08":"[object Uint8ClampedArray]"===n?i+="uic8":"[object Int16Array]"===n?i+="si16":"[object Uint16Array]"===n?i+="ur16":"[object Int32Array]"===n?i+="si32":"[object Uint32Array]"===n?i+="ui32":"[object Float32Array]"===n?i+="fl32":"[object Float64Array]"===n?i+="fl64":t(new Error("Failed to get type for BinaryArray"))),t(i+I(r))}else if("[object Blob]"===n){var o=new FileReader;o.onload=function(){var n="~~local_forage_type~"+e.type+"~"+I(this.result);t("__lfsc__:blob"+n)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}},deserialize:function(e){if("__lfsc__:"!==e.substring(0,A))return JSON.parse(e);var t,n=e.substring(P),r=e.substring(A,P);if("blob"===r&&C.test(n)){var i=n.match(C);t=i[1],n=n.substring(i[0].length)}var a=M(n);switch(r){case"arbf":return a;case"blob":return o([a],{type:t});case"si08":return new Int8Array(a);case"ui08":return new Uint8Array(a);case"uic8":return new Uint8ClampedArray(a);case"si16":return new Int16Array(a);case"ur16":return new Uint16Array(a);case"si32":return new Int32Array(a);case"ui32":return new Uint32Array(a);case"fl32":return new Float32Array(a);case"fl64":return new Float64Array(a);default:throw new Error("Unkown type: "+r)}},stringToBuffer:M,bufferToString:I};function D(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function L(e,t,n,r,i,o){e.executeSql(n,r,i,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?o(e,a):D(e,t,(function(){e.executeSql(n,r,i,o)}),o)}),o):o(e,a)}),o)}function N(e,t,n,r){var i=this;e=u(e);var o=new a((function(o,a){i.ready().then((function(){void 0===t&&(t=null);var s=t,l=i._dbInfo;l.serializer.serialize(t,(function(t,u){u?a(u):l.db.transaction((function(n){L(n,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){o(s)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void o(N.apply(i,[e,s,n,r-1]));a(t)}}))}))})).catch(a)}));return s(o,n),o}function F(e){return new a((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var i=[],o=0;o<r.rows.length;o++)i.push(r.rows.item(o).name);t({db:e,storeNames:i})}),(function(e,t){n(t)}))}),(function(e){n(e)}))}))}var B={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var i=new a((function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction((function(i){D(i,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=j,i},_support:"function"==typeof openDatabase,iterate:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){L(n,i,"SELECT * FROM "+i.storeName,[],(function(n,r){for(var o=r.rows,a=o.length,s=0;s<a;s++){var l=o.item(s),u=l.value;if(u&&(u=i.serializer.deserialize(u)),void 0!==(u=e(u,l.key,s+1)))return void t(u)}t()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){L(n,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},setItem:function(e,t,n){return N.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){L(n,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},clear:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){L(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},length:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){L(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(t,n){var r=n.rows.item(0).c;e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},key:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){L(n,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},keys:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){L(t,r,"SELECT key FROM "+r.storeName,[],(function(t,n){for(var r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).key);e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},dropInstance:function(e,t){t=c.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;return s(r=e.name?new a((function(t){var r;r=e.name===n.name?i._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(F(r))})).then((function(e){return new a((function(t,n){e.db.transaction((function(r){function i(e){return new a((function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){n(t)}))}))}for(var o=[],s=0,l=e.storeNames.length;s<l;s++)o.push(i(e.storeNames[s]));a.all(o).then((function(){t()})).catch((function(e){n(e)}))}),(function(e){n(e)}))}))})):a.reject("Invalid arguments"),t),r}};function z(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function U(){return!function(){try{return localStorage.setItem("_localforage_support_test",!0),localStorage.removeItem("_localforage_support_test"),!1}catch(e){return!0}}()||localStorage.length>0}var q={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=z(e,this._defaultConfig),U()?(this._dbInfo=t,t.serializer=j,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,o=localStorage.length,a=1,s=0;s<o;s++){var l=localStorage.key(s);if(0===l.indexOf(r)){var u=localStorage.getItem(l);if(u&&(u=t.serializer.deserialize(u)),void 0!==(u=e(u,l.substring(i),a++)))return u}}}));return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=n.ready().then((function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r}));return s(r,t),r},setItem:function(e,t,n){var r=this;e=u(e);var i=r.ready().then((function(){void 0===t&&(t=null);var n=t;return new a((function(i,o){var a=r._dbInfo;a.serializer.serialize(t,(function(t,r){if(r)o(r);else try{localStorage.setItem(a.keyPrefix+e,t),i(n)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||o(e),o(e)}}))}))}));return s(i,n),i},removeItem:function(e,t){var n=this;e=u(e);var r=n.ready().then((function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return s(r,t),r},clear:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return s(n,e),n},length:function(e){var t=this.keys().then((function(e){return e.length}));return s(t,e),t},key:function(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return s(r,t),r},keys:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],i=0;i<n;i++){var o=localStorage.key(i);0===o.indexOf(e.keyPrefix)&&r.push(o.substring(e.keyPrefix.length))}return r}));return s(n,e),n},dropInstance:function(e,t){if(t=c.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,i=this;return s(r=e.name?new a((function(t){e.storeName?t(z(e,i._defaultConfig)):t(e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):a.reject("Invalid arguments"),t),r}},H=function(e,t){for(var n,r,i=e.length,o=0;o<i;){if((n=e[o])===(r=t)||"number"==typeof n&&"number"==typeof r&&isNaN(n)&&isNaN(r))return!0;o++}return!1},W=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},V={},$={},G={INDEXEDDB:O,WEBSQL:B,LOCALSTORAGE:q},K=[G.INDEXEDDB._driver,G.WEBSQL._driver,G.LOCALSTORAGE._driver],Y=["dropInstance"],Q=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Y),X={description:"",driver:K.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function J(e,t){e[t]=function(){var n=arguments;return e.ready().then((function(){return e[t].apply(e,n)}))}}function Z(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(W(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var ee=new(function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),G)if(G.hasOwnProperty(n)){var r=G[n],i=r._driver;this[n]=i,V[i]||this.defineDriver(r)}this._defaultConfig=Z({},X),this._config=Z({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new a((function(t,n){try{var r=e._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(i);for(var o=Q.concat("_initStorage"),l=0,u=o.length;l<u;l++){var c=o[l];if((!H(Y,c)||e[c])&&"function"!=typeof e[c])return void n(i)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=a.reject(t);return s(n,arguments[arguments.length-1]),n}},n=0,r=Y.length;n<r;n++){var i=Y[n];e[i]||(e[i]=t(i))}}();var d=function(n){V[r]&&console.info("Redefining LocalForage driver: "+r),V[r]=e,$[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(d,n):d(!!e._support):d(!0)}catch(e){n(e)}}));return l(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=V[e]?a.resolve(V[e]):a.reject(new Error("Driver not found."));return l(r,t,n),r},e.prototype.getSerializer=function(e){var t=a.resolve(j);return l(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return l(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;W(e)||(e=[e]);var i=this._getSupportedDrivers(e);function o(){r._config.driver=r.driver()}function s(e){return r._extend(e),o(),r._ready=r._initStorage(r._config),r._ready}var u=null!==this._driverSet?this._driverSet.catch((function(){return a.resolve()})):a.resolve();return this._driverSet=u.then((function(){var e=i[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then((function(e){r._driver=e._driver,o(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(e){return function(){var t=0;return function n(){for(;t<e.length;){var i=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(i).then(s).catch(n)}o();var l=new Error("No available storage method found.");return r._driverSet=a.reject(l),r._driverSet}()}}(i)}))})).catch((function(){o();var e=new Error("No available storage method found.");return r._driverSet=a.reject(e),r._driverSet})),l(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!$[e]},e.prototype._extend=function(e){Z(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=Q.length;e<t;e++)J(this,Q[e])},e.prototype.createInstance=function(t){return new e(t)},e}());t.exports=ee},{3:3}]},{},[4])(4)}).call(this,n(43))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flowAsync=t.onlySuccessfulPromises=t.then=void 0;var r,i=(r=n(124))&&r.__esModule?r:{default:r};t.then=e=>t=>Promise.resolve(t).then(e);const o=Symbol("filterPromiseSymbol");t.onlySuccessfulPromises=e=>Promise.all(e.map(e=>e.catch(()=>o))).then(e=>e.filter(e=>e!==o));t.flowAsync=e=>(0,i.default)(e.map(e=>(e=>async t=>e(await t))(e)))},function(e,t,n){var r=n(347),i=n(265),o=n(349),a=n(493),s=n(44),l=n(494);e.exports=function(e){return i((function(t){var n=t.length,i=n,u=r.prototype.thru;for(e&&t.reverse();i--;){var c=t[i];if("function"!=typeof c)throw new TypeError("Expected a function");if(u&&!d&&"wrapper"==a(c))var d=new r([],!0)}for(i=d?i:n;++i<n;){c=t[i];var f=a(c),p="wrapper"==f?o(c):void 0;d=p&&l(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?d[a(p[0])].apply(d,p[3]):1==c.length&&l(c)?d[f]():d.thru(c)}return function(){var e=arguments,r=e[0];if(d&&1==e.length&&s(r))return d.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}},function(e,t){e.exports={}},function(e,t,n){var r=n(350),i=n(347),o=n(348),a=n(44),s=n(69),l=n(910),u=Object.prototype.hasOwnProperty;function c(e){if(s(e)&&!a(e)&&!(e instanceof r)){if(e instanceof i)return e;if(u.call(e,"__wrapped__"))return l(e)}return new i(e)}c.prototype=o.prototype,c.prototype.constructor=c,e.exports=c},function(e,t,n){var r=n(350),i=n(347),o=n(189);e.exports=function(e){if(e instanceof r)return e.clone();var t=new i(e.__wrapped__,e.__chain__);return t.__actions__=o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},function(e,t,n){var r=n(266),i=n(75);e.exports=function(e,t,n){var o=1&t,a=r(e);return function t(){var r=this&&this!==i&&this instanceof t?a:e;return r.apply(o?n:this,arguments)}}},function(e,t,n){var r=n(252),i=n(266),o=n(497),a=n(500),s=n(267),l=n(223),u=n(75);e.exports=function(e,t,n){var c=i(e);return function i(){for(var d=arguments.length,f=Array(d),p=d,h=s(i);p--;)f[p]=arguments[p];var m=d<3&&f[0]!==h&&f[d-1]!==h?[]:l(f,h);if((d-=m.length)<n)return a(e,t,o,i.placeholder,void 0,f,m,void 0,void 0,n-d);var g=this&&this!==u&&this instanceof i?c:e;return r(g,this,f)}}},function(e,t){e.exports=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}},function(e,t){var n=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;e.exports=function(e){var t=e.match(n);return t?t[1].split(r):[]}},function(e,t){var n=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(n,"{\n/* [wrapped with "+t+"] */\n")}},function(e,t,n){var r=n(352),i=n(255),o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return r(o,(function(n){var r="_."+n[0];t&n[1]&&!i(e,r)&&e.push(r)})),e.sort()}},function(e,t,n){var r=n(189),i=n(183),o=Math.min;e.exports=function(e,t){for(var n=e.length,a=o(t.length,n),s=r(e);a--;){var l=t[a];e[a]=i(l,n)?s[l]:void 0}return e}},function(e,t,n){var r=n(252),i=n(266),o=n(75);e.exports=function(e,t,n,a){var s=1&t,l=i(e);return function t(){for(var i=-1,u=arguments.length,c=-1,d=a.length,f=Array(d+u),p=this&&this!==o&&this instanceof t?l:e;++c<d;)f[c]=a[c];for(;u--;)f[c++]=arguments[++i];return r(p,s?n:this,f)}}},function(e,t,n){var r=n(498),i=n(499),o=n(223),a=Math.min;e.exports=function(e,t){var n=e[1],s=t[1],l=n|s,u=l<131,c=128==s&&8==n||128==s&&256==n&&e[7].length<=t[8]||384==s&&t[7].length<=t[8]&&8==n;if(!u&&!c)return e;1&s&&(e[2]=t[2],l|=1&n?0:4);var d=t[3];if(d){var f=e[3];e[3]=f?r(f,d,t[4]):d,e[4]=f?o(e[3],"__lodash_placeholder__"):t[4]}return(d=t[5])&&(f=e[5],e[5]=f?i(f,d,t[6]):d,e[6]=f?o(e[5],"__lodash_placeholder__"):t[6]),(d=t[7])&&(e[7]=d),128&s&&(e[8]=null==e[8]?t[8]:a(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathDepth=t.getAllResponses=t.parseLinkHeader=t.responseParser=t.parseResponse=t.filterByExtension=void 0;var r=u(n(354)),i=u(n(508)),o=u(n(124)),a=n(4),s=u(n(351)),l=u(n(346));function u(e){return e&&e.__esModule?e:{default:e}}t.filterByExtension=(e,t)=>((null==e?void 0:e.path)||"").endsWith(t.startsWith(".")?t:"."+t);const c=(e,t)=>n=>{try{return t(n)}catch(t){throw new Error(`Response cannot be parsed into the expected format (${e}): ${t.message}`)}},d=(0,a.fromJS)({json:async e=>{const t=e.headers.get("Content-Type")||"";if(!t.startsWith("application/json")&&!t.startsWith("text/json"))throw new Error(t+" is not a valid JSON Content-Type");return e.json()},text:async e=>e.text(),blob:async e=>e.blob()}).mapEntries(([e,t])=>[e,c(e,t)]),f=async(e,{expectingOk:t=!0,format:n="text",apiName:r=""})=>{let i;try{const t=d.get(n,!1);if(!t)throw new Error(n+" is not a supported response format.");i=await t(e)}catch(t){throw new l.default(t.message,e.status,r)}if(t&&!e.ok){var o;const t="json"===n,a=t?i.message||i.msg||(null===(o=i.error)||void 0===o?void 0:o.message):i;throw new l.default(t&&a?a:i,e.status,r)}return i};t.parseResponse=f;t.responseParser=e=>t=>f(t,e);const p=e=>e?(0,o.default)([e=>e.split(","),(0,r.default)(e=>e.trim().split(";")),(0,r.default)(([e,t])=>[t.match(/rel="(.*?)"/)[1],e.trim().match(/<(.*?)>/)[1].replace(/\+/g,"%20")]),i.default])(e):{};t.parseLinkHeader=p;t.getAllResponses=async(e,t={},n,r)=>{let i=1,o=s.default.fromFetchArguments(e,t);const a=[];for(;o&&i<30;){const e=await s.default.performRequest(o),l=e.headers.get("Link"),u=l&&p(l)[n],{headers:c={}}=t;o=u&&s.default.fromFetchArguments(r(u),{headers:c}),a.push(e),i++}return a};t.getPathDepth=e=>e.split("/").length},function(e,t,n){var r=n(922),i=n(224),o=Array.prototype.push;function a(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function s(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function l(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var i=r[0]=t.apply(void 0,r);return e.apply(void 0,r),i}}}e.exports=function e(t,n,u,c){var d="function"==typeof n,f=n===Object(n);if(f&&(c=u,u=n,n=void 0),null==u)throw new TypeError;c||(c={});var p=!("cap"in c)||c.cap,h=!("curry"in c)||c.curry,m=!("fixed"in c)||c.fixed,g=!("immutable"in c)||c.immutable,v=!("rearg"in c)||c.rearg,y=d?u:i,b="curry"in c&&c.curry,_="fixed"in c&&c.fixed,w="rearg"in c&&c.rearg,x=d?u.runInContext():void 0,k=d?u:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},E=k.ary,S=k.assign,O=k.clone,T=k.curry,C=k.forEach,A=k.isArray,P=k.isError,R=k.isFunction,M=k.isWeakMap,I=k.keys,j=k.rearg,D=k.toInteger,L=k.toPath,N=I(r.aryMethod),F={castArray:function(e){return function(){var t=arguments[0];return A(t)?e(s(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[0],n=arguments[1],r=e(t,n),i=r.length;return p&&"number"==typeof n?(n=n>2?n-2:1,i&&i<=n?r:a(r,n)):r}},mixin:function(e){return function(t){var n=this;if(!R(n))return e(n,Object(t));var r=[];return C(I(t),(function(e){R(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),C(r,(function(e){var t=e[1];R(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:D(t)+1;return T(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return T(e(t,n),r)}},runInContext:function(n){return function(r){return e(t,n(r),c)}}};function B(e,t){if(p){var n=r.iterateeRearg[e];if(n)return function(e,t){return W(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(j(a(e,n),t),n)}))}(t,n);var i=!d&&r.iterateeAry[e];if(i)return function(e,t){return W(e,(function(e){return"function"==typeof e?a(e,t):e}))}(t,i)}return t}function z(e,t,n){if(m&&(_||!r.skipFixed[e])){var i=r.methodSpread[e],a=i&&i.start;return void 0===a?E(t,n):function(e,t){return function(){for(var n=arguments.length,r=n-1,i=Array(n);n--;)i[n]=arguments[n];var a=i[t],s=i.slice(0,t);return a&&o.apply(s,a),t!=r&&o.apply(s,i.slice(t+1)),e.apply(this,s)}}(t,a)}return t}function U(e,t,n){return v&&n>1&&(w||!r.skipRearg[e])?j(t,r.methodRearg[e]||r.aryRearg[n]):t}function q(e,t){for(var n=-1,r=(t=L(t)).length,i=r-1,o=O(Object(e)),a=o;null!=a&&++n<r;){var s=t[n],l=a[s];null==l||R(l)||P(l)||M(l)||(a[s]=O(n==i?l:Object(l))),a=a[s]}return o}function H(t,n){var i=r.aliasToReal[t]||t,o=r.remap[i]||i,a=c;return function(t){var r=d?x:k,s=d?x[o]:n,l=S(S({},a),t);return e(r,i,s,l)}}function W(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var i=v?0:n-1;return r[i]=t(r[i]),e.apply(void 0,r)}}function V(e,t,n){var i,o=r.aliasToReal[e]||e,a=t,u=F[o];return u?a=u(t):g&&(r.mutate.array[o]?a=l(t,s):r.mutate.object[o]?a=l(t,function(e){return function(t){return e({},t)}}(t)):r.mutate.set[o]&&(a=l(t,q))),C(N,(function(e){return C(r.aryMethod[e],(function(t){if(o==t){var n=r.methodSpread[o],s=n&&n.afterRearg;return i=s?z(o,U(o,a,e),e):U(o,z(o,a,e),e),i=function(e,t,n){return b||h&&n>1?T(t,n):t}(0,i=B(o,i),e),!1}})),!i})),i||(i=a),i==t&&(i=b?T(i,1):function(){return t.apply(this,arguments)}),i.convert=H(o,t),i.placeholder=t.placeholder=n,i}if(!f)return V(n,u,y);var $=u,G=[];return C(N,(function(e){C(r.aryMethod[e],(function(e){var t=$[r.remap[e]||e];t&&G.push([e,V(e,t,$)])}))})),C(I($),(function(e){var t=$[e];if("function"==typeof t){for(var n=G.length;n--;)if(G[n][0]==e)return;t.convert=H(e,t),G.push([e,t])}})),C(G,(function(e){$[e[0]]=e[1]})),$.convert=function(e){return $.runInContext.convert(e)(void 0)},$.placeholder=$,C(I($),(function(e){C(r.realToAlias[e]||[],(function(t){$[t]=$[e]}))})),$}},function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var i in n){var o=n[i];e.call(r,o)?r[o].push(i):r[o]=[i]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},function(e,t,n){e.exports={ary:n(924),assign:n(503),clone:n(925),curry:n(495),forEach:n(352),isArray:n(44),isError:n(256),isFunction:n(180),isWeakMap:n(940),iteratee:n(941),keys:n(320),rearg:n(942),toInteger:n(110),toPath:n(943)}},function(e,t,n){var r=n(222);e.exports=function(e,t,n){return t=n?void 0:t,t=e&&null==t?e.length:t,r(e,128,void 0,void 0,void 0,void 0,t)}},function(e,t,n){var r=n(355);e.exports=function(e){return r(e,4)}},function(e,t,n){var r=n(190),i=n(225);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(76),i=n(251),o=n(928),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(190),i=n(318);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){var r=n(190),i=n(505);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(357),i=n(933),o=n(934),a=n(935),s=n(506);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Set]":return new l;case"[object Symbol]":return a(e)}}},function(e,t,n){var r=n(357);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(181),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},function(e,t,n){var r=n(937),i=n(156),o=n(250),a=o&&o.isMap,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(185),i=n(69);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(939),i=n(156),o=n(250),a=o&&o.isSet,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(185),i=n(69);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},function(e,t,n){var r=n(185),i=n(69);e.exports=function(e){return i(e)&&"[object WeakMap]"==r(e)}},function(e,t,n){var r=n(355),i=n(102);e.exports=function(e){return i("function"==typeof e?e:r(e,1))}},function(e,t,n){var r=n(222),i=n(265),o=i((function(e,t){return r(e,256,void 0,void 0,void 0,t)}));e.exports=o},function(e,t,n){var r=n(120),i=n(189),o=n(44),a=n(182),s=n(431),l=n(134),u=n(109);e.exports=function(e){return o(e)?r(e,l):a(e)?[e]:i(s(u(e)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return new Promise((t,n)=>{let r=!1;const i=document.getElementsByTagName("head")[0],o=document.createElement("script");o.src=e,o.onload=o.onreadystatechange=function(){r||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState?n():(r=!0,t())},o.onerror=e=>n(e),i.appendChild(o)})}},function(module,exports,__webpack_require__){(function(process,global){var __WEBPACK_AMD_DEFINE_RESULT__;
+/**
+ * [js-sha256]{@link https://github.com/emn178/js-sha256}
+ *
+ * @version 0.9.0
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
+ * @copyright Chen, Yi-Cyuan 2014-2017
+ * @license MIT
+ */!function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD=__webpack_require__(946),ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(n){return new Sha256(t,!0).update(n)[e]()}},createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];t[r]=createOutputMethod(r,e)}return t},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(e){if("string"==typeof e)return crypto.createHash(algorithm).update(e,"utf8").digest("hex");if(null==e)throw new Error(ERROR);return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod},createHmacOutputMethod=function(e,t){return function(n,r){return new HmacSha256(n,t,!0).update(r)[e]()}},createHmacMethod=function(e){var t=createHmacOutputMethod("hex",e);t.create=function(t){return new HmacSha256(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];t[r]=createHmacOutputMethod(r,e)}return t};function Sha256(e,t){t?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function HmacSha256(e,t,n){var r,i=typeof e;if("string"===i){var o,a=[],s=e.length,l=0;for(r=0;r<s;++r)(o=e.charCodeAt(r))<128?a[l++]=o:o<2048?(a[l++]=192|o>>6,a[l++]=128|63&o):o<55296||o>=57344?(a[l++]=224|o>>12,a[l++]=128|o>>6&63,a[l++]=128|63&o):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++r)),a[l++]=240|o>>18,a[l++]=128|o>>12&63,a[l++]=128|o>>6&63,a[l++]=128|63&o);e=a}else{if("object"!==i)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var u=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;u[r]=92^d,c[r]=54^d}Sha256.call(this,t,n),this.update(c),this.oKeyPad=u,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var r,i,o=0,a=e.length,s=this.blocks;o<a;){if(this.hashed&&(this.hashed=!1,s[0]=this.block,s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),t)for(i=this.start;o<a&&i<64;++o)s[i>>2]|=e[o]<<SHIFT[3&i++];else for(i=this.start;o<a&&i<64;++o)(r=e.charCodeAt(o))<128?s[i>>2]|=r<<SHIFT[3&i++]:r<2048?(s[i>>2]|=(192|r>>6)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]):r<55296||r>=57344?(s[i>>2]|=(224|r>>12)<<SHIFT[3&i++],s[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++o)),s[i>>2]|=(240|r>>18)<<SHIFT[3&i++],s[i>>2]|=(128|r>>12&63)<<SHIFT[3&i++],s[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,n,r,i,o,a,s,l,u=this.h0,c=this.h1,d=this.h2,f=this.h3,p=this.h4,h=this.h5,m=this.h6,g=this.h7,v=this.blocks;for(e=16;e<64;++e)t=((i=v[e-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,n=((i=v[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,v[e]=v[e-16]+t+v[e-7]+n<<0;for(l=c&d,e=0;e<64;e+=4)this.first?(this.is224?(o=300032,g=(i=v[0]-1413257819)-150054599<<0,f=i+24177077<<0):(o=704751109,g=(i=v[0]-210244248)-1521486534<<0,f=i+143694565<<0),this.first=!1):(t=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),r=(o=u&c)^u&d^l,g=f+(i=g+(n=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&h^~p&m)+K[e]+v[e])<<0,f=i+(t+r)<<0),t=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),r=(a=f&u)^f&c^o,m=d+(i=m+(n=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&p^~g&h)+K[e+1]+v[e+1])<<0,t=((d=i+(t+r)<<0)>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),r=(s=d&f)^d&u^a,h=c+(i=h+(n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&g^~m&p)+K[e+2]+v[e+2])<<0,t=((c=i+(t+r)<<0)>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),r=(l=c&d)^c&f^s,p=u+(i=p+(n=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&m^~h&g)+K[e+3]+v[e+3])<<0,u=i+(t+r)<<0;this.h0=this.h0+u<<0,this.h1=this.h1+c<<0,this.h2=this.h2+d<<0,this.h3=this.h3+f<<0,this.h4=this.h4+p<<0,this.h5=this.h5+h<<0,this.h6=this.h6+m<<0,this.h7=this.h7+g<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,l=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a];return this.is224||(l+=HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]),l},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,l=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||l.push(s>>24&255,s>>16&255,s>>8&255,255&s),l},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()}).call(this,__webpack_require__(70),__webpack_require__(43))},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allEntriesByFolder=t.getLocalTree=t.persistLocalTree=t.runWithLock=t.getMediaDisplayURL=t.getMediaAsBlob=t.blobToFileObj=t.unpublishedEntries=t.entriesByFiles=t.entriesByFolder=void 0;var r=s(n(211)),i=s(n(948)),o=s(n(191)),a=n(491);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=async(e,t,n,r)=>{const i=(0,o.default)(10),a=[];return e.forEach(e=>{a.push(new Promise(o=>i.take(async()=>{try{const[r,a]=await Promise.all([t(e.path,e.id,{parseText:!0}),n(e.path,e.id)]);o({file:u(u({},e),a),data:r}),i.leave()}catch(t){i.leave(),console.error(`failed to load file from ${r}: ${e.path}`),o({error:!0})}})))}),Promise.all(a).then(e=>e.filter(e=>!e.error))};t.entriesByFolder=async(e,t,n,r)=>{const i=await e();return d(i,t,n,r)};t.entriesByFiles=async(e,t,n,r)=>d(e,t,n,r);t.unpublishedEntries=async e=>{try{return await e()}catch(e){if("Not Found"===e.message)return Promise.resolve([]);throw e}};t.blobToFileObj=(e,t)=>{const n=e.match(/.svg$/)?{type:"image/svg+xml"}:{};return new File([t],e,n)};const f=async(e,t,n)=>{let r;if(e.match(/.svg$/)){const i=await n(e,t,{parseText:!0});r=new Blob([i],{type:"image/svg+xml"})}else r=await n(e,t,{parseText:!1});return r};t.getMediaAsBlob=f;t.getMediaDisplayURL=async(e,t,n)=>{const{path:r,id:i}=e;return new Promise((e,o)=>n.take(()=>f(r,i,t).then(e=>URL.createObjectURL(e)).then(e,o).finally(()=>n.leave())))};t.runWithLock=async(e,t,n)=>{try{await e.acquire()||console.warn(n);return await t()}finally{e.release()}};const p=({branch:e,folder:t,extension:n,depth:r})=>`git.local.${e}.${t}.${n}.${r}`,h=async({localForage:e,localTree:t,branch:n,folder:r,extension:i,depth:o})=>{await e.setItem(p({branch:n,folder:r,extension:i,depth:o}),t)};t.persistLocalTree=h;const m=async({localForage:e,branch:t,folder:n,extension:r,depth:i})=>await e.getItem(p({branch:t,folder:n,extension:r,depth:i}));t.getLocalTree=m;t.allEntriesByFolder=async({listAllFiles:e,readFile:t,readFileMetadata:n,apiName:o,branch:s,localForage:l,folder:c,extension:f,depth:p,getDefaultBranch:g,isShaExistsInBranch:v,getDifferences:y,getFileId:b,filterFile:_})=>{const w=async()=>{const t=await e(c,f,p),n=await g();return await h({localForage:l,localTree:{head:n.sha,files:t.map(e=>({id:e.id,path:e.path,name:(0,a.basename)(e.path)}))},branch:n.name,depth:p,extension:f,folder:c}),t},x=await(async()=>{const e=await m({localForage:l,branch:s,folder:c,extension:f,depth:p});if(e){const t=await g();if(!await v(t.name,e.head))return console.log(`Can't find local tree head '${e.head}' in branch '${t.name}', rebuilding local tree`),w();const n=await(async({branch:e,localTree:t,folder:n,getDifferences:r,filterFile:i,getFileId:o})=>{const s=(await r(e.sha,t.head)).filter(e=>{var t,r;return(null===(t=e.oldPath)||void 0===t?void 0:t.startsWith(n))||(null===(r=e.newPath)||void 0===r?void 0:r.startsWith(n))}).reduce((e,t)=>("renamed"===t.status?(e.push({path:t.oldPath,name:(0,a.basename)(t.oldPath),deleted:!0}),e.push({path:t.newPath,name:(0,a.basename)(t.newPath),deleted:!1})):"deleted"===t.status?e.push({path:t.oldPath,name:(0,a.basename)(t.oldPath),deleted:!0}):e.push({path:t.newPath||t.oldPath,name:(0,a.basename)(t.newPath||t.oldPath),deleted:!1}),e),[]).filter(i);return await Promise.all(s.map(async e=>{if(e.deleted)return u(u({},e),{},{id:""});{const t=await o(e.path);return u(u({},e),{},{id:t})}}))})({branch:t,localTree:e,folder:c,extension:f,depth:p,getDifferences:y,getFileId:b,filterFile:_}).catch(e=>(console.log("Failed getting diff from local tree:",e),null));if(!n)return console.log("Diff is null, rebuilding local tree"),w();if(0===n.length)return e.files;{const o=e=>e.path,a=n.reduce((e,t)=>(e[t.path]=t.deleted,e),{}),s=(0,r.default)((0,i.default)(n.filter(e=>!a[e.path]),e.files.filter(e=>!a[e.path]),o),o);return await h({localForage:l,localTree:{head:t.sha,files:s},branch:t.name,depth:p,extension:f,folder:c}),s}}return w()})();return d(x,t,n,o)}},function(e,t,n){var r=n(212),i=n(102),o=n(137),a=n(325),s=n(269),l=n(162),u=o((function(e){var t=l(e);return s(t)&&(t=void 0),a(r(e,1,s,!0),i(t,2))}));e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwOnConflictingBranches=t.getPreviewStatus=t.PreviewState=t.isPreviewContext=t.readFileMetadata=t.readFile=t.requestWithBackoff=void 0;var r=n(510),i=a(n(351)),o=a(n(346));function a(e){return e&&e.__esModule?e:{default:e}}class s extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t){super(e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"resetSeconds",void 0),this.resetSeconds=t<0?1:t>3600?3600:t}}const l=async(e,t,n=1)=>{e.rateLimiter&&await e.rateLimiter.acquire();try{const n=await e.buildRequest(t),r=e.requestFunction||i.default.performRequest,o=await r(n);if(429===o.status){const e=await o.text().catch(()=>"Too many requests");throw new Error(e)}if(403===o.status){const{message:e}=await o.json().catch(()=>({message:""}));if(e.match("API rate limit exceeded")){const t=new Date,n=o.headers.has("X-RateLimit-Reset")?parseInt(o.headers.get("X-RateLimit-Reset")):t.getTime()/1e3+60;throw new s(e,n)}}return o}catch(i){if(n<=5){if(!e.rateLimiter){const t=i.resetSeconds||n*n;console.log(`Pausing requests for ${t} ${1===n?"second":"seconds"} due to fetch failures:`,i.message),e.rateLimiter=(0,r.asyncLock)(),e.rateLimiter.acquire(),setTimeout(()=>{var t;null===(t=e.rateLimiter)||void 0===t||t.release(),e.rateLimiter=void 0,console.log("Done pausing requests")},1e3*t)}return l(e,t,n+1)}throw i}};t.requestWithBackoff=l;t.readFile=async(e,t,n,r)=>{const i=e?r?"gh."+e:`gh.${e}.blob`:null,o=i?await n.getItem(i):null;if(o)return o;const a=await t();return i&&await n.setItem(i,a),a};t.readFileMetadata=async(e,t,n)=>{const r=e?(e=>`gh.${e}.meta`)(e):null,i=r&&await n.getItem(r);if(i)return i;const o=await t();return r&&await n.setItem(r,o),o};const u=["deploy"],c=(e,t)=>t?e===t:u.some(t=>e.includes(t));let d;t.isPreviewContext=c,t.PreviewState=d,function(e){e.Other="other",e.Success="success"}(d||(t.PreviewState=d={}));t.getPreviewStatus=(e,t)=>e.find(({context:e})=>c(e,t));t.throwOnConflictingBranches=async(e,t,n)=>{const r=(e=>{const t=e.split("/");t.pop();return t.reduce((e,n,r)=>e=[...e,t.slice(0,r+1).join("/")],[])})(e),i=(await Promise.all(r.map(e=>t(e).then(e=>e.name).catch(()=>"")))).filter(Boolean)[0];if(i)throw new o.default(`Failed creating branch '${e}' since there is already a branch named '${i}'. Please delete the '${i}' branch and try again`,500,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.branchFromContentKey=t.contentKeyFromBranch=t.parseContentKey=t.generateContentKey=t.statusToLabel=t.labelToStatus=t.isCMSLabel=t.MERGE_COMMIT_MESSAGE=t.DEFAULT_PR_BODY=t.CMS_BRANCH_PREFIX=void 0;t.CMS_BRANCH_PREFIX="cms";t.DEFAULT_PR_BODY="Automatically generated by Netlify CMS";t.MERGE_COMMIT_MESSAGE="Automatically generated. Merged on Netlify CMS.";t.isCMSLabel=e=>e.startsWith("netlify-cms/");t.labelToStatus=e=>e.substr("netlify-cms/".length);t.statusToLabel=e=>"netlify-cms/"+e;t.generateContentKey=(e,t)=>`${e}/${t}`;t.parseContentKey=e=>{const t=e.indexOf("/");return{collection:e.substr(0,t),slug:e.substr(t+1)}};t.contentKeyFromBranch=e=>e.substring("cms/".length);t.branchFromContentKey=e=>"cms/"+e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPointerFileForMediaFileObj=x,t.getLargeMediaFilteredMediaFiles=async function(e,t){return await Promise.all(t.map(async t=>{const{fileObj:n,path:r}=t,i=r.startsWith("/")?r.slice(1):r;if(!e.matchPath(i))return t;const o=await x(e,n,r);return c(c({},t),o)}))},t.createPointerFile=t.getLargeMediaPatternsFromGitAttributesFile=t.parsePointerFile=void 0;var r=l(n(354)),i=l(n(511)),o=l(n(512)),a=l(n(952)),s=l(n(509));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}function f(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const p=e=>e.split("\n"),h=e=>e.split(/\s+/g),m=(0,o.default)([(0,r.default)(e=>e.trim()),(0,a.default)(e=>""!==e)]),g=(0,o.default)([p,m,(0,r.default)(h),i.default,e=>{let{size:t,oid:n}=e,r=f(e,["size","oid"]);return c({size:parseInt(t),sha:null==n?void 0:n.split(":")[1]},r)}]);t.parsePointerFile=g;const v=(0,o.default)([(0,r.default)(e=>e.includes("=")?e.split("="):e.startsWith("-")?[e.slice(1),!1]:[e,!0]),i.default]),y=(0,o.default)([h,([e,...t])=>[e,v(t)]]),b=(0,o.default)([p,(0,r.default)(e=>e.split("#")[0]),m,(0,r.default)(y)]),_=(0,o.default)([b,(0,a.default)(([,e])=>"lfs"===e.filter&&"lfs"===e.diff&&"lfs"===e.merge),(0,r.default)(([e])=>e)]);t.getLargeMediaPatternsFromGitAttributesFile=_;const w=({size:e,sha:t})=>`version https://git-lfs.github.com/spec/v1\noid sha256:${t}\nsize ${e}\n`;async function x(e,t,n){const{name:r,size:i}=t,o=await(0,s.default)(t);await e.uploadResource({sha:o,size:i},t);const a=w({sha:o,size:i}),l=new Blob([a]),u=new File([l],r,{type:"text/plain"}),c=await(0,s.default)(u);return{fileObj:u,size:l.size,sha:c,raw:a,path:n}}t.createPointerFile=w},function(e,t,n){var r=n(268)("filter",n(953));r.placeholder=n(224),e.exports=r},function(e,t,n){var r=n(437),i=n(954),o=n(102),a=n(44);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},function(e,t,n){var r=n(449);e.exports=function(e,t){var n=[];return r(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(163)),i=s(n(956)),o=n(164),a=n(37);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{fetchWithTimeout:d}=a.unsentRequest;t.default=class{constructor(e,t){if(this.config=e,null==e.get("getSignedFormURL"))throw"The AssetStore integration needs the getSignedFormURL in the integration configuration.";this.getToken=t,this.shouldConfirmUpload=e.get("shouldConfirmUpload",!1),this.getSignedFormURL=(0,r.default)(e.get("getSignedFormURL"),"/")}parseJsonResponse(e){return e.json().then(t=>e.ok?t:Promise.reject(t))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+="?"+n.join("&")),e}requestHeaders(e={}){return u({},e)}confirmRequest(e){this.getToken().then(t=>this.request(`${this.getSignedFormURL}/${e}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer "+t},body:JSON.stringify({state:"uploaded"})}))}async request(e,t={}){const n=this.requestHeaders(t.headers||{}),r=this.urlFor(e,t),i=await d(r,u(u({},t),{},{headers:n})),o=i.headers.get("Content-Type");return o&&o.match(/json/)?await this.parseJsonResponse(i):i.text()}async retrieve(e,t,n){const r=(0,i.default)({search:e,page:t,filter:n?"private":"public"},e=>!!e),a=(0,o.addParams)(this.getSignedFormURL,r),s={"Content-Type":"application/json",Authorization:"Bearer "+await this.getToken()};return(await this.request(a,{headers:s})).map(({id:e,name:t,size:n,url:r})=>({id:e,name:t,size:n,displayURL:r,url:r}))}delete(e){const t=`${this.getSignedFormURL}/${e}`;return this.getToken().then(e=>this.request(t,{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:"Bearer "+e}}))}async upload(e,t=!1){const n={name:e.name,size:e.size};e.type&&(n.content_type=e.type),t&&(n.visibility="private");try{const t=await this.getToken(),r=await this.request(this.getSignedFormURL,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+t},body:JSON.stringify(n)}),i=r.form.url,o=r.form.fields,{id:a,name:s,size:l,url:u}=r.asset,c=new FormData;Object.keys(o).forEach(e=>c.append(e,o[e])),c.append("file",e,e.name),await this.request(i,{method:"POST",body:c}),this.shouldConfirmUpload&&await this.confirmRequest(a);return{success:!0,asset:{id:a,name:s,size:l,displayURL:u,url:u}}}catch(e){throw console.error(e),e}}}},function(e,t,n){var r=n(120),i=n(102),o=n(513),a=n(356);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=i(t),o(e,n,(function(e,n){return t(e,n[0])}))}},function(e,t,n){"use strict";var r=n(958),i=n(959);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=b(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),d=["%","/","?",";","#"].concat(c),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(960);function b(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var b=e=u.join(s);if(b=b.trim(),!n&&1===e.split("#").length){var _=l.exec(b);if(_)return this.path=b,this.href=b,this.pathname=_[1],_[2]?(this.search=_[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=a.exec(b);if(w){var x=(w=w[0]).toLowerCase();this.protocol=x,b=b.substr(w.length)}if(n||w||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var k="//"===b.substr(0,2);!k||w&&g[w]||(b=b.substr(2),this.slashes=!0)}if(!g[w]&&(k||w&&!v[w])){for(var E,S,O=-1,T=0;T<f.length;T++){-1!==(C=b.indexOf(f[T]))&&(-1===O||C<O)&&(O=C)}-1!==(S=-1===O?b.lastIndexOf("@"):b.lastIndexOf("@",O))&&(E=b.slice(0,S),b=b.slice(S+1),this.auth=decodeURIComponent(E)),O=-1;for(T=0;T<d.length;T++){var C;-1!==(C=b.indexOf(d[T]))&&(-1===O||C<O)&&(O=C)}-1===O&&(O=b.length),this.host=b.slice(0,O),b=b.slice(O),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var P=this.hostname.split(/\./),R=(T=0,P.length);T<R;T++){var M=P[T];if(M&&!M.match(p)){for(var I="",j=0,D=M.length;j<D;j++)M.charCodeAt(j)>127?I+="x":I+=M[j];if(!I.match(p)){var L=P.slice(0,T),N=P.slice(T+1),F=M.match(h);F&&(L.push(F[1]),N.unshift(F[2])),N.length&&(b="/"+N.join(".")+b),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=r.toASCII(this.hostname));var B=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+B,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[x])for(T=0,R=c.length;T<R;T++){var U=c[T];if(-1!==b.indexOf(U)){var q=encodeURIComponent(U);q===U&&(q=escape(U)),b=b.split(U).join(q)}}var H=b.indexOf("#");-1!==H&&(this.hash=b.substr(H),b=b.slice(0,H));var W=b.indexOf("?");if(-1!==W?(this.search=b.substr(W),this.query=b.substr(W+1),t&&(this.query=y.parse(this.query)),b=b.slice(0,W)):t&&(this.search="",this.query={}),b&&(this.pathname=b),v[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var V=this.search||"";this.path=B+V}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=y.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),u=0;u<l.length;u++){var c=l[u];"protocol"!==c&&(n[c]=e[c])}return v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!v[e.protocol]){for(var d=Object.keys(e),f=0;f<d.length;f++){var p=d[f];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",y=n.search||"";n.path=m+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var b=n.pathname&&"/"===n.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=_||b||n.host&&e.pathname,x=w,k=n.pathname&&n.pathname.split("/")||[],E=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(E&&(n.hostname="",n.port=null,n.host&&(""===k[0]?k[0]=n.host:k.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),w=w&&(""===h[0]||""===k[0])),_)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,k=h;else if(h.length)k||(k=[]),k.pop(),k=k.concat(h),n.search=e.search,n.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(E)n.hostname=n.host=k.shift(),(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=k.slice(-1)[0],O=(n.host||e.host||k.length>1)&&("."===S||".."===S)||""===S,T=0,C=k.length;C>=0;C--)"."===(S=k[C])?k.splice(C,1):".."===S?(k.splice(C,1),T++):T&&(k.splice(C,1),T--);if(!w&&!x)for(;T--;T)k.unshift("..");!w||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),O&&"/"!==k.join("/").substr(-1)&&k.push("");var A,P=""===k[0]||k[0]&&"/"===k[0].charAt(0);E&&(n.hostname=n.host=P?"":k.length?k.shift():"",(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift()));return(w=w||n.host&&k.length)&&!P&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){(function(e,r){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,l=2147483647,u=/^xn--/,c=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function m(e){throw new RangeError(f[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function v(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(d,".")).split("."),t).join(".")}function y(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function b(e){return g(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=36)e=p(e/35);return p(r+36*e/(e+38))}function x(e){var t,n,r,i,o,a,s,u,c,d,f,h=[],g=e.length,v=0,y=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&m("not-basic"),h.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(o=v,a=1,s=36;i>=g&&m("invalid-input"),((u=(f=e.charCodeAt(i++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36)>=36||u>p((l-v)/a))&&m("overflow"),v+=u*a,!(u<(c=s<=_?1:s>=_+26?26:s-_));s+=36)a>p(l/(d=36-c))&&m("overflow"),a*=d;_=w(v-o,t=h.length+1,0==o),p(v/t)>l-y&&m("overflow"),y+=p(v/t),v%=t,h.splice(v++,0,y)}return b(h)}function k(e){var t,n,r,i,o,a,s,u,c,d,f,g,v,b,x,k=[];for(g=(e=y(e)).length,t=128,n=0,o=72,a=0;a<g;++a)(f=e[a])<128&&k.push(h(f));for(r=i=k.length,i&&k.push("-");r<g;){for(s=l,a=0;a<g;++a)(f=e[a])>=t&&f<s&&(s=f);for(s-t>p((l-n)/(v=r+1))&&m("overflow"),n+=(s-t)*v,t=s,a=0;a<g;++a)if((f=e[a])<t&&++n>l&&m("overflow"),f==t){for(u=n,c=36;!(u<(d=c<=o?1:c>=o+26?26:c-o));c+=36)x=u-d,b=36-d,k.push(h(_(d+x%b,0))),u=p(x/b);k.push(h(_(u,0))),o=w(n,v,r==i),n=0,++r}++n,++t}return k.join("")}s={version:"1.4.1",ucs2:{decode:y,encode:b},decode:x,encode:k,toASCII:function(e){return v(e,(function(e){return c.test(e)?"xn--"+k(e):e}))},toUnicode:function(e){return v(e,(function(e){return u.test(e)?x(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(135)(e),n(43))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(961),t.encode=t.stringify=n(962)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var u=e.length;l>0&&u>l&&(u=l);for(var c=0;c<u;++c){var d,f,p,h,m=e[c].replace(s,"%20"),g=m.indexOf(n);g>=0?(d=m.substr(0,g),f=m.substr(g+1)):(d=m,f=""),p=decodeURIComponent(d),h=decodeURIComponent(f),r(a,p)?i(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),(function(a){var s=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[a]))})).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t){t.remove=function(e){return e.replace(/[^\u0000-\u007e]/g,(function(e){return r[e]||e}))};for(var n=[{base:" ",chars:" "},{base:"0",chars:"߀"},{base:"A",chars:"ⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",chars:"Ꜳ"},{base:"AE",chars:"ÆǼǢ"},{base:"AO",chars:"Ꜵ"},{base:"AU",chars:"Ꜷ"},{base:"AV",chars:"ꜸꜺ"},{base:"AY",chars:"Ꜽ"},{base:"B",chars:"ⒷBḂḄḆɃƁ"},{base:"C",chars:"ⒸCꜾḈĆCĈĊČÇƇȻ"},{base:"D",chars:"ⒹDḊĎḌḐḒḎĐƊƉᴅꝹ"},{base:"Dh",chars:"Ð"},{base:"DZ",chars:"DZDŽ"},{base:"Dz",chars:"DzDž"},{base:"E",chars:"ɛⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎᴇ"},{base:"F",chars:"ꝼⒻFḞƑꝻ"},{base:"G",chars:"ⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾɢ"},{base:"H",chars:"ⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",chars:"ⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",chars:"ⒿJĴɈȷ"},{base:"K",chars:"ⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",chars:"ⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",chars:"LJ"},{base:"Lj",chars:"Lj"},{base:"M",chars:"ⓂMḾṀṂⱮƜϻ"},{base:"N",chars:"ꞤȠⓃNǸŃÑṄŇṆŅṊṈƝꞐᴎ"},{base:"NJ",chars:"NJ"},{base:"Nj",chars:"Nj"},{base:"O",chars:"ⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OE",chars:"Œ"},{base:"OI",chars:"Ƣ"},{base:"OO",chars:"Ꝏ"},{base:"OU",chars:"Ȣ"},{base:"P",chars:"ⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",chars:"ⓆQꝖꝘɊ"},{base:"R",chars:"ⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",chars:"ⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",chars:"ⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"Th",chars:"Þ"},{base:"TZ",chars:"Ꜩ"},{base:"U",chars:"ⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",chars:"ⓋVṼṾƲꝞɅ"},{base:"VY",chars:"Ꝡ"},{base:"W",chars:"ⓌWẀẂŴẆẄẈⱲ"},{base:"X",chars:"ⓍXẊẌ"},{base:"Y",chars:"ⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",chars:"ⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",chars:"ⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐɑ"},{base:"aa",chars:"ꜳ"},{base:"ae",chars:"æǽǣ"},{base:"ao",chars:"ꜵ"},{base:"au",chars:"ꜷ"},{base:"av",chars:"ꜹꜻ"},{base:"ay",chars:"ꜽ"},{base:"b",chars:"ⓑbḃḅḇƀƃɓƂ"},{base:"c",chars:"cⓒćĉċčçḉƈȼꜿↄ"},{base:"d",chars:"ⓓdḋďḍḑḓḏđƌɖɗƋᏧԁꞪ"},{base:"dh",chars:"ð"},{base:"dz",chars:"dzdž"},{base:"e",chars:"ⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇǝ"},{base:"f",chars:"ⓕfḟƒ"},{base:"ff",chars:"ff"},{base:"fi",chars:"fi"},{base:"fl",chars:"fl"},{base:"ffi",chars:"ffi"},{base:"ffl",chars:"ffl"},{base:"g",chars:"ⓖgǵĝḡğġǧģǥɠꞡꝿᵹ"},{base:"h",chars:"ⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",chars:"ƕ"},{base:"i",chars:"ⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",chars:"ⓙjĵǰɉ"},{base:"k",chars:"ⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",chars:"ⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇɭ"},{base:"lj",chars:"lj"},{base:"m",chars:"ⓜmḿṁṃɱɯ"},{base:"n",chars:"ⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥлԉ"},{base:"nj",chars:"nj"},{base:"o",chars:"ⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿꝋꝍɵɔᴑ"},{base:"oe",chars:"œ"},{base:"oi",chars:"ƣ"},{base:"oo",chars:"ꝏ"},{base:"ou",chars:"ȣ"},{base:"p",chars:"ⓟpṕṗƥᵽꝑꝓꝕρ"},{base:"q",chars:"ⓠqɋꝗꝙ"},{base:"r",chars:"ⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",chars:"ⓢsśṥŝṡšṧṣṩșşȿꞩꞅẛʂ"},{base:"ss",chars:"ß"},{base:"t",chars:"ⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"th",chars:"þ"},{base:"tz",chars:"ꜩ"},{base:"u",chars:"ⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",chars:"ⓥvṽṿʋꝟʌ"},{base:"vy",chars:"ꝡ"},{base:"w",chars:"ⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",chars:"ⓧxẋẍ"},{base:"y",chars:"ⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",chars:"ⓩzźẑżžẓẕƶȥɀⱬꝣ"}],r={},i=0;i<n.length;i+=1)for(var o=n[i].chars,a=0;a<o.length;a+=1)r[o[a]]=n[i].base;t.replacementList=n,t.diacriticsMap=r},function(e,t,n){"use strict";var r=n(965),i=/[\/\?<>\\:\*\|"]/g,o=/[\x00-\x1f\x80-\x9f]/g,a=/^\.+$/,s=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,l=/[\. ]+$/;function u(e,t){if("string"!=typeof e)throw new Error("Input must be string");var n=e.replace(i,t).replace(o,t).replace(a,t).replace(s,t).replace(l,t);return r(n,255)}e.exports=function(e,t){var n=t&&t.replacement||"",r=u(e,n);return""===n?r:u(r,"")}},function(e,t,n){"use strict";var r=n(966),i=n(967);e.exports=r.bind(null,i)},function(e,t,n){"use strict";function r(e){return e>=55296&&e<=56319}function i(e){return e>=56320&&e<=57343}e.exports=function(e,t,n){if("string"!=typeof t)throw new Error("Input must be string");for(var o,a,s=t.length,l=0,u=0;u<s;u+=1){if(o=t.charCodeAt(u),a=t[u],r(o)&&i(t.charCodeAt(u+1))&&(a+=t[u+=1]),(l+=e(a))===n)return t.slice(0,u+1);if(l>n)return t.slice(0,u-a.length+1)}return t}},function(e,t,n){"use strict";function r(e){return e>=55296&&e<=56319}function i(e){return e>=56320&&e<=57343}e.exports=function(e){if("string"!=typeof e)throw new Error("Input must be string");for(var t=e.length,n=0,o=null,a=null,s=0;s<t;s++)i(o=e.charCodeAt(s))?null!=a&&r(a)?n+=1:n+=3:o<=127?n+=1:o>=128&&o<=2047?n+=2:o>=2048&&o<=65535&&(n+=3),a=o;return n}},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDateFromEntry=function(e,t){if(!t)return;const n=e.getIn(["data",t]),r=n&&(0,o.default)(n);if(r&&r.isValid())return r.toDate()},t.compileStringTemplate=function(e,t,n="",r=(0,a.Map)(),i){let o;const s=null!==t,l=e.replace(RegExp(u,"g"),(e,a)=>{let s;const l=function(e,t){if(!e.startsWith("fields."))return;const n=e.substring("fields.".length),r=t.getIn(f(n));if("object"==typeof r&&null!==r)return JSON.stringify(r);return r}(a,r);if(l)s=l;else{if(d[a]&&!t)return o=!0,"";s=d[a]?d[a](t):"slug"===a?n:r.getIn(f(a),"")}return i?i(s):s});if(s&&o){const e=new Error;throw e.name="SLUG_MISSING_REQUIRED_DATE",e}return l},t.extractTemplateVars=function(e){const t=RegExp(u,"g"),n=RegExp("[^}{]+","g");return(e.match(t)||[]).map(e=>{const t=e.match(n);return t?t[0]:""})},t.addFileTemplateFields=t.expandPath=t.keyToPathArray=t.SLUG_MISSING_REQUIRED_DATE=t.dateParsers=void 0;var r=l(n(163)),i=l(n(82)),o=l(n(139)),a=n(4),s=n(89);function l(e){return e&&e.__esModule?e:{default:e}}const u="{{([^}{]+)}}";function c(e){return("0"+e).slice(-2)}const d={year:e=>""+e.getUTCFullYear(),month:e=>c(e.getUTCMonth()+1),day:e=>c(e.getUTCDate()),hour:e=>c(e.getUTCHours()),minute:e=>c(e.getUTCMinutes()),second:e=>c(e.getUTCSeconds())};t.dateParsers=d;t.SLUG_MISSING_REQUIRED_DATE="SLUG_MISSING_REQUIRED_DATE";const f=e=>{if(!e)return[];const t=[],n=e.split("");let r,i=[];for(;r=n.shift();)["[","]","."].includes(r)?(i.length>0&&t.push(i.join("")),i=[]):i.push(r);return i.length>0&&t.push(i.join("")),t};t.keyToPathArray=f;const p=({data:e,path:t,paths:n=[]})=>{t.endsWith(".*")&&(t+=".");const o=t.split(".*.");if(1===o.length)n.push(t);else{const t=o[0],a=(0,i.default)(e,t);Array.isArray(a)&&a.forEach((i,a)=>{p({data:e,path:(0,r.default)(`${t}.${a}.${o.slice(1).join(".*.")}`,"."),paths:n})})}return n};t.expandPath=p;t.addFileTemplateFields=(e,t)=>{if(!e)return t;const n=(0,s.extname)(e),r=(0,s.basename)(e,n);return t=t.withMutations(e=>{e.set("filename",r),e.set("extension",""===n?n:n.substr(1))})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.selectUnpublishedSlugs=t.selectUnpublishedEntriesByStatus=t.selectUnpublishedEntry=void 0;var r,i=(r=n(517))&&r.__esModule?r:{default:r},o=n(4),a=n(103),s=n(226),l=n(160);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}t.selectUnpublishedEntry=(e,t,n)=>e&&e.getIn(["entities",`${t}.${n}`]);t.selectUnpublishedEntriesByStatus=(e,t)=>{if(!e)return null;return e.get("entities").filter(e=>e.get("status")===t).valueSeq()};t.selectUnpublishedSlugs=(e,t)=>{if(!e.get("entities"))return null;return e.get("entities").filter((e,n)=>(0,i.default)(n,t+".")).map(e=>e.get("slug")).valueSeq()};var f=(e=(0,o.Map)(),t)=>{switch(t.type){case l.CONFIG_SUCCESS:return(t.payload&&t.payload.get("publish_mode"))===a.EDITORIAL_WORKFLOW?(0,o.Map)({entities:(0,o.Map)(),pages:(0,o.Map)()}):e;case s.UNPUBLISHED_ENTRY_REQUEST:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isFetching"],!0);case s.UNPUBLISHED_ENTRY_REDIRECT:return e.deleteIn(["entities",`${t.payload.collection}.${t.payload.slug}`]);case s.UNPUBLISHED_ENTRY_SUCCESS:return e.setIn(["entities",`${t.payload.collection}.${t.payload.entry.slug}`],(0,o.fromJS)(t.payload.entry));case s.UNPUBLISHED_ENTRIES_REQUEST:return e.setIn(["pages","isFetching"],!0);case s.UNPUBLISHED_ENTRIES_SUCCESS:return e.withMutations(e=>{t.payload.entries.forEach(t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,o.fromJS)(t).set("isFetching",!1))),e.set("pages",(0,o.Map)(c(c({},t.payload.pages),{},{ids:(0,o.List)(t.payload.entries.map(e=>e.slug))})))});case s.UNPUBLISHED_ENTRY_PERSIST_REQUEST:return e.withMutations(e=>{e.setIn(["entities",`${t.payload.collection}.${t.payload.entry.get("slug")}`],(0,o.fromJS)(t.payload.entry)),e.setIn(["entities",`${t.payload.collection}.${t.payload.entry.get("slug")}`,"isPersisting"],!0),e.updateIn(["pages","ids"],(0,o.List)(),e=>e.push(t.payload.entry.get("slug")))});case s.UNPUBLISHED_ENTRY_PERSIST_SUCCESS:return e.deleteIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPersisting"]);case s.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST:return e.withMutations(e=>{e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"status"],t.payload.newStatus),e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!0)});case s.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS:case s.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!1);case s.UNPUBLISHED_ENTRY_PUBLISH_REQUEST:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPublishing"],!0);case s.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS:case s.UNPUBLISHED_ENTRY_PUBLISH_FAILURE:return e.withMutations(e=>{e.deleteIn(["entities",`${t.payload.collection}.${t.payload.slug}`])});case s.UNPUBLISHED_ENTRY_DELETE_SUCCESS:return e.deleteIn(["entities",`${t.payload.collection}.${t.payload.slug}`]);default:return e}};t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(4),i=n(272);let o,a,s,l,u;const c=(0,r.Map)({isFetching:!1,term:null,collections:null,page:0,entryIds:(0,r.List)([]),queryHits:(0,r.Map)({})});var d=(e=c,t)=>{switch(t.type){case i.SEARCH_CLEAR:return c;case i.SEARCH_ENTRIES_REQUEST:return t.payload.searchTerm!==e.get("term")?e.withMutations(e=>{e.set("isFetching",!0),e.set("term",t.payload.searchTerm),e.set("collections",(0,r.List)(t.payload.searchCollections)),e.set("page",t.payload.page)}):e;case i.SEARCH_ENTRIES_SUCCESS:return o=t.payload.entries,s=t.payload.page,l=t.payload.searchTerm,u=t.payload.searchCollections,e.withMutations(e=>{const t=(0,r.List)(o.map(e=>({collection:e.collection,slug:e.slug})));e.set("isFetching",!1),e.set("fetchID",null),e.set("page",s),e.set("term",l),e.set("collections",(0,r.List)(u)),e.set("entryIds",!s||isNaN(s)||0===s?t:e.get("entryIds",(0,r.List)()).concat(t))});case i.QUERY_REQUEST:return t.payload.searchTerm!==e.get("term")?e.withMutations(e=>{e.set("isFetching",!!t.payload.namespace),e.set("fetchID",t.payload.namespace),e.set("term",t.payload.searchTerm)}):e;case i.QUERY_SUCCESS:return l=t.payload.searchTerm,a=t.payload.response,e.withMutations(e=>{e.set("isFetching",!1),e.set("fetchID",null),e.set("term",l),e.mergeIn(["queryHits"],(0,r.Map)({[t.payload.namespace]:a.hits}))});default:return e}};t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.selectDeployPreview=void 0;var r=n(4),i=n(519);t.selectDeployPreview=(e,t,n)=>e.getIn(["deploys",`${t}.${n}`]);var o=(e=(0,r.Map)({deploys:(0,r.Map)()}),t)=>{switch(t.type){case i.DEPLOY_PREVIEW_REQUEST:{const{collection:n,slug:r}=t.payload;return e.setIn(["deploys",`${n}.${r}`,"isFetching"],!0)}case i.DEPLOY_PREVIEW_SUCCESS:{const{collection:n,slug:i,url:o,status:a}=t.payload;return e.setIn(["deploys",`${n}.${i}`],(0,r.fromJS)({isFetching:!1,url:o,status:a}))}case i.DEPLOY_PREVIEW_FAILURE:{const{collection:n,slug:i}=t.payload;return e.setIn(["deploys",`${n}.${i}`],(0,r.fromJS)({isFetching:!1}))}default:return e}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(4),i=n(208);const o=["DEPLOY_PREVIEW","STATUS_REQUEST","STATUS_SUCCESS","STATUS_FAILURE"],a=e=>o.some(t=>e.type.includes(t));var s=(e=(0,r.Map)({isFetching:!1,useOpenAuthoring:!1}),t)=>!a(t)&&t.type.includes("REQUEST")?e.set("isFetching",!0):a(t)||!t.type.includes("SUCCESS")&&!t.type.includes("FAILURE")?t.type===i.USE_OPEN_AUTHORING?e.set("useOpenAuthoring",!0):e:e.set("isFetching",!1);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.selectStatus=void 0;var r=n(4),i=n(520);t.selectStatus=e=>{var t;return(null===(t=e.get("status"))||void 0===t?void 0:t.toJS())||{}};var o=(e=(0,r.Map)(),t)=>{switch(t.type){case i.STATUS_REQUEST:return e.set("isFetching",!0);case i.STATUS_SUCCESS:return e.withMutations(e=>{e.set("isFetching",!1),e.set("status",(0,r.fromJS)(t.payload.status))});case i.STATUS_FAILURE:return e.withMutations(e=>{e.set("isFetching",!1),e.set("error",t.payload.error)});default:return e}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPhrases=function(e){return(0,i.default)({},(0,o.getLocale)("en"),(0,o.getLocale)(e))};var r,i=(r=n(977))&&r.__esModule?r:{default:r},o=n(122)},function(e,t,n){var r=n(978),i=n(981)((function(e,t,n){r(e,t,n)}));e.exports=i},function(e,t,n){var r=n(246),i=n(521),o=n(451),a=n(979),s=n(76),l=n(225),u=n(522);e.exports=function e(t,n,c,d,f){t!==n&&o(n,(function(o,l){if(f||(f=new r),s(o))a(t,n,l,c,e,d,f);else{var p=d?d(u(t,l),o,l+"",t,n,f):void 0;void 0===p&&(p=o),i(t,l,p)}}),l)}},function(e,t,n){var r=n(521),i=n(504),o=n(506),a=n(189),s=n(507),l=n(213),u=n(44),c=n(269),d=n(214),f=n(180),p=n(76),h=n(257),m=n(249),g=n(522),v=n(980);e.exports=function(e,t,n,y,b,_,w){var x=g(e,n),k=g(t,n),E=w.get(k);if(E)r(e,n,E);else{var S=_?_(x,k,n+"",e,t,w):void 0,O=void 0===S;if(O){var T=u(k),C=!T&&d(k),A=!T&&!C&&m(k);S=k,T||C||A?u(x)?S=x:c(x)?S=a(x):C?(O=!1,S=i(k,!0)):A?(O=!1,S=o(k,!0)):S=[]:h(k)||l(k)?(S=x,l(x)?S=v(x):p(x)&&!f(x)||(S=s(k))):O=!1}O&&(w.set(k,S),b(S,k,y,_,w),w.delete(k)),r(e,n,S)}}},function(e,t,n){var r=n(190),i=n(225);e.exports=function(e){return r(e,i(e))}},function(e,t,n){var r=n(137),i=n(454);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=s(n(1)),i=s(n(2)),o=s(n(983)),a=s(n(365));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.locale,n=e.messages,i=e.allowMissing,s=e.onMissingKey,l=e.interpolation,u=e.pluralRules,c=e.children,d=r.default.useMemo((function(){var e=new o.default({locale:t,phrases:n,allowMissing:i,onMissingKey:s,interpolation:l,pluralRules:u}),r=e.t.bind(e);return r._polyglot=e,r}),[t,n,i,s,l,u]);return r.default.createElement(a.default.Provider,{value:d},r.default.Children.only(c))}l.propTypes={locale:i.default.string.isRequired,messages:i.default.object.isRequired,allowMissing:i.default.bool,onMissingKey:i.default.func,interpolation:i.default.shape({suffix:i.default.string,prefix:i.default.string}),pluralRules:i.default.shape({pluralTypes:i.default.object,pluralTypeToLanguages:i.default.object}),children:i.default.element.isRequired},l.defaultProps={allowMissing:!1,onMissingKey:void 0,interpolation:void 0,pluralRules:void 0}},function(e,t,n){"use strict";var r=n(984),i=n(363),o=n(986),a=n(988),s=function(e){i(!1,e)},l=String.prototype.replace,u=String.prototype.split,c=function(e){var t=e%100,n=t%10;return 11!==t&&1===n?0:2<=n&&n<=4&&!(t>=12&&t<=14)?1:2},d={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:c,chinese:function(){return 0},croatian:c,french:function(e){return e>1?1:0},german:function(e){return 1!==e?1:0},russian:c,lithuanian:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){if(1===e)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!=1||e%100==11?1:0},slovenian:function(e){var t=e%100;return 1===t?0:2===t?1:3===t||4===t?2:3}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is"],slovenian:["sl-SL"]}};function f(e,t){var n,i,o=(n=e.pluralTypeToLanguages,i={},r(n,(function(e,t){r(e,(function(e){i[e]=t}))})),i);return o[t]||o[u.call(t,/-/,1)[0]]||o.en}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var h=/%\{(.*?)\}/g;function m(e,t,n,r,i){if("string"!=typeof e)throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(null==t)return e;var s=e,c=r||h,p=i||d,m="number"==typeof t?{smart_count:t}:t;if(null!=m.smart_count&&s){var g=u.call(s,"||||");s=a(g[function(e,t,n){return e.pluralTypes[f(e,t)](n)}(p,n||"en",m.smart_count)]||g[0])}return s=l.call(s,c,(function(e,t){return o(m,t)&&null!=m[t]?m[t]:e}))}function g(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var n=t.allowMissing?m:null;this.onMissingKey="function"==typeof t.onMissingKey?t.onMissingKey:n,this.warn=t.warn||s,this.tokenRegex=function(e){var t=e&&e.prefix||"%{",n=e&&e.suffix||"}";if("||||"===t||"||||"===n)throw new RangeError('"||||" token is reserved for pluralization');return new RegExp(p(t)+"(.*?)"+p(n),"g")}(t.interpolation),this.pluralRules=t.pluralRules||d}g.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},g.prototype.extend=function(e,t){r(e,(function(e,n){var r=t?t+"."+n:n;"object"==typeof e?this.extend(e,r):this.phrases[r]=e}),this)},g.prototype.unset=function(e,t){"string"==typeof e?delete this.phrases[e]:r(e,(function(e,n){var r=t?t+"."+n:n;"object"==typeof e?this.unset(e,r):delete this.phrases[r]}),this)},g.prototype.clear=function(){this.phrases={}},g.prototype.replace=function(e){this.clear(),this.extend(e)},g.prototype.t=function(e,t){var n,r,i=null==t?{}:t;if("string"==typeof this.phrases[e])n=this.phrases[e];else if("string"==typeof i._)n=i._;else if(this.onMissingKey){r=(0,this.onMissingKey)(e,i,this.currentLocale,this.tokenRegex,this.pluralRules)}else this.warn('Missing translation for key: "'+e+'"'),r=e;return"string"==typeof n&&(r=m(n,i,this.currentLocale,this.tokenRegex,this.pluralRules)),r},g.prototype.has=function(e){return o(this.phrases,e)},g.transformPhrase=function(e,t,n){return m(e,t,n)},e.exports=g},function(e,t,n){"use strict";var r=n(985),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(e,t,n){for(var r=0,i=e.length;r<i;r++)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))},s=function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},l=function(e,t,n){for(var r in e)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))};e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=n),"[object Array]"===i.call(e)?a(e,t,o):"string"==typeof e?s(e,t,o):l(e,t,o)}},function(e,t,n){"use strict";var r,i,o=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={}}catch(e){a=null}else a=null;var s=/^\s*class\b/,l=function(e){try{var t=o.call(e);return s.test(t)}catch(e){return!1}},u=Object.prototype.toString,c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=a?function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{a(e,null,r)}catch(e){if(e!==i)return!1}return!l(e)}:function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(c)return function(e){try{return!l(e)&&(o.call(e),!0)}catch(e){return!1}}(e);if(l(e))return!1;var t=u.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){"use strict";var r=n(364);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==o.call(t))throw new TypeError(r+t);for(var n,a=i.call(arguments,1),s=function(){if(this instanceof n){var r=t.apply(this,a.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(e,a.concat(i.call(arguments)))},l=Math.max(0,t.length-a.length),u=[],c=0;c<l;c++)u.push("$"+c);if(n=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var d=function(){};d.prototype=t.prototype,n.prototype=new d,d.prototype=null}return n}},function(e,t,n){"use strict";var r=n(523),i=n(524),o=n(526),a=n(527),s=n(996),l=r(a());i(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},function(e,t,n){"use strict";(function(t){var r=t.Symbol,i=n(990);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}}).call(this,n(43))},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=Array.prototype.slice,i=n(525),o=Object.keys,a=o?function(e){return o(e)}:n(992),s=Object.keys;a.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)}):Object.keys=a;return Object.keys||a},e.exports=a},function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(525),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=u&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)f.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)f.push(String(g));else for(var v in e)h&&"prototype"===v||!i.call(e,v)||f.push(String(v));if(l)for(var y=function(e){if("undefined"==typeof window||!p)return d(e);try{return d(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)y&&"constructor"===c[b]||!i.call(e,c[b])||f.push(c[b]);return f}}e.exports=r},function(e,t,n){"use strict";var r=n(274)("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},function(e,t,n){"use strict";var r=n(274),i=r("%String%"),o=r("%TypeError%");e.exports=function(e){if("symbol"==typeof e)throw new o("Cannot convert a Symbol value to a string");return i(e)}},function(e,t,n){"use strict";var r=n(274),i=n(523),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")?i(n):n}},function(e,t,n){"use strict";var r=n(524),i=n(527);e.exports=function(){var e=i();return r(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(e){return(0,i.default)((function(t){return r.default.createElement(o.default.Consumer,null,(function(n){return r.default.createElement(e,s({},t,{t:n}))}))}),e)}};var r=a(n(1)),i=a(n(127)),o=a(n(365));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,i.useContext)(o.default)};var r,i=n(1),o=(r=n(365))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";var r=n(529);e.exports={Wrapper:n(1e3),Button:n(1006),Menu:n(1008),MenuItem:n(1010),openMenu:r.openMenu,closeMenu:r.closeMenu}},function(e,t,n){"use strict";var r=n(1),i=n(2),o=n(1001),a=n(530),s=n(227),l={children:i.node.isRequired,onMenuToggle:i.func,onSelection:i.func,closeOnSelection:i.bool,closeOnBlur:i.bool,tag:i.string},u=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.manager=o({onMenuToggle:r.props.onMenuToggle,onSelection:r.props.onSelection,closeOnSelection:r.props.closeOnSelection,closeOnBlur:r.props.closeOnBlur,id:r.props.id}),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),t.prototype.render=function(){var e={};return s(e,this.props,l),r.createElement(a.Provider,{value:this.manager},r.createElement(this.props.tag,e,this.props.children))},t}(r.Component);u.propTypes=l,u.defaultProps={tag:"div"},e.exports=u},function(e,t,n){"use strict";var r=n(49),i=n(1002),o=n(529),a={wrap:!0,stringSearch:!0},s={init:function(e){this.options=e||{},void 0===this.options.closeOnSelection&&(this.options.closeOnSelection=!0),void 0===this.options.closeOnBlur&&(this.options.closeOnBlur=!0),this.options.id&&o.registerManager(this.options.id,this),this.handleBlur=l.bind(this),this.handleSelection=u.bind(this),this.handleMenuKey=c.bind(this),this.focusGroup=i(a),this.button=null,this.menu=null,this.isOpen=!1},focusItem:function(e){this.focusGroup.focusNodeAtIndex(e)},addItem:function(e){this.focusGroup.addMember(e)},clearItems:function(){this.focusGroup.clearMembers()},handleButtonNonArrowKey:function(e){this.focusGroup._handleUnboundKey(e)},destroy:function(){this.button=null,this.menu=null,this.focusGroup.deactivate(),clearTimeout(this.blurTimer),clearTimeout(this.moveFocusTimer)},update:function(){this.menu.setState({isOpen:this.isOpen}),this.button.setState({menuOpen:this.isOpen}),this.options.onMenuToggle&&this.options.onMenuToggle({isOpen:this.isOpen})},openMenu:function(e){if(!this.isOpen&&(void 0===(e=e||{}).focusMenu&&(e.focusMenu=!0),this.isOpen=!0,this.update(),this.focusGroup.activate(),e.focusMenu)){var t=this;this.moveFocusTimer=setTimeout((function(){t.focusItem(0)}),0)}},closeMenu:function(e){this.isOpen&&(e=e||{},this.isOpen=!1,this.update(),e.focusButton&&r.findDOMNode(this.button).focus())},toggleMenu:function(e,t){e=e||{},t=t||{},this.isOpen?this.closeMenu(e):this.openMenu(t)}};function l(){var e=this;e.blurTimer=setTimeout((function(){var t=r.findDOMNode(e.button);if(t){var n=t.ownerDocument.activeElement;if(!t||n!==t){var i=r.findDOMNode(e.menu);i!==n?i&&i.contains(n)||e.isOpen&&e.closeMenu({focusButton:!1}):e.focusItem(0)}}}),0)}function u(e,t){this.options.closeOnSelection&&this.closeMenu({focusButton:!0}),this.options.onSelection&&this.options.onSelection(e,t)}function c(e){if(this.isOpen)switch(e.key){case"Escape":e.preventDefault(),this.closeMenu({focusButton:!0});break;case"Home":e.preventDefault(),this.focusGroup.moveFocusToFirst();break;case"End":e.preventDefault(),this.focusGroup.moveFocusToLast()}}e.exports=function(e){var t=Object.create(s);return t.init(e),t}},function(e,t){function n(e){var t,n,r=(e=e||{}).keybindings||{};for(t in this._settings={keybindings:{next:r.next||{keyCode:40},prev:r.prev||{keyCode:38},first:r.first,last:r.last},wrap:e.wrap,stringSearch:e.stringSearch,stringSearchDelay:800},this._keybindingsLookup=[],this._settings.keybindings)(n=this._settings.keybindings[t])&&[].concat(n).forEach(function(e){e.metaKey=e.metaKey||!1,e.ctrlKey=e.ctrlKey||!1,e.altKey=e.altKey||!1,e.shiftKey=e.shiftKey||!1,this._keybindingsLookup.push({action:t,eventMatcher:e})}.bind(this));this._searchString="",this._members=[],e.members&&this.setMembers(e.members),this._boundHandleKeydownEvent=this._handleKeydownEvent.bind(this)}function r(e){e&&e.focus&&(e.focus(),"input"===e.tagName.toLowerCase()&&e.select())}n.prototype.activate=function(){return document.addEventListener("keydown",this._boundHandleKeydownEvent,!0),this},n.prototype.deactivate=function(){return document.removeEventListener("keydown",this._boundHandleKeydownEvent,!0),this._clearSearchStringRefreshTimer(),this},n.prototype._handleKeydownEvent=function(e){if(-1!==this._getActiveElementIndex()){var t=!1;this._keybindingsLookup.forEach(function(n){if(function(e,t){for(var n in e)if(void 0!==t[n]&&e[n]!==t[n])return!1;return!0}(n.eventMatcher,e))switch(t=!0,e.preventDefault(),n.action){case"next":this.moveFocusForward();break;case"prev":this.moveFocusBack();break;case"first":this.moveFocusToFirst();break;case"last":this.moveFocusToLast();break;default:return}}.bind(this)),t||this._handleUnboundKey(e)}},n.prototype.moveFocusForward=function(){var e,t=this._getActiveElementIndex();return e=t<this._members.length-1?t+1:this._settings.wrap?0:t,this.focusNodeAtIndex(e),e},n.prototype.moveFocusBack=function(){var e,t=this._getActiveElementIndex();return e=t>0?t-1:this._settings.wrap?this._members.length-1:t,this.focusNodeAtIndex(e),e},n.prototype.moveFocusToFirst=function(){this.focusNodeAtIndex(0)},n.prototype.moveFocusToLast=function(){this.focusNodeAtIndex(this._members.length-1)},n.prototype._handleUnboundKey=function(e){if(this._settings.stringSearch){if(""!==this._searchString&&(" "===e.key||32===e.keyCode))return e.preventDefault(),-1;if(!((t=e.keyCode)>=65&&t<=90))return-1;var t;if(e.ctrlKey||e.metaKey||e.altKey)return-1;e.preventDefault(),this._addToSearchString(String.fromCharCode(e.keyCode)),this._runStringSearch()}},n.prototype._clearSearchString=function(){this._searchString=""},n.prototype._addToSearchString=function(e){this._searchString+=e.toLowerCase()},n.prototype._startSearchStringRefreshTimer=function(){var e=this;this._clearSearchStringRefreshTimer(),this._stringSearchTimer=setTimeout((function(){e._clearSearchString()}),this._settings.stringSearchDelay)},n.prototype._clearSearchStringRefreshTimer=function(){clearTimeout(this._stringSearchTimer)},n.prototype._runStringSearch=function(){this._startSearchStringRefreshTimer(),this.moveFocusByString(this._searchString)},n.prototype.moveFocusByString=function(e){for(var t,n=0,i=this._members.length;n<i;n++)if((t=this._members[n]).text&&0===t.text.indexOf(e))return r(t.node)},n.prototype._findIndexOfNode=function(e){for(var t=0,n=this._members.length;t<n;t++)if(this._members[t].node===e)return t;return-1},n.prototype._getActiveElementIndex=function(){return this._findIndexOfNode(document.activeElement)},n.prototype.focusNodeAtIndex=function(e){var t=this._members[e];return t&&r(t.node),this},n.prototype.addMember=function(e,t){var n=e.node||e,r=e.text||n.getAttribute("data-focus-group-text")||n.textContent||"";this._checkNode(n);var i={node:n,text:r.replace(/[\W_]/g,"").toLowerCase()};return null!=t?this._members.splice(t,0,i):this._members.push(i),this},n.prototype.removeMember=function(e){var t="number"==typeof e?e:this._findIndexOfNode(e);if(-1!==t)return this._members.splice(t,1),this},n.prototype.clearMembers=function(){return this._members=[],this},n.prototype.setMembers=function(e){this.clearMembers();for(var t=0,n=e.length;t<n;t++)this.addMember(e[t]);return this},n.prototype.getMembers=function(){return this._members},n.prototype._checkNode=function(e){if(!e.nodeType||e.nodeType!==window.Node.ELEMENT_NODE)throw new Error("focus-group: only DOM nodes allowed");return e},e.exports=function(e){return new n(e)}},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(1)),i=o(n(1004));function o(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||i.default,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(1),i=(a(r),a(n(2))),o=a(n(1005));a(n(363));function a(e){return e&&e.__esModule?e:{default:e}}function s(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}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}t.default=function(e,t){var n,a,d="__create-react-context-"+(0,o.default)()+"__",f=function(e){function n(){var t,r;s(this,n);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=r=l(this,e.call.apply(e,[this].concat(o))),r.emitter=c(r.props.value),l(r,t)}return u(n,e),n.prototype.getChildContext=function(){var e;return(e={})[d]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,i=void 0;((o=n)===(a=r)?0!==o||1/o==1/a:o!=o&&a!=a)?i=0:(i="function"==typeof t?t(n,r):1073741823,0!==(i|=0)&&this.emitter.set(e.value,i))}var o,a},n.prototype.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[d]=i.default.object.isRequired,n);var p=function(t){function n(){var e,r;s(this,n);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=r=l(this,t.call.apply(t,[this].concat(o))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},l(r,e)}return u(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},n.prototype.componentDidMount=function(){this.context[d]&&this.context[d].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},n.prototype.componentWillUnmount=function(){this.context[d]&&this.context[d].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[d]?this.context[d].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return p.contextTypes=((a={})[d]=i.default.object,a),{Provider:f,Consumer:p}},e.exports=t.default},function(e,t,n){"use strict";(function(t){var n="__global_unique_id__";e.exports=function(){return t[n]=(t[n]||0)+1}}).call(this,n(43))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var o=n(1),a=n(2),s=n(227),l=n(366),u={ambManager:a.object.isRequired,children:a.node.isRequired,disabled:a.bool,tag:a.string},c=function(e){function t(){var n,o;r(this,t);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=o=i(this,e.call.apply(e,[this].concat(s))),o.handleKeyDown=function(e){if(!o.props.disabled){var t=o.props.ambManager;switch(e.key){case"ArrowDown":e.preventDefault(),t.isOpen?t.focusItem(0):t.openMenu();break;case"Enter":case" ":e.preventDefault(),t.toggleMenu();break;case"Escape":t.handleMenuKey(e);break;default:t.handleButtonNonArrowKey(e)}}},o.handleClick=function(){o.props.disabled||o.props.ambManager.toggleMenu({},{focusMenu:!1})},i(o,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),t.prototype.componentDidMount=function(){this.props.ambManager.button=this},t.prototype.componentWillUnmount=function(){this.props.ambManager.destroy()},t.prototype.render=function(){var e=this.props,t=this.props.ambManager,n={role:"button",tabIndex:e.disabled?"":"0","aria-haspopup":!0,"aria-expanded":t.isOpen,"aria-disabled":e.disabled,onKeyDown:this.handleKeyDown,onClick:this.handleClick},r={};return s(r,u),["button","fieldset","input","optgroup","option","select","textarea"].indexOf(e.tag)>=0&&delete r.disabled,t.options.closeOnBlur&&(n.onBlur=t.handleBlur),s(n,e,r),o.createElement(e.tag,n,e.children)},t}(o.Component);c.propTypes=u,c.defaultProps={tag:"span"},e.exports=l(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var o=n(1),a=n(49),s=n(2),l=n(1009),u=n(227),c=n(366),d={ambManager:s.object.isRequired,children:s.oneOfType([s.func,s.node]).isRequired,tag:s.string},f=function(e){function t(){var n,o;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=o=i(this,e.call.apply(e,[this].concat(u))),o.addTapListener=function(){var e=a.findDOMNode(o);if(e){var t=e.ownerDocument;t&&(o.tapListener=l(t.documentElement,o.handleTap))}},o.handleTap=function(e){a.findDOMNode(o).contains(e.target)||a.findDOMNode(o.props.ambManager.button).contains(e.target)||o.props.ambManager.closeMenu()},i(o,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),t.prototype.componentDidMount=function(){this.props.ambManager.menu=this},t.prototype.componentDidUpdate=function(){var e=this.props.ambManager;e.options.closeOnBlur&&(e.isOpen&&!this.tapListener?this.addTapListener():!e.isOpen&&this.tapListener&&(this.tapListener.remove(),delete this.tapListener),e.isOpen||e.clearItems())},t.prototype.componentWillUnmount=function(){this.tapListener&&this.tapListener.remove(),this.props.ambManager.destroy()},t.prototype.render=function(){var e=this.props,t=this.props.ambManager,n="function"==typeof e.children?e.children({isOpen:t.isOpen}):!!t.isOpen&&e.children;if(!n)return!1;var r={onKeyDown:t.handleMenuKey,role:"menu",tabIndex:-1};return t.options.closeOnBlur&&(r.onBlur=t.handleBlur),u(r,e,d),o.createElement(e.tag,r,n)},t}(o.Component);f.propTypes=d,f.defaultProps={tag:"div"},e.exports=c(f)},function(e,t){e.exports=function(e,t,n){var r=0,i=0,o=!1,a=!1,s=!1;function l(e){s||t(e)}function u(t){s=!0,o||(o=!0,e.addEventListener("touchmove",c,n),e.addEventListener("touchend",d,n),e.addEventListener("touchcancel",f,n),a=!1,r=t.touches[0].clientX,i=t.touches[0].clientY)}function c(e){a||Math.abs(e.touches[0].clientX-r)<=10&&Math.abs(e.touches[0].clientY-i)<=10||(a=!0)}function d(e){o=!1,p(),a||t(e)}function f(){o=!1,a=!1,r=0,i=0}function p(){e.removeEventListener("touchmove",c,n),e.removeEventListener("touchend",d,n),e.removeEventListener("touchcancel",f,n)}return e.addEventListener("click",l,n),e.addEventListener("touchstart",u,n),{remove:function(){e.removeEventListener("click",l,n),e.removeEventListener("touchstart",u,n),p()}}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var o=n(1),a=n(2),s=n(227),l=n(366),u={ambManager:a.object.isRequired,children:a.node.isRequired,tag:a.string,text:a.string,value:a.any},c=function(e){function t(){var n,o;r(this,t);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=o=i(this,e.call.apply(e,[this].concat(s))),o.handleKeyDown=function(e){"Enter"!==e.key&&" "!==e.key||"a"===o.props.tag&&o.props.href||(e.preventDefault(),o.selectItem(e))},o.selectItem=function(e){var t=void 0!==o.props.value?o.props.value:o.props.children;o.props.ambManager.handleSelection(t,e)},o.registerNode=function(e){o.node=e},i(o,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),t.prototype.componentDidMount=function(){this.props.ambManager.addItem({node:this.node,text:this.props.text})},t.prototype.render=function(){var e={onClick:this.selectItem,onKeyDown:this.handleKeyDown,role:"menuitem",tabIndex:"-1",ref:this.registerNode};return s(e,this.props,u),o.createElement(this.props.tag,e,this.props.children)},t}(o.Component);c.propTypes=u,c.defaultProps={tag:"div"},e.exports=l(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(1012)),i=o(n(1013));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l={arrow:{direction:"left"},chevron:{direction:"down"},"chevron-double":{direction:"down"}};var u=(0,r.default)(i.default,(e,t)=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({image:e},l[t]||{}));t.default=u},function(e,t,n){var r=n(240),i=n(450),o=n(102);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,i,t(e,i,o))})),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;(r=n(1))&&r.__esModule;var r,i=n(11);var o=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M19 14h-4a1 1 0 0 0-1 1v4a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-4a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1z"}))};o.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var a=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",fillRule:"evenodd",d:"M16.5 16L13 12h7l-3.5 4zm-4-5.75H9.75a.5.5 0 0 0-.5.5v2.75a.5.5 0 0 1-.5.5h-1.5a.5.5 0 0 1-.5-.5v-2.75a.5.5 0 0 0-.5-.5H3.5a.5.5 0 0 1-.5-.5v-1.5a.5.5 0 0 1 .5-.5h2.75a.5.5 0 0 0 .5-.5V4.5a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 1 .5.5v2.75a.5.5 0 0 0 .5.5h2.75a.5.5 0 0 1 .5.5v1.5a.5.5 0 0 1-.5.5z"}))};a.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var s=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#313D3E",d:"M10.506 19.916l1.903-1.953-4.744-4.67H21.31V10.55H7.665l4.744-4.682-1.903-1.953-7.95 8z"}))};s.defaultProps={viewBox:"0 0 24 24"};var l=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M2.776 3a.655.655 0 0 0-.655.76l2.781 16.886c.072.427.44.74.872.744h13.344a.655.655 0 0 0 .655-.55l2.782-17.077a.655.655 0 0 0-.655-.76L2.776 3zm11.713 12.204h-4.26L9.076 9.18h6.445l-1.032 6.025z",fill:"#2684FF"}))};l.defaultProps={width:"26",height:"26",viewBox:"0 0 26 26"};var u=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M13.2 9.819c.812-.577 1.381-1.525 1.381-2.404 0-1.948-1.465-3.448-3.348-3.448H6v12.066h5.894c1.75 0 3.106-1.465 3.106-3.267 0-1.31-.72-2.43-1.8-2.947zM8.108 6.122h2.85c.788 0 1.424.577 1.424 1.293 0 .715-.636 1.292-1.425 1.292h-2.85V6.122zm3.324 7.756H8.108v-2.585h3.324c.789 0 1.425.577 1.425 1.292 0 .716-.636 1.293-1.425 1.293z"}))};u.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var c=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M4.016 11l-.648-.946a6.202 6.202 0 0 0-.157-.22 9.526 9.526 0 0 1-.096-.133l-.511-.7a7.413 7.413 0 0 0-.162-.214l-.102-.134-.265-.346a26.903 26.903 0 0 0-.543-.687l-.11-.136a21.767 21.767 0 0 0-.442-.54l-.278-.332a8.854 8.854 0 0 0-.192-.225L.417 6.28l-.283-.324L0 5.805l1.376-1.602c.04.027.186.132.186.132l.377.272.129.095c.08.058.16.115.237.175l.37.28c.192.142.382.292.565.436l.162.126c.27.21.503.398.714.574l.477.393c.078.064.156.127.23.194l.433.375.171-.205A50.865 50.865 0 0 1 8.18 4.023a35.163 35.163 0 0 1 2.382-2.213c.207-.174.42-.349.635-.518l.328-.255.333-.245c.072-.055.146-.107.221-.159l.117-.083c.11-.077.225-.155.341-.23.163-.11.334-.217.503-.32l1.158 1.74a11.908 11.908 0 0 0-.64.55l-.065.06c-.07.062-.139.125-.207.192l-.258.249-.26.265a21.72 21.72 0 0 0-.512.539 32.626 32.626 0 0 0-1.915 2.313 52.115 52.115 0 0 0-2.572 3.746l-.392.642-.19.322-.233.382H4.016z"}))};c.defaultProps={viewBox:"-1 -2 16 16"};var d=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M5.123 6.33l-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}))};d.defaultProps={viewBox:"0 0 24 24"};var f=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M5.123 3.33l-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}),(0,i.jsx)("path",{d:"M5.123 10.33l-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}))};f.defaultProps={viewBox:"0 0 24 24"};var p=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("circle",{cx:"12",cy:"12",r:"4"}))};p.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var h=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M11.916 9.96L6.282 4.345 4.398 6.401l5.634 5.616-5.616 5.617 1.849 2.022 5.616-5.617 5.616 5.6 1.884-2.04L13.765 12l5.633-5.634-1.866-2.022z"}))};h.defaultProps={viewBox:"0 0 24 24"};var m=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M9 14.6L4.649 10 9 5.4 7.676 4 2 10l5.676 6L9 14.6zm3 0l4.351-4.6L12 5.4 13.324 4 19 10l-5.676 6L12 14.6z"}))};m.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var g=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M10.103 13.32L7.05 10l3.052-3.32-1.325-1.01L4.798 10l3.98 4.33 1.325-1.01zM5 4h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm6.927 9.32l1.217.935 3.98-4.33-3.98-4.33-1.217 1.085L14.978 10l-3.05 3.32z"}))};g.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var v=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M3 15v-2h18v2H3zm0-4V9h18v2H3z"}))};v.defaultProps={viewBox:"0 0 24 24"};var y=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M22.557 11.492C21.13 10 16.849 6 12.395 6c-4.8 0-8.844 4-10.184 5.492a.798.798 0 0 0 0 1.081C3.55 14.043 7.616 18 12.395 18c4.756 0 8.8-3.914 10.162-5.405a.783.783 0 0 0 0-1.103zm-10.14 4.692a4.152 4.152 0 0 1 0-8.303 4.152 4.152 0 0 1 4.15 4.151c0 2.292-1.88 4.152-4.15 4.152zm0-2.79a1.362 1.362 0 1 0 0-2.724 1.362 1.362 0 0 0 0 2.725z"}))};y.defaultProps={viewBox:"0 0 24 24"};var b=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M10 5H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-7l-2-2z"}))};b.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var _=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fillRule:"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"}))};_.defaultProps={width:"32",height:"32",viewBox:"0 0 16 16"};var w=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("g",{fill:"none"},(0,i.jsx)("path",{d:"M22.616 14.971L21.52 11.5l-2.173-6.882a.37.37 0 0 0-.71 0L16.465 11.5H9.252L7.079 4.617a.37.37 0 0 0-.71 0l-2.172 6.882L3.1 14.971c-.1.317.01.664.27.86l9.487 7.094 9.487-7.094a.781.781 0 0 0 .27-.86",fill:"#FC6D26"}),(0,i.jsx)("path",{d:"M12.858 22.925L16.465 11.5H9.251z",fill:"#E24329"}),(0,i.jsx)("path",{d:"M12.858 22.925L9.251 11.5H4.197z",fill:"#FC6D26"}),(0,i.jsx)("path",{d:"M4.197 11.499L3.1 14.971c-.1.317.01.664.27.86l9.487 7.094L4.197 11.5z",fill:"#FCA326"}),(0,i.jsx)("path",{d:"M4.197 11.499H9.25L7.08 4.617a.37.37 0 0 0-.71 0l-2.172 6.882z",fill:"#E24329"}),(0,i.jsx)("path",{d:"M12.858 22.925L16.465 11.5h5.055z",fill:"#FC6D26"}),(0,i.jsx)("path",{d:"M21.52 11.499l1.096 3.472c.1.317-.01.664-.271.86l-9.487 7.094L21.52 11.5z",fill:"#FCA326"}),(0,i.jsx)("path",{d:"M21.52 11.499h-5.055l2.172-6.882a.37.37 0 0 1 .71 0l2.173 6.882z",fill:"#E24329"})))};w.defaultProps={width:"26",height:"26",xmlns:"http://www.w3.org/2000/svg"};var x=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M5 3h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm11 0h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm0 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2zM5 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2z"}))};x.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var k=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M3 4h10v12H3V4zm2 0v5h6V4H5zm0 7v5h6v-5H5zm12.068 5v-5.695h-.026l-1.612.767-.325-1.482 2.236-1.04h1.638V16h-1.911z"}))};k.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var E=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",fillRule:"evenodd",d:"M18.036 16h-5.532v-1.104l1.008-.912c1.704-1.524 2.532-2.4 2.556-3.312 0-.636-.384-1.14-1.284-1.14-.672 0-1.26.336-1.668.648L12.6 8.872c.588-.444 1.5-.804 2.556-.804 1.764 0 2.736 1.032 2.736 2.448 0 1.308-.948 2.352-2.076 3.36l-.72.6v.024h2.94V16zM3 8h7v8H3V8zm2 0v3h3V8H5zm0 5v3h3v-3H5z"}))};E.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var S=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M3 4h10v12H3V4zm2 0v5h6V4H5zm0 7v5h6v-5H5m12.874 5.91l-3.493-4.117h6.986l-3.493 4.117z"}))};S.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var O=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M21 13h-2a1 1 0 0 0-1 1v6h-4v-5a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v5H6v-6a1 1 0 0 0-1-1H3l9-9 9 9z"}))};O.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};var T=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M5 3h12a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3zm2.487 7.205l-2.34 3.232a1 1 0 0 0 .81 1.586h9.954a1 1 0 0 0 .792-1.611L13.297 9l-3.451 4.469-2.36-3.264zM8.5 8a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z"}))};T.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var C=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M8 4.012V6h2.312l-2.925 8H5v1.988h7V14H9.953l2.925-8H15V4.012z"}))};C.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var A=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M14.683 10.315l-1.256-1.253 1.253-1.254a1.767 1.767 0 0 0 0-2.503 1.765 1.765 0 0 0-2.503 0L9.67 7.81a1.766 1.766 0 0 0 0 2.504l-1.25 1.247-.625-.626a2.657 2.657 0 0 1-.002-3.756l3.135-3.136a3.543 3.543 0 0 1 5.007.009 3.544 3.544 0 0 1 .003 5.007l-1.255 1.255zm-9.394-.626v-.003l1.252 1.249L5.29 12.19a1.767 1.767 0 0 0 0 2.505c.697.695 1.813.69 2.504 0l2.506-2.506a1.766 1.766 0 0 0 0-2.504l1.249-1.249.622.625a2.654 2.654 0 0 1 .006 3.756L9.04 15.953a3.539 3.539 0 0 1-5.004-.002 3.544 3.544 0 0 1-.003-5.008L5.29 9.69z"}))};A.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var P=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M4.5 3h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3z"}))};P.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var R=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M5 6.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM9 4h10v1.964H9V4zm0 5h10v2H9V9zm0 5h10v2H9v-2z"}))};R.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var M=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M20.014 4.023v2h-11v-2h11zm0 5v2h-11v-2h11zm0 5v2h-11v-2h11zM3.604 8.985V4.23h-.018l-1.095.545-.22-1.053 1.518-.738h1.113v6H3.604zm2.458 7.997h-4v-.835l.73-.69c1.231-1.152 1.83-1.814 1.847-2.503 0-.481-.277-.862-.928-.862-.486 0-.911.254-1.206.49l-.373-.99c.425-.335 1.084-.607 1.848-.607 1.275 0 1.978.78 1.978 1.85 0 .99-.685 1.779-1.5 2.54l-.522.455v.018h2.126v1.134z"}))};M.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var I=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M1 17V8h2.75l2.75 3.309L9.25 8H12v9H9.25v-5.162l-2.75 3.31-2.75-3.31V17H1zm18 0l-4-4.368h2.667V8h2.666v4.632H23L19 17z"}))};I.defaultProps={viewBox:"0 0 24 24"};var j=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M21 15.25V4.75C21 3.788 20.212 3 19.25 3H8.75C7.787 3 7 3.788 7 4.75v10.5c0 .962.787 1.75 1.75 1.75h10.5c.962 0 1.75-.788 1.75-1.75zm-9.641-3.773l1.787 2.394 2.615-3.277 3.522 4.417H8.717l2.642-3.534zM3 7v12.25c0 .962.788 1.75 1.75 1.75H17v-1.956H5.98a1 1 0 0 1-1-1V7H3z"}))};j.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var D=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M5.027 4.045h13.975a3 3 0 0 1 3 3v9.99a3 3 0 0 1-3 3H5.027a3 3 0 0 1-3-3v-9.99a3 3 0 0 1 3-3zm2.874 8.48l-4.114 5.504h16.455l-5.485-6.88-4.073 5.105-2.783-3.73zM9.493 10a1.507 1.507 0 1 0 0-3.014 1.507 1.507 0 0 0 0 3.014z"}))};D.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var L=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M149.5.372l141.421 141.42L149.5 283.215 8.079 141.793 149.5.372z",fill:"#3FB5A0"}),(0,i.jsx)("g",{stroke:"#FFF",strokeWidth:"8"},(0,i.jsx)("path",{d:"M247.788 191.997L1.715 142.5l246.073 49.497zM293.043 146.743L83.739 60.476l209.304 86.267zM170.006 269.78L46.97 97.244 170.006 269.78zM63.94 204.725L179.906 25.12 63.94 204.725zM175.663 264.122l36.77-206.475-36.77 206.475zM246.374 91.588L42.02 182.805l204.354-91.217z"})),(0,i.jsx)("g",{transform:"rotate(45 19.795 213.225)",fill:"#FFF"},(0,i.jsx)("circle",{className:"no-fill",cx:"14",cy:"38",r:"14"}),(0,i.jsx)("circle",{className:"no-fill",cx:"77",cy:"12",r:"12"}),(0,i.jsx)("circle",{className:"no-fill",cx:"116",cy:"70",r:"12"}),(0,i.jsx)("circle",{className:"no-fill",cx:"35",cy:"125",r:"16"})))};L.defaultProps={viewBox:"0 0 295 284"};var N=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("g",{fillRule:"nonzero",fill:"none"},(0,i.jsx)("g",{fill:"#FFF"},(0,i.jsx)("path",{d:"M10.744 26.727c0 .02-.02.04-.059.079L5.322 29.09h-.02s-.02 0-.04-.02L.946 24.775c-.02-.02-.04-.06-.02-.078.02-.02.04-.04.06-.04h.019l9.681 2.012c.04 0 .06.02.06.058zm.513-1.347c-.02 0-.02 0 0 0L.097 23.037c-.04 0-.059-.02-.059-.04 0-.018 0-.038.02-.057l6.23-6.17c0-.02.02-.02.04-.02.039.02.039.02.06.039 0 .02 5.342 7.752 5.402 7.83.02.02.02.059 0 .078-.178.195-.356.41-.473.644-.02.019-.04.04-.06.04zm2.327-15.717c-.02-.02-.04-.02-.02-.059 0-.02 0-.038.02-.059L22.97.213c0-.02.02-.02.04-.02s.02 0 .04.02l4.041 4.003c.02.019.02.058 0 .078l-4.87 7.556c-.02.019-.04.039-.06.039h-.019a2.398 2.398 0 0 0-2.248.41c-.02.02-.02.02-.039.02h-.02c-.256-.118-6.25-2.656-6.25-2.656zm-.572 14.291l-5.6-8.18c-.02-.019-.02-.058 0-.078l5.028-4.998c0-.02.02-.02.04-.02h.02c0 .02 5.934 2.519 6.605 2.812.019.02.04.038.04.078a2.298 2.298 0 0 0 .592 2.128c.018.02.018.06-.001.078l-5.284 8.2c-.02.02-.04.04-.06.04h-.02a2.64 2.64 0 0 0-.67-.098c-.198 0-.414.038-.611.078h-.02c-.02 0-.039-.02-.06-.04zm1.834 5.096l10.45 15.19c.02.02.02.059 0 .079l-2.287 2.284c0 .02-.02.02-.04.02 0 0-.02 0-.04-.02L9.878 33.658c-.02-.019-.02-.058 0-.078l.02-.02 2.84-4.412c.019-.019.039-.039.058-.039h.02c.295.098.572.137.867.137.375 0 .73-.079 1.085-.234h.02c.02 0 .04.02.059.038zm-3.234-.76c.02.018.02.038.02.038L8.93 32.525c-.02.02-.04.04-.058.04 0 0-.02 0-.04-.02l-2.386-2.362c-.02-.02-.02-.04-.02-.058 0-.02.02-.04.04-.04l4.89-2.089h.02c.019 0 .039.02.058.039.06.098.119.176.178.255zm4.752-1.895c0-.156-.04-.293-.06-.449 0-.04 0-.059.04-.077l14.02-5.995h.02s.019 0 .039.02c.098.097.177.156.256.214.04 0 .04.04.04.06l-1.223 7.515c0 .04-.02.06-.06.06-.67.038-1.262.43-1.596 1.015-.02.019-.04.04-.06.04h-.02l-11.337-2.344c-.04 0-.06-.02-.06-.059zm12.442 5.175c.04.018.04.058 0 .058L27.03 42.56c0 .02-.02.02-.02.04l-.631.624c0 .02-.02.02-.039.02-.02 0-.02 0-.04-.02l-10.41-15.072c-.02-.02-.02-.06 0-.078.06-.079.098-.157.158-.254.019-.02.039-.04.058-.04h.02l11.436 2.363c.04.02.06.04.06.058a2.016 2.016 0 0 0 1.183 1.368zm8.616.625c.02 0 .04.018.04.077 0 .02 0 .04-.02.058l-8.557 8.494c0 .02-.02.02-.04.02h-.04c-.02-.02-.039-.04-.039-.079l1.48-9.098c0-.02.019-.059.038-.059a2.12 2.12 0 0 0 .888-.664c.019 0 .04-.019.06-.019h.019l6.171 1.27zm-7.65-14.175c.02.019.04.038.04.077-.02.098-.04.215-.04.332v.176c0 .02-.02.039-.04.058l-13.94 5.955h-.02c-.02 0-.04 0-.059-.018-.02-.02-.02-.06 0-.08l5.226-8.102c.019-.02.039-.039.058-.039h.02c.138.02.257.039.375.039.789 0 1.518-.39 1.952-1.054.02-.02.04-.039.059-.039h.02l6.348 2.695zm15.38 6.52c.019.02.019.04.019.06 0 .018 0 .038-.02.058l-6.428 6.384c0 .02-.019.02-.04.02h-.018l-7.02-1.465c-.04 0-.06-.02-.06-.058a1.96 1.96 0 0 0-.749-1.367c-.02-.02-.02-.04-.02-.059l1.243-7.634c0-.038.04-.059.059-.059a1.976 1.976 0 0 0 1.341-.78c.02-.02.04-.02.06-.02h.019l11.614 4.92zm1.202-1.171c.04.02.04.078 0 .078l-.04.039c0 .02-.02.02-.039.02h-.02L34.15 18.37c-.02 0-.04-.038-.04-.058 0-.019.02-.04.04-.058l4.91-2.09h.02s.02 0 .039.02l7.236 7.185zm-23.03-10.563c-.02-.02-.02-.058 0-.098l4.752-7.38c0-.019.02-.038.04-.038s.02 0 .039.02l4.22 4.197c.02.02.02.038.02.059l-1.105 6.852c0 .04-.02.059-.04.059a2.084 2.084 0 0 0-.69.351c0 .02-.019.02-.039.02h-.02l-6.743-2.87c-.02-.02-.04-.039-.04-.06a2.516 2.516 0 0 0-.394-1.112zm9.405 3.807c-.02 0-.04-.039-.059-.058l.927-5.681c0-.04.02-.06.04-.06h.02s.018 0 .039.02l4.239 4.198c.02.02.02.04.02.059 0 .019-.02.038-.04.058l-4.535 1.933h-.02c-.02 0-.02 0-.04-.02a1.963 1.963 0 0 0-.591-.449zM102.392 14.368h3.154v-2.81h-3.154v2.81zm9.345-1.503c-.867.859-1.301 2.089-1.301 3.69v1.309h-2.15v2.381h2.15v11.95h3.155v-11.95h2.859v-2.381h-2.859v-1.27c0-1.581.749-2.363 2.267-2.363.454 0 .867.04 1.203.099l.08-2.52a7.316 7.316 0 0 0-1.776-.234c-1.538-.019-2.76.43-3.628 1.29zm11.712 14.721l-2.977-9.722h-3.411l4.95 14.252-.454 1.23c-.237.703-.553 1.191-.966 1.484-.394.293-1.006.449-1.795.449l-.591-.039v2.499a5.646 5.646 0 0 0 1.518.234c2.05 0 3.51-1.21 4.378-3.612l5.599-16.497h-3.372l-2.879 9.722zm-21.057 4.608h3.154v-14.33h-3.154v14.33zm-13.566-2.772c-.217-.235-.316-.645-.316-1.191v-8.005h2.484v-2.383H88.51v-3.475h-3.154v3.475h-2.308v2.383h2.308v8.122c0 2.733 1.222 4.1 3.647 4.1.671 0 1.36-.098 2.09-.313v-2.499c-.375.098-.75.137-1.104.137-.571.02-.947-.098-1.163-.351zm-10.253-5.74h-6.015c.139-1.114.494-1.972 1.026-2.578.532-.624 1.243-.917 2.11-.917.867 0 1.558.273 2.05.82.493.546.77 1.366.848 2.44v.234h-.02zm-2.879-6.092a5.973 5.973 0 0 0-3.274.937c-.986.625-1.734 1.504-2.287 2.636-.532 1.132-.808 2.401-.808 3.826v.39c0 2.129.631 3.848 1.873 5.136 1.243 1.288 2.86 1.933 4.87 1.933 1.163 0 2.228-.234 3.175-.703a5.527 5.527 0 0 0 2.247-1.991l-1.695-1.66c-.907 1.19-2.09 1.796-3.53 1.796-1.025 0-1.892-.351-2.562-1.034-.69-.683-1.065-1.62-1.164-2.812h9.188v-1.288c0-2.285-.532-4.042-1.557-5.292-1.085-1.25-2.564-1.874-4.476-1.874zm-13.625 0c-1.695 0-3.056.645-4.101 1.913l-.1-1.66h-2.956v14.332h3.154V21.983c.632-1.172 1.578-1.757 2.84-1.757.867 0 1.498.214 1.892.663.395.43.572 1.113.572 2.012v9.274h3.155v-9.47c-.04-3.397-1.518-5.115-4.456-5.115zm32.277 14.604h3.156V11.85h-3.156v20.344z"})),(0,i.jsx)("path",{d:"M139.256 29.651c.803 0 1.469-.233 1.998-.701.53-.468.812-1.046.847-1.734h3.031a4.724 4.724 0 0 1-.834 2.495c-.52.772-1.226 1.383-2.117 1.833a6.31 6.31 0 0 1-2.886.675c-2.003 0-3.59-.648-4.764-1.946-1.174-1.297-1.76-3.088-1.76-5.373v-.331c0-2.18.582-3.924 1.746-5.235 1.165-1.31 2.753-1.965 4.765-1.965 1.703 0 3.09.496 4.163 1.489 1.072.992 1.634 2.296 1.687 3.91h-3.03c-.036-.82-.316-1.495-.841-2.024-.525-.53-1.194-.794-2.005-.794-1.042 0-1.845.377-2.41 1.131-.564.755-.85 1.9-.86 3.435v.516c0 1.553.28 2.711.84 3.475.561.763 1.37 1.144 2.43 1.144zm11.105-12.017l.093 1.495c1.005-1.173 2.382-1.76 4.13-1.76 1.914 0 3.224.732 3.93 2.197 1.041-1.465 2.506-2.197 4.394-2.197 1.58 0 2.755.437 3.527 1.31.773.874 1.167 2.162 1.185 3.865v9.41h-3.216v-9.317c0-.91-.199-1.575-.596-1.999-.397-.424-1.054-.635-1.972-.635-.732 0-1.33.196-1.793.589-.464.392-.788.906-.973 1.542l.013 9.82h-3.216v-9.423c-.044-1.686-.905-2.528-2.581-2.528-1.288 0-2.202.525-2.74 1.575v10.376h-3.216v-14.32h3.03zm28.364 10.43c0-.574-.236-1.011-.708-1.311-.472-.3-1.255-.565-2.349-.794-1.094-.23-2.007-.52-2.74-.874-1.606-.776-2.409-1.901-2.409-3.375 0-1.235.52-2.268 1.562-3.097 1.041-.83 2.365-1.244 3.97-1.244 1.713 0 3.096.423 4.15 1.27 1.055.847 1.582 1.946 1.582 3.296h-3.216c0-.618-.23-1.132-.689-1.542-.459-.41-1.067-.615-1.826-.615-.706 0-1.282.163-1.727.49-.446.326-.669.763-.669 1.31 0 .494.208.878.622 1.151.415.274 1.253.55 2.515.827 1.262.278 2.252.61 2.971.993.72.384 1.253.845 1.602 1.383.348.538.523 1.191.523 1.96 0 1.287-.534 2.33-1.602 3.13-1.068.798-2.466 1.197-4.196 1.197-1.173 0-2.219-.212-3.136-.635-.918-.424-1.633-1.006-2.144-1.747-.512-.742-.768-1.54-.768-2.396h3.123c.045.759.331 1.343.86 1.754.53.41 1.232.615 2.105.615.847 0 1.491-.16 1.933-.483.44-.322.661-.743.661-1.264z",fill:"#C9FA4B"})))};N.defaultProps={viewBox:"0 0 182 47"};var F=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("g",{fillRule:"evenodd"},(0,i.jsx)("path",{d:"M4.7 20.5H15c2.1 0 3.8-1.7 3.8-3.8v-6.4c0-.5-.4-.9-.8-.9-.5 0-1 .4-1 .9v6.4a2 2 0 0 1-2 2H4.7a2 2 0 0 1-2-2V6.2c0-1.1.8-2 2-2H11c.5 0 .8-.4.8-1 0-.4-.3-.8-.8-.8H4.7C2.6 2.4.9 4.1.9 6.2v10.5c0 2 1.7 3.8 3.8 3.8z"}),(0,i.jsx)("path",{d:"M20.9 7.2V1.7h-.1v-.2l-.1-.1-.2-.2h-.1l-.2-.2h-5.7c-.5 0-.8.3-.8.8s.3 1 .8 1H18l-8 8c-.4.3-.4.8 0 1.2.3.3.9.3 1.2 0l8-8v3.2c0 .5.4.9.9.9s.8-.4.9-1z"})))};F.defaultProps={width:"21",height:"21",viewBox:"0 0 21 21",xmlns:"http://www.w3.org/2000/svg"};var B=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M13.366 3l5.625 5.493L19 19.169C19 20.176 18.156 21 17.125 21H5.865C4.836 21 4 20.176 4 19.17V4.83C4 3.825 4.834 3 5.866 3h7.5zM6.94 12.11a.94.94 0 1 0 0 1.88h9.12a.94.94 0 0 0 0-1.88H6.94zm0 3.89a.94.94 0 1 0 0 1.88h9.12a.94.94 0 1 0 0-1.88H6.94zm5.073-6h5.139l-5.14-5.053V10z"}))};B.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var z=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M3 8h1.98v11.044a1 1 0 0 0 1 1H17V22H4.75C3.788 22 3 21.212 3 20.25V8zm6-6h6.074L20 7.041V16a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm.94 8.11a.94.94 0 1 0 0 1.88h7.12a.94.94 0 0 0 0-1.88H9.94zm0 3.89a.94.94 0 1 0 0 1.88h7.12a.94.94 0 1 0 0-1.88H9.94zm4.054-6.124h4.344l-4.344-4.342v4.342z"}))};z.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var U=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M21 15.25c0 .962-.788 1.75-1.75 1.75H8.75C7.787 17 7 16.212 7 15.25V4.75C7 3.788 7.787 3 8.75 3h10.5c.962 0 1.75.788 1.75 1.75v10.5zM9 10v2h10v-2H9zm0-4v2h10V6H9zM3 7v12.25c0 .962.788 1.75 1.75 1.75H17v-1.956H5.98a1 1 0 0 1-1-1V7H3z"}))};U.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var q=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M4.995 14.954h2.986l1.991-3.982V5H4v5.972h2.986l-1.99 3.982zm7.963 0h2.986l1.991-3.982V5h-5.972v5.972h2.986l-1.99 3.982z"}))};q.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var H=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M13.3 1A9.8 9.8 0 0 0 1.1 7a9.4 9.4 0 0 0 6.2 12c5 1.5 10.3-1 12.1-5.8.2-.6-.1-1.3-.7-1.5-.7-.2-1.4.1-1.6.7a7.3 7.3 0 0 1-9 4.3 7 7 0 0 1-4.7-8.9 7.3 7.3 0 0 1 12-2.8L13 7.4c-.5.5-.3.8.3.8h5.5c.7 0 1.2-.5 1.2-1.1V1.8c0-.7-.4-.8-.9-.4l-2 2c-1-1-2.3-1.9-3.8-2.4z",fillRule:"evenodd"}))};H.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};var W=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M12.809 8.182a.898.898 0 1 1-1.798 0V4.058L8.576 6.494a.898.898 0 1 1-1.271-1.271l3.97-3.97a.925.925 0 0 1 1.27 0l4.026 4.026a.898.898 0 1 1-1.27 1.27l-2.492-2.49v4.123zm.015 11.75l2.435-2.436a.899.899 0 1 1 1.27 1.271l-3.969 3.97a.896.896 0 0 1-1.27 0L7.264 18.71a.898.898 0 1 1 1.27-1.271l2.492 2.491v-4.124a.898.898 0 1 1 1.798 0v4.124zm-.902-6.479a1.516 1.516 0 1 1 0-3.032 1.516 1.516 0 0 1 0 3.032z"}))};W.defaultProps={viewBox:"0 0 24 24"};var V=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M20.526 18.236a1.619 1.619 0 1 1-2.29 2.29l-3.341-3.342c-.237-.237-.666-.296-.964-.137 0 0 .04-.01-.22.108a6.881 6.881 0 1 1 3.44-3.436c-.117.258-.105.214-.105.214a.86.86 0 0 0 .138.962l3.342 3.341zm-9.677-3.466a3.921 3.921 0 1 0 0-7.842 3.921 3.921 0 0 0 0 7.842z"}))};V.defaultProps={viewBox:"0 0 24 24"};var $=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M18.887 12.874c.037-.287.065-.575.065-.88 0-.306-.028-.594-.065-.881l1.954-1.484a.445.445 0 0 0 .11-.575L19.1 5.944c-.111-.198-.361-.27-.565-.198l-2.306.9c-.482-.36-1-.657-1.565-.882l-.352-2.382a.448.448 0 0 0-.454-.377h-3.704a.448.448 0 0 0-.454.377l-.352 2.382a7.17 7.17 0 0 0-1.565.881l-2.306-.899a.458.458 0 0 0-.565.198L3.06 9.054a.435.435 0 0 0 .111.575l1.954 1.484a6.923 6.923 0 0 0-.064.88c0 .297.027.594.064.881l-1.954 1.484a.445.445 0 0 0-.11.575l1.851 3.11c.112.198.362.27.565.198l2.306-.9c.482.36 1 .657 1.565.882l.352 2.382a.448.448 0 0 0 .454.377h3.704a.448.448 0 0 0 .454-.377l.352-2.382a7.17 7.17 0 0 0 1.565-.881l2.306.899c.213.08.454 0 .565-.198l1.852-3.11a.445.445 0 0 0-.111-.575l-1.954-1.484zm-6.878 2.132a3.017 3.017 0 0 1-3.013-3.013 3.017 3.017 0 0 1 3.013-3.014 3.017 3.017 0 0 1 3.014 3.014 3.017 3.017 0 0 1-3.014 3.013z"}))};$.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var G=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#1E2532",fillRule:"nonzero",d:"M16.5 18c-3.025 0-5.5-2.634-5.5-5.854v-.292C11 8.634 13.475 6 16.5 6S22 8.634 22 11.854v.292C22 15.366 19.525 18 16.5 18zM16 29c-3.738 0-7.192-1.689-9.39-4.335-.908-1.064-.798-2.7.302-3.601C7.736 20.409 8.753 20 9.88 20h12.645c.742 0 1.43.191 2.062.491 1.43.737 1.869 2.592.88 3.874C23.24 27.175 19.875 29 16 29z"}))};G.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"};var K=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M10 4h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm7 0h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zM3 4h3a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z"}))};K.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var Y=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M2.975 7.004c.002-.477.412-.947.897-.948h9.451l-.816 1.896H3.872c-.485 0-.895-.47-.897-.948zm.017 8.97c.001.478.395 1.063.88 1.064H8.57c.01-.58.1-1.425.205-1.996H3.872c-.485.001-.879.524-.88 1.001v-.068zm7.921-5.008l.762-1.997H3.872c-.486 0-.933.521-.933.999 0 .477.447.998.933.998h7.041zM2.95 13.041c0 .477.437.965.922.966H9.18c.096-.258.301-.716.419-.968l.445-.964H3.872c-.485 0-.921.489-.922.966zm17.099-5.908l.395-.849a2.296 2.296 0 0 0-.176-2.374 2.39 2.39 0 0 0-2.207-.984 2.368 2.368 0 0 0-1.936 1.433l-4.712 10.19a9.619 9.619 0 0 0-.699 5.953.608.608 0 0 0 .35.435c.182.081.392.071.564-.027a9.846 9.846 0 0 0 4.104-4.436l3.628-7.843.689-1.498z"}))};Y.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var Q={add:o,"add-with":a,arrow:s,bitbucket:l,bold:u,check:c,chevron:d,"chevron-double":f,circle:p,close:h,code:m,"code-block":g,"drag-handle":v,eye:y,folder:b,github:_,gitlab:w,grid:x,h1:k,h2:E,hOptions:S,home:O,image:T,italic:C,link:A,list:P,"list-bulleted":R,"list-numbered":M,markdown:I,media:j,"media-alt":D,netlify:L,"netlify-cms":N,"new-tab":F,page:B,pages:z,"pages-alt":U,quote:q,refresh:H,scroll:W,search:V,settings:$,user:G,workflow:K,write:Y};t.default=Q},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(18)),i=(l(n(1)),l(n(2))),o=l(n(167)),a=n(111),s=n(11);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)("div",{target:"e191f7z70",label:"TopBar"})("display:flex;justify-content:space-between;height:26px;border-radius:",a.lengths.borderRadius," ",a.lengths.borderRadius," 0 0;position:relative;"),c=(0,r.default)("button",{target:"e191f7z71",label:"TopBarButton"})(a.buttons.button,";color:",a.colors.controlLabel,";background:transparent;font-size:16px;line-height:1;padding:0;width:32px;text-align:center;cursor:pointer;display:flex;justify-content:center;align-items:center;"),d=c.withComponent("span",{target:"e191f7z74",label:"TopBarButtonSpan"}),f=(0,r.default)(d,{target:"e191f7z72",label:"DragIconContainer"})({name:"8p0rle",styles:"width:100%;cursor:move;"}),p=({dragHandleHOC:e})=>{const t=e(()=>(0,s.jsx)(f,null,(0,s.jsx)(o.default,{type:"drag-handle",size:"small"})));return(0,s.jsx)(t,null)},h=({className:e,collapsed:t,onCollapseToggle:n,onRemove:r,dragHandleHOC:i})=>(0,s.jsx)(u,{className:e},n?(0,s.jsx)(c,{onClick:n},(0,s.jsx)(o.default,{type:"chevron",size:"small",direction:t?"right":"down"})):null,i?(0,s.jsx)(p,{dragHandleHOC:i}):null,r?(0,s.jsx)(c,{onClick:r},(0,s.jsx)(o.default,{type:"close",size:"small"})):null);h.propTypes={className:i.default.string,collapsed:i.default.bool,onCollapseToggle:i.default.func,onRemove:i.default.func};var m=(0,r.default)(h,{target:"e191f7z73",label:"StyledListItemTopBar"})("display:flex;justify-content:space-between;height:26px;border-radius:",a.lengths.borderRadius," ",a.lengths.borderRadius," 0 0;position:relative;");t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Loader=void 0;var r=u(n(18)),i=u(n(1)),o=u(n(2)),a=n(11),s=u(n(531)),l=n(111);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={disabled:{name:"1ob4o9f-disabled",styles:"display:none;;label:disabled;"},active:{name:"1exmk8-active",styles:"display:block;;label:active;"},enter:{name:"1rafamr-enter",styles:"opacity:0.01;;label:enter;"},enterActive:{name:"halfu0-enterActive",styles:"opacity:1;transition:opacity 500ms ease-in;;label:enterActive;"},exit:{name:"1p8uuwp-exit",styles:"opacity:1;;label:exit;"},exitActive:{name:"1istkwr-exitActive",styles:"opacity:0.01;transition:opacity 300ms ease-in;;label:exitActive;"}},f={loader:a.keyframes`
+ from {
+ transform: rotate(0deg);
+ }
+
+ to {
+ transform: rotate(360deg);
+ }
+ `},p=(0,r.default)("div",{target:"e1rlflmg0",label:"LoaderText"})({name:"8sb4j5",styles:"width:auto !important;height:auto !important;text-align:center;color:#767676;margin-top:55px;line-height:35px;"}),h=(0,r.default)("div",{target:"e1rlflmg1",label:"LoaderItem"})({name:"aprmr",styles:"position:absolute;white-space:nowrap;transform:translateX(-50%);"});class m extends i.default.Component{constructor(...e){super(...e),c(this,"state",{currentItem:0}),c(this,"setAnimation",()=>{if(this.interval)return;const{children:e}=this.props;this.interval=setInterval(()=>{const t=this.state.currentItem===e.length-1?0:this.state.currentItem+1;this.setState({currentItem:t})},5e3)}),c(this,"renderChild",()=>{const{children:e}=this.props,{currentItem:t}=this.state;return e?"string"==typeof e?(0,a.jsx)(p,null,e):Array.isArray(e)?(this.setAnimation(),(0,a.jsx)(p,null,(0,a.jsx)(s.default,{className:{enter:d.enter,enterActive:d.enterActive,exit:d.exit,exitActive:d.exitActive},timeout:500},(0,a.jsx)(h,{key:t},e[t])))):void 0:null})}componentWillUnmount(){this.interval&&clearInterval(this.interval)}render(){const{className:e}=this.props;return(0,a.jsx)("div",{className:e},this.renderChild())}}t.Loader=m,c(m,"propTypes",{children:o.default.node,className:o.default.string});var g=(0,r.default)(m,{target:"e1rlflmg2",label:"StyledLoader"})("display:",e=>e.active?"block":"none",";position:absolute;top:50%;left:50%;margin:0px;text-align:center;z-index:",l.zIndex.zIndex1000,";transform:translateX(-50%) translateY(-50%);&:before,&:after{content:'';position:absolute;top:0%;left:50%;width:2.28571429rem;height:2.28571429rem;margin:0em 0em 0em -1.14285714rem;border-radius:500rem;border-style:solid;border-width:0.2em;}&:before{border-color:rgba(0,0,0,0.1);}&:after{animation:",f.loader," 0.6s linear;animation-iteration-count:infinite;border-color:",l.colors.active," transparent transparent;box-shadow:0px 0px 0px 1px transparent;}");t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(18))&&r.__esModule?r:{default:r},o=n(111);const a={default:{background:o.colors.textFieldBorder,text:o.colors.controlLabel},active:{background:o.colors.active,text:o.colors.textLight},error:{background:o.colors.errorText,text:o.colorsRaw.white}},s=({isActive:e,hasErrors:t})=>t?a.error:e?a.active:a.default;var l=(0,i.default)("label",{target:"e1j7dp4t0",label:"FieldLabel"})(o.text.fieldLabel,";color:",e=>s(e).text,";background-color:",e=>s(e).background,";display:inline-block;border:0;border-radius:3px 3px 0 0;padding:3px 6px 2px;margin:0;transition:all ",o.transitions.main,";position:relative;&:before,&:after{content:'';display:block;position:absolute;top:0;right:-4px;height:100%;width:4px;background-color:inherit;}&:after{border-bottom-left-radius:3px;background-color:#fff;}");t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(18)),i=(s(n(1)),s(n(167))),o=n(111),a=n(11);function s(e){return e&&e.__esModule?e:{default:e}}const l={small:"28px",large:"40px"},u=(0,r.default)("button",{target:"e32dhqu0",label:"ButtonRound"})(o.buttons.button,";",o.shadows.dropMiddle,";background-color:",o.colorsRaw.white,";color:",e=>o.colors[e.isActive?"active":"inactive"],";border-radius:32px;display:flex;justify-content:center;align-items:center;width:",e=>l[e.size],";height:",e=>l[e.size],";padding:0;");var c=({size:e,isActive:t,type:n,onClick:r,className:o,title:s})=>(0,a.jsx)(u,{size:e,isActive:t,className:o,onClick:r,title:s},(0,a.jsx)(i.default,{type:n,size:e}));t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleHandle=t.ToggleBackground=t.ToggleContainer=t.default=void 0;var r=l(n(18)),i=(l(n(1)),l(n(2))),o=n(11),a=l(n(1019)),s=n(111);function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const c=(0,r.default)("button",{target:"e1keeugh0",label:"ToggleContainer"})({name:"x59i5d",styles:"display:inline-flex;align-items:center;justify-content:center;position:relative;width:40px;height:20px;cursor:pointer;border:none;padding:0;margin:0;background:transparent;"});t.ToggleContainer=c;var d={name:"11uzlui-ToggleHandle",styles:"transform:translateX(20px);;label:ToggleHandle;"};const f=(0,r.default)("span",{target:"e1keeugh1",label:"ToggleHandle"})(s.shadows.dropDeep,";position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;background-color:",s.colorsRaw.white,";transition:transform ",s.transitions.main,";",e=>e.isActive&&d,";");t.ToggleHandle=f;const p=(0,r.default)("span",{target:"e1keeugh2",label:"ToggleBackground"})("width:34px;height:14px;border-radius:10px;background-color:",s.colors.active,";");t.ToggleBackground=p;const h=({id:e,active:t,onChange:n,onFocus:r,onBlur:i,className:s,Container:l=c,Background:d=p,Handle:h=f})=>(0,o.jsx)(a.default,{on:t,onToggle:n},({on:t,getTogglerProps:n})=>(0,o.jsx)(l,u({id:e,onFocus:r,onBlur:i,className:s},n({role:"switch","aria-checked":t.toString(),"aria-expanded":null})),(0,o.jsx)(d,{isActive:t}),(0,o.jsx)(h,{isActive:t})));h.propTypes={id:i.default.string,active:i.default.bool,onChange:i.default.func,onFocus:i.default.func,onBlur:i.default.func,className:i.default.string,Container:i.default.func,Background:i.default.func,Handle:i.default.func};const m=(0,r.default)(h,{target:"e1keeugh3",label:"StyledToggle"})("");t.default=m},function(e,t,n){"use strict";n.r(t);var r=n(1),i=(n(2),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(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},s=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.forEach((function(e){return e&&e.apply(void 0,n)}))}},l=function(){},u=function(e){function t(){var n,r;i(this,t);for(var u=arguments.length,c=Array(u),d=0;d<u;d++)c[d]=arguments[d];return n=r=a(this,e.call.apply(e,[this].concat(c))),r.state={on:r.getOn({on:r.props.defaultOn})},r.getTogglerProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o({"aria-expanded":Boolean(r.getOn()),tabIndex:0},e,{onClick:s(e.onClick,r.toggle)})},r.toggleKeys=["Enter"," "],r.getInputTogglerProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.getTogglerProps(o({},e,{onKeyUp:s(e.onKeyUp,(function(e){"Enter"===e.key&&r.toggle()}))}))},r.getElementTogglerProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.getTogglerProps(o({},e,{onKeyUp:s(e.onKeyUp,(function(e){r.toggleKeys.indexOf(e.key)>-1&&r.toggle()}))}))},r.setOnState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!r.getOn(),t=r.getOn()===e?l:function(){r.props.onToggle(e,r.getTogglerStateAndHelpers())};r.setState({on:e},t)},r.setOn=r.setOnState.bind(r,!0),r.setOff=r.setOnState.bind(r,!1),r.toggle=r.setOnState.bind(r,void 0),a(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getOn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props;return this.isOnControlled()?t.on:e.on},t.prototype.isOnControlled=function(){return void 0!==this.props.on},t.prototype.getTogglerStateAndHelpers=function(){return{on:this.getOn(),getTogglerProps:this.getTogglerProps,getInputTogglerProps:this.getInputTogglerProps,getElementTogglerProps:this.getElementTogglerProps,setOn:this.setOn,setOff:this.setOff,toggle:this.toggle}},t.prototype.componentWillReceiveProps=function(e){var t=e.on;t!==this.props.on&&t!==this.state.on&&this.setOnState(t)},t.prototype.render=function(){var e;return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.getTogglerStateAndHelpers())},t}(r.Component);u.defaultProps={defaultOn:!1,onToggle:l},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(18)),i=(u(n(1)),u(n(2))),o=u(n(167)),a=n(111),s=u(n(534)),l=n(11);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("section",{target:"e4hp3ji0",label:"StyledAuthenticationPage"})({name:"1ul3gz4",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;height:100vh;"}),d=(0,r.default)("span",{target:"e4hp3ji1",label:"CustomIconWrapper"})({name:"pxf9nc",styles:"width:300px;height:200px;margin-top:-150px;"}),f=(0,r.default)(o.default,{target:"e4hp3ji2",label:"NetlifyLogoIcon"})({name:"11nl61t",styles:"color:#c4c6d2;margin-top:-300px;"}),p=(0,r.default)(o.default,{target:"e4hp3ji3",label:"NetlifyCreditIcon"})({name:"dnh8wx",styles:"color:#c4c6d2;position:absolute;bottom:10px;"}),h=({url:e})=>(0,l.jsx)(d,null,(0,l.jsx)("img",{src:e,alt:"Logo"})),m=(0,r.default)("button",{target:"e4hp3ji4",label:"LoginButton"})(a.buttons.button,";",a.shadows.dropDeep,";",a.buttons.default,";",a.buttons.gray,";&[disabled]{",a.buttons.disabled,";}padding:0 12px;margin-top:-40px;display:flex;align-items:center;position:relative;"),g=({onLogin:e,loginDisabled:t,loginErrorMessage:n,renderButtonContent:r,renderPageContent:i,logoUrl:o,siteUrl:a,t:u})=>(0,l.jsx)(c,null,(e=>e?(0,l.jsx)(h,{url:e}):(0,l.jsx)(f,{size:"300px",type:"netlify-cms"}))(o),n?(0,l.jsx)("p",null,n):null,i?i({LoginButton:m}):null,r?(0,l.jsx)(m,{disabled:t,onClick:e},r()):null,a&&(0,l.jsx)(s.default,{href:a,t:u}),o?(0,l.jsx)(p,{size:"100px",type:"netlify-cms"}):null);g.propTypes={onLogin:i.default.func,logoUrl:i.default.string,siteUrl:i.default.string,loginDisabled:i.default.bool,loginErrorMessage:i.default.node,renderButtonContent:i.default.func,renderPageContent:i.default.func,t:i.default.func.isRequired};var v=g;t.default=v},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(0,((r=n(18))&&r.__esModule?r:{default:r}).default)("div",{target:"e5ld4zj0",label:"WidgetPreviewContainer"})({name:"1wfkwts",styles:"margin:15px 2px;"});t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(18)),i=f(n(1)),o=f(n(2)),a=n(11),s=f(n(167)),l=n(111),u=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(528)),c=f(n(24));function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function f(e){return e&&e.__esModule?e:{default:e}}const p=(0,r.default)("div",{target:"e1yavck40",label:"TopBarContainer"})("align-items:center;background-color:",l.colors.textFieldBorder,";display:flex;justify-content:space-between;margin:0 -14px;padding:13px;");var h={name:"ekkxr4-ExpandButtonContainer",styles:"display:flex;align-items:center;font-size:14px;font-weight:500;line-height:1;;label:ExpandButtonContainer;"};const m=(0,r.default)("div",{target:"e1yavck41",label:"ExpandButtonContainer"})(e=>e.hasHeading&&h,";"),g=(0,r.default)("button",{target:"e1yavck42",label:"ExpandButton"})(l.buttons.button,";padding:4px;background-color:transparent;color:inherit;&:last-of-type{margin-right:4px;}"),v=(0,r.default)("button",{target:"e1yavck43",label:"AddButton"})(l.buttons.button,";display:flex;justify-content:center;align-items:center;padding:2px 12px;font-size:12px;font-weight:bold;border-radius:3px;",s.default,"{margin-left:6px;}");class y extends i.default.Component{renderAddUI(){return this.props.allowAdd?this.props.types&&this.props.types.size>0?this.renderTypesDropdown(this.props.types):this.renderAddButton():null}renderTypesDropdown(e){return(0,a.jsx)(u.default,{renderButton:()=>(0,a.jsx)(u.StyledDropdownButton,null,"Add ",this.props.label," item")},e.map((e,t)=>(0,a.jsx)(u.DropdownItem,{key:t,label:e.get("label",e.get("name")),onClick:()=>this.props.onAddType(e.get("name"))})))}renderAddButton(){return(0,a.jsx)(v,{onClick:this.props.onAdd},"Add ",this.props.label," ",(0,a.jsx)(s.default,{type:"add",size:"xsmall"}))}render(){const{onCollapseToggle:e,collapsed:t,heading:n=null}=this.props;return(0,a.jsx)(p,null,(0,a.jsx)(m,{hasHeading:!!n},(0,a.jsx)(g,{onClick:e,"data-testid":"expand-button"},(0,a.jsx)(s.default,{type:"chevron",direction:t?"right":"down",size:"small"})),n),this.renderAddUI())}}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(y,"propTypes",{allowAdd:o.default.bool,types:c.default.list,onAdd:o.default.func,onAddType:o.default.func,onCollapseToggle:o.default.func,collapsed:o.default.bool,heading:o.default.node,label:o.default.string});var b=y;t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTML5DragDrop=t.DropTarget=t.DragSource=void 0;var r=s(n(1024)),i=n(1034),o=s(n(1)),a=s(n(2));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const u=e=>{let{namespace:t}=e,n=l(e,["namespace"]);const r=(0,i.DragSource)(t,{beginDrag(e){let{children:t,isDragging:n,connectDragComponent:r}=e;return l(e,["children","isDragging","connectDragComponent"])}},e=>({connectDragComponent:e.dragSource()}))(({children:e,connectDragComponent:t})=>e(t));return o.default.createElement(r,n,n.children)};t.DragSource=u,u.propTypes={namespace:a.default.any.isRequired,children:a.default.func.isRequired};const c=e=>{let{onDrop:t,namespace:n}=e,r=l(e,["onDrop","namespace"]);const a=(0,i.DropTarget)(n,{drop(e,n){t(n.getItem())}},(e,t)=>({connectDropTarget:e.dropTarget(),isHovered:t.isOver()}))(({children:e,connectDropTarget:t,isHovered:n})=>e(t,{isHovered:n}));return o.default.createElement(a,r,r.children)};t.DropTarget=c,c.propTypes={onDrop:a.default.func.isRequired,namespace:a.default.any.isRequired,children:a.default.func.isRequired};t.HTML5DragDrop=e=>(0,i.DragDropContext)(r.default)(e)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1025),i=n(1033);t.getEmptyImage=i.default;var o=n(367);t.NativeTypes=o,t.default=function(e){return new r.default(e)}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1026),o=n(536),a=n(1027),s=n(1029),l=n(367),u=function(){function e(e){var t=this;this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){return a.getNodeClientOffset(t.sourceNodes.get(e))},this.endDragNativeItem=function(){t.isDraggingNativeItem()&&(t.actions.endDrag(),t.registry.removeSource(t.currentNativeHandle),t.currentNativeHandle=null,t.currentNativeSource=null)},this.isNodeInDocument=function(e){return!!document&&document.body.contains(e)||!!t.window&&t.window.document.body.contains(e)},this.endDragIfSourceWasRemovedFromDOM=function(){var e=t.currentDragSourceNode;t.isNodeInDocument(e)||t.clearCurrentDragSourceNode()&&t.actions.endDrag()},this.handleTopDragStartCapture=function(){t.clearCurrentDragSourceNode(),t.dragStartSourceIds=[]},this.handleTopDragStart=function(e){var n=t.dragStartSourceIds;t.dragStartSourceIds=null;var r=a.getEventClientOffset(e);t.monitor.isDragging()&&t.actions.endDrag(),t.actions.beginDrag(n||[],{publishSource:!1,getSourceClientOffset:t.getSourceClientOffset,clientOffset:r});var i=e.dataTransfer,o=s.matchNativeItemType(i);if(t.monitor.isDragging()){if(i&&"function"==typeof i.setDragImage){var l=t.monitor.getSourceId(),u=t.sourceNodes.get(l),c=t.sourcePreviewNodes.get(l)||u;if(c){var d=t.getCurrentSourcePreviewNodeOptions(),f={anchorX:d.anchorX,anchorY:d.anchorY},p={offsetX:d.offsetX,offsetY:d.offsetY},h=a.getDragPreviewOffset(u,c,r,f,p);i.setDragImage(c,h.x,h.y)}}try{i.setData("application/json",{})}catch(e){}t.setCurrentDragSourceNode(e.target),t.getCurrentSourcePreviewNodeOptions().captureDraggingState?t.actions.publishDragSource():setTimeout((function(){return t.actions.publishDragSource()}),0)}else if(o)t.beginDragNativeItem(o);else{if(i&&!i.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=function(){t.clearCurrentDragSourceNode()&&t.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(t.dragEnterTargetIds=[],t.enterLeaveCounter.enter(e.target)&&!t.monitor.isDragging()){var n=e.dataTransfer,r=s.matchNativeItemType(n);r&&t.beginDragNativeItem(r)}},this.handleTopDragEnter=function(e){var n=t.dragEnterTargetIds;(t.dragEnterTargetIds=[],t.monitor.isDragging())&&(t.altKeyPressed=e.altKey,o.isFirefox()||t.actions.hover(n,{clientOffset:a.getEventClientOffset(e)}),n.some((function(e){return t.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=t.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){t.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var n=t.dragOverTargetIds;if(t.dragOverTargetIds=[],!t.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));t.altKeyPressed=e.altKey,t.actions.hover(n||[],{clientOffset:a.getEventClientOffset(e)}),(n||[]).some((function(e){return t.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=t.getCurrentDropEffect())):t.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){t.isDraggingNativeItem()&&e.preventDefault(),t.enterLeaveCounter.leave(e.target)&&t.isDraggingNativeItem()&&t.endDragNativeItem()},this.handleTopDropCapture=function(e){t.dropTargetIds=[],e.preventDefault(),t.isDraggingNativeItem()&&t.currentNativeSource.mutateItemByReadingDataTransfer(e.dataTransfer),t.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var n=t.dropTargetIds;t.dropTargetIds=[],t.actions.hover(n,{clientOffset:a.getEventClientOffset(e)}),t.actions.drop({dropEffect:t.getCurrentDropEffect()}),t.isDraggingNativeItem()?t.endDragNativeItem():t.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.context=e.getContext(),this.enterLeaveCounter=new i.default(this.isNodeInDocument)}return Object.defineProperty(e.prototype,"window",{get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0},enumerable:!0,configurable:!0}),e.prototype.setup=function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}},e.prototype.teardown=function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))},e.prototype.connectDragPreview=function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}},e.prototype.connectDragSource=function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var i=function(t){return r.handleDragStart(t,e)},o=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",i),t.addEventListener("selectstart",o),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",i),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}},e.prototype.connectDropTarget=function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},i=function(t){return n.handleDragOver(t,e)},o=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",i),t.addEventListener("drop",o),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",i),t.removeEventListener("drop",o)}},e.prototype.addEventListeners=function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))},e.prototype.removeEventListeners=function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))},e.prototype.getCurrentSourceNodeOptions=function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return r({dropEffect:this.altKeyPressed?"copy":"move"},t||{})},e.prototype.getCurrentDropEffect=function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect},e.prototype.getCurrentSourcePreviewNodeOptions=function(){var e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions.get(e);return r({anchorX:.5,anchorY:.5,captureDraggingState:!1},t||{})},e.prototype.isDraggingNativeItem=function(){var e=this.monitor.getItemType();return Object.keys(l).some((function(t){return l[t]===e}))},e.prototype.beginDragNativeItem=function(e){this.clearCurrentDragSourceNode(),this.currentNativeSource=s.createNativeDragSource(e),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])},e.prototype.setCurrentDragSourceNode=function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout((function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)},e.prototype.clearCurrentDragSourceNode=function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)},e.prototype.handleDragStart=function(e,t){this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t)},e.prototype.handleDragEnter=function(e,t){this.dragEnterTargetIds.unshift(t)},e.prototype.handleDragOver=function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)},e.prototype.handleDrop=function(e,t){this.dropTargetIds.unshift(t)},e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(535),i=function(){function e(e){this.entered=[],this.isNodeInDocument=e}return e.prototype.enter=function(e){var t=this,n=this.entered.length;return this.entered=r.union(this.entered.filter((function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))})),[e]),0===n&&this.entered.length>0},e.prototype.leave=function(e){var t=this.entered.length;return this.entered=r.without(this.entered.filter(this.isNodeInDocument),e),t>0&&0===this.entered.length},e.prototype.reset=function(){this.entered=[]},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(536),i=n(1028);function o(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}t.getNodeClientOffset=o,t.getEventClientOffset=function(e){return{x:e.clientX,y:e.clientY}},t.getDragPreviewOffset=function(e,t,n,a,s){var l,u,c="IMG"===(l=t).nodeName&&(r.isFirefox()||!document.documentElement.contains(l)),d=o(c?e:t),f={x:n.x-d.x,y:n.y-d.y},p=e.offsetWidth,h=e.offsetHeight,m=a.anchorX,g=a.anchorY,v=function(e,t,n,i){var o=e?t.width:n,a=e?t.height:i;return r.isSafari()&&e&&(a/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:a}}(c,t,p,h),y=v.dragPreviewWidth,b=v.dragPreviewHeight,_=s.offsetX,w=s.offsetY,x=0===w||w;return{x:0===_||_?_:new i.default([0,.5,1],[f.x,f.x/p*y,f.x+y-p]).interpolate(m),y:x?w:(u=new i.default([0,.5,1],[f.y,f.y/h*b,f.y+b-h]).interpolate(g),r.isSafari()&&c&&(u+=(window.devicePixelRatio-1)*b),u)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=e.length,r=[],i=0;i<n;i++)r.push(i);r.sort((function(t,n){return e[t]<e[n]?-1:1}));var o,a,s=[],l=[],u=[];for(i=0;i<n-1;i++)o=e[i+1]-e[i],a=t[i+1]-t[i],l.push(o),s.push(a),u.push(a/o);var c=[u[0]];for(i=0;i<l.length-1;i++){var d=u[i],f=u[i+1];if(d*f<=0)c.push(0);else{o=l[i];var p=l[i+1],h=o+p;c.push(3*h/((h+p)/d+(h+o)/f))}}c.push(u[u.length-1]);var m,g=[],v=[];for(i=0;i<c.length-1;i++){m=u[i];var y=c[i],b=1/l[i];h=y+c[i+1]-m-m;g.push((m-y-h)*b),v.push(h*b*b)}this.xs=e,this.ys=t,this.c1s=c,this.c2s=g,this.c3s=v}return e.prototype.interpolate=function(e){var t=this,n=t.xs,r=t.ys,i=t.c1s,o=t.c2s,a=t.c3s,s=n.length-1;if(e===n[s])return r[s];for(var l,u=0,c=a.length-1;u<=c;){var d=n[l=Math.floor(.5*(u+c))];if(d<e)u=l+1;else{if(!(d>e))return r[l];c=l-1}}var f=e-n[s=Math.max(0,c)],p=f*f;return r[s]+i[s]*f+o[s]*p+a[s]*f*p},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1030),i=n(1032);t.createNativeDragSource=function(e){return new i.NativeDragSource(r.nativeTypesConfig[e])},t.matchNativeItemType=function(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(r.nativeTypesConfig).filter((function(e){return r.nativeTypesConfig[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var i=n(367),o=n(1031);t.nativeTypesConfig=((r={})[i.FILE]={exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]},r[i.URL]={exposeProperties:{urls:function(e,t){return o.getDataFromDataTransfer(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]},r[i.TEXT]={exposeProperties:{text:function(e,t){return o.getDataFromDataTransfer(e,t,"")}},matchesTypes:["Text","text/plain"]},r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDataFromDataTransfer=function(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=r?r:n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){var t=this;this.config=e,this.item={},Object.keys(this.config.exposeProperties).forEach((function(e){Object.defineProperty(t.item,e,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \""+e+'" until the drop event.'),null}})}))}return e.prototype.mutateItemByReadingDataTransfer=function(e){var t=this,n={};e&&Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes)}})),Object.defineProperties(this.item,n)},e.prototype.canDrag=function(){return!0},e.prototype.beginDrag=function(){return this.item},e.prototype.isDragging=function(e,t){return t===e.getSourceId()},e.prototype.endDrag=function(){},e}();t.NativeDragSource=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return r||((r=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(275);t.DragDropContext=r.DragDropContext,t.DragDropContextProvider=r.DragDropContextProvider,t.DragDropContextConsumer=r.Consumer;var i=n(1057);t.DragLayer=i.default;var o=n(1058);t.DragSource=o.default;var a=n(1066);t.DropTarget=a.default;var s=n(1068);t.DragPreviewImage=s.default;var l=n(1069);t.useDrag=l.useDrag,t.useDragLayer=l.useDragLayer,t.useDrop=l.useDrop},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(537)),r(n(1036))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1037);t.createDragDropManager=function(e,t,n){return new r.default(e,t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(200),i=n(1038),o=n(276),a=n(1050),s=n(1052);var l=function(){function e(e,t,n){var o=this;void 0===t&&(t={}),void 0===n&&(n=!1),this.context=t,this.isSetUp=!1,this.handleRefCountChange=function(){var e=o.store.getState().refCount>0;e&&!o.isSetUp?(o.backend.setup(),o.isSetUp=!0):!e&&o.isSetUp&&(o.backend.teardown(),o.isSetUp=!1)};var l=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return r.createStore(i.default,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n);this.store=l,this.monitor=new a.default(l,new s.default(l)),this.backend=e(this),l.subscribe(this.handleRefCountChange)}return e.prototype.getContext=function(){return this.context},e.prototype.getMonitor=function(){return this.monitor},e.prototype.getBackend=function(){return this.backend},e.prototype.getRegistry=function(){return this.monitor.registry},e.prototype.getActions=function(){var e=this,t=this.store.dispatch;var n=o.default(this);return Object.keys(n).reduce((function(r,i){var o,a=n[i];return r[i]=(o=a,function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=o.apply(e,n);void 0!==i&&t(i)}),r}),{})},e.prototype.dispatch=function(e){this.store.dispatch(e)},e}();t.default=l},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1039),o=n(1046),a=n(1047),s=n(1048),l=n(1049),u=n(193);t.default=function(e,t){return void 0===e&&(e={}),{dirtyHandlerIds:s.default(e.dirtyHandlerIds,{type:t.type,payload:r({},t.payload,{prevTargetIds:u.get(e,"dragOperation.targetIds",[])})}),dragOffset:i.default(e.dragOffset,t),refCount:a.default(e.refCount,t),dragOperation:o.default(e.dragOperation,t),stateId:l.default(e.stateId)}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(276),o=n(539),a={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};t.default=function(e,t){void 0===e&&(e=a);var n=t.payload;switch(t.type){case i.INIT_COORDS:case i.BEGIN_DRAG:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case i.HOVER:return o.areCoordsEqual(e.clientOffset,n.clientOffset)?e:r({},e,{clientOffset:n.clientOffset});case i.END_DRAG:case i.DROP:return a;default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1041),i=n(193),o=n(38),a=n(168),s={type:a.INIT_COORDS,payload:{clientOffset:null,sourceClientOffset:null}};t.default=function(e){return function(t,n){void 0===t&&(t=[]),void 0===n&&(n={publishSource:!0});var l=n.publishSource,u=void 0===l||l,c=n.clientOffset,d=n.getSourceClientOffset,f=e.getMonitor(),p=e.getRegistry();e.dispatch(r.setClientOffset(c)),function(e,t,n){o(!t.isDragging(),"Cannot call beginDrag while dragging.");for(var r=0,i=e;r<i.length;r++){var a=i[r];o(n.getSource(a),"Expected sourceIds to be registered.")}}(t,f,p);var h=function(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,f);if(null!==h){var m=null;c&&(!function(e){o("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(d),m=d(h)),e.dispatch(r.setClientOffset(c,m));var g=p.getSource(h).beginDrag(f,h);!function(e){o(i.isObject(e),"Item must be an object.")}(g),p.pinSource(h);var v=p.getSourceType(h);return{type:a.BEGIN_DRAG,payload:{itemType:v,item:g,sourceId:h,clientOffset:c||null,sourceClientOffset:m||null,isSourcePublic:!!u}}}e.dispatch(s)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(168);t.setClientOffset=function(e,t){return{type:r.INIT_COORDS,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(168);t.default=function(e){return function(){if(e.getMonitor().isDragging())return{type:r.PUBLISH_DRAG_SOURCE}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(538),i=n(168),o=n(38);t.default=function(e){return function(t,n){var a=(void 0===n?{}:n).clientOffset;!function(e){o(Array.isArray(e),"Expected targetIds to be an array.")}(t);var s=t.slice(0),l=e.getMonitor(),u=e.getRegistry();return function(e,t,n){o(t.isDragging(),"Cannot call hover while not dragging."),o(!t.didDrop(),"Cannot call hover after drop.");for(var r=0;r<e.length;r++){var i=e[r];o(e.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");var a=n.getTarget(i);o(a,"Expected targetIds to be registered.")}}(s,l,u),function(e,t,n){for(var i=e.length-1;i>=0;i--){var o=e[i],a=t.getTargetType(o);r.default(a,n)||e.splice(i,1)}}(s,u,l.getItemType()),function(e,t,n){for(var r=0,i=e;r<i.length;r++){var o=i[r];n.getTarget(o).hover(t,o)}}(s,l,u),{type:i.HOVER,payload:{targetIds:s,clientOffset:a||null}}}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(168),o=n(193),a=n(38);t.default=function(e){return function(t){void 0===t&&(t={});var n=e.getMonitor(),s=e.getRegistry();!function(e){a(e.isDragging(),"Cannot call drop while not dragging."),a(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n),function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n).forEach((function(l,u){var c=function(e,t,n,r){var i=n.getTarget(e),s=i?i.drop(r,e):void 0;(function(e){a(void 0===e||o.isObject(e),"Drop result must either be an object or undefined.")})(s),void 0===s&&(s=0===t?{}:r.getDropResult());return s}(l,u,s,n),d={type:i.DROP,payload:{dropResult:r({},t,c)}};e.dispatch(d)}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(168),i=n(38);t.default=function(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){i(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var o=t.getSourceId();return n.getSource(o,!0).endDrag(t,o),n.unpinSource(),{type:r.END_DRAG}}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(276),o=n(277),a=n(193),s={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};t.default=function(e,t){void 0===e&&(e=s);var n=t.payload;switch(t.type){case i.BEGIN_DRAG:return r({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case i.PUBLISH_DRAG_SOURCE:return r({},e,{isSourcePublic:!0});case i.HOVER:return r({},e,{targetIds:n.targetIds});case o.REMOVE_TARGET:return-1===e.targetIds.indexOf(n.targetId)?e:r({},e,{targetIds:a.without(e.targetIds,n.targetId)});case i.DROP:return r({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case i.END_DRAG:return r({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(277);t.default=function(e,t){switch(void 0===e&&(e=0),t.type){case r.ADD_SOURCE:case r.ADD_TARGET:return e+1;case r.REMOVE_SOURCE:case r.REMOVE_TARGET:return e-1;default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(276),i=n(277),o=n(539),a=n(540),s=n(193);t.default=function(e,t){switch(void 0===e&&(e=a.NONE),t.type){case r.HOVER:break;case i.ADD_SOURCE:case i.ADD_TARGET:case i.REMOVE_TARGET:case i.REMOVE_SOURCE:return a.NONE;case r.BEGIN_DRAG:case r.PUBLISH_DRAG_SOURCE:case r.END_DRAG:case r.DROP:default:return a.ALL}var n=t.payload,l=n.targetIds,u=void 0===l?[]:l,c=n.prevTargetIds,d=void 0===c?[]:c,f=s.xor(u,d);if(!(f.length>0||!o.areArraysEqual(u,d)))return a.NONE;var p=d[d.length-1],h=u[u.length-1];return p!==h&&(p&&f.push(p),h&&f.push(h)),f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return void 0===e&&(e=0),e+1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(538),i=n(1051),o=n(540),a=n(38),s=function(){function e(e,t){this.store=e,this.registry=t}return e.prototype.subscribeToStateChange=function(e,t){var n=this;void 0===t&&(t={handlerIds:void 0});var r=t.handlerIds;a("function"==typeof e,"listener must be a function."),a(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var i=this.store.getState().stateId;return this.store.subscribe((function(){var t=n.store.getState(),a=t.stateId;try{a===i||a===i+1&&!o.areDirty(t.dirtyHandlerIds,r)||e()}finally{i=a}}))},e.prototype.subscribeToOffsetChange=function(e){var t=this;a("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())}))},e.prototype.canDragSource=function(e){if(!e)return!1;var t=this.registry.getSource(e);return a(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)},e.prototype.canDropOnTarget=function(e){if(!e)return!1;var t=this.registry.getTarget(e);if(a(t,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var n=this.registry.getTargetType(e),i=this.getItemType();return r.default(n,i)&&t.canDrop(this,e)},e.prototype.isDragging=function(){return Boolean(this.getItemType())},e.prototype.isDraggingSource=function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return a(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))},e.prototype.isOverTarget=function(e,t){if(void 0===t&&(t={shallow:!1}),!e)return!1;var n=t.shallow;if(!this.isDragging())return!1;var i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!r.default(i,o))return!1;var a=this.getTargetIds();if(!a.length)return!1;var s=a.indexOf(e);return n?s===a.length-1:s>-1},e.prototype.getItemType=function(){return this.store.getState().dragOperation.itemType},e.prototype.getItem=function(){return this.store.getState().dragOperation.item},e.prototype.getSourceId=function(){return this.store.getState().dragOperation.sourceId},e.prototype.getTargetIds=function(){return this.store.getState().dragOperation.targetIds},e.prototype.getDropResult=function(){return this.store.getState().dragOperation.dropResult},e.prototype.didDrop=function(){return this.store.getState().dragOperation.didDrop},e.prototype.isSourcePublic=function(){return this.store.getState().dragOperation.isSourcePublic},e.prototype.getInitialClientOffset=function(){return this.store.getState().dragOffset.initialClientOffset},e.prototype.getInitialSourceClientOffset=function(){return this.store.getState().dragOffset.initialSourceClientOffset},e.prototype.getClientOffset=function(){return this.store.getState().dragOffset.clientOffset},e.prototype.getSourceClientOffset=function(){return i.getSourceClientOffset(this.store.getState().dragOffset)},e.prototype.getDifferenceFromInitialOffset=function(){return i.getDifferenceFromInitialOffset(this.store.getState().dragOffset)},e}();t.default=s},function(e,t,n){"use strict";function r(e,t){return{x:e.x+t.x,y:e.y+t.y}}function i(e,t){return{x:e.x-t.x,y:e.y-t.y}}Object.defineProperty(t,"__esModule",{value:!0}),t.add=r,t.subtract=i,t.getSourceClientOffset=function(e){var t=e.clientOffset,n=e.initialClientOffset,o=e.initialSourceClientOffset;return t&&n&&o?i(r(t,o),n):null},t.getDifferenceFromInitialOffset=function(e){var t=e.clientOffset,n=e.initialClientOffset;return t&&n?i(t,n):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(277),i=n(1053),o=n(537),a=n(1054),s=n(38),l=n(1055);function u(e){switch(e[0]){case"S":return o.HandlerRole.SOURCE;case"T":return o.HandlerRole.TARGET;default:s(!1,"Cannot parse handler ID: "+e)}}function c(e,t){var n=e.entries(),r=!1;do{var i=n.next(),o=i.done;if(i.value[1]===t)return!0;r=o}while(!r);return!1}var d=function(){function e(e){this.store=e,this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null}return e.prototype.addSource=function(e,t){a.validateType(e),a.validateSourceContract(t);var n=this.addHandler(o.HandlerRole.SOURCE,e,t);return this.store.dispatch(r.addSource(n)),n},e.prototype.addTarget=function(e,t){a.validateType(e,!0),a.validateTargetContract(t);var n=this.addHandler(o.HandlerRole.TARGET,e,t);return this.store.dispatch(r.addTarget(n)),n},e.prototype.containsHandler=function(e){return c(this.dragSources,e)||c(this.dropTargets,e)},e.prototype.getSource=function(e,t){return void 0===t&&(t=!1),s(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)},e.prototype.getTarget=function(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)},e.prototype.getSourceType=function(e){return s(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)},e.prototype.getTargetType=function(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)},e.prototype.isSourceId=function(e){return u(e)===o.HandlerRole.SOURCE},e.prototype.isTargetId=function(e){return u(e)===o.HandlerRole.TARGET},e.prototype.removeSource=function(e){var t=this;s(this.getSource(e),"Expected an existing source."),this.store.dispatch(r.removeSource(e)),l((function(){t.dragSources.delete(e),t.types.delete(e)}))},e.prototype.removeTarget=function(e){s(this.getTarget(e),"Expected an existing target."),this.store.dispatch(r.removeTarget(e)),this.dropTargets.delete(e),this.types.delete(e)},e.prototype.pinSource=function(e){var t=this.getSource(e);s(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t},e.prototype.unpinSource=function(){s(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null},e.prototype.addHandler=function(e,t,n){var r=function(e){var t=i.default().toString();switch(e){case o.HandlerRole.SOURCE:return"S"+t;case o.HandlerRole.TARGET:return"T"+t;default:throw new Error("Unknown Handler Role: "+e)}}(e);return this.types.set(r,t),e===o.HandlerRole.SOURCE?this.dragSources.set(r,n):e===o.HandlerRole.TARGET&&this.dropTargets.set(r,n),r},e}();t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=0;t.default=function(){return r++}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(38);t.validateSourceContract=function(e){r("function"==typeof e.canDrag,"Expected canDrag to be a function."),r("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),r("function"==typeof e.endDrag,"Expected endDrag to be a function.")},t.validateTargetContract=function(e){r("function"==typeof e.canDrop,"Expected canDrop to be a function."),r("function"==typeof e.hover,"Expected hover to be a function."),r("function"==typeof e.drop,"Expected beginDrag to be a function.")},t.validateType=function e(t,n){n&&Array.isArray(t)?t.forEach((function(t){return e(t,!1)})):r("string"==typeof t||"symbol"==typeof t,n?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}},function(e,t,n){"use strict";var r=n(1056),i=[],o=[],a=r.makeRequestCallFromTimer((function(){if(o.length)throw o.shift()}));function s(e){var t;(t=i.length?i.pop():new l).task=e,r(t)}function l(){this.task=null}e.exports=s,l.prototype.call=function(){try{this.task.call()}catch(e){s.onerror?s.onerror(e):(o.push(e),a())}finally{this.task=null,i[i.length]=this}}},function(e,t,n){"use strict";(function(t){function n(e){i.length||(r(),!0),i[i.length]=e}e.exports=n;var r,i=[],o=0;function a(){for(;o<i.length;){var e=o;if(o+=1,i[e].call(),o>1024){for(var t=0,n=i.length-o;t<n;t++)i[t]=i[t+o];i.length-=o,o=0}}i.length=0,o=0,!1}var s,l,u,c=void 0!==t?t:self,d=c.MutationObserver||c.WebKitMutationObserver;function f(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}"function"==typeof d?(s=1,l=new d(a),u=document.createTextNode(""),l.observe(u,{characterData:!0}),r=function(){s=-s,u.data=s}):r=f(a),n.requestFlush=r,n.makeRequestCallFromTimer=f}).call(this,n(43))},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(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,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(278),l=n(275),u=n(368),c=n(169),d=n(127),f=n(38),p=n(228);t.default=function(e,t){return void 0===t&&(t={}),s.default("DragLayer","collect[, options]",e,t),f("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),f(c.isPlainObject(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var r=n,s=t.arePropsEqual,c=void 0===s?p:s,h=r.displayName||r.name||"Component",m=function(t){function s(){var e=null!==t&&t.apply(this,arguments)||this;return e.isCurrentlyMounted=!1,e.ref=a.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();p(t,e.state)||e.setState(t)}},e}return i(s,t),s.prototype.getDecoratedComponentInstance=function(){return f(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current},s.prototype.shouldComponentUpdate=function(e,t){return!c(e,this.props)||!p(t,this.state)},s.prototype.componentDidMount=function(){this.isCurrentlyMounted=!0,this.handleChange()},s.prototype.componentWillUnmount=function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)},s.prototype.render=function(){var e=this;return a.createElement(l.Consumer,null,(function(t){var n=t.dragDropManager;return void 0===n?null:(e.receiveDragDropManager(n),e.isCurrentlyMounted?a.createElement(r,o({},e.props,e.state,{ref:u.isRefable(r)?e.ref:null})):null)}))},s.prototype.receiveDragDropManager=function(e){if(void 0===this.manager){this.manager=e,f("object"==typeof e,"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",h,h);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}},s.prototype.getCurrentState=function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)},s.displayName="DragLayer("+h+")",s.DecoratedComponent=n,s}(a.Component);return d(m,n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(278),i=n(541),o=n(542),a=n(1063),s=n(544),l=n(545),u=n(548),c=n(169),d=n(38);t.default=function(e,t,n,f){void 0===f&&(f={}),r.default("DragSource","type, spec, collect[, options]",e,t,n,f);var p=e;"function"!=typeof e&&(d(u.default(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),p=function(){return e}),d(c.isPlainObject(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var h=a.default(t);return d("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),d(c.isPlainObject(f),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return i.default({containerDisplayName:"DragSource",createHandler:h,registerHandler:o.default,createConnector:function(e){return new l.default(e)},createMonitor:function(e){return new s.default(e)},DecoratedComponent:e,getType:p,collect:n,options:f})}}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(1060)),r(n(1061)),r(n(1062))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(169),i=function(){function e(e){this.isDisposed=!1,this.action=r.isFunction(e)?e:r.noop}return e.isDisposable=function(e){return e&&r.isFunction(e.dispose)},e._fixup=function(t){return e.isDisposable(t)?t:e.empty},e.create=function(t){return new e(t)},e.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)},e.empty={dispose:r.noop},e}();t.Disposable=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.isDisposed=!1}return e.prototype.getDisposable=function(){return this.current},e.prototype.setDisposable=function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()},e.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}},e}();t.SerialDisposable=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isDisposed=!1,this.disposables=e}return e.prototype.add=function(e){this.isDisposed?e.dispose():this.disposables.push(e)},e.prototype.remove=function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t},e.prototype.clear=function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(n=0;n<e;n++)t[n].dispose()}},e.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(n=0;n<e;n++)t[n].dispose()}},e}();t.CompositeDisposable=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(543),i=(n(169),n(38)),o=["canDrag","beginDrag","isDragging","endDrag"],a=["beginDrag"],s=function(){function e(e,t,n){var r=this;this.spec=e,this.monitor=t,this.ref=n,this.props=null,this.beginDrag=function(){if(r.props)return r.spec.beginDrag(r.props,r.monitor,r.ref.current)}}return e.prototype.receiveProps=function(e){this.props=e},e.prototype.canDrag=function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))},e.prototype.isDragging=function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())},e.prototype.endDrag=function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,r.getDecoratedComponent(this.ref))},e}();t.default=function(e){return Object.keys(e).forEach((function(t){i(o.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',o.join(", "),t),i("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),a.forEach((function(t){i("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,n){return new s(e,t,n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(38);function o(e,t){"function"==typeof e?e(t):e.current=t}t.default=function(e,t){var n=e.ref;return i("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?r.cloneElement(e,{ref:function(e){o(t,e),n&&o(n,e)}}):r.cloneElement(e,{ref:t})}},function(e,t,n){"use strict";String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(278),i=n(541),o=n(549),a=n(1067),s=n(548),l=n(550),u=n(551),c=n(169),d=n(38);t.default=function(e,t,n,f){void 0===f&&(f={}),r.default("DropTarget","type, spec, collect[, options]",e,t,n,f);var p=e;"function"!=typeof e&&(d(s.default(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),p=function(){return e}),d(c.isPlainObject(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var h=a.default(t);return d("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),d(c.isPlainObject(f),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return i.default({containerDisplayName:"DropTarget",createHandler:h,registerHandler:o.default,createMonitor:function(e){return new l.default(e)},createConnector:function(e){return new u.default(e)},DecoratedComponent:e,getType:p,collect:n,options:f})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(543),i=(n(169),n(38)),o=["canDrop","hover","drop"],a=function(){function e(e,t,n){this.spec=e,this.monitor=t,this.ref=n,this.props=null}return e.prototype.receiveProps=function(e){this.props=e},e.prototype.receiveMonitor=function(e){this.monitor=e},e.prototype.canDrop=function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)},e.prototype.hover=function(){this.spec.hover&&this.spec.hover(this.props,this.monitor,r.getDecoratedComponent(this.ref))},e.prototype.drop=function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)},e}();t.default=function(e){return Object.keys(e).forEach((function(t){i(o.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',o.join(", "),t),i("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,n){return new a(e,t,n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1).memo((function(e){var t=e.connect,n=e.src;if("undefined"!=typeof Image){var r=new Image;r.src=n,r.onload=function(){return t(r)}}return null}));r.displayName="DragPreviewImage",t.default=r},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(1070)),r(n(1072)),r(n(1074))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(552),i=n(1071),o=n(1),a=n(38);t.useDrag=function(e){var t=o.useRef(e);t.current=e,a(null!=e.item,"item must be defined"),a(null!=e.item.type,"item type must be defined");var n=i.useDragSourceMonitor(),s=n[0],l=n[1];i.useDragHandler(t,s,l);var u=r.useMonitorOutput(s,t.current.collect||function(){return{}},(function(){return l.reconnect()})),c=o.useMemo((function(){return l.hooks.dragSource()}),[l]),d=o.useMemo((function(){return l.hooks.dragPreview()}),[l]);return o.useEffect((function(){l.dragSourceOptions=t.current.options||null,l.reconnect()}),[l]),o.useEffect((function(){l.dragPreviewOptions=t.current.previewOptions||null,l.reconnect()}),[l]),[u,c,d]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(542),o=n(369),a=n(544),s=n(545),l=n(38);t.useDragSourceMonitor=function(){var e=o.useDragDropManager();return[r.useMemo((function(){return new a.default(e)}),[e]),r.useMemo((function(){return new s.default(e.getBackend())}),[e])]},t.useDragHandler=function(e,t,n){var a=o.useDragDropManager(),s=r.useMemo((function(){return{beginDrag:function(){var n=e.current,r=n.begin,i=n.item;if(r){var o=r(t);return l(null==o||"object"==typeof o,"dragSpec.begin() must either return an object, undefined, or null"),o||i||{}}return i||{}},canDrag:function(){return"boolean"==typeof e.current.canDrag?e.current.canDrag:"function"!=typeof e.current.canDrag||e.current.canDrag(t)},isDragging:function(n,r){var i=e.current.isDragging;return i?i(t):r===n.getSourceId()},endDrag:function(){var r=e.current.end;r&&r(t.getItem(),t),n.reconnect()}}}),[]);r.useEffect((function(){var r=i.default(e.current.item.type,s,a),o=r[0],l=r[1];return t.receiveHandlerId(o),n.receiveHandlerId(o),l}),[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(552),i=n(1073),o=n(1),a=n(38);t.useDrop=function(e){var t=o.useRef(e);t.current=e,a(null!=e.accept,"accept must be defined");var n=i.useDropTargetMonitor(),s=n[0],l=n[1];i.useDropHandler(t,s,l);var u=r.useMonitorOutput(s,t.current.collect||function(){return{}},(function(){return l.reconnect()})),c=o.useMemo((function(){return l.hooks.dropTarget()}),[l]);return o.useEffect((function(){l.dropTargetOptions=e.options||null,l.reconnect()}),[e.options]),[u,c]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(549),o=n(369),a=n(551),s=n(550);t.useDropTargetMonitor=function(){var e=o.useDragDropManager();return[r.useMemo((function(){return new s.default(e)}),[e]),r.useMemo((function(){return new a.default(e.getBackend())}),[e])]},t.useDropHandler=function(e,t,n){var a=o.useDragDropManager(),s=r.useMemo((function(){return{canDrop:function(){var n=e.current.canDrop;return!n||n(t.getItem(),t)},hover:function(){var n=e.current.hover;n&&n(t.getItem(),t)},drop:function(){var n=e.current.drop;if(n)return n(t.getItem(),t)}}}),[t]);r.useEffect((function(){var r=i.default(e.current.accept,s,a),o=r[0],l=r[1];return t.receiveHandlerId(o),n.receiveHandlerId(o),l}),[t,n])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(369),o=n(553);t.useDragLayer=function(e){var t=i.useDragDropManager().getMonitor(),n=o.useCollector(t,e),a=n[0],s=n[1];return r.useEffect((function(){return t.subscribeToOffsetChange(s)})),r.useEffect((function(){return t.subscribeToStateChange(s)})),a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ErrorBoundary=void 0;var r=h(n(18)),i=h(n(1076)),o=h(n(1)),a=h(n(2)),s=h(n(24)),l=n(48),u=h(n(329)),c=h(n(1082)),d=n(37),f=n(16),p=n(11);function h(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}const g="https://github.com/netlify/netlify-cms/issues/new?",v=({title:e,config:t})=>{try{const n=(({config:e})=>{let t="";t="netlify-cms@2.10.56";return(({version:e,provider:t,browser:n,config:r})=>`\n**Describe the bug**\n\n**To Reproduce**\n\n**Expected behavior**\n\n**Screenshots**\n\n**Applicable Versions:**\n - Netlify CMS version: \`${e}\`\n - Git provider: \`${t}\`\n - Browser version: \`${n}\`\n\n**CMS configuration**\n\`\`\`\n${r}\n\`\`\`\n\n**Additional context**\n`)({version:t,provider:e.getIn(["backend","name"]),browser:navigator.userAgent,config:u.default.stringify(e.toJS())})})({config:t}),r=new URLSearchParams;return r.append("title",(0,i.default)(e,{length:100})),r.append("body",(0,i.default)(n,{length:4e3,omission:"\n..."})),r.append("labels","type: bug"),`${g}${r.toString()}`}catch(e){return console.log(e),g+"template=bug_report.md"}},y=(0,r.default)("div",{target:"e177kfaq0",label:"ErrorBoundaryContainer"})("padding:40px;h1{font-size:28px;color:",f.colors.text,";}h2{font-size:20px;}strong{color:",f.colors.textLead,";font-weight:500;}hr{width:200px;margin:30px 0;border:0;height:1px;background-color:",f.colors.text,";}a{color:",f.colors.active,";}"),b=(0,r.default)("span",{target:"e177kfaq1",label:"PrivacyWarning"})("color:",f.colors.text,";"),_=(0,r.default)("button",{target:"e177kfaq2",label:"CopyButton"})(f.buttons.button,";",f.buttons.default,";",f.buttons.gray,";display:block;margin:12px 0;"),w=({entry:e,t:t})=>(console.log(e),(0,p.jsx)(o.default.Fragment,null,(0,p.jsx)("hr",null),(0,p.jsx)("h2",null,t("ui.errorBoundary.recoveredEntry.heading")),(0,p.jsx)("strong",null,t("ui.errorBoundary.recoveredEntry.warning")),(0,p.jsx)(_,{onClick:()=>(0,c.default)(e)},t("ui.errorBoundary.recoveredEntry.copyButtonLabel")),(0,p.jsx)("pre",null,(0,p.jsx)("code",null,e))));class x extends o.default.Component{constructor(...e){super(...e),m(this,"state",{hasError:!1,errorMessage:"",backup:""})}static getDerivedStateFromError(e){return console.error(e),{hasError:!0,errorMessage:e.toString()}}shouldComponentUpdate(e,t){return!this.props.showBackup||(this.state.errorMessage!==t.errorMessage||this.state.backup!==t.backup)}async componentDidUpdate(){if(this.props.showBackup){const e=await d.localForage.getItem("backup");e&&console.log(e),this.setState({backup:e})}}render(){const{hasError:e,errorMessage:t,backup:n}=this.state,{showBackup:r,t:i}=this.props;return e?(0,p.jsx)(y,null,(0,p.jsx)("h1",null,i("ui.errorBoundary.title")),(0,p.jsx)("p",null,(0,p.jsx)("span",null,i("ui.errorBoundary.details")),(0,p.jsx)("a",{href:v({title:t,config:this.props.config}),target:"_blank",rel:"noopener noreferrer","data-testid":"issue-url"},i("ui.errorBoundary.reportIt"))),(0,p.jsx)("p",null,i("ui.errorBoundary.privacyWarning").split("\n").map((e,t)=>(0,p.jsx)(o.default.Fragment,null,(0,p.jsx)(b,{key:t},e),(0,p.jsx)("br",null)))),(0,p.jsx)("hr",null),(0,p.jsx)("h2",null,i("ui.errorBoundary.detailsHeading")),(0,p.jsx)("p",null,t),n&&r&&(0,p.jsx)(w,{entry:n,t:i})):this.props.children}}t.ErrorBoundary=x,m(x,"propTypes",{children:a.default.node,t:a.default.func.isRequired,config:s.default.map.isRequired});var k=(0,l.translate)()(x);t.default=k},function(e,t,n){var r=n(155),i=n(253),o=n(324),a=n(76),s=n(1077),l=n(1079),u=n(254),c=n(110),d=n(109),f=/\w*$/;e.exports=function(e,t){var n=30,p="...";if(a(t)){var h="separator"in t?t.separator:h;n="length"in t?c(t.length):n,p="omission"in t?r(t.omission):p}var m=(e=d(e)).length;if(o(e)){var g=u(e);m=g.length}if(n>=m)return e;var v=n-l(p);if(v<1)return p;var y=g?i(g,0,v).join(""):e.slice(0,v);if(void 0===h)return y+p;if(g&&(v+=y.length-v),s(h)){if(e.slice(v).search(h)){var b,_=y;for(h.global||(h=RegExp(h.source,d(f.exec(h))+"g")),h.lastIndex=0;b=h.exec(_);)var w=b.index;y=y.slice(0,void 0===w?v:w)}}else if(e.indexOf(r(h),v)!=v){var x=y.lastIndexOf(h);x>-1&&(y=y.slice(0,x))}return y+p}},function(e,t,n){var r=n(1078),i=n(156),o=n(250),a=o&&o.isRegExp,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(101),i=n(69);e.exports=function(e){return i(e)&&"[object RegExp]"==r(e)}},function(e,t,n){var r=n(1080),i=n(324),o=n(1081);e.exports=function(e){return i(e)?o(e):r(e)}},function(e,t,n){var r=n(447)("length");e.exports=r},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),c="(?:"+[o+r+"?",r,a,s,n].join("|")+")",d=RegExp(i+"(?="+i+")|"+c+u,"g");e.exports=function(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}},function(e,t,n){"use strict";const r=(e,{target:t=document.body}={})=>{const n=document.createElement("textarea"),r=document.activeElement;n.value=e,n.setAttribute("readonly",""),n.style.contain="strict",n.style.position="absolute",n.style.left="-9999px",n.style.fontSize="12pt";const i=document.getSelection();let o=!1;i.rangeCount>0&&(o=i.getRangeAt(0)),t.append(n),n.select(),n.selectionStart=0,n.selectionEnd=e.length;let a=!1;try{a=document.execCommand("copy")}catch(e){}return n.remove(),o&&(i.removeAllRanges(),i.addRange(o)),r&&r.focus(),a};e.exports=r,e.exports.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileUploadButton=void 0;o(n(1));var r=o(n(2)),i=n(11);function o(e){return e&&e.__esModule?e:{default:e}}const a=({label:e,imagesOnly:t,onChange:n,disabled:r,className:o})=>(0,i.jsx)("label",{className:"nc-fileUploadButton "+(o||"")},(0,i.jsx)("span",null,e),(0,i.jsx)("input",{type:"file",accept:t?"image/*":"*/*",onChange:n,disabled:r}));t.FileUploadButton=a,a.propTypes={className:r.default.string,label:r.default.string.isRequired,imagesOnly:r.default.bool,onChange:r.default.func.isRequired,disabled:r.default.bool}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Modal=void 0;var r=l(n(1)),i=l(n(2)),o=n(11),a=l(n(1085)),s=n(16);function l(e){return e&&e.__esModule?e:{default:e}}var u={name:"1o9c9d2-ReactModalGlobalStyles",styles:".ReactModal__Body--open{overflow:hidden;};label:ReactModalGlobalStyles;"};const c=()=>(0,o.jsx)(o.Global,{styles:u}),d=`\n ${s.shadows.dropDeep};\n background-color: #fff;\n border-radius: ${s.lengths.borderRadius};\n height: 80%;\n text-align: center;\n max-width: 2200px;\n padding: 20px;\n\n &:focus {\n outline: none;\n }\n `,f=`\n z-index: ${s.zIndex.zIndex99999};\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n opacity: 0;\n background-color: rgba(0, 0, 0, 0);\n transition: background-color ${s.transitions.main}, opacity ${s.transitions.main};\n `,p="\n background-color: rgba(0, 0, 0, 0.6);\n opacity: 1;\n ",h="\n background-color: rgba(0, 0, 0, 0);\n opacity: 0;\n ";class m extends r.default.Component{componentDidMount(){a.default.setAppElement("#nc-root")}render(){const{isOpen:e,children:t,className:n,onClose:i}=this.props;return(0,o.jsx)(r.default.Fragment,null,(0,o.jsx)(c,null),(0,o.jsx)(o.ClassNames,null,({css:r,cx:s})=>(0,o.jsx)(a.default,{isOpen:e,onRequestClose:i,closeTimeoutMS:300,className:{base:s(r`
+ ${d};
+ `,n),afterOpen:"",beforeClose:""},overlayClassName:{base:r`
+ ${f};
+ `,afterOpen:r`
+ ${p};
+ `,beforeClose:r`
+ ${h};
+ `}},t)))}}t.Modal=m,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(m,"propTypes",{children:i.default.node.isRequired,isOpen:i.default.bool.isRequired,className:i.default.string,onClose:i.default.func.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(1086),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1),a=h(o),s=h(n(49)),l=h(n(2)),u=h(n(1087)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(555)),d=n(370),f=h(d),p=n(235);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 v=t.portalClassName="ReactModalPortal",y=t.bodyOpenClassName="ReactModal__Body--open",b=void 0!==s.default.createPortal,_=function(){return b?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function w(e){return e()}var x=function(e){function t(){var e,n,i;m(this,t);for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return n=i=g(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),i.removePortal=function(){!b&&s.default.unmountComponentAtNode(i.node);var e=w(i.props.parentSelector);e?e.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(e){i.portal=e},i.renderPortal=function(e){var n=_()(i,a.default.createElement(u.default,r({defaultStyles:t.defaultStyles},e)),i.node);i.portalRef(n)},g(i,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:"componentDidMount",value:function(){d.canUseDOM&&(b||(this.node=document.createElement("div")),this.node.className=this.props.portalClassName,w(this.props.parentSelector).appendChild(this.node),!b&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:w(e.parentSelector),nextParent:w(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var r=this.props,i=r.isOpen,o=r.portalClassName;e.portalClassName!==o&&(this.node.className=o);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||i)&&!b&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&b?(!this.node&&b&&(this.node=document.createElement("div")),_()(a.default.createElement(u.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(o.Component);x.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.instanceOf(f.default),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func},x.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:y,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,parentSelector:function(){return document.body}},x.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(x),t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(1),s=g(a),l=g(n(2)),u=m(n(1088)),c=g(n(1089)),d=m(n(555)),f=m(n(1091)),p=g(n(370)),h=g(n(556));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}n(1092);var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,b=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.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,i=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&f.remove(document.body,o),i&&f.remove(document.getElementsByTagName("html")[0],i),r&&y>0&&0===(y-=1)&&d.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(u.returnFocus(),u.teardownScopedFocus()):u.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(u.setupScopedFocus(n.node),u.markForFocusLater()),n.setState({isOpen:!0},(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus()},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":i(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,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),o(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName;i&&f.add(document.body,i),r&&f.add(document.getElementsByTagName("html")[0],r),n&&(y+=1,d.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,i=e.overlayClassName,o=e.defaultStyles,a=n?{}:o.content,l=i?{}:o.overlay;return this.shouldBeClosed()?null:s.default.createElement("div",{ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},s.default.createElement("div",r({id:t,ref:this.setContentRef,style:r({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",this.props.aria||{}),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),this.props.children))}}]),t}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:l.default.bool.isRequired,defaultStyles:l.default.shape({content:l.default.object,overlay:l.default.object}),style:l.default.shape({content:l.default.object,overlay:l.default.object}),className:l.default.oneOfType([l.default.string,l.default.object]),overlayClassName:l.default.oneOfType([l.default.string,l.default.object]),bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,ariaHideApp:l.default.bool,appElement:l.default.instanceOf(p.default),onAfterOpen:l.default.func,onAfterClose:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,role:l.default.string,contentLabel:l.default.string,aria:l.default.object,data:l.default.object,children:l.default.node,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,testId:l.default.string},t.default=b,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return void(0!==a.length&&(e=a.pop()).focus())}catch(t){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var r,i=n(554),o=(r=i)&&r.__esModule?r:{default:r};var a=[],s=null,l=!1;function u(){l=!0}function c(){if(l){if(l=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,o.default)(s)[0]||s).focus()}),0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,i=t.shiftKey,a=n[0],s=n[n.length-1];if(e===document.activeElement){if(!i)return;r=s}s!==document.activeElement||i||(r=a);a===document.activeElement&&i&&(r=s);if(r)return t.preventDefault(),void r.focus();var l=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==l||"Chrome"==l[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var u=n.indexOf(document.activeElement);u>-1&&(u+=i?-1:1);if(void 0===(r=n[u]))return t.preventDefault(),void(r=i?s:a).focus();t.preventDefault(),r.focus()};var r,i=n(554),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){var r;
+/*!
+ Copyright (c) 2015 Jed Watson.
+ Based on code that is Copyright 2013-2015, Facebook, Inc.
+ All rights reserved.
+*/!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dumpClassLists=function(){0};var r={},i={};t.add=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?r:i,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(o,e),n.add(e)}));var n,o},t.remove=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?r:i,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(o,e),0===o[e]&&n.remove(e)}));var n,o}},function(e,t,n){"use strict";var r,i=n(556),o=(r=i)&&r.__esModule?r:{default:r};var a=void 0,s=void 0,l=[];function u(){0!==l.length&&l[l.length-1].focusContent()}o.default.subscribe((function(e,t){a&&s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",u),(s=a.cloneNode()).addEventListener("focus",u)),(l=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(173)),i=(u(n(1)),u(n(2))),o=n(11),a=n(48),s=u(n(1094)),l=n(16);function u(e){return e&&e.__esModule?e:{default:e}}const c=()=>(0,o.jsx)(o.Global,{styles:(0,o.css)(s.default,";.notif__container{z-index:",l.zIndex.zIndex10000,";white-space:pre-wrap;};label:ReduxNotificationsGlobalStyles;")}),d={toast:(0,o.css)(l.shadows.drop,";background-color:",l.colors.background,";color:",l.colors.textLight,";border-radius:",l.lengths.borderRadius,";margin:10px;padding:20px;overflow:hidden;;label:toast;"),info:(0,o.css)("background-color:",l.colors.infoBackground,";color:",l.colors.infoText,";;label:info;"),success:(0,o.css)("background-color:",l.colors.successBackground,";color:",l.colors.successText,";;label:success;"),warning:(0,o.css)("background-color:",l.colors.warnBackground,";color:",l.colors.warnText,";;label:warning;"),danger:(0,o.css)("background-color:",l.colors.errorBackground,";color:",l.colors.errorText,";;label:danger;")},f=({kind:e,message:t,t:n})=>(0,o.jsx)("div",{css:(0,r.default)([d.toast,d[e]],";label:Toast;")},(0,o.jsx)(c,null),n(t.key,{details:t.details}));f.propTypes={kind:i.default.oneOf(["info","success","warning","danger"]).isRequired,message:i.default.object,t:i.default.func.isRequired};var p=(0,a.translate)()(f);t.default=p},function(e,t,n){var r=n(1095);e.exports="string"==typeof r?r:r.toString()},function(e,t,n){(t=n(229)(!1)).push([e.i,".notif-transition-enter {\n opacity : 0.01;\n transition : opacity .5s ease-in;\n}\n\n.notif-transition-enter-active {\n opacity : 1;\n}\n\n.notif-transition-leave {\n opacity : 1;\n transition : opacity .5s ease-in;\n}\n\n.notif-transition-leave-active {\n opacity : 0.01;\n}\n\n.notif {\n position : relative;\n font : 1rem normal Helvetica, sans-serif;\n overflow : hidden;\n border-radius : 4px;\n margin-bottom : 2px;\n max-height : 400px;\n box-sizing : border-box;\n box-shadow : 0 0 1px 1px rgba(10, 10, 11, .125);\n padding : 0.5rem;\n color : #fff;\n}\n\n.notif--success {\n background-color: #64ce83;\n}\n\n.notif--info {\n background-color: #3ea2ff;\n}\n\n.notif--warning {\n background-color: #ff7f48;\n}\n\n.notif--danger {\n background-color: #e74c3c;\n}\n\n.notif__container {\n position : fixed;\n top : 10px;\n right : 0;\n left : 0;\n z-index : 1000;\n width : 80%;\n max-width : 400px;\n margin : auto;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=A(n(18)),i=A(n(2)),o=A(n(1)),a=n(1097),s=n(48),l=A(n(24)),u=n(61),c=n(118),d=n(133),f=A(n(1099)),p=n(160),h=n(208),m=n(119),g=n(371),v=n(141),y=A(n(1101)),b=n(192),_=n(16),w=A(n(152)),x=n(103),k=A(n(1111)),E=A(n(1124)),S=A(n(1127)),O=A(n(1144)),T=A(n(1145)),C=n(11);function A(e){return e&&e.__esModule?e:{default:e}}function P(){return(P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function R(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}f.default.config({barColors:{0:_.colors.active,"1.0":_.colors.active},shadowBlur:0,barThickness:2});const M=(0,r.default)("div",{target:"e1ghgnen0",label:"AppMainContainer"})({name:"123tny7",styles:"min-width:800px;max-width:1440px;margin:0 auto;"}),I=(0,r.default)("div",{target:"e1ghgnen1",label:"ErrorContainer"})({name:"zwiamn",styles:"margin:20px;"}),j=(0,r.default)("pre",{target:"e1ghgnen2",label:"ErrorCodeBlock"})({name:"1v6y79z",styles:"margin-left:20px;font-size:15px;line-height:1.5;"}),D=e=>{const t=e.filter(e=>!0!==e.get("hide")).first();if(t)return"/collections/"+t.get("name");throw new Error("Could not find a non hidden collection")},L=e=>{let{collections:t,render:n}=e,r=R(e,["collections","render"]);const i=D(t);return(0,C.jsx)(c.Route,P({},r,{render:e=>t.get(e.match.params.name)?n(e):(0,C.jsx)(c.Redirect,{to:i})}))};class N extends o.default.Component{configError(e){const t=this.props.t;return(0,C.jsx)(I,null,(0,C.jsx)("h1",null,t("app.app.errorHeader")),(0,C.jsx)("div",null,(0,C.jsx)("strong",null,t("app.app.configErrors"),":"),(0,C.jsx)(j,null,e.get("error")),(0,C.jsx)("span",null,t("app.app.checkConfigYml"))))}componentDidMount(){const{loadConfig:e}=this.props;e()}handleLogin(e){this.props.loginUser(e)}authenticating(){const{auth:e,t:t}=this.props,n=(0,m.currentBackend)(this.props.config);return null==n?(0,C.jsx)("div",null,(0,C.jsx)("h1",null,t("app.app.waitingBackend"))):(0,C.jsx)("div",null,(0,C.jsx)(d.Notifs,{CustomComponent:b.Toast}),o.default.createElement(n.authComponent(),{onLogin:this.handleLogin.bind(this),error:e&&e.get("error"),isFetching:e&&e.get("isFetching"),inProgress:e&&e.get("isFetching")||!1,siteId:this.props.config.getIn(["backend","site_domain"]),base_url:this.props.config.getIn(["backend","base_url"],null),authEndpoint:this.props.config.getIn(["backend","auth_endpoint"]),config:this.props.config.toJS(),clearHash:()=>w.default.replace("/"),t:t}))}handleLinkClick(e,t,...n){e.preventDefault(),t(...n)}render(){const{user:e,config:t,collections:n,logoutUser:r,isFetching:i,publishMode:a,useMediaLibrary:s,openMediaLibrary:l,t:u,showMediaButton:p}=this.props;if(null===t)return null;if(t.get("error"))return this.configError(t);if(t.get("isFetching"))return(0,C.jsx)(_.Loader,{active:!0},u("app.app.loadingConfig"));if(null==e)return this.authenticating(u);const h=D(n),m=a===x.EDITORIAL_WORKFLOW;return(0,C.jsx)(o.default.Fragment,null,(0,C.jsx)(d.Notifs,{CustomComponent:b.Toast}),(0,C.jsx)(T.default,{user:e,collections:n,onCreateEntryClick:g.createNewEntry,onLogoutClick:r,openMediaLibrary:l,hasWorkflow:m,displayUrl:t.get("display_url"),isTestRepo:"test-repo"===t.getIn(["backend","name"]),showMediaButton:p}),(0,C.jsx)(M,null,i&&(0,C.jsx)(f.default,null),(0,C.jsx)(c.Switch,null,(0,C.jsx)(c.Redirect,{exact:!0,from:"/",to:h}),(0,C.jsx)(c.Redirect,{exact:!0,from:"/search/",to:h}),(0,C.jsx)(L,{exact:!0,collections:n,path:"/collections/:name/search/",render:({match:e})=>(0,C.jsx)(c.Redirect,{to:"/collections/"+e.params.name})}),(0,C.jsx)(c.Redirect,{from:"/error=access_denied&error_description=Signups+not+allowed+for+this+instance",to:h}),m?(0,C.jsx)(c.Route,{path:"/workflow",component:E.default}):null,(0,C.jsx)(L,{exact:!0,collections:n,path:"/collections/:name",render:e=>(0,C.jsx)(k.default,e)}),(0,C.jsx)(L,{path:"/collections/:name/new",collections:n,render:e=>(0,C.jsx)(S.default,P({},e,{newRecord:!0}))}),(0,C.jsx)(L,{path:"/collections/:name/entries/*",collections:n,render:e=>(0,C.jsx)(S.default,e)}),(0,C.jsx)(L,{path:"/collections/:name/search/:searchTerm",collections:n,render:e=>(0,C.jsx)(k.default,P({},e,{isSearchResults:!0,isSingleSearchResult:!0}))}),(0,C.jsx)(L,{collections:n,path:"/collections/:name/filter/:filterTerm*",render:e=>(0,C.jsx)(k.default,e)}),(0,C.jsx)(c.Route,{path:"/search/:searchTerm",render:e=>(0,C.jsx)(k.default,P({},e,{isSearchResults:!0}))}),(0,C.jsx)(L,{path:"/edit/:name/:entryName",collections:n,render:({match:e})=>{const{name:t,entryName:n}=e.params;return(0,C.jsx)(c.Redirect,{to:`/collections/${t}/entries/${n}`})}}),(0,C.jsx)(c.Route,{component:O.default})),s?(0,C.jsx)(y.default,null):null))}}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(N,"propTypes",{auth:l.default.map,config:l.default.map,collections:l.default.orderedMap,loadConfig:i.default.func.isRequired,loginUser:i.default.func.isRequired,logoutUser:i.default.func.isRequired,user:l.default.map,isFetching:i.default.bool.isRequired,publishMode:i.default.oneOf([x.SIMPLE,x.EDITORIAL_WORKFLOW]),siteId:i.default.string,useMediaLibrary:i.default.bool,openMediaLibrary:i.default.func.isRequired,showMediaButton:i.default.bool,t:i.default.func.isRequired});const F={openMediaLibrary:v.openMediaLibrary,loadConfig:p.loadConfig,loginUser:h.loginUser,logoutUser:h.logoutUser};var B=(0,a.hot)(e)((0,u.connect)((function(e){const{auth:t,config:n,collections:r,globalUI:i,mediaLibrary:o}=e,a=t&&t.get("user"),s=i.get("isFetching"),l=n&&n.get("publish_mode"),u=!o.get("externalLibrary");return{auth:t,config:n,collections:r,user:a,isFetching:s,publishMode:l,showMediaButton:o.get("showMediaButton"),useMediaLibrary:u}}),F)((0,s.translate)()(N)));t.default=B}).call(this,n(135)(e))},function(e,t,n){"use strict";e.exports=n(1098)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(1))&&"object"==typeof r&&"default"in r?r.default:r;function o(e){return o.warnAboutHMRDisabled&&(o.warnAboutHMRDisabled=!0,console.error("React-Hot-Loader: misconfiguration detected, using production version in non-production environment."),console.error("React-Hot-Loader: Hot Module Replacement is not enabled.")),i.Children.only(e.children)}o.warnAboutHMRDisabled=!1;var a=function e(){return e.shouldWrapWithAppContainer?function(e){return function(t){return i.createElement(o,null,i.createElement(e,t))}}:function(e){return e}};a.shouldWrapWithAppContainer=!1;t.AppContainer=o,t.hot=a,t.areComponentsEqual=function(e,t){return e===t},t.setConfig=function(){},t.cold=function(e){return e},t.configureComponent=function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1);(r=o)&&r.__esModule;function a(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 l="undefined"==typeof window?{show:function(){},hide:function(){},config:function(){}}:n(1100),u=0,c=function(e){return e.topbar||l},d=function(e){function t(){return a(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),i(t,[{key:"componentWillMount",value:function(){0===u&&c(this.props).show(),u++}},{key:"componentWillUnmount",value:function(){0===--u&&c(this.props).hide()}},{key:"render",value:function(){return null}}]),t}(o.Component);d.config=l.config,d.propTypes={topbar:n(2).any},t.default=d},function(e,t,n){var r;
+/*! topbar 0.1.4, 2020-04-27
+ * http://buunguyen.github.io/topbar
+ * Copyright (c) 2019 Buu Nguyen
+ * Licensed under the MIT License */(function(i,o){"use strict";!function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!i.requestAnimationFrame;++n)i.requestAnimationFrame=i[t[n]+"RequestAnimationFrame"],i.cancelAnimationFrame=i[t[n]+"CancelAnimationFrame"]||i[t[n]+"CancelRequestAnimationFrame"];i.requestAnimationFrame||(i.requestAnimationFrame=function(t,n){var r=(new Date).getTime(),o=Math.max(0,16-(r-e)),a=i.setTimeout((function(){t(r+o)}),o);return e=r+o,a}),i.cancelAnimationFrame||(i.cancelAnimationFrame=function(e){clearTimeout(e)})}();var a,s,l,u,c,d={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},f=function(){a.width=i.innerWidth,a.height=5*d.barThickness;var e=a.getContext("2d");e.shadowBlur=d.shadowBlur,e.shadowColor=d.shadowColor;var t=e.createLinearGradient(0,0,a.width,0);for(var n in d.barColors)t.addColorStop(n,d.barColors[n]);e.lineWidth=d.barThickness,e.beginPath(),e.moveTo(0,d.barThickness/2),e.lineTo(Math.ceil(u*a.width),d.barThickness/2),e.strokeStyle=t,e.stroke()},p={config:function(e){for(var t in e)d.hasOwnProperty(t)&&(d[t]=e[t])},show:function(){var e,t,n,r;c||(c=!0,null!==l&&i.cancelAnimationFrame(l),a||((r=(a=o.createElement("canvas")).style).position="fixed",r.top=r.left=r.right=r.margin=r.padding=0,r.zIndex=100001,r.display="none",d.className&&a.classList.add(d.className),o.body.appendChild(a),t="resize",n=f,(e=i).addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n),a.style.opacity=1,a.style.display="block",p.progress(0),d.autoRun&&function e(){s=i.requestAnimationFrame(e),p.progress("+"+.05*Math.pow(1-Math.sqrt(u),2))}())},progress:function(e){return void 0===e||("string"==typeof e&&(e=(e.indexOf("+")>=0||e.indexOf("-")>=0?u:0)+parseFloat(e)),u=e>1?1:e,f()),u},hide:function(){c&&(c=!1,null!=s&&(i.cancelAnimationFrame(s),s=null),function e(){if(p.progress("+.1")>=1&&(a.style.opacity-=.05,a.style.opacity<=.05))return a.style.display="none",void(l=null);l=i.requestAnimationFrame(e)}())}};"object"==typeof e.exports?e.exports=p:void 0===(r=function(){return p}.call(t,n,t,e))||(e.exports=r)}).call(this,window,document)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(161)),i=v(n(488)),o=v(n(1)),a=v(n(2)),s=v(n(24)),l=n(61),u=n(48),c=v(n(460)),d=n(37),f=n(141),p=n(270),h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=g();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(1102)),m=n(11);function g(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return g=function(){return e},e}function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const w=["jpg","jpeg","webp","gif","png","bmp","tiff","svg"],x=[...w];class k extends o.default.Component{constructor(...e){super(...e),_(this,"state",{selectedFile:{},query:""}),_(this,"loadDisplayURL",e=>{const{loadMediaDisplayURL:t}=this.props;t(e)}),_(this,"filterImages",e=>e.filter(e=>{const t=(0,d.fileExtension)(e.name).toLowerCase();return x.includes(t)})),_(this,"toTableData",e=>{const t=e&&e.map(({key:e,name:t,id:n,size:r,path:i,queryOrder:o,displayURL:a,draft:s})=>{const l=(0,d.fileExtension)(t).toLowerCase();return{key:e,id:n,name:t,path:i,type:l.toUpperCase(),size:r,queryOrder:o,displayURL:a,draft:s,isImage:x.includes(l),isViewableImage:w.includes(l)}}),{sortFields:n}=this.state,o=(0,r.default)(n,"fieldName").concat("queryOrder"),a=(0,r.default)(n,"direction").concat("asc");return(0,i.default)(t,o,a)}),_(this,"handleClose",()=>{this.props.closeMediaLibrary()}),_(this,"handleAssetClick",e=>{const t=this.state.selectedFile.key===e.key?{}:e;this.setState({selectedFile:t})}),_(this,"handlePersist",async e=>{e.persist(),e.stopPropagation(),e.preventDefault();const{persistMedia:t,privateUpload:n,config:r,t:i,field:o}=this.props,{files:a}=e.dataTransfer||e.target,s=[...a][0],l=r.get("max_file_size");l&&s.size>l?window.alert(i("mediaLibrary.mediaLibrary.fileTooLarge",{size:Math.floor(l/1e3)})):(await t(s,{privateUpload:n,field:o}),this.setState({selectedFile:this.props.files[0]}),this.scrollToTop()),e.target.value=null}),_(this,"handleInsert",()=>{const{selectedFile:e}=this.state,{path:t}=e,{insertMedia:n,field:r}=this.props;n(t,r),this.handleClose()}),_(this,"handleDelete",()=>{const{selectedFile:e}=this.state,{files:t,deleteMedia:n,privateUpload:r,t:i}=this.props;if(!window.confirm(i("mediaLibrary.mediaLibrary.onDelete")))return;n(t.find(t=>e.key===t.key),{privateUpload:r}).then(()=>{this.setState({selectedFile:{}})})}),_(this,"handleDownload",()=>{const{selectedFile:e}=this.state,{displayURLs:t}=this.props,n=t.getIn([e.id,"url"])||e.url;if(!n)return;const r=e.name,i=document.createElement("a");i.setAttribute("href",n),i.setAttribute("download",r),i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i),this.setState({selectedFile:{}})}),_(this,"handleLoadMore",()=>{const{loadMedia:e,dynamicSearchQuery:t,page:n,privateUpload:r}=this.props;e({query:t,page:n+1,privateUpload:r})}),_(this,"handleSearchKeyDown",async e=>{const{dynamicSearch:t,loadMedia:n,privateUpload:r}=this.props;"Enter"===e.key&&t&&(await n({query:this.state.query,privateUpload:r}),this.scrollToTop())}),_(this,"scrollToTop",()=>{this.scrollContainerRef.scrollTop=0}),_(this,"handleSearchChange",e=>{this.setState({query:e.target.value})}),_(this,"queryFilter",(e,t)=>{const n=e.replace(/ /g,"");return c.default.filter(n,t,{extract:e=>e.name}).map((e,n)=>b(b({},t[e.index]),{},{queryIndex:n}))})}componentDidMount(){this.props.loadMedia()}UNSAFE_componentWillReceiveProps(e){!this.props.isVisible&&e.isVisible&&this.setState({selectedFile:{},query:""})}componentDidUpdate(e){!e.isVisible&&this.props.isVisible&&e.privateUpload!==this.props.privateUpload&&this.props.loadMedia({privateUpload:this.props.privateUpload})}render(){const{isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:i,forImage:o,isLoading:a,isPersisting:s,isDeleting:l,hasNextPage:u,isPaginating:c,privateUpload:d,displayURLs:f,t:p}=this.props;return(0,m.jsx)(h.default,{isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:i,forImage:o,isLoading:a,isPersisting:s,isDeleting:l,hasNextPage:u,isPaginating:c,privateUpload:d,query:this.state.query,selectedFile:this.state.selectedFile,handleFilter:this.filterImages,handleQuery:this.queryFilter,toTableData:this.toTableData,handleClose:this.handleClose,handleSearchChange:this.handleSearchChange,handleSearchKeyDown:this.handleSearchKeyDown,handlePersist:this.handlePersist,handleDelete:this.handleDelete,handleInsert:this.handleInsert,handleDownload:this.handleDownload,setScrollContainerRef:e=>this.scrollContainerRef=e,handleAssetClick:this.handleAssetClick,handleLoadMore:this.handleLoadMore,displayURLs:f,loadDisplayURL:this.loadDisplayURL,t:p})}}_(k,"propTypes",{isVisible:a.default.bool,loadMediaDisplayURL:a.default.func,displayURLs:s.default.map,canInsert:a.default.bool,files:a.default.arrayOf(a.default.shape(h.fileShape)).isRequired,dynamicSearch:a.default.bool,dynamicSearchActive:a.default.bool,forImage:a.default.bool,isLoading:a.default.bool,isPersisting:a.default.bool,isDeleting:a.default.bool,hasNextPage:a.default.bool,isPaginating:a.default.bool,privateUpload:a.default.bool,config:s.default.map,loadMedia:a.default.func.isRequired,dynamicSearchQuery:a.default.string,page:a.default.number,persistMedia:a.default.func.isRequired,deleteMedia:a.default.func.isRequired,insertMedia:a.default.func.isRequired,closeMediaLibrary:a.default.func.isRequired,t:a.default.func.isRequired}),_(k,"defaultProps",{files:[]});const E={loadMedia:f.loadMedia,persistMedia:f.persistMedia,deleteMedia:f.deleteMedia,insertMedia:f.insertMedia,loadMediaDisplayURL:f.loadMediaDisplayURL,closeMediaLibrary:f.closeMediaLibrary};var S=(0,l.connect)(e=>{const{mediaLibrary:t}=e,n=t.get("field");return b({},{isVisible:t.get("isVisible"),canInsert:t.get("canInsert"),files:(0,p.selectMediaFiles)(e,n),displayURLs:t.get("displayURLs"),dynamicSearch:t.get("dynamicSearch"),dynamicSearchActive:t.get("dynamicSearchActive"),dynamicSearchQuery:t.get("dynamicSearchQuery"),forImage:t.get("forImage"),isLoading:t.get("isLoading"),isPersisting:t.get("isPersisting"),isDeleting:t.get("isDeleting"),privateUpload:t.get("privateUpload"),config:t.get("config"),page:t.get("page"),hasNextPage:t.get("hasNextPage"),isPaginating:t.get("isPaginating"),field:n})},E)((0,u.translate)()(k));t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.fileShape=void 0;var r=h(n(18)),i=h(n(142)),o=(h(n(1)),h(n(2))),a=n(4),s=n(48),l=n(192),u=h(n(1103)),c=h(n(1107)),d=h(n(1110)),f=n(16),p=n(11);function h(e){return e&&e.__esModule?e:{default:e}}const m=(0,r.default)(l.Modal,{target:"ep5ukwb0",label:"StyledModal"})("display:grid;grid-template-rows:120px auto;width:calc(","300px"," + 20px);background-color:",e=>e.isPrivate&&f.colors.grayDark,";@media (min-width:800px){width:calc(","300px"," * 2 + 20px);}@media (min-width:1120px){width:calc(","300px"," * 3 + 20px);}@media (min-width:1440px){width:calc(","300px"," * 4 + 20px);}@media (min-width:1760px){width:calc(","300px"," * 5 + 20px);}@media (min-width:2080px){width:calc(","300px"," * 6 + 20px);}h1{color:",e=>e.isPrivate&&f.colors.textFieldBorder,";}button:disabled,label[disabled]{background-color:",e=>e.isPrivate&&"rgba(217, 217, 217, 0.15)",";}"),g=({isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:o,forImage:a,isLoading:s,isPersisting:l,isDeleting:f,hasNextPage:h,isPaginating:g,privateUpload:v,query:y,selectedFile:b,handleFilter:_,handleQuery:w,toTableData:x,handleClose:k,handleSearchChange:E,handleSearchKeyDown:S,handlePersist:O,handleDelete:T,handleInsert:C,handleDownload:A,setScrollContainerRef:P,handleAssetClick:R,handleLoadMore:M,loadDisplayURL:I,displayURLs:j,t:D})=>{const L=a?_(n):n,N=!r&&y?w(y,L):L,F=x(N),B=n&&!!n.length,z=L&&!!L.length,U=N&&!!N.length,q=U,H=!q,W=s&&!q&&D("mediaLibrary.mediaLibraryModal.loading")||o&&D("mediaLibrary.mediaLibraryModal.noResults")||!B&&D("mediaLibrary.mediaLibraryModal.noAssetsFound")||!z&&D("mediaLibrary.mediaLibraryModal.noImagesFound")||!U&&D("mediaLibrary.mediaLibraryModal.noResults"),V=q&&!(0,i.default)(b);return(0,p.jsx)(m,{isOpen:e,onClose:k,isPrivate:v},(0,p.jsx)(u.default,{t:D,onClose:k,privateUpload:v,forImage:a,onDownload:A,onUpload:O,query:y,onSearchChange:E,onSearchKeyDown:S,searchDisabled:!o&&!z,onDelete:T,canInsert:t,onInsert:C,hasSelection:V,isPersisting:l,isDeleting:f}),H?(0,p.jsx)(d.default,{content:W,isPrivate:v}):null,(0,p.jsx)(c.default,{setScrollContainerRef:P,mediaItems:F,isSelectedFile:e=>b.key===e.key,onAssetClick:R,canLoadMore:h,onLoadMore:M,isPaginating:g,paginatingMessage:D("mediaLibrary.mediaLibraryModal.loading"),cardDraftText:D("mediaLibrary.mediaLibraryCard.draft"),cardWidth:"280px",cardHeight:"240px",cardMargin:"10px",isPrivate:v,loadDisplayURL:I,displayURLs:j}))},v={displayURL:o.default.oneOfType([o.default.string,o.default.object]).isRequired,id:o.default.string.isRequired,key:o.default.string.isRequired,name:o.default.string.isRequired,queryOrder:o.default.number,size:o.default.number,path:o.default.string.isRequired};t.fileShape=v,g.propTypes={isVisible:o.default.bool,canInsert:o.default.bool,files:o.default.arrayOf(o.default.shape(v)).isRequired,dynamicSearch:o.default.bool,dynamicSearchActive:o.default.bool,forImage:o.default.bool,isLoading:o.default.bool,isPersisting:o.default.bool,isDeleting:o.default.bool,hasNextPage:o.default.bool,isPaginating:o.default.bool,privateUpload:o.default.bool,query:o.default.string,selectedFile:o.default.oneOfType([o.default.shape(v),o.default.shape({})]),handleFilter:o.default.func.isRequired,handleQuery:o.default.func.isRequired,toTableData:o.default.func.isRequired,handleClose:o.default.func.isRequired,handleSearchChange:o.default.func.isRequired,handleSearchKeyDown:o.default.func.isRequired,handlePersist:o.default.func.isRequired,handleDelete:o.default.func.isRequired,handleInsert:o.default.func.isRequired,setScrollContainerRef:o.default.func.isRequired,handleAssetClick:o.default.func.isRequired,handleLoadMore:o.default.func.isRequired,loadDisplayURL:o.default.func.isRequired,t:o.default.func.isRequired,displayURLs:o.default.instanceOf(a.Map).isRequired};var y=(0,s.translate)()(g);t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(18)),i=(u(n(1)),u(n(2))),o=u(n(1104)),a=u(n(1105)),s=n(1106),l=n(11);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("div",{target:"ebn7k120",label:"LibraryTop"})({name:"1ab1jlb",styles:"position:relative;display:flex;flex-direction:column;"}),d=(0,r.default)("div",{target:"ebn7k121",label:"RowContainer"})({name:"gg4vpm",styles:"display:flex;justify-content:space-between;"}),f=(0,r.default)("div",{target:"ebn7k122",label:"ButtonsContainer"})({name:"6su6fj",styles:"flex-shrink:0;"}),p=({t:e,onClose:t,privateUpload:n,forImage:r,onDownload:i,onUpload:u,query:p,onSearchChange:h,onSearchKeyDown:m,searchDisabled:g,onDelete:v,canInsert:y,onInsert:b,hasSelection:_,isPersisting:w,isDeleting:x})=>{const k=w||x,E=!k,S=!k&&_,O=_,T=_,C=e(w?"mediaLibrary.mediaLibraryModal.uploading":"mediaLibrary.mediaLibraryModal.upload"),A=e(x?"mediaLibrary.mediaLibraryModal.deleting":"mediaLibrary.mediaLibraryModal.deleteSelected"),P=e("mediaLibrary.mediaLibraryModal.download"),R=e("mediaLibrary.mediaLibraryModal.chooseSelected");return(0,l.jsx)(c,null,(0,l.jsx)(d,null,(0,l.jsx)(a.default,{onClose:t,title:`${n?e("mediaLibrary.mediaLibraryModal.private"):""}${e(r?"mediaLibrary.mediaLibraryModal.images":"mediaLibrary.mediaLibraryModal.mediaAssets")}`,isPrivate:n}),(0,l.jsx)(f,null,(0,l.jsx)(s.DownloadButton,{onClick:i,disabled:!O,focused:O},P),(0,l.jsx)(s.UploadButton,{label:C,imagesOnly:r,onChange:u,disabled:!E}))),(0,l.jsx)(d,null,(0,l.jsx)(o.default,{value:p,onChange:h,onKeyDown:m,placeholder:e("mediaLibrary.mediaLibraryModal.search"),disabled:g}),(0,l.jsx)(f,null,(0,l.jsx)(s.DeleteButton,{onClick:v,disabled:!S},A),y?(0,l.jsx)(s.InsertButton,{onClick:b,disabled:!T},R):null)))};p.propTypes={t:i.default.func.isRequired,onClose:i.default.func.isRequired,privateUpload:i.default.bool,forImage:i.default.bool,onDownload:i.default.func.isRequired,onUpload:i.default.func.isRequired,query:i.default.string,onSearchChange:i.default.func.isRequired,onSearchKeyDown:i.default.func.isRequired,searchDisabled:i.default.bool.isRequired,onDelete:i.default.func.isRequired,canInsert:i.default.bool,onInsert:i.default.func.isRequired,hasSelection:i.default.bool.isRequired,isPersisting:i.default.bool,isDeleting:i.default.bool};var h=p;t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(18)),i=(s(n(1)),s(n(2))),o=n(16),a=n(11);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("div",{target:"e3b6gd60",label:"SearchContainer"})({name:"xts1j",styles:"height:37px;display:flex;align-items:center;position:relative;width:400px;"}),u=(0,r.default)("input",{target:"e3b6gd61",label:"SearchInput"})("background-color:#eff0f4;border-radius:",o.lengths.borderRadius,";font-size:14px;padding:10px 6px 10px 32px;width:100%;position:relative;z-index:",o.zIndex.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",o.colors.active,";}"),c=(0,r.default)(o.Icon,{target:"e3b6gd62",label:"SearchIcon"})("position:absolute;top:50%;left:6px;z-index:",o.zIndex.zIndex2,";transform:translate(0,-50%);"),d=({value:e,onChange:t,onKeyDown:n,placeholder:r,disabled:i})=>(0,a.jsx)(l,null,(0,a.jsx)(c,{type:"search",size:"small"}),(0,a.jsx)(u,{value:e,onChange:t,onKeyDown:n,placeholder:r,disabled:i}));d.propTypes={value:i.default.string,onChange:i.default.func.isRequired,onKeyDown:i.default.func.isRequired,placeholder:i.default.string.isRequired,disabled:i.default.bool};var f=d;t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(18)),i=(s(n(1)),s(n(2))),o=n(16),a=n(11);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("button",{target:"e1ye9psy0",label:"CloseButton"})(o.buttons.button,";",o.shadows.dropMiddle,";position:absolute;margin-right:-40px;left:-40px;top:-40px;width:40px;height:40px;border-radius:50%;background-color:white;padding:0;display:flex;justify-content:center;align-items:center;"),u=(0,r.default)("h1",{target:"e1ye9psy1",label:"LibraryTitle"})("line-height:36px;font-size:22px;text-align:left;margin-bottom:25px;color:",e=>e.isPrivate&&o.colors.textFieldBorder,";"),c=({onClose:e,title:t,isPrivate:n})=>(0,a.jsx)("div",null,(0,a.jsx)(l,{onClick:e},(0,a.jsx)(o.Icon,{type:"close"})),(0,a.jsx)(u,{isPrivate:n},t));c.propTypes={onClose:i.default.func.isRequired,title:i.default.string.isRequired,isPrivate:i.default.bool};var d=c;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadButton=t.InsertButton=t.DeleteButton=t.UploadButton=void 0;var r,i=(r=n(18))&&r.__esModule?r:{default:r},o=n(11),a=n(192),s=n(16);const l={button:(0,o.css)(s.buttons.button,";",s.buttons.default,";display:inline-block;margin-left:15px;margin-right:2px;&[disabled]{",s.buttons.disabled,";cursor:default;};label:button;")},u=(0,i.default)(a.FileUploadButton,{target:"eljtsap0",label:"UploadButton"})(l.button,";",s.buttons.gray,";",s.shadows.dropMain,";margin-bottom:0;span{font-size:14px;font-weight:500;display:flex;justify-content:center;align-items:center;}input{height:0.1px;width:0.1px;margin:0;padding:0;opacity:0;overflow:hidden;position:absolute;z-index:",s.zIndex.zIndex0,";outline:none;}");t.UploadButton=u;const c=(0,i.default)("button",{target:"eljtsap1",label:"DeleteButton"})(l.button,";",s.buttons.lightRed,";");t.DeleteButton=c;const d=(0,i.default)("button",{target:"eljtsap2",label:"InsertButton"})(l.button,";",s.buttons.green,";");t.InsertButton=d;const f=(0,i.default)("button",{target:"eljtsap3",label:"DownloadButton"})(l.button,";background-color:",s.colors.button,";color:",s.colors.buttonText,";",e=>!0===e.focused&&(0,o.css)("&:focus,&:hover{color:",s.colorsRaw.white,";background-color:#555a65;};label:DownloadButton;"),"");t.DownloadButton=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(18)),i=(f(n(1)),f(n(2))),o=f(n(557)),a=f(n(1108)),s=n(4),l=n(16),u=n(558),c=f(n(1109)),d=n(11);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}const g=e=>{const{rowIndex:t,columnIndex:n,style:r,data:{mediaItems:i,isSelectedFile:o,onAssetClick:l,cardDraftText:u,cardWidth:c,cardHeight:f,isPrivate:p,displayURLs:m,loadDisplayURL:g,columnCount:v,gutter:y}}=e,b=t*v+n;if(b>=i.length)return null;const _=i[b];return(0,d.jsx)("div",{style:h(h({},r),{},{left:r.left+y*n,top:r.top+y,width:r.width-y,height:r.height-y})},(0,d.jsx)(a.default,{key:_.key,isSelected:o(_),text:_.name,onClick:()=>l(_),isDraft:_.draft,draftText:u,width:c,height:f,margin:"0px",isPrivate:p,displayURL:m.get(_.id,_.url?(0,s.Map)({url:_.url}):(0,s.Map)()),loadDisplayURL:()=>g(_),type:_.type,isViewableImage:_.isViewableImage}))},v=e=>{const{mediaItems:t,setScrollContainerRef:n}=e;return(0,d.jsx)(b,{ref:n},(0,d.jsx)(c.default,null,({height:n,width:r})=>{const i=parseInt(e.cardWidth,10),o=parseInt(e.cardHeight,10),a=parseInt(e.cardMargin,10),s=i+a,l=o+a,c=Math.floor(r/s),f=Math.ceil(t.length/c);return(0,d.jsx)(u.FixedSizeGrid,{columnCount:c,columnWidth:s,rowCount:f,rowHeight:l,width:r,height:n,itemData:h(h({},e),{},{gutter:a,columnCount:c})},g)}))},y=({setScrollContainerRef:e,mediaItems:t,isSelectedFile:n,onAssetClick:r,cardDraftText:i,cardWidth:l,cardHeight:u,cardMargin:c,isPrivate:f,displayURLs:p,loadDisplayURL:h,canLoadMore:m,onLoadMore:g,isPaginating:v,paginatingMessage:y})=>(0,d.jsx)(b,{ref:e},(0,d.jsx)(_,null,t.map(e=>(0,d.jsx)(a.default,{key:e.key,isSelected:n(e),text:e.name,onClick:()=>r(e),isDraft:e.draft,draftText:i,width:l,height:u,margin:c,isPrivate:f,displayURL:p.get(e.id,e.url?(0,s.Map)({url:e.url}):(0,s.Map)()),loadDisplayURL:()=>h(e),type:e.type,isViewableImage:e.isViewableImage})),m?(0,d.jsx)(o.default,{onEnter:g}):null),v?(0,d.jsx)(w,{isPrivate:f},y):null),b=(0,r.default)("div",{target:"e11970yf0",label:"CardGridContainer"})({name:"1wzx962",styles:"overflow-y:auto;overflow-x:hidden;"}),_=(0,r.default)("div",{target:"e11970yf1",label:"CardGrid"})({name:"wbkx89",styles:"display:flex;flex-wrap:wrap;margin-left:-10px;margin-right:-10px;"}),w=(0,r.default)("h1",{target:"e11970yf2",label:"PaginatingMessage"})("color:",e=>e.isPrivate&&l.colors.textFieldBorder,";"),x=e=>{const{canLoadMore:t,isPaginating:n}=e;return t||n?(0,d.jsx)(y,e):(0,d.jsx)(v,e)};x.propTypes={setScrollContainerRef:i.default.func.isRequired,mediaItems:i.default.arrayOf(i.default.shape({displayURL:i.default.oneOfType([i.default.string,i.default.object]),id:i.default.string.isRequired,key:i.default.string.isRequired,name:i.default.string.isRequired,type:i.default.string.isRequired,draft:i.default.bool})).isRequired,isSelectedFile:i.default.func.isRequired,onAssetClick:i.default.func.isRequired,canLoadMore:i.default.bool,onLoadMore:i.default.func.isRequired,isPaginating:i.default.bool,paginatingMessage:i.default.string,cardDraftText:i.default.string.isRequired,cardWidth:i.default.string.isRequired,cardMargin:i.default.string.isRequired,loadDisplayURL:i.default.func.isRequired,isPrivate:i.default.bool,displayURLs:i.default.instanceOf(s.Map).isRequired};var k=x;t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(18)),i=u(n(1)),o=u(n(2)),a=u(n(24)),s=n(16),l=n(11);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("div",{target:"e984n9b0",label:"Card"})("width:",e=>e.width,";height:",e=>e.height,";margin:",e=>e.margin,";border:",s.borders.textField,";border-color:",e=>e.isSelected&&s.colors.active,";border-radius:",s.lengths.borderRadius,";cursor:pointer;overflow:hidden;background-color:",e=>e.isPrivate&&s.colors.textFieldBorder,";&:focus{outline:none;}"),d=(0,r.default)("div",{target:"e984n9b1",label:"CardImageWrapper"})("height:",162,"px;",s.effects.checkerboard,";",s.shadows.inset,";border-bottom:solid ",s.lengths.borderWidth," ",s.colors.textFieldBorder,";position:relative;"),f=(0,r.default)("img",{target:"e984n9b2",label:"CardImage"})("width:100%;height:",160,"px;object-fit:contain;border-radius:2px 2px 0 0;"),p=(0,r.default)("div",{target:"e984n9b3",label:"CardFileIcon"})({name:"17s0kw4",styles:"width:100%;height:160px;object-fit:cover;border-radius:2px 2px 0 0;padding:1em;font-size:3em;"}),h=(0,r.default)("p",{target:"e984n9b4",label:"CardText"})("color:",s.colors.text,";padding:8px;margin-top:20px;overflow-wrap:break-word;line-height:1.3 !important;"),m=(0,r.default)("p",{target:"e984n9b5",label:"DraftText"})("color:",s.colors.mediaDraftText,";background-color:",s.colors.mediaDraftBackground,";position:absolute;padding:8px;border-radius:",s.lengths.borderRadius," 0px ",s.lengths.borderRadius," 0;");class g extends i.default.Component{render(){const{isSelected:e,displayURL:t,text:n,onClick:r,draftText:i,width:o,height:a,margin:s,isPrivate:u,type:g,isViewableImage:v,isDraft:y}=this.props,b=t.get("url");return(0,l.jsx)(c,{isSelected:e,onClick:r,width:o,height:a,margin:s,tabIndex:"-1",isPrivate:u},(0,l.jsx)(d,null,y?(0,l.jsx)(m,{"data-testid":"draft-text"},i):null,b&&v?(0,l.jsx)(f,{src:b}):(0,l.jsx)(p,{"data-testid":"card-file-icon"},g)),(0,l.jsx)(h,null,n))}componentDidMount(){const{displayURL:e,loadDisplayURL:t}=this.props;e.get("url")||t()}}g.propTypes={isSelected:o.default.bool,displayURL:a.default.map.isRequired,text:o.default.string.isRequired,onClick:o.default.func.isRequired,draftText:o.default.string.isRequired,width:o.default.string.isRequired,height:o.default.string.isRequired,margin:o.default.string.isRequired,isPrivate:o.default.bool,type:o.default.string,isViewableImage:o.default.bool.isRequired,loadDisplayURL:o.default.func.isRequired,isDraft:o.default.bool};var v=g;t.default=v},function(e,t,n){"use strict";n.r(t),function(e){var r=n(1);function i(t){var n;n="undefined"!=typeof window?window:"undefined"!=typeof self?self:e;var r,i,o="undefined"!=typeof document&&document.attachEvent;if(!o){var a=(i=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)},function(e){return i(e)}),s=(r=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout,function(e){return r(e)}),l=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},u=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;l(this),this.__resizeRAF__&&s(this.__resizeRAF__),this.__resizeRAF__=a((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},c=!1,d="",f="animationstart",p="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),m=document.createElement("fakeelement");if(void 0!==m.style.animationName&&(c=!0),!1===c)for(var g=0;g<p.length;g++)if(void 0!==m.style[p[g]+"AnimationName"]){d="-"+p[g].toLowerCase()+"-",f=h[g],c=!0;break}var v="resizeanim",y="@"+d+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",b=d+"animation: 1ms "+v+"; "}return{addResizeListener:function(e,r){if(o)e.attachEvent("onresize",r);else{if(!e.__resizeTriggers__){var i=e.ownerDocument,a=n.getComputedStyle(e);a&&"static"==a.position&&(e.style.position="relative"),function(e){if(!e.getElementById("detectElementResize")){var n=(y||"")+".resize-triggers { "+(b||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=e.head||e.getElementsByTagName("head")[0],i=e.createElement("style");i.id="detectElementResize",i.type="text/css",null!=t&&i.setAttribute("nonce",t),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(e.createTextNode(n)),r.appendChild(i)}}(i),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=i.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',e.appendChild(e.__resizeTriggers__),l(e),e.addEventListener("scroll",u,!0),f&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==v&&l(e)},e.__resizeTriggers__.addEventListener(f,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(r)}},removeResizeListener:function(e,t){if(o)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",u,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(f,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}var o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=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},u=function(e){function t(){var e,n,r;o(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,i=e.onResize;if(r._parentNode){var o=r._parentNode.offsetHeight||0,a=r._parentNode.offsetWidth||0,s=window.getComputedStyle(r._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,u=parseInt(s.paddingRight,10)||0,c=parseInt(s.paddingTop,10)||0,d=parseInt(s.paddingBottom,10)||0,f=o-c-d,p=a-l-u;(!t&&r.state.height!==f||!n&&r.state.width!==p)&&(r.setState({height:o-c-d,width:a-l-u}),i({height:o,width:a}))}},r._setRef=function(e){r._autoSizer=e},l(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=i(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=e.disableHeight,o=e.disableWidth,a=e.style,l=this.state,u=l.height,c=l.width,d={overflow:"visible"},f={},p=!1;return i||(0===u&&(p=!0),d.height=0,f.height=u),o||(0===c&&(p=!0),d.width=0,f.width=c),Object(r.createElement)("div",{className:n,ref:this._setRef,style:s({},d,a)},!p&&t(f))}}]),t}(r.PureComponent);u.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}},t.default=u}.call(this,n(43))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(18)),i=(s(n(1)),s(n(2))),o=n(16),a=n(11);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("div",{target:"e11npagm0",label:"EmptyMessageContainer"})("height:100%;width:100%;display:flex;justify-content:center;align-items:center;color:",e=>e.isPrivate&&o.colors.textFieldBorder,";"),u=({content:e,isPrivate:t})=>(0,a.jsx)(l,{isPrivate:t},(0,a.jsx)("h1",null,e));u.propTypes={content:i.default.string.isRequired,isPrivate:i.default.bool};var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Collection=void 0;var r=_(n(18)),i=_(n(1)),o=_(n(2)),a=_(n(24)),s=n(61),l=n(48),u=n(16),c=n(164),d=_(n(1112)),f=_(n(1115)),p=_(n(1116)),h=_(n(1119)),m=_(n(1120)),g=n(123),v=n(67),y=n(104),b=n(11);function _(e){return e&&e.__esModule?e:{default:e}}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const E=(0,r.default)("div",{target:"e1yhfkro0",label:"CollectionContainer"})("margin:",u.lengths.pageMargin,";"),S=(0,r.default)("main",{target:"e1yhfkro1",label:"CollectionMain"})({name:"1r4jzjw",styles:"padding-left:280px;"}),O=(0,r.default)("div",{target:"e1yhfkro2",label:"SearchResultContainer"})(u.components.cardTop,";margin-bottom:22px;"),T=(0,r.default)("h1",{target:"e1yhfkro3",label:"SearchResultHeading"})(u.components.cardTopHeading,";");class C extends i.default.Component{constructor(...e){super(...e),k(this,"renderEntriesCollection",()=>{const{collection:e,filterTerm:t,viewStyle:n}=this.props;return(0,b.jsx)(p.default,{collection:e,viewStyle:n,filterTerm:t})}),k(this,"renderEntriesSearch",()=>{const{searchTerm:e,collections:t,collection:n,isSingleSearchResult:r}=this.props;return(0,b.jsx)(h.default,{collections:r?t.filter(e=>e===n):t,searchTerm:e})})}render(){const{collection:e,collections:t,collectionName:n,isSearchResults:r,isSingleSearchResult:o,searchTerm:a,sortableFields:s,onSortClick:l,sort:u,viewFilters:p,filterTerm:h,t:g,onFilterClick:v,filter:y,onChangeViewStyle:_,viewStyle:w}=this.props;let x=e.get("create")?(0,c.getNewEntryUrl)(n):"";x&&h&&(x=(0,c.getNewEntryUrl)(n),h&&(x=`${x}?path=${h}`));const k="collection.collectionTop.searchResults"+(o?"InCollection":"");return(0,b.jsx)(E,null,(0,b.jsx)(d.default,{collections:t,collection:(!r||o)&&e,searchTerm:a,filterTerm:h}),(0,b.jsx)(S,null,r?(0,b.jsx)(O,null,(0,b.jsx)(T,null,g(k,{searchTerm:a,collection:e.get("label")}))):(0,b.jsx)(i.default.Fragment,null,(0,b.jsx)(f.default,{collection:e,newEntryUrl:x}),(0,b.jsx)(m.default,{viewStyle:w,onChangeViewStyle:_,sortableFields:s,onSortClick:l,sort:u,viewFilters:p,t:g,onFilterClick:v,filter:y})),r?this.renderEntriesSearch():this.renderEntriesCollection()))}}t.Collection=C,k(C,"propTypes",{searchTerm:o.default.string,collectionName:o.default.string,isSearchResults:o.default.bool,isSingleSearchResult:o.default.bool,collection:a.default.map.isRequired,collections:a.default.orderedMap.isRequired,sortableFields:o.default.array,sort:a.default.orderedMap,onSortClick:o.default.func.isRequired});const A={sortByField:g.sortByField,filterByField:g.filterByField,changeViewStyle:g.changeViewStyle},P=(0,s.connect)((function(e,t){const{collections:n}=e,{isSearchResults:r,match:i,t:o}=t,{name:a,searchTerm:s="",filterTerm:l=""}=i.params,u=a?n.get(a):n.first(),c=(0,y.selectEntriesSort)(e.entries,u.get("name")),d=(0,v.selectSortableFields)(u,o),f=(0,v.selectViewFilters)(u),p=(0,y.selectEntriesFilter)(e.entries,u.get("name"));return{collection:u,collections:n,collectionName:a,isSearchResults:r,searchTerm:s,filterTerm:l,sort:c,sortableFields:d,viewFilters:f,filter:p,viewStyle:(0,y.selectViewStyle)(e.entries)}}),A,(e,t,n)=>x(x(x({},e),n),{},{onSortClick:(n,r)=>t.sortByField(e.collection,n,r),onFilterClick:n=>t.filterByField(e.collection,n),onChangeViewStyle:e=>t.changeViewStyle(e)}))(C);var R=(0,l.translate)()(P);t.default=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Sidebar=void 0;var r=h(n(18)),i=h(n(1)),o=h(n(2)),a=h(n(24)),s=n(11),l=n(48),u=n(118),c=n(16),d=n(371),f=h(n(1113)),p=h(n(1114));function h(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}const g={sidebarNavLinkActive:(0,s.css)("color:",c.colors.active,";background-color:",c.colors.activeBackground,";border-left-color:#4863c6;;label:sidebarNavLinkActive;")},v=(0,r.default)("aside",{target:"el9l68m0",label:"SidebarContainer"})(c.components.card,";width:250px;padding:8px 0 12px;position:fixed;max-height:calc(100vh - 112px);display:flex;flex-direction:column;"),y=(0,r.default)("h2",{target:"el9l68m1",label:"SidebarHeading"})("font-size:23px;font-weight:600;padding:0;margin:18px 12px 12px;color:",c.colors.textLead,";"),b=(0,r.default)("ul",{target:"el9l68m2",label:"SidebarNavList"})({name:"1gam4ys",styles:"margin:16px 0 0;list-style:none;overflow:auto;"}),_=(0,r.default)(u.NavLink,{target:"el9l68m3",label:"SidebarNavLink"})("display:flex;font-size:14px;font-weight:500;align-items:center;padding:8px 12px;border-left:2px solid #fff;z-index:-1;",c.Icon,"{margin-right:8px;flex-shrink:0;}",e=>(0,s.css)("&:hover,&:active,&.",e.activeClassName,"{",g.sidebarNavLinkActive,";};label:SidebarNavLink;"),";");class w extends i.default.Component{constructor(...e){super(...e),m(this,"renderLink",(e,t)=>{const n=e.get("name");return e.has("nested")?(0,s.jsx)("li",{key:n},(0,s.jsx)(p.default,{collection:e,filterTerm:t,"data-testid":n})):(0,s.jsx)("li",{key:n},(0,s.jsx)(_,{to:"/collections/"+n,activeClassName:"sidebar-active","data-testid":n},(0,s.jsx)(c.Icon,{type:"write"}),e.get("label")))})}render(){const{collections:e,collection:t,searchTerm:n,t:r,filterTerm:i}=this.props;return(0,s.jsx)(v,null,(0,s.jsx)(y,null,r("collection.sidebar.collections")),(0,s.jsx)(f.default,{searchTerm:n,collections:e,collection:t,onSubmit:(e,t)=>(0,d.searchCollections)(e,t)}),(0,s.jsx)(b,null,e.toList().filter(e=>!0!==e.get("hide")).map(e=>this.renderLink(e,i))))}}t.Sidebar=w,m(w,"propTypes",{collections:a.default.orderedMap.isRequired,collection:a.default.map,searchTerm:o.default.string,filterTerm:o.default.string,t:o.default.func.isRequired});var x=(0,l.translate)()(w);t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(18)),i=c(n(1)),o=n(16),a=n(48),s=c(n(2)),l=c(n(24)),u=n(11);function c(e){return e&&e.__esModule?e:{default: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}const f=(0,r.default)("div",{target:"e10zyk1w0",label:"SearchContainer"})("margin:0 12px;position:relative;",o.Icon,"{position:absolute;top:0;left:6px;z-index:",o.zIndex.zIndex2,";height:100%;display:flex;align-items:center;pointer-events:none;}"),p=(0,r.default)("div",{target:"e10zyk1w1",label:"InputContainer"})({name:"14s4iyf",styles:"display:flex;align-items:center;position:relative;"}),h=(0,r.default)("input",{target:"e10zyk1w2",label:"SearchInput"})("background-color:#eff0f4;border-radius:",o.lengths.borderRadius,";font-size:14px;padding:10px 6px 10px 32px;width:100%;position:relative;z-index:",o.zIndex.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",o.colorsRaw.blue,";}"),m=(0,r.default)("div",{target:"e10zyk1w3",label:"SuggestionsContainer"})({name:"1jke4yk",styles:"position:relative;width:100%;"}),g=(0,r.default)("ul",{target:"e10zyk1w4",label:"Suggestions"})("position:absolute;top:6px;left:0px;right:0px;padding:10px 0;margin:0;list-style:none;background-color:#fff;border-radius:",o.lengths.borderRadius,";border:1px solid ",o.colors.textFieldBorder,";z-index:",o.zIndex.zIndex1,";"),v=(0,r.default)("li",{target:"e10zyk1w5",label:"SuggestionHeader"})("padding:0px 6px 6px 32px;font-size:12px;color:",o.colors.text,";"),y=(0,r.default)("li",{target:"e10zyk1w6",label:"SuggestionItem"})(({isActive:e})=>`\n color: ${e?o.colors.active:o.colorsRaw.grayDark};\n background-color: ${e?o.colors.activeBackground:"inherit"};\n padding: 6px 6px 6px 32px;\n cursor: pointer;\n position: relative;\n \n &:hover {\n color: ${o.colors.active};\n background-color: ${o.colors.activeBackground};\n }\n`,""),b=(0,r.default)("div",{target:"e10zyk1w7",label:"SuggestionDivider"})({name:"8atqhb",styles:"width:100%;"});class _ extends i.default.Component{constructor(...e){super(...e),d(this,"state",{query:this.props.searchTerm,suggestionsVisible:!1,selectedCollectionIdx:this.getSelectedSelectionBasedOnProps()}),d(this,"submitSearch",()=>{const{onSubmit:e,collections:t}=this.props,{selectedCollectionIdx:n,query:r}=this.state;this.toggleSuggestions(!1),-1!==n?e(r,t.toIndexedSeq().getIn([n,"name"])):e(r)}),d(this,"handleKeyDown",e=>{const{suggestionsVisible:t}=this.state;"Enter"===e.key&&this.submitSearch(),t&&("Escape"===e.key&&this.toggleSuggestions(!1),"ArrowDown"===e.key?(this.selectNextSuggestion(),e.preventDefault()):"ArrowUp"===e.key&&(this.selectPreviousSuggestion(),e.preventDefault()))}),d(this,"handleQueryChange",e=>{this.setState({query:e}),this.toggleSuggestions(""!==e),""===e&&this.resetSelectedSuggestion()}),d(this,"handleSuggestionClick",(e,t)=>{this.setState({selectedCollectionIdx:t},this.submitSearch),e.preventDefault()})}componentDidUpdate(e){if(e.collection!==this.props.collection){const e=this.getSelectedSelectionBasedOnProps();this.setState({selectedCollectionIdx:e})}}getSelectedSelectionBasedOnProps(){const{collection:e,collections:t}=this.props;return e?t.keySeq().indexOf(e.get("name")):-1}toggleSuggestions(e){this.setState({suggestionsVisible:e})}selectNextSuggestion(){const{collections:e}=this.props,{selectedCollectionIdx:t}=this.state;this.setState({selectedCollectionIdx:Math.min(t+1,e.size-1)})}selectPreviousSuggestion(){const{selectedCollectionIdx:e}=this.state;this.setState({selectedCollectionIdx:Math.max(e-1,-1)})}resetSelectedSuggestion(){this.setState({selectedCollectionIdx:-1})}render(){const{collections:e,t:t}=this.props,{suggestionsVisible:n,selectedCollectionIdx:r,query:i}=this.state;return(0,u.jsx)(f,{onBlur:()=>this.toggleSuggestions(!1),onFocus:()=>this.toggleSuggestions(""!==i)},(0,u.jsx)(p,null,(0,u.jsx)(o.Icon,{type:"search"}),(0,u.jsx)(h,{onChange:e=>this.handleQueryChange(e.target.value),onKeyDown:this.handleKeyDown,onClick:()=>this.toggleSuggestions(!0),placeholder:t("collection.sidebar.searchAll"),value:i})),n&&(0,u.jsx)(m,null,(0,u.jsx)(g,null,(0,u.jsx)(v,null,t("collection.sidebar.searchIn")),(0,u.jsx)(y,{isActive:-1===r,onClick:e=>this.handleSuggestionClick(e,-1),onMouseDown:e=>e.preventDefault()},t("collection.sidebar.allCollections")),(0,u.jsx)(b,null),e.toIndexedSeq().map((e,t)=>(0,u.jsx)(y,{key:t,isActive:t===r,onClick:e=>this.handleSuggestionClick(e,t),onMouseDown:e=>e.preventDefault()},e.get("label"))))))}}d(_,"propTypes",{collections:l.default.orderedMap.isRequired,collection:l.default.map,searchTerm:s.default.string.isRequired,onSubmit:s.default.func.isRequired,t:s.default.func.isRequired});var w=(0,a.translate)()(_);t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NestedCollection=t.updateNode=t.getTreeData=t.walk=void 0;var r=v(n(18)),i=v(n(211)),o=v(n(1)),a=n(4),s=n(11),l=n(61),u=n(118),c=n(89),d=n(166),f=n(67),p=n(104),h=n(16),m=v(n(2)),g=v(n(24));function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{addFileTemplateFields:w}=d.stringTemplate,x=(0,r.default)("div",{target:"eqdmagz0",label:"NodeTitleContainer"})({name:"1n2mv2k",styles:"display:flex;justify-content:center;align-items:center;"}),k=(0,r.default)("div",{target:"eqdmagz1",label:"NodeTitle"})({name:"15ro776",styles:"margin-right:4px;"}),E=(0,r.default)("div",{target:"eqdmagz2",label:"Caret"})({name:"wmzlvu",styles:"position:relative;top:2px;"}),S=(0,r.default)(E,{target:"eqdmagz3",label:"CaretDown"})(h.components.caretDown,";color:currentColor;"),O=(0,r.default)(E,{target:"eqdmagz4",label:"CaretRight"})(h.components.caretRight,";color:currentColor;left:2px;"),T=(0,r.default)(u.NavLink,{target:"eqdmagz5",label:"TreeNavLink"})("display:flex;font-size:14px;font-weight:500;align-items:center;padding:8px;padding-left:",e=>20*e.depth+12,"px;border-left:2px solid #fff;",h.Icon,"{margin-right:8px;flex-shrink:0;}",e=>(0,s.css)("&:hover,&:active,&.",e.activeClassName,"{color:",h.colors.active,";background-color:",h.colors.activeBackground,";border-left-color:#4863c6;};label:TreeNavLink;"),";"),C=e=>{var t;return e.isRoot?e.title:(null===(t=e.children.find(e=>!e.isDir&&e.title))||void 0===t?void 0:t.title)||e.title},A=e=>{const{collection:t,treeData:n,depth:r=0,onToggle:a}=e,l=t.get("name");return(0,i.default)(n,C).map(e=>{var n;if(e.children.length<=1&&!(null===(n=e.children[0])||void 0===n?void 0:n.isDir)&&r>0)return null;let i="/collections/"+l;r>0&&(i=`${i}/filter${e.path}`);const u=C(e),c=0===r||e.children.some(e=>e.children.some(e=>e.isDir));return(0,s.jsx)(o.default.Fragment,{key:e.path},(0,s.jsx)(T,{exact:!0,to:i,activeClassName:"sidebar-active",onClick:()=>a({node:e,expanded:!e.expanded}),depth:r,"data-testid":e.path},(0,s.jsx)(h.Icon,{type:"write"}),(0,s.jsx)(x,null,(0,s.jsx)(k,null,u),c&&(e.expanded?(0,s.jsx)(S,null):(0,s.jsx)(O,null)))),e.expanded&&(0,s.jsx)(A,{collection:t,depth:r+1,treeData:e.children,onToggle:a}))})};A.propTypes={collection:g.default.map.isRequired,depth:m.default.number,treeData:m.default.array.isRequired,onToggle:m.default.func.isRequired};const P=(e,t)=>{const n=e=>{for(const r of e)t(r),n(r.children)};return n(e)};t.walk=P;const R=(e,t)=>{const n=e.get("folder"),r=t.toJS().map(e=>b(b({},e),{},{path:e.path.substring(n.length)})),i=r.reduce((e,t)=>{let n=(0,c.dirname)(t.path);for(;!e[n]&&n&&"/"!==n;){const t=n.split(c.sep);e[n]=t.pop(),n=t.length&&t.join(c.sep)}return e},{}),o=[{title:(e=e.getIn(["nested","summary"])?e.set("summary",e.getIn(["nested","summary"])):e.delete("summary")).get("label"),path:"/",isDir:!0,isRoot:!0},...Object.entries(i).map(([e,t])=>({title:t,path:e,isDir:!0,isRoot:!1})),...r.map((n,r)=>{let i=t.get(r);i=i.set("data",w(i.get("path"),i.get("data")));const o=(0,f.selectEntryCollectionTitle)(e,i);return b(b({},n),{},{title:o,isDir:!1,isRoot:!1})})].reduce((e,t)=>{const n="/"===t.path?"":(0,c.dirname)(t.path);return e[n]?e[n].push(t):e[n]=[t],e},{}),a=(e,t)=>{const n=t;let r=[];return o[n.path]&&(r=o[n.path].reduce(a,[])),e.push(b(b({},n),{},{children:r})),e};return o[""].reduce(a,[])};t.getTreeData=R;const M=(e,t,n)=>{let r=!1;const i=e=>{if(r)return e;for(let i=0;i<e.length;i++)if(e[i].path===t.path)return e[i]=n(t),r=!0,e;return e.forEach(e=>i(e.children)),e};return i([...e])};t.updateNode=M;class I extends o.default.Component{constructor(e){super(e),_(this,"onToggle",({node:e,expanded:t})=>{if(!this.state.selected||this.state.selected.path===e.path||t){const n=M(this.state.treeData,e,e=>b(b({},e),{},{expanded:t}));this.setState({treeData:n,selected:e,useFilter:!1})}else this.setState({selected:e,useFilter:!1})}),this.state={treeData:R(this.props.collection,this.props.entries),selected:null,useFilter:!0}}componentDidUpdate(e){const{collection:t,entries:n,filterTerm:r}=this.props;if(t!==e.collection||n!==e.entries||r!==e.filterTerm){const e={};P(this.state.treeData,t=>{t.expanded&&(e[t.path]=!0)});const i=R(t,n),o="/"+r;P(i,t=>{(e[t.path]||this.state.useFilter&&o.startsWith(t.path))&&(t.expanded=!0)}),this.setState({treeData:i})}}render(){const{treeData:e}=this.state,{collection:t}=this.props;return(0,s.jsx)(A,{collection:t,treeData:e,onToggle:this.onToggle})}}t.NestedCollection=I,_(I,"propTypes",{collection:g.default.map.isRequired,entries:g.default.list.isRequired,filterTerm:m.default.string});var j=(0,l.connect)((function(e,t){const{collection:n}=t;return{entries:(0,p.selectEntries)(e.entries,n)||(0,a.List)()}}),null)(I);t.default=j},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(18)),i=c(n(2)),o=c(n(24)),a=(c(n(1)),n(48)),s=n(118),l=n(16),u=n(11);function c(e){return e&&e.__esModule?e:{default:e}}const d=(0,r.default)("div",{target:"enajvhy0",label:"CollectionTopContainer"})(l.components.cardTop,";margin-bottom:22px;"),f=(0,r.default)("div",{target:"enajvhy1",label:"CollectionTopRow"})({name:"1lekzkb",styles:"display:flex;align-items:center;justify-content:space-between;"}),p=(0,r.default)("h1",{target:"enajvhy2",label:"CollectionTopHeading"})(l.components.cardTopHeading,";"),h=(0,r.default)(s.Link,{target:"enajvhy3",label:"CollectionTopNewButton"})(l.buttons.button,";",l.shadows.dropDeep,";",l.buttons.default,";",l.buttons.gray,";padding:0 30px;"),m=(0,r.default)("p",{target:"enajvhy4",label:"CollectionTopDescription"})(l.components.cardTopDescription,";margin-bottom:0;"),g=({collection:e,newEntryUrl:t,t:n})=>{const{collectionLabel:r,collectionLabelSingular:i,collectionDescription:o}=(e=>({collectionLabel:e.get("label"),collectionLabelSingular:e.get("label_singular"),collectionDescription:e.get("description")}))(e);return(0,u.jsx)(d,null,(0,u.jsx)(f,null,(0,u.jsx)(p,null,r),t?(0,u.jsx)(h,{to:t},n("collection.collectionTop.newButton",{collectionLabel:i||r})):null),o?(0,u.jsx)(m,null,o):null)};g.propTypes={collection:o.default.map.isRequired,newEntryUrl:i.default.string,t:i.default.func.isRequired};var v=(0,a.translate)()(g);t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.filterNestedEntries=t.EntriesCollection=void 0;var r=h(n(170)),i=h(n(1)),o=h(n(2)),a=h(n(24)),s=n(61),l=n(37),u=n(123),c=n(104),d=n(358),f=h(n(559)),p=n(11);function h(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}class g extends i.default.Component{constructor(...e){super(...e),m(this,"handleCursorActions",(e,t)=>{const{collection:n,traverseCollectionCursor:r}=this.props;r(n,t)})}componentDidMount(){const{collection:e,entriesLoaded:t,loadEntries:n}=this.props;e&&!t&&n(e)}componentDidUpdate(e){const{collection:t,entriesLoaded:n,loadEntries:r}=this.props;t===e.collection||n||r(t)}render(){const{collection:e,entries:t,isFetching:n,viewStyle:i,cursor:o,page:a}=this.props;return(0,p.jsx)(f.default,{collections:e,entries:t,isFetching:n,collectionName:e.get("label"),viewStyle:i,cursor:o,handleCursorActions:(0,r.default)(this.handleCursorActions,o),page:a})}}t.EntriesCollection=g,m(g,"propTypes",{collection:a.default.map.isRequired,page:o.default.number,entries:a.default.list,isFetching:o.default.bool.isRequired,viewStyle:o.default.string,cursor:o.default.object.isRequired,loadEntries:o.default.func.isRequired,traverseCollectionCursor:o.default.func.isRequired,entriesLoaded:o.default.bool});const v=(e,t,n)=>n.filter(n=>{const r=n.get("path").substring(t.length+1);if(!r.startsWith(e))return!1;if(e){return 2===r.substring(e.length+1).split("/").length}return r.split("/").length<=2});t.filterNestedEntries=v;const y={loadEntries:u.loadEntries,traverseCollectionCursor:u.traverseCollectionCursor};var b=(0,s.connect)((function(e,t){const{collection:n,viewStyle:r,filterTerm:i}=t,o=e.entries.getIn(["pages",n.get("name"),"page"]);let a=(0,c.selectEntries)(e.entries,n);if(n.has("nested")){const e=n.get("folder");a=v(i||"",e,a)}const s=(0,c.selectEntriesLoaded)(e.entries,n.get("name")),u=(0,c.selectIsFetching)(e.entries,n.get("name")),f=(0,d.selectCollectionEntriesCursor)(e.cursors,n.get("name"));return{collection:n,page:o,entries:a,entriesLoaded:s,isFetching:u,viewStyle:r,cursor:l.Cursor.create(f).clearData()}}),y)(g);t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(18)),i=f(n(2)),o=f(n(1)),a=f(n(24)),s=n(557),l=n(4),u=n(67),c=f(n(1118)),d=n(11);function f(e){return e&&e.__esModule?e:{default:e}}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m=(0,r.default)("ul",{target:"e1hbvtjf0",label:"CardsGrid"})({name:"c1vo2d",styles:"display:flex;flex-flow:row wrap;list-style-type:none;margin-left:-12px;margin-top:16px;margin-bottom:16px;"});class g extends o.default.Component{constructor(...e){super(...e),h(this,"hasMore",()=>{var e,t;return null===(e=this.props.cursor)||void 0===e||null===(t=e.actions)||void 0===t?void 0:t.has("append_next")}),h(this,"handleLoadMore",()=>{this.hasMore()&&this.props.handleCursorActions("append_next")}),h(this,"inferFields",e=>{const t=(0,u.selectInferedField)(e,"title"),n=(0,u.selectInferedField)(e,"description"),r=(0,u.selectInferedField)(e,"image"),i=(0,u.selectFields)(e),o=[t,n,r];return{titleField:t,descriptionField:n,imageField:r,remainingFields:i&&i.filter(e=>-1===o.indexOf(e.get("name")))}}),h(this,"renderCardsForSingleCollection",()=>{const{collections:e,entries:t,viewStyle:n}=this.props,r={collection:e,inferedFields:this.inferFields(e),viewStyle:n};return t.map((e,t)=>(0,d.jsx)(c.default,p({},r,{entry:e,key:t})))}),h(this,"renderCardsForMultipleCollections",()=>{const{collections:e,entries:t}=this.props,n=1===e.size;return t.map((t,r)=>{const i=t.get("collection"),o=e.find(e=>e.get("name")===i),a=!n&&o.get("label"),s={collection:o,entry:t,inferedFields:this.inferFields(o),collectionLabel:a};return(0,d.jsx)(c.default,p({},s,{key:r}))})})}render(){const{collections:e,page:t}=this.props;return(0,d.jsx)("div",null,(0,d.jsx)(m,null,l.Map.isMap(e)?this.renderCardsForSingleCollection():this.renderCardsForMultipleCollections(),this.hasMore()&&(0,d.jsx)(s.Waypoint,{key:t,onEnter:this.handleLoadMore})))}}t.default=g,h(g,"propTypes",{collections:a.default.iterable.isRequired,entries:a.default.list,viewStyle:i.default.string,cursor:i.default.any.isRequired,handleCursorActions:i.default.func.isRequired,page:i.default.number})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(18)),i=(f(n(1)),n(61)),o=n(165),a=n(118),s=n(16),l=n(362),u=n(273),c=n(67),d=n(11);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}const g=(0,r.default)("li",{target:"eab48an0",label:"ListCard"})(s.components.card,";width:",s.lengths.topCardWidth,";margin-left:12px;margin-bottom:10px;overflow:hidden;"),v=(0,r.default)(a.Link,{target:"eab48an1",label:"ListCardLink"})("display:block;max-width:100%;padding:16px 22px;&:hover{background-color:",s.colors.foreground,";}"),y=(0,r.default)("li",{target:"eab48an2",label:"GridCard"})(s.components.card,";flex:0 0 335px;height:240px;overflow:hidden;margin-left:12px;margin-bottom:16px;"),b=(0,r.default)(a.Link,{target:"eab48an3",label:"GridCardLink"})("display:block;&,&:hover{background-color:",s.colors.foreground,";color:",s.colors.text,";}"),_=(0,r.default)("h2",{target:"eab48an4",label:"CollectionLabel"})("font-size:12px;color:",s.colors.textLead,";text-transform:uppercase;"),w=(0,r.default)("h2",{target:"eab48an5",label:"ListCardTitle"})({name:"gx0lhm",styles:"margin-bottom:0;"}),x=(0,r.default)("h2",{target:"eab48an6",label:"CardHeading"})({name:"1kpnu25",styles:"margin:0 0 2px;"}),k=(0,r.default)("div",{target:"eab48an7",label:"CardBody"})("padding:16px 22px;height:90px;position:relative;margin-bottom:",e=>e.hasImage&&0,";&:after{content:'';position:absolute;display:block;z-index:",s.zIndex.zIndex1,";bottom:0;left:-20%;height:140%;width:140%;box-shadow:inset 0 -15px 24px ",s.colorsRaw.white,";}"),E=(0,r.default)("div",{target:"eab48an8",label:"CardImage"})("background-image:url(",e=>e.src,");background-position:center center;background-size:cover;background-repeat:no-repeat;height:150px;");var S=(0,i.connect)((e,t)=>{var n;const{entry:r,inferedFields:i,collection:o}=t,a=r.get("data"),s=(0,c.selectEntryCollectionTitle)(o,r);let l=a.get(i.imageField);l&&(l=encodeURI(l));const d=(0,u.selectIsLoadingAsset)(e.medias);return{summary:s,path:`/collections/${o.get("name")}/entries/${r.get("slug")}`,image:l,imageFolder:null===(n=o.get("fields"))||void 0===n?void 0:n.find(e=>e.get("name")===i.imageField&&"image"===e.get("widget")),isLoadingAsset:d}},e=>({boundGetAsset:(t,n)=>(0,o.boundGetAsset)(e,t,n)}),(e,t,n)=>h(h(h(h({},e),t),n),{},{getAsset:t.boundGetAsset(n.collection,n.entry)}))(({path:e,summary:t,image:n,imageField:r,collectionLabel:i,viewStyle:o=l.VIEW_STYLE_LIST,getAsset:a})=>o===l.VIEW_STYLE_LIST?(0,d.jsx)(g,null,(0,d.jsx)(v,{to:e},i?(0,d.jsx)(_,null,i):null,(0,d.jsx)(w,null,t))):o===l.VIEW_STYLE_GRID?(0,d.jsx)(y,null,(0,d.jsx)(b,{to:e},(0,d.jsx)(k,{hasImage:n},i?(0,d.jsx)(_,null,i):null,(0,d.jsx)(x,null,t)),n?(0,d.jsx)(E,{src:a(n,r).toString()}):null)):void 0);t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(263)),i=p(n(1)),o=p(n(2)),a=p(n(24)),s=n(61),l=n(37),u=n(100),c=n(272),d=p(n(559)),f=n(11);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class m extends i.default.Component{constructor(...e){super(...e),h(this,"getCursor",()=>{const{page:e}=this.props;return l.Cursor.create({actions:isNaN(e)?[]:["append_next"]})}),h(this,"handleCursorActions",e=>{const{page:t,searchTerm:n,searchEntries:r,collectionNames:i}=this.props;if("append_next"===e){r(n,i,t+1)}})}componentDidMount(){const{searchTerm:e,searchEntries:t,collectionNames:n}=this.props;t(e,n)}componentDidUpdate(e){const{searchTerm:t,collectionNames:n}=this.props;if(e.searchTerm===t&&(0,r.default)(e.collectionNames,n))return;const{searchEntries:i}=e;i(t,n)}componentWillUnmount(){this.props.clearSearch()}render(){const{collections:e,entries:t,isFetching:n}=this.props;return(0,f.jsx)(d.default,{cursor:this.getCursor(),handleCursorActions:this.handleCursorActions,collections:e,entries:t,isFetching:n})}}h(m,"propTypes",{isFetching:o.default.bool,searchEntries:o.default.func.isRequired,clearSearch:o.default.func.isRequired,searchTerm:o.default.string.isRequired,collections:a.default.seq,collectionNames:o.default.array,entries:a.default.list,page:o.default.number});const g={searchEntries:c.searchEntries,clearSearch:c.clearSearch};var v=(0,s.connect)((function(e,t){const{searchTerm:n}=t,r=t.collections.toIndexedSeq(),i=t.collections.keySeq().toArray();return{isFetching:e.search.get("isFetching"),page:e.search.get("page"),collections:r,collectionNames:i,entries:(0,u.selectSearchedEntries)(e,i),searchTerm:n}}),g)(m);t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(18)),i=(u(n(1)),u(n(1121))),o=u(n(1122)),a=u(n(1123)),s=n(16),l=n(11);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("div",{target:"e17kb5zm0",label:"CollectionControlsContainer"})("display:flex;align-items:center;flex-direction:row-reverse;margin-top:22px;width:",s.lengths.topCardWidth,";max-width:100%;& > div{margin-left:6px;}");var d=({viewStyle:e,onChangeViewStyle:t,sortableFields:n,onSortClick:r,sort:s,viewFilters:u,onFilterClick:d,t:f,filter:p})=>(0,l.jsx)(c,null,(0,l.jsx)(i.default,{viewStyle:e,onChangeViewStyle:t}),u.length>0&&(0,l.jsx)(a.default,{viewFilters:u,onFilterClick:d,t:f,filter:p}),n.length>0&&(0,l.jsx)(o.default,{fields:n,sort:s,onSortClick:r}));t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(18)),i=(s(n(1)),n(16)),o=n(362),a=n(11);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("div",{target:"e1d8o61m0",label:"ViewControlsSection"})({name:"nuh2uw",styles:"display:flex;align-items:center;justify-content:flex-end;max-width:500px;"}),u=(0,r.default)("button",{target:"e1d8o61m1",label:"ViewControlsButton"})(i.buttons.button,";color:",e=>e.isActive?i.colors.active:"#b3b9c4",";background-color:transparent;display:block;padding:0;margin:0 4px;&:last-child{margin-right:0;}",i.Icon,"{display:block;}");var c=({viewStyle:e,onChangeViewStyle:t})=>(0,a.jsx)(l,null,(0,a.jsx)(u,{isActive:e===o.VIEW_STYLE_LIST,onClick:()=>t(o.VIEW_STYLE_LIST)},(0,a.jsx)(i.Icon,{type:"list"})),(0,a.jsx)(u,{isActive:e===o.VIEW_STYLE_GRID,onClick:()=>t(o.VIEW_STYLE_GRID)},(0,a.jsx)(i.Icon,{type:"grid"})));t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(18)),i=(l(n(1)),n(11)),o=n(48),a=n(16),s=n(360);function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const c=(0,r.default)(a.StyledDropdownButton,{target:"e12k9syt0",label:"SortButton"})(a.buttons.button,";",a.buttons.medium,";",a.buttons.grayText,";font-size:14px;&:after{top:11px;}");const d={[s.SortDirection.Ascending]:"up",[s.SortDirection.Descending]:"down"};var f=(0,o.translate)()(({t:e,fields:t,onSortClick:n,sort:r})=>{const o=null==r?void 0:r.valueSeq().toJS().some(e=>e.direction!==s.SortDirection.None);return(0,i.jsx)(a.Dropdown,{renderButton:()=>(0,i.jsx)(c,{css:(0,i.css)("color:",o?a.colors.active:void 0,";;label:SortControl;")},e("collection.collectionTop.sortBy")),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownWidth:"160px",dropdownPosition:"left"},t.map(e=>{const t=null==r?void 0:r.getIn([e.key,"direction"]),o=t&&t!==s.SortDirection.None,l=function(e){switch(e){case s.SortDirection.Ascending:return s.SortDirection.Descending;case s.SortDirection.Descending:return s.SortDirection.None;default:return s.SortDirection.Ascending}}(t);return(0,i.jsx)(a.DropdownItem,u({key:e.key,label:e.label,onClick:()=>n(e.key,l),isActive:o},o&&function(e){return{icon:"chevron",iconDirection:d[e],iconSmall:!0}}(t)))}))});t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(18)),i=(s(n(1)),n(11)),o=n(48),a=n(16);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)(a.StyledDropdownButton,{target:"eul22uj0",label:"FilterButton"})(a.buttons.button,";",a.buttons.medium,";",a.buttons.grayText,";font-size:14px;&:after{top:11px;}");var u=(0,o.translate)()(({viewFilters:e,t:t,onFilterClick:n,filter:r})=>{const o=null==r?void 0:r.valueSeq().toJS().some(e=>!0===e.active);return(0,i.jsx)(a.Dropdown,{renderButton:()=>(0,i.jsx)(l,{css:(0,i.css)("color:",o?a.colors.active:void 0,";;label:FilterControl;")},t("collection.collectionTop.filterBy")),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownPosition:"left"},e.map(e=>(0,i.jsx)(a.DropdownCheckedItem,{key:e.id,label:e.label,id:e.id,checked:r.getIn([e.id,"active"],!1),onClick:()=>n(e)})))});t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(18)),i=y(n(2)),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=v();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(1)),a=y(n(24)),s=n(4),l=n(48),u=n(61),c=n(16),d=n(371),f=n(226),p=n(100),h=n(103),m=y(n(1125)),g=n(11);function v(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return v=function(){return e},e}function y(e){return e&&e.__esModule?e:{default:e}}const b=(0,r.default)("div",{target:"eg19in30",label:"WorkflowContainer"})("padding:",c.lengths.pageMargin," 0;height:100vh;"),_=(0,r.default)("div",{target:"eg19in31",label:"WorkflowTop"})(c.components.cardTop,";"),w=(0,r.default)("div",{target:"eg19in32",label:"WorkflowTopRow"})("display:flex;justify-content:space-between;span[role='button']{",c.shadows.dropDeep,";}"),x=(0,r.default)("h1",{target:"eg19in33",label:"WorkflowTopHeading"})(c.components.cardTopHeading,";"),k=(0,r.default)("p",{target:"eg19in34",label:"WorkflowTopDescription"})(c.components.cardTopDescription,";");class E extends o.Component{componentDidMount(){const{loadUnpublishedEntries:e,isEditorialWorkflow:t,collections:n}=this.props;t&&e(n)}render(){const{isEditorialWorkflow:e,isOpenAuthoring:t,isFetching:n,unpublishedEntries:r,updateUnpublishedEntryStatus:i,publishUnpublishedEntry:o,deleteUnpublishedEntry:a,collections:s,t:l}=this.props;if(!e)return null;if(n)return(0,g.jsx)(c.Loader,{active:!0},l("workflow.workflow.loading"));const u=r.get("pending_review").size,f=r.get("pending_publish").size;return(0,g.jsx)(b,null,(0,g.jsx)(_,null,(0,g.jsx)(w,null,(0,g.jsx)(x,null,l("workflow.workflow.workflowHeading")),(0,g.jsx)(c.Dropdown,{dropdownWidth:"160px",dropdownPosition:"left",dropdownTopOverlap:"40px",renderButton:()=>(0,g.jsx)(c.StyledDropdownButton,null,l("workflow.workflow.newPost"))},s.filter(e=>e.get("create")).toList().map(e=>(0,g.jsx)(c.DropdownItem,{key:e.get("name"),label:e.get("label"),onClick:()=>(0,d.createNewEntry)(e.get("name"))})))),(0,g.jsx)(k,null,l("workflow.workflow.description",{smart_count:u,readyCount:f}))),(0,g.jsx)(m.default,{entries:r,handleChangeStatus:i,handlePublish:o,handleDelete:a,isOpenAuthoring:t,collections:s}))}}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(E,"propTypes",{collections:a.default.orderedMap.isRequired,isEditorialWorkflow:i.default.bool.isRequired,isOpenAuthoring:i.default.bool,isFetching:i.default.bool,unpublishedEntries:a.default.map,loadUnpublishedEntries:i.default.func.isRequired,updateUnpublishedEntryStatus:i.default.func.isRequired,publishUnpublishedEntry:i.default.func.isRequired,deleteUnpublishedEntry:i.default.func.isRequired,t:i.default.func.isRequired});var S=(0,u.connect)((function(e){const{collections:t,config:n,globalUI:r}=e,i=n.get("publish_mode")===h.EDITORIAL_WORKFLOW,o={collections:t,isEditorialWorkflow:i,isOpenAuthoring:r.get("useOpenAuthoring",!1)};return i&&(o.isFetching=e.editorialWorkflow.getIn(["pages","isFetching"],!1),o.unpublishedEntries=h.status.reduce((t,n)=>{const r=(0,p.selectUnpublishedEntriesByStatus)(e,n);return t.set(n,r)},(0,s.OrderedMap)())),o}),{loadUnpublishedEntries:f.loadUnpublishedEntries,updateUnpublishedEntryStatus:f.updateUnpublishedEntryStatus,publishUnpublishedEntry:f.publishUnpublishedEntry,deleteUnpublishedEntry:f.deleteUnpublishedEntry})((0,l.translate)()(E));t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(173)),i=g(n(18)),o=g(n(2)),a=g(n(1)),s=g(n(24)),l=n(11),u=g(n(139)),c=n(48),d=n(16),f=n(103),p=n(192),h=g(n(1126)),m=n(67);function g(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}const y=(0,i.default)("div",{target:"e1sboua10",label:"WorkflowListContainer"})({name:"1booyhj",styles:"min-height:60%;display:grid;grid-template-columns:33.3% 33.3% 33.3%;"}),b=(0,i.default)("div",{target:"e1sboua11",label:"WorkflowListContainerOpenAuthoring"})({name:"1q1dzdp",styles:"min-height:60%;display:grid;grid-template-columns:50% 50% 0%;"});var _={name:"qbubgm",styles:"margin-left:0;"},w={name:"1xzanuf",styles:"margin-right:0;"};const x={columnPosition:e=>0===e&&_||2===e&&w||(0,l.css)("&:before,&:after{content:'';display:block;position:absolute;width:2px;height:80%;top:76px;background-color:",d.colors.textFieldBorder,";}&:before{left:-23px;}&:after{right:-23px;}"),column:{name:"f8lkbe-column",styles:"margin:0 20px;transition:background-color 0.5s ease;border:2px dashed transparent;border-radius:4px;position:relative;height:100%;;label:column;"},columnHovered:(0,l.css)("border-color:",d.colors.active,";;label:columnHovered;"),hiddenColumn:{name:"9wvypa-hiddenColumn",styles:"display:none;;label:hiddenColumn;"},hiddenRightBorder:{name:"hg8806-hiddenRightBorder",styles:"&:not(:first-child):not(:last-child){&:after{display:none;}};label:hiddenRightBorder;"}},k=(0,i.default)("h2",{target:"e1sboua12",label:"ColumnHeader"})("font-size:20px;font-weight:normal;padding:4px 14px;border-radius:",d.lengths.borderRadius,";margin-bottom:28px;",e=>"draft"===e.name&&(0,l.css)("background-color:",d.colors.statusDraftBackground,";color:",d.colors.statusDraftText,";;label:ColumnHeader;")," ",e=>"pending_review"===e.name&&(0,l.css)("background-color:",d.colors.statusReviewBackground,";color:",d.colors.statusReviewText,";;label:ColumnHeader;")," ",e=>"pending_publish"===e.name&&(0,l.css)("background-color:",d.colors.statusReadyBackground,";color:",d.colors.statusReadyText,";;label:ColumnHeader;"),""),E=(0,i.default)("p",{target:"e1sboua13",label:"ColumnCount"})("font-size:13px;font-weight:500;color:",d.colors.text,";text-transform:uppercase;margin-bottom:6px;");class S extends a.default.Component{constructor(...e){super(...e),v(this,"handleChangeStatus",(e,t)=>{const n=t.slug,r=t.collection,i=t.ownStatus;this.props.handleChangeStatus(r,n,i,e)}),v(this,"requestDelete",(e,t,n)=>{window.confirm(this.props.t("workflow.workflowList.onDeleteEntry"))&&this.props.handleDelete(e,t,n)}),v(this,"requestPublish",(e,t,n)=>{n===f.status.last()?window.confirm(this.props.t("workflow.workflowList.onPublishEntry"))&&this.props.handlePublish(e,t):window.alert(this.props.t("workflow.workflowList.onPublishingNotReadyEntry"))}),v(this,"renderColumns",(e,t)=>{const{isOpenAuthoring:n,collections:i,t:o}=this.props;return e?t?(0,l.jsx)("div",null,e.map(e=>{const t=(0,u.default)(e.get("updatedOn")).format(o("workflow.workflow.dateFormat")),n=e.get("slug"),r=e.get("collection"),a=`collections/${r}/entries/${n}`,s=e.get("status"),c=i.find(e=>e.get("name")===r),d=null==c?void 0:c.get("label"),g=e.get("isModification"),v=null==c?void 0:c.get("publish"),y=s===f.status.last()&&!e.get("isPersisting",!1);return(0,l.jsx)(p.DragSource,{namespace:"cms-workflow",key:`${r}-${n}`,slug:n,collection:r,ownStatus:s},i=>i((0,l.jsx)("div",null,(0,l.jsx)(h.default,{collectionLabel:d||r,title:(0,m.selectEntryCollectionTitle)(c,e),authorLastChange:e.getIn(["metaData","user"]),body:e.getIn(["data","body"]),isModification:g,editLink:a,timestamp:t,onDelete:this.requestDelete.bind(this,r,n,s),allowPublish:v,canPublish:y,onPublish:this.requestPublish.bind(this,r,n,s)}))))})):e.entrySeq().map(([e,t],i)=>(0,l.jsx)(p.DropTarget,{namespace:"cms-workflow",key:e,onDrop:this.handleChangeStatus.bind(this,e)},(o,{isHovered:a})=>o((0,l.jsx)("div",{style:{height:"100%"}},(0,l.jsx)("div",{css:(0,r.default)([x.column,x.columnPosition(i),a&&x.columnHovered,n&&"pending_publish"===e&&x.hiddenColumn,n&&"pending_review"===e&&x.hiddenRightBorder],";label:WorkflowList;")},(0,l.jsx)(k,{name:e},((e,t)=>{switch(e){case"draft":return t("workflow.workflowList.draftHeader");case"pending_review":return t("workflow.workflowList.inReviewHeader");case"pending_publish":return t("workflow.workflowList.readyHeader")}})(e,this.props.t)),(0,l.jsx)(E,null,this.props.t("workflow.workflowList.currentEntries",{smart_count:t.size})),this.renderColumns(t,e)))))):null})}render(){const e=this.renderColumns(this.props.entries),t=this.props.isOpenAuthoring?b:y;return(0,l.jsx)(t,null,e)}}v(S,"propTypes",{entries:s.default.orderedMap,handleChangeStatus:o.default.func.isRequired,handlePublish:o.default.func.isRequired,handleDelete:o.default.func.isRequired,t:o.default.func.isRequired,isOpenAuthoring:o.default.bool,collections:s.default.orderedMap.isRequired});var O=(0,p.HTML5DragDrop)((0,c.translate)()(S));t.default=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(18)),i=(u(n(1)),u(n(2))),o=n(11),a=n(48),s=n(118),l=n(16);function u(e){return e&&e.__esModule?e:{default:e}}const c={text:{name:"1v21rim-text",styles:"font-size:13px;font-weight:normal;margin-top:4px;;label:text;"},button:(0,o.css)(l.buttons.button,";width:auto;flex:1 0 0;font-size:13px;padding:6px 0;;label:button;")},d=(0,r.default)(s.Link,{target:"e1x8f48e0",label:"WorkflowLink"})({name:"xe15uv",styles:"display:block;padding:0 18px 18px;height:200px;overflow:hidden;"}),f=(0,r.default)("div",{target:"e1x8f48e1",label:"CardCollection"})("font-size:14px;color:",l.colors.textLead,";text-transform:uppercase;margin-top:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"),p=(0,r.default)("h2",{target:"e1x8f48e2",label:"CardTitle"})("margin:28px 0 0;color:",l.colors.textLead,";"),h=(0,r.default)("div",{target:"e1x8f48e3",label:"CardDateContainer"})(c.text,";"),m=(0,r.default)("p",{target:"e1x8f48e4",label:"CardBody"})(c.text,";color:",l.colors.text,";margin:24px 0 0;overflow-wrap:break-word;word-break:break-word;hyphens:auto;"),g=(0,r.default)("div",{target:"e1x8f48e5",label:"CardButtonContainer"})("background-color:",l.colors.foreground,";position:absolute;bottom:0;width:100%;padding:12px 18px;display:flex;opacity:0;transition:opacity ",l.transitions.main,";cursor:pointer;"),v=(0,r.default)("button",{target:"e1x8f48e6",label:"DeleteButton"})(c.button,";background-color:",l.colorsRaw.redLight,";color:",l.colorsRaw.red,";margin-right:6px;"),y=(0,r.default)("button",{target:"e1x8f48e7",label:"PublishButton"})(c.button,";background-color:",l.colorsRaw.teal,";color:",l.colors.textLight,";margin-left:6px;&[disabled]{background-color:",l.colorsRaw.grayLight,";color:",l.colorsRaw.gray,";}"),b=(0,r.default)("div",{target:"e1x8f48e8",label:"WorkflowCardContainer"})(l.components.card,";margin-bottom:24px;position:relative;overflow:hidden;&:hover ",g,"{opacity:1;}"),_=(0,a.translate)()(({t:e,date:t,author:n})=>{const r=((e,t)=>e&&t?"lastChange":e?"lastChangeNoAuthor":t?"lastChangeNoDate":void 0)(t,n);if(r)return(0,o.jsx)(h,null,e("workflow.workflowCard."+r,{date:t,author:n}))}),w=({collectionLabel:e,title:t,authorLastChange:n,body:r,isModification:i,editLink:a,timestamp:s,onDelete:l,allowPublish:u,canPublish:c,onPublish:h,t:w})=>(0,o.jsx)(b,null,(0,o.jsx)(d,{to:a},(0,o.jsx)(f,null,e),(0,o.jsx)(p,null,t),(s||n)&&(0,o.jsx)(_,{date:s,author:n}),(0,o.jsx)(m,null,r)),(0,o.jsx)(g,null,(0,o.jsx)(v,{onClick:l},w(i?"workflow.workflowCard.deleteChanges":"workflow.workflowCard.deleteNewEntry")),u&&(0,o.jsx)(y,{disabled:!c,onClick:h},w(i?"workflow.workflowCard.publishChanges":"workflow.workflowCard.publishNewEntry"))));w.propTypes={collectionLabel:i.default.string.isRequired,title:i.default.string,authorLastChange:i.default.string,body:i.default.string,isModification:i.default.bool,editLink:i.default.string.isRequired,timestamp:i.default.string.isRequired,onDelete:i.default.func.isRequired,allowPublish:i.default.bool.isRequired,canPublish:i.default.bool.isRequired,onPublish:i.default.func.isRequired,t:i.default.func.isRequired};var x=(0,a.translate)()(w);t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Editor=void 0;var r=x(n(230)),i=x(n(2)),o=x(n(1)),a=x(n(24)),s=n(61),l=n(16),u=n(48),c=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=w();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(152)),d=n(208),f=n(123),p=n(226),h=n(519),m=n(100),g=n(67),v=n(103),y=x(n(1129)),b=x(n(1143)),_=n(11);function w(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return w=function(){return e},e}function x(e){return e&&e.__esModule?e:{default:e}}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class E extends o.default.Component{constructor(...e){super(...e),k(this,"createBackup",(0,r.default)((function(e,t){this.props.persistLocalBackup(e,t)}),2e3)),k(this,"handleChangeDraftField",(e,t,n)=>{const r=[this.props.unPublishedEntry,this.props.publishedEntry].filter(Boolean);this.props.changeDraftField(e,t,n,r)}),k(this,"handleChangeStatus",e=>{const{entryDraft:t,updateUnpublishedEntryStatus:n,collection:r,slug:i,currentStatus:o,t:a}=this.props;if(t.get("hasChanged"))return void window.alert(a("editor.editor.onUpdatingWithUnsavedChanges"));const s=v.status.get(e);n(r.get("name"),i,o,s)}),k(this,"handlePersistEntry",async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e,{persistEntry:r,collection:i,currentStatus:o,hasWorkflow:a,loadEntry:s,slug:l,createDraftDuplicateFromEntry:u,entryDraft:d}=this.props;await r(i),this.deleteBackup(),t?((0,c.navigateToNewEntry)(i.get("name")),n&&u(d.get("entry"))):l&&a&&!o&&s(i,l)}),k(this,"handlePublishEntry",async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e,{publishUnpublishedEntry:r,createDraftDuplicateFromEntry:i,entryDraft:o,collection:a,slug:s,currentStatus:l,t:u}=this.props;l===v.status.last()?o.get("hasChanged")?window.alert(u("editor.editor.onPublishingWithUnsavedChanges")):window.confirm(u("editor.editor.onPublishing"))&&(await r(a.get("name"),s),this.deleteBackup(),t&&(0,c.navigateToNewEntry)(a.get("name")),n&&i(o.get("entry"))):window.alert(u("editor.editor.onPublishingNotReady"))}),k(this,"handleUnpublishEntry",async()=>{const{unpublishPublishedEntry:e,collection:t,slug:n,t:r}=this.props;if(window.confirm(r("editor.editor.onUnpublishing")))return await e(t,n),(0,c.navigateToCollection)(t.get("name"))}),k(this,"handleDuplicateEntry",()=>{const{createDraftDuplicateFromEntry:e,collection:t,entryDraft:n}=this.props;(0,c.navigateToNewEntry)(t.get("name")),e(n.get("entry"))}),k(this,"handleDeleteEntry",()=>{const{entryDraft:e,newEntry:t,collection:n,deleteEntry:r,slug:i,t:o}=this.props;if(e.get("hasChanged")){if(!window.confirm(o("editor.editor.onDeleteWithUnsavedChanges")))return}else if(!window.confirm(o("editor.editor.onDeletePublishedEntry")))return;if(t)return(0,c.navigateToCollection)(n.get("name"));setTimeout(async()=>(await r(n,i),this.deleteBackup(),(0,c.navigateToCollection)(n.get("name"))),0)}),k(this,"handleDeleteUnpublishedChanges",async()=>{const{entryDraft:e,collection:t,slug:n,deleteUnpublishedEntry:r,loadEntry:i,isModification:o,t:a}=this.props;e.get("hasChanged")&&!window.confirm(a("editor.editor.onDeleteUnpublishedChangesWithUnsavedChanges"))||window.confirm(a("editor.editor.onDeleteUnpublishedChanges"))&&(await r(t.get("name"),n),this.deleteBackup(),o?i(t,n):(0,c.navigateToCollection)(t.get("name")))})}componentDidMount(){const{newEntry:e,collection:t,slug:n,loadEntry:r,createEmptyDraft:i,loadEntries:o,retrieveLocalBackup:a,collectionEntriesLoaded:s,t:l}=this.props;a(t,n),e?i(t,this.props.location.search):r(t,n);const u=l("editor.editor.onLeavePage");this.exitBlocker=e=>{if(this.props.entryDraft.get("hasChanged"))return e.returnValue=u,u},window.addEventListener("beforeunload",this.exitBlocker);const d=c.default.block((e,n)=>{const r=this.props.entryDraft.getIn(["entry","isPersisting"]),i=this.props.entryDraft.getIn(["entry","newRecord"]),o=`/collections/${t.get("name")}/new`;if(!r||!i||this.props.location.pathname!==o||"PUSH"!==n)return this.props.hasChanged?u:void 0});this.unlisten=c.default.listen((e,n)=>{const r=`/collections/${t.get("name")}/new`,i=`/collections/${t.get("name")}/entries/`,{pathname:o}=e;o.startsWith(r)||o.startsWith(i)&&"PUSH"===n||(this.deleteBackup(),d(),this.unlisten())}),s||o(t)}componentDidUpdate(e){if(!e.localBackup&&this.props.localBackup){window.confirm(this.props.t("editor.editor.confirmLoadBackup"))?this.props.loadLocalBackup():this.deleteBackup()}if(this.props.hasChanged&&this.createBackup(this.props.entryDraft.get("entry"),this.props.collection),e.entry===this.props.entry)return;const{newEntry:t,collection:n}=this.props;t&&e.createEmptyDraft(n,this.props.location.search)}componentWillUnmount(){this.createBackup.flush(),this.props.discardDraft(),window.removeEventListener("beforeunload",this.exitBlocker)}deleteBackup(){const{deleteLocalBackup:e,collection:t,slug:n,newEntry:r}=this.props;this.createBackup.cancel(),e(t,!r&&n)}render(){const{entry:e,entryDraft:t,fields:n,collection:r,changeDraftFieldValidation:i,user:o,hasChanged:a,displayUrl:s,hasWorkflow:u,useOpenAuthoring:c,unpublishedEntry:d,newEntry:f,isModification:p,currentStatus:h,logoutUser:m,deployPreview:g,loadDeployPreview:v,draftKey:b,slug:w,t:x,editorBackLink:k}=this.props,E=!f&&!d;return e&&e.get("error")?(0,_.jsx)("div",null,(0,_.jsx)("h3",null,e.get("error"))):null==t||void 0===t.get("entry")||e&&e.get("isFetching")?(0,_.jsx)(l.Loader,{active:!0},x("editor.editor.loadingEntry")):(0,_.jsx)(y.default,{draftKey:b,entry:t.get("entry"),collection:r,fields:n,fieldsMetaData:t.get("fieldsMetaData"),fieldsErrors:t.get("fieldsErrors"),onChange:this.handleChangeDraftField,onValidate:i,onPersist:this.handlePersistEntry,onDelete:this.handleDeleteEntry,onDeleteUnpublishedChanges:this.handleDeleteUnpublishedChanges,onChangeStatus:this.handleChangeStatus,onPublish:this.handlePublishEntry,unPublish:this.handleUnpublishEntry,onDuplicate:this.handleDuplicateEntry,showDelete:this.props.showDelete,user:o,hasChanged:a,displayUrl:s,hasWorkflow:u,useOpenAuthoring:c,hasUnpublishedChanges:d,isNewEntry:f,isModification:p,currentStatus:h,onLogoutClick:m,deployPreview:g,loadDeployPreview:t=>v(r,w,e,E,t),editorBackLink:k})}}t.Editor=E,k(E,"propTypes",{changeDraftField:i.default.func.isRequired,changeDraftFieldValidation:i.default.func.isRequired,collection:a.default.map.isRequired,createDraftDuplicateFromEntry:i.default.func.isRequired,createEmptyDraft:i.default.func.isRequired,discardDraft:i.default.func.isRequired,entry:a.default.map,entryDraft:a.default.map.isRequired,loadEntry:i.default.func.isRequired,persistEntry:i.default.func.isRequired,deleteEntry:i.default.func.isRequired,showDelete:i.default.bool.isRequired,fields:a.default.list.isRequired,slug:i.default.string,newEntry:i.default.bool.isRequired,displayUrl:i.default.string,hasWorkflow:i.default.bool,useOpenAuthoring:i.default.bool,unpublishedEntry:i.default.bool,isModification:i.default.bool,collectionEntriesLoaded:i.default.bool,updateUnpublishedEntryStatus:i.default.func.isRequired,publishUnpublishedEntry:i.default.func.isRequired,deleteUnpublishedEntry:i.default.func.isRequired,logoutUser:i.default.func.isRequired,loadEntries:i.default.func.isRequired,deployPreview:a.default.map,loadDeployPreview:i.default.func.isRequired,currentStatus:i.default.string,user:a.default.map.isRequired,location:i.default.shape({pathname:i.default.string,search:i.default.string}),hasChanged:i.default.bool,t:i.default.func.isRequired,retrieveLocalBackup:i.default.func.isRequired,localBackup:a.default.map,loadLocalBackup:i.default.func,persistLocalBackup:i.default.func.isRequired,deleteLocalBackup:i.default.func});const S={changeDraftField:f.changeDraftField,changeDraftFieldValidation:f.changeDraftFieldValidation,loadEntry:f.loadEntry,loadEntries:f.loadEntries,loadDeployPreview:h.loadDeployPreview,loadLocalBackup:f.loadLocalBackup,retrieveLocalBackup:f.retrieveLocalBackup,persistLocalBackup:f.persistLocalBackup,deleteLocalBackup:f.deleteLocalBackup,createDraftDuplicateFromEntry:f.createDraftDuplicateFromEntry,createEmptyDraft:f.createEmptyDraft,discardDraft:f.discardDraft,persistEntry:f.persistEntry,deleteEntry:f.deleteEntry,updateUnpublishedEntryStatus:p.updateUnpublishedEntryStatus,publishUnpublishedEntry:p.publishUnpublishedEntry,unpublishPublishedEntry:p.unpublishPublishedEntry,deleteUnpublishedEntry:p.deleteUnpublishedEntry,logoutUser:d.logoutUser};var O=(0,s.connect)((function(e,t){const{collections:n,entryDraft:r,auth:i,config:o,entries:a,globalUI:s}=e,l=t.match.params[0],u=n.get(t.match.params.name),c=u.get("name"),d=!0===t.newRecord,f=(0,g.selectFields)(u,l),p=d?null:(0,m.selectEntry)(e,c,l),h=i&&i.get("user"),y=r.get("hasChanged"),b=o.get("display_url"),_=o.get("publish_mode")===v.EDITORIAL_WORKFLOW,w=s.get("useOpenAuthoring",!1),x=r.getIn(["entry","isModification"]),k=!!a.getIn(["pages",c]),E=(0,m.selectUnpublishedEntry)(e,c,l),S=(0,m.selectEntry)(e,c,l),O=E&&E.get("status"),T=(0,m.selectDeployPreview)(e,c,l),C=r.get("localBackup"),A=r.get("key");let P="/collections/"+c;if(u.has("nested")&&l){const e=l.split("/");e.length>2&&(P=`${P}/filter/${e.slice(0,-2).join("/")}`)}return{collection:u,collections:n,newEntry:d,entryDraft:r,fields:f,slug:l,entry:p,user:h,hasChanged:y,displayUrl:b,hasWorkflow:_,useOpenAuthoring:w,isModification:x,collectionEntriesLoaded:k,currentStatus:O,deployPreview:T,localBackup:C,draftKey:A,publishedEntry:S,unPublishedEntry:E,editorBackLink:P}}),S)((0,b.default)((0,u.translate)()(E)));t.default=O},function(e,t,n){var r=n(75);e.exports=function(){return r.Date.now()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(18)),i=m(n(2)),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(1)),a=m(n(24)),s=n(11),l=m(n(1130)),u=n(16),c=n(560),d=m(n(1132)),f=m(n(1136)),p=m(n(1142));function h(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}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}const v={splitPane:(0,s.css)(u.components.card,";border-radius:0;height:100%;;label:splitPane;"),pane:{name:"nq3sgi-pane",styles:"height:100%;overflow-y:auto;;label:pane;"}},y=(0,r.default)(u.IconButton,{target:"e1pxf6c40",label:"EditorToggle"})({name:"1upilqn",styles:"margin-bottom:12px;"}),b=()=>(0,s.jsx)(s.Global,{styles:(0,s.css)(".Resizer.vertical{width:21px;cursor:col-resize;position:relative;transition:background-color ",u.transitions.main,";&:before{content:'';width:2px;height:100%;position:relative;left:10px;background-color:",u.colors.textFieldBorder,";display:block;}&:hover,&:active{background-color:",u.colorsRaw.GrayLight,";}};label:ReactSplitPaneGlobalStyles;")}),_=(0,r.default)(l.default,{target:"e1pxf6c41",label:"StyledSplitPane"})(v.splitPane,";.Pane{height:100%;}"),w=(0,r.default)("div",{target:"e1pxf6c42",label:"NoPreviewContainer"})(v.splitPane,";"),x=(0,r.default)("div",{target:"e1pxf6c43",label:"EditorContainer"})("width:100%;min-width:800px;height:100%;position:absolute;top:0;left:0;overflow:hidden;padding-top:66px;background-color:",u.colors.background,";"),k=(0,r.default)("div",{target:"e1pxf6c44",label:"Editor"})({name:"1gs40ov",styles:"height:100%;margin:0 auto;position:relative;"}),E=(0,r.default)("div",{target:"e1pxf6c45",label:"PreviewPaneContainer"})("height:100%;overflow-y:auto;pointer-events:",e=>e.blockEntry?"none":"auto",";"),S=(0,r.default)(E,{target:"e1pxf6c46",label:"ControlPaneContainer"})({name:"pjxpm9",styles:"padding:0 16px;position:relative;overflow-x:hidden;"}),O=(0,r.default)("div",{target:"e1pxf6c47",label:"ViewControls"})("position:absolute;top:10px;right:10px;z-index:",u.zIndex.zIndex299,";");class T extends o.Component{constructor(...e){super(...e),g(this,"state",{showEventBlocker:!1,previewVisible:"false"!==localStorage.getItem("cms.preview-visible"),scrollSyncEnabled:"false"!==localStorage.getItem("cms.scroll-sync-enabled")}),g(this,"handleSplitPaneDragStart",()=>{this.setState({showEventBlocker:!0})}),g(this,"handleSplitPaneDragFinished",()=>{this.setState({showEventBlocker:!1})}),g(this,"handleOnPersist",(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e;this.controlPaneRef.validate(),this.props.onPersist({createNew:t,duplicate:n})}),g(this,"handleOnPublish",(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e;this.controlPaneRef.validate(),this.props.onPublish({createNew:t,duplicate:n})}),g(this,"handleTogglePreview",()=>{const e=!this.state.previewVisible;this.setState({previewVisible:e}),localStorage.setItem("cms.preview-visible",e)}),g(this,"handleToggleScrollSync",()=>{const e=!this.state.scrollSyncEnabled;this.setState({scrollSyncEnabled:e}),localStorage.setItem("cms.scroll-sync-enabled",e)})}render(){const{collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,showDelete:a,onDelete:l,onDeleteUnpublishedChanges:u,onChangeStatus:h,onPublish:m,unPublish:g,onDuplicate:v,onValidate:T,user:C,hasChanged:A,displayUrl:P,hasWorkflow:R,useOpenAuthoring:M,hasUnpublishedChanges:I,isNewEntry:j,isModification:D,currentStatus:L,onLogoutClick:N,loadDeployPreview:F,deployPreview:B,draftKey:z,editorBackLink:U}=this.props,{previewVisible:q,scrollSyncEnabled:H,showEventBlocker:W}=this.state,V=e.getIn(["editor","preview"],!0),$=(0,s.jsx)(S,{blockEntry:W},(0,s.jsx)(d.default,{collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,onValidate:T,ref:e=>this.controlPaneRef=e})),G=(0,s.jsx)(c.ScrollSync,{enabled:this.state.scrollSyncEnabled},(0,s.jsx)("div",null,(0,s.jsx)(b,null),(0,s.jsx)(_,{maxSize:-100,defaultSize:parseInt(localStorage.getItem("cms.split-pane-position"),10)||"50%",onChange:e=>localStorage.setItem("cms.split-pane-position",e),onDragStarted:this.handleSplitPaneDragStart,onDragFinished:this.handleSplitPaneDragFinished},(0,s.jsx)(c.ScrollSyncPane,null,$),(0,s.jsx)(E,{blockEntry:W},(0,s.jsx)(f.default,{collection:e,entry:t,fields:n,fieldsMetaData:r})))));return(0,s.jsx)(x,null,(0,s.jsx)(p.default,{isPersisting:t.get("isPersisting"),isPublishing:t.get("isPublishing"),isUpdatingStatus:t.get("isUpdatingStatus"),isDeleting:t.get("isDeleting"),onPersist:this.handleOnPersist,onPersistAndNew:()=>this.handleOnPersist({createNew:!0}),onPersistAndDuplicate:()=>this.handleOnPersist({createNew:!0,duplicate:!0}),onDelete:l,onDeleteUnpublishedChanges:u,onChangeStatus:h,showDelete:a,onPublish:m,unPublish:g,onDuplicate:v,onPublishAndNew:()=>this.handleOnPublish({createNew:!0}),onPublishAndDuplicate:()=>this.handleOnPublish({createNew:!0,duplicate:!0}),user:C,hasChanged:A,displayUrl:P,collection:e,hasWorkflow:R,useOpenAuthoring:M,hasUnpublishedChanges:I,isNewEntry:j,isModification:D,currentStatus:L,onLogoutClick:N,loadDeployPreview:F,deployPreview:B,editorBackLink:U}),(0,s.jsx)(k,{key:z},(0,s.jsx)(O,null,V&&(0,s.jsx)(y,{isActive:q,onClick:this.handleTogglePreview,size:"large",type:"eye",title:"Toggle preview"}),V&&q&&(0,s.jsx)(y,{isActive:H,onClick:this.handleToggleScrollSync,size:"large",type:"scroll",title:"Sync scrolling"})),V&&this.state.previewVisible?G:(0,s.jsx)(w,null,$)))}}T.propTypes={collection:a.default.map.isRequired,entry:a.default.map.isRequired,fields:a.default.list.isRequired,fieldsMetaData:a.default.map.isRequired,fieldsErrors:a.default.map.isRequired,onChange:i.default.func.isRequired,onValidate:i.default.func.isRequired,onPersist:i.default.func.isRequired,showDelete:i.default.bool.isRequired,onDelete:i.default.func.isRequired,onDeleteUnpublishedChanges:i.default.func.isRequired,onPublish:i.default.func.isRequired,unPublish:i.default.func.isRequired,onDuplicate:i.default.func.isRequired,onChangeStatus:i.default.func.isRequired,user:a.default.map.isRequired,hasChanged:i.default.bool,displayUrl:i.default.string,hasWorkflow:i.default.bool,useOpenAuthoring:i.default.bool,hasUnpublishedChanges:i.default.bool,isNewEntry:i.default.bool,isModification:i.default.bool,currentStatus:i.default.string,onLogoutClick:i.default.func.isRequired,deployPreview:a.default.map,loadDeployPreview:i.default.func.isRequired,draftKey:i.default.string.isRequired};var C=T;t.default=C},function(e,t,n){"use strict";n.r(t),n.d(t,"Pane",(function(){return k}));var r=n(1),i=n.n(r),o=n(2),a=n.n(o),s=n(151),l=n.n(s),u=n(235);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),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}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(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&&y(e,t)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(){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}}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_(e):t}function x(e){return function(){var t,n=v(e);if(b()){var r=v(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return w(this,t)}}var k=function(e){g(n,e);var t=x(n);function n(){return c(this,n),t.apply(this,arguments)}return f(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.split,o=e.style,a=e.size,s=e.eleRef,l=["Pane",r,n],u={flex:1,position:"relative",outline:"none"};return void 0!==a&&("vertical"===r?u.width=a:(u.height=a,u.display="flex"),u.flex="none"),u=Object.assign({},u,o||{}),i.a.createElement("div",{ref:s,className:l.join(" "),style:u},t)}}]),n}(i.a.PureComponent);k.propTypes={className:a.a.string.isRequired,children:a.a.node.isRequired,size:a.a.oneOfType([a.a.string,a.a.number]),split:a.a.oneOf(["vertical","horizontal"]),style:l.a,eleRef:a.a.func},k.defaultProps={};var E=function(e){g(n,e);var t=x(n);function n(){return c(this,n),t.apply(this,arguments)}return f(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.onClick,r=e.onDoubleClick,o=e.onMouseDown,a=e.onTouchEnd,s=e.onTouchStart,l=e.resizerClassName,u=e.split,c=e.style,d=[l,u,t];return i.a.createElement("span",{role:"presentation",className:d.join(" "),style:c,onMouseDown:function(e){return o(e)},onTouchStart:function(e){e.preventDefault(),s(e)},onTouchEnd:function(e){e.preventDefault(),a(e)},onClick:function(e){n&&(e.preventDefault(),n(e))},onDoubleClick:function(e){r&&(e.preventDefault(),r(e))}})}}]),n}(i.a.Component);function S(e,t){if(e.selection)e.selection.empty();else try{t.getSelection().removeAllRanges()}catch(e){}}function O(e,t,n,r){if("number"==typeof r){var i="number"==typeof t?t:0,o="number"==typeof n&&n>=0?n:1/0;return Math.max(i,Math.min(o,r))}return void 0!==e?e:t}E.propTypes={className:a.a.string.isRequired,onClick:a.a.func,onDoubleClick:a.a.func,onMouseDown:a.a.func.isRequired,onTouchStart:a.a.func.isRequired,onTouchEnd:a.a.func.isRequired,split:a.a.oneOf(["vertical","horizontal"]),style:l.a,resizerClassName:a.a.string.isRequired},E.defaultProps={resizerClassName:"Resizer"};var T=function(e){g(n,e);var t=x(n);function n(e){var r;c(this,n),(r=t.call(this,e)).onMouseDown=r.onMouseDown.bind(_(r)),r.onTouchStart=r.onTouchStart.bind(_(r)),r.onMouseMove=r.onMouseMove.bind(_(r)),r.onTouchMove=r.onTouchMove.bind(_(r)),r.onMouseUp=r.onMouseUp.bind(_(r));var i=e.size,o=e.defaultSize,a=e.minSize,s=e.maxSize,l=e.primary,u=void 0!==i?i:O(o,a,s,null);return r.state={active:!1,resized:!1,pane1Size:"first"===l?u:void 0,pane2Size:"second"===l?u:void 0,instanceProps:{size:i}},r}return f(n,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("touchmove",this.onTouchMove),this.setState(n.getSizeUpdate(this.props,this.state))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onTouchMove)}},{key:"onMouseDown",value:function(e){var t=Object.assign({},e,{touches:[{clientX:e.clientX,clientY:e.clientY}]});this.onTouchStart(t)}},{key:"onTouchStart",value:function(e){var t=this.props,n=t.allowResize,r=t.onDragStarted,i=t.split;if(n){S(document,window);var o="vertical"===i?e.touches[0].clientX:e.touches[0].clientY;"function"==typeof r&&r(),this.setState({active:!0,position:o})}}},{key:"onMouseMove",value:function(e){var t=Object.assign({},e,{touches:[{clientX:e.clientX,clientY:e.clientY}]});this.onTouchMove(t)}},{key:"onTouchMove",value:function(e){var t=this.props,n=t.allowResize,r=t.maxSize,i=t.minSize,o=t.onChange,a=t.split,s=t.step,l=this.state,u=l.active,c=l.position;if(n&&u){S(document,window);var d="first"===this.props.primary,f=d?this.pane1:this.pane2,h=d?this.pane2:this.pane1;if(f){var m=f,g=h;if(m.getBoundingClientRect){var v=m.getBoundingClientRect().width,y=m.getBoundingClientRect().height,b="vertical"===a?v:y,_=c-("vertical"===a?e.touches[0].clientX:e.touches[0].clientY);if(s){if(Math.abs(_)<s)return;_=~~(_/s)*s}var w=d?_:-_;parseInt(window.getComputedStyle(m).order)>parseInt(window.getComputedStyle(g).order)&&(w=-w);var x=r;if(void 0!==r&&r<=0){var k=this.splitPane;x="vertical"===a?k.getBoundingClientRect().width+r:k.getBoundingClientRect().height+r}var E=b-w,O=c-_;E<i?E=i:void 0!==r&&E>x?E=x:this.setState({position:O,resized:!0}),o&&o(E),this.setState(p({draggedSize:E},d?"pane1Size":"pane2Size",E))}}}}},{key:"onMouseUp",value:function(){var e=this.props,t=e.allowResize,n=e.onDragFinished,r=this.state,i=r.active,o=r.draggedSize;t&&i&&("function"==typeof n&&n(o),this.setState({active:!1}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.allowResize,r=t.children,o=t.className,a=t.onResizerClick,s=t.onResizerDoubleClick,l=t.paneClassName,u=t.pane1ClassName,c=t.pane2ClassName,d=t.paneStyle,f=t.pane1Style,p=t.pane2Style,h=t.resizerClassName,g=t.resizerStyle,v=t.split,y=t.style,b=this.state,_=b.pane1Size,w=b.pane2Size,x=n?"":"disabled",S=h?"".concat(h," ").concat("Resizer"):h,O=function(e){return i.a.Children.toArray(e).filter((function(e){return e}))}(r),T=m({display:"flex",flex:1,height:"100%",position:"absolute",outline:"none",overflow:"hidden",MozUserSelect:"text",WebkitUserSelect:"text",msUserSelect:"text",userSelect:"text"},y);"vertical"===v?Object.assign(T,{flexDirection:"row",left:0,right:0}):Object.assign(T,{bottom:0,flexDirection:"column",minHeight:"100%",top:0,width:"100%"});var C=["SplitPane",o,v,x],A=m({},d,{},f),P=m({},d,{},p),R=["Pane1",l,u].join(" "),M=["Pane2",l,c].join(" ");return i.a.createElement("div",{className:C.join(" "),ref:function(t){e.splitPane=t},style:T},i.a.createElement(k,{className:R,key:"pane1",eleRef:function(t){e.pane1=t},size:_,split:v,style:A},O[0]),i.a.createElement(E,{className:x,onClick:a,onDoubleClick:s,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:"resizer",resizerClassName:S,split:v,style:g||{}}),i.a.createElement(k,{className:M,key:"pane2",eleRef:function(t){e.pane2=t},size:w,split:v,style:P},O[1]))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return n.getSizeUpdate(e,t)}},{key:"getSizeUpdate",value:function(e,t){var n={};if(t.instanceProps.size===e.size&&void 0!==e.size)return{};var r=void 0!==e.size?e.size:O(e.defaultSize,e.minSize,e.maxSize,t.draggedSize);void 0!==e.size&&(n.draggedSize=r);var i="first"===e.primary;return n[i?"pane1Size":"pane2Size"]=r,n[i?"pane2Size":"pane1Size"]=void 0,n.instanceProps={size:e.size},n}}]),n}(i.a.Component);T.propTypes={allowResize:a.a.bool,children:a.a.arrayOf(a.a.node).isRequired,className:a.a.string,primary:a.a.oneOf(["first","second"]),minSize:a.a.oneOfType([a.a.string,a.a.number]),maxSize:a.a.oneOfType([a.a.string,a.a.number]),defaultSize:a.a.oneOfType([a.a.string,a.a.number]),size:a.a.oneOfType([a.a.string,a.a.number]),split:a.a.oneOf(["vertical","horizontal"]),onDragStarted:a.a.func,onDragFinished:a.a.func,onChange:a.a.func,onResizerClick:a.a.func,onResizerDoubleClick:a.a.func,style:l.a,resizerStyle:l.a,paneClassName:a.a.string,pane1ClassName:a.a.string,pane2ClassName:a.a.string,paneStyle:l.a,pane1Style:l.a,pane2Style:l.a,resizerClassName:a.a.string,step:a.a.number},T.defaultProps={allowResize:!0,minSize:50,primary:"first",split:"vertical",paneClassName:"",pane1ClassName:"",pane2ClassName:""},Object(u.polyfill)(T),t.default=T},function(e,t){e.exports=["alignContent","MozAlignContent","WebkitAlignContent","MSAlignContent","OAlignContent","alignItems","MozAlignItems","WebkitAlignItems","MSAlignItems","OAlignItems","alignSelf","MozAlignSelf","WebkitAlignSelf","MSAlignSelf","OAlignSelf","all","MozAll","WebkitAll","MSAll","OAll","animation","MozAnimation","WebkitAnimation","MSAnimation","OAnimation","animationDelay","MozAnimationDelay","WebkitAnimationDelay","MSAnimationDelay","OAnimationDelay","animationDirection","MozAnimationDirection","WebkitAnimationDirection","MSAnimationDirection","OAnimationDirection","animationDuration","MozAnimationDuration","WebkitAnimationDuration","MSAnimationDuration","OAnimationDuration","animationFillMode","MozAnimationFillMode","WebkitAnimationFillMode","MSAnimationFillMode","OAnimationFillMode","animationIterationCount","MozAnimationIterationCount","WebkitAnimationIterationCount","MSAnimationIterationCount","OAnimationIterationCount","animationName","MozAnimationName","WebkitAnimationName","MSAnimationName","OAnimationName","animationPlayState","MozAnimationPlayState","WebkitAnimationPlayState","MSAnimationPlayState","OAnimationPlayState","animationTimingFunction","MozAnimationTimingFunction","WebkitAnimationTimingFunction","MSAnimationTimingFunction","OAnimationTimingFunction","backfaceVisibility","MozBackfaceVisibility","WebkitBackfaceVisibility","MSBackfaceVisibility","OBackfaceVisibility","background","MozBackground","WebkitBackground","MSBackground","OBackground","backgroundAttachment","MozBackgroundAttachment","WebkitBackgroundAttachment","MSBackgroundAttachment","OBackgroundAttachment","backgroundBlendMode","MozBackgroundBlendMode","WebkitBackgroundBlendMode","MSBackgroundBlendMode","OBackgroundBlendMode","backgroundClip","MozBackgroundClip","WebkitBackgroundClip","MSBackgroundClip","OBackgroundClip","backgroundColor","MozBackgroundColor","WebkitBackgroundColor","MSBackgroundColor","OBackgroundColor","backgroundImage","MozBackgroundImage","WebkitBackgroundImage","MSBackgroundImage","OBackgroundImage","backgroundOrigin","MozBackgroundOrigin","WebkitBackgroundOrigin","MSBackgroundOrigin","OBackgroundOrigin","backgroundPosition","MozBackgroundPosition","WebkitBackgroundPosition","MSBackgroundPosition","OBackgroundPosition","backgroundRepeat","MozBackgroundRepeat","WebkitBackgroundRepeat","MSBackgroundRepeat","OBackgroundRepeat","backgroundSize","MozBackgroundSize","WebkitBackgroundSize","MSBackgroundSize","OBackgroundSize","blockSize","MozBlockSize","WebkitBlockSize","MSBlockSize","OBlockSize","border","MozBorder","WebkitBorder","MSBorder","OBorder","borderBlockEnd","MozBorderBlockEnd","WebkitBorderBlockEnd","MSBorderBlockEnd","OBorderBlockEnd","borderBlockEndColor","MozBorderBlockEndColor","WebkitBorderBlockEndColor","MSBorderBlockEndColor","OBorderBlockEndColor","borderBlockEndStyle","MozBorderBlockEndStyle","WebkitBorderBlockEndStyle","MSBorderBlockEndStyle","OBorderBlockEndStyle","borderBlockEndWidth","MozBorderBlockEndWidth","WebkitBorderBlockEndWidth","MSBorderBlockEndWidth","OBorderBlockEndWidth","borderBlockStart","MozBorderBlockStart","WebkitBorderBlockStart","MSBorderBlockStart","OBorderBlockStart","borderBlockStartColor","MozBorderBlockStartColor","WebkitBorderBlockStartColor","MSBorderBlockStartColor","OBorderBlockStartColor","borderBlockStartStyle","MozBorderBlockStartStyle","WebkitBorderBlockStartStyle","MSBorderBlockStartStyle","OBorderBlockStartStyle","borderBlockStartWidth","MozBorderBlockStartWidth","WebkitBorderBlockStartWidth","MSBorderBlockStartWidth","OBorderBlockStartWidth","borderBottom","MozBorderBottom","WebkitBorderBottom","MSBorderBottom","OBorderBottom","borderBottomColor","MozBorderBottomColor","WebkitBorderBottomColor","MSBorderBottomColor","OBorderBottomColor","borderBottomLeftRadius","MozBorderBottomLeftRadius","WebkitBorderBottomLeftRadius","MSBorderBottomLeftRadius","OBorderBottomLeftRadius","borderBottomRightRadius","MozBorderBottomRightRadius","WebkitBorderBottomRightRadius","MSBorderBottomRightRadius","OBorderBottomRightRadius","borderBottomStyle","MozBorderBottomStyle","WebkitBorderBottomStyle","MSBorderBottomStyle","OBorderBottomStyle","borderBottomWidth","MozBorderBottomWidth","WebkitBorderBottomWidth","MSBorderBottomWidth","OBorderBottomWidth","borderCollapse","MozBorderCollapse","WebkitBorderCollapse","MSBorderCollapse","OBorderCollapse","borderColor","MozBorderColor","WebkitBorderColor","MSBorderColor","OBorderColor","borderImage","MozBorderImage","WebkitBorderImage","MSBorderImage","OBorderImage","borderImageOutset","MozBorderImageOutset","WebkitBorderImageOutset","MSBorderImageOutset","OBorderImageOutset","borderImageRepeat","MozBorderImageRepeat","WebkitBorderImageRepeat","MSBorderImageRepeat","OBorderImageRepeat","borderImageSlice","MozBorderImageSlice","WebkitBorderImageSlice","MSBorderImageSlice","OBorderImageSlice","borderImageSource","MozBorderImageSource","WebkitBorderImageSource","MSBorderImageSource","OBorderImageSource","borderImageWidth","MozBorderImageWidth","WebkitBorderImageWidth","MSBorderImageWidth","OBorderImageWidth","borderInlineEnd","MozBorderInlineEnd","WebkitBorderInlineEnd","MSBorderInlineEnd","OBorderInlineEnd","borderInlineEndColor","MozBorderInlineEndColor","WebkitBorderInlineEndColor","MSBorderInlineEndColor","OBorderInlineEndColor","borderInlineEndStyle","MozBorderInlineEndStyle","WebkitBorderInlineEndStyle","MSBorderInlineEndStyle","OBorderInlineEndStyle","borderInlineEndWidth","MozBorderInlineEndWidth","WebkitBorderInlineEndWidth","MSBorderInlineEndWidth","OBorderInlineEndWidth","borderInlineStart","MozBorderInlineStart","WebkitBorderInlineStart","MSBorderInlineStart","OBorderInlineStart","borderInlineStartColor","MozBorderInlineStartColor","WebkitBorderInlineStartColor","MSBorderInlineStartColor","OBorderInlineStartColor","borderInlineStartStyle","MozBorderInlineStartStyle","WebkitBorderInlineStartStyle","MSBorderInlineStartStyle","OBorderInlineStartStyle","borderInlineStartWidth","MozBorderInlineStartWidth","WebkitBorderInlineStartWidth","MSBorderInlineStartWidth","OBorderInlineStartWidth","borderLeft","MozBorderLeft","WebkitBorderLeft","MSBorderLeft","OBorderLeft","borderLeftColor","MozBorderLeftColor","WebkitBorderLeftColor","MSBorderLeftColor","OBorderLeftColor","borderLeftStyle","MozBorderLeftStyle","WebkitBorderLeftStyle","MSBorderLeftStyle","OBorderLeftStyle","borderLeftWidth","MozBorderLeftWidth","WebkitBorderLeftWidth","MSBorderLeftWidth","OBorderLeftWidth","borderRadius","MozBorderRadius","WebkitBorderRadius","MSBorderRadius","OBorderRadius","borderRight","MozBorderRight","WebkitBorderRight","MSBorderRight","OBorderRight","borderRightColor","MozBorderRightColor","WebkitBorderRightColor","MSBorderRightColor","OBorderRightColor","borderRightStyle","MozBorderRightStyle","WebkitBorderRightStyle","MSBorderRightStyle","OBorderRightStyle","borderRightWidth","MozBorderRightWidth","WebkitBorderRightWidth","MSBorderRightWidth","OBorderRightWidth","borderSpacing","MozBorderSpacing","WebkitBorderSpacing","MSBorderSpacing","OBorderSpacing","borderStyle","MozBorderStyle","WebkitBorderStyle","MSBorderStyle","OBorderStyle","borderTop","MozBorderTop","WebkitBorderTop","MSBorderTop","OBorderTop","borderTopColor","MozBorderTopColor","WebkitBorderTopColor","MSBorderTopColor","OBorderTopColor","borderTopLeftRadius","MozBorderTopLeftRadius","WebkitBorderTopLeftRadius","MSBorderTopLeftRadius","OBorderTopLeftRadius","borderTopRightRadius","MozBorderTopRightRadius","WebkitBorderTopRightRadius","MSBorderTopRightRadius","OBorderTopRightRadius","borderTopStyle","MozBorderTopStyle","WebkitBorderTopStyle","MSBorderTopStyle","OBorderTopStyle","borderTopWidth","MozBorderTopWidth","WebkitBorderTopWidth","MSBorderTopWidth","OBorderTopWidth","borderWidth","MozBorderWidth","WebkitBorderWidth","MSBorderWidth","OBorderWidth","bottom","MozBottom","WebkitBottom","MSBottom","OBottom","boxDecorationBreak","MozBoxDecorationBreak","WebkitBoxDecorationBreak","MSBoxDecorationBreak","OBoxDecorationBreak","boxShadow","MozBoxShadow","WebkitBoxShadow","MSBoxShadow","OBoxShadow","boxSizing","MozBoxSizing","WebkitBoxSizing","MSBoxSizing","OBoxSizing","breakAfter","MozBreakAfter","WebkitBreakAfter","MSBreakAfter","OBreakAfter","breakBefore","MozBreakBefore","WebkitBreakBefore","MSBreakBefore","OBreakBefore","breakInside","MozBreakInside","WebkitBreakInside","MSBreakInside","OBreakInside","captionSide","MozCaptionSide","WebkitCaptionSide","MSCaptionSide","OCaptionSide","caretColor","MozCaretColor","WebkitCaretColor","MSCaretColor","OCaretColor","ch","MozCh","WebkitCh","MSCh","OCh","clear","MozClear","WebkitClear","MSClear","OClear","clip","MozClip","WebkitClip","MSClip","OClip","clipPath","MozClipPath","WebkitClipPath","MSClipPath","OClipPath","cm","MozCm","WebkitCm","MSCm","OCm","color","MozColor","WebkitColor","MSColor","OColor","columnCount","MozColumnCount","WebkitColumnCount","MSColumnCount","OColumnCount","columnFill","MozColumnFill","WebkitColumnFill","MSColumnFill","OColumnFill","columnGap","MozColumnGap","WebkitColumnGap","MSColumnGap","OColumnGap","columnRule","MozColumnRule","WebkitColumnRule","MSColumnRule","OColumnRule","columnRuleColor","MozColumnRuleColor","WebkitColumnRuleColor","MSColumnRuleColor","OColumnRuleColor","columnRuleStyle","MozColumnRuleStyle","WebkitColumnRuleStyle","MSColumnRuleStyle","OColumnRuleStyle","columnRuleWidth","MozColumnRuleWidth","WebkitColumnRuleWidth","MSColumnRuleWidth","OColumnRuleWidth","columnSpan","MozColumnSpan","WebkitColumnSpan","MSColumnSpan","OColumnSpan","columnWidth","MozColumnWidth","WebkitColumnWidth","MSColumnWidth","OColumnWidth","columns","MozColumns","WebkitColumns","MSColumns","OColumns","content","MozContent","WebkitContent","MSContent","OContent","counterIncrement","MozCounterIncrement","WebkitCounterIncrement","MSCounterIncrement","OCounterIncrement","counterReset","MozCounterReset","WebkitCounterReset","MSCounterReset","OCounterReset","cursor","MozCursor","WebkitCursor","MSCursor","OCursor","deg","MozDeg","WebkitDeg","MSDeg","ODeg","direction","MozDirection","WebkitDirection","MSDirection","ODirection","display","MozDisplay","WebkitDisplay","MSDisplay","ODisplay","dpcm","MozDpcm","WebkitDpcm","MSDpcm","ODpcm","dpi","MozDpi","WebkitDpi","MSDpi","ODpi","dppx","MozDppx","WebkitDppx","MSDppx","ODppx","em","MozEm","WebkitEm","MSEm","OEm","emptyCells","MozEmptyCells","WebkitEmptyCells","MSEmptyCells","OEmptyCells","ex","MozEx","WebkitEx","MSEx","OEx","filter","MozFilter","WebkitFilter","MSFilter","OFilter","flexBasis","MozFlexBasis","WebkitFlexBasis","MSFlexBasis","OFlexBasis","flexDirection","MozFlexDirection","WebkitFlexDirection","MSFlexDirection","OFlexDirection","flexFlow","MozFlexFlow","WebkitFlexFlow","MSFlexFlow","OFlexFlow","flexGrow","MozFlexGrow","WebkitFlexGrow","MSFlexGrow","OFlexGrow","flexShrink","MozFlexShrink","WebkitFlexShrink","MSFlexShrink","OFlexShrink","flexWrap","MozFlexWrap","WebkitFlexWrap","MSFlexWrap","OFlexWrap","float","MozFloat","WebkitFloat","MSFloat","OFloat","font","MozFont","WebkitFont","MSFont","OFont","fontFamily","MozFontFamily","WebkitFontFamily","MSFontFamily","OFontFamily","fontFeatureSettings","MozFontFeatureSettings","WebkitFontFeatureSettings","MSFontFeatureSettings","OFontFeatureSettings","fontKerning","MozFontKerning","WebkitFontKerning","MSFontKerning","OFontKerning","fontLanguageOverride","MozFontLanguageOverride","WebkitFontLanguageOverride","MSFontLanguageOverride","OFontLanguageOverride","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","fontSizeAdjust","MozFontSizeAdjust","WebkitFontSizeAdjust","MSFontSizeAdjust","OFontSizeAdjust","fontStretch","MozFontStretch","WebkitFontStretch","MSFontStretch","OFontStretch","fontStyle","MozFontStyle","WebkitFontStyle","MSFontStyle","OFontStyle","fontSynthesis","MozFontSynthesis","WebkitFontSynthesis","MSFontSynthesis","OFontSynthesis","fontVariant","MozFontVariant","WebkitFontVariant","MSFontVariant","OFontVariant","fontVariantAlternates","MozFontVariantAlternates","WebkitFontVariantAlternates","MSFontVariantAlternates","OFontVariantAlternates","fontVariantCaps","MozFontVariantCaps","WebkitFontVariantCaps","MSFontVariantCaps","OFontVariantCaps","fontVariantEastAsian","MozFontVariantEastAsian","WebkitFontVariantEastAsian","MSFontVariantEastAsian","OFontVariantEastAsian","fontVariantLigatures","MozFontVariantLigatures","WebkitFontVariantLigatures","MSFontVariantLigatures","OFontVariantLigatures","fontVariantNumeric","MozFontVariantNumeric","WebkitFontVariantNumeric","MSFontVariantNumeric","OFontVariantNumeric","fontVariantPosition","MozFontVariantPosition","WebkitFontVariantPosition","MSFontVariantPosition","OFontVariantPosition","fontWeight","MozFontWeight","WebkitFontWeight","MSFontWeight","OFontWeight","fr","MozFr","WebkitFr","MSFr","OFr","grad","MozGrad","WebkitGrad","MSGrad","OGrad","grid","MozGrid","WebkitGrid","MSGrid","OGrid","gridArea","MozGridArea","WebkitGridArea","MSGridArea","OGridArea","gridAutoColumns","MozGridAutoColumns","WebkitGridAutoColumns","MSGridAutoColumns","OGridAutoColumns","gridAutoFlow","MozGridAutoFlow","WebkitGridAutoFlow","MSGridAutoFlow","OGridAutoFlow","gridAutoRows","MozGridAutoRows","WebkitGridAutoRows","MSGridAutoRows","OGridAutoRows","gridColumn","MozGridColumn","WebkitGridColumn","MSGridColumn","OGridColumn","gridColumnEnd","MozGridColumnEnd","WebkitGridColumnEnd","MSGridColumnEnd","OGridColumnEnd","gridColumnGap","MozGridColumnGap","WebkitGridColumnGap","MSGridColumnGap","OGridColumnGap","gridColumnStart","MozGridColumnStart","WebkitGridColumnStart","MSGridColumnStart","OGridColumnStart","gridGap","MozGridGap","WebkitGridGap","MSGridGap","OGridGap","gridRow","MozGridRow","WebkitGridRow","MSGridRow","OGridRow","gridRowEnd","MozGridRowEnd","WebkitGridRowEnd","MSGridRowEnd","OGridRowEnd","gridRowGap","MozGridRowGap","WebkitGridRowGap","MSGridRowGap","OGridRowGap","gridRowStart","MozGridRowStart","WebkitGridRowStart","MSGridRowStart","OGridRowStart","gridTemplate","MozGridTemplate","WebkitGridTemplate","MSGridTemplate","OGridTemplate","gridTemplateAreas","MozGridTemplateAreas","WebkitGridTemplateAreas","MSGridTemplateAreas","OGridTemplateAreas","gridTemplateColumns","MozGridTemplateColumns","WebkitGridTemplateColumns","MSGridTemplateColumns","OGridTemplateColumns","gridTemplateRows","MozGridTemplateRows","WebkitGridTemplateRows","MSGridTemplateRows","OGridTemplateRows","height","MozHeight","WebkitHeight","MSHeight","OHeight","hyphens","MozHyphens","WebkitHyphens","MSHyphens","OHyphens","hz","MozHz","WebkitHz","MSHz","OHz","imageOrientation","MozImageOrientation","WebkitImageOrientation","MSImageOrientation","OImageOrientation","imageRendering","MozImageRendering","WebkitImageRendering","MSImageRendering","OImageRendering","imageResolution","MozImageResolution","WebkitImageResolution","MSImageResolution","OImageResolution","imeMode","MozImeMode","WebkitImeMode","MSImeMode","OImeMode","in","MozIn","WebkitIn","MSIn","OIn","inherit","MozInherit","WebkitInherit","MSInherit","OInherit","initial","MozInitial","WebkitInitial","MSInitial","OInitial","inlineSize","MozInlineSize","WebkitInlineSize","MSInlineSize","OInlineSize","isolation","MozIsolation","WebkitIsolation","MSIsolation","OIsolation","justifyContent","MozJustifyContent","WebkitJustifyContent","MSJustifyContent","OJustifyContent","khz","MozKhz","WebkitKhz","MSKhz","OKhz","left","MozLeft","WebkitLeft","MSLeft","OLeft","letterSpacing","MozLetterSpacing","WebkitLetterSpacing","MSLetterSpacing","OLetterSpacing","lineBreak","MozLineBreak","WebkitLineBreak","MSLineBreak","OLineBreak","lineHeight","MozLineHeight","WebkitLineHeight","MSLineHeight","OLineHeight","listStyle","MozListStyle","WebkitListStyle","MSListStyle","OListStyle","listStyleImage","MozListStyleImage","WebkitListStyleImage","MSListStyleImage","OListStyleImage","listStylePosition","MozListStylePosition","WebkitListStylePosition","MSListStylePosition","OListStylePosition","listStyleType","MozListStyleType","WebkitListStyleType","MSListStyleType","OListStyleType","margin","MozMargin","WebkitMargin","MSMargin","OMargin","marginBlockEnd","MozMarginBlockEnd","WebkitMarginBlockEnd","MSMarginBlockEnd","OMarginBlockEnd","marginBlockStart","MozMarginBlockStart","WebkitMarginBlockStart","MSMarginBlockStart","OMarginBlockStart","marginBottom","MozMarginBottom","WebkitMarginBottom","MSMarginBottom","OMarginBottom","marginInlineEnd","MozMarginInlineEnd","WebkitMarginInlineEnd","MSMarginInlineEnd","OMarginInlineEnd","marginInlineStart","MozMarginInlineStart","WebkitMarginInlineStart","MSMarginInlineStart","OMarginInlineStart","marginLeft","MozMarginLeft","WebkitMarginLeft","MSMarginLeft","OMarginLeft","marginRight","MozMarginRight","WebkitMarginRight","MSMarginRight","OMarginRight","marginTop","MozMarginTop","WebkitMarginTop","MSMarginTop","OMarginTop","mask","MozMask","WebkitMask","MSMask","OMask","maskClip","MozMaskClip","WebkitMaskClip","MSMaskClip","OMaskClip","maskComposite","MozMaskComposite","WebkitMaskComposite","MSMaskComposite","OMaskComposite","maskImage","MozMaskImage","WebkitMaskImage","MSMaskImage","OMaskImage","maskMode","MozMaskMode","WebkitMaskMode","MSMaskMode","OMaskMode","maskOrigin","MozMaskOrigin","WebkitMaskOrigin","MSMaskOrigin","OMaskOrigin","maskPosition","MozMaskPosition","WebkitMaskPosition","MSMaskPosition","OMaskPosition","maskRepeat","MozMaskRepeat","WebkitMaskRepeat","MSMaskRepeat","OMaskRepeat","maskSize","MozMaskSize","WebkitMaskSize","MSMaskSize","OMaskSize","maskType","MozMaskType","WebkitMaskType","MSMaskType","OMaskType","maxHeight","MozMaxHeight","WebkitMaxHeight","MSMaxHeight","OMaxHeight","maxWidth","MozMaxWidth","WebkitMaxWidth","MSMaxWidth","OMaxWidth","minBlockSize","MozMinBlockSize","WebkitMinBlockSize","MSMinBlockSize","OMinBlockSize","minHeight","MozMinHeight","WebkitMinHeight","MSMinHeight","OMinHeight","minInlineSize","MozMinInlineSize","WebkitMinInlineSize","MSMinInlineSize","OMinInlineSize","minWidth","MozMinWidth","WebkitMinWidth","MSMinWidth","OMinWidth","mixBlendMode","MozMixBlendMode","WebkitMixBlendMode","MSMixBlendMode","OMixBlendMode","mm","MozMm","WebkitMm","MSMm","OMm","ms","MozMs","WebkitMs","MSMs","OMs","objectFit","MozObjectFit","WebkitObjectFit","MSObjectFit","OObjectFit","objectPosition","MozObjectPosition","WebkitObjectPosition","MSObjectPosition","OObjectPosition","offsetBlockEnd","MozOffsetBlockEnd","WebkitOffsetBlockEnd","MSOffsetBlockEnd","OOffsetBlockEnd","offsetBlockStart","MozOffsetBlockStart","WebkitOffsetBlockStart","MSOffsetBlockStart","OOffsetBlockStart","offsetInlineEnd","MozOffsetInlineEnd","WebkitOffsetInlineEnd","MSOffsetInlineEnd","OOffsetInlineEnd","offsetInlineStart","MozOffsetInlineStart","WebkitOffsetInlineStart","MSOffsetInlineStart","OOffsetInlineStart","opacity","MozOpacity","WebkitOpacity","MSOpacity","OOpacity","order","MozOrder","WebkitOrder","MSOrder","OOrder","orphans","MozOrphans","WebkitOrphans","MSOrphans","OOrphans","outline","MozOutline","WebkitOutline","MSOutline","OOutline","outlineColor","MozOutlineColor","WebkitOutlineColor","MSOutlineColor","OOutlineColor","outlineOffset","MozOutlineOffset","WebkitOutlineOffset","MSOutlineOffset","OOutlineOffset","outlineStyle","MozOutlineStyle","WebkitOutlineStyle","MSOutlineStyle","OOutlineStyle","outlineWidth","MozOutlineWidth","WebkitOutlineWidth","MSOutlineWidth","OOutlineWidth","overflow","MozOverflow","WebkitOverflow","MSOverflow","OOverflow","overflowWrap","MozOverflowWrap","WebkitOverflowWrap","MSOverflowWrap","OOverflowWrap","overflowX","MozOverflowX","WebkitOverflowX","MSOverflowX","OOverflowX","overflowY","MozOverflowY","WebkitOverflowY","MSOverflowY","OOverflowY","padding","MozPadding","WebkitPadding","MSPadding","OPadding","paddingBlockEnd","MozPaddingBlockEnd","WebkitPaddingBlockEnd","MSPaddingBlockEnd","OPaddingBlockEnd","paddingBlockStart","MozPaddingBlockStart","WebkitPaddingBlockStart","MSPaddingBlockStart","OPaddingBlockStart","paddingBottom","MozPaddingBottom","WebkitPaddingBottom","MSPaddingBottom","OPaddingBottom","paddingInlineEnd","MozPaddingInlineEnd","WebkitPaddingInlineEnd","MSPaddingInlineEnd","OPaddingInlineEnd","paddingInlineStart","MozPaddingInlineStart","WebkitPaddingInlineStart","MSPaddingInlineStart","OPaddingInlineStart","paddingLeft","MozPaddingLeft","WebkitPaddingLeft","MSPaddingLeft","OPaddingLeft","paddingRight","MozPaddingRight","WebkitPaddingRight","MSPaddingRight","OPaddingRight","paddingTop","MozPaddingTop","WebkitPaddingTop","MSPaddingTop","OPaddingTop","pageBreakAfter","MozPageBreakAfter","WebkitPageBreakAfter","MSPageBreakAfter","OPageBreakAfter","pageBreakBefore","MozPageBreakBefore","WebkitPageBreakBefore","MSPageBreakBefore","OPageBreakBefore","pageBreakInside","MozPageBreakInside","WebkitPageBreakInside","MSPageBreakInside","OPageBreakInside","pc","MozPc","WebkitPc","MSPc","OPc","perspective","MozPerspective","WebkitPerspective","MSPerspective","OPerspective","perspectiveOrigin","MozPerspectiveOrigin","WebkitPerspectiveOrigin","MSPerspectiveOrigin","OPerspectiveOrigin","pointerEvents","MozPointerEvents","WebkitPointerEvents","MSPointerEvents","OPointerEvents","position","MozPosition","WebkitPosition","MSPosition","OPosition","pt","MozPt","WebkitPt","MSPt","OPt","px","MozPx","WebkitPx","MSPx","OPx","q","MozQ","WebkitQ","MSQ","OQ","quotes","MozQuotes","WebkitQuotes","MSQuotes","OQuotes","rad","MozRad","WebkitRad","MSRad","ORad","rem","MozRem","WebkitRem","MSRem","ORem","resize","MozResize","WebkitResize","MSResize","OResize","revert","MozRevert","WebkitRevert","MSRevert","ORevert","right","MozRight","WebkitRight","MSRight","ORight","rubyAlign","MozRubyAlign","WebkitRubyAlign","MSRubyAlign","ORubyAlign","rubyMerge","MozRubyMerge","WebkitRubyMerge","MSRubyMerge","ORubyMerge","rubyPosition","MozRubyPosition","WebkitRubyPosition","MSRubyPosition","ORubyPosition","s","MozS","WebkitS","MSS","OS","scrollBehavior","MozScrollBehavior","WebkitScrollBehavior","MSScrollBehavior","OScrollBehavior","scrollSnapCoordinate","MozScrollSnapCoordinate","WebkitScrollSnapCoordinate","MSScrollSnapCoordinate","OScrollSnapCoordinate","scrollSnapDestination","MozScrollSnapDestination","WebkitScrollSnapDestination","MSScrollSnapDestination","OScrollSnapDestination","scrollSnapType","MozScrollSnapType","WebkitScrollSnapType","MSScrollSnapType","OScrollSnapType","shapeImageThreshold","MozShapeImageThreshold","WebkitShapeImageThreshold","MSShapeImageThreshold","OShapeImageThreshold","shapeMargin","MozShapeMargin","WebkitShapeMargin","MSShapeMargin","OShapeMargin","shapeOutside","MozShapeOutside","WebkitShapeOutside","MSShapeOutside","OShapeOutside","tabSize","MozTabSize","WebkitTabSize","MSTabSize","OTabSize","tableLayout","MozTableLayout","WebkitTableLayout","MSTableLayout","OTableLayout","textAlign","MozTextAlign","WebkitTextAlign","MSTextAlign","OTextAlign","textAlignLast","MozTextAlignLast","WebkitTextAlignLast","MSTextAlignLast","OTextAlignLast","textCombineUpright","MozTextCombineUpright","WebkitTextCombineUpright","MSTextCombineUpright","OTextCombineUpright","textDecoration","MozTextDecoration","WebkitTextDecoration","MSTextDecoration","OTextDecoration","textDecorationColor","MozTextDecorationColor","WebkitTextDecorationColor","MSTextDecorationColor","OTextDecorationColor","textDecorationLine","MozTextDecorationLine","WebkitTextDecorationLine","MSTextDecorationLine","OTextDecorationLine","textDecorationStyle","MozTextDecorationStyle","WebkitTextDecorationStyle","MSTextDecorationStyle","OTextDecorationStyle","textEmphasis","MozTextEmphasis","WebkitTextEmphasis","MSTextEmphasis","OTextEmphasis","textEmphasisColor","MozTextEmphasisColor","WebkitTextEmphasisColor","MSTextEmphasisColor","OTextEmphasisColor","textEmphasisPosition","MozTextEmphasisPosition","WebkitTextEmphasisPosition","MSTextEmphasisPosition","OTextEmphasisPosition","textEmphasisStyle","MozTextEmphasisStyle","WebkitTextEmphasisStyle","MSTextEmphasisStyle","OTextEmphasisStyle","textIndent","MozTextIndent","WebkitTextIndent","MSTextIndent","OTextIndent","textOrientation","MozTextOrientation","WebkitTextOrientation","MSTextOrientation","OTextOrientation","textOverflow","MozTextOverflow","WebkitTextOverflow","MSTextOverflow","OTextOverflow","textRendering","MozTextRendering","WebkitTextRendering","MSTextRendering","OTextRendering","textShadow","MozTextShadow","WebkitTextShadow","MSTextShadow","OTextShadow","textTransform","MozTextTransform","WebkitTextTransform","MSTextTransform","OTextTransform","textUnderlinePosition","MozTextUnderlinePosition","WebkitTextUnderlinePosition","MSTextUnderlinePosition","OTextUnderlinePosition","top","MozTop","WebkitTop","MSTop","OTop","touchAction","MozTouchAction","WebkitTouchAction","MSTouchAction","OTouchAction","transform","MozTransform","WebkitTransform","msTransform","OTransform","transformBox","MozTransformBox","WebkitTransformBox","MSTransformBox","OTransformBox","transformOrigin","MozTransformOrigin","WebkitTransformOrigin","MSTransformOrigin","OTransformOrigin","transformStyle","MozTransformStyle","WebkitTransformStyle","MSTransformStyle","OTransformStyle","transition","MozTransition","WebkitTransition","MSTransition","OTransition","transitionDelay","MozTransitionDelay","WebkitTransitionDelay","MSTransitionDelay","OTransitionDelay","transitionDuration","MozTransitionDuration","WebkitTransitionDuration","MSTransitionDuration","OTransitionDuration","transitionProperty","MozTransitionProperty","WebkitTransitionProperty","MSTransitionProperty","OTransitionProperty","transitionTimingFunction","MozTransitionTimingFunction","WebkitTransitionTimingFunction","MSTransitionTimingFunction","OTransitionTimingFunction","turn","MozTurn","WebkitTurn","MSTurn","OTurn","unicodeBidi","MozUnicodeBidi","WebkitUnicodeBidi","MSUnicodeBidi","OUnicodeBidi","unset","MozUnset","WebkitUnset","MSUnset","OUnset","verticalAlign","MozVerticalAlign","WebkitVerticalAlign","MSVerticalAlign","OVerticalAlign","vh","MozVh","WebkitVh","MSVh","OVh","visibility","MozVisibility","WebkitVisibility","MSVisibility","OVisibility","vmax","MozVmax","WebkitVmax","MSVmax","OVmax","vmin","MozVmin","WebkitVmin","MSVmin","OVmin","vw","MozVw","WebkitVw","MSVw","OVw","whiteSpace","MozWhiteSpace","WebkitWhiteSpace","MSWhiteSpace","OWhiteSpace","widows","MozWidows","WebkitWidows","MSWidows","OWidows","width","MozWidth","WebkitWidth","MSWidth","OWidth","willChange","MozWillChange","WebkitWillChange","MSWillChange","OWillChange","wordBreak","MozWordBreak","WebkitWordBreak","MSWordBreak","OWordBreak","wordSpacing","MozWordSpacing","WebkitWordSpacing","MSWordSpacing","OWordSpacing","wordWrap","MozWordWrap","WebkitWordWrap","MSWordWrap","OWordWrap","writingMode","MozWritingMode","WebkitWritingMode","MSWritingMode","OWritingMode","zIndex","MozZIndex","WebkitZIndex","MSZIndex","OZIndex","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","flex","MozFlex","WebkitFlex","MSFlex","OFlex","fr","MozFr","WebkitFr","MSFr","OFr","overflowScrolling","MozOverflowScrolling","WebkitOverflowScrolling","MSOverflowScrolling","OOverflowScrolling","userSelect","MozUserSelect","WebkitUserSelect","MSUserSelect","OUserSelect"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(18)),i=u(n(1)),o=u(n(2)),a=u(n(24)),s=u(n(1133)),l=n(11);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)("div",{target:"e1tnasa20",label:"ControlPaneContainer"})({name:"78woh1",styles:"max-width:800px;margin:0 auto;padding-bottom:16px;font-size:16px;"});class f extends i.default.Component{constructor(...e){super(...e),c(this,"componentValidate",{}),c(this,"validate",()=>{this.props.fields.forEach(e=>{"hidden"!==e.get("widget")&&this.componentValidate[e.get("name")]()})})}controlRef(e,t){var n;if(!t)return;const r=e.get("name");this.componentValidate[r]=(null===(n=t.innerWrappedControl)||void 0===n?void 0:n.validate)||t.validate}render(){const{collection:e,fields:t,entry:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,onValidate:a}=this.props;return e&&t?0===n.size||!0===n.get("partial")?null:(0,l.jsx)(d,null,t.map((t,u)=>"hidden"===t.get("widget")?null:(0,l.jsx)(s.default,{key:u,field:t,value:t.get("meta")?n.getIn(["meta",t.get("name")]):n.getIn(["data",t.get("name")]),fieldsMetaData:r,fieldsErrors:i,onChange:o,onValidate:a,processControlRef:this.controlRef.bind(this),controlRef:this.controlRef,entry:n,collection:e}))):null}}t.default=f,f.propTypes={collection:a.default.map.isRequired,entry:a.default.map.isRequired,fields:a.default.list.isRequired,fieldsMetaData:a.default.map.isRequired,fieldsErrors:a.default.map.isRequired,onChange:o.default.func.isRequired,onValidate:o.default.func.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ControlHint=void 0;var r=w(n(18)),i=w(n(1134)),o=w(n(170)),a=w(n(1)),s=n(200),l=w(n(2)),u=w(n(24)),c=n(48),d=n(11),f=n(61),p=n(16),h=n(122),m=n(123),g=n(165),v=n(273),y=n(272),b=n(141),_=w(n(1135));function w(e){return e&&e.__esModule?e:{default:e}}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const S={widget:`\n display: block;\n width: 100%;\n padding: ${p.lengths.inputPadding};\n margin: 0;\n border: ${p.borders.textField};\n border-radius: ${p.lengths.borderRadius};\n border-top-left-radius: 0;\n outline: 0;\n box-shadow: none;\n background-color: ${p.colors.inputBackground};\n color: #444a57;\n transition: border-color ${p.transitions.main};\n position: relative;\n font-size: 15px;\n line-height: 1.5;\n\n select& {\n text-indent: 14px;\n height: 58px;\n }\n `,widgetActive:`\n border-color: ${p.colors.active};\n `,widgetError:`\n border-color: ${p.colors.errorText};\n `},O=(0,r.default)("div",{target:"ei073ck0",label:"ControlContainer"})({name:"gpgisz",styles:"margin-top:16px;&:first-of-type{margin-top:36px;}"}),T=(0,r.default)("ul",{target:"ei073ck1",label:"ControlErrorsList"})("list-style-type:none;font-size:12px;color:",p.colors.errorText,";margin-bottom:5px;text-align:right;text-transform:uppercase;position:relative;font-weight:600;top:20px;"),C=(0,r.default)("p",{target:"ei073ck2",label:"ControlHint"})("margin-bottom:0;padding:3px 0;font-size:12px;color:",e=>e.error?p.colors.errorText:e.active?p.colors.active:p.colors.controlLabel,";transition:color ",p.transitions.main,";");t.ControlHint=C;class A extends a.default.Component{constructor(...e){super(...e),E(this,"state",{activeLabel:!1}),E(this,"uniqueFieldId",(0,i.default)(this.props.field.get("name")+"-field-")),E(this,"isAncestorOfFieldError",()=>{const{fieldsErrors:e}=this.props;return!!(e&&e.size>0)&&Object.values(e.toJS()).some(e=>e.some(e=>e.parentIds&&e.parentIds.includes(this.uniqueFieldId)))})}render(){const{value:e,entry:t,collection:n,config:r,field:i,fieldsMetaData:a,fieldsErrors:s,mediaPaths:l,boundGetAsset:u,onChange:c,openMediaLibrary:f,clearMediaControl:m,removeMediaControl:g,addAsset:v,removeInsertedMedia:y,onValidate:b,processControlRef:w,controlRef:x,query:k,queryHits:E,isFetching:A,clearSearch:R,clearFieldErrors:M,loadEntry:I,className:j,isSelected:D,isEditorComponent:L,isNewEditorComponent:N,parentIds:F,t:B,validateMetaField:z}=this.props,U=i.get("widget"),q=(0,h.resolveWidget)(U),H=i.get("name"),W=i.get("hint"),V=!1===i.get("required"),$=b,G=a&&a.get(H),K=s&&s.get(this.uniqueFieldId),Y=this.isAncestorOfFieldError(),Q=!!K||Y;return(0,d.jsx)(d.ClassNames,null,({css:a,cx:U})=>(0,d.jsx)(O,{className:j},q.globalStyles&&(0,d.jsx)(d.Global,{styles:(0,d.css)(q.globalStyles,";label:EditorControl;")}),K&&(0,d.jsx)(T,null,K.map(e=>e.message&&"string"==typeof e.message&&(0,d.jsx)("li",{key:e.message.trim().replace(/[^a-z0-9]+/gi,"-")},e.message))),(0,d.jsx)(p.FieldLabel,{isActive:D||this.state.styleActive,hasErrors:Q,htmlFor:this.uniqueFieldId},`${i.get("label",i.get("name"))}${V?` (${B("editor.editorControl.field.optional")})`:""}`),(0,d.jsx)(_.default,{classNameWrapper:U(a`
+ ${S.widget};
+ `,{[a`
+ ${S.widgetActive};
+ `]:D||this.state.styleActive},{[a`
+ ${S.widgetError};
+ `]:Q}),classNameWidget:a`
+ ${S.widget};
+ `,classNameWidgetActive:a`
+ ${S.widgetActive};
+ `,classNameLabel:a`
+ ${S.label};
+ `,classNameLabelActive:a`
+ ${S.labelActive};
+ `,controlComponent:q.control,entry:t,collection:n,config:r,field:i,uniqueFieldId:this.uniqueFieldId,value:e,mediaPaths:l,metadata:G,onChange:(e,t)=>c(i,e,t),onValidate:b&&(0,o.default)(b,this.uniqueFieldId),onOpenMediaLibrary:f,onClearMediaControl:m,onRemoveMediaControl:g,onRemoveInsertedMedia:y,onAddAsset:v,getAsset:u,hasActiveStyle:D||this.state.styleActive,setActiveStyle:()=>this.setState({styleActive:!0}),setInactiveStyle:()=>this.setState({styleActive:!1}),resolveWidget:h.resolveWidget,widget:q,getEditorComponents:h.getEditorComponents,ref:w&&(0,o.default)(w,i),controlRef:x,editorControl:P,query:k,loadEntry:I,queryHits:E,clearSearch:R,clearFieldErrors:M,isFetching:A,fieldsErrors:s,onValidateObject:$,isEditorComponent:L,isNewEditorComponent:N,parentIds:F,t:B,validateMetaField:z}),W&&(0,d.jsx)(C,{active:D||this.state.styleActive,error:Q},W)))}}E(A,"propTypes",{value:l.default.oneOfType([l.default.node,l.default.object,l.default.string,l.default.bool]),field:u.default.map.isRequired,fieldsMetaData:u.default.map,fieldsErrors:u.default.map,mediaPaths:u.default.map.isRequired,boundGetAsset:l.default.func.isRequired,onChange:l.default.func.isRequired,openMediaLibrary:l.default.func.isRequired,addAsset:l.default.func.isRequired,removeInsertedMedia:l.default.func.isRequired,onValidate:l.default.func,processControlRef:l.default.func,controlRef:l.default.func,query:l.default.func.isRequired,queryHits:l.default.oneOfType([l.default.array,l.default.object]),isFetching:l.default.bool,clearSearch:l.default.func.isRequired,clearFieldErrors:l.default.func.isRequired,loadEntry:l.default.func.isRequired,t:l.default.func.isRequired,isEditorComponent:l.default.bool,isNewEditorComponent:l.default.bool,parentIds:l.default.arrayOf(l.default.string),entry:u.default.map.isRequired,collection:u.default.map.isRequired}),E(A,"defaultProps",{parentIds:[]});const P=(0,f.connect)(e=>{const{collections:t,entryDraft:n}=e,r=n.get("entry"),i=t.get(n.getIn(["entry","collection"])),o=(0,v.selectIsLoadingAsset)(e.medias);return{mediaPaths:e.mediaLibrary.get("controlMedia"),isFetching:e.search.get("isFetching"),queryHits:e.search.get("queryHits"),config:e.config,entry:r,collection:i,isLoadingAsset:o,loadEntry:async(n,r)=>{const i=t.get(n);if(i){return await(0,m.tryLoadEntry)(e,i,r)}throw new Error(`Can't find collection '${n}'`)},validateMetaField:(t,n,r)=>(0,m.validateMetaField)(e,i,t,n,r)}},e=>k(k({},(0,s.bindActionCreators)({openMediaLibrary:b.openMediaLibrary,clearMediaControl:b.clearMediaControl,removeMediaControl:b.removeMediaControl,removeInsertedMedia:b.removeInsertedMedia,addAsset:g.addAsset,query:y.query,clearSearch:y.clearSearch,clearFieldErrors:m.clearFieldErrors},e)),{},{boundGetAsset:(t,n)=>(0,g.boundGetAsset)(e,t,n)}),(e,t,n)=>k(k(k(k({},e),t),n),{},{boundGetAsset:t.boundGetAsset(e.collection,e.entry)}))((0,c.translate)()(A));var R=P;t.default=R},function(e,t,n){var r=n(109),i=0;e.exports=function(e){var t=++i;return r(e)+t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(2)),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(1)),o=c(n(24)),a=n(4),s=n(107),l=c(n(359));function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){return e&&e.__esModule?e:{default: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}const f=()=>({error:!1}),p=e=>null==e||Object.prototype.hasOwnProperty.call(e,"length")&&0===e.length||e.constructor===Object&&0===Object.keys(e).length||a.List.isList(e)&&0===e.size;class h extends i.Component{constructor(...e){super(...e),d(this,"processInnerControlRef",e=>{if(!e)return;this.innerWrappedControl=e.getWrappedInstance?e.getWrappedInstance():e,this.wrappedControlValid=this.innerWrappedControl.isValid||f;const{shouldComponentUpdate:t}=this.innerWrappedControl;this.wrappedControlShouldComponentUpdate=t&&t.bind(this.innerWrappedControl)}),d(this,"getValidateValue",()=>{var e,t;let n=(null===(e=this.innerWrappedControl)||void 0===e||null===(t=e.getValidateValue)||void 0===t?void 0:t.call(e))||this.props.value;return a.List.isList(n)&&(n=n.join(",")),n}),d(this,"validate",(e=!1)=>{const t=this.getValidateValue(),n=this.props.field,r=[],i=[this.validatePresence,this.validatePattern];if(n.get("meta")&&i.push(this.props.validateMetaField),i.forEach(e=>{const i=e(n,t,this.props.t);i.error&&r.push(i.error)}),e)e.error&&r.push(e.error);else{const e=this.validateWrappedControl(n);e.error&&r.push(e.error)}this.props.onValidate(r)}),d(this,"validatePresence",(e,t)=>{const{t:n,parentIds:r}=this.props;if(e.get("required",!0)&&p(t)){return{error:{type:l.default.PRESENCE,parentIds:r,message:n("editor.editorControlPane.widget.required",{fieldLabel:e.get("label",e.get("name"))})}}}return{error:!1}}),d(this,"validatePattern",(e,t)=>{const{t:n,parentIds:r}=this.props,i=e.get("pattern",!1);if(p(t))return{error:!1};if(i&&!RegExp(i.first()).test(t)){return{error:{type:l.default.PATTERN,parentIds:r,message:n("editor.editorControlPane.widget.regexPattern",{fieldLabel:e.get("label",e.get("name")),pattern:i.last()})}}}return{error:!1}}),d(this,"validateWrappedControl",e=>{const{t:t,parentIds:n}=this.props;if("function"!=typeof this.wrappedControlValid)throw new Error(s.oneLine`
+ this.wrappedControlValid is not a function. Are you sure widget
+ "${e.get("widget")}" is registered?
+ `);const r=this.wrappedControlValid();if("boolean"==typeof r){return{error:!r}}if(Object.prototype.hasOwnProperty.call(r,"error"))return r;if(r instanceof Promise){r.then(()=>{this.validate({error:!1})},t=>{const n={type:l.default.CUSTOM,message:`${e.get("label",e.get("name"))} - ${t}.`};this.validate({error:n})});return{error:{type:l.default.CUSTOM,parentIds:n,message:t("editor.editorControlPane.widget.processing",{fieldLabel:e.get("label",e.get("name"))})}}}return{error:!1}}),d(this,"getObjectValue",()=>this.props.value||(0,a.Map)()),d(this,"onChangeObject",(e,t,n)=>{const r=this.getObjectValue().set(e.get("name"),t);return this.props.onChange(r,n&&{[this.props.field.get("name")]:n})}),d(this,"setInactiveStyle",()=>{this.props.setInactiveStyle(),this.props.field.has("pattern")&&!p(this.getValidateValue())&&this.validate()})}shouldComponentUpdate(e){return this.wrappedControlShouldComponentUpdate?this.wrappedControlShouldComponentUpdate(e):this.props.value!==e.value||this.props.classNameWrapper!==e.classNameWrapper||this.props.hasActiveStyle!==e.hasActiveStyle}render(){const{controlComponent:e,entry:t,collection:n,config:r,field:o,value:a,mediaPaths:s,metadata:l,onChange:u,onValidateObject:c,onOpenMediaLibrary:d,onRemoveMediaControl:f,onClearMediaControl:p,onAddAsset:h,onRemoveInsertedMedia:m,getAsset:g,classNameWrapper:v,classNameWidget:y,classNameWidgetActive:b,classNameLabel:_,classNameLabelActive:w,setActiveStyle:x,hasActiveStyle:k,editorControl:E,uniqueFieldId:S,resolveWidget:O,widget:T,getEditorComponents:C,query:A,queryHits:P,clearSearch:R,clearFieldErrors:M,isFetching:I,loadEntry:j,fieldsErrors:D,controlRef:L,isEditorComponent:N,isNewEditorComponent:F,parentIds:B,t:z}=this.props;return i.default.createElement(e,{entry:t,collection:n,config:r,field:o,value:a,mediaPaths:s,metadata:l,onChange:u,onChangeObject:this.onChangeObject,onValidateObject:c,onOpenMediaLibrary:d,onClearMediaControl:p,onRemoveMediaControl:f,onAddAsset:h,onRemoveInsertedMedia:m,getAsset:g,forID:S,ref:this.processInnerControlRef,validate:this.validate,classNameWrapper:v,classNameWidget:y,classNameWidgetActive:b,classNameLabel:_,classNameLabelActive:w,setActiveStyle:x,setInactiveStyle:()=>this.setInactiveStyle(),hasActiveStyle:k,editorControl:E,resolveWidget:O,widget:T,getEditorComponents:C,query:A,queryHits:P,clearSearch:R,clearFieldErrors:M,isFetching:I,loadEntry:j,isEditorComponent:N,isNewEditorComponent:F,fieldsErrors:D,controlRef:L,parentIds:B,t:z})}}t.default=h,d(h,"propTypes",{controlComponent:r.default.func.isRequired,field:o.default.map.isRequired,hasActiveStyle:r.default.bool,setActiveStyle:r.default.func.isRequired,setInactiveStyle:r.default.func.isRequired,classNameWrapper:r.default.string.isRequired,classNameWidget:r.default.string.isRequired,classNameWidgetActive:r.default.string.isRequired,classNameLabel:r.default.string.isRequired,classNameLabelActive:r.default.string.isRequired,value:r.default.oneOfType([r.default.node,r.default.object,r.default.string,r.default.bool]),mediaPaths:o.default.map.isRequired,metadata:o.default.map,fieldsErrors:o.default.map,onChange:r.default.func.isRequired,onValidate:r.default.func,onOpenMediaLibrary:r.default.func.isRequired,onClearMediaControl:r.default.func.isRequired,onRemoveMediaControl:r.default.func.isRequired,onAddAsset:r.default.func.isRequired,onRemoveInsertedMedia:r.default.func.isRequired,getAsset:r.default.func.isRequired,resolveWidget:r.default.func.isRequired,widget:r.default.object.isRequired,getEditorComponents:r.default.func.isRequired,isFetching:r.default.bool,controlRef:r.default.func,query:r.default.func.isRequired,clearSearch:r.default.func.isRequired,clearFieldErrors:r.default.func.isRequired,queryHits:r.default.oneOfType([r.default.array,r.default.object]),editorControl:r.default.elementType.isRequired,uniqueFieldId:r.default.string.isRequired,loadEntry:r.default.func.isRequired,t:r.default.func.isRequired,onValidateObject:r.default.func,isEditorComponent:r.default.bool,isNewEditorComponent:r.default.bool,entry:o.default.map.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PreviewPane=void 0;var r=x(n(18)),i=x(n(2)),o=x(n(1)),a=n(4),s=x(n(24)),l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=w();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(561)),u=n(16),c=n(122),d=n(192),f=n(67),p=n(61),h=n(165),m=n(273),g=n(487),v=x(n(1139)),y=x(n(1140)),b=x(n(1141)),_=n(11);function w(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return w=function(){return e},e}function x(e){return e&&e.__esModule?e:{default:e}}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const O=(0,r.default)(l.default,{target:"e6emspu0",label:"PreviewPaneFrame"})("width:100%;height:100%;border:none;background:#fff;border-radius:",u.lengths.borderRadius,";");class T extends o.default.Component{constructor(...e){super(...e),S(this,"getWidget",(e,t,n,r,i=null)=>{const{getAsset:o,entry:s}=r,l=(0,c.resolveWidget)(e.get("widget")),u=i?e.get("name")+"_"+i:e.get("name"),d=t&&!l.allowMapValue&&a.Map.isMap(t);return l.preview?(0,_.jsx)(y.default,{previewComponent:l.preview,key:u,field:e,getAsset:o,value:d?t.get(e.get("name")):t,entry:s,fieldsMetaData:n,resolveWidget:c.resolveWidget}):null}),S(this,"inferedFields",{}),S(this,"widgetFor",(e,t=this.props.fields,n=this.props.entry.get("data"),r=this.props.fieldsMetaData)=>{let i=t&&t.find(t=>t.get("name")===e),o=n&&n.get(i.get("name"));i.get("meta")&&(o=this.props.entry.getIn(["meta",i.get("name")]));const s=i.get("fields"),l=i.get("field"),u=r&&r.get(i.get("name"),(0,a.Map)());s&&(i=i.set("fields",this.getNestedWidgets(s,o,u))),l&&(i=i.set("field",this.getSingleNested(l,o,u)));const c=Object.entries(this.inferedFields).filter(([e])=>(0,f.selectField)(this.props.collection,e)===i).map(([,e])=>e)[0];return c?o=c.defaultPreview(o):o&&-1!==["string","text","number"].indexOf(i.get("widget"))&&o.toString().length<50&&(o=(0,_.jsx)("div",null,(0,_.jsx)("strong",null,i.get("label",i.get("name")),":")," ",o)),o?this.getWidget(i,o,u,this.props):null}),S(this,"getNestedWidgets",(e,t,n)=>a.List.isList(t)?t.map(t=>this.widgetsForNestedFields(e,t,n)):this.widgetsForNestedFields(e,t,n)),S(this,"getSingleNested",(e,t,n)=>a.List.isList(t)?t.map((t,r)=>this.getWidget(e,t,n.get(e.get("name")),this.props,r)):this.getWidget(e,t,n.get(e.get("name")),this.props)),S(this,"widgetsForNestedFields",(e,t,n)=>e.map(r=>this.widgetFor(r.get("name"),e,t,n))),S(this,"widgetsFor",e=>{const{fields:t,entry:n,fieldsMetaData:r}=this.props,i=t.find(t=>t.get("name")===e),o=i&&i.get("fields"),s=n.getIn(["data",i.get("name")]),l=r.get(i.get("name"),(0,a.Map)());return a.List.isList(s)?s.map(e=>{const t=o&&(0,a.Map)(o.map((t,n)=>[t.get("name"),(0,_.jsx)("div",{key:n},this.getWidget(t,e,l.get(t.get("name")),this.props))]));return(0,a.Map)({data:e,widgets:t})}):(0,a.Map)({data:s,widgets:o&&(0,a.Map)(o.map(e=>[e.get("name"),this.getWidget(e,s,l.get(e.get("name")),this.props)]))})})}inferFields(){const e=(0,f.selectInferedField)(this.props.collection,"title"),t=(0,f.selectInferedField)(this.props.collection,"shortTitle"),n=(0,f.selectInferedField)(this.props.collection,"author");this.inferedFields={},e&&(this.inferedFields[e]=g.INFERABLE_FIELDS.title),t&&(this.inferedFields[t]=g.INFERABLE_FIELDS.shortTitle),n&&(this.inferedFields[n]=g.INFERABLE_FIELDS.author)}render(){const{entry:e,collection:t,config:n}=this.props;if(!e||!e.get("data"))return null;const r=(0,c.getPreviewTemplate)((0,f.selectTemplateName)(t,e.get("slug")))||b.default;this.inferFields();const i=E(E({},this.props),{},{widgetFor:this.widgetFor,widgetsFor:this.widgetsFor}),o=(0,c.getPreviewStyles)().map((e,t)=>e.raw?(0,_.jsx)("style",{key:t},e.value):(0,_.jsx)("link",{key:t,href:e.value,type:"text/css",rel:"stylesheet"}));t||(0,_.jsx)(O,{id:"preview-pane",head:o});return(0,_.jsx)(d.ErrorBoundary,{config:n},(0,_.jsx)(O,{id:"preview-pane",head:o,initialContent:'\n<!DOCTYPE html>\n<html>\n <head><base target="_blank"/></head>\n <body><div></div></body>\n</html>\n'},(0,_.jsx)(l.FrameContextConsumer,null,({document:e,window:t})=>(0,_.jsx)(v.default,{previewComponent:r,previewProps:E(E({},i),{},{document:e,window:t})}))))}}t.PreviewPane=T,T.propTypes={collection:s.default.map.isRequired,fields:s.default.list.isRequired,entry:s.default.map.isRequired,fieldsMetaData:s.default.map.isRequired,getAsset:i.default.func.isRequired};var C=(0,p.connect)(e=>({isLoadingAsset:(0,m.selectIsLoadingAsset)(e.medias),config:e.config}),e=>({boundGetAsset:(t,n)=>(0,h.boundGetAsset)(e,t,n)}),(e,t,n)=>E(E(E(E({},e),t),n),{},{getAsset:t.boundGetAsset(n.collection,n.entry)}))(T);t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1),a=d(o),s=d(n(49)),l=d(n(2)),u=n(562),c=d(n(1138));function d(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.handleLoad=function(){r.forceUpdate()},r._isMounted=!1,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),i(t,[{key:"componentDidMount",value:function(){this._isMounted=!0;var e=this.getDoc();e&&"complete"===e.readyState?this.forceUpdate():this.node.addEventListener("load",this.handleLoad)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.node.removeEventListener("load",this.handleLoad)}},{key:"getDoc",value:function(){return this.node?this.node.contentDocument:null}},{key:"getMountTarget",value:function(){var e=this.getDoc();return this.props.mountTarget?e.querySelector(this.props.mountTarget):e.body.children[0]}},{key:"renderFrameContents",value:function(){if(!this._isMounted)return null;var e=this.getDoc();if(!e)return null;var t=this.props.contentDidMount,n=this.props.contentDidUpdate,r=e.defaultView||e.parentView,i=a.default.createElement(c.default,{contentDidMount:t,contentDidUpdate:n},a.default.createElement(u.FrameContextProvider,{value:{document:e,window:r}},a.default.createElement("div",{className:"frame-content"},this.props.children)));e.body.children.length<1&&(e.open("text/html","replace"),e.write(this.props.initialContent),e.close());var o=this.getMountTarget();return[s.default.createPortal(this.props.head,this.getDoc().head),s.default.createPortal(i,o)]}},{key:"render",value:function(){var e=this,t=r({},this.props,{children:void 0});return delete t.head,delete t.initialContent,delete t.mountTarget,delete t.contentDidMount,delete t.contentDidUpdate,a.default.createElement("iframe",r({},t,{ref:function(t){e.node=t}}),this.renderFrameContents())}}]),t}(o.Component);f.propTypes={style:l.default.object,head:l.default.node,initialContent:l.default.string,mountTarget:l.default.string,contentDidMount:l.default.func,contentDidUpdate:l.default.func,children:l.default.oneOfType([l.default.element,l.default.arrayOf(l.default.element)])},f.defaultProps={style:{},head:null,children:void 0,mountTarget:void 0,contentDidMount:function(){},contentDidUpdate:function(){},initialContent:'<!DOCTYPE html><html><head></head><body><div class="frame-root"></div></body></html>'},t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),o=(a(i),a(n(2)));function a(e){return e&&e.__esModule?e:{default:e}}function s(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 u=function(e){function t(){return s(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:"componentDidMount",value:function(){this.props.contentDidMount()}},{key:"componentDidUpdate",value:function(){this.props.contentDidUpdate()}},{key:"render",value:function(){return i.Children.only(this.props.children)}}]),t}(i.Component);u.propTypes={children:o.default.element.isRequired,contentDidMount:o.default.func.isRequired,contentDidUpdate:o.default.func.isRequired},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(2)),i=u(n(1)),o=n(174),a=n(560),s=n(561),l=n(11);function u(e){return e&&e.__esModule?e:{default:e}}class c extends i.default.Component{render(){const{previewComponent:e,previewProps:t}=this.props;return(0,l.jsx)(s.FrameContextConsumer,null,n=>(0,l.jsx)(a.ScrollSyncPane,{attachTo:n.document.scrollingElement},(0,o.isElement)(e)?i.default.cloneElement(e,t):i.default.createElement(e,t)))}}c.propTypes={previewComponent:r.default.func.isRequired,previewProps:r.default.object};var d=c;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1)),i=a(n(2)),o=a(n(24));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}class l extends r.default.Component{shouldComponentUpdate(e){return["object","list"].includes(e.field.get("widget"))||this.props.value!==e.value||this.props.fieldsMetaData!==e.fieldsMetaData||this.props.getAsset!==e.getAsset}render(){const e=this.props,{previewComponent:t}=e,n=s(e,["previewComponent"]);return r.default.createElement(t,n)}}l.propTypes={previewComponent:i.default.func.isRequired,field:o.default.map.isRequired,value:i.default.oneOfType([i.default.node,i.default.object,i.default.string,i.default.bool])};var u=l;t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(18)),i=l(n(1)),o=l(n(2)),a=l(n(24)),s=n(11);function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return"hidden"!==e.get("widget")}const c=(0,r.default)("div",{target:"e1r8oqnq0",label:"PreviewContainer"})({name:"1gj2677",styles:"font-family:Roboto,'Helvetica Neue',HelveticaNeue,Helvetica,Arial,sans-serif;"});class d extends i.default.Component{render(){const{collection:e,fields:t,widgetFor:n}=this.props;return e&&t?(0,s.jsx)(c,null,t.filter(u).map(e=>(0,s.jsx)("div",{key:e.get("name")},n(e.get("name"))))):null}}t.default=d,d.propTypes={collection:a.default.map.isRequired,entry:a.default.map.isRequired,fields:a.default.list.isRequired,getAsset:o.default.func.isRequired,widgetFor:o.default.func.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(18)),i=h(n(1)),o=h(n(2)),a=h(n(24)),s=n(11),l=n(48),u=n(4),c=n(118),d=n(16),f=n(103),p=h(n(563));function h(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}const g={noOverflow:{name:"1ven8wv-noOverflow",styles:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis;;label:noOverflow;"},buttonMargin:{name:"1yqtsv2-buttonMargin",styles:"margin:0 10px;;label:buttonMargin;"},toolbarSection:(0,s.css)("height:100%;display:flex;align-items:center;border:0 solid ",d.colors.textFieldBorder,";;label:toolbarSection;"),publishedButton:(0,s.css)("background-color:",d.colorsRaw.tealLight,";color:",d.colorsRaw.teal,";;label:publishedButton;")},v=(0,r.default)(d.StyledDropdownButton,{target:"evqrzhe0",label:"DropdownButton"})(g.noOverflow," @media (max-width:1200px){padding-left:10px;}"),y=(0,r.default)("div",{target:"evqrzhe1",label:"ToolbarContainer"})("box-shadow:0 2px 6px 0 rgba(68,74,87,0.05),0 1px 3px 0 rgba(68,74,87,0.1),0 2px 54px rgba(0,0,0,0.1);position:fixed;top:0;left:0;width:100%;min-width:800px;z-index:",d.zIndex.zIndex300,";background-color:#fff;height:66px;display:flex;justify-content:space-between;"),b=(0,r.default)("div",{target:"evqrzhe2",label:"ToolbarSectionMain"})(g.toolbarSection,";flex:10;display:flex;justify-content:space-between;padding:0 10px;"),_=(0,r.default)("div",{target:"evqrzhe3",label:"ToolbarSubSectionFirst"})({name:"70qvj9",styles:"display:flex;align-items:center;"}),w=(0,r.default)(_,{target:"evqrzhe4",label:"ToolbarSubSectionLast"})({name:"1a9getn",styles:"justify-content:flex-end;"}),x=(0,r.default)(c.Link,{target:"evqrzhe5",label:"ToolbarSectionBackLink"})(g.toolbarSection,";border-right-width:1px;font-weight:normal;padding:0 20px;&:hover,&:focus{background-color:#f1f2f4;}"),k=(0,r.default)("div",{target:"evqrzhe6",label:"ToolbarSectionMeta"})(g.toolbarSection,";border-left-width:1px;padding:0 7px;"),E=(0,r.default)(d.Dropdown,{target:"evqrzhe7",label:"ToolbarDropdown"})(g.buttonMargin,";",d.Icon,"{color:",d.colorsRaw.teal,";}"),S=(0,r.default)("div",{target:"evqrzhe8",label:"BackArrow"})("color:",d.colors.textLead,";font-size:21px;font-weight:600;margin-right:16px;"),O=(0,r.default)("div",{target:"evqrzhe9",label:"BackCollection"})("color:",d.colors.textLead,";font-size:14px;"),T=(0,r.default)("div",{target:"evqrzhe10",label:"BackStatus"})({name:"19ug521",styles:"margin-top:6px;"}),C=(0,r.default)(T,{target:"evqrzhe11",label:"BackStatusUnchanged"})(d.components.textBadgeSuccess,";&::after{height:12px;width:15.5px;color:",d.colors.successText,";margin-left:5px;position:relative;top:1px;content:url(\"data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' width='15' height='11'><path fill='#005614' fill-rule='nonzero' d='M4.016 11l-.648-.946a6.202 6.202 0 0 0-.157-.22 9.526 9.526 0 0 1-.096-.133l-.511-.7a7.413 7.413 0 0 0-.162-.214l-.102-.134-.265-.346a26.903 26.903 0 0 0-.543-.687l-.11-.136c-.143-.179-.291-.363-.442-.54l-.278-.332a8.854 8.854 0 0 0-.192-.225L.417 6.28l-.283-.324L0 5.805l1.376-1.602c.04.027.186.132.186.132l.377.272.129.095c.08.058.16.115.237.175l.37.28c.192.142.382.292.565.436l.162.126c.27.21.503.398.714.574l.477.393c.078.064.156.127.23.194l.433.375.171-.205A50.865 50.865 0 0 1 8.18 4.023a35.163 35.163 0 0 1 2.382-2.213c.207-.174.42-.349.635-.518l.328-.255.333-.245c.072-.055.146-.107.221-.159l.117-.083c.11-.077.225-.155.341-.23.163-.11.334-.217.503-.32l1.158 1.74a11.908 11.908 0 0 0-.64.55l-.065.06c-.07.062-.139.125-.207.192l-.258.249-.26.265c-.173.176-.345.357-.512.539a32.626 32.626 0 0 0-1.915 2.313 52.115 52.115 0 0 0-2.572 3.746l-.392.642-.19.322-.233.382H4.016z'/></svg>\");}"),A=(0,r.default)(T,{target:"evqrzhe12",label:"BackStatusChanged"})(d.components.textBadgeDanger,";"),P=(0,r.default)("button",{target:"evqrzhe13",label:"ToolbarButton"})(d.buttons.button,";",d.buttons.default,";",g.buttonMargin,";",g.noOverflow,";display:block;@media (max-width:1200px){padding:0 10px;}"),R=(0,r.default)(P,{target:"evqrzhe14",label:"DeleteButton"})(d.buttons.lightRed,";"),M=(0,r.default)(P,{target:"evqrzhe15",label:"SaveButton"})(d.buttons.lightBlue,";"),I=(0,r.default)(v,{target:"evqrzhe16",label:"PublishedToolbarButton"})(g.publishedButton,""),j=(0,r.default)(P,{target:"evqrzhe17",label:"PublishedButton"})(g.publishedButton,""),D=(0,r.default)(v,{target:"evqrzhe18",label:"PublishButton"})("background-color:",d.colorsRaw.teal,";"),L=(0,r.default)(v,{target:"evqrzhe19",label:"StatusButton"})("background-color:",d.colorsRaw.tealLight,";color:",d.colorsRaw.teal,";"),N=(0,r.default)("div",{target:"evqrzhe20",label:"PreviewButtonContainer"})("margin-right:12px;color:",d.colorsRaw.blue,";display:flex;align-items:center;a,",d.Icon,"{color:",d.colorsRaw.blue,";}",d.Icon,"{position:relative;top:1px;}"),F=(0,r.default)("button",{target:"evqrzhe21",label:"RefreshPreviewButton"})("background:none;border:0;cursor:pointer;color:",d.colorsRaw.blue,";span{margin-right:6px;}"),B=F.withComponent("a",{target:"evqrzhe23",label:"PreviewLink"}),z=(0,r.default)(d.DropdownItem,{target:"evqrzhe22",label:"StatusDropdownItem"})(d.Icon,"{color:",d.colors.infoText,";}");class U extends i.default.Component{constructor(...e){super(...e),m(this,"renderSimpleSaveControls",()=>{const{showDelete:e,onDelete:t,t:n}=this.props;return(0,s.jsx)("div",null,e?(0,s.jsx)(R,{onClick:t},n("editor.editorToolbar.deleteEntry")):null)}),m(this,"renderDeployPreviewControls",e=>{const{deployPreview:t=(0,u.Map)(),loadDeployPreview:n,t:r}=this.props,i=t.get("url"),o=t.get("status");if(!o)return;const a=t.get("isFetching"),l="SUCCESS"===o&&!a;return(0,s.jsx)(N,null,l?(0,s.jsx)(B,{rel:"noopener noreferrer",target:"_blank",href:i},(0,s.jsx)("span",null,e),(0,s.jsx)(d.Icon,{type:"new-tab",size:"xsmall"})):(0,s.jsx)(F,{onClick:n},(0,s.jsx)("span",null,r("editor.editorToolbar.deployPreviewPendingButtonLabel")),(0,s.jsx)(d.Icon,{type:"refresh",size:"xsmall"})))}),m(this,"renderWorkflowStatusControls",()=>{const{isUpdatingStatus:e,onChangeStatus:t,currentStatus:n,t:r,useOpenAuthoring:i}=this.props;return(0,s.jsx)(E,{dropdownTopOverlap:"40px",dropdownWidth:"120px",renderButton:()=>(0,s.jsx)(L,null,r(e?"editor.editorToolbar.updating":"editor.editorToolbar.setStatus"))},(0,s.jsx)(z,{label:r("editor.editorToolbar.draft"),onClick:()=>t("DRAFT"),icon:n===f.status.get("DRAFT")?"check":null}),(0,s.jsx)(z,{label:r("editor.editorToolbar.inReview"),onClick:()=>t("PENDING_REVIEW"),icon:n===f.status.get("PENDING_REVIEW")?"check":null}),i?"":(0,s.jsx)(z,{label:r("editor.editorToolbar.ready"),onClick:()=>t("PENDING_PUBLISH"),icon:n===f.status.get("PENDING_PUBLISH")?"check":null}))}),m(this,"renderNewEntryWorkflowPublishControls",({canCreate:e,canPublish:t})=>{const{isPublishing:n,onPublish:r,onPublishAndNew:o,onPublishAndDuplicate:a,t:l}=this.props;return t?(0,s.jsx)(E,{dropdownTopOverlap:"40px",dropdownWidth:"150px",renderButton:()=>(0,s.jsx)(D,null,l(n?"editor.editorToolbar.publishing":"editor.editorToolbar.publish"))},(0,s.jsx)(d.DropdownItem,{label:l("editor.editorToolbar.publishNow"),icon:"arrow",iconDirection:"right",onClick:r}),e?(0,s.jsx)(i.default.Fragment,null,(0,s.jsx)(d.DropdownItem,{label:l("editor.editorToolbar.publishAndCreateNew"),icon:"add",onClick:o}),(0,s.jsx)(d.DropdownItem,{label:l("editor.editorToolbar.publishAndDuplicate"),icon:"add",onClick:a})):null):""}),m(this,"renderExistingEntryWorkflowPublishControls",({canCreate:e,canPublish:t})=>{const{unPublish:n,onDuplicate:r,isPersisting:i,t:o}=this.props;return t||e?(0,s.jsx)(E,{dropdownTopOverlap:"40px",dropdownWidth:"150px",renderButton:()=>(0,s.jsx)(I,null,o(i?"editor.editorToolbar.unpublishing":"editor.editorToolbar.published"))},t&&(0,s.jsx)(d.DropdownItem,{label:o("editor.editorToolbar.unpublish"),icon:"arrow",iconDirection:"right",onClick:n}),e&&(0,s.jsx)(d.DropdownItem,{label:o("editor.editorToolbar.duplicate"),icon:"add",onClick:r})):""}),m(this,"renderExistingEntrySimplePublishControls",({canCreate:e})=>{const{onDuplicate:t,t:n}=this.props;return e?(0,s.jsx)(E,{dropdownTopOverlap:"40px",dropdownWidth:"150px",renderButton:()=>(0,s.jsx)(I,null,n("editor.editorToolbar.published"))},(0,s.jsx)(d.DropdownItem,{label:n("editor.editorToolbar.duplicate"),icon:"add",onClick:t})):(0,s.jsx)(j,null,n("editor.editorToolbar.published"))}),m(this,"renderNewEntrySimplePublishControls",({canCreate:e})=>{const{onPersist:t,onPersistAndNew:n,onPersistAndDuplicate:r,isPersisting:o,t:a}=this.props;return(0,s.jsx)("div",null,(0,s.jsx)(E,{dropdownTopOverlap:"40px",dropdownWidth:"150px",renderButton:()=>(0,s.jsx)(D,null,a(o?"editor.editorToolbar.publishing":"editor.editorToolbar.publish"))},(0,s.jsx)(d.DropdownItem,{label:a("editor.editorToolbar.publishNow"),icon:"arrow",iconDirection:"right",onClick:t}),e?(0,s.jsx)(i.default.Fragment,null,(0,s.jsx)(d.DropdownItem,{label:a("editor.editorToolbar.publishAndCreateNew"),icon:"add",onClick:n}),(0,s.jsx)(d.DropdownItem,{label:a("editor.editorToolbar.publishAndDuplicate"),icon:"add",onClick:r})):null))}),m(this,"renderSimplePublishControls",()=>{const{collection:e,hasChanged:t,isNewEntry:n,t:r}=this.props,o=e.get("create");return n||t?this.renderNewEntrySimplePublishControls({canCreate:o}):(0,s.jsx)(i.default.Fragment,null,this.renderDeployPreviewControls(r("editor.editorToolbar.deployButtonLabel")),this.renderExistingEntrySimplePublishControls({canCreate:o}))}),m(this,"renderWorkflowSaveControls",()=>{const{onPersist:e,onDelete:t,onDeleteUnpublishedChanges:n,showDelete:r,hasChanged:i,hasUnpublishedChanges:o,isPersisting:a,isDeleting:l,isNewEntry:u,isModification:c,t:d}=this.props,f=o&&c&&d("editor.editorToolbar.deleteUnpublishedChanges")||o&&(u||!c)&&d("editor.editorToolbar.deleteUnpublishedEntry")||!o&&!c&&d("editor.editorToolbar.deletePublishedEntry");return[(0,s.jsx)(M,{key:"save-button",onClick:()=>i&&e()},d(a?"editor.editorToolbar.saving":"editor.editorToolbar.save")),r||o||c?(0,s.jsx)(R,{key:"delete-button",onClick:o?n:t},l?d("editor.editorToolbar.deleting"):f):null]}),m(this,"renderWorkflowPublishControls",()=>{const{collection:e,currentStatus:t,isNewEntry:n,useOpenAuthoring:r,t:o}=this.props,a=e.get("create"),l=e.get("publish")&&!r;return t?(0,s.jsx)(i.default.Fragment,null,this.renderDeployPreviewControls(o("editor.editorToolbar.deployPreviewButtonLabel")),this.renderWorkflowStatusControls(),this.renderNewEntryWorkflowPublishControls({canCreate:a,canPublish:l})):n?void 0:(0,s.jsx)(i.default.Fragment,null,this.renderDeployPreviewControls(o("editor.editorToolbar.deployButtonLabel")),this.renderExistingEntryWorkflowPublishControls({canCreate:a,canPublish:l}))})}componentDidMount(){const{isNewEntry:e,loadDeployPreview:t}=this.props;e||t({maxAttempts:3})}componentDidUpdate(e){const{isNewEntry:t,isPersisting:n,loadDeployPreview:r}=this.props;t||!e.isPersisting||n||r({maxAttempts:3})}render(){const{user:e,hasChanged:t,displayUrl:n,collection:r,hasWorkflow:i,onLogoutClick:o,t:a,editorBackLink:l}=this.props;return(0,s.jsx)(y,null,(0,s.jsx)(x,{to:l},(0,s.jsx)(S,null,"←"),(0,s.jsx)("div",null,(0,s.jsx)(O,null,a("editor.editorToolbar.backCollection",{collectionLabel:r.get("label")})),t?(0,s.jsx)(A,null,a("editor.editorToolbar.unsavedChanges")):(0,s.jsx)(C,null,a("editor.editorToolbar.changesSaved")))),(0,s.jsx)(b,null,(0,s.jsx)(_,null,i?this.renderWorkflowSaveControls():this.renderSimpleSaveControls()),(0,s.jsx)(w,null,i?this.renderWorkflowPublishControls():this.renderSimplePublishControls())),(0,s.jsx)(k,null,(0,s.jsx)(p.default,{displayUrl:n,imageUrl:e.get("avatar_url"),onLogoutClick:o})))}}m(U,"propTypes",{isPersisting:o.default.bool,isPublishing:o.default.bool,isUpdatingStatus:o.default.bool,isDeleting:o.default.bool,onPersist:o.default.func.isRequired,onPersistAndNew:o.default.func.isRequired,onPersistAndDuplicate:o.default.func.isRequired,showDelete:o.default.bool.isRequired,onDelete:o.default.func.isRequired,onDeleteUnpublishedChanges:o.default.func.isRequired,onChangeStatus:o.default.func.isRequired,onPublish:o.default.func.isRequired,unPublish:o.default.func.isRequired,onDuplicate:o.default.func.isRequired,onPublishAndNew:o.default.func.isRequired,onPublishAndDuplicate:o.default.func.isRequired,user:a.default.map.isRequired,hasChanged:o.default.bool,displayUrl:o.default.string,collection:a.default.map.isRequired,hasWorkflow:o.default.bool,useOpenAuthoring:o.default.bool,hasUnpublishedChanges:o.default.bool,isNewEntry:o.default.bool,isModification:o.default.bool,currentStatus:o.default.string,onLogoutClick:o.default.func.isRequired,deployPreview:a.default.map,loadDeployPreview:o.default.func.isRequired,t:o.default.func.isRequired,editorBackLink:o.default.string.isRequired});var q=(0,l.translate)()(U);t.default=q},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.connect)(h,null,m)(class extends i.default.Component{render(){return(0,c.jsx)(e,this.props)}})};var r,i=(r=n(1))&&r.__esModule?r:{default:r},o=n(61),a=n(103),s=n(100),l=n(67),u=n(226),c=n(11);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}function h(e,t){const{collections:n}=e,r=e.config.get("publish_mode")===a.EDITORIAL_WORKFLOW,i=n.get(t.match.params.name),o={isEditorialWorkflow:r,showDelete:!t.newEntry&&(0,l.selectAllowDeletion)(i)};if(r){const n=t.match.params[0],r=(0,s.selectUnpublishedEntry)(e,i.get("name"),n);r&&(o.unpublishedEntry=!0,o.entry=r)}return o}function m(e,t,n){const{isEditorialWorkflow:r,unpublishedEntry:i}=e,{dispatch:o}=t,a={};return r&&(a.loadEntry=(e,t)=>o((0,u.loadUnpublishedEntry)(e,t)),a.persistEntry=e=>o((0,u.persistUnpublishedEntry)(e,i))),f(f(f({},n),e),a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(18)),i=(l(n(1)),n(48)),o=n(16),a=l(n(2)),s=n(11);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)("div",{target:"e8enq1s0",label:"NotFoundContainer"})("margin:",o.lengths.pageMargin,";"),c=({t:e})=>(0,s.jsx)(u,null,(0,s.jsx)("h2",null,e("app.notFoundPage.header")));c.propTypes={t:a.default.func.isRequired};var d=(0,i.translate)()(c);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(18)),i=h(n(2)),o=h(n(1)),a=h(n(24)),s=n(11),l=n(48),u=n(118),c=n(16),d=h(n(563)),f=n(61),p=n(520);function h(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}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const v={buttonActive:(0,s.css)("color:",c.colors.active,";;label:buttonActive;")},y=e=>(0,s.jsx)("header",g({css:(0,s.css)(c.shadows.dropMain,";position:sticky;width:100%;top:0;background-color:",c.colors.foreground,";z-index:",c.zIndex.zIndex300,";height:",c.lengths.topBarHeight,";;label:AppHeader;")},e)),b=(0,r.default)("div",{target:"e16dayda0",label:"AppHeaderContent"})({name:"oh6t3a",styles:"display:flex;justify-content:space-between;min-width:800px;max-width:1440px;padding:0 12px;margin:0 auto;"}),_=(0,r.default)("button",{target:"e16dayda1",label:"AppHeaderButton"})(c.buttons.button,";background:none;color:#7b8290;font-family:inherit;font-size:16px;font-weight:500;display:inline-flex;padding:16px 20px;align-items:center;",c.Icon,"{margin-right:4px;color:#b3b9c4;}&:hover,&:active,&:focus{",v.buttonActive,";",c.Icon,"{",v.buttonActive,";}}",e=>(0,s.css)("&.",e.activeClassName,"{",v.buttonActive,";",c.Icon,"{",v.buttonActive,";}};label:AppHeaderButton;"),";"),w=_.withComponent(u.NavLink,{target:"e16dayda5",label:"AppHeaderNavLink"}),x=(0,r.default)("div",{target:"e16dayda2",label:"AppHeaderActions"})({name:"18biwo",styles:"display:inline-flex;align-items:center;"}),k=(0,r.default)(c.StyledDropdownButton,{target:"e16dayda3",label:"AppHeaderQuickNewButton"})(c.buttons.button,";",c.buttons.medium,";",c.buttons.gray,";margin-right:8px;&:after{top:11px;}"),E=(0,r.default)("ul",{target:"e16dayda4",label:"AppHeaderNavList"})({name:"lsxu3a",styles:"display:flex;margin:0;list-style:none;"});class S extends o.default.Component{constructor(...e){super(...e),m(this,"intervalId",void 0),m(this,"handleCreatePostClick",e=>{const{onCreateEntryClick:t}=this.props;t&&t(e)})}componentDidMount(){this.intervalId=setInterval(()=>{this.props.checkBackendStatus()},3e5)}componentWillUnmount(){clearInterval(this.intervalId)}render(){const{user:e,collections:t,onLogoutClick:n,openMediaLibrary:r,hasWorkflow:i,displayUrl:o,isTestRepo:a,t:l,showMediaButton:u}=this.props,f=t.filter(e=>e.get("create")).toList();return(0,s.jsx)(y,null,(0,s.jsx)(b,null,(0,s.jsx)("nav",null,(0,s.jsx)(E,null,(0,s.jsx)("li",null,(0,s.jsx)(w,{to:"/",activeClassName:"header-link-active",isActive:(e,t)=>t.pathname.startsWith("/collections/")},(0,s.jsx)(c.Icon,{type:"page"}),l("app.header.content"))),i&&(0,s.jsx)("li",null,(0,s.jsx)(w,{to:"/workflow",activeClassName:"header-link-active"},(0,s.jsx)(c.Icon,{type:"workflow"}),l("app.header.workflow"))),u&&(0,s.jsx)("li",null,(0,s.jsx)(_,{onClick:r},(0,s.jsx)(c.Icon,{type:"media-alt"}),l("app.header.media"))))),(0,s.jsx)(x,null,f.size>0&&(0,s.jsx)(c.Dropdown,{renderButton:()=>(0,s.jsx)(k,null," ",l("app.header.quickAdd")),dropdownTopOverlap:"30px",dropdownWidth:"160px",dropdownPosition:"left"},f.map(e=>(0,s.jsx)(c.DropdownItem,{key:e.get("name"),label:e.get("label_singular")||e.get("label"),onClick:()=>this.handleCreatePostClick(e.get("name"))}))),(0,s.jsx)(d.default,{displayUrl:o,isTestRepo:a,imageUrl:e.get("avatar_url"),onLogoutClick:n}))))}}m(S,"propTypes",{user:a.default.map.isRequired,collections:a.default.orderedMap.isRequired,onCreateEntryClick:i.default.func.isRequired,onLogoutClick:i.default.func.isRequired,openMediaLibrary:i.default.func.isRequired,hasWorkflow:i.default.bool.isRequired,displayUrl:i.default.string,isTestRepo:i.default.bool,t:i.default.func.isRequired,checkBackendStatus:i.default.func.isRequired});const O={checkBackendStatus:p.checkBackendStatus};var T=(0,f.connect)(null,O)((0,l.translate)()(S));t.default=T},function(e,t,n){"use strict";var r=n(122),i=a(n(1147)),o=a(n(1148));function a(e){return e&&e.__esModule?e:{default:e}}(0,r.registerWidget)("unknown",i.default,o.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;s(n(1));var r=n(48),i=s(n(24)),o=s(n(2)),a=n(11);function s(e){return e&&e.__esModule?e:{default:e}}const l=({field:e,t:t})=>(0,a.jsx)("div",null,t("editor.editorWidgets.unknownControl.noControl",{widget:e.get("widget")}));l.propTypes={field:i.default.map,t:o.default.func.isRequired};var u=(0,r.translate)()(l);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;s(n(1));var r=n(48),i=s(n(24)),o=s(n(2)),a=n(11);function s(e){return e&&e.__esModule?e:{default:e}}const l=({field:e,t:t})=>(0,a.jsx)("div",{className:"nc-widgetPreview"},t("editor.editorWidgets.unknownPreview.noPreview",{widget:e.get("widget")}));l.propTypes={field:i.default.map,t:o.default.func.isRequired};var u=(0,r.translate)()(l);t.default=u},function(e,t,n){"use strict";var r=l(n(262)),i=n(122),o=l(n(418)),a=n(160),s=n(141);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)((async function(e,t){const n=(0,i.getMediaLibrary)(e);if(n){const e=e=>o.default.dispatch((0,s.insertMedia)(e,void 0)),r=await n.init({options:t,handleInsert:e});o.default.dispatch((0,s.createMediaLibrary)(r))}else{const t=new Error(`Missing external media library '${e}'. Please use 'registerMediaLibrary' to register it.`);o.default.dispatch((0,a.configFailed)(t))}}));o.default.subscribe(()=>{const e=o.default.getState(),t=e.config.getIn(["media_library","name"]);if(t&&!e.mediaLibrary.get("externalLibrary")){const n=e.config.get("media_library").toJS();u(t,n)}})},function(e,t,n){
+/**
+ * what-input - A global utility for tracking the current input method (mouse, keyboard or touch).
+ * @version v5.2.10
+ * @link https://github.com/ten1seven/what-input
+ * @license MIT
+ */
+var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var e=document.documentElement,t=null,n="initial",r=n,i=Date.now(),o="false",a=["button","input","select","textarea"],s=[],l=[16,17,18,91,93],u=[],c={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},d=!1,f={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},h=!1;try{var m=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,m)}catch(e){}var g=function(){var e=!!h&&{passive:!0};document.addEventListener("DOMContentLoaded",v),window.PointerEvent?(window.addEventListener("pointerdown",y),window.addEventListener("pointermove",_)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",y),window.addEventListener("MSPointerMove",_)):(window.addEventListener("mousedown",y),window.addEventListener("mousemove",_),"ontouchstart"in window&&(window.addEventListener("touchstart",y,e),window.addEventListener("touchend",y))),window.addEventListener(O(),_,e),window.addEventListener("keydown",y),window.addEventListener("keyup",y),window.addEventListener("focusin",w),window.addEventListener("focusout",x)},v=function(){if(o=!(e.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(r=window.sessionStorage.getItem("what-intent"))}catch(e){}b("input"),b("intent")},y=function(e){var t=e.which,i=c[e.type];"pointer"===i&&(i=E(e));var o=!u.length&&-1===l.indexOf(t),s=u.length&&-1!==u.indexOf(t),d="keyboard"===i&&t&&(o||s)||"mouse"===i||"touch"===i;if(S(i)&&(d=!1),d&&n!==i&&(k("input",n=i),b("input")),d&&r!==i){var f=document.activeElement;f&&f.nodeName&&(-1===a.indexOf(f.nodeName.toLowerCase())||"button"===f.nodeName.toLowerCase()&&!A(f,"form"))&&(k("intent",r=i),b("intent"))}},b=function(t){e.setAttribute("data-what"+t,"input"===t?n:r),T(t)},_=function(e){var t=c[e.type];"pointer"===t&&(t=E(e)),C(e),(!d&&!S(t)||d&&"wheel"===e.type||"mousewheel"===e.type||"DOMMouseScroll"===e.type)&&r!==t&&(k("intent",r=t),b("intent"))},w=function(n){n.target.nodeName?(t=n.target.nodeName.toLowerCase(),e.setAttribute("data-whatelement",t),n.target.classList&&n.target.classList.length&&e.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):x()},x=function(){t=null,e.removeAttribute("data-whatelement"),e.removeAttribute("data-whatclasses")},k=function(e,t){if(o)try{window.sessionStorage.setItem("what-"+e,t)}catch(e){}},E=function(e){return"number"==typeof e.pointerType?p[e.pointerType]:"pen"===e.pointerType?"touch":e.pointerType},S=function(e){var t=Date.now(),r="mouse"===e&&"touch"===n&&t-i<200;return i=t,r},O=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},T=function(e){for(var t=0,i=s.length;t<i;t++)s[t].type===e&&s[t].fn.call(void 0,"input"===e?n:r)},C=function(e){f.x!==e.screenX||f.y!==e.screenY?(d=!1,f.x=e.screenX,f.y=e.screenY):d=!0},A=function(e,t){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return e.closest(t);do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(c[O()]="mouse",g()),{ask:function(e){return"intent"===e?r:n},element:function(){return t},ignoreKeys:function(e){l=e},specificKeys:function(e){u=e},registerOnChange:function(e,t){s.push({fn:e,type:t||"input"})},unRegisterOnChange:function(e){var t=function(e){for(var t=0,n=s.length;t<n;t++)if(s[t].fn===e)return t}(e);(t||0===t)&&s.splice(t,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])},e.exports=r()},function(e,t,n){"use strict";var r=n(417),i=n(372),o=n(375),a=n(1173),s=n(580),l=n(1196),u=n(1201),c=C(n(1203)),d=C(n(1206)),f=C(n(1210)),p=C(n(1214)),h=C(n(588)),m=C(n(1220)),g=C(n(1229)),v=C(n(1492)),y=C(n(400)),b=C(n(1499)),_=C(n(1504)),w=C(n(1506)),x=C(n(1513)),k=C(n(1523)),E=C(n(1527)),S=C(n(1649)),O=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=T();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(1650));function T(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return T=function(){return e},e}function C(e){return e&&e.__esModule?e:{default:e}}r.NetlifyCmsCore.registerBackend("git-gateway",a.GitGatewayBackend),r.NetlifyCmsCore.registerBackend("github",i.GitHubBackend),r.NetlifyCmsCore.registerBackend("gitlab",o.GitLabBackend),r.NetlifyCmsCore.registerBackend("bitbucket",s.BitbucketBackend),r.NetlifyCmsCore.registerBackend("test-repo",l.TestBackend),r.NetlifyCmsCore.registerBackend("proxy",u.ProxyBackend),r.NetlifyCmsCore.registerWidget([c.default.Widget(),d.default.Widget(),f.default.Widget(),p.default.Widget(),h.default.Widget(),m.default.Widget(),g.default.Widget(),v.default.Widget(),y.default.Widget(),b.default.Widget(),_.default.Widget(),w.default.Widget(),x.default.Widget(),k.default.Widget(),E.default.Widget()]),r.NetlifyCmsCore.registerEditorComponent(S.default),r.NetlifyCmsCore.registerEditorComponent({id:"code-block",label:"Code Block",widget:"code",type:"code-block"}),Object.keys(O).forEach(e=>{r.NetlifyCmsCore.registerLocale(e,O[e])})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;p(n(1));var r=d(n(191)),i=d(n(121)),o=n(107),a=n(37),s=d(n(564)),l=p(n(373)),u=d(n(1156)),c=n(11);function d(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(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){v(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}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}const{fetchWithTimeout:y}=a.unsentRequest,b=["API Requests","Issues, Pull Requests, Projects"];t.default=class{constructor(e,t={}){var n;if(v(this,"lock",void 0),v(this,"api",void 0),v(this,"options",void 0),v(this,"originRepo",void 0),v(this,"repo",void 0),v(this,"openAuthoringEnabled",void 0),v(this,"useOpenAuthoring",void 0),v(this,"branch",void 0),v(this,"apiRoot",void 0),v(this,"mediaFolder",void 0),v(this,"previewContext",void 0),v(this,"token",void 0),v(this,"squashMerges",void 0),v(this,"useGraphql",void 0),v(this,"_currentUserPromise",void 0),v(this,"_userIsOriginMaintainerPromises",void 0),v(this,"_mediaDisplayURLSem",void 0),v(this,"getCursorAndFiles",(e,t)=>{const n=e.length,r=Math.ceil(e.length/20),i=[];t>1&&(i.push("prev"),i.push("first")),t<r&&(i.push("next"),i.push("last"));return{cursor:a.Cursor.create({actions:i,meta:{page:t,count:n,pageSize:20,pageCount:r},data:{files:e}}),files:e.slice(20*(t-1),20*t)}}),this.options=g({proxied:!1,API:null,initialWorkflowStatus:""},t),!this.options.proxied&&(null===e.backend.repo||void 0===e.backend.repo))throw new Error('The GitHub backend needs a "repo" in the backend configuration.');if(this.api=this.options.API||null,this.openAuthoringEnabled=e.backend.open_authoring||!1,this.openAuthoringEnabled){if(!this.options.useWorkflow)throw new Error("backend.open_authoring is true but publish_mode is not set to editorial_workflow.");this.originRepo=e.backend.repo||""}else this.repo=this.originRepo=e.backend.repo||"";this.branch=(null===(n=e.backend.branch)||void 0===n?void 0:n.trim())||"master",this.apiRoot=e.backend.api_root||"https://api.github.com",this.token="",this.squashMerges=e.backend.squash_merges||!1,this.useGraphql=e.backend.use_graphql||!1,this.mediaFolder=e.media_folder,this.previewContext=e.backend.preview_context||"",this.lock=(0,a.asyncLock)()}isGitBackend(){return!0}async status(){const e=await y("https://www.githubstatus.com/api/v2/components.json").then(e=>e.json()).then(e=>e.components.filter(e=>b.includes(e.name)).every(e=>"operational"===e.status)).catch(e=>(console.warn("Failed getting GitHub status",e),!0));let t=!1;var n;e&&(t=await(null===(n=this.api)||void 0===n?void 0:n.getUser().then(e=>!!e).catch(e=>(console.warn("Failed getting GitHub user",e),!1)))||!1);return{auth:{status:t},api:{status:e,statusPage:"https://www.githubstatus.com"}}}authComponent(){const e=e=>(0,c.jsx)(s.default,h({},e,{backend:this}));return e.displayName="AuthenticationPage",e}restoreUser(e){return this.openAuthoringEnabled?this.authenticateWithFork({userData:e,getPermissionToFork:()=>!0}).then(()=>this.authenticate(e)):this.authenticate(e)}async pollUntilForkExists({repo:e,token:t}){let n=!1;for(;!n;)n=await y(`${this.apiRoot}/repos/${e}`,{headers:{Authorization:"token "+t}}).then(()=>!0).catch(e=>e&&404===e.status?(console.log("This 404 was expected and handled appropriately."),!1):Promise.reject(e)),n||await new Promise(e=>setTimeout(e,250));return Promise.resolve()}async currentUser({token:e}){return this._currentUserPromise||(this._currentUserPromise=y(this.apiRoot+"/user",{headers:{Authorization:"token "+e}}).then(e=>e.json())),this._currentUserPromise}async userIsOriginMaintainer({username:e,token:t}){const n=e||(await this.currentUser({token:t})).login;return this._userIsOriginMaintainerPromises=this._userIsOriginMaintainerPromises||{},this._userIsOriginMaintainerPromises[n]||(this._userIsOriginMaintainerPromises[n]=y(`${this.apiRoot}/repos/${this.originRepo}/collaborators/${n}/permission`,{headers:{Authorization:"token "+t}}).then(e=>e.json()).then(({permission:e})=>"admin"===e||"write"===e)),this._userIsOriginMaintainerPromises[n]}async forkExists({token:e}){try{const t=await this.currentUser({token:e}),n=this.originRepo.split("/")[1],r=await y(`${this.apiRoot}/repos/${t.login}/${n}`,{method:"GET",headers:{Authorization:"token "+e}}).then(e=>e.json());return!0===r.fork&&r.parent&&r.parent.full_name.toLowerCase()===this.originRepo.toLowerCase()}catch{return!1}}async authenticateWithFork({userData:e,getPermissionToFork:t}){if(!this.openAuthoringEnabled)throw new Error("Cannot authenticate with fork; Open Authoring is turned off.");const n=e.token;if(await this.userIsOriginMaintainer({token:n}))return this.repo=this.originRepo,this.useOpenAuthoring=!1,Promise.resolve();await this.forkExists({token:n})||await t();const r=await y(`${this.apiRoot}/repos/${this.originRepo}/forks`,{method:"POST",headers:{Authorization:"token "+n}}).then(e=>e.json());return this.useOpenAuthoring=!0,this.repo=r.full_name,this.pollUntilForkExists({repo:r.full_name,token:n})}async authenticate(e){this.token=e.token;const t=this.useGraphql?u.default:l.default;this.api=new t({token:this.token,branch:this.branch,repo:this.repo,originRepo:this.originRepo,apiRoot:this.apiRoot,squashMerges:this.squashMerges,useOpenAuthoring:this.useOpenAuthoring,initialWorkflowStatus:this.options.initialWorkflowStatus});const n=await this.api.user();if(!await this.api.hasWriteAccess().catch(e=>{throw e.message=o.stripIndent`
+ Repo "${this.repo}" not found.
+
+ Please ensure the repo information is spelled correctly.
+
+ If the repo is private, make sure you're logged into a GitHub account with access.
+
+ If your repo is under an organization, ensure the organization has granted access to Netlify
+ CMS.
+ `,e}))throw new Error("Your GitHub user account does not have access to this repo.");return g(g({},n),{},{token:e.token,useOpenAuthoring:this.useOpenAuthoring})}logout(){if(this.token=null,this.api&&this.api.reset&&"function"==typeof this.api.reset)return this.api.reset()}getToken(){return Promise.resolve(this.token)}async entriesByFolder(e,t,n){const r=this.api.originRepoURL;let i;const o=await(0,a.entriesByFolder)(()=>this.api.listFiles(e,{repoURL:r,depth:n}).then(e=>{const n=e.filter(e=>(0,a.filterByExtension)(e,t)),r=this.getCursorAndFiles(n,1);return i=r.cursor,r.files}),(e,t)=>this.api.readFile(e,t,{repoURL:r}),this.api.readFileMetadata.bind(this.api),l.API_NAME);return o[a.CURSOR_COMPATIBILITY_SYMBOL]=i,o}async allEntriesByFolder(e,t,n){const r=this.api.originRepoURL;return await(0,a.entriesByFolder)(()=>this.api.listFiles(e,{repoURL:r,depth:n}).then(e=>e.filter(e=>(0,a.filterByExtension)(e,t))),(e,t)=>this.api.readFile(e,t,{repoURL:r}),this.api.readFileMetadata.bind(this.api),l.API_NAME)}entriesByFiles(e){const t=this.useOpenAuthoring?this.api.originRepoURL:this.api.repoURL;return(0,a.entriesByFiles)(e,(e,n)=>this.api.readFile(e,n,{repoURL:t}).catch(()=>""),this.api.readFileMetadata.bind(this.api),l.API_NAME)}getEntry(e){const t=this.api.originRepoURL;return this.api.readFile(e,null,{repoURL:t}).then(t=>({file:{path:e,id:null},data:t})).catch(()=>({file:{path:e,id:null},data:""}))}getMedia(e=this.mediaFolder){return this.api.listFiles(e).then(e=>e.map(({id:e,name:t,size:n,path:r})=>({id:e,name:t,size:n,displayURL:{id:e,path:r},path:r})))}async getMediaFile(e){const t=await(0,a.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),n=(0,a.basename)(e),r=(0,a.blobToFileObj)(n,t),i=URL.createObjectURL(r);return{id:await(0,a.getBlobSHA)(t),displayURL:i,path:e,name:n,size:r.size,file:r,url:i}}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,r.default)(10),(0,a.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}persistEntry(e,t=[],n){return(0,a.runWithLock)(this.lock,()=>this.api.persistFiles(e,t,n),"Failed to acquire persist entry lock")}async persistMedia(e,t){try{await this.api.persistFiles(null,[e],t);const{sha:n,path:r,fileObj:o}=e,a=URL.createObjectURL(o);return{id:n,name:o.name,size:o.size,displayURL:a,path:(0,i.default)(r,"/")}}catch(e){throw console.error(e),e}}deleteFile(e,t){return this.api.deleteFile(e,t)}async traverseCursor(e,t){const n=e.meta,r=e.data.get("files").toJS();let i;switch(t){case"first":i=this.getCursorAndFiles(r,1);break;case"last":i=this.getCursorAndFiles(r,n.get("pageCount"));break;case"next":i=this.getCursorAndFiles(r,n.get("page")+1);break;case"prev":i=this.getCursorAndFiles(r,n.get("page")-1);break;default:i=this.getCursorAndFiles(r,1)}return{entries:await(0,a.entriesByFiles)(i.files,(e,t)=>this.api.readFile(e,t,{repoURL:this.api.originRepoURL}).catch(()=>""),this.api.readFileMetadata.bind(this.api),l.API_NAME),cursor:i.cursor}}async loadMediaFile(e,t){const n=await(0,a.getMediaAsBlob)(t.path,t.id,(t,n,{parseText:r})=>this.api.readFile(t,n,{branch:e,parseText:r})),r=(0,a.basename)(t.path),i=(0,a.blobToFileObj)(r,n);return{id:t.id,displayURL:URL.createObjectURL(i),path:t.path,name:r,size:i.size,file:i}}async unpublishedEntries(){return await(0,a.unpublishedEntries)(()=>this.api.listUnpublishedBranches().then(e=>e.map(e=>(0,a.contentKeyFromBranch)(e))))}async unpublishedEntry({id:e,collection:t,slug:n}){if(e){return await this.api.retrieveUnpublishedEntryData(e)}if(t&&n){const e=this.api.generateContentKey(t,n);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){const n=this.api.generateContentKey(e,t);return(0,a.branchFromContentKey)(n)}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(i,{path:n,id:r})}async getDeployPreview(e,t){try{const n=await this.api.getStatuses(e,t),r=(0,a.getPreviewStatus)(n,this.previewContext);if(r){const{target_url:e,state:t}=r;return{url:e,status:t}}return null}catch(e){return null}}updateUnpublishedEntryStatus(e,t,n){return(0,a.runWithLock)(this.lock,()=>this.api.updateUnpublishedEntryStatus(e,t,n),"Failed to acquire update entry status lock")}deleteUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,()=>this.api.deleteUnpublishedEntry(e,t),"Failed to acquire delete entry lock")}publishUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,()=>this.api.publishUnpublishedEntry(e,t),"Failed to acquire publish entry lock")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(138)),i=o(n(163));function o(e){return e&&e.__esModule?e:{default:e}}class a{constructor(e){this.err=e}toString(){return this.err&&this.err.message}}const s={github:{width:960,height:600},gitlab:{width:960,height:600},bitbucket:{width:960,height:500},email:{width:500,height:400}};var l=class{constructor(e={}){this.site_id=e.site_id||null,this.base_url=(0,i.default)(e.base_url,"/")||"https://api.netlify.com",this.auth_endpoint=(0,r.default)(e.auth_endpoint,"/")||"auth"}handshakeCallback(e,t){const n=r=>{if(r.data==="authorizing:"+e.provider&&r.origin===this.base_url)return window.removeEventListener("message",n,!1),window.addEventListener("message",this.authorizeCallback(e,t),!1),this.authWindow.postMessage(r.data,r.origin)};return n}authorizeCallback(e,t){const n=r=>{if(r.origin===this.base_url){if(0===r.data.indexOf("authorization:"+e.provider+":success:")){const i=JSON.parse(r.data.match(new RegExp("^authorization:"+e.provider+":success:(.+)$"))[1]);window.removeEventListener("message",n,!1),this.authWindow.close(),t(null,i)}if(0===r.data.indexOf("authorization:"+e.provider+":error:")){const i=JSON.parse(r.data.match(new RegExp("^authorization:"+e.provider+":error:(.+)$"))[1]);window.removeEventListener("message",n,!1),this.authWindow.close(),t(new a(i))}}};return n}getSiteID(){if(this.site_id)return this.site_id;const e=document.location.host.split(":")[0];return"localhost"===e?"cms.netlify.com":e}authenticate(e,t){const{provider:n}=e,r=this.getSiteID();if(!n)return t(new a({message:"You must specify a provider when calling netlify.authenticate"}));if(!r)return t(new a({message:"You must set a site_id with netlify.configure({site_id: 'your-site-id'}) to make authentication work from localhost"}));const i=s[n]||s.github,o=screen.width/2-i.width/2,l=screen.height/2-i.height/2;window.addEventListener("message",this.handshakeCallback(e,t),!1);let u=`${this.base_url}/${this.auth_endpoint}?provider=${e.provider}&site_id=${r}`;e.scope&&(u+="&scope="+e.scope),!0===e.login&&(u+="&login=true"),e.beta_invite&&(u+="&beta_invite="+e.beta_invite),e.invite_code&&(u+="&invite_code="+e.invite_code),this.authWindow=window.open(u,"Netlify Authorization",`width=${i.width}, height=${i.height}, top=${l}, left=${o}`),this.authWindow.focus()}refresh(e,t){const{provider:n,refresh_token:r}=e,i=this.getSiteID(),o=t||Promise.reject.bind(Promise);if(!n||!r)return o(new a({message:"You must specify a provider and refresh token when calling netlify.refresh"}));if(!i)return o(new a({message:"You must set a site_id with netlify.configure({site_id: 'your-site-id'}) to make token refresh work from localhost"}));const s=`${this.base_url}/${this.auth_endpoint}/refresh?provider=${n}&site_id=${i}&refresh_token=${r}`,l=fetch(s,{method:"POST",body:""}).then(e=>e.json());if(!t)return l;l.then(e=>t(null,e)).catch(t)}};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(4),i=s(n(138)),o=s(n(163)),a=s(n(140));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function d(){const e=(0,a.default)();return window.sessionStorage.setItem("netlify-cms-auth",JSON.stringify({nonce:e})),e}t.default=class{constructor(e={}){const t=(0,o.default)(e.base_url,"/"),n=(0,i.default)(e.auth_endpoint,"/");this.auth_url=`${t}/${n}`,this.appID=e.app_id,this.clearHash=e.clearHash}authenticate(e,t){if("https:"!==document.location.protocol&&"localhost"!==document.location.hostname&&"127.0.0.1"!==document.location.hostname)return t(new Error("Cannot authenticate over insecure protocol!"));const n=new URL(this.auth_url);n.searchParams.set("client_id",this.appID),n.searchParams.set("redirect_uri",document.location.origin+document.location.pathname),n.searchParams.set("response_type","token"),n.searchParams.set("scope",e.scope);const r=JSON.stringify({auth_type:"implicit",nonce:d()});n.searchParams.set("state",r),document.location.assign(n.href)}completeAuth(e){const t=new URLSearchParams(document.location.hash.replace(/^#?\/?/,""));if(!t.has("access_token")&&!t.has("error"))return;this.clearHash();const n=(0,r.Map)(t.entries()),{nonce:i}=JSON.parse(n.get("state"));if(!function(e){const t=window.sessionStorage.getItem("netlify-cms-auth"),n=t&&JSON.parse(t).nonce;return window.localStorage.removeItem("netlify-cms-auth"),e===n}(i))return e(new Error("Invalid nonce"));if(n.has("error"))return e(new Error(`${n.get("error")}: ${n.get("error_description")}`));if(n.has("access_token")){const t=n.toJS(),{access_token:r}=t;e(null,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({token:r},c(t,["access_token"])))}}}},function(e,t,n){var r=n(216);e.exports=function(e){return(null==e?0:e.length)?r(e,0,-1):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(121)),i=g(n(138)),o=n(1157),a=n(1679),s=n(1683),l=n(1159),u=n(37),c=g(n(1160)),d=m(n(373)),f=m(n(1161)),p=m(n(1171));function h(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function m(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _=new a.IntrospectionFragmentMatcher({introspectionQueryResultData:c.default}),w=e=>y(y({},e),{},{labels:e.labels.nodes,head:{ref:e.headRefName,sha:e.headRefOid,repo:{fork:e.repository.isFork}},base:{ref:e.baseRefName,sha:e.baseRefOid}});class x extends d.default{constructor(e){super(e),b(this,"client",void 0),this.client=this.getApolloClient()}getApolloClient(){const e=(0,l.setContext)((e,{headers:t})=>({headers:y(y({"Content-Type":"application/json; charset=utf-8"},t),{},{authorization:this.token?"token "+this.token:""})})),t=(0,s.createHttpLink)({uri:this.apiRoot+"/graphql"});return new o.ApolloClient({link:e.concat(t),cache:new a.InMemoryCache({fragmentMatcher:_}),defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"}}})}reset(){return this.client.resetStore()}async getRepository(e,t){const{data:n}=await this.query({query:f.repository,variables:{owner:e,name:t},fetchPolicy:"cache-first"});return n.repository}query(e){return this.client.query(e).catch(e=>{throw new u.APIError(e.message,500,"GitHub")})}async mutate(e){try{return await this.client.mutate(e)}catch(l){const c=l.graphQLErrors;if(Array.isArray(c)&&c.some(e=>"Ref cannot be created."===e.message)){var t,n;const i=(null==e||null===(t=e.variables)||void 0===t||null===(n=t.createRefInput)||void 0===n?void 0:n.name)||"",o=(0,r.default)(i,"refs/heads/");o&&await(0,u.throwOnConflictingBranches)(o,e=>this.getBranch(e),d.API_NAME)}else if(Array.isArray(c)&&c.some(e=>new RegExp(`A ref named "refs/heads/${u.CMS_BRANCH_PREFIX}/.+?" already exists in the repository.`).test(e.message))){var i,o,a,s;const t=(null==e||null===(i=e.variables)||void 0===i||null===(o=i.createRefInput)||void 0===o?void 0:o.name)||"",n=(null==e||null===(a=e.variables)||void 0===a||null===(s=a.createRefInput)||void 0===s?void 0:s.oid)||"",l=(0,r.default)(t,"refs/heads/");if(l&&l.startsWith(u.CMS_BRANCH_PREFIX+"/")&&n)try{await this.backupBranch(l),await this.deleteBranch(l);return await this.client.mutate(e)}catch(e){console.log(e)}}throw new u.APIError(l.message,500,"GitHub")}}async hasWriteAccess(){const{repoOwner:e,repoName:t}=this;try{const{data:n}=await this.query({query:f.repoPermission,variables:{owner:e,name:t},fetchPolicy:"cache-first"}),{viewerPermission:r}=n.repository;return["ADMIN","MAINTAIN","WRITE"].includes(r)}catch(e){throw console.error("Problem fetching repo data from GitHub"),e}}async user(){const{data:e}=await this.query({query:f.user,fetchPolicy:"cache-first"});return e.viewer}async retrieveBlobObject(e,t,n,r={}){const{data:i}=await this.query(y({query:f.blob,variables:{owner:e,name:t,expression:n}},r));if(i.repository.object){const{is_binary:e,text:t}=i.repository.object;return{isNull:!1,isBinary:e,text:t}}return{isNull:!0}}getOwnerAndNameFromRepoUrl(e){let{repoOwner:t,repoName:n}=this;return e===this.originRepoURL&&({originRepoOwner:t,originRepoName:n}=this),{owner:t,name:n}}async readFile(e,t,{branch:n=this.branch,repoURL:r=this.repoURL,parseText:i=!0}={}){t||(t=await this.getFileSha(e,{repoURL:r,branch:n}));return await(0,u.readFile)(t,()=>this.fetchBlobContent({sha:t,repoURL:r,parseText:i}),u.localForage,i)}async fetchBlobContent({sha:e,repoURL:t,parseText:n}){if(!n)return super.fetchBlobContent({sha:e,repoURL:t,parseText:n});const{owner:r,name:i}=this.getOwnerAndNameFromRepoUrl(t),{isNull:o,isBinary:a,text:s}=await this.retrieveBlobObject(r,i,e,{fetchPolicy:"cache-first"});if(o)throw new u.APIError("Not Found",404,"GitHub");return a?super.fetchBlobContent({sha:e,repoURL:t,parseText:n}):s}async getPullRequests(e,t,n){const{originRepoOwner:r,originRepoName:i}=this;let o;o=t===d.PullRequestState.Open?["OPEN"]:t===d.PullRequestState.Closed?["CLOSED","MERGED"]:["OPEN","CLOSED","MERGED"];const{data:a}=await this.query({query:f.pullRequests,variables:y(y({owner:r,name:i},e?{head:e}:{}),{},{states:o})}),{pullRequests:s}=a.repository;return s.nodes.map(w).filter(e=>e.head.ref.startsWith(u.CMS_BRANCH_PREFIX+"/")&&n(e))}async getOpenAuthoringBranches(){const{repoOwner:e,repoName:t}=this,{data:n}=await this.query({query:f.openAuthoringBranches,variables:{owner:e,name:t,refPrefix:`refs/heads/cms/${this.repo}/`}});return n.repository.refs.nodes.map(({name:e,prefix:t})=>({ref:`${t}${e}`}))}async getStatuses(e,t){const n=this.generateContentKey(e,t),r=(0,u.branchFromContentKey)(n),i=(await this.getBranchPullRequest(r)).head.sha,{originRepoOwner:o,originRepoName:a}=this,{data:s}=await this.query({query:f.statues,variables:{owner:o,name:a,sha:i}});if(s.repository.object){const{status:e}=s.repository.object,{contexts:t}=e||{contexts:[]};return t}return[]}getAllFiles(e,t){return e.reduce((e,n)=>{if("tree"===n.type){var r;const i=(null===(r=n.object)||void 0===r?void 0:r.entries)||[];return[...e,...this.getAllFiles(i,`${t}/${n.name}`)]}return"blob"===n.type?[...e,{name:n.name,type:n.type,id:n.sha,path:`${t}/${n.name}`,size:n.blob?n.blob.size:0}]:e},[])}async listFiles(e,{repoURL:t=this.repoURL,branch:n=this.branch,depth:r=1}={}){const{owner:o,name:a}=this.getOwnerAndNameFromRepoUrl(t),s=(0,i.default)(e,"/"),{data:l}=await this.query({query:f.files(r),variables:{owner:o,name:a,expression:`${n}:${s}`}});if(l.repository.object){return this.getAllFiles(l.repository.object.entries,s)}return[]}getBranchQualifiedName(e){return"refs/heads/"+e}getBranchQuery(e,t,n){return{query:f.branch,variables:{owner:t,name:n,qualifiedName:this.getBranchQualifiedName(e)}}}async getDefaultBranch(){const{data:e}=await this.query(y({},this.getBranchQuery(this.branch,this.originRepoOwner,this.originRepoName)));return e.repository.branch}async getBranch(e){const{data:t}=await this.query(y(y({},this.getBranchQuery(e,this.repoOwner,this.repoName)),{},{fetchPolicy:"cache-first"}));if(!t.repository.branch)throw new u.APIError("Branch not found",404,d.API_NAME);return t.repository.branch}async patchRef(e,t,n,r={}){if("heads"!==e)return super.patchRef(e,t,n,r);const i=r.force||!1,o=await this.getBranch(t),{data:a}=await this.mutate({mutation:p.updateBranch,variables:{input:{oid:n,refId:o.id,force:i}}});return a.updateRef.branch}async deleteBranch(e){const t=await this.getBranch(e),{data:n}=await this.mutate({mutation:p.deleteBranch,variables:{deleteRefInput:{refId:t.id}},update:e=>e.data.delete((0,a.defaultDataIdFromObject)(t))});return n.deleteRef}getPullRequestQuery(e){const{originRepoOwner:t,originRepoName:n}=this;return{query:f.pullRequest,variables:{owner:t,name:n,number:e}}}async getPullRequest(e){const{data:t}=await this.query(y(y({},this.getPullRequestQuery(e)),{},{fetchPolicy:"cache-first"})),n="OPEN"===t.repository.pullRequest.state?d.PullRequestState.Open:d.PullRequestState.Closed;return y(y({},t.repository.pullRequest),{},{state:n})}getPullRequestAndBranchQuery(e,t){const{repoOwner:n,repoName:r}=this,{originRepoOwner:i,originRepoName:o}=this;return{query:f.pullRequestAndBranch,variables:{owner:n,name:r,originRepoOwner:i,originRepoName:o,number:t,qualifiedName:this.getBranchQualifiedName(e)}}}async getPullRequestAndBranch(e,t){const{data:n}=await this.query(y(y({},this.getPullRequestAndBranchQuery(e,t)),{},{fetchPolicy:"cache-first"})),{repository:r,origin:i}=n;return{branch:r.branch,pullRequest:i.pullRequest}}async openPR(e){const t=await this.getPullRequest(e),{data:n}=await this.mutate({mutation:p.reopenPullRequest,variables:{reopenPullRequestInput:{pullRequestId:t.id}},update:(e,{data:t})=>{const{pullRequest:n}=t.reopenPullRequest,r={repository:y(y({},n.repository),{},{pullRequest:n})};e.writeQuery(y(y({},this.getPullRequestQuery(n.number)),{},{data:r}))}});return n.reopenPullRequest}async closePR(e){const t=await this.getPullRequest(e),{data:n}=await this.mutate({mutation:p.closePullRequest,variables:{closePullRequestInput:{pullRequestId:t.id}},update:(e,{data:t})=>{const{pullRequest:n}=t.closePullRequest,r={repository:y(y({},n.repository),{},{pullRequest:n})};e.writeQuery(y(y({},this.getPullRequestQuery(n.number)),{},{data:r}))}});return n.closePullRequest}async deleteUnpublishedEntry(e,t){try{const n=this.generateContentKey(e,t),r=(0,u.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);if(i.number!==d.MOCK_PULL_REQUEST){const{branch:e,pullRequest:t}=await this.getPullRequestAndBranch(r,i.number),{data:n}=await this.mutate({mutation:p.closePullRequestAndDeleteBranch,variables:{deleteRefInput:{refId:e.id},closePullRequestInput:{pullRequestId:t.id}},update:n=>{n.data.delete((0,a.defaultDataIdFromObject)(e)),n.data.delete((0,a.defaultDataIdFromObject)(t))}});return n.closePullRequest}return await this.deleteBranch(r)}catch(e){const{graphQLErrors:t}=e;if(t&&t.length>0){if(t.some(e=>"NOT_FOUND"===e.type))return}throw e}}async createPR(e,t){const[n,r]=await Promise.all([this.getRepository(this.originRepoOwner,this.originRepoName),this.useOpenAuthoring?`${(await this.user()).login}:${t}`:t]),{data:i}=await this.mutate({mutation:p.createPullRequest,variables:{createPullRequestInput:{baseRefName:this.branch,body:u.DEFAULT_PR_BODY,title:e,headRefName:r,repositoryId:n.id}},update:(e,{data:t})=>{const{pullRequest:n}=t.createPullRequest,r={repository:y(y({},n.repository),{},{pullRequest:n})};e.writeQuery(y(y({},this.getPullRequestQuery(n.number)),{},{data:r}))}}),{pullRequest:o}=i.createPullRequest;return y(y({},o),{},{head:{sha:o.headRefOid}})}async createBranch(e,t){const n=this.repoOwner,r=this.repoName,i=await this.getRepository(n,r),{data:o}=await this.mutate({mutation:p.createBranch,variables:{createRefInput:{name:this.getBranchQualifiedName(e),oid:t,repositoryId:i.id}},update:(t,{data:i})=>{const{branch:o}=i.createRef,a={repository:y(y({},o.repository),{},{branch:o})};t.writeQuery(y(y({},this.getBranchQuery(e,n,r)),{},{data:a}))}}),{branch:a}=o.createRef;return y(y({},a),{},{ref:`${a.prefix}${a.name}`})}async createBranchAndPullRequest(e,t,n){const r=this.originRepoOwner,i=this.originRepoName,o=await this.getRepository(r,i),{data:a}=await this.mutate({mutation:p.createBranchAndPullRequest,variables:{createRefInput:{name:this.getBranchQualifiedName(e),oid:t,repositoryId:o.id},createPullRequestInput:{baseRefName:this.branch,body:u.DEFAULT_PR_BODY,title:n,headRefName:e,repositoryId:o.id}},update:(t,{data:n})=>{const{branch:o}=n.createRef,{pullRequest:a}=n.createPullRequest,s={repository:y(y({},o.repository),{},{branch:o})},l={repository:y(y({},a.repository),{},{branch:o}),origin:y(y({},a.repository),{},{pullRequest:a})};t.writeQuery(y(y({},this.getBranchQuery(e,r,i)),{},{data:s})),t.writeQuery(y(y({},this.getPullRequestAndBranchQuery(e,a.number)),{},{data:l}))}}),{pullRequest:s}=a.createPullRequest;return w(s)}async getFileSha(e,{repoURL:t=this.repoURL,branch:n=this.branch}={}){const{owner:r,name:i}=this.getOwnerAndNameFromRepoUrl(t),{data:o}=await this.query({query:f.fileSha,variables:{owner:r,name:i,expression:`${n}:${e}`}});if(o.repository.file)return o.repository.file.sha;throw new u.APIError("Not Found",404,d.API_NAME)}}t.default=x},function(e,t,n){"use strict";n.r(t),n.d(t,"ApolloClient",(function(){return A})),n.d(t,"ApolloError",(function(){return v})),n.d(t,"FetchType",(function(){return g})),n.d(t,"NetworkStatus",(function(){return r})),n.d(t,"ObservableQuery",(function(){return y})),n.d(t,"isApolloError",(function(){return m}));var r,i=n(7),o=n(13),a=n(132),s=n(65),l=n(99),u=n(236),c=n(20),d=n(92);function f(e){return e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(r||(r={}));var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(t,e),t.prototype[u.a]=function(){return this},t.prototype["@@observable"]=function(){return this},t}(s.a);function h(e){return Array.isArray(e)&&e.length>0}function m(e){return e.hasOwnProperty("graphQLErrors")}var g,v=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.networkError,s=n.errorMessage,l=n.extraInfo,u=e.call(this,s)||this;return u.graphQLErrors=o||[],u.networkError=a||null,u.message=s||(i="",h((r=u).graphQLErrors)&&r.graphQLErrors.forEach((function(e){var t=e?e.message:"Error message not found.";i+="GraphQL error: "+t+"\n"})),r.networkError&&(i+="Network error: "+r.networkError.message+"\n"),i=i.replace(/\n$/,"")),u.extraInfo=l,u.__proto__=t.prototype,u}return Object(i.c)(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(g||(g={}));var y=function(e){function t(t){var n=t.queryManager,r=t.options,i=t.shouldSubscribe,a=void 0===i||i,s=e.call(this,(function(e){return s.onSubscribe(e)}))||this;s.observers=new Set,s.subscriptions=new Set,s.isTornDown=!1,s.options=r,s.variables=r.variables||{},s.queryId=n.generateQueryId(),s.shouldSubscribe=a;var l=Object(o.m)(r.query);return s.queryName=l&&l.name&&l.name.value,s.queryManager=n,s}return Object(i.c)(t,e),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:r.error}}var t,n,o,a=this.queryManager.getCurrentQueryResult(this),s=a.data,l=a.partial,u=this.queryManager.queryStore.get(this.queryId),c=this.options.fetchPolicy,d="network-only"===c||"no-cache"===c;if(u){var p=u.networkStatus;if(n=u,void 0===(o=this.options.errorPolicy)&&(o="none"),n&&(n.networkError||"none"===o&&h(n.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:p,error:new v({graphQLErrors:u.graphQLErrors,networkError:u.networkError})};u.variables&&(this.options.variables=Object(i.a)(Object(i.a)({},this.options.variables),u.variables),this.variables=this.options.variables),t={data:s,loading:f(p),networkStatus:p},u.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=u.graphQLErrors)}else{var m=d||l&&"cache-only"!==c;t={data:s,loading:m,networkStatus:m?r.loading:r.ready}}return l||this.updateLastResult(Object(i.a)(Object(i.a)({},t),{stale:!1})),Object(i.a)(Object(i.a)({},t),{partial:l})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&Object(a.a)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new c.a(1)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),Object(a.a)(this.variables,e)||(this.variables=Object(i.a)(Object(i.a)({},this.variables),e)),Object(a.a)(this.options.variables,this.variables)||(this.options.variables=Object(i.a)(Object(i.a)({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,Object(i.a)(Object(i.a)({},this.options),{fetchPolicy:t}),g.refetch))},t.prototype.fetchMore=function(e){var t=this;Object(c.b)(e.updateQuery,2);var n=Object(i.a)(Object(i.a)({},e.query?e:Object(i.a)(Object(i.a)(Object(i.a)({},this.options),e),{variables:Object(i.a)(Object(i.a)({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),r=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(r,n,g.normal,this.queryId).then((function(i){return t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:n.variables})})),t.queryManager.stopQuery(r),i}),(function(e){throw t.queryManager.stopQuery(r),e}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=Object(i.a)(Object(i.a)({},this.options),e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var n=e.fetchPolicy;return this.setVariables(this.options.variables,t!==n&&("cache-only"===t||"standby"===t||"network-only"===n),e.fetchResults)},t.prototype.setVariables=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!0),this.isTornDown=!1,e=e||this.variables,!t&&Object(a.a)(e,this.variables)?this.observers.size&&n?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.getQueryWithPreviousResult(this.queryId),r=n.previousResult,i=n.variables,a=n.document,s=Object(o.I)((function(){return e(r,{variables:i})}));s&&(t.dataStore.markUpdateQueryResult(a,i,s),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){w(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Object(o.f)(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var n=e._subscription._observer;n&&!n.error&&(n.error=b)}catch(e){}var r=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),r&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,n=this.queryId;this.shouldSubscribe&&t.addObservableQuery(n,this),this.options.pollInterval&&(w(this),t.startPollingQuery(this.options,n));var o=function(t){e.updateLastResult(Object(i.a)(Object(i.a)({},e.lastResult),{errors:t.graphQLErrors,networkStatus:r.error,loading:!1})),_(e.observers,"error",e.lastError=t)};t.observeQuery(n,this.options,{next:function(n){if(e.lastError||e.isDifferentFromLastResult(n)){var r=e.updateLastResult(n),i=e.options,o=i.query,s=i.variables,l=i.fetchPolicy;t.transform(o).hasClientExports?t.getLocalState().addExportedVariables(o,s).then((function(i){var s=e.variables;e.variables=e.options.variables=i,!n.loading&&r&&"cache-only"!==l&&t.transform(o).serverQuery&&!Object(a.a)(s,i)?e.refetch():_(e.observers,"next",n)})):_(e.observers,"next",n)}},error:o}).catch(o)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(p);function b(e){}function _(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function w(e){var t=e.options.fetchPolicy;Object(c.b)("cache-first"!==t&&"cache-only"!==t,3)}var x=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,n){this.store[e]={mutation:t,variables:n||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var n=this.store[e];n&&(n.loading=!1,n.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),k=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];Object(c.b)(!t||t.document===e.document||Object(a.a)(t.document,e.document),19);var n,i=!1,o=null;e.storePreviousVariables&&t&&t.networkStatus!==r.loading&&(Object(a.a)(t.variables,e.variables)||(i=!0,o=t.variables)),n=i?r.setVariables:e.isPoll?r.poll:e.isRefetch?r.refetch:r.loading;var s=[];t&&t.graphQLErrors&&(s=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:o,networkError:null,graphQLErrors:s,networkStatus:n,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=r.fetchMore)},e.prototype.markQueryResult=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=h(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=r.ready,"string"==typeof n&&this.store[n]&&(this.store[n].networkStatus=r.ready))},e.prototype.markQueryError=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=r.error,"string"==typeof n&&this.markQueryResultClient(n,!0))},e.prototype.markQueryResultClient=function(e,t){var n=this.store&&this.store[e];n&&(n.networkError=null,n.previousVariables=null,t&&(n.networkStatus=r.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(n){e.indexOf(n)<0?t.stopQuery(n):t.store[n].networkStatus=r.loading}))},e}();var E=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(o.A)(t.resolvers,e)})):this.resolvers=Object(o.A)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,o,this.fragmentMatcher,s).then((function(e){return Object(i.a)(Object(i.a)({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(o.s)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?Object(o.C)(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return Object(i.a)(Object(i.a)({},e),{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);Object(c.b)(!1,6)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return Object(i.a)(Object(i.a)({},t),e.exportedVariables)}))]:[2,Object(i.a)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(d.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return d.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(o.d)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,a,s){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===a&&(a=function(){return!0}),void 0===s&&(s=!1),Object(i.b)(this,void 0,void 0,(function(){var l,u,c,d,f,p,h,m,g;return Object(i.d)(this,(function(v){var y;return l=Object(o.l)(e),u=Object(o.j)(e),c=Object(o.g)(u),d=l.operation,f=d?(y=d).charAt(0).toUpperCase()+y.slice(1):"Query",h=(p=this).cache,m=p.client,g={fragmentMap:c,context:Object(i.a)(Object(i.a)({},n),{cache:h,client:m}),variables:r,fragmentMatcher:a,defaultOperationType:f,exportedVariables:{},onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(l.selectionSet,t,g).then((function(e){return{result:e,exportedVariables:g.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return Object(i.b)(this,void 0,void 0,(function(){var r,a,s,l,u,d=this;return Object(i.d)(this,(function(f){return r=n.fragmentMap,a=n.context,s=n.variables,l=[t],u=function(e){return Object(i.b)(d,void 0,void 0,(function(){var u,d;return Object(i.d)(this,(function(i){return Object(o.F)(e,s)?Object(o.t)(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&l.push(((n={})[Object(o.E)(e)]=t,n))}))]:(Object(o.v)(e)?u=e:(u=r[e.name.value],Object(c.b)(u,7)),u&&u.typeCondition&&(d=u.typeCondition.name.value,n.fragmentMatcher(t,d,a))?[2,this.resolveSelectionSet(u.selectionSet,t,n).then((function(e){l.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(u)).then((function(){return Object(o.B)(l)}))]}))}))},e.prototype.resolveField=function(e,t,n){return Object(i.b)(this,void 0,void 0,(function(){var r,a,s,l,u,c,d,f,p,h=this;return Object(i.d)(this,(function(i){return r=n.variables,a=e.name.value,s=Object(o.E)(e),l=a!==s,u=t[s]||t[a],c=Promise.resolve(u),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(d=t.__typename||n.defaultOperationType,(f=this.resolvers&&this.resolvers[d])&&(p=f[l?a:s])&&(c=Promise.resolve(p(t,Object(o.b)(e,r),n.context,{field:e,fragmentMap:n.fragmentMap})))),[2,c.then((function(t){return void 0===t&&(t=u),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?h.resolveSubSelectedArray(e,t,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}();function S(e){var t=new Set,n=null;return new p((function(r){return t.add(r),n=n||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}}),function(){t.delete(r)&&!t.size&&n&&(n.unsubscribe(),n=null)}}))}var O=Object.prototype.hasOwnProperty,T=function(){function e(e){var t=e.link,n=e.queryDeduplication,r=void 0!==n&&n,i=e.store,a=e.onBroadcast,s=void 0===a?function(){}:a,l=e.ssrMode,u=void 0!==l&&l,c=e.clientAwareness,d=void 0===c?{}:c,f=e.localState,p=e.assumeImmutableResults;this.mutationStore=new x,this.queryStore=new k,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(o.e?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=r,this.dataStore=i,this.onBroadcast=s,this.clientAwareness=d,this.localState=f||new E({cache:i.getCache()}),this.ssrMode=u,this.assumeImmutableResults=!!p}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.fetchQueryRejectFns.forEach((function(e){e(new c.a(8))}))},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,a=e.updateQueries,s=e.refetchQueries,l=void 0===s?[]:s,u=e.awaitRefetchQueries,d=void 0!==u&&u,f=e.update,p=e.errorPolicy,m=void 0===p?"none":p,g=e.fetchPolicy,y=e.context,b=void 0===y?{}:y;return Object(i.b)(this,void 0,void 0,(function(){var e,s,u,p=this;return Object(i.d)(this,(function(y){switch(y.label){case 0:return Object(c.b)(t,9),Object(c.b)(!g||"no-cache"===g,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,(function(){return{document:t}})),n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,b)]:[3,2];case 1:n=y.sent(),y.label=2;case 2:return s=function(){var e={};return a&&p.queries.forEach((function(t,n){var r=t.observableQuery;if(r){var i=r.queryName;i&&O.call(a,i)&&(e[n]={updater:a[i],query:p.queryStore.get(n)})}})),e},this.mutationStore.initMutation(e,t,n),this.dataStore.markMutationInit({mutationId:e,document:t,variables:n,updateQueries:s(),update:f,optimisticResponse:r}),this.broadcastQueries(),u=this,[2,new Promise((function(a,c){var p,y;u.getObservableFromLink(t,Object(i.a)(Object(i.a)({},b),{optimisticResponse:r}),n,!1).subscribe({next:function(r){Object(o.q)(r)&&"none"===m?y=new v({graphQLErrors:r.errors}):(u.mutationStore.markMutationResult(e),"no-cache"!==g&&u.dataStore.markMutationResult({mutationId:e,result:r,document:t,variables:n,updateQueries:s(),update:f}),p=r)},error:function(t){u.mutationStore.markMutationError(e,t),u.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),u.broadcastQueries(),u.setQuery(e,(function(){return{document:null}})),c(new v({networkError:t}))},complete:function(){if(y&&u.mutationStore.markMutationError(e,y),u.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),u.broadcastQueries(),y)c(y);else{"function"==typeof l&&(l=l(p));var t=[];h(l)&&l.forEach((function(e){if("string"==typeof e)u.queries.forEach((function(n){var r=n.observableQuery;r&&r.queryName===e&&t.push(r.refetch())}));else{var n={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(n.context=e.context),t.push(u.query(n))}})),Promise.all(d?t:[]).then((function(){u.setQuery(e,(function(){return{document:null}})),"ignore"===m&&p&&Object(o.q)(p)&&delete p.errors,a(p)}))}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,n,r){return Object(i.b)(this,void 0,void 0,(function(){var a,s,l,u,c,d,f,p,h,y,b,_,w,x,k,E,S,O,T=this;return Object(i.d)(this,(function(C){switch(C.label){case 0:return a=t.metadata,s=void 0===a?null:a,l=t.fetchPolicy,u=void 0===l?"cache-first":l,c=t.context,d=void 0===c?{}:c,f=this.transform(t.query).document,p=this.getVariables(f,t.variables),this.transform(f).hasClientExports?[4,this.localState.addExportedVariables(f,p,d)]:[3,2];case 1:p=C.sent(),C.label=2;case 2:if(t=Object(i.a)(Object(i.a)({},t),{variables:p}),b=y="network-only"===u||"no-cache"===u,y||(_=this.dataStore.getCache().diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),w=_.complete,x=_.result,b=!w||"cache-and-network"===u,h=x),k=b&&"cache-only"!==u&&"standby"!==u,Object(o.s)(["live"],f)&&(k=!0),E=this.idCounter++,S="no-cache"!==u?this.updateQueryWatch(e,f,t):void 0,this.setQuery(e,(function(){return{document:f,lastRequestId:E,invalidated:!0,cancel:S}})),this.invalidate(r),this.queryStore.initQuery({queryId:e,document:f,storePreviousVariables:k,variables:p,isPoll:n===g.poll,isRefetch:n===g.refetch,metadata:s,fetchMoreForQueryId:r}),this.broadcastQueries(),k){if(O=this.fetchRequest({requestId:E,queryId:e,document:f,options:t,fetchMoreForQueryId:r}).catch((function(t){throw m(t)?t:(E>=T.getQuery(e).lastRequestId&&(T.queryStore.markQueryError(e,t,r),T.invalidate(e),T.invalidate(r),T.broadcastQueries()),new v({networkError:t}))})),"cache-and-network"!==u)return[2,O];O.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!k),this.invalidate(e),this.invalidate(r),this.transform(f).hasForcedResolvers?[2,this.localState.runResolvers({document:f,remoteResult:{data:h},context:d,variables:p,onlyRunForcedResolvers:!0}).then((function(n){return T.markQueryResult(e,n,t,r),T.broadcastQueries(),n}))]:(this.broadcastQueries(),[2,{data:h}])}}))}))},e.prototype.markQueryResult=function(e,t,n,r){var i=n.fetchPolicy,o=n.variables,a=n.errorPolicy;"no-cache"===i?this.setQuery(e,(function(){return{newData:{result:t.data,complete:!0}}})):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,r,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,n){var r=this;function i(e,t){if(n[e])try{n[e](t)}catch(e){}}return function(n,o){if(r.invalidate(e,!1),n){var a=r.getQuery(e),s=a.observableQuery,l=a.document,u=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==u){var c=f(n.networkStatus),d=s&&s.getLastResult(),p=!(!d||d.networkStatus===n.networkStatus),m=t.returnPartialData||!o&&n.previousVariables||p&&t.notifyOnNetworkStatusChange||"cache-only"===u||"cache-and-network"===u;if(!c||m){var g=h(n.graphQLErrors),y=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===y&&g||n.networkError)return i("error",new v({graphQLErrors:n.graphQLErrors,networkError:n.networkError}));try{var b=void 0,_=void 0;if(o)"no-cache"!==u&&"network-only"!==u&&r.setQuery(e,(function(){return{newData:null}})),b=o.result,_=!o.complete;else{var w=s&&s.getLastError(),x="none"!==y&&(w&&w.graphQLErrors)!==n.graphQLErrors;if(d&&d.data&&!x)b=d.data,_=!1;else{var k=r.dataStore.getCache().diff({query:l,variables:n.previousVariables||n.variables,returnPartialData:!0,optimistic:!0});b=k.result,_=!k.complete}}var E=_&&!(t.returnPartialData||"cache-only"===u),S={data:E?d&&d.data:b,loading:c,networkStatus:n.networkStatus,stale:E};"all"===y&&g&&(S.errors=n.graphQLErrors),i("next",S)}catch(e){i("error",new v({networkError:e}))}}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.dataStore.getCache(),r=n.transformDocument(e),i=Object(o.D)(n.transformForLink(r)),a=this.localState.clientQuery(r),s=this.localState.serverQuery(i),l={document:r,hasClientExports:Object(o.r)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:a,serverQuery:s,defaultVars:Object(o.h)(Object(o.m)(r))},u=function(e){e&&!t.has(e)&&t.set(e,l)};u(e),u(r),u(a),u(s)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(i.a)(Object(i.a)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),Object(c.b)("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=Object(i.a)({},e);return new y({queryManager:this,options:n,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return Object(c.b)(e.query,12),Object(c.b)("Document"===e.query.kind,13),Object(c.b)(!e.returnPartialData,14),Object(c.b)(!e.pollInterval,15),new Promise((function(n,r){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,r),i.result().then(n,r).then((function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){return e.listeners.add(t),{invalidated:!1}}))},e.prototype.updateQueryWatch=function(e,t,n){var r=this,i=this.getQuery(e).cancel;i&&i();return this.dataStore.getCache().watch({query:t,variables:n.variables,optimistic:!0,previousResult:function(){var t=null,n=r.getQuery(e).observableQuery;if(n){var i=n.getLastResult();i&&(t=i.data)}return t},callback:function(t){r.setQuery(e,(function(){return{invalidated:!0,newData:t}}))}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}})),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new c.a(16))}));var e=[];return this.queries.forEach((function(t,n){t.observableQuery&&e.push(n)})),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.queries.forEach((function(r,i){var o=r.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||n.push(o.refetch()),t.setQuery(i,(function(){return{newData:null}})),t.invalidate(i)}})),this.broadcastQueries(),Promise.all(n)},e.prototype.observeQuery=function(e,t,n){return this.addQueryListener(e,this.queryListenerForObserver(e,t,n)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,n){return this.addQueryListener(e,n),this.fetchQuery(e,t).catch((function(){})),e},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.variables;n=this.transform(n).document,i=this.getVariables(n,i);var a=function(e){return t.getObservableFromLink(n,{},e,!1).map((function(i){if(r&&"no-cache"===r||(t.dataStore.markSubscriptionResult(i,n,e),t.broadcastQueries()),Object(o.q)(i))throw new v({graphQLErrors:i.errors});return i}))};if(this.transform(n).hasClientExports){var s=this.localState.addExportedVariables(n,i).then(a);return new p((function(e){var t=null;return s.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return a(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var n=e.options,r=n.variables,i=n.query,o=n.fetchPolicy,a=n.returnPartialData,s=e.getLastResult(),l=this.getQuery(e.queryId).newData;if(l&&l.complete)return{data:l.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var u=this.dataStore.getCache().diff({query:i,variables:r,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),c=u.result,d=u.complete;return{data:d||a?c:void 0,partial:!d}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"==typeof e){var n=this.getQuery(e).observableQuery;Object(c.b)(n,17),t=n}else t=e;var r=t.options,i=r.variables,o=r.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach((function(t,n){t.invalidated&&t.listeners.forEach((function(r){r&&r(e.queryStore.get(n),t.newData)}))}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var a,s=this;void 0===r&&(r=this.queryDeduplication);var u=this.transform(e).serverQuery;if(u){var c=this.inFlightLinkObservables,d=this.link,f={query:u,variables:n,operationName:Object(o.n)(u)||void 0,context:this.prepareContext(Object(i.a)(Object(i.a)({},t),{forceFetch:!r}))};if(t=f.context,r){var h=c.get(u)||new Map;c.set(u,h);var m=JSON.stringify(n);if(!(a=h.get(m))){h.set(m,a=S(Object(l.b)(d,f)));var g=function(){h.delete(m),h.size||c.delete(u),v.unsubscribe()},v=a.subscribe({next:g,error:g,complete:g})}}else a=S(Object(l.b)(d,f))}else a=p.of({data:{}}),t=this.prepareContext(t);var y=this.transform(e).clientQuery;return y&&(a=function(e,t){return new p((function(n){var r=n.next,i=n.error,o=n.complete,a=0,s=!1,l={next:function(e){++a,new Promise((function(n){n(t(e))})).then((function(e){--a,r&&r.call(n,e),s&&l.complete()}),(function(e){--a,i&&i.call(n,e)}))},error:function(e){i&&i.call(n,e)},complete:function(){s=!0,a||o&&o.call(n)}},u=e.subscribe(l);return function(){return u.unsubscribe()}}))}(a,(function(e){return s.localState.runResolvers({document:y,remoteResult:e,context:t,variables:n})}))),a},e.prototype.fetchRequest=function(e){var t,n,i=this,o=e.requestId,a=e.queryId,s=e.document,l=e.options,u=e.fetchMoreForQueryId,c=l.variables,d=l.errorPolicy,f=void 0===d?"none":d,p=l.fetchPolicy;return new Promise((function(e,d){var m=i.getObservableFromLink(s,l.context,c),g="fetchRequest:"+a;i.fetchQueryRejectFns.set(g,d);var y=function(){i.fetchQueryRejectFns.delete(g),i.setQuery(a,(function(e){e.subscriptions.delete(b)}))},b=m.map((function(e){if(o>=i.getQuery(a).lastRequestId&&(i.markQueryResult(a,e,l,u),i.queryStore.markQueryResult(a,e,u),i.invalidate(a),i.invalidate(u),i.broadcastQueries()),"none"===f&&h(e.errors))return d(new v({graphQLErrors:e.errors}));if("all"===f&&(n=e.errors),u||"no-cache"===p)t=e.data;else{var r=i.dataStore.getCache().diff({variables:c,query:s,optimistic:!1,returnPartialData:!0}),m=r.result;(r.complete||l.returnPartialData)&&(t=m)}})).subscribe({error:function(e){y(),d(e)},complete:function(){y(),e({data:t,errors:n,loading:!1,networkStatus:r.ready,stale:!1})}});i.setQuery(a,(function(e){e.subscriptions.add(b)}))}))},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var n=this.getQuery(e),r=Object(i.a)(Object(i.a)({},n),t(n));this.queries.set(e,r)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,(function(){return{invalidated:t}}))},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(i.a)(Object(i.a)({},t),{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==r.ready&&t.networkStatus!==r.error},e.prototype.startPollingQuery=function(e,t,n){var r=this,o=e.pollInterval;if(Object(c.b)(o,18),!this.ssrMode){var a=this.pollingInfoByQueryId.get(t);a||this.pollingInfoByQueryId.set(t,a={}),a.interval=o,a.options=Object(i.a)(Object(i.a)({},e),{fetchPolicy:"network-only"});var s=function(){var e=r.pollingInfoByQueryId.get(t);e&&(r.checkInFlight(t)?l():r.fetchQuery(t,e.options,g.poll).then(l,l))},l=function(){var e=r.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(s,e.interval))};n&&this.addQueryListener(t,n),l()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),C=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,n,r,i){void 0===i&&(i=!1);var a=!Object(o.q)(e);i&&Object(o.q)(e)&&e.data&&(a=!0),!r&&a&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:n})},e.prototype.markSubscriptionResult=function(e,t,n){Object(o.q)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:n})},e.prototype.markMutationInit=function(e){var t,n=this;e.optimisticResponse&&(t="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction((function(r){var i=n.cache;n.cache=r;try{n.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{n.cache=i}}),e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!Object(o.q)(e.result)){var n=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],r=e.updateQueries;r&&Object.keys(r).forEach((function(i){var a=r[i],s=a.query,l=a.updater,u=t.cache.diff({query:s.document,variables:s.variables,returnPartialData:!0,optimistic:!1}),c=u.result;if(u.complete){var d=Object(o.I)((function(){return l(c,{mutationResult:e.result,queryName:Object(o.n)(s.document)||void 0,queryVariables:s.variables})}));d&&n.push({result:d,dataId:"ROOT_QUERY",query:s.document,variables:s.variables})}})),this.cache.performTransaction((function(t){n.forEach((function(e){return t.write(e)}));var r=e.update;r&&Object(o.I)((function(){return r(t,e.result)}))}))}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,n){this.cache.write({result:n,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),A=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.cache,r=e.ssrMode,i=void 0!==r&&r,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,u=e.queryDeduplication,d=void 0===u||u,f=e.defaultOptions,p=e.assumeImmutableResults,h=void 0!==p&&p,m=e.resolvers,g=e.typeDefs,v=e.fragmentMatcher,y=e.name,b=e.version,_=e.link;if(!_&&m&&(_=l.a.empty()),!_||!n)throw new c.a(4);this.link=_,this.cache=n,this.store=new C(n),this.disableNetworkFetches=i||a>0,this.queryDeduplication=d,this.defaultOptions=f||{},this.typeDefs=g,a&&setTimeout((function(){return t.disableNetworkFetches=!1}),a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);void 0!==s&&(s&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new E({cache:n,client:this,resolvers:m,fragmentMatcher:v}),this.queryManager=new T({link:this.link,store:this.store,queryDeduplication:d,ssrMode:i,clientAwareness:{name:y,version:b},localState:this.localState,assumeImmutableResults:h,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(i.a)(Object(i.a)({},this.defaultOptions.watchQuery),e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(i.a)(Object(i.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(i.a)(Object(i.a)({},this.defaultOptions.query),e)),Object(c.b)("cache-and-network"!==e.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(i.a)(Object(i.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(i.a)(Object(i.a)({},this.defaultOptions.mutate),e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Object(l.b)(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e}();t.default=A},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var a=function(){return"function"==typeof Symbol},s=function(e){return a()&&Boolean(Symbol[e])},l=function(e){return s(e)?Symbol[e]:"@@"+e};a()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var u=l("iterator"),c=l("observable"),d=l("species");function f(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function p(e){var t=e.constructor;return void 0!==t&&null===(t=t[d])&&(t=void 0),void 0!==t?t:k}function h(e){return e instanceof k}function m(e){m.log?m.log(e):setTimeout((function(){throw e}))}function g(e){Promise.resolve().then((function(){try{e()}catch(e){m(e)}}))}function v(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=f(t,"unsubscribe");n&&n.call(t)}}catch(e){m(e)}}function y(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function b(e,t,n){e._state="running";var r=e._observer;try{var i=f(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(y(e),!i)throw n;i.call(r,n);break;case"complete":y(e),i&&i.call(r)}}catch(e){m(e)}"closed"===e._state?v(e):"running"===e._state&&(e._state="ready")}function _(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void g((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(b(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void b(e,t,n);e._queue.push({type:t,value:n})}}var w=function(){function e(t,n){r(this,e),this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var i=new x(this);try{this._cleanup=n.call(void 0,i)}catch(e){i.error(e)}"initializing"===this._state&&(this._state="ready")}return o(e,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(y(this),v(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),e}(),x=function(){function e(t){r(this,e),this._subscription=t}return o(e,[{key:"next",value:function(e){_(this._subscription,"next",e)}},{key:"error",value:function(e){_(this._subscription,"error",e)}},{key:"complete",value:function(){_(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),k=function(){function e(t){if(r(this,e),!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}return o(e,[{key:"subscribe",value:function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new w(e,this._subscriber)}},{key:"forEach",value:function(e){var t=this;return new Promise((function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}}))}},{key:"map",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(p(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))}},{key:"filter",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(p(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))}},{key:"reduce",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=p(this),r=arguments.length>1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=p(this);return new i((function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))}},{key:"flatMap",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=p(this);return new n((function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))}},{key:c,value:function(){return this}}],[{key:"from",value:function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=f(t,c);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return h(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(s("iterator")&&(r=f(t,u)))return new n((function(e){g((function(){if(!e.closed){var n=!0,i=!1,o=void 0;try{for(var a,s=r.call(t)[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value;if(e.next(l),e.closed)return}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){g((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")}},{key:"of",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i="function"==typeof this?this:e;return new i((function(e){g((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))}},{key:d,get:function(){return this}}]),e}();t.Observable=k,a()&&Object.defineProperty(k,Symbol("extensions"),{value:{symbol:c,hostReportError:m},configurable:!0})},function(e,t,n){"use strict";n.r(t),n.d(t,"setContext",(function(){return a}));var r=n(7),i=n(99),o=n(65);function a(e){return new i.a((function(t,n){var i=Object(r.e)(t,[]);return new o.a((function(r){var o;return Promise.resolve(i).then((function(n){return e(n,t.getContext())})).then(t.setContext).then((function(){o=n(t).subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)})})).catch(r.error.bind(r)),function(){o&&o.unsubscribe()}}))}))}},function(e,t,n){"use strict";e.exports={__schema:{types:[{kind:"INTERFACE",name:"Node",possibleTypes:[{name:"AddedToProjectEvent"},{name:"App"},{name:"AssignedEvent"},{name:"BaseRefChangedEvent"},{name:"BaseRefForcePushedEvent"},{name:"Blob"},{name:"Bot"},{name:"BranchProtectionRule"},{name:"ClosedEvent"},{name:"CodeOfConduct"},{name:"CommentDeletedEvent"},{name:"Commit"},{name:"CommitComment"},{name:"CommitCommentThread"},{name:"ConvertedNoteToIssueEvent"},{name:"CrossReferencedEvent"},{name:"DemilestonedEvent"},{name:"DeployKey"},{name:"DeployedEvent"},{name:"Deployment"},{name:"DeploymentEnvironmentChangedEvent"},{name:"DeploymentStatus"},{name:"ExternalIdentity"},{name:"Gist"},{name:"GistComment"},{name:"HeadRefDeletedEvent"},{name:"HeadRefForcePushedEvent"},{name:"HeadRefRestoredEvent"},{name:"Issue"},{name:"IssueComment"},{name:"Label"},{name:"LabeledEvent"},{name:"Language"},{name:"License"},{name:"LockedEvent"},{name:"Mannequin"},{name:"MarketplaceCategory"},{name:"MarketplaceListing"},{name:"MentionedEvent"},{name:"MergedEvent"},{name:"Milestone"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"Organization"},{name:"OrganizationIdentityProvider"},{name:"OrganizationInvitation"},{name:"PinnedEvent"},{name:"Project"},{name:"ProjectCard"},{name:"ProjectColumn"},{name:"PublicKey"},{name:"PullRequest"},{name:"PullRequestCommit"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"},{name:"PullRequestReviewThread"},{name:"PushAllowance"},{name:"Reaction"},{name:"ReadyForReviewEvent"},{name:"Ref"},{name:"ReferencedEvent"},{name:"RegistryPackage"},{name:"RegistryPackageDependency"},{name:"RegistryPackageFile"},{name:"RegistryPackageTag"},{name:"RegistryPackageVersion"},{name:"Release"},{name:"ReleaseAsset"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"Repository"},{name:"RepositoryInvitation"},{name:"RepositoryTopic"},{name:"ReviewDismissalAllowance"},{name:"ReviewDismissedEvent"},{name:"ReviewRequest"},{name:"ReviewRequestRemovedEvent"},{name:"ReviewRequestedEvent"},{name:"SavedReply"},{name:"SecurityAdvisory"},{name:"SponsorsListing"},{name:"Sponsorship"},{name:"Status"},{name:"StatusContext"},{name:"SubscribedEvent"},{name:"Tag"},{name:"Team"},{name:"Topic"},{name:"TransferredEvent"},{name:"Tree"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"},{name:"User"},{name:"UserBlockedEvent"},{name:"UserContentEdit"},{name:"UserStatus"}]},{kind:"INTERFACE",name:"UniformResourceLocatable",possibleTypes:[{name:"Bot"},{name:"ClosedEvent"},{name:"Commit"},{name:"CrossReferencedEvent"},{name:"Gist"},{name:"Issue"},{name:"Mannequin"},{name:"MergedEvent"},{name:"Milestone"},{name:"Organization"},{name:"PullRequest"},{name:"PullRequestCommit"},{name:"ReadyForReviewEvent"},{name:"Release"},{name:"Repository"},{name:"RepositoryTopic"},{name:"ReviewDismissedEvent"},{name:"User"}]},{kind:"INTERFACE",name:"Actor",possibleTypes:[{name:"Bot"},{name:"Mannequin"},{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"RegistryPackageOwner",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"User"}]},{kind:"INTERFACE",name:"ProjectOwner",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"User"}]},{kind:"INTERFACE",name:"Closable",possibleTypes:[{name:"Issue"},{name:"Milestone"},{name:"Project"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Updatable",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"Project"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"UNION",name:"ProjectCardItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Assignable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Comment",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"UpdatableComment",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Labelable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Lockable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"RegistryPackageSearch",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"RepositoryOwner",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"MemberStatusable",possibleTypes:[{name:"Organization"},{name:"Team"}]},{kind:"INTERFACE",name:"ProfileOwner",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"UNION",name:"PinnableItem",possibleTypes:[{name:"Gist"},{name:"Repository"}]},{kind:"INTERFACE",name:"Starrable",possibleTypes:[{name:"Gist"},{name:"Repository"},{name:"Topic"}]},{kind:"INTERFACE",name:"RepositoryInfo",possibleTypes:[{name:"Repository"}]},{kind:"INTERFACE",name:"GitObject",possibleTypes:[{name:"Blob"},{name:"Commit"},{name:"Tag"},{name:"Tree"}]},{kind:"INTERFACE",name:"RepositoryNode",possibleTypes:[{name:"CommitComment"},{name:"CommitCommentThread"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Subscribable",possibleTypes:[{name:"Commit"},{name:"Issue"},{name:"PullRequest"},{name:"Repository"},{name:"Team"}]},{kind:"INTERFACE",name:"Deletable",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"IssueComment"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Reactable",possibleTypes:[{name:"CommitComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"GitSignature",possibleTypes:[{name:"GpgSignature"},{name:"SmimeSignature"},{name:"UnknownSignature"}]},{kind:"UNION",name:"RequestedReviewer",possibleTypes:[{name:"User"},{name:"Team"},{name:"Mannequin"}]},{kind:"UNION",name:"PullRequestTimelineItem",possibleTypes:[{name:"Commit"},{name:"CommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewThread"},{name:"PullRequestReviewComment"},{name:"IssueComment"},{name:"ClosedEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"UnsubscribedEvent"},{name:"MergedEvent"},{name:"ReferencedEvent"},{name:"CrossReferencedEvent"},{name:"AssignedEvent"},{name:"UnassignedEvent"},{name:"LabeledEvent"},{name:"UnlabeledEvent"},{name:"MilestonedEvent"},{name:"DemilestonedEvent"},{name:"RenamedTitleEvent"},{name:"LockedEvent"},{name:"UnlockedEvent"},{name:"DeployedEvent"},{name:"DeploymentEnvironmentChangedEvent"},{name:"HeadRefDeletedEvent"},{name:"HeadRefRestoredEvent"},{name:"HeadRefForcePushedEvent"},{name:"BaseRefForcePushedEvent"},{name:"ReviewRequestedEvent"},{name:"ReviewRequestRemovedEvent"},{name:"ReviewDismissedEvent"},{name:"UserBlockedEvent"}]},{kind:"UNION",name:"Closer",possibleTypes:[{name:"Commit"},{name:"PullRequest"}]},{kind:"UNION",name:"ReferencedSubject",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"Assignee",possibleTypes:[{name:"Bot"},{name:"Mannequin"},{name:"Organization"},{name:"User"}]},{kind:"UNION",name:"MilestoneItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"RenamedTitleSubject",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"PullRequestTimelineItems",possibleTypes:[{name:"PullRequestCommit"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewThread"},{name:"PullRequestRevisionMarker"},{name:"BaseRefChangedEvent"},{name:"BaseRefForcePushedEvent"},{name:"DeployedEvent"},{name:"DeploymentEnvironmentChangedEvent"},{name:"HeadRefDeletedEvent"},{name:"HeadRefForcePushedEvent"},{name:"HeadRefRestoredEvent"},{name:"MergedEvent"},{name:"ReviewDismissedEvent"},{name:"ReviewRequestedEvent"},{name:"ReviewRequestRemovedEvent"},{name:"ReadyForReviewEvent"},{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"AddedToProjectEvent"},{name:"AssignedEvent"},{name:"ClosedEvent"},{name:"CommentDeletedEvent"},{name:"ConvertedNoteToIssueEvent"},{name:"DemilestonedEvent"},{name:"LabeledEvent"},{name:"LockedEvent"},{name:"MentionedEvent"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"PinnedEvent"},{name:"ReferencedEvent"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"TransferredEvent"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UserBlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"}]},{kind:"UNION",name:"IssueOrPullRequest",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"IssueTimelineItem",possibleTypes:[{name:"Commit"},{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"ClosedEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"UnsubscribedEvent"},{name:"ReferencedEvent"},{name:"AssignedEvent"},{name:"UnassignedEvent"},{name:"LabeledEvent"},{name:"UnlabeledEvent"},{name:"UserBlockedEvent"},{name:"MilestonedEvent"},{name:"DemilestonedEvent"},{name:"RenamedTitleEvent"},{name:"LockedEvent"},{name:"UnlockedEvent"},{name:"TransferredEvent"}]},{kind:"UNION",name:"IssueTimelineItems",possibleTypes:[{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"AddedToProjectEvent"},{name:"AssignedEvent"},{name:"ClosedEvent"},{name:"CommentDeletedEvent"},{name:"ConvertedNoteToIssueEvent"},{name:"DemilestonedEvent"},{name:"LabeledEvent"},{name:"LockedEvent"},{name:"MentionedEvent"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"PinnedEvent"},{name:"ReferencedEvent"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"TransferredEvent"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UserBlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"}]},{kind:"UNION",name:"ReviewDismissalAllowanceActor",possibleTypes:[{name:"User"},{name:"Team"}]},{kind:"UNION",name:"PushAllowanceActor",possibleTypes:[{name:"User"},{name:"Team"}]},{kind:"UNION",name:"PermissionGranter",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"Team"}]},{kind:"INTERFACE",name:"Sponsorable",possibleTypes:[{name:"User"}]},{kind:"INTERFACE",name:"Contribution",possibleTypes:[{name:"CreatedCommitContribution"},{name:"CreatedIssueContribution"},{name:"CreatedPullRequestContribution"},{name:"CreatedPullRequestReviewContribution"},{name:"CreatedRepositoryContribution"},{name:"JoinedGitHubContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedRepositoryOrRestrictedContribution",possibleTypes:[{name:"CreatedRepositoryContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedIssueOrRestrictedContribution",possibleTypes:[{name:"CreatedIssueContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedPullRequestOrRestrictedContribution",possibleTypes:[{name:"CreatedPullRequestContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"SearchResultItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"},{name:"Repository"},{name:"User"},{name:"Organization"},{name:"MarketplaceListing"},{name:"App"}]},{kind:"UNION",name:"CollectionItemContent",possibleTypes:[{name:"Repository"},{name:"Organization"},{name:"User"}]}]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileSha=t.pullRequestAndBranch=t.pullRequests=t.pullRequest=t.repository=t.openAuthoringBranches=t.branch=t.files=t.statues=t.blob=t.user=t.repoPermission=void 0;var r,i=(r=n(374))&&r.__esModule?r:{default:r},o=n(107),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(575));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}const l=i.default`
+ query repoPermission($owner: String!, $name: String!) {
+ repository(owner: $owner, name: $name) {
+ ...RepositoryParts
+ viewerPermission
+ }
+ }
+ ${a.repository}
+`;t.repoPermission=l;const u=i.default`
+ query {
+ viewer {
+ id
+ avatar_url: avatarUrl
+ name
+ login
+ }
+ }
+`;t.user=u;const c=i.default`
+ query blob($owner: String!, $name: String!, $expression: String!) {
+ repository(owner: $owner, name: $name) {
+ ...RepositoryParts
+ object(expression: $expression) {
+ ... on Blob {
+ ...BlobWithTextParts
+ }
+ }
+ }
+ }
+ ${a.repository}
+ ${a.blobWithText}
+`;t.blob=c;const d=i.default`
+ query statues($owner: String!, $name: String!, $sha: GitObjectID!) {
+ repository(owner: $owner, name: $name) {
+ ...RepositoryParts
+ object(oid: $sha) {
+ ...ObjectParts
+ ... on Commit {
+ status {
+ id
+ contexts {
+ id
+ context
+ state
+ target_url: targetUrl
+ }
+ }
+ }
+ }
+ }
+ }
+ ${a.repository}
+ ${a.object}
+`;t.statues=d;t.files=e=>i.default`
+ query files($owner: String!, $name: String!, $expression: String!) {
+ repository(owner: $owner, name: $name) {
+ ...RepositoryParts
+ object(expression: $expression) {
+ ${((e=1)=>{let t=o.oneLine`
+ ...ObjectParts
+ ... on Tree {
+ entries {
+ ...FileEntryParts
+ ${"PLACE_HOLDER"}
+ }
+ }
+ `;for(let n=0;n<e-1;n++)t=t.replace("PLACE_HOLDER",o.oneLine`
+ object {
+ ... on Tree {
+ entries {
+ ...FileEntryParts
+ ${"PLACE_HOLDER"}
+ }
+ }
+ }
+ `);return t=t.replace("PLACE_HOLDER",""),t})(e)}
+ }
+ }
+ }
+ ${a.repository}
+ ${a.object}
+ ${a.fileEntry}
+`;const f="\nbranch: ref(qualifiedName: $qualifiedName) {\n ...BranchParts\n}\n",p=i.default`
+ query branch($owner: String!, $name: String!, $qualifiedName: String!) {
+ repository(owner: $owner, name: $name) {
+ ...RepositoryParts
+ ${f}
+ }
+ }
+ ${a.repository}
+ ${a.branch}
+`;t.branch=p;const h=i.default`
+ query openAuthoringBranches($owner: String!, $name: String!, $refPrefix: String!) {
+ repository(owner: $owner, name: $name) {
+ ...RepositoryParts
+ refs(refPrefix: $refPrefix, last: 100) {
+ nodes {
+ ...BranchParts
+ }
+ }
+ }
+ }
+ ${a.repository}
+ ${a.branch}
+`;t.openAuthoringBranches=h;const m=i.default`
+ query repository($owner: String!, $name: String!) {
+ repository(owner: $owner, name: $name) {
+ ...RepositoryParts
+ }
+ }
+ ${a.repository}
+`;t.repository=m;const g=i.default`
+ query pullRequest($owner: String!, $name: String!, $number: Int!) {
+ repository(owner: $owner, name: $name) {
+ id
+ ${"\npullRequest(number: $number) {\n ...PullRequestParts\n}\n"}
+ }
+ }
+ ${a.pullRequest}
+`;t.pullRequest=g;const v=i.default`
+ query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {
+ repository(owner: $owner, name: $name) {
+ id
+ pullRequests(last: 100, headRefName: $head, states: $states) {
+ nodes {
+ ...PullRequestParts
+ }
+ }
+ }
+ }
+ ${a.pullRequest}
+`;t.pullRequests=v;const y=i.default`
+ query pullRequestAndBranch($owner: String!, $name: String!, $originRepoOwner: String!, $originRepoName: String!, $qualifiedName: String!, $number: Int!) {
+ repository(owner: $owner, name: $name) {
+ ...RepositoryParts
+ ${f}
+ }
+ origin: repository(owner: $originRepoOwner, name: $originRepoName) {
+ ...RepositoryParts
+ ${"\npullRequest(number: $number) {\n ...PullRequestParts\n}\n"}
+ }
+ }
+ ${a.repository}
+ ${a.branch}
+ ${a.pullRequest}
+`;t.pullRequestAndBranch=y;const b=i.default`
+ query fileSha($owner: String!, $name: String!, $expression: String!) {
+ repository(owner: $owner, name: $name) {
+ ...RepositoryParts
+ file: object(expression: $expression) {
+ ...ObjectParts
+ }
+ }
+ }
+ ${a.repository}
+ ${a.object}
+`;t.fileSha=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t){return new p(e,t).parseDocument()},t.parseValue=function(e,t){var n=new p(e,t);n.expectToken(d.TokenKind.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(d.TokenKind.EOF),r},t.parseType=function(e,t){var n=new p(e,t);n.expectToken(d.TokenKind.SOF);var r=n.parseTypeReference();return n.expectToken(d.TokenKind.EOF),r};var r=f(n(567)),i=f(n(570)),o=f(n(571)),a=n(572),s=n(1166),l=n(1167),u=n(1169),c=n(1170),d=n(574);function f(e){return e&&e.__esModule?e:{default:e}}var p=function(){function e(e,t){var n="string"==typeof e?new l.Source(e):e;n instanceof l.Source||(0,i.default)(0,"Must provide Source. Received: ".concat((0,r.default)(n))),this._lexer=(0,u.createLexer)(n),this._options=t||{}}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(d.TokenKind.NAME);return{kind:s.Kind.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:s.Kind.DOCUMENT,definitions:this.many(d.TokenKind.SOF,this.parseDefinition,d.TokenKind.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(d.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(d.TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(d.TokenKind.BRACE_L))return{kind:s.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(d.TokenKind.NAME)&&(t=this.parseName()),{kind:s.Kind.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(d.TokenKind.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(d.TokenKind.PAREN_L,this.parseVariableDefinition,d.TokenKind.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:s.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(d.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(d.TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(d.TokenKind.DOLLAR),{kind:s.Kind.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:s.Kind.SELECTION_SET,selections:this.many(d.TokenKind.BRACE_L,this.parseSelection,d.TokenKind.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(d.TokenKind.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(d.TokenKind.COLON)?(e=r,t=this.parseName()):t=r,{kind:s.Kind.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(d.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(d.TokenKind.PAREN_L,t,d.TokenKind.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(d.TokenKind.COLON),{kind:s.Kind.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:s.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(d.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(d.TokenKind.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(d.TokenKind.NAME)?{kind:s.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:s.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:s.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:s.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case d.TokenKind.BRACKET_L:return this.parseList(e);case d.TokenKind.BRACE_L:return this.parseObject(e);case d.TokenKind.INT:return this._lexer.advance(),{kind:s.Kind.INT,value:t.value,loc:this.loc(t)};case d.TokenKind.FLOAT:return this._lexer.advance(),{kind:s.Kind.FLOAT,value:t.value,loc:this.loc(t)};case d.TokenKind.STRING:case d.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case d.TokenKind.NAME:return"true"===t.value||"false"===t.value?(this._lexer.advance(),{kind:s.Kind.BOOLEAN,value:"true"===t.value,loc:this.loc(t)}):"null"===t.value?(this._lexer.advance(),{kind:s.Kind.NULL,loc:this.loc(t)}):(this._lexer.advance(),{kind:s.Kind.ENUM,value:t.value,loc:this.loc(t)});case d.TokenKind.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:s.Kind.STRING,value:e.value,block:e.kind===d.TokenKind.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:s.Kind.LIST,values:this.any(d.TokenKind.BRACKET_L,(function(){return t.parseValueLiteral(e)}),d.TokenKind.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:s.Kind.OBJECT,fields:this.any(d.TokenKind.BRACE_L,(function(){return t.parseObjectField(e)}),d.TokenKind.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(d.TokenKind.COLON),{kind:s.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(d.TokenKind.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(d.TokenKind.AT),{kind:s.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(d.TokenKind.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(d.TokenKind.BRACKET_R),e={kind:s.Kind.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(d.TokenKind.BANG)?{kind:s.Kind.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:s.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===d.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(d.TokenKind.STRING)||this.peek(d.TokenKind.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.many(d.TokenKind.BRACE_L,this.parseOperationTypeDefinition,d.TokenKind.BRACE_R);return{kind:s.Kind.SCHEMA_DEFINITION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(d.TokenKind.COLON);var n=this.parseNamedType();return{kind:s.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:s.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:s.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(d.TokenKind.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(d.TokenKind.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(d.TokenKind.NAME))}return e},t.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(d.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===d.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(d.TokenKind.BRACE_L,this.parseFieldDefinition,d.TokenKind.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(d.TokenKind.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:s.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(d.TokenKind.PAREN_L,this.parseInputValueDef,d.TokenKind.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(d.TokenKind.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(d.TokenKind.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:s.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:s.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:s.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(d.TokenKind.EQUALS)){this.expectOptionalToken(d.TokenKind.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(d.TokenKind.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:s.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(d.TokenKind.BRACE_L,this.parseEnumValueDefinition,d.TokenKind.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:s.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:s.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(d.TokenKind.BRACE_L,this.parseInputValueDef,d.TokenKind.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===d.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(d.TokenKind.BRACE_L,this.parseOperationTypeDefinition,d.TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:s.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:s.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:s.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:s.Kind.INTERFACE_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:s.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:s.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:s.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(d.TokenKind.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:s.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(d.TokenKind.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(d.TokenKind.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==c.DirectiveLocation[t.value])return t;throw this.unexpected(e)},t.loc=function(e){if(!this._options.noLocation)return new h(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw(0,a.syntaxError)(this._lexer.source,t.start,"Expected ".concat(e,", found ").concat(m(t)))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==d.TokenKind.NAME||t.value!==e)throw(0,a.syntaxError)(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(m(t)));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===d.TokenKind.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=e||this._lexer.token;return(0,a.syntaxError)(this._lexer.source,t.start,"Unexpected ".concat(m(t)))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},e}();function h(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function m(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}(0,o.default)(h,(function(){return{start:this.start,end:this.end}}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=s,t.printError=l;var r,i=(r=n(1164))&&r.__esModule?r:{default:r},o=n(573),a=n(1165);function s(e,t,n,r,a,l,u){var c=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,d=n;if(!d&&c){var f=c[0];d=f&&f.loc&&f.loc.source}var p,h=r;!h&&c&&(h=c.reduce((function(e,t){return t.loc&&e.push(t.loc.start),e}),[])),h&&0===h.length&&(h=void 0),r&&n?p=r.map((function(e){return(0,o.getLocation)(n,e)})):c&&(p=c.reduce((function(e,t){return t.loc&&e.push((0,o.getLocation)(t.loc.source,t.loc.start)),e}),[]));var m=u;if(null==m&&null!=l){var g=l.extensions;(0,i.default)(g)&&(m=g)}Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:p||void 0,enumerable:Boolean(p)},path:{value:a||void 0,enumerable:Boolean(a)},nodes:{value:c||void 0},source:{value:d||void 0},positions:{value:h||void 0},originalError:{value:l},extensions:{value:m||void 0,enumerable:Boolean(m)}}),l&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,s):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}function l(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+(0,a.printLocation)(i.loc))}else if(e.source&&e.locations)for(var o=0,s=e.locations;o<s.length;o++){var l=s[o];t+="\n\n"+(0,a.printSourceLocation)(e.source,l)}return t}s.prototype=Object.create(Error.prototype,{constructor:{value:s},name:{value:"GraphQLError"},toString:{value:function(){return l(this)}}})},function(e,t,n){"use strict";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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"object"==r(e)&&null!==e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printLocation=function(e){return i(e.source,(0,r.getLocation)(e.source,e.start))},t.printSourceLocation=i;var r=n(573);function i(e,t){var n=e.locationOffset.column-1,r=a(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,l=t.line+s,u=1===t.line?n:0,c=t.column+u,d="".concat(e.name,":").concat(l,":").concat(c,"\n"),f=r.split(/\r\n|[\n\r]/g),p=f[i];if(p.length>120){for(var h=Math.floor(c/80),m=c%80,g=[],v=0;v<p.length;v+=80)g.push(p.slice(v,v+80));return d+o([["".concat(l),g[0]]].concat(g.slice(1,h+1).map((function(e){return["",e]})),[[" ",a(m-1)+"^"],["",g[h+1]]]))}return d+o([["".concat(l-1),f[i-1]],["".concat(l),p],["",a(c-1)+"^"],["".concat(l+1),f[i+1]]])}function o(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return a(n-(t=r).length)+t+(i?" | "+i:" |")})).join("\n")}function a(e){return Array(e+1).join(" ")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0;var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});t.Kind=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0;var r=o(n(570)),i=o(n(1168));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e,t,n){this.body=e,this.name=t||"GraphQL request",this.locationOffset=n||{line:1,column:1},this.locationOffset.line>0||(0,r.default)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||(0,r.default)(0,"column in locationOffset is 1-indexed and must be positive")};t.Source=a,(0,i.default)(a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createLexer=function(e,t){var n=new c(s.TokenKind.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:l,lookahead:u}},t.isPunctuatorToken=function(e){var t=e.kind;return t===s.TokenKind.BANG||t===s.TokenKind.DOLLAR||t===s.TokenKind.AMP||t===s.TokenKind.PAREN_L||t===s.TokenKind.PAREN_R||t===s.TokenKind.SPREAD||t===s.TokenKind.COLON||t===s.TokenKind.EQUALS||t===s.TokenKind.AT||t===s.TokenKind.BRACKET_L||t===s.TokenKind.BRACKET_R||t===s.TokenKind.BRACE_L||t===s.TokenKind.PIPE||t===s.TokenKind.BRACE_R};var r,i=(r=n(571))&&r.__esModule?r:{default:r},o=n(572),a=n(569),s=n(574);function l(){return this.lastToken=this.token,this.token=this.lookahead()}function u(){var e=this.token;if(e.kind!==s.TokenKind.EOF)do{e=e.next||(e.next=f(this,e))}while(e.kind===s.TokenKind.COMMENT);return e}function c(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}function d(e){return isNaN(e)?s.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function f(e,t){var n=e.source,r=n.body,i=r.length,l=function(e,t,n){var r=e.length,i=t;for(;i<r;){var o=e.charCodeAt(i);if(9===o||32===o||44===o||65279===o)++i;else if(10===o)++i,++n.line,n.lineStart=i;else{if(13!==o)break;10===e.charCodeAt(i+1)?i+=2:++i,++n.line,n.lineStart=i}}return i}(r,t.end,e),u=e.line,f=1+l-e.lineStart;if(l>=i)return new c(s.TokenKind.EOF,i,i,u,f,t);var m=r.charCodeAt(l);switch(m){case 33:return new c(s.TokenKind.BANG,l,l+1,u,f,t);case 35:return function(e,t,n,r,i){var o,a=e.body,l=t;do{o=a.charCodeAt(++l)}while(!isNaN(o)&&(o>31||9===o));return new c(s.TokenKind.COMMENT,t,l,n,r,i,a.slice(t+1,l))}(n,l,u,f,t);case 36:return new c(s.TokenKind.DOLLAR,l,l+1,u,f,t);case 38:return new c(s.TokenKind.AMP,l,l+1,u,f,t);case 40:return new c(s.TokenKind.PAREN_L,l,l+1,u,f,t);case 41:return new c(s.TokenKind.PAREN_R,l,l+1,u,f,t);case 46:if(46===r.charCodeAt(l+1)&&46===r.charCodeAt(l+2))return new c(s.TokenKind.SPREAD,l,l+3,u,f,t);break;case 58:return new c(s.TokenKind.COLON,l,l+1,u,f,t);case 61:return new c(s.TokenKind.EQUALS,l,l+1,u,f,t);case 64:return new c(s.TokenKind.AT,l,l+1,u,f,t);case 91:return new c(s.TokenKind.BRACKET_L,l,l+1,u,f,t);case 93:return new c(s.TokenKind.BRACKET_R,l,l+1,u,f,t);case 123:return new c(s.TokenKind.BRACE_L,l,l+1,u,f,t);case 124:return new c(s.TokenKind.PIPE,l,l+1,u,f,t);case 125:return new c(s.TokenKind.BRACE_R,l,l+1,u,f,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,i){var o=e.body,a=o.length,l=t+1,u=0;for(;l!==a&&!isNaN(u=o.charCodeAt(l))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++l;return new c(s.TokenKind.NAME,t,l,n,r,i,o.slice(t,l))}(n,l,u,f,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,r,i,a){var l=e.body,u=n,f=t,h=!1;45===u&&(u=l.charCodeAt(++f));if(48===u){if((u=l.charCodeAt(++f))>=48&&u<=57)throw(0,o.syntaxError)(e,f,"Invalid number, unexpected digit after 0: ".concat(d(u),"."))}else f=p(e,f,u),u=l.charCodeAt(f);46===u&&(h=!0,u=l.charCodeAt(++f),f=p(e,f,u),u=l.charCodeAt(f));69!==u&&101!==u||(h=!0,43!==(u=l.charCodeAt(++f))&&45!==u||(u=l.charCodeAt(++f)),f=p(e,f,u),u=l.charCodeAt(f));if(46===u||69===u||101===u)throw(0,o.syntaxError)(e,f,"Invalid number, expected digit but got: ".concat(d(u),"."));return new c(h?s.TokenKind.FLOAT:s.TokenKind.INT,t,f,r,i,a,l.slice(t,f))}(n,l,m,u,f,t);case 34:return 34===r.charCodeAt(l+1)&&34===r.charCodeAt(l+2)?function(e,t,n,r,i,l){var u=e.body,f=t+3,p=f,h=0,m="";for(;f<u.length&&!isNaN(h=u.charCodeAt(f));){if(34===h&&34===u.charCodeAt(f+1)&&34===u.charCodeAt(f+2))return m+=u.slice(p,f),new c(s.TokenKind.BLOCK_STRING,t,f+3,n,r,i,(0,a.dedentBlockStringValue)(m));if(h<32&&9!==h&&10!==h&&13!==h)throw(0,o.syntaxError)(e,f,"Invalid character within String: ".concat(d(h),"."));10===h?(++f,++l.line,l.lineStart=f):13===h?(10===u.charCodeAt(f+1)?f+=2:++f,++l.line,l.lineStart=f):92===h&&34===u.charCodeAt(f+1)&&34===u.charCodeAt(f+2)&&34===u.charCodeAt(f+3)?(m+=u.slice(p,f)+'"""',p=f+=4):++f}throw(0,o.syntaxError)(e,f,"Unterminated string.")}(n,l,u,f,t,e):function(e,t,n,r,i){var a=e.body,l=t+1,u=l,f=0,p="";for(;l<a.length&&!isNaN(f=a.charCodeAt(l))&&10!==f&&13!==f;){if(34===f)return p+=a.slice(u,l),new c(s.TokenKind.STRING,t,l+1,n,r,i,p);if(f<32&&9!==f)throw(0,o.syntaxError)(e,l,"Invalid character within String: ".concat(d(f),"."));if(++l,92===f){switch(p+=a.slice(u,l-1),f=a.charCodeAt(l)){case 34:p+='"';break;case 47:p+="/";break;case 92:p+="\\";break;case 98:p+="\b";break;case 102:p+="\f";break;case 110:p+="\n";break;case 114:p+="\r";break;case 116:p+="\t";break;case 117:var m=(v=a.charCodeAt(l+1),y=a.charCodeAt(l+2),b=a.charCodeAt(l+3),_=a.charCodeAt(l+4),h(v)<<12|h(y)<<8|h(b)<<4|h(_));if(m<0){var g=a.slice(l+1,l+5);throw(0,o.syntaxError)(e,l,"Invalid character escape sequence: \\u".concat(g,"."))}p+=String.fromCharCode(m),l+=4;break;default:throw(0,o.syntaxError)(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(f),"."))}++l,u=l}}var v,y,b,_;throw(0,o.syntaxError)(e,l,"Unterminated string.")}(n,l,u,f,t)}throw(0,o.syntaxError)(n,l,function(e){if(e<32&&9!==e&&10!==e&&13!==e)return"Cannot contain the invalid character ".concat(d(e),".");if(39===e)return"Unexpected single quote character ('), did you mean to use a double quote (\")?";return"Cannot parse the unexpected character ".concat(d(e),".")}(m))}function p(e,t,n){var r=e.body,i=t,a=n;if(a>=48&&a<=57){do{a=r.charCodeAt(++i)}while(a>=48&&a<=57);return i}throw(0,o.syntaxError)(e,i,"Invalid number, expected digit but got: ".concat(d(a),"."))}function h(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}(0,i.default)(c,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0;var r=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});t.DirectiveLocation=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reopenPullRequest=t.createBranchAndPullRequest=t.createBranch=t.createPullRequest=t.closePullRequestAndDeleteBranch=t.closePullRequest=t.deleteBranch=t.updateBranch=void 0;var r,i=(r=n(374))&&r.__esModule?r:{default:r},o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(575));function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}const s=i.default`
+ mutation updateRef($input: UpdateRefInput!) {
+ updateRef(input: $input) {
+ branch: ref {
+ ...BranchParts
+ }
+ }
+ }
+ ${o.branch}
+`;t.updateBranch=s;const l=i.default`
+ mutation deleteRef($deleteRefInput: DeleteRefInput!) {
+ ${"\ndeleteRef(input: $deleteRefInput) {\n clientMutationId\n}\n"}
+ }
+`;t.deleteBranch=l;const u="\nclosePullRequest(input: $closePullRequestInput) {\n clientMutationId\n pullRequest {\n ...PullRequestParts\n }\n}\n",c=i.default`
+ mutation closePullRequestAndDeleteBranch($closePullRequestInput: ClosePullRequestInput!) {
+ ${u}
+ }
+ ${o.pullRequest}
+`;t.closePullRequest=c;const d=i.default`
+ mutation closePullRequestAndDeleteBranch(
+ $closePullRequestInput: ClosePullRequestInput!
+ $deleteRefInput: DeleteRefInput!
+ ) {
+ ${u}
+ ${"\ndeleteRef(input: $deleteRefInput) {\n clientMutationId\n}\n"}
+ }
+ ${o.pullRequest}
+`;t.closePullRequestAndDeleteBranch=d;const f="\n createPullRequest(input: $createPullRequestInput) {\n clientMutationId\n pullRequest {\n ...PullRequestParts\n }\n}\n ",p=i.default`
+ mutation createPullRequest($createPullRequestInput: CreatePullRequestInput!) {
+ ${f}
+ }
+ ${o.pullRequest}
+`;t.createPullRequest=p;const h=i.default`
+ mutation createBranch($createRefInput: CreateRefInput!) {
+ createRef(input: $createRefInput) {
+ branch: ref {
+ ...BranchParts
+ }
+ }
+ }
+ ${o.branch}
+`;t.createBranch=h;const m=i.default`
+ mutation createBranchAndPullRequest(
+ $createRefInput: CreateRefInput!
+ $createPullRequestInput: CreatePullRequestInput!
+ ) {
+ createRef(input: $createRefInput) {
+ branch: ref {
+ ...BranchParts
+ }
+ }
+ ${f}
+ }
+ ${o.branch}
+ ${o.pullRequest}
+`;t.createBranchAndPullRequest=m;const g=i.default`
+ mutation reopenPullRequest($reopenPullRequestInput: ReopenPullRequestInput!) {
+ reopenPullRequest(input: $reopenPullRequestInput) {
+ clientMutationId
+ pullRequest {
+ ...PullRequestParts
+ }
+ }
+ }
+ ${o.pullRequest}
+`;t.reopenPullRequest=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(138)),i=d(n(121)),o=d(n(191)),a=n(107),s=n(37),l=d(n(576)),u=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(577));function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class{constructor(e,t={}){if(h(this,"lock",void 0),h(this,"api",void 0),h(this,"options",void 0),h(this,"repo",void 0),h(this,"branch",void 0),h(this,"apiRoot",void 0),h(this,"token",void 0),h(this,"squashMerges",void 0),h(this,"mediaFolder",void 0),h(this,"previewContext",void 0),h(this,"_mediaDisplayURLSem",void 0),this.options=p({proxied:!1,API:null,initialWorkflowStatus:""},t),!this.options.proxied&&(null===e.backend.repo||void 0===e.backend.repo))throw new Error('The GitLab backend needs a "repo" in the backend configuration.');this.api=this.options.API||null,this.repo=e.backend.repo||"",this.branch=e.backend.branch||"master",this.apiRoot=e.backend.api_root||"https://gitlab.com/api/v4",this.token="",this.squashMerges=e.backend.squash_merges||!1,this.mediaFolder=e.media_folder,this.previewContext=e.backend.preview_context||"",this.lock=(0,s.asyncLock)()}isGitBackend(){return!0}async status(){var e;return{auth:{status:await(null===(e=this.api)||void 0===e?void 0:e.user().then(e=>!!e).catch(e=>(console.warn("Failed getting GitLab user",e),!1)))||!1},api:{status:!0,statusPage:""}}}authComponent(){return l.default}restoreUser(e){return this.authenticate(e)}async authenticate(e){this.token=e.token,this.api=new u.default({token:this.token,branch:this.branch,repo:this.repo,apiRoot:this.apiRoot,squashMerges:this.squashMerges,initialWorkflowStatus:this.options.initialWorkflowStatus});const t=await this.api.user();if(!await this.api.hasWriteAccess().catch(e=>{throw e.message=a.stripIndent`
+ Repo "${this.repo}" not found.
+
+ Please ensure the repo information is spelled correctly.
+
+ If the repo is private, make sure you're logged into a GitLab account with access.
+ `,e}))throw new Error("Your GitLab user account does not have access to this repo.");return p(p({},t),{},{login:t.username,token:e.token})}async logout(){this.token=null}getToken(){return Promise.resolve(this.token)}filterFile(e,t,n,i){const o=(0,r.default)(t.path.split(e)[1]||"/","/");return(0,s.filterByExtension)(t,n)&&o.split("/").length<=i}async entriesByFolder(e,t,n){let r;const i=await(0,s.entriesByFolder)(()=>this.api.listFiles(e,n>1).then(({files:i,cursor:o})=>(r=o.mergeMeta({folder:e,extension:t,depth:n}),i.filter(r=>this.filterFile(e,r,t,n)))),this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),u.API_NAME);return i[s.CURSOR_COMPATIBILITY_SYMBOL]=r,i}async listAllFiles(e,t,n){return(await this.api.listAllFiles(e,n>1)).filter(r=>this.filterFile(e,r,t,n))}async allEntriesByFolder(e,t,n){return await(0,s.allEntriesByFolder)({listAllFiles:()=>this.listAllFiles(e,t,n),readFile:this.api.readFile.bind(this.api),readFileMetadata:this.api.readFileMetadata.bind(this.api),apiName:u.API_NAME,branch:this.branch,localForage:s.localForage,folder:e,extension:t,depth:n,getDefaultBranch:()=>this.api.getDefaultBranch().then(e=>({name:e.name,sha:e.commit.id})),isShaExistsInBranch:this.api.isShaExistsInBranch.bind(this.api),getDifferences:(e,t)=>this.api.getDifferences(e,t),getFileId:e=>this.api.getFileId(e,this.branch),filterFile:r=>this.filterFile(e,r,t,n)})}entriesByFiles(e){return(0,s.entriesByFiles)(e,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),u.API_NAME)}getEntry(e){return this.api.readFile(e).then(t=>({file:{path:e,id:null},data:t}))}getMedia(e=this.mediaFolder){return this.api.listAllFiles(e).then(e=>e.map(({id:e,name:t,path:n})=>({id:e,name:t,path:n,displayURL:{id:e,name:t,path:n}})))}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,o.default)(10),(0,s.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}async getMediaFile(e){const t=(0,s.basename)(e),n=await(0,s.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),r=(0,s.blobToFileObj)(t,n),i=URL.createObjectURL(r);return{id:await(0,s.getBlobSHA)(n),displayURL:i,path:e,name:t,size:r.size,file:r,url:i}}async persistEntry(e,t,n){return(0,s.runWithLock)(this.lock,()=>this.api.persistFiles(e,t,n),"Failed to acquire persist entry lock")}async persistMedia(e,t){const n=e.fileObj,[r]=await Promise.all([(0,s.getBlobSHA)(n),this.api.persistFiles(null,[e],t)]),{path:o}=e,a=URL.createObjectURL(n);return{displayURL:a,path:(0,i.default)(o,"/"),name:n.name,size:n.size,file:n,url:a,id:r}}deleteFile(e,t){return this.api.deleteFile(e,t)}traverseCursor(e,t){return this.api.traverseCursor(e,t).then(async({entries:t,cursor:n})=>{var r,i,o;const[a,l,c]=[null===(r=e.meta)||void 0===r?void 0:r.get("folder"),null===(i=e.meta)||void 0===i?void 0:i.get("depth"),null===(o=e.meta)||void 0===o?void 0:o.get("extension")];a&&l&&c&&(t=t.filter(e=>this.filterFile(a,e,c,l)),n=n.mergeMeta({folder:a,extension:c,depth:l}));return{entries:await(0,s.entriesByFiles)(t,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),u.API_NAME),cursor:n}})}loadMediaFile(e,t){return(0,s.getMediaAsBlob)(t.path,null,(t,n,{parseText:r})=>this.api.readFile(t,n,{branch:e,parseText:r})).then(e=>{const n=(0,s.basename)(t.path),r=(0,s.blobToFileObj)(n,e);return{id:t.path,displayURL:URL.createObjectURL(r),path:t.path,name:n,size:r.size,file:r}})}async loadEntryMediaFiles(e,t){return await Promise.all(t.map(t=>this.loadMediaFile(e,t)))}async unpublishedEntries(){return await(0,s.unpublishedEntries)(()=>this.api.listUnpublishedBranches().then(e=>e.map(e=>(0,s.contentKeyFromBranch)(e))))}async unpublishedEntry({id:e,collection:t,slug:n}){if(e){return await this.api.retrieveUnpublishedEntryData(e)}if(t&&n){const e=(0,s.generateContentKey)(t,n);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){const n=(0,s.generateContentKey)(e,t);return(0,s.branchFromContentKey)(n)}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(i,{path:n,id:r})}async updateUnpublishedEntryStatus(e,t,n){return(0,s.runWithLock)(this.lock,()=>this.api.updateUnpublishedEntryStatus(e,t,n),"Failed to acquire update entry status lock")}async deleteUnpublishedEntry(e,t){return(0,s.runWithLock)(this.lock,()=>this.api.deleteUnpublishedEntry(e,t),"Failed to acquire delete entry lock")}async publishUnpublishedEntry(e,t){return(0,s.runWithLock)(this.lock,()=>this.api.publishUnpublishedEntry(e,t),"Failed to acquire publish entry lock")}async getDeployPreview(e,t){try{const n=await this.api.getStatuses(e,t),r=(0,s.getPreviewStatus)(n,this.previewContext);if(r){const{target_url:e,state:t}=r;return{url:e,status:t}}return null}catch(e){return null}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GitGatewayBackend",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return i.default}}),t.NetlifyCmsBackendGitGateway=void 0;var r=o(n(1174)),i=o(n(584));function o(e){return e&&e.__esModule?e:{default:e}}const a={GitGatewayBackend:r.default,AuthenticationPage:i.default};t.NetlifyCmsBackendGitGateway=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(578)),i=v(n(147)),o=v(n(82)),a=v(n(1178)),s=v(n(1182)),l=v(n(1185)),u=n(37),c=n(372),d=n(375),f=n(580),p=v(n(1193)),h=v(n(1194)),m=v(n(584)),g=n(1195);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const w=["Git Gateway"],x={localhost:!0,"127.0.0.1":!0,"0.0.0.0":!0},k="/.netlify/identity",E="/.netlify/git",S="/.netlify/large-media";function O(e,t){if(x[document.location.host.split(":").shift()]&&t&&e.match(/^\/\.netlify\//)){const n=[];return t&&(n.push(t),t.match(/\/$/)||n.push("/")),n.push(e.replace(/^\//,"")),n.join("")}return e}let T=Promise.resolve();if(window.netlifyIdentity){let e=!1;T=Promise.race([new Promise(t=>{var n;null===(n=window.netlifyIdentity)||void 0===n||n.on("init",()=>{e=!0,t()})}),new Promise(e=>setTimeout(e,2500)).then(()=>{var t;e||(console.log("Manually initializing identity widget"),null===(t=window.netlifyIdentity)||void 0===t||t.init())})])}const C=async e=>await fetch("https://api.netlify.com/api/v1/sites/"+e).then(e=>e.json());t.default=class{constructor(e,t={}){var n;_(this,"config",void 0),_(this,"api",void 0),_(this,"branch",void 0),_(this,"squashMerges",void 0),_(this,"mediaFolder",void 0),_(this,"transformImages",void 0),_(this,"gatewayUrl",void 0),_(this,"netlifyLargeMediaURL",void 0),_(this,"backendType",void 0),_(this,"apiUrl",void 0),_(this,"authClient",void 0),_(this,"backend",void 0),_(this,"acceptRoles",void 0),_(this,"tokenPromise",void 0),_(this,"_largeMediaClientPromise",void 0),_(this,"options",void 0),_(this,"requestFunction",e=>this.tokenPromise().then(t=>u.unsentRequest.withHeaders({Authorization:"Bearer "+t},e)).then(u.unsentRequest.performRequest)),this.options=b({proxied:!0,API:null,initialWorkflowStatus:""},t),this.config=e,this.branch=(null===(n=e.backend.branch)||void 0===n?void 0:n.trim())||"master",this.squashMerges=e.backend.squash_merges||!1,this.mediaFolder=e.media_folder,this.transformImages=e.backend.use_large_media_transforms_in_media_library||!0;const r=localStorage.getItem("netlifySiteURL");this.apiUrl=O(e.backend.identity_url||k,r),this.gatewayUrl=O(e.backend.gateway_url||E,r),this.netlifyLargeMediaURL=O(e.backend.large_media_url||S,r);const i=/\/(github|gitlab|bitbucket)\/?$/,o=this.gatewayUrl.match(i);o?(this.backendType=o[1],this.gatewayUrl=this.gatewayUrl.replace(i,"")):this.backendType=null,this.backend=null,m.default.authClient=()=>this.getAuthClient()}isGitBackend(){return!0}async status(){const e=await fetch("https://www.netlifystatus.com/api/v2/components.json").then(e=>e.json()).then(e=>e.components.filter(e=>w.includes(e.name)).every(e=>"operational"===e.status)).catch(e=>(console.warn("Failed getting Git Gateway status",e),!0));let t=!1;var n;e&&(t=await(null===(n=this.tokenPromise)||void 0===n?void 0:n.call(this).then(e=>!!e).catch(e=>(console.warn("Failed getting Identity token",e),!1)))||!1);return{auth:{status:t},api:{status:e,statusPage:"https://www.netlifystatus.com"}}}async getAuthClient(){if(this.authClient)return this.authClient;if(await T,window.netlifyIdentity)this.authClient={logout:()=>{var e;return null===(e=window.netlifyIdentity)||void 0===e?void 0:e.logout()},currentUser:()=>{var e;return null===(e=window.netlifyIdentity)||void 0===e?void 0:e.currentUser()},clearStore:()=>{var e;const t=null===(e=window.netlifyIdentity)||void 0===e?void 0:e.store;t&&(t.user=null,t.modal.page="login",t.saving=!1)}};else{const e=new a.default({APIUrl:this.apiUrl});this.authClient={logout:()=>{const t=e.currentUser();if(t)return t.logout()},currentUser:()=>e.currentUser(),login:e.login.bind(e),clearStore:()=>{}}}return this.authClient}authenticate(e){const t=e;return this.tokenPromise=async()=>{try{const e=t.jwt.bind(t);return await e()}catch(e){throw new u.AccessTokenError("Failed getting access token: "+e.message)}},this.tokenPromise().then(async e=>{if(!this.backendType){const{github_enabled:t,gitlab_enabled:n,bitbucket_enabled:r,roles:i}=await u.unsentRequest.fetchWithTimeout(this.gatewayUrl+"/settings",{headers:{Authorization:"Bearer "+e}}).then(async e=>{const t=e.headers.get("Content-Type")||"";if(!t.includes("application/json")&&!t.includes("text/json"))throw new u.APIError("Your Git Gateway backend is not returning valid settings. Please make sure it is enabled.",e.status,"Git Gateway");const n=await e.json();if(!e.ok)throw new u.APIError("Git Gateway Error: "+(n.message?n.message:n),e.status,"Git Gateway");return n});this.acceptRoles=i,t?this.backendType="github":n?this.backendType="gitlab":r&&(this.backendType="bitbucket")}if(this.acceptRoles&&this.acceptRoles.length>0){const t=(0,o.default)((0,s.default)(e),"app_metadata.roles",[]);if(!((0,r.default)(t,this.acceptRoles).length>0))throw new Error("You don't have sufficient permissions to access Netlify CMS")}const n={name:t.user_metadata.full_name||t.email.split("@").shift(),email:t.email,avatar_url:t.user_metadata.avatar_url,metadata:t.user_metadata},a={apiRoot:`${this.gatewayUrl}/${this.backendType}`,branch:this.branch,tokenPromise:this.tokenPromise,commitAuthor:(0,i.default)(n,["name","email"]),squashMerges:this.squashMerges,initialWorkflowStatus:this.options.initialWorkflowStatus};if("github"===this.backendType?(this.api=new p.default(a),this.backend=new c.GitHubBackend(this.config,b(b({},this.options),{},{API:this.api}))):"gitlab"===this.backendType?(this.api=new h.default(a),this.backend=new d.GitLabBackend(this.config,b(b({},this.options),{},{API:this.api}))):"bitbucket"===this.backendType&&(this.api=new f.API(b(b({},a),{},{requestFunction:this.requestFunction,hasWriteAccess:async()=>!0})),this.backend=new f.BitbucketBackend(this.config,b(b({},this.options),{},{API:this.api}))),!await this.api.hasWriteAccess())throw new Error("You don't have sufficient permissions to access Netlify CMS");return{name:n.name,login:n.email}})}async restoreUser(){const e=(await this.getAuthClient()).currentUser();return e?this.authenticate(e):Promise.reject()}authComponent(){return m.default}async logout(){const e=await this.getAuthClient();try{e.logout()}catch(t){e.clearStore()}}getToken(){return this.tokenPromise()}async entriesByFolder(e,t,n){return this.backend.entriesByFolder(e,t,n)}allEntriesByFolder(e,t,n){return this.backend.allEntriesByFolder(e,t,n)}entriesByFiles(e){return this.backend.entriesByFiles(e)}getEntry(e){return this.backend.getEntry(e)}async unpublishedEntryDataFile(e,t,n,r){return this.backend.unpublishedEntryDataFile(e,t,n,r)}async unpublishedEntryMediaFile(e,t,n,r){const i=await this.getLargeMediaClient();if(i.enabled&&i.matchPath(n)){const i=this.backend.getBranch(e,t),o=await this.getLargeMediaDisplayURL({path:n,id:r},i);return{id:r,name:(0,u.basename)(n),path:n,url:o,displayURL:o,file:new File([],name),size:0}}return this.backend.unpublishedEntryMediaFile(e,t,n,r)}getMedia(e=this.mediaFolder){return this.backend.getMedia(e)}getLargeMediaClient(){return this._largeMediaClientPromise||(this._largeMediaClientPromise=this._getLargeMediaClient()),this._largeMediaClientPromise}_getLargeMediaClient(){const e=this.api.readFile(".lfsconfig").then(e=>l.default.decode(e)).then(({lfs:{url:e}})=>new URL(e)).then(e=>({enabled:e.hostname.endsWith("netlify.com")||e.hostname.endsWith("netlify.app")})).catch(e=>({enabled:!1,err:e})),t=this.api.readFile(".gitattributes").then(e=>(0,u.getLargeMediaPatternsFromGitAttributesFile)(e)).then(e=>({err:null,patterns:e})).catch(e=>e.message.includes("404")?(console.log("This 404 was expected and handled appropriately."),{err:null,patterns:[]}):{err:e,patterns:[]});return Promise.all([e,t]).then(([{enabled:e},{patterns:t,err:n}])=>{const r=e&&!n;return e&&n&&console.error(n),(0,g.getClient)({enabled:r,rootURL:this.netlifyLargeMediaURL,makeAuthorizedRequest:this.requestFunction,patterns:t,transformImages:!!this.transformImages&&{nf_resize:"fit",w:560,h:320}})})}async getLargeMediaDisplayURL({path:e,id:t},n=this.branch){const r=(await(0,u.entriesByFiles)([{path:e,id:t}],(e,t,{parseText:r})=>this.api.readFile(e,t,{branch:n,parseText:r}),this.api.readFileMetadata.bind(this.api),"Git-Gateway"))[0],i=(0,u.parsePointerFile)(r.data);if(!i.sha)return console.warn("Failed parsing pointer file "+e),e;const o=await this.getLargeMediaClient();return await o.getDownloadURL(i)}async getMediaDisplayURL(e){const{path:t,id:n}=e,r=await this.getLargeMediaClient();if(r.enabled&&r.matchPath(t)){return await this.getLargeMediaDisplayURL({path:t,id:n})}if("string"==typeof e)return e;return await this.backend.getMediaDisplayURL(e)}async getMediaFile(e){const t=await this.getLargeMediaClient();if(t.enabled&&t.matchPath(e)){const t=await this.getLargeMediaDisplayURL({path:e,id:null});return{id:t,name:(0,u.basename)(e),path:e,url:t,displayURL:t}}return this.backend.getMediaFile(e)}async persistEntry(e,t,n){const r=await this.getLargeMediaClient();return this.backend.persistEntry(e,r.enabled?await(0,u.getLargeMediaFilteredMediaFiles)(r,t):t,n)}async persistMedia(e,t){const{fileObj:n,path:r}=e,i=URL.createObjectURL(n),o=await this.getLargeMediaClient(),a=r.startsWith("/")?r.slice(1):r;if(!o.enabled||!o.matchPath(a))return this.backend.persistMedia(e,t);const s=await(0,u.getPointerFileForMediaFileObj)(o,n,r);return b(b({},await this.backend.persistMedia(s,t)),{},{displayURL:i})}deleteFile(e,t){return this.backend.deleteFile(e,t)}async getDeployPreview(e,t){let n=await this.backend.getDeployPreview(e,t);if(!n)try{const r=new URL(localStorage.getItem("netlifySiteURL")||"").hostname,i=await C(r),o=await C(i.id+"/deploys?per_page=100");if(o.length>0){const r=await this.api.getUnpublishedEntrySha(e,t),i=o.find(e=>e.commit_ref===r);i&&(n={status:"ready"===i.state?u.PreviewState.Success:u.PreviewState.Other,url:i.deploy_url})}}catch(e){}return n}unpublishedEntries(){return this.backend.unpublishedEntries()}unpublishedEntry({id:e,collection:t,slug:n}){return this.backend.unpublishedEntry({id:e,collection:t,slug:n})}updateUnpublishedEntryStatus(e,t,n){return this.backend.updateUnpublishedEntryStatus(e,t,n)}deleteUnpublishedEntry(e,t){return this.backend.deleteUnpublishedEntry(e,t)}publishUnpublishedEntry(e,t){return this.backend.publishUnpublishedEntry(e,t)}traverseCursor(e,t){return this.backend.traverseCursor(e,t)}}},function(e,t,n){var r=n(247),i=n(255),o=n(326),a=n(120),s=n(156),l=n(248),u=Math.min;e.exports=function(e,t,n){for(var c=n?o:i,d=e[0].length,f=e.length,p=f,h=Array(f),m=1/0,g=[];p--;){var v=e[p];p&&t&&(v=a(v,s(t))),m=u(v.length,m),h[p]=!n&&(t||d>=120&&v.length>=120)?new r(p&&v):void 0}v=e[0];var y=-1,b=h[0];e:for(;++y<d&&g.length<m;){var _=v[y],w=t?t(_):_;if(_=n||0!==_?_:0,!(b?l(b,w):c(g,w,n))){for(p=f;--p;){var x=h[p];if(!(x?l(x,w):c(e[p],w,n)))continue e}b&&b.push(w),g.push(_)}}return g}},function(e,t,n){var r=n(269);e.exports=function(e){return r(e)?e:[]}},function(e,t,n){var r=n(513),i=n(445);e.exports=function(e,t){return r(e,t,(function(t,n){return i(e,n)}))}},function(e,t,n){"use strict";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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(579)),a=(i=n(1180))&&i.__esModule?i:{default:i};function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=/^http:\/\//,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.APIUrl,r=void 0===n?"/.netlify/identity":n,i=t.audience,a=void 0===i?"":i,s=t.setCookie,u=void 0!==s&&s;l(this,e),r.match(c)&&console.warn("Warning:\n\nDO NOT USE HTTP IN PRODUCTION FOR GOTRUE EVER!\nGoTrue REQUIRES HTTPS to work securely."),a&&(this.audience=a),this.setCookie=u,this.api=new o.default(r)}var t,n,r;return t=e,(n=[{key:"_request",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.headers=t.headers||{};var n=t.audience||this.audience;return n&&(t.headers["X-JWT-AUD"]=n),this.api.request(e,t).catch((function(e){return e instanceof o.JSONHTTPError&&e.json&&(e.json.msg?e.message=e.json.msg:e.json.error&&(e.message="".concat(e.json.error,": ").concat(e.json.error_description))),Promise.reject(e)}))}},{key:"settings",value:function(){return this._request("/settings")}},{key:"signup",value:function(e,t,n){return this._request("/signup",{method:"POST",body:JSON.stringify({email:e,password:t,data:n})})}},{key:"login",value:function(e,t,n){var r=this;return this._setRememberHeaders(n),this._request("/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"grant_type=password&username=".concat(encodeURIComponent(e),"&password=").concat(encodeURIComponent(t))}).then((function(e){return a.default.removeSavedSession(),r.createUser(e,n)}))}},{key:"loginExternalUrl",value:function(e){return"".concat(this.api.apiURL,"/authorize?provider=").concat(e)}},{key:"confirm",value:function(e,t){return this._setRememberHeaders(t),this.verify("signup",e,t)}},{key:"requestPasswordRecovery",value:function(e){return this._request("/recover",{method:"POST",body:JSON.stringify({email:e})})}},{key:"recover",value:function(e,t){return this._setRememberHeaders(t),this.verify("recovery",e,t)}},{key:"acceptInvite",value:function(e,t,n){var r=this;return this._setRememberHeaders(n),this._request("/verify",{method:"POST",body:JSON.stringify({token:e,password:t,type:"signup"})}).then((function(e){return r.createUser(e,n)}))}},{key:"acceptInviteExternalUrl",value:function(e,t){return"".concat(this.api.apiURL,"/authorize?provider=").concat(e,"&invite_token=").concat(t)}},{key:"createUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._setRememberHeaders(t);var n=new a.default(this.api,e,this.audience);return n.getUserData().then((function(e){return t&&e._saveSession(),e}))}},{key:"currentUser",value:function(){var e=a.default.recoverSession(this.api);return e&&this._setRememberHeaders(e._fromStorage),e}},{key:"verify",value:function(e,t,n){var r=this;return this._setRememberHeaders(n),this._request("/verify",{method:"POST",body:JSON.stringify({token:t,type:e})}).then((function(e){return r.createUser(e,n)}))}},{key:"_setRememberHeaders",value:function(e){this.setCookie&&(this.api.defaultHeaders=this.api.defaultHeaders||{},this.api.defaultHeaders["X-Use-Cookie"]=e?"1":"session")}}])&&u(t.prototype,n),r&&u(t,r),e}();t.default=d,"undefined"!=typeof window&&(window.GoTrue=d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.getPagination=function(e){var t=e.headers.get("Link"),n={};if(null==t)return null;t=t.split(",");for(var i=e.headers.get("X-Total-Count"),o=0,a=t.length;o<a;o++){var s=t[o].replace(/(^\s*|\s*$)/,"").split(";"),l=r(s,2),u=l[0],c=l[1],d=u.match(/page=(\d+)/),f=d&&parseInt(d[1],10);c.match(/last/)?n.last=f:c.match(/next/)?n.next=f:c.match(/prev/)?n.prev=f:c.match(/first/)&&(n.first=f)}return n.last=Math.max(n.last||0,n.prev&&n.prev+1||0),n.current=n.next?n.next-1:n.last||1,n.total=i?parseInt(i,10):null,n}},function(e,t,n){"use strict";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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(579)),a=(i=n(1181))&&i.__esModule?i:{default:i};function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f={},p=null,h={api:1,token:1,audience:1,url:1},m={api:1},g=function(){return"undefined"!=typeof window},v=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api=t,this.url=t.apiURL,this.audience=r,this._processTokenResponse(n),p=this}var t,n,r;return t=e,r=[{key:"removeSavedSession",value:function(){g()&&localStorage.removeItem("gotrue.user")}},{key:"recoverSession",value:function(t){if(p)return p;var n=g()&&localStorage.getItem("gotrue.user");if(n)try{var r=JSON.parse(n),i=r.url,a=r.token,s=r.audience;return i&&a?new e(t||new o.default(i,{}),a,s)._saveUserData(r,!0):null}catch(e){return console.error(new Error("Gotrue-js: Error recovering session: ".concat(e))),null}return null}}],(n=[{key:"update",value:function(e){var t=this;return this._request("/user",{method:"PUT",body:JSON.stringify(e)}).then((function(e){return t._saveUserData(e)._refreshSavedSession()}))}},{key:"jwt",value:function(e){var t=this.tokenDetails();if(null==t)return Promise.reject(new Error("Gotrue-js: failed getting jwt access token"));var n=t.expires_at,r=t.refresh_token,i=t.access_token;return e||n-6e4<Date.now()?this._refreshToken(r):Promise.resolve(i)}},{key:"logout",value:function(){return this._request("/logout",{method:"POST"}).then(this.clearSession.bind(this)).catch(this.clearSession.bind(this))}},{key:"_refreshToken",value:function(e){var t=this;return f[e]?f[e]:f[e]=this.api.request("/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"grant_type=refresh_token&refresh_token=".concat(e)}).then((function(n){return delete f[e],t._processTokenResponse(n),t._refreshSavedSession(),t.token.access_token})).catch((function(n){return delete f[e],t.clearSession(),Promise.reject(n)}))}},{key:"_request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.headers=n.headers||{};var r=n.audience||this.audience;return r&&(n.headers["X-JWT-AUD"]=r),this.jwt().then((function(r){return t.api.request(e,u({headers:Object.assign(n.headers,{Authorization:"Bearer ".concat(r)})},n)).catch((function(e){return e instanceof o.JSONHTTPError&&e.json&&(e.json.msg?e.message=e.json.msg:e.json.error&&(e.message="".concat(e.json.error,": ").concat(e.json.error_description))),Promise.reject(e)}))}))}},{key:"getUserData",value:function(){return this._request("/user").then(this._saveUserData.bind(this)).then(this._refreshSavedSession.bind(this))}},{key:"_saveUserData",value:function(t,n){for(var r in t)r in e.prototype||r in h||(this[r]=t[r]);return n&&(this._fromStorage=!0),this}},{key:"_processTokenResponse",value:function(e){var t;this.token=e;try{t=JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}var n=window.atob(t);try{return decodeURIComponent(escape(n))}catch(e){return n}}(e.access_token.split(".")[1])),this.token.expires_at=1e3*t.exp}catch(t){console.error(new Error("Gotrue-js: Failed to parse tokenResponse claims: ".concat(JSON.stringify(e))))}}},{key:"_refreshSavedSession",value:function(){return g()&&localStorage.getItem("gotrue.user")&&this._saveSession(),this}},{key:"_saveSession",value:function(){return g()&&localStorage.setItem("gotrue.user",JSON.stringify(this._details)),this}},{key:"tokenDetails",value:function(){return this.token}},{key:"clearSession",value:function(){e.removeSavedSession(),this.token=null,p=null}},{key:"admin",get:function(){return new a.default(this)}},{key:"_details",get:function(){var t={};for(var n in this)n in e.prototype||n in m||(t[n]=this[n]);return t}}])&&d(t.prototype,n),r&&d(t,r),e}();t.default=v},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.user=t}var t,n,i;return t=e,(n=[{key:"listUsers",value:function(e){return this.user._request("/admin/users",{method:"GET",audience:e})}},{key:"getUser",value:function(e){return this.user._request("/admin/users/".concat(e.id))}},{key:"updateUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.user._request("/admin/users/".concat(e.id),{method:"PUT",body:JSON.stringify(t)})}},{key:"createUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.email=e,n.password=t,this.user._request("/admin/users",{method:"POST",body:JSON.stringify(n)})}},{key:"deleteUser",value:function(e){return this.user._request("/admin/users/".concat(e.id),{method:"DELETE"})}}])&&r(t.prototype,n),i&&r(t,i),e}();t.default=i},function(e,t,n){"use strict";var r=n(1183);function i(e){this.message=e}i.prototype=new Error,i.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new i("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(r(e.split(".")[n]))}catch(e){throw new i("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=i},function(e,t,n){var r=n(1184);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return r(t)}}},function(e,t){function n(e){this.message=e}n.prototype=new Error,n.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,o=0,a=0,s="";i=t.charAt(a++);~i&&(r=o%4?64*r+i:i,o++%4)?s+=String.fromCharCode(255&r>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s}},function(e,t,n){(function(e){t.parse=t.decode=function(e){var t={},n=t,i=null,o=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;return e.split(/[\r\n]+/g).forEach((function(e,r,s){if(e&&!e.match(/^\s*[;#]/)){var l=e.match(o);if(l){if(void 0!==l[1])return i=a(l[1]),void(n=t[i]=t[i]||{});var u=a(l[2]),c=!l[3]||a(l[4]);switch(c){case"true":case"false":case"null":c=JSON.parse(c)}u.length>2&&"[]"===u.slice(-2)&&(u=u.substring(0,u.length-2),n[u]?Array.isArray(n[u])||(n[u]=[n[u]]):n[u]=[]),Array.isArray(n[u])?n[u].push(c):n[u]=c}}})),Object.keys(t).filter((function(e,n,i){if(!t[e]||"object"!=typeof t[e]||Array.isArray(t[e]))return!1;var o=r(e),a=t,s=o.pop(),l=s.replace(/\\\./g,".");return o.forEach((function(e,t,n){a[e]&&"object"==typeof a[e]||(a[e]={}),a=a[e]})),(a!==t||l!==s)&&(a[l]=t[e],!0)})).forEach((function(e,n,r){delete t[e]})),t},t.stringify=t.encode=function e(t,i){var a=[],s="";"string"==typeof i?i={section:i,whitespace:!1}:(i=i||{}).whitespace=!0===i.whitespace;var l=i.whitespace?" = ":"=";Object.keys(t).forEach((function(e,r,i){var u=t[e];u&&Array.isArray(u)?u.forEach((function(t){s+=o(e+"[]")+l+o(t)+"\n"})):u&&"object"==typeof u?a.push(e):s+=o(e)+l+o(u)+n})),i.section&&s.length&&(s="["+o(i.section)+"]"+n+s);return a.forEach((function(o,a,l){var u=r(o).join("\\."),c=(i.section?i.section+".":"")+u,d=e(t[o],{section:c,whitespace:i.whitespace});s.length&&d.length&&(s+=n),s+=d})),s},t.safe=o,t.unsafe=a;var n=void 0!==e&&"win32"===e.platform?"\r\n":"\n";function r(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map((function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")}))}function i(e){return'"'===e.charAt(0)&&'"'===e.slice(-1)||"'"===e.charAt(0)&&"'"===e.slice(-1)}function o(e){return"string"!=typeof e||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&i(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function a(e,t){if(!i(e=(e||"").trim())){for(var n=!1,r="",o=0,a=e.length;o<a;o++){var s=e.charAt(o);if(n)-1!=="\\;#".indexOf(s)?r+=s:r+="\\"+s,n=!1;else{if(-1!==";#".indexOf(s))break;"\\"===s?n=!0:r+=s}}return n&&(r+="\\"),r.trim()}"'"===e.charAt(0)&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch(e){}return e}}).call(this,n(70))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(121)),i=f(n(191)),o=n(107),a=n(37),s=n(279),l=f(n(581)),u=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(582)),c=n(1189);function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}const g="https://bitbucket.status.atlassian.com",v=["API","Authentication and user management","Git LFS"];t.default=class{constructor(e,t={}){if(m(this,"lock",void 0),m(this,"api",void 0),m(this,"updateUserCredentials",void 0),m(this,"options",void 0),m(this,"repo",void 0),m(this,"branch",void 0),m(this,"apiRoot",void 0),m(this,"baseUrl",void 0),m(this,"siteId",void 0),m(this,"token",void 0),m(this,"mediaFolder",void 0),m(this,"refreshToken",void 0),m(this,"refreshedTokenPromise",void 0),m(this,"authenticator",void 0),m(this,"_mediaDisplayURLSem",void 0),m(this,"squashMerges",void 0),m(this,"previewContext",void 0),m(this,"largeMediaURL",void 0),m(this,"_largeMediaClientPromise",void 0),m(this,"authType",void 0),m(this,"requestFunction",async e=>{const t=await this.getToken(),n=a.unsentRequest.withHeaders({Authorization:"Bearer "+t},e);return a.unsentRequest.performRequest(n)}),m(this,"apiRequestFunction",async e=>{const t=this.refreshedTokenPromise?await this.refreshedTokenPromise:this.token,n=a.unsentRequest.withHeaders({Authorization:"Bearer "+t},e),r=await a.unsentRequest.performRequest(n);if(401===r.status){const t=await r.json().catch(()=>null);if(t&&"error"===t.type&&/^access token expired/i.test(t.error.message)){const t=await this.getRefreshedAccessToken(),n=a.unsentRequest.withHeaders({Authorization:"Bearer "+t},e);return a.unsentRequest.performRequest(n)}}return r}),this.options=h({proxied:!1,API:null,updateUserCredentials:async()=>null,initialWorkflowStatus:""},t),!this.options.proxied&&(null===e.backend.repo||void 0===e.backend.repo))throw new Error('The BitBucket backend needs a "repo" in the backend configuration.');this.api=this.options.API||null,this.updateUserCredentials=this.options.updateUserCredentials,this.repo=e.backend.repo||"",this.branch=e.backend.branch||"master",this.apiRoot=e.backend.api_root||"https://api.bitbucket.org/2.0",this.baseUrl=e.base_url||"",this.siteId=e.site_id||"",this.largeMediaURL=e.backend.large_media_url||`https://bitbucket.org/${e.backend.repo}/info/lfs`,this.token="",this.mediaFolder=e.media_folder,this.squashMerges=e.backend.squash_merges||!1,this.previewContext=e.backend.preview_context||"",this.lock=(0,a.asyncLock)(),this.authType=e.backend.auth_type||""}isGitBackend(){return!0}async status(){const e=await fetch("https://bitbucket.status.atlassian.com/api/v2/components.json").then(e=>e.json()).then(e=>e.components.filter(e=>v.includes(e.name)).every(e=>"operational"===e.status)).catch(e=>(console.warn("Failed getting BitBucket status",e),!0));let t=!1;var n;e&&(t=await(null===(n=this.api)||void 0===n?void 0:n.user().then(e=>!!e).catch(e=>(console.warn("Failed getting Bitbucket user",e),!1)))||!1);return{auth:{status:t},api:{status:e,statusPage:g}}}authComponent(){return l.default}setUser(e){this.token=e.token,this.api=new u.default({requestFunction:this.apiRequestFunction,branch:this.branch,repo:this.repo,squashMerges:this.squashMerges,initialWorkflowStatus:this.options.initialWorkflowStatus})}restoreUser(e){return this.authenticate(e)}async authenticate(e){this.token=e.token,this.refreshToken=e.refresh_token,this.api=new u.default({requestFunction:this.apiRequestFunction,branch:this.branch,repo:this.repo,apiRoot:this.apiRoot,squashMerges:this.squashMerges,initialWorkflowStatus:this.options.initialWorkflowStatus});if(!await this.api.hasWriteAccess().catch(e=>{throw e.message=o.stripIndent`
+ Repo "${this.repo}" not found.
+
+ Please ensure the repo information is spelled correctly.
+
+ If the repo is private, make sure you're logged into a Bitbucket account with access.
+ `,e}))throw new Error("Your BitBucket user account does not have access to this repo.");const t=await this.api.user();return h(h({},t),{},{name:t.display_name,login:t.username,token:e.token,avatar_url:t.links.avatar.href,refresh_token:e.refresh_token})}getRefreshedAccessToken(){if("implicit"===this.authType)throw new a.AccessTokenError("Can't refresh access token when using implicit auth");if(this.refreshedTokenPromise)return this.refreshedTokenPromise;if(!this.authenticator){const e={base_url:this.baseUrl,site_id:this.siteId};this.authenticator=new s.NetlifyAuthenticator(e)}return this.refreshedTokenPromise=this.authenticator.refresh({provider:"bitbucket",refresh_token:this.refreshToken}).then(({token:e,refresh_token:t})=>(this.token=e,this.refreshToken=t,this.refreshedTokenPromise=void 0,this.updateUserCredentials({token:e,refresh_token:t}),e)),this.refreshedTokenPromise}logout(){this.token=null}getToken(){return this.refreshedTokenPromise?this.refreshedTokenPromise:Promise.resolve(this.token)}async entriesByFolder(e,t,n){let r;const i=await this.api.defaultBranchCommitSha(),o=await(0,a.entriesByFolder)(()=>this.api.listFiles(e,n,20,this.branch).then(({entries:e,cursor:n})=>(r=n.mergeMeta({extension:t}),e.filter(e=>(0,a.filterByExtension)(e,t)))),(e,t)=>this.api.readFile(e,t,{head:i}),this.api.readFileMetadata.bind(this.api),u.API_NAME);return o[a.CURSOR_COMPATIBILITY_SYMBOL]=r,o}async listAllFiles(e,t,n){return(await this.api.listAllFiles(e,n,this.branch)).filter(e=>(0,a.filterByExtension)(e,t))}async allEntriesByFolder(e,t,n){const r=await this.api.defaultBranchCommitSha();return await(0,a.allEntriesByFolder)({listAllFiles:()=>this.listAllFiles(e,t,n),readFile:(e,t)=>this.api.readFile(e,t,{head:r}),readFileMetadata:this.api.readFileMetadata.bind(this.api),apiName:u.API_NAME,branch:this.branch,localForage:a.localForage,folder:e,extension:t,depth:n,getDefaultBranch:()=>Promise.resolve({name:this.branch,sha:r}),isShaExistsInBranch:this.api.isShaExistsInBranch.bind(this.api),getDifferences:(e,t)=>this.api.getDifferences(e,t),getFileId:e=>Promise.resolve(this.api.getFileId(r,e)),filterFile:e=>(0,a.filterByExtension)(e,t)})}async entriesByFiles(e){const t=await this.api.defaultBranchCommitSha();return(0,a.entriesByFiles)(e,(e,n)=>this.api.readFile(e,n,{head:t}),this.api.readFileMetadata.bind(this.api),u.API_NAME)}getEntry(e){return this.api.readFile(e).then(t=>({file:{path:e,id:null},data:t}))}getMedia(e=this.mediaFolder){return this.api.listAllFiles(e,1,this.branch).then(e=>e.map(({id:e,name:t,path:n})=>({id:e,name:t,path:n,displayURL:{id:e,path:n}})))}getLargeMediaClient(){return this._largeMediaClientPromise||(this._largeMediaClientPromise=(async()=>{const e=await this.api.readFile(".gitattributes").then(e=>(0,a.getLargeMediaPatternsFromGitAttributesFile)(e)).catch(e=>(404===e.status?console.log("This 404 was expected and handled appropriately."):console.error(e),[]));return new c.GitLfsClient(!!(this.largeMediaURL&&e.length>0),this.largeMediaURL,e,this.requestFunction)})()),this._largeMediaClientPromise}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,i.default)(10),(0,a.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}async getMediaFile(e){const t=(0,a.basename)(e),n=await(0,a.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),r=(0,a.blobToFileObj)(t,n),i=URL.createObjectURL(r);return{id:await(0,a.getBlobSHA)(r),displayURL:i,path:e,name:t,size:r.size,file:r,url:i}}async persistEntry(e,t,n){const r=await this.getLargeMediaClient();return(0,a.runWithLock)(this.lock,async()=>this.api.persistFiles(e,r.enabled?await(0,a.getLargeMediaFilteredMediaFiles)(r,t):t,n),"Failed to acquire persist entry lock")}async persistMedia(e,t){const{fileObj:n,path:r}=e,i=URL.createObjectURL(n),o=await this.getLargeMediaClient(),s=r.startsWith("/")?r.slice(1):r;if(!o.enabled||!o.matchPath(s))return this._persistMedia(e,t);const l=await(0,a.getPointerFileForMediaFileObj)(o,n,r);return h(h({},await this._persistMedia(l,t)),{},{displayURL:i})}async _persistMedia(e,t){const n=e.fileObj,[i]=await Promise.all([(0,a.getBlobSHA)(n),this.api.persistFiles(null,[e],t)]),o=URL.createObjectURL(n);return{displayURL:o,path:(0,r.default)(e.path,"/k"),name:n.name,size:n.size,id:i,file:n,url:o}}deleteFile(e,t){return this.api.deleteFile(e,t)}traverseCursor(e,t){return this.api.traverseCursor(e,t).then(async({entries:t,cursor:n})=>{var r;const i=null===(r=e.meta)||void 0===r?void 0:r.get("extension");i&&(t=t.filter(e=>(0,a.filterByExtension)(e,i)),n=n.mergeMeta({extension:i}));const o=await this.api.defaultBranchCommitSha();return{entries:await(0,a.entriesByFiles)(t,(e,t)=>this.api.readFile(e,t,{head:o}),this.api.readFileMetadata.bind(this.api),u.API_NAME),cursor:n}})}async loadMediaFile(e,t,{branch:n}){const r=await(0,a.getMediaAsBlob)(e,t,async(e,t,{parseText:r})=>await this.api.readFile(e,t,{branch:n,parseText:r})),i=(0,a.basename)(e),o=(0,a.blobToFileObj)(i,r);return{id:e,displayURL:URL.createObjectURL(o),path:e,name:i,size:o.size,file:o}}async unpublishedEntries(){return await(0,a.unpublishedEntries)(()=>this.api.listUnpublishedBranches().then(e=>e.map(e=>(0,a.contentKeyFromBranch)(e))))}async unpublishedEntry({id:e,collection:t,slug:n}){if(e){return await this.api.retrieveUnpublishedEntryData(e)}if(t&&n){const e=(0,a.generateContentKey)(t,n);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){const n=(0,a.generateContentKey)(e,t);return(0,a.branchFromContentKey)(n)}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(n,r,{branch:i})}async updateUnpublishedEntryStatus(e,t,n){return(0,a.runWithLock)(this.lock,()=>this.api.updateUnpublishedEntryStatus(e,t,n),"Failed to acquire update entry status lock")}async deleteUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,()=>this.api.deleteUnpublishedEntry(e,t),"Failed to acquire delete entry lock")}async publishUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,()=>this.api.publishUnpublishedEntry(e,t),"Failed to acquire publish entry lock")}async getDeployPreview(e,t){try{const n=await this.api.getStatuses(e,t),r=(0,a.getPreviewStatus)(n,this.previewContext);if(r){const{target_url:e,state:t}=r;return{url:e,status:t}}return null}catch(e){return null}}}},function(e,t,n){var r=n(1188);e.exports={parse:function(e){return r.parse(e.toString())}}},function(e,t,n){"use strict";function r(e,t,n,i){this.message=e,this.expected=t,this.found=n,this.location=i,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,r)}!function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(r,Error),r.buildMessage=function(e,t){var n={literal:function(e){return'"'+i(e.text)+'"'},class:function(e){var t,n="";for(t=0;t<e.parts.length;t++)n+=e.parts[t]instanceof Array?o(e.parts[t][0])+"-"+o(e.parts[t][1]):o(e.parts[t]);return"["+(e.inverted?"^":"")+n+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}return"Expected "+function(e){var t,r,i,o=new Array(e.length);for(t=0;t<e.length;t++)o[t]=(i=e[t],n[i.type](i));if(o.sort(),o.length>0){for(t=1,r=1;t<o.length;t++)o[t-1]!==o[t]&&(o[r]=o[t],r++);o.length=r}switch(o.length){case 1:return o[0];case 2:return o[0]+" or "+o[1];default:return o.slice(0,-1).join(", ")+", or "+o[o.length-1]}}(e)+" but "+function(e){return e?'"'+i(e)+'"':"end of input"}(t)+" found."},e.exports={SyntaxError:r,parse:function(e,t){t=void 0!==t?t:{};var n,i={},o={diffs:oe},a=oe,s=Z("Binary files ",!1),l=Z("diff --cc ",!1),u=Z("* Unmerged path ",!1),c=Z("--- ",!1),d=Z("+++ ",!1),f=Z("@@@ -",!1),p=Z(" -",!1),h=Z(" +",!1),m=Z(" @@@",!1),g=Z("@@ -",!1),v=Z(" @@",!1),y=Z(",",!1),b=Z("+",!1),_=Z("-",!1),w=Z(" ",!1),x=Z("\\",!1),k=function(e){return e.join("")},E=Z("diff ",!1),S=Z("similarity index ",!1),O=Z("%",!1),T=Z("new",!1),C=Z("deleted",!1),A=Z(" file mode ",!1),P=Z("old mode ",!1),R=Z("new mode ",!1),M=Z("rename",!1),I=Z("copy",!1),j=Z(" from ",!1),D=function(e,t){return{operation:e,file:t}},L=Z(" to ",!1),N=Z("index ",!1),F=(ee([" ","\t"],!1,!1),Z("\n",!1)),B=Z("\r\n",!1),z={type:"any"},U=/^[^\r\n]/,q=ee(["\r","\n"],!0,!1),H=/^[^ \t\r\n]/,W=ee([" ","\t","\r","\n"],!0,!1),V=/^[0-9]/,$=ee([["0","9"]],!1,!1),G=0,K=[{line:1,column:1}],Y=0,Q=[],X=0,J={};if("startRule"in t){if(!(t.startRule in o))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=o[t.startRule]}function Z(e,t){return{type:"literal",text:e,ignoreCase:t}}function ee(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function te(t){var n,r=K[t];if(r)return r;for(n=t-1;!K[n];)n--;for(r={line:(r=K[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return K[t]=r,r}function ne(e,t){var n=te(e),r=te(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function re(e){G<Y||(G>Y&&(Y=G,Q=[]),Q.push(e))}function ie(e,t,n){return new r(r.buildMessage(e,t),e,t,n)}function oe(){var e,t,n,r=35*G+0,o=J[r];if(o)return G=o.nextPos,o.result;for(e=G,t=[],n=ae();n!==i;)t.push(n),n=ae();return t!==i&&(e,t=t),e=t,J[r]={nextPos:G,result:e},e}function ae(){var t,n=35*G+1,r=J[n];return r?(G=r.nextPos,r.result):((t=function(){var e,t,n=35*G+5,r=J[n];if(r)return G=r.nextPos,r.result;e=G,(t=le())!==i&&ve()!==i&&se()!==i?(e,t=ke(t,void 0,!0),e=t):(G=e,e=i);return J[n]={nextPos:G,result:e},e}())===i&&(t=function(){var t,n,r,o,a,s,l,u,c=35*G+6,d=J[c];if(d)return G=d.nextPos,d.result;t=G,(n=function(){var t,n,r,o,a,s,l=35*G+19,u=J[l];if(u)return G=u.nextPos,u.result;t=G,"diff "===e.substr(G,5)?(n="diff ",G+=5):(n=i,0===X&&re(E));n!==i&&(r=_e())!==i?(32===e.charCodeAt(G)?(o=" ",G++):(o=i,0===X&&re(w)),o!==i&&(a=be())!==i&&(s=ye())!==i?t=n=[n,r,o,a,s]:(G=t,t=i)):(G=t,t=i);return J[l]={nextPos:G,result:t},t}())!==i?((r=ge())===i&&(r=null),r!==i&&(o=function(){var t,n,r,o,a=35*G+21,s=J[a];if(s)return G=s.nextPos,s.result;t=G,"similarity index "===e.substr(G,17)?(n="similarity index ",G+=17):(n=i,0===X&&re(S));n!==i&&(r=we())!==i?(37===e.charCodeAt(G)?(o="%",G++):(o=i,0===X&&re(O)),o!==i&&ye()!==i?(t,t=n=r):(G=t,t=i)):(G=t,t=i);return J[a]={nextPos:G,result:t},t}())!==i&&(a=function(){var t,n,r,o,a=35*G+25,s=J[a];if(s)return G=s.nextPos,s.result;t=G,"rename"===e.substr(G,6)?(n="rename",G+=6):(n=i,0===X&&re(M));n===i&&("copy"===e.substr(G,4)?(n="copy",G+=4):(n=i,0===X&&re(I)));n!==i?(" from "===e.substr(G,6)?(r=" from ",G+=6):(r=i,0===X&&re(j)),r!==i&&(o=be())!==i&&ye()!==i?(t,n=D(n,o),t=n):(G=t,t=i)):(G=t,t=i);return J[a]={nextPos:G,result:t},t}())!==i&&(s=function(){var t,n,r,o,a=35*G+26,s=J[a];if(s)return G=s.nextPos,s.result;t=G,"rename"===e.substr(G,6)?(n="rename",G+=6):(n=i,0===X&&re(M));n===i&&("copy"===e.substr(G,4)?(n="copy",G+=4):(n=i,0===X&&re(I)));n!==i?(" to "===e.substr(G,4)?(r=" to ",G+=4):(r=i,0===X&&re(L)),r!==i&&(o=be())!==i&&ye()!==i?(t,n=D(n,o),t=n):(G=t,t=i)):(G=t,t=i);return J[a]={nextPos:G,result:t},t}())!==i?((l=ve())===i&&(l=null),l!==i?((u=se())===i&&(u=ue()),u===i&&(u=null),u!==i?(t,f=r,p=o,m=s,g=l,v=u,n=function(e,t,n,r,i,o){const a={oldPath:n,newPath:r,hunks:o?o.hunks:[],status:"copy"===e?"copied":"renamed",similarity:t};return i&&(a.oldMode=i.old_mode,a.newMode=i.new_mode),a}((h=a).operation,p,h.file,m.file,f||g,v),t=n):(G=t,t=i)):(G=t,t=i)):(G=t,t=i)):(G=t,t=i);var f,p,h,m,g,v;return J[c]={nextPos:G,result:t},t}())===i&&(t=function(){var e,t,n,r=35*G+7,o=J[r];if(o)return G=o.nextPos,o.result;e=G,(t=le())!==i&&ve()!==i?((n=ue())===i&&(n=null),n!==i?(e,t=ke(t,n),e=t):(G=e,e=i)):(G=e,e=i);return J[r]={nextPos:G,result:e},e}())===i&&(t=function(){var t,n,r,o=35*G+9,a=J[o];if(a)return G=a.nextPos,a.result;t=G,"* Unmerged path "===e.substr(G,16)?(n="* Unmerged path ",G+=16):(n=i,0===X&&re(u));n!==i&&(r=be())!==i&&ye()!==i?(t,n=ke(r),t=n):(G=t,t=i);return J[o]={nextPos:G,result:t},t}())===i&&(t=function(){var e,t,n,r,o=35*G+2,a=J[o];if(a)return G=a.nextPos,a.result;e=G,(t=he())!==i?((n=me())===i&&(n=null),n!==i?((r=ce())===i&&(r=null),r!==i&&se()!==i?(e,t=xe(t,n,void 0,!0),e=t):(G=e,e=i)):(G=e,e=i)):(G=e,e=i);return J[o]={nextPos:G,result:e},e}())===i&&(t=function(){var e,t,n,r,o=35*G+4,a=J[o];if(a)return G=a.nextPos,a.result;e=G,(t=he())!==i?((n=me())===i&&(n=null),n!==i?((r=ue())===i&&(r=null),r!==i?(e,t=xe(t,n,r),e=t):(G=e,e=i)):(G=e,e=i)):(G=e,e=i);return J[o]={nextPos:G,result:e},e}()),J[n]={nextPos:G,result:t},t)}function se(){var t,n,r,o,a=35*G+3,l=J[a];return l?(G=l.nextPos,l.result):(t=G,"Binary files "===e.substr(G,13)?(n="Binary files ",G+=13):(n=i,0===X&&re(s)),n!==i&&(r=be())!==i&&(o=ye())!==i?t=n=[n,r,o]:(G=t,t=i),J[a]={nextPos:G,result:t},t)}function le(){var t,n,r,o=35*G+8,a=J[o];return a?(G=a.nextPos,a.result):(t=G,"diff --cc "===e.substr(G,10)?(n="diff --cc ",G+=10):(n=i,0===X&&re(l)),n!==i&&(r=be())!==i&&ye()!==i?(t,t=n=r):(G=t,t=i),J[o]={nextPos:G,result:t},t)}function ue(){var e,t,n,r=35*G+10,o=J[r];if(o)return G=o.nextPos,o.result;if(e=G,ce()!==i){for(t=[],n=de();n!==i;)t.push(n),n=de();t!==i?(e,e={hunks:t}):(G=e,e=i)}else G=e,e=i;return J[r]={nextPos:G,result:e},e}function ce(){var t,n,r,o,a,s=35*G+11,l=J[s];return l?(G=l.nextPos,l.result):(t=G,"--- "===e.substr(G,4)?(n="--- ",G+=4):(n=i,0===X&&re(c)),n!==i&&(r=be())!==i&&ye()!==i?("+++ "===e.substr(G,4)?(o="+++ ",G+=4):(o=i,0===X&&re(d)),o!==i&&(a=be())!==i&&ye()!==i?(t,t=n={old_file_name:r,new_file_name:a}):(G=t,t=i)):(G=t,t=i),J[s]={nextPos:G,result:t},t)}function de(){var t,n,r,o,a,s,l=35*G+12,u=J[l];if(u)return G=u.nextPos,u.result;if(t=G,(n=function(){var t,n=35*G+13,r=J[n];if(r)return G=r.nextPos,r.result;(t=function(){var t,n,r,o,a,s,l,u,c,d=35*G+14,g=J[d];if(g)return G=g.nextPos,g.result;t=G,"@@@ -"===e.substr(G,5)?(n="@@@ -",G+=5):(n=i,0===X&&re(f));n!==i&&(r=fe())!==i?(" -"===e.substr(G,2)?(o=" -",G+=2):(o=i,0===X&&re(p)),o!==i&&(a=fe())!==i?(" +"===e.substr(G,2)?(s=" +",G+=2):(s=i,0===X&&re(h)),s!==i&&(l=fe())!==i?(" @@@"===e.substr(G,4)?(u=" @@@",G+=4):(u=i,0===X&&re(m)),u!==i?((c=be())===i&&(c=null),c!==i&&ye()!==i?(t,y=a,b=l,_=c,n={ourStartLine:(v=r).start,ourLineCount:v.count,theirStartLine:b.start,theirLineCount:b.count,baseStartLine:y.start,baseLineCount:y.count,heading:_?_.trim():""},t=n):(G=t,t=i)):(G=t,t=i)):(G=t,t=i)):(G=t,t=i)):(G=t,t=i);var v,y,b,_;return J[d]={nextPos:G,result:t},t}())===i&&(t=function(){var t,n,r,o,a,s,l,u=35*G+15,c=J[u];if(c)return G=c.nextPos,c.result;t=G,"@@ -"===e.substr(G,4)?(n="@@ -",G+=4):(n=i,0===X&&re(g));n!==i&&(r=fe())!==i?(" +"===e.substr(G,2)?(o=" +",G+=2):(o=i,0===X&&re(h)),o!==i&&(a=fe())!==i?(" @@"===e.substr(G,3)?(s=" @@",G+=3):(s=i,0===X&&re(v)),s!==i?((l=be())===i&&(l=null),l!==i&&ye()!==i?(t,f=a,p=l,n={oldStartLine:(d=r).start,oldLineCount:d.count,newStartLine:f.start,newLineCount:f.count,heading:p?p.trim():""},t=n):(G=t,t=i)):(G=t,t=i)):(G=t,t=i)):(G=t,t=i);var d,f,p;return J[u]={nextPos:G,result:t},t}());return J[n]={nextPos:G,result:t},t}())!==i){if(r=[],(o=pe())!==i)for(;o!==i;)r.push(o),o=pe();else r=i;r!==i?(t,a=n,s=r,t=n=Object.assign({},a,{lines:s})):(G=t,t=i)}else G=t,t=i;return J[l]={nextPos:G,result:t},t}function fe(){var t,n,r,o,a=35*G+16,s=J[a];return s?(G=s.nextPos,s.result):(t=G,(n=we())!==i?(44===e.charCodeAt(G)?(r=",",G++):(r=i,0===X&&re(y)),r!==i&&(o=we())!==i?(t,t=n={start:n,count:o}):(G=t,t=i)):(G=t,t=i),t===i&&(t=G,(n=we())!==i&&(t,n=function(e){return{start:e,count:1}}(n)),t=n),J[a]={nextPos:G,result:t},t)}function pe(){var t,n,r,o,a=35*G+17,s=J[a];return s?(G=s.nextPos,s.result):(t=G,n=G,43===e.charCodeAt(G)?(r="+",G++):(r=i,0===X&&re(b)),r===i&&(45===e.charCodeAt(G)?(r="-",G++):(r=i,0===X&&re(_)),r===i&&(32===e.charCodeAt(G)?(r=" ",G++):(r=i,0===X&&re(w)),r===i&&(92===e.charCodeAt(G)?(r="\\",G++):(r=i,0===X&&re(x))))),r!==i?((o=be())===i&&(o=null),o!==i?n=r=[r,o]:(G=n,n=i)):(G=n,n=i),n!==i&&(r=ye())!==i?(t,t=n=k(n)):(G=t,t=i),J[a]={nextPos:G,result:t},t)}function he(){var t,n,r,o,a=35*G+18,s=J[a];return s?(G=s.nextPos,s.result):(t=G,"diff "===e.substr(G,5)?(n="diff ",G+=5):(n=i,0===X&&re(E)),n!==i&&_e()!==i?(32===e.charCodeAt(G)?(r=" ",G++):(r=i,0===X&&re(w)),r!==i&&(o=function(){var e,t,n=35*G+20,r=J[n];if(r)return G=r.nextPos,r.result;e=G,(t=be())!==i&&(e,t=(o=t).substr(o.length/2+1));var o;return e=t,J[n]={nextPos:G,result:e},e}())!==i&&ye()!==i?(t,t=n={file_name:o}):(G=t,t=i)):(G=t,t=i),J[a]={nextPos:G,result:t},t)}function me(){var t,n,r,o,a=35*G+22,s=J[a];return s?(G=s.nextPos,s.result):(t=G,(n=function(){var t,n,r,o,a=35*G+23,s=J[a];if(s)return G=s.nextPos,s.result;t=G,"new"===e.substr(G,3)?(n="new",G+=3):(n=i,0===X&&re(T));n===i&&("deleted"===e.substr(G,7)?(n="deleted",G+=7):(n=i,0===X&&re(C)));n!==i?(" file mode "===e.substr(G,11)?(r=" file mode ",G+=11):(r=i,0===X&&re(A)),r!==i&&(o=be())!==i&&ye()!==i?(t,l=o,t=n="new"===n?{old_mode:null,new_mode:l}:{old_mode:l,new_mode:null}):(G=t,t=i)):(G=t,t=i);var l;return J[a]={nextPos:G,result:t},t}())===i&&(n=ge()),n===i&&(n=null),n!==i?((r=ve())===i&&(r=null),r!==i?(t,o=r,t=n=n||o):(G=t,t=i)):(G=t,t=i),J[a]={nextPos:G,result:t},t)}function ge(){var t,n,r,o,a,s=35*G+24,l=J[s];return l?(G=l.nextPos,l.result):(t=G,"old mode "===e.substr(G,9)?(n="old mode ",G+=9):(n=i,0===X&&re(P)),n!==i&&(r=be())!==i&&ye()!==i?("new mode "===e.substr(G,9)?(o="new mode ",G+=9):(o=i,0===X&&re(R)),o!==i&&(a=be())!==i&&ye()!==i?(t,t=n={old_mode:r,new_mode:a}):(G=t,t=i)):(G=t,t=i),J[s]={nextPos:G,result:t},t)}function ve(){var t,n,r,o,a,s,l=35*G+27,u=J[l];return u?(G=u.nextPos,u.result):(t=G,"index "===e.substr(G,6)?(n="index ",G+=6):(n=i,0===X&&re(N)),n!==i&&(r=_e())!==i?(32===e.charCodeAt(G)?(o=" ",G++):(o=i,0===X&&re(w)),o!==i&&(a=be())!==i&&ye()!==i?(t,t=n={old_mode:s=a,new_mode:s}):(G=t,t=i)):(G=t,t=i),t===i&&(t=G,"index "===e.substr(G,6)?(n="index ",G+=6):(n=i,0===X&&re(N)),n!==i&&(r=_e())!==i&&(o=ye())!==i?t=n=[n,r,o]:(G=t,t=i)),J[l]={nextPos:G,result:t},t)}function ye(){var t,n=35*G+29,r=J[n];return r?(G=r.nextPos,r.result):(10===e.charCodeAt(G)?(t="\n",G++):(t=i,0===X&&re(F)),t===i&&("\r\n"===e.substr(G,2)?(t="\r\n",G+=2):(t=i,0===X&&re(B))),t===i&&(t=function(){var t,n,r=35*G+31,o=J[r];if(o)return G=o.nextPos,o.result;t=G,X++,e.length>G?(n=e.charAt(G),G++):(n=i,0===X&&re(z));X--,n===i?t=void 0:(G=t,t=i);return J[r]={nextPos:G,result:t},t}()),J[n]={nextPos:G,result:t},t)}function be(){var t,n,r,o=35*G+32,a=J[o];if(a)return G=a.nextPos,a.result;if(t=G,n=[],U.test(e.charAt(G))?(r=e.charAt(G),G++):(r=i,0===X&&re(q)),r!==i)for(;r!==i;)n.push(r),U.test(e.charAt(G))?(r=e.charAt(G),G++):(r=i,0===X&&re(q));else n=i;return n!==i&&(t,n=k(n)),t=n,J[o]={nextPos:G,result:t},t}function _e(){var t,n,r,o=35*G+33,a=J[o];if(a)return G=a.nextPos,a.result;if(t=G,n=[],H.test(e.charAt(G))?(r=e.charAt(G),G++):(r=i,0===X&&re(W)),r!==i)for(;r!==i;)n.push(r),H.test(e.charAt(G))?(r=e.charAt(G),G++):(r=i,0===X&&re(W));else n=i;return n!==i&&(t,n=k(n)),t=n,J[o]={nextPos:G,result:t},t}function we(){var t,n,r,o=35*G+34,a=J[o];if(a)return G=a.nextPos,a.result;if(t=G,n=[],V.test(e.charAt(G))?(r=e.charAt(G),G++):(r=i,0===X&&re($)),r!==i)for(;r!==i;)n.push(r),V.test(e.charAt(G))?(r=e.charAt(G),G++):(r=i,0===X&&re($));else n=i;return n!==i&&(t,n=parseInt(n.join(""),10)),t=n,J[o]={nextPos:G,result:t},t}function xe(e,t,n,r){if(t.old_mode&&!t.new_mode)return{newPath:null,oldPath:e.file_name,newMode:null,oldMode:t.old_mode,hunks:n?n.hunks:[],status:"deleted",binary:!!r};if(!t.old_mode&&t.new_mode)return{oldPath:null,newPath:e.file_name,oldMode:null,newMode:t.new_mode,hunks:n?n.hunks:[],status:"added",binary:!!r};if(t.old_mode&&t.new_mode)return{newPath:e.file_name,oldPath:e.file_name,oldMode:t.old_mode,newMode:t.new_mode,hunks:n?n.hunks:[],status:"modified",binary:!!r};throw new Error("file modes missing")}function ke(e,t,n){return(t=t||{}).filePath=e,t.status="unmerged",t.binary=!!n,t}if((n=a())!==i&&G===e.length)return n;throw n!==i&&G<e.length&&re({type:"end"}),ie(Q,Y<e.length?e.charAt(Y):null,Y<e.length?ne(Y,Y+1):ne(Y,Y))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GitLfsClient=void 0;var r,i=(r=n(583))&&r.__esModule?r:{default:r},o=n(37);function a(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c{constructor(e,t,n,r){this.enabled=e,this.rootURL=t,this.patterns=n,this.makeAuthorizedRequest=r}matchPath(e){return this.patterns.some(t=>(0,i.default)(e,t,{matchBase:!0}))}async uploadResource(e,t){const n=await this.getResourceUploadRequests([e]);for(const e of n)await this.doUpload(e.actions.upload,t),e.actions.verify&&await this.doVerify(e.actions.verify,e);return e.sha}async doUpload(e,t){await o.unsentRequest.fetchWithTimeout(decodeURI(e.href),{method:"PUT",body:t,headers:e.header})}async doVerify(e,t){this.makeAuthorizedRequest({url:decodeURI(e.href),method:"POST",headers:l(l({},c.defaultContentHeaders),e.header),body:JSON.stringify({oid:t.oid,size:t.size})})}async getResourceUploadRequests(e){const t=await this.makeAuthorizedRequest({url:this.rootURL+"/objects/batch",method:"POST",headers:c.defaultContentHeaders,body:JSON.stringify({operation:"upload",transfers:["basic"],objects:e.map(e=>{let{sha:t}=e;return l(l({},a(e,["sha"])),{},{oid:t})})})});return(await t.json()).objects.filter(e=>"error"in e?(console.error(e.error),!1):e.actions)}}t.GitLfsClient=c,u(c,"defaultContentHeaders",{Accept:"application/vnd.git-lfs+json","Content-Type":"application/vnd.git-lfs+json"})},function(e,t,n){var r=n(1191),i=n(1192);e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,n){var o=[],a=i("{","}",t);if(!a||/\$$/.test(a.pre))return[t];var l,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),g=u||d,v=a.body.indexOf(",")>=0;if(!g&&!v)return a.post.match(/,.*\}/)?(t=a.pre+"{"+a.body+s+a.post,e(t)):[t];if(g)l=a.body.split(/\.\./);else{if(1===(l=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,a=r.body,s=r.post,l=o.split(",");l[l.length-1]+="{"+a+"}";var u=e(s);s.length&&(l[l.length-1]+=u.shift(),l.push.apply(l,u));return n.push.apply(n,l),n}(a.body)).length)if(1===(l=e(l[0],!1).map(f)).length)return(_=a.post.length?e(a.post,!1):[""]).map((function(e){return a.pre+l[0]+e}))}var y,b=a.pre,_=a.post.length?e(a.post,!1):[""];if(g){var w=c(l[0]),x=c(l[1]),k=Math.max(l[0].length,l[1].length),E=3==l.length?Math.abs(c(l[2])):1,S=h;x<w&&(E*=-1,S=m);var O=l.some(p);y=[];for(var T=w;S(T,x);T+=E){var C;if(d)"\\"===(C=String.fromCharCode(T))&&(C="");else if(C=String(T),O){var A=k-C.length;if(A>0){var P=new Array(A+1).join("0");C=T<0?"-"+P+C.slice(1):P+C}}y.push(C)}}else y=r(l,(function(t){return e(t,!1)}));for(var R=0;R<y.length;R++)for(var M=0;M<_.length;M++){var I=b+y[R]+_[M];(!n||g||I)&&o.push(I)}return o}(function(e){return e.split("\\\\").join(o).split("\\{").join(a).split("\\}").join(s).split("\\,").join(l).split("\\.").join(u)}(e),!0).map(d)};var o="\0SLASH"+Math.random()+"\0",a="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",l="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function c(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function d(e){return e.split(o).join("\\").split(a).join("{").split(s).join("}").split(l).join(",").split(u).join(".")}function f(e){return"{"+e+"}"}function p(e){return/^-?0\d/.test(e)}function h(e,t){return e<=t}function m(e,t){return e>=t}},function(e,t){e.exports=function(e,t){for(var r=[],i=0;i<e.length;i++){var o=t(e[i],i);n(o)?r.push.apply(r,o):r.push(o)}return r};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";function r(e,t,n){e instanceof RegExp&&(e=i(e,n)),t instanceof RegExp&&(t=i(t,n));var r=o(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function i(e,t){var n=t.match(e);return n?n[0]:null}function o(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())<o&&(o=i,a=u),u=n.indexOf(t,c+1)),c=l<u&&l>=0?l:u;r.length&&(s=[o,a])}return s}e.exports=r,r.range=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(372),i=n(37);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends r.API{constructor(e){super(e),s(this,"tokenPromise",void 0),s(this,"commitAuthor",void 0),this.apiRoot=e.apiRoot,this.tokenPromise=e.tokenPromise,this.commitAuthor=e.commitAuthor,this.repoURL="",this.originRepoURL=""}hasWriteAccess(){return this.getDefaultBranch().then(()=>!0).catch(e=>{if(401===e.status){if("Bad credentials"===e.message)throw new i.APIError("Git Gateway Error: Please ask your site administrator to reissue the Git Gateway token.",e.status,"Git Gateway");return!1}throw 404!==e.status||void 0!==e.message&&"Unable to locate site configuration"!==e.message?(console.error("Problem fetching repo data from Git Gateway"),e):new i.APIError("Git Gateway Error: Please make sure Git Gateway is enabled on your site.",e.status,"Git Gateway")})}requestHeaders(e={}){return this.tokenPromise().then(t=>a({Authorization:"Bearer "+t,"Content-Type":"application/json; charset=utf-8"},e))}handleRequestError(e,t){throw new i.APIError(e.message||e.msg,t,"Git Gateway")}user(){return Promise.resolve(a({login:""},this.commitAuthor))}async getHeadReference(e){if(!this.repoOwner){const e=(await this.getDefaultBranch())._links.self,t=new RegExp("https?://.+?/repos/(.+?)/"),n=e.match(t);this.repoOwner=n?n[1]:""}return super.getHeadReference(e)}commit(e,t){const n={message:e,tree:t.sha,parents:t.parentSha?[t.parentSha]:[]};return this.commitAuthor&&(n.author=a(a({},this.commitAuthor),{},{date:(new Date).toISOString()})),this.request("/git/commits",{method:"POST",body:JSON.stringify(n)})}nextUrlProcessor(){return e=>e.replace(/^(?:[a-z]+:\/\/.+?\/.+?\/.+?\/)/,this.apiRoot+"/")}}t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(375),i=n(37);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class a extends r.API{constructor(e){super(e),o(this,"tokenPromise",void 0),o(this,"withAuthorizationHeaders",async e=>{const t=await this.tokenPromise();return i.unsentRequest.withHeaders({Authorization:"Bearer "+t},e)}),o(this,"hasWriteAccess",()=>Promise.resolve(!0)),this.tokenPromise=e.tokenPromise,this.commitAuthor=e.commitAuthor,this.repoURL=""}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClient=t.matchPath=void 0;var r=l(n(354)),i=l(n(511)),o=l(n(512)),a=l(n(583)),s=n(37);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}function f(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const p=({patterns:e},t)=>e.some(e=>(0,a.default)(t,e,{matchBase:!0}));t.matchPath=p;const h={Accept:"application/vnd.git-lfs+json","Content-Type":"application/vnd.git-lfs+json"},m=async({rootURL:e,makeAuthorizedRequest:t},{sha:n,size:r})=>{const i=await t({url:e+"/verify",method:"POST",headers:h,body:JSON.stringify({oid:n,size:r})});return!!i.ok||404!==i.status&&void 0},g=e=>({operation:"upload",transfers:["basic"],objects:e.map(e=>{let{sha:t}=e;return c(c({},f(e,["sha"])),{},{oid:t})})}),v=async({rootURL:e,makeAuthorizedRequest:t},n)=>{const r=await t({url:e+"/objects/batch",method:"POST",headers:h,body:JSON.stringify(g(n))});return(await r.json()).objects.map(e=>{if(e.error)throw new Error(e.error.message);return e.actions.upload.href})},y={resourceExists:m,getResourceUploadURLs:v,getDownloadURL:({rootURL:e,transformImages:t,makeAuthorizedRequest:n},{sha:r})=>n(`${e}/origin/${r}${t&&Object.keys(t).length>0?(e=>`?nf_resize=${e.nf_resize}&w=${e.w}&h=${e.h}`)(t):""}`).then(e=>e.ok?e:Promise.reject(e)).then(e=>e.blob()).then(e=>URL.createObjectURL(e)).catch(e=>(console.error(e),Promise.resolve(""))),uploadResource:async(e,{sha:t,size:n},r)=>{if(await m(e,{sha:t,size:n}))return t;const[i]=await v(e,[{sha:t,size:n}]);return await((e,t)=>s.unsentRequest.fetchWithTimeout(e,{method:"PUT",body:t}))(i,r),t},matchPath:p};t.getClient=e=>(0,o.default)([Object.keys,(0,r.default)(t=>{return[t,(n=e,r=y[t],(...e)=>r(n,...e))];var n,r}),i.default,t=>c(c({},t),{},{patterns:e.patterns,enabled:e.enabled})])(y)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"TestBackend",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return i.default}}),t.NetlifyCmsBackendTest=void 0;var r=o(n(1197)),i=o(n(586));function o(e){return e&&e.__esModule?e:{default:e}}const a={TestBackend:r.default,AuthenticationPage:i.default};t.NetlifyCmsBackendTest=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.getFolderFiles=void 0;var r=f(n(142)),i=f(n(1198)),o=f(n(1200)),a=f(n(256)),s=f(n(459)),l=f(n(140)),u=n(37),c=n(89),d=f(n(586));function f(e){return e&&e.__esModule?e:{default: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}function h(e,t){const n=e.split("/");let r=t;for(;r&&n.length;)r=r[n.shift()];return r||{}}function m(e,t,n){const r=e.split("/");let i=n;for(;r.length>1;){const e=r.shift();i[e]=i[e]||{},i=i[e]}i[r.shift()]={content:t,path:e}}function g(e,t){(0,i.default)(t,e.split("/"))}window.repoFiles=window.repoFiles||{},window.repoFilesUnpublished=window.repoFilesUnpublished||[];const v=(e,t,n,r,i)=>{const o=n.length,a=Math.floor(o/10);return u.Cursor.create({actions:[...r<a?["next","last"]:[],...r>0?["prev","first"]:[]],meta:{index:r,count:o,pageSize:10,pageCount:a},data:{folder:e,extension:t,index:r,pageCount:a,depth:i}})},y=(e,t,n,r,i=[],o=t)=>(r<=0||Object.keys(e[t]||{}).forEach(a=>{if(!(0,c.extname)(a)){const s=e[t];return y(s,a,n,r-1,i,`${o}/${a}`)}{const r=e[t][a];n&&!a.endsWith("."+n)||i.unshift({content:r.content,path:`${o}/${a}`})}}),i);t.getFolderFiles=y;t.default=class{constructor(e,t={}){p(this,"mediaFolder",void 0),p(this,"options",void 0),this.options=t,this.mediaFolder=e.media_folder}isGitBackend(){return!1}status(){return Promise.resolve({auth:{status:!0},api:{status:!0,statusPage:""}})}authComponent(){return d.default}restoreUser(){return this.authenticate()}authenticate(){return Promise.resolve()}logout(){return null}getToken(){return Promise.resolve("")}traverseCursor(e,t){const{folder:n,extension:r,index:i,pageCount:o,depth:a}=e.data.toObject(),s="next"===t?i+1:"prev"===t?i-1:"first"===t?0:"last"===t?o:0,l=y(window.repoFiles,n,r,a).map(e=>({data:e.content,file:{path:e.path,id:e.path}})),u=l.slice(10*s,10*s+10),c=v(n,r,l,s,a);return Promise.resolve({entries:u,cursor:c})}entriesByFolder(e,t,n){const r=(e?y(window.repoFiles,e,t,n):[]).map(e=>({data:e.content,file:{path:e.path,id:e.path}})),i=v(e,t,r,0,n),a=(0,o.default)(r,10);return a[u.CURSOR_COMPATIBILITY_SYMBOL]=i,Promise.resolve(a)}entriesByFiles(e){return Promise.all(e.map(e=>({file:e,data:h(e.path,window.repoFiles).content})))}getEntry(e){return Promise.resolve({file:{path:e,id:null},data:h(e,window.repoFiles).content})}unpublishedEntries(){return Promise.resolve(Object.keys(window.repoFilesUnpublished))}unpublishedEntry({id:e,collection:t,slug:n}){if(e){const r=e.split("/");t=r[0],n=r[1]}const r=window.repoFilesUnpublished[`${t}/${n}`];return r?Promise.resolve(r):Promise.reject(new u.EditorialWorkflowError("content is not under editorial workflow",!0))}async unpublishedEntryDataFile(e,t,n){const r=window.repoFilesUnpublished[`${e}/${t}`].diffs.find(e=>e.path===n);return null==r?void 0:r.content}async unpublishedEntryMediaFile(e,t,n){const r=window.repoFilesUnpublished[`${e}/${t}`].diffs.find(e=>e.path===n);return this.normalizeAsset(null==r?void 0:r.content)}deleteUnpublishedEntry(e,t){return delete window.repoFilesUnpublished[`${e}/${t}`],Promise.resolve()}async addOrUpdateUnpublishedEntry(e,t,n,i,o,a,s,l){var u;const c=null===(u=window.repoFilesUnpublished[e])||void 0===u?void 0:u.diffs.find(e=>e.path===t),d=c?c.originalPath:t,f=[];f.push({originalPath:d,id:n||t,path:n||t,newFile:(0,r.default)(h(d,window.repoFiles)),status:"added",content:i}),o.forEach(e=>{const t=this.normalizeAsset(e);f.push({id:t.id,path:t.path,newFile:!0,status:"added",content:t})}),window.repoFilesUnpublished[e]={slug:a,collection:s,status:l,diffs:f,updatedAt:(new Date).toISOString()}}async persistEntry({path:e,raw:t,slug:n,newPath:r},i,o){if(o.useWorkflow){const a=`${o.collectionName}/${n}`,s=window.repoFilesUnpublished[a],l=(null==s?void 0:s.status)||o.status||this.options.initialWorkflowStatus;return this.addOrUpdateUnpublishedEntry(a,e,r,t,i,n,o.collectionName,l),Promise.resolve()}return m(e,t,window.repoFiles),i.forEach(e=>{m(e.path,t,window.repoFiles)}),Promise.resolve()}updateUnpublishedEntryStatus(e,t,n){return window.repoFilesUnpublished[`${e}/${t}`].status=n,Promise.resolve()}publishUnpublishedEntry(e,t){const n=`${e}/${t}`,r=window.repoFilesUnpublished[n];delete window.repoFilesUnpublished[n];const i=window.repoFiles;return r.diffs.forEach(e=>{if(e.originalPath&&!e.newFile){const t=e.originalPath,n=(0,c.dirname)(t),r=(0,c.dirname)(e.path);y(i,t.split("/")[0],"",100).filter(e=>e.path.startsWith(n)).forEach(e=>{g(e.path,i),m(e.path.replace(n,r),e.content,i)})}m(e.path,e.content,i)}),Promise.resolve()}getMedia(e=this.mediaFolder){const t=y(window.repoFiles,e.split("/")[0],"",100).filter(t=>t.path.startsWith(e)).map(e=>this.normalizeAsset(e.content));return Promise.resolve(t)}async getMediaFile(e){const t=h(e,window.repoFiles).content.toString(),n=(0,u.basename)(e),r=await fetch(t).then(e=>e.blob()),i=new File([r],n);return{id:t,displayURL:t,path:e,name:n,size:i.size,file:i,url:t}}normalizeAsset(e){const t=e.fileObj,{name:n,size:r}=t,i=(0,s.default)(window.URL.createObjectURL,t),o=(0,a.default)(i)?"":i;return{id:(0,l.default)(),name:n,size:r,path:e.path,url:o,displayURL:o,fileObj:t}}persistMedia(e){const t=this.normalizeAsset(e);return m(e.path,e,window.repoFiles),Promise.resolve(t)}deleteFile(e){return g(e,window.repoFiles),Promise.resolve()}async getDeployPreview(){return null}}},function(e,t,n){var r=n(585);e.exports=function(e,t){return null==e||r(e,t)}},function(e,t,n){var r=n(210),i=n(216);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},function(e,t,n){var r=n(216),i=n(110);e.exports=function(e,t,n){return e&&e.length?(t=n||void 0===t?1:i(t),r(e,0,t<0?0:t)):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ProxyBackend",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return i.default}}),t.NetlifyCmsBackendProxy=void 0;var r=o(n(1202)),i=o(n(587));function o(e){return e&&e.__esModule?e:{default:e}}const a={ProxyBackend:r.default,AuthenticationPage:i.default};t.NetlifyCmsBackendProxy=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(37),o=(r=n(587))&&r.__esModule?r:{default:r};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=async e=>{const t=await e.toBase64();return{path:e.path,content:t,encoding:"base64"}},c=({id:e,content:t,encoding:n,path:r,name:i})=>{let o=new Uint8Array(0);if("base64"!==n)console.error(`Unsupported encoding '${n}' for file '${r}'`);else{const e=atob(t);o=new Uint8Array(e.length);for(let t=0;t<e.length;t++)o[t]=e.charCodeAt(t)}const a=new File([o],i),s=URL.createObjectURL(a);return{id:e,name:i,path:r,file:a,size:a.size,url:s,displayURL:s}};t.default=class{constructor(e,t={}){if(l(this,"proxyUrl",void 0),l(this,"mediaFolder",void 0),l(this,"options",void 0),l(this,"branch",void 0),!e.backend.proxy_url)throw new Error('The Proxy backend needs a "proxy_url" in the backend configuration.');this.branch=e.backend.branch||"master",this.proxyUrl=e.backend.proxy_url,this.mediaFolder=e.media_folder,this.options=t}isGitBackend(){return!1}status(){return Promise.resolve({auth:{status:!0},api:{status:!0,statusPage:""}})}authComponent(){return o.default}restoreUser(){return this.authenticate()}authenticate(){return Promise.resolve()}logout(){return null}getToken(){return Promise.resolve("")}async request(e){const t=await i.unsentRequest.fetchWithTimeout(this.proxyUrl,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(s({branch:this.branch},e))}),n=await t.json();if(t.ok)return n;throw new i.APIError(n.error,t.status,"Proxy")}entriesByFolder(e,t,n){return this.request({action:"entriesByFolder",params:{branch:this.branch,folder:e,extension:t,depth:n}})}entriesByFiles(e){return this.request({action:"entriesByFiles",params:{branch:this.branch,files:e}})}getEntry(e){return this.request({action:"getEntry",params:{branch:this.branch,path:e}})}unpublishedEntries(){return this.request({action:"unpublishedEntries",params:{branch:this.branch}})}async unpublishedEntry({id:e,collection:t,slug:n}){try{return await this.request({action:"unpublishedEntry",params:{branch:this.branch,id:e,collection:t,slug:n}})}catch(e){if(404===e.status)throw new i.EditorialWorkflowError("content is not under editorial workflow",!0);throw e}}async unpublishedEntryDataFile(e,t,n,r){const{data:i}=await this.request({action:"unpublishedEntryDataFile",params:{branch:this.branch,collection:e,slug:t,path:n,id:r}});return i}async unpublishedEntryMediaFile(e,t,n,r){const i=await this.request({action:"unpublishedEntryMediaFile",params:{branch:this.branch,collection:e,slug:t,path:n,id:r}});return c(i)}deleteUnpublishedEntry(e,t){return this.request({action:"deleteUnpublishedEntry",params:{branch:this.branch,collection:e,slug:t}})}async persistEntry(e,t,n){const r=await Promise.all(t.map(u));return this.request({action:"persistEntry",params:{branch:this.branch,entry:e,assets:r,options:s(s({},n),{},{status:n.status||this.options.initialWorkflowStatus})}})}updateUnpublishedEntryStatus(e,t,n){return this.request({action:"updateUnpublishedEntryStatus",params:{branch:this.branch,collection:e,slug:t,newStatus:n}})}publishUnpublishedEntry(e,t){return this.request({action:"publishUnpublishedEntry",params:{branch:this.branch,collection:e,slug:t}})}async getMedia(e=this.mediaFolder){return(await this.request({action:"getMedia",params:{branch:this.branch,mediaFolder:e}})).map(c)}async getMediaFile(e){const t=await this.request({action:"getMediaFile",params:{branch:this.branch,path:e}});return c(t)}async persistMedia(e,t){const n=await u(e),r=await this.request({action:"persistMedia",params:{branch:this.branch,asset:n,options:{commitMessage:t.commitMessage}}});return c(r)}deleteFile(e,t){return this.request({action:"deleteFile",params:{branch:this.branch,path:e,options:{commitMessage:t}}})}getDeployPreview(e,t){return this.request({action:"getDeployPreview",params:{branch:this.branch,collection:e,slug:t}})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetString=void 0;var r=o(n(1204)),i=o(n(1205));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l={Widget:(e={})=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"string",controlComponent:r.default,previewComponent:i.default},e),controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetString=l;var u=l;t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1)),i=a(n(2)),o=n(11);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends r.default.Component{render(){const{forID:e,value:t,onChange:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:a}=this.props;return(0,o.jsx)("input",{type:"text",id:e,className:r,value:t||"",onChange:e=>n(e.target.value),onFocus:i,onBlur:a})}}t.default=l,s(l,"propTypes",{onChange:i.default.func.isRequired,forID:i.default.string,value:i.default.node,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired}),s(l,"defaultProps",{value:""})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(n(1));var r=a(n(2)),i=n(16),o=n(11);function a(e){return e&&e.__esModule?e:{default:e}}const s=({value:e})=>(0,o.jsx)(i.WidgetPreviewContainer,null,e);s.propTypes={value:r.default.node};var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetNumber=void 0;var r=a(n(1207)),i=a(n(1208)),o=a(n(1209));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={Widget:(e={})=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"number",controlComponent:r.default,previewComponent:i.default,schema:o.default},e),controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetNumber=u;var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateMinMax=c,t.default=void 0;var r=s(n(1)),i=s(n(2)),o=s(n(24)),a=n(11);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u="RANGE";function c(e,t,n,r,i){let o;switch(!0){case""!==e&&!1!==t&&!1!==n&&(e<t||e>n):o={type:u,message:i("editor.editorControlPane.widget.range",{fieldLabel:r.get("label",r.get("name")),minValue:t,maxValue:n})};break;case""!==e&&!1!==t&&e<t:o={type:u,message:i("editor.editorControlPane.widget.min",{fieldLabel:r.get("label",r.get("name")),minValue:t})};break;case""!==e&&!1!==n&&e>n:o={type:u,message:i("editor.editorControlPane.widget.max",{fieldLabel:r.get("label",r.get("name")),maxValue:n})};break;default:o=null}return o}class d extends r.default.Component{constructor(...e){super(...e),l(this,"handleChange",e=>{const t=this.props.field.get("valueType"),{onChange:n}=this.props,r="float"===t?parseFloat(e.target.value):parseInt(e.target.value,10);isNaN(r)?n(""):n(r)}),l(this,"isValid",()=>{const{field:e,value:t,t:n}=this.props,r=!!e.get("pattern",!1),i=e.get("min",!1),o=e.get("max",!1);if(r)return!0;const a=c(t,i,o,e,n);return!a||{error:a}})}render(){const{field:e,value:t,classNameWrapper:n,forID:r,setActiveStyle:i,setInactiveStyle:o}=this.props,s=e.get("min",""),l=e.get("max",""),u=e.get("step","int"===e.get("valueType")?1:"");return(0,a.jsx)("input",{type:"number",id:r,className:n,onFocus:i,onBlur:o,value:t||(0===t?t:""),step:u,min:s,max:l,onChange:this.handleChange})}}t.default=d,l(d,"propTypes",{field:o.default.map.isRequired,onChange:i.default.func.isRequired,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired,value:i.default.node,forID:i.default.string,valueType:i.default.string,step:i.default.number,min:i.default.number,max:i.default.number,t:i.default.func.isRequired}),l(d,"defaultProps",{value:""})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(n(1));var r=a(n(2)),i=n(16),o=n(11);function a(e){return e&&e.__esModule?e:{default:e}}const s=({value:e})=>(0,o.jsx)(i.WidgetPreviewContainer,null,e);s.propTypes={value:r.default.node};var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{step:{type:"number"},valueType:{type:"string"},min:{type:"number"},max:{type:"number"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetText=void 0;var r=o(n(1211)),i=o(n(1213));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l={Widget:(e={})=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"text",controlComponent:r.default,previewComponent:i.default},e),controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetText=l;var u=l;t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1)),i=s(n(2)),o=s(n(1212)),a=n(11);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={name:"1feyfsx-TextControl",styles:"font-family:inherit;;label:TextControl;"};class c extends r.default.Component{shouldComponentUpdate(){return!0}render(){const{forID:e,value:t,onChange:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:s}=this.props;return(0,a.jsx)(o.default,{id:e,value:t||"",className:r,onFocus:i,onBlur:s,style:{minHeight:"140px"},css:u,onChange:e=>n(e.target.value)})}}t.default=c,l(c,"propTypes",{onChange:i.default.func.isRequired,forID:i.default.string,value:i.default.node,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired}),l(c,"defaultProps",{value:""})},function(e,t,n){"use strict";n.r(t);var r=n(32),i=n(57),o=n(25),a=n(63),s=n(1),l=(n(2),!!document.documentElement.currentStyle),u={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},c=["letter-spacing","line-height","font-family","font-weight","font-size","font-style","tab-size","text-rendering","text-transform","width","text-indent","padding-top","padding-right","padding-bottom","padding-left","border-top-width","border-right-width","border-bottom-width","border-left-width","box-sizing"],d={},f=document.createElement("textarea"),p=function(e){Object.keys(u).forEach((function(t){e.style.setProperty(t,u[t],"important")}))};function h(e,t,n,r,i){void 0===n&&(n=!1),void 0===r&&(r=null),void 0===i&&(i=null),null===f.parentNode&&document.body.appendChild(f);var o=function(e,t,n){void 0===n&&(n=!1);if(n&&d[t])return d[t];var r=window.getComputedStyle(e);if(null===r)return null;var i=c.reduce((function(e,t){return e[t]=r.getPropertyValue(t),e}),{}),o=i["box-sizing"];if(""===o)return null;l&&"border-box"===o&&(i.width=parseFloat(i.width)+parseFloat(r["border-right-width"])+parseFloat(r["border-left-width"])+parseFloat(r["padding-right"])+parseFloat(r["padding-left"])+"px");var a=parseFloat(i["padding-bottom"])+parseFloat(i["padding-top"]),s=parseFloat(i["border-bottom-width"])+parseFloat(i["border-top-width"]),u={sizingStyle:i,paddingSize:a,borderSize:s,boxSizing:o};n&&(d[t]=u);return u}(e,t,n);if(null===o)return null;var a=o.paddingSize,s=o.borderSize,u=o.boxSizing,h=o.sizingStyle;Object.keys(h).forEach((function(e){f.style[e]=h[e]})),p(f),f.value=e.value||e.placeholder||"x";var m=-1/0,g=1/0,v=f.scrollHeight;"border-box"===u?v+=s:"content-box"===u&&(v-=a),f.value="x";var y=f.scrollHeight-a,b=Math.floor(v/y);return null!==r&&(m=y*r,"border-box"===u&&(m=m+a+s),v=Math.max(m,v)),null!==i&&(g=y*i,"border-box"===u&&(g=g+a+s),v=Math.min(g,v)),{height:v,minHeight:m,maxHeight:g,rowCount:Math.floor(v/y),valueRowCount:b}}f.setAttribute("tab-index","-1"),f.setAttribute("aria-hidden","true"),p(f);var m=function(){},g=0,v=function(e){function t(t){var n;return(n=e.call(this,t)||this)._onRef=function(e){n._ref=e;var t=n.props.inputRef;"function"!=typeof t?t.current=e:t(e)},n._onChange=function(e){n._controlled||n._resizeComponent(),n.props.onChange(e,Object(o.a)(n))},n._resizeComponent=function(e){void 0===e&&(e=m);var t=h(n._ref,n._uid,n.props.useCacheForDOMMeasurements,n.props.minRows,n.props.maxRows);if(null!==t){var r=t.height,i=t.minHeight,o=t.maxHeight,a=t.rowCount,s=t.valueRowCount;n.rowCount=a,n.valueRowCount=s,n.state.height===r&&n.state.minHeight===i&&n.state.maxHeight===o?e():n.setState({height:r,minHeight:i,maxHeight:o},e)}else e()},n.state={height:t.style&&t.style.height||0,minHeight:-1/0,maxHeight:1/0},n._uid=g++,n._controlled=void 0!==t.value,n._resizeLock=!1,n}Object(a.a)(t,e);var n=t.prototype;return n.render=function(){var e=this.props,t=(e.inputRef,e.maxRows,e.minRows,e.onHeightChange,e.useCacheForDOMMeasurements,Object(i.a)(e,["inputRef","maxRows","minRows","onHeightChange","useCacheForDOMMeasurements"]));return t.style=Object(r.a)({},t.style,{height:this.state.height}),Math.max(t.style.maxHeight||1/0,this.state.maxHeight)<this.state.height&&(t.style.overflow="hidden"),Object(s.createElement)("textarea",Object(r.a)({},t,{onChange:this._onChange,ref:this._onRef}))},n.componentDidMount=function(){var e=this;this._resizeComponent(),this._resizeListener=function(){e._resizeLock||(e._resizeLock=!0,e._resizeComponent((function(){e._resizeLock=!1})))},window.addEventListener("resize",this._resizeListener)},n.componentDidUpdate=function(e,t){e!==this.props&&this._resizeComponent(),this.state.height!==t.height&&this.props.onHeightChange(this.state.height,this)},n.componentWillUnmount=function(){window.removeEventListener("resize",this._resizeListener),function(e){delete d[e]}(this._uid)},t}(s.Component);v.defaultProps={inputRef:m,onChange:m,onHeightChange:m,useCacheForDOMMeasurements:!1},t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(n(1));var r=a(n(2)),i=n(16),o=n(11);function a(e){return e&&e.__esModule?e:{default:e}}const s=({value:e})=>(0,o.jsx)(i.WidgetPreviewContainer,null,e);s.propTypes={value:r.default.node};var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetImage=void 0;var r=a(n(588)),i=a(n(1218)),o=a(n(1219));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=r.default.withFileControl({forImage:!0}),c={Widget:(e={})=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"image",controlComponent:u,previewComponent:i.default,schema:o.default},e),controlComponent:u,previewComponent:i.default};t.NetlifyCmsWidgetImage=c;var d=c;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({forImage:e}={}){var t,n;return n=t=class extends o.default.Component{constructor(t){super(t),m(this,"handleChange",t=>{const{field:n,onOpenMediaLibrary:r,value:i}=this.props;let o;return t.preventDefault(),n.hasIn(["options","media_library"])?(T(n),o=n.getIn(["options","media_library"],(0,l.Map)())):o=n.get("media_library",(0,l.Map)()),r({controlID:this.controlID,forImage:e,privateUpload:n.get("private"),value:i,allowMultiple:!!o.get("allow_multiple",!0),config:o.get("config"),field:n})}),m(this,"handleRemove",e=>(e.preventDefault(),this.props.onClearMediaControl(this.controlID),this.props.onChange(""))),m(this,"getValidateValue",()=>{const{value:e}=this.props;return e?O(e)?e.map(e=>(0,f.basename)(e)):(0,f.basename)(e):e}),m(this,"renderFileLink",e=>{if(!e||e.length<=50)return e;const t=`${e.substring(0,25)}…${e.substring(e.length-25+1,e.length)}`;return(0,p.jsx)(w,{href:e,rel:"noopener",target:"_blank"},t)}),m(this,"renderFileLinks",()=>{const{value:e}=this.props;return O(e)?(0,p.jsx)(x,null,(0,p.jsx)(k,null,e.map(e=>(0,p.jsx)("li",{key:e},this.renderFileLink(e))))):(0,p.jsx)(x,null,this.renderFileLink(e))}),m(this,"renderImages",()=>{const{getAsset:e,value:t,field:n}=this.props;if(O(t))return(0,p.jsx)(_,null,t.map(t=>(0,p.jsx)(v,{key:t},(0,p.jsx)(b,{src:e(t,n)||""}))));const r=e(t,n);return(0,p.jsx)(v,null,(0,p.jsx)(b,{src:r||""}))}),m(this,"renderSelection",t=>{const{t:n}=this.props;return(0,p.jsx)("div",null,e?this.renderImages():null,(0,p.jsx)("div",null,e?null:this.renderFileLinks(),(0,p.jsx)(E,{onClick:this.handleChange},n(`editor.editorWidgets.${t}.chooseDifferent`)),(0,p.jsx)(S,{onClick:this.handleRemove},n(`editor.editorWidgets.${t}.remove`))))}),m(this,"renderNoSelection",e=>{const{t:t}=this.props;return(0,p.jsx)(E,{onClick:this.handleChange},t(`editor.editorWidgets.${e}.choose`))}),this.controlID=(0,u.default)()}shouldComponentUpdate(e){if(this.props.value!==e.value||this.props.getAsset!==e.getAsset)return!0;const t=e.mediaPaths.get(this.controlID);return!(!t||e.value===t)}componentDidUpdate(){const{mediaPaths:e,value:t,onRemoveInsertedMedia:n,onChange:r}=this.props,i=e.get(this.controlID);i&&i!==t?r(i):i&&i===t&&n(this.controlID)}componentWillUnmount(){this.props.onRemoveMediaControl(this.controlID)}render(){const{value:t,classNameWrapper:n}=this.props,r=e?"image":"file";return(0,p.jsx)("div",{className:n},(0,p.jsx)("span",null,t?this.renderSelection(r):this.renderNoSelection(r)))}},m(t,"propTypes",{field:a.default.object.isRequired,getAsset:a.default.func.isRequired,mediaPaths:s.default.map.isRequired,onAddAsset:a.default.func.isRequired,onChange:a.default.func.isRequired,onRemoveInsertedMedia:a.default.func.isRequired,onOpenMediaLibrary:a.default.func.isRequired,onClearMediaControl:a.default.func.isRequired,onRemoveMediaControl:a.default.func.isRequired,classNameWrapper:a.default.string.isRequired,value:a.default.oneOfType([a.default.string,a.default.arrayOf(a.default.string),s.default.listOf(a.default.string)]),t:a.default.func.isRequired}),m(t,"defaultProps",{value:""}),n};var r=h(n(18)),i=h(n(262)),o=h(n(1)),a=h(n(2)),s=h(n(24)),l=n(4),u=h(n(140)),c=n(107),d=n(16),f=n(37),p=n(11);function h(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}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const v=(0,r.default)("div",{target:"e1awjdnj0",label:"ImageWrapper"})("flex-basis:155px;width:155px;height:100px;margin-right:20px;margin-bottom:20px;border:",d.borders.textField,";border-radius:",d.lengths.borderRadius,";overflow:hidden;",d.effects.checkerboard,";",d.shadows.inset,";"),y=(0,r.default)("img",{target:"e1awjdnj1",label:"StyledImage"})({name:"r91awh",styles:"width:100%;height:100%;object-fit:contain;"}),b=e=>(0,p.jsx)(y,g({role:"presentation"},e)),_=(0,r.default)("div",{target:"e1awjdnj2",label:"MultiImageWrapper"})({name:"2imjyh",styles:"display:flex;flex-wrap:wrap;"}),w=(0,r.default)("a",{target:"e1awjdnj3",label:"FileLink"})({name:"7mbjrw",styles:"margin-bottom:20px;font-weight:normal;color:inherit;&:hover,&:active,&:focus{text-decoration:underline;}"}),x=(0,r.default)("div",{target:"e1awjdnj4",label:"FileLinks"})({name:"1upilqn",styles:"margin-bottom:12px;"}),k=(0,r.default)("ul",{target:"e1awjdnj5",label:"FileLinkList"})({name:"155za0w",styles:"list-style-type:none;"}),E=(0,r.default)("button",{target:"e1awjdnj6",label:"FileWidgetButton"})(d.buttons.button,";",d.components.badge,";"),S=(0,r.default)("button",{target:"e1awjdnj7",label:"FileWidgetButtonRemove"})(d.buttons.button,";",d.components.badgeDanger,";margin-top:12px;");function O(e){return Array.isArray(e)||l.List.isList(e)}const T=(0,i.default)(e=>console.warn(c.oneLine`
+ Netlify CMS config: ${e.get("name")} field: property "options" has been deprecated for the
+ ${e.get("widget")} widget and will be removed in the next major release. Rather than
+ \`field.options.media_library\`, apply media library options for this widget under
+ \`field.media_library\`.
+`))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(18)),i=(l(n(1)),l(n(2))),o=n(4),a=n(16),s=n(11);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)(({href:e,path:t})=>(0,s.jsx)("a",{href:e,rel:"noopener noreferrer",target:"_blank"},t),{target:"e1sxjo0z0",label:"FileLink"})({name:"13o7eu2",styles:"display:block;"});function c({values:e,getAsset:t,field:n}){return(0,s.jsx)("div",null,e.map(e=>(0,s.jsx)(u,{key:e,path:e,href:t(e,n)})))}function d(e){const{value:t,getAsset:n,field:r}=e;return Array.isArray(t)||o.List.isList(t)?(0,s.jsx)(c,{values:t,getAsset:n,field:r}):(0,s.jsx)(u,{key:t,path:t,href:n(t,r)})}const f=e=>(0,s.jsx)(a.WidgetPreviewContainer,null,e.value?(0,s.jsx)(d,e):null);f.propTypes={getAsset:i.default.func.isRequired,value:i.default.node};var p=f;t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{allow_multiple:{type:"boolean"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(18)),i=(l(n(1)),l(n(2))),o=n(4),a=n(16),s=n(11);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)(({src:e})=>(0,s.jsx)("img",{src:e||"",role:"presentation"}),{target:"e1ksx8c40",label:"StyledImage"})({name:"6b4u1g",styles:"display:block;max-width:100%;height:auto;"}),c=({getAsset:e,value:t,field:n})=>(0,s.jsx)(u,{src:e(t,n)}),d=e=>{const{value:t,getAsset:n,field:r}=e;return Array.isArray(t)||o.List.isList(t)?t.map(e=>(0,s.jsx)(c,{key:e,value:e,getAsset:n,field:r})):(0,s.jsx)(c,e)},f=e=>(0,s.jsx)(a.WidgetPreviewContainer,null,e.value?(0,s.jsx)(d,e):null);f.propTypes={getAsset:i.default.func.isRequired,value:i.default.node};var p=f;t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{allow_multiple:{type:"boolean"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetSelect=void 0;var r=a(n(1221)),i=a(n(1227)),o=a(n(1228));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={Widget:(e={})=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"select",controlComponent:r.default,previewComponent:i.default,schema:o.default},e),controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetSelect=u;var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(1222)),i=f(n(376)),o=f(n(1)),a=f(n(2)),s=f(n(24)),l=n(4),u=f(n(377)),c=n(16),d=n(11);function f(e){return e&&e.__esModule?e:{default: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}function h(e){return e&&e.value?e.value:null}function m(e){return"string"==typeof e?{label:e,value:e}:l.Map.isMap(e)?e.toJS():e}class g extends o.default.Component{constructor(...e){super(...e),p(this,"isValid",()=>{const{field:e,value:t,t:n}=this.props,i=e.get("min"),o=e.get("max"),a=t=>({error:{message:n("editor.editorControlPane.widget."+t,{fieldLabel:e.get("label",e.get("name")),minCount:i,maxCount:o,count:i})}});return e.get("multiple")?[i,o].every(r.default)&&(null==t?void 0:t.size)&&(t.size<i||t.size>o)?a(i===o?"rangeCountExact":"rangeCount"):(0,r.default)(i)&&i>0&&(null==t?void 0:t.size)&&t.size<i?a("rangeMin"):(0,r.default)(o)&&(null==t?void 0:t.size)&&t.size>o?a("rangeMax"):{error:!1}:{error:!1}}),p(this,"handleChange",e=>{const{onChange:t,field:n}=this.props,r=n.get("multiple",!1),i=r?!(null==e?void 0:e.length):!e;if(n.get("required")&&i&&r)t((0,l.List)());else if(i)t(null);else if(r){const n=e.map(h);t((0,l.fromJS)(n))}else t(h(e))})}componentDidMount(){const{field:e,onChange:t,value:n}=this.props;e.get("required")&&e.get("multiple")&&(n&&!l.List.isList(n)?t((0,l.fromJS)([n])):n||t((0,l.fromJS)([])))}render(){const{field:e,value:t,forID:n,classNameWrapper:r,setActiveStyle:o,setInactiveStyle:a}=this.props,s=e.get("options"),f=e.get("multiple",!1),p=!e.get("required",!0)||f;if(!s)return(0,d.jsx)("div",null,"Error rendering select control for ",e.get("name"),": No options");const h=[...s.map(m)],g=function({value:e,options:t,isMultiple:n}){if(n){const n=l.List.isList(e)?e.toJS():e;return n&&Array.isArray(n)?n.map(e=>t.find(t=>t.value===(e.value||e))).filter(Boolean).map(m):null}return(0,i.default)(t,["value",e])||null}({options:h,value:t,isMultiple:f});return(0,d.jsx)(u.default,{inputId:n,value:g,onChange:this.handleChange,className:r,onFocus:o,onBlur:a,options:h,styles:c.reactSelectStyles,isMulti:f,isClearable:p,placeholder:""})}}t.default=g,p(g,"propTypes",{onChange:a.default.func.isRequired,value:a.default.node,forID:a.default.string.isRequired,classNameWrapper:a.default.string.isRequired,setActiveStyle:a.default.func.isRequired,setInactiveStyle:a.default.func.isRequired,field:s.default.contains({options:s.default.listOf(a.default.oneOfType([a.default.string,s.default.contains({label:a.default.string.isRequired,value:a.default.string.isRequired})])).isRequired})})},function(e,t,n){var r=n(101),i=n(69);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},function(e,t,n){var r=n(323),i=n(102),o=n(110),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(e,i(t,3),l)}},function(e,t,n){(function(t){(function(){var n,r,i,o,a,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,o=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*t.uptime(),a=o-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,n(70))},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;a(n(2));var r=a(n(1)),i=n(49),o=a(n(590));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.handleLifecycle=function(e,t,n){var o,a=this.props.children,s=r.default.Children.toArray(a)[t];s.props[e]&&(o=s.props)[e].apply(o,n),this.props[e]&&this.props[e]((0,i.findDOMNode)(this))},s.render=function(){var e=this.props,t=e.children,n=e.in,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["children","in"]),a=r.default.Children.toArray(t),s=a[0],l=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,r.default.createElement(o.default,i,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);s.propTypes={};var l=s;t.default=l,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=i,t.mergeChildMappings=o,t.getInitialChildMapping=function(e,t){return i(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:a(n,"appear",e),enter:a(n,"enter",e),exit:a(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var s=i(e.children),l=o(t,s);return Object.keys(l).forEach((function(i){var o=l[i];if((0,r.isValidElement)(o)){var u=i in t,c=i in s,d=t[i],f=(0,r.isValidElement)(d)&&!d.props.in;!c||u&&!f?c||!u||f?c&&u&&(0,r.isValidElement)(d)&&(l[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:d.props.in,exit:a(o,"exit",e),enter:a(o,"enter",e)})):l[i]=(0,r.cloneElement)(o,{in:!1}):l[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:a(o,"exit",e),enter:a(o,"enter",e)})}})),l};var r=n(1);function i(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function o(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}function a(e,t,n){return null!=n[t]?n[t]:e.props[t]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(2)),i=(l(n(1)),n(4)),o=l(n(24)),a=n(16),s=n(11);function l(e){return e&&e.__esModule?e:{default:e}}const u=({values:e})=>(0,s.jsx)("ul",null,e.map((e,t)=>(0,s.jsx)("li",{key:t},e))),c=({value:e})=>(0,s.jsx)(a.WidgetPreviewContainer,null,e&&(i.List.isList(e)?(0,s.jsx)(u,{values:e}):e),!e&&null);c.propTypes={value:r.default.oneOfType([r.default.string,o.default.list])};var d=c;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{multiple:{type:"boolean"},min:{type:"integer"},max:{type:"integer"},options:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{label:{type:"string"},value:{type:"string"}},required:["label","value"]}]}}},required:["options"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetMarkdown=void 0;var r=a(n(378)),i=a(n(1490)),o=a(n(1491));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={Widget:(e={})=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"markdown",controlComponent:r.default,previewComponent:i.default,schema:o.default},e),controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetMarkdown=u;var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(18)),i=v(n(230)),o=v(n(1)),a=v(n(2)),s=v(n(24)),l=n(11),u=n(23),c=n(405),d=v(n(293)),f=v(n(105)),p=n(16),h=n(280),m=n(645),g=v(n(646));function v(e){return e&&e.__esModule?e:{default: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}const b=({minimal:e})=>`\n position: relative;\n overflow: hidden;\n overflow-x: auto;\n min-height: ${e?"auto":p.lengths.richTextEditorMinHeight};\n font-family: ${p.fonts.mono};\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-top: 0;\n margin-top: -${m.editorStyleVars.stickyDistanceBottom};\n`,_=(0,r.default)("div",{target:"er7tv020",label:"RawEditorContainer"})({name:"79elbk",styles:"position:relative;"});class w extends o.default.Component{constructor(e){super(e),y(this,"handleCopy",(e,t)=>{const{getAsset:n,resolveWidget:r}=this.props,i=d.default.serialize(u.Value.create({document:t.value.fragment})),o=(0,h.markdownToHtml)(i,{getAsset:n,resolveWidget:r});(0,c.setEventTransfer)(e,"text",i),(0,c.setEventTransfer)(e,"html",o),e.preventDefault()}),y(this,"handleCut",(e,t,n)=>{this.handleCopy(e,t,n),t.delete()}),y(this,"handlePaste",(e,t,n)=>{e.preventDefault();const r=e.clipboardData;if((0,f.default)("shift",e))return n();const i=d.default.deserialize(r.getData("text/plain"));return t.insertFragment(i.document)}),y(this,"handleChange",e=>{this.state.value.document.equals(e.value.document)||this.handleDocumentChange(e),this.setState({value:e.value})}),y(this,"handleDocumentChange",(0,i.default)(e=>{const t=d.default.serialize(e.value);this.props.onChange(t)},150)),y(this,"handleToggleMode",()=>{this.props.onMode("visual")}),y(this,"processRef",e=>{this.editor=e}),this.state={value:d.default.deserialize(this.props.value||"")}}shouldComponentUpdate(e,t){return!this.state.value.equals(t.value)}componentDidMount(){this.props.pendingFocus&&(this.editor.focus(),this.props.pendingFocus())}render(){const{className:e,field:t,t:n}=this.props;return(0,l.jsx)(_,null,(0,l.jsx)(m.EditorControlBar,null,(0,l.jsx)(g.default,{onToggleMode:this.handleToggleMode,buttons:t.get("buttons"),disabled:!0,rawMode:!0,t:n})),(0,l.jsx)(l.ClassNames,null,({css:n,cx:r})=>(0,l.jsx)(c.Editor,{className:r(e,n`
+ ${b({minimal:t.get("minimal")})}
+ `),value:this.state.value,onChange:this.handleChange,onPaste:this.handlePaste,onCut:this.handleCut,onCopy:this.handleCopy,ref:this.processRef})))}}t.default=w,w.propTypes={onChange:a.default.func.isRequired,onMode:a.default.func.isRequired,className:a.default.string.isRequired,value:a.default.string,field:s.default.map.isRequired,t:a.default.func.isRequired}},function(e,t,n){"use strict";
+/*!
+ * isobject <https://github.com/jonschlinkert/isobject>
+ *
+ * Copyright (c) 2014-2017, Jon Schlinkert.
+ * Released under the MIT License.
+ */e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){var n;function a(){if(a.enabled){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var o=a,s=Number(new Date),l=s-(n||s);o.diff=l,o.prev=n,o.curr=s,n=s,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var u=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;u++;var i=r.formatters[n];if("function"==typeof i){var a=t[u];e=i.call(o,a),t.splice(u,1),u--}return e})),r.formatArgs.call(o,t);var c=o.log||r.log;c.apply(o,t)}}return a.namespace=e,a.enabled=r.enabled(e),a.useColors=r.useColors(),a.color=t(e),a.destroy=i,a.extend=o,"function"==typeof r.init&&r.init(a),r.instances.push(a),a}function i(){var e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function o(e,t){return r(this.namespace+(void 0===t?":":t)+e)}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){r.enable("")},r.enable=function(e){var t;r.save(e),r.names=[],r.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(t=0;t<i;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){var o=r.instances[t];o.enabled=r.enabled(o.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(591),Object.keys(e).forEach((function(t){r[t]=e[t]})),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},function(e,t,n){var r=n(257);e.exports=function(e){return r(e)?void 0:e}},function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){var n;function a(){if(a.enabled){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var o=a,s=Number(new Date),l=s-(n||s);o.diff=l,o.prev=n,o.curr=s,n=s,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var u=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;u++;var i=r.formatters[n];if("function"==typeof i){var a=t[u];e=i.call(o,a),t.splice(u,1),u--}return e})),r.formatArgs.call(o,t);var c=o.log||r.log;c.apply(o,t)}}return a.namespace=e,a.enabled=r.enabled(e),a.useColors=r.useColors(),a.color=t(e),a.destroy=i,a.extend=o,"function"==typeof r.init&&r.init(a),r.instances.push(a),a}function i(){var e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function o(e,t){return r(this.namespace+(void 0===t?":":t)+e)}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){r.enable("")},r.enable=function(e){var t;r.save(e),r.names=[],r.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(t=0;t<i;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){var o=r.instances[t];o.enabled=r.enabled(o.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(591),Object.keys(e).forEach((function(t){r[t]=e[t]})),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},function(e,t){e.exports=function e(t){if(n(t))return t;if(n(t.ownerDocument))return t.ownerDocument;if(n(t.document))return t.document;if(t.parentNode)return e(t.parentNode);if(t.commonAncestorContainer)return e(t.commonAncestorContainer);if(t.startContainer)return e(t.startContainer);if(t.anchorNode)return e(t.anchorNode)};function n(e){return e&&9===e.nodeType}},function(e,t){e.exports=!!document.attachEvent&&window!==document.parentWindow},function(e,t,n){"use strict";var r=n(592),i=n(1238),o=n(1239),a=n(1245),s=n(1247),l=n(1248);e.exports=function e(){var t=[],n=a(),y={},b=!1,_=-1;return w.data=function(e,t){if(s(e))return 2===arguments.length?(m("data",b),y[e]=t,w):c.call(y,e)&&y[e]||null;if(e)return m("data",b),y=e,w;return y},w.freeze=x,w.attachers=t,w.use=function(e){var n;if(m("use",b),null==e);else if("function"==typeof e)s.apply(null,arguments);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?a(e):i(e)}n&&(y.settings=r(y.settings||{},n));return w;function i(e){a(e.plugins),e.settings&&(n=r(n||{},e.settings))}function o(e){if("function"==typeof e)s(e);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?s.apply(null,e):i(e)}}function a(e){var t,n;if(null==e);else{if("object"!=typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(t=e.length,n=-1;++n<t;)o(e[n])}}function s(e,n){var i=k(e);i?(l(i[1])&&l(n)&&(n=r(i[1],n)),i[1]=n):t.push(u.call(arguments))}},w.parse=function(e){var t,n=o(e);if(x(),p("parse",t=w.Parser),f(t))return new t(String(n),n).parse();return t(String(n),n)},w.stringify=function(e,t){var n,r=o(t);if(x(),h("stringify",n=w.Compiler),g(e),f(n))return new n(e,r).compile();return n(e,r)},w.run=E,w.runSync=function(e,t){var n,r=!1;return E(e,t,(function(e,t){r=!0,i(e),n=t})),v("runSync","run",r),n},w.process=S,w.processSync=function(e){var t,n=!1;return x(),p("processSync",w.Parser),h("processSync",w.Compiler),S(t=o(e),(function(e){n=!0,i(e)})),v("processSync","process",n),t},w;function w(){for(var n=e(),i=t.length,o=-1;++o<i;)n.use.apply(null,t[o]);return n.data(r(!0,{},y)),n}function x(){var e,r,i,o;if(b)return w;for(;++_<t.length;)r=(e=t[_])[0],null,!1!==(i=e[1])&&(!0===i&&(e[1]=void 0),"function"==typeof(o=r.apply(w,e.slice(1)))&&n.use(o));return b=!0,_=1/0,w}function k(e){for(var n,r=t.length,i=-1;++i<r;)if((n=t[i])[0]===e)return n}function E(e,t,r){if(g(e),x(),r||"function"!=typeof t||(r=t,t=null),!r)return new Promise(i);function i(i,a){n.run(e,o(t),(function(t,n,o){n=n||e,t?a(t):i?i(n):r(null,n,o)}))}i(null,r)}function S(e,t){if(x(),p("process",w.Parser),h("process",w.Compiler),!t)return new Promise(n);function n(n,r){var i=o(e);d.run(w,{file:i},(function(e){e?r(e):n?n(i):t(null,i)}))}n(null,t)}}().freeze();var u=[].slice,c={}.hasOwnProperty,d=a().use((function(e,t){t.tree=e.parse(t.file)})).use((function(e,t,n){e.run(t.tree,t.file,(function(e,r,i){e?n(e):(t.tree=r,t.file=i,n())}))})).use((function(e,t){t.file.contents=e.stringify(t.tree,t.file)}));function f(e){return"function"==typeof e&&function(e){var t;for(t in e)return!0;return!1}(e.prototype)}function p(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function h(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Compiler`")}function m(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function g(e){if(!e||!s(e.type))throw new Error("Expected node, got `"+e+"`")}function v(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}},function(e,t,n){"use strict";e.exports=function(e){if(e)throw e}},function(e,t,n){"use strict";var r=n(1240),i=n(1242);e.exports=i;var o=i.prototype;function a(e,t,n){var i=this.path,o=new r(e,t,n);return i&&(o.name=i+":"+o.name,o.file=i),o.fatal=!1,this.messages.push(o),o}o.message=a,o.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},o.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e},o.warn=a},function(e,t,n){"use strict";var r=n(1241);function i(){}e.exports=a,i.prototype=Error.prototype,a.prototype=new i;var o=a.prototype;function a(e,t,n){var i,o,a;"string"==typeof t&&(n=t,t=null),i=function(e){var t,n=[null,null];"string"==typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1)));return n}(n),o=r(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=o,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=i[0],this.ruleId=i[1]}o.file="",o.name="",o.reason="",o.message="",o.stack="",o.fatal=null,o.column=null,o.line=null},function(e,t,n){"use strict";var r={}.hasOwnProperty;function i(e){return e&&"object"==typeof e||(e={}),a(e.line)+":"+a(e.column)}function o(e){return e&&"object"==typeof e||(e={}),i(e.start)+"-"+i(e.end)}function a(e){return e&&"number"==typeof e?e:1}e.exports=function(e){if(!e||"object"!=typeof e)return null;if(r.call(e,"position")||r.call(e,"type"))return o(e.position);if(r.call(e,"start")||r.call(e,"end"))return o(e);if(r.call(e,"line")||r.call(e,"column"))return i(e);return null}},function(e,t,n){"use strict";(function(t){var r=n(89),i=n(1243),o=n(1244);e.exports=u;var a={}.hasOwnProperty,s=u.prototype;s.toString=function(e){var t=this.contents||"";return o(t)?t.toString(e):String(t)};var l=["history","path","basename","stem","extname","dirname"];function u(e){var n,r,i;if(e){if("string"==typeof e||o(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof u))return new u(e);for(this.data={},this.messages=[],this.history=[],this.cwd=t.cwd(),r=-1,i=l.length;++r<i;)n=l[r],a.call(e,n)&&(this[n]=e[n]);for(n in e)-1===l.indexOf(n)&&(this[n]=e[n])}function c(e,t){if(-1!==e.indexOf(r.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function d(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function f(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}Object.defineProperty(s,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){d(e,"path"),e!==this.path&&this.history.push(e)}}),Object.defineProperty(s,"dirname",{get:function(){return"string"==typeof this.path?r.dirname(this.path):void 0},set:function(e){f(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(s,"basename",{get:function(){return"string"==typeof this.path?r.basename(this.path):void 0},set:function(e){d(e,"basename"),c(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(s,"extname",{get:function(){return"string"==typeof this.path?r.extname(this.path):void 0},set:function(e){var t=e||"";if(c(t,"extname"),f(this.path,"extname"),t){if("."!==t.charAt(0))throw new Error("`extname` must start with `.`");if(-1!==t.indexOf(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=i(this.path,t)}}),Object.defineProperty(s,"stem",{get:function(){return"string"==typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){d(e,"stem"),c(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})}).call(this,n(70))},function(e,t,n){"use strict";var r=n(89);e.exports=function(e,t){if("string"!=typeof e)return e;if(0===e.length)return e;var n=r.basename(e,r.extname(e))+t;return r.join(r.dirname(e),n)}},function(e,t){
+/*!
+ * Determine if an object is a Buffer
+ *
+ * @author Feross Aboukhadijeh <https://feross.org>
+ * @license MIT
+ */
+e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";var r=n(1246);e.exports=o,o.wrap=r;var i=[].slice;function o(){var e=[],t={run:function(){var t=-1,n=i.call(arguments,0,-1),o=arguments[arguments.length-1];if("function"!=typeof o)throw new Error("Expected function as last argument, not "+o);function a(s){var l=e[++t],u=i.call(arguments,0),c=u.slice(1),d=n.length,f=-1;if(s)o(s);else{for(;++f<d;)null!==c[f]&&void 0!==c[f]||(c[f]=n[f]);n=c,l?r(l,a).apply(null,n):o.apply(null,[null].concat(n))}}a.apply(null,[null].concat(n))},use:function(n){if("function"!=typeof n)throw new Error("Expected `fn` to be a function, not "+n);return e.push(n),t}};return t}},function(e,t,n){"use strict";var r=[].slice;e.exports=function(e,t){var n;return function(){var t,a=r.call(arguments,0),s=e.length>a.length;s&&a.push(i);try{t=e.apply(null,a)}catch(e){if(s&&n)throw e;return i(e)}s||(t&&"function"==typeof t.then?t.then(o,i):t instanceof Error?i(t):o(t))};function i(){n||(n=!0,t.apply(null,arguments))}function o(e){i(null,e)}}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return"[object String]"===n.call(e)}},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t;return"[object Object]"===r.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))}},function(e,t,n){"use strict";var r=n(593),i=n(53),o=n(1250);function a(e){var t=this.data("settings"),n=r(o);n.prototype.options=i(n.prototype.options,t,e),this.Parser=n}e.exports=a,a.Parser=o},function(e,t,n){"use strict";var r=n(53),i=n(594),o=n(1251),a=n(1252),s=n(1253),l=n(1256);function u(e,t){this.file=t,this.offset={},this.options=r(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=o(t).toOffset,this.unescape=a(this,"escape"),this.decode=s(this)}e.exports=u;var c=u.prototype;function d(e){var t,n=[];for(t in e)n.push(t);return n}c.setOptions=n(1257),c.parse=n(1259),c.options=n(597),c.exitStart=i("atStart",!0),c.enterList=i("inList",!1),c.enterLink=i("inLink",!1),c.enterBlock=i("inBlock",!1),c.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.blockTokenizers={newline:n(1262),indentedCode:n(1263),fencedCode:n(1264),blockquote:n(1265),atxHeading:n(1266),thematicBreak:n(1267),list:n(1268),setextHeading:n(1270),html:n(1271),footnote:n(1272),definition:n(1273),table:n(1274),paragraph:n(1275)},c.inlineTokenizers={escape:n(1276),autoLink:n(1278),url:n(1279),html:n(1281),link:n(1282),reference:n(1283),strong:n(1284),emphasis:n(1286),deletion:n(1289),code:n(1291),break:n(1293),text:n(1295)},c.blockMethods=d(c.blockTokenizers),c.inlineMethods=d(c.inlineTokenizers),c.tokenizeBlock=l("block"),c.tokenizeInline=l("inline"),c.tokenizeFactory=l},function(e,t,n){"use strict";function r(e){return function(t){var n=-1,r=e.length;if(t<0)return{};for(;++n<r;)if(e[n]>t)return{line:n+1,column:t-(e[n-1]||0)+1,offset:t};return{}}}function i(e){return function(t){var n=t&&t.line,r=t&&t.column;if(!isNaN(n)&&!isNaN(r)&&n-1 in e)return(e[n-2]||0)+r-1||0;return-1}}e.exports=function(e){var t=function(e){var t=[],n=e.indexOf("\n");for(;-1!==n;)t.push(n+1),n=e.indexOf("\n",n+1);return t.push(e.length+1),t}(String(e));return{toPosition:r(t),toOffset:i(t)}}},function(e,t,n){"use strict";e.exports=function(e,t){return function(n){var r,i=0,o=n.indexOf("\\"),a=e[t],s=[];for(;-1!==o;)s.push(n.slice(i,o)),i=o+1,(r=n.charAt(i))&&-1!==a.indexOf(r)||s.push("\\"),o=n.indexOf("\\",i+1);return s.push(n.slice(i)),s.join("")}}},function(e,t,n){"use strict";var r=n(53),i=n(281);e.exports=function(e){return n.raw=function(e,n,a){return i(e,r(a,{position:t(n),warning:o}))},n;function t(t){for(var n=e.offset,r=t.line,i=[];++r&&r in n;)i.push((n[r]||0)+1);return{start:t,indent:i}}function n(n,r,a){i(n,{position:t(r),warning:o,text:a,reference:a,textContext:e,referenceContext:e})}function o(t,n,r){3!==r&&e.file.message(t,n)}}},function(e){e.exports=JSON.parse('{"0":"�","128":"€","130":"‚","131":"ƒ","132":"„","133":"…","134":"†","135":"‡","136":"ˆ","137":"‰","138":"Š","139":"‹","140":"Œ","142":"Ž","145":"‘","146":"’","147":"“","148":"”","149":"•","150":"–","151":"—","152":"˜","153":"™","154":"š","155":"›","156":"œ","158":"ž","159":"Ÿ"}')},function(e,t,n){"use strict";var r;e.exports=function(e){var t,n="&"+e+";";if((r=r||document.createElement("i")).innerHTML=n,59===(t=r.textContent).charCodeAt(t.length-1)&&"semi"!==e)return!1;return t!==n&&t}},function(e,t,n){"use strict";function r(e){var t,n;return"text"!==e.type||!e.position||(t=e.position.start,n=e.position.end,t.line!==n.line||n.column-t.column===e.value.length)}function i(e,t){return e.value+=t.value,e}function o(e,t){return this.options.commonmark?t:(e.children=e.children.concat(t.children),e)}e.exports=function(e){return function(t,n){var a,s,l,u,c,d,f=this,p=f.offset,h=[],m=f[e+"Methods"],g=f[e+"Tokenizers"],v=n.line,y=n.column;if(!t)return h;x.now=_,x.file=f.file,b("");for(;t;){for(a=-1,s=m.length,c=!1;++a<s&&(u=m[a],!(l=g[u])||l.onlyAtStart&&!f.atStart||l.notInList&&f.inList||l.notInBlock&&f.inBlock||l.notInLink&&f.inLink||(d=t.length,l.apply(f,[x,t]),!(c=d!==t.length))););c||f.file.fail(new Error("Infinite loop"),x.now())}return f.eof=_(),h;function b(e){for(var t=-1,n=e.indexOf("\n");-1!==n;)v++,t=n,n=e.indexOf("\n",n+1);-1===t?y+=e.length:y=e.length-t,v in p&&(-1!==t?y+=p[v]:y<=p[v]&&(y=p[v]+1))}function _(){var e={line:v,column:y};return e.offset=f.toOffset(e),e}function w(e){this.start=e,this.end=_()}function x(e){var n,a=function(){var e=[],t=v+1;return function(){for(var n=v+1;t<n;)e.push((p[t]||0)+1),t++;return e}}(),s=(n=_(),function(e,t){var r=e.position,i=r?r.start:n,o=[],a=r&&r.end.line,s=n.line;if(e.position=new w(i),r&&t&&r.indent){if(o=r.indent,a<s){for(;++a<s;)o.push((p[a]||0)+1);o.push(n.column)}t=o.concat(t)}return e.position.indent=t||[],e}),l=_();return function(e){t.substring(0,e.length)!==e&&f.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),_())}(e),u.reset=c,c.test=d,u.test=d,t=t.substring(e.length),b(e),a=a(),u;function u(e,t){return s(function(e,t){var n=t?t.children:h,a=n[n.length-1];return a&&e.type===a.type&&("text"===e.type||"blockquote"===e.type)&&r(a)&&r(e)&&(e=("text"===e.type?i:o).call(f,a,e)),e!==a&&n.push(e),f.atStart&&0!==h.length&&f.exitStart(),e}(s(e),t),a)}function c(){var n=u.apply(null,arguments);return v=l.line,y=l.column,t=e+t,n}function d(){var n=s({});return v=l.line,y=l.column,t=e+t,n.position}}}}},function(e,t,n){"use strict";var r=n(53),i=n(596),o=n(597);e.exports=function(e){var t,n,a=this.options;if(null==e)e={};else{if("object"!=typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=r(e)}for(t in o){if(null==(n=e[t])&&(n=a[t]),"blocks"!==t&&"boolean"!=typeof n||"blocks"===t&&"object"!=typeof n)throw new Error("Invalid value `"+n+"` for setting `options."+t+"`");e[t]=n}return this.options=e,this.escape=i(e),this}},function(e,t,n){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},function(e,t,n){"use strict";var r=n(53),i=n(1260);e.exports=function(){var e,t=String(this.file),n={line:1,column:1,offset:0},a=r(n);65279===(t=t.replace(o,"\n")).charCodeAt(0)&&(t=t.slice(1),a.column++,a.offset++);e={type:"root",children:this.tokenizeBlock(t,a),position:{start:n,end:this.eof||r(n)}},this.options.position||i(e,!0);return e};var o=/\r\n|\r/g},function(e,t,n){"use strict";var r=n(282);function i(e){delete e.position}function o(e){e.position=void 0}e.exports=function(e,t){return r(e,t?i:o),e}},function(e,t,n){"use strict";function r(e){if("string"==typeof e)return function(e){return function(t){return Boolean(t&&t.type===e)}}(e);if(null==e)return a;if("object"==typeof e)return("length"in e?o:i)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function i(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function o(e){var t=function(e){for(var t=[],n=e.length,i=-1;++i<n;)t[i]=r(e[i]);return t}(e),n=t.length;return function(){var e=-1;for(;++e<n;)if(t[e].apply(this,arguments))return!0;return!1}}function a(){return!0}e.exports=r},function(e,t,n){"use strict";var r=n(90);e.exports=function(e,t,n){var i,o,a,s,l=t.charAt(0);if("\n"!==l)return;if(n)return!0;s=1,i=t.length,o=l,a="";for(;s<i&&(l=t.charAt(s),r(l));)a+=l,"\n"===l&&(o+=a,a=""),s++;e(o)}},function(e,t,n){"use strict";var r=n(83),i=n(283);e.exports=function(e,t,n){var r,a,s,l=-1,u=t.length,c="",d="",f="",p="";for(;++l<u;)if(r=t.charAt(l),s)if(s=!1,c+=f,d+=p,f="",p="","\n"===r)f=r,p=r;else for(c+=r,d+=r;++l<u;){if(!(r=t.charAt(l))||"\n"===r){p=r,f=r;break}c+=r,d+=r}else if(" "===r&&t.charAt(l+1)===r&&t.charAt(l+2)===r&&t.charAt(l+3)===r)f+=o,l+=3,s=!0;else if("\t"===r)f+=r,s=!0;else{for(a="";"\t"===r||" "===r;)a+=r,r=t.charAt(++l);if("\n"!==r)break;f+=a+r,p+=r}if(d)return!!n||e(c)({type:"code",lang:null,meta:null,value:i(d)})};var o=r(" ",4)},function(e,t,n){"use strict";var r=n(283);e.exports=function(e,t,n){var i,o,a,s,l,u,c,d,f,p,h,m,g,v=this.options.gfm,y=t.length+1,b=0,_="";if(!v)return;for(;b<y&&(" "===(a=t.charAt(b))||"\t"===a);)_+=a,b++;if(m=b,"~"!==(a=t.charAt(b))&&"`"!==a)return;b++,o=a,i=1,_+=a;for(;b<y&&(a=t.charAt(b))===o;)_+=a,i++,b++;if(i<3)return;for(;b<y&&(" "===(a=t.charAt(b))||"\t"===a);)_+=a,b++;s="",c="";for(;b<y&&"\n"!==(a=t.charAt(b))&&"~"!==a&&"`"!==a;)" "===a||"\t"===a?c+=a:(s+=c+a,c=""),b++;if((a=t.charAt(b))&&"\n"!==a)return;if(n)return!0;(g=e.now()).column+=_.length,g.offset+=_.length,_+=s,s=this.decode.raw(this.unescape(s),g),c&&(_+=c);c="",p="",h="",d="",f="";for(;b<y;)if(a=t.charAt(b),d+=p,f+=h,p="",h="","\n"===a){for(d?(p+=a,h+=a):_+=a,c="",b++;b<y&&" "===(a=t.charAt(b));)c+=a,b++;if(p+=c,h+=c.slice(m),!(c.length>=4)){for(c="";b<y&&(a=t.charAt(b))===o;)c+=a,b++;if(p+=c,h+=c,!(c.length<i)){for(c="";b<y&&(" "===(a=t.charAt(b))||"\t"===a);)p+=a,h+=a,b++;if(!a||"\n"===a)break}}}else d+=a,h+=a,b++;_+=d+p,b=-1,y=s.length;for(;++b<y;)if(" "===(a=s.charAt(b))||"\t"===a)l||(l=s.slice(0,b));else if(l){u=s.slice(b);break}return e(_)({type:"code",lang:l||s||null,meta:u||null,value:r(f)})}},function(e,t,n){"use strict";var r=n(171),i=n(382);e.exports=function(e,t,n){var o,a,s,l,u,c,d,f,p,h=this.offset,m=this.blockTokenizers,g=this.interruptBlockquote,v=e.now(),y=v.line,b=t.length,_=[],w=[],x=[],k=0;for(;k<b&&(" "===(a=t.charAt(k))||"\t"===a);)k++;if(">"!==t.charAt(k))return;if(n)return!0;k=0;for(;k<b;){for(l=t.indexOf("\n",k),d=k,f=!1,-1===l&&(l=b);k<b&&(" "===(a=t.charAt(k))||"\t"===a);)k++;if(">"===t.charAt(k)?(k++,f=!0," "===t.charAt(k)&&k++):k=d,u=t.slice(k,l),!f&&!r(u)){k=d;break}if(!f&&(s=t.slice(k),i(g,m,this,[e,s,!0])))break;c=d===k?u:t.slice(d,l),x.push(k-d),_.push(c),w.push(u),k=l+1}k=-1,b=x.length,o=e(_.join("\n"));for(;++k<b;)h[y]=(h[y]||0)+x[k],y++;return p=this.enterBlock(),w=this.tokenizeBlock(w.join("\n"),v),p(),o({type:"blockquote",children:w})}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o,a=this.options.pedantic,s=t.length+1,l=-1,u=e.now(),c="",d="";for(;++l<s;){if(" "!==(r=t.charAt(l))&&"\t"!==r){l--;break}c+=r}o=0;for(;++l<=s;){if("#"!==(r=t.charAt(l))){l--;break}c+=r,o++}if(o>6)return;if(!o||!a&&"#"===t.charAt(l+1))return;s=t.length+1,i="";for(;++l<s;){if(" "!==(r=t.charAt(l))&&"\t"!==r){l--;break}i+=r}if(!a&&0===i.length&&r&&"\n"!==r)return;if(n)return!0;c+=i,i="",d="";for(;++l<s&&(r=t.charAt(l))&&"\n"!==r;)if(" "===r||"\t"===r||"#"===r){for(;" "===r||"\t"===r;)i+=r,r=t.charAt(++l);if(a||!d||i||"#"!==r){for(;"#"===r;)i+=r,r=t.charAt(++l);for(;" "===r||"\t"===r;)i+=r,r=t.charAt(++l);l--}else d+=r}else d+=i+r,i="";return u.column+=c.length,u.offset+=c.length,e(c+=d+i)({type:"heading",depth:o,children:this.tokenizeInline(d,u)})}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o,a,s=-1,l=t.length+1,u="";for(;++s<l&&("\t"===(r=t.charAt(s))||" "===r);)u+=r;if("*"!==r&&"-"!==r&&"_"!==r)return;i=r,u+=r,o=1,a="";for(;++s<l;)if((r=t.charAt(s))===i)o++,u+=a+i,a="";else{if(" "!==r)return o>=3&&(!r||"\n"===r)?(u+=a,!!n||e(u)({type:"thematicBreak"})):void 0;a+=r}}},function(e,t,n){"use strict";var r=n(171),i=n(83),o=n(194),a=n(599),s=n(1269),l=n(382);e.exports=function(e,t,n){var i,a,s,u,c,d,f,p,m,g,v,y,b,_,w,x,k,E,S,O,T,C,A=this.options.commonmark,P=this.options.pedantic,R=this.blockTokenizers,M=this.interruptList,I=0,j=t.length,D=null,L=0,N=!1;for(;I<j;){if("\t"===(s=t.charAt(I)))L+=4-L%4;else{if(" "!==s)break;L++}I++}if(L>=4)return;if("*"===(s=t.charAt(I))||"+"===s||"-"===s)u=s,a=!1;else{for(a=!0,i="";I<j&&(s=t.charAt(I),o(s));)i+=s,I++;if(s=t.charAt(I),!i||!("."===s||A&&")"===s))return;D=parseInt(i,10),u=s}if(" "!==(s=t.charAt(++I))&&"\t"!==s&&(P||"\n"!==s&&""!==s))return;if(n)return!0;I=0,b=[],_=[],w=[];for(;I<j;){for(c=t.indexOf("\n",I),d=I,f=!1,C=!1,-1===c&&(c=j),T=I+4,L=0;I<j;){if("\t"===(s=t.charAt(I)))L+=4-L%4;else{if(" "!==s)break;L++}I++}if(L>=4&&(C=!0),x&&L>=x.indent&&(C=!0),s=t.charAt(I),p=null,!C){if("*"===s||"+"===s||"-"===s)p=s,I++,L++;else{for(i="";I<j&&(s=t.charAt(I),o(s));)i+=s,I++;s=t.charAt(I),I++,i&&("."===s||A&&")"===s)&&(p=s,L+=i.length+1)}if(p)if("\t"===(s=t.charAt(I)))L+=4-L%4,I++;else if(" "===s){for(T=I+4;I<T&&" "===t.charAt(I);)I++,L++;I===T&&" "===t.charAt(I)&&(I-=3,L-=3)}else"\n"!==s&&""!==s&&(p=null)}if(p){if(!P&&u!==p)break;f=!0}else A||C||" "!==t.charAt(d)?A&&x&&(C=L>=x.indent||L>4):C=!0,f=!1,I=d;if(g=t.slice(d,c),m=d===I?g:t.slice(I,c),("*"===p||"_"===p||"-"===p)&&R.thematicBreak.call(this,e,g,!0))break;if(v=y,y=!f&&!r(m).length,C&&x)x.value=x.value.concat(w,g),_=_.concat(w,g),w=[];else if(f)0!==w.length&&(N=!0,x.value.push(""),x.trail=w.concat()),x={value:[g],indent:L,trail:[]},b.push(x),_=_.concat(w,g),w=[];else if(y){if(v&&!A)break;w.push(g)}else{if(v)break;if(l(M,R,this,[e,g,!0]))break;x.value=x.value.concat(w,g),_=_.concat(w,g),w=[]}I=c+1}S=e(_.join("\n")).reset({type:"list",ordered:a,start:D,spread:N,children:[]}),k=this.enterList(),E=this.enterBlock(),I=-1,j=b.length;for(;++I<j;)x=b[I].value.join("\n"),O=e.now(),e(x)(h(this,x,O),S),x=b[I].trail.join("\n"),I!==j-1&&(x+="\n"),e(x);return k(),E(),S};var u=/\n\n(?!\s*$)/,c=/^\[([ \t]|x|X)][ \t]/,d=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,f=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,p=/^( {1,4}|\t)?/gm;function h(e,t,n){var r,i,o=e.offset,a=e.options.pedantic?m:g,s=null;return t=a.apply(null,arguments),e.options.gfm&&(r=t.match(c))&&(i=r[0].length,s="x"===r[1].toLowerCase(),o[n.line]+=i,t=t.slice(i)),{type:"listItem",spread:u.test(t),checked:s,children:e.tokenizeBlock(t,n)}}function m(e,t,n){var r=e.offset,i=n.line;return t=t.replace(f,o),i=n.line,t.replace(p,o);function o(e){return r[i]=(r[i]||0)+e.length,i++,""}}function g(e,t,n){var r,o,l,u,c,f,p,h=e.offset,m=n.line;for(u=(t=t.replace(d,(function(e,t,n,a,s){o=t+n+a,l=s,Number(n)<10&&o.length%2==1&&(n=" "+n);return(r=t+i(" ",n.length)+a)+l}))).split("\n"),(c=s(t,a(r).indent).split("\n"))[0]=l,h[m]=(h[m]||0)+o.length,m++,f=0,p=u.length;++f<p;)h[m]=(h[m]||0)+u[f].length-c[f].length,m++;return c.join("\n")}},function(e,t,n){"use strict";var r=n(171),i=n(83),o=n(599);e.exports=function(e,t){var n,a,s,l,u=e.split("\n"),c=u.length+1,d=1/0,f=[];u.unshift(i(" ",t)+"!");for(;c--;)if(a=o(u[c]),f[c]=a.stops,0!==r(u[c]).length){if(!a.indent){d=1/0;break}a.indent>0&&a.indent<d&&(d=a.indent)}if(d!==1/0)for(c=u.length;c--;){for(s=f[c],n=d;n&&!(n in s);)n--;l=0!==r(u[c]).length&&d&&n!==d?"\t":"",u[c]=l+u[c].slice(n in s?s[n]+1:0)}return u.shift(),u.join("\n")}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o,a,s,l=e.now(),u=t.length,c=-1,d="";for(;++c<u;){if(" "!==(o=t.charAt(c))||c>=3){c--;break}d+=o}r="",i="";for(;++c<u;){if("\n"===(o=t.charAt(c))){c--;break}" "===o||"\t"===o?i+=o:(r+=i+o,i="")}if(l.column+=d.length,l.offset+=d.length,d+=r+i,o=t.charAt(++c),a=t.charAt(++c),"\n"!==o||"="!==a&&"-"!==a)return;d+=o,i=a,s="="===a?1:2;for(;++c<u;){if((o=t.charAt(c))!==a){if("\n"!==o)return;c--;break}i+=o}if(n)return!0;return e(d+i)({type:"heading",depth:s,children:this.tokenizeInline(r,l)})}},function(e,t,n){"use strict";var r=n(600).openCloseTag;e.exports=function(e,t,n){var r,g,v,y,b,_,w,x=this.options.blocks.join("|"),k=new RegExp("^</?("+x+")(?=(\\s|/?>|$))","i"),E=t.length,S=0,O=[[i,o,!0],[a,s,!0],[l,u,!0],[c,d,!0],[f,p,!0],[k,h,!0],[m,h,!1]];for(;S<E&&("\t"===(y=t.charAt(S))||" "===y);)S++;if("<"!==t.charAt(S))return;r=-1===(r=t.indexOf("\n",S+1))?E:r,g=t.slice(S,r),v=-1,b=O.length;for(;++v<b;)if(O[v][0].test(g)){_=O[v];break}if(!_)return;if(n)return _[2];if(S=r,!_[1].test(g))for(;S<E;){if(r=-1===(r=t.indexOf("\n",S+1))?E:r,g=t.slice(S+1,r),_[1].test(g)){g&&(S=r);break}S=r}return w=t.slice(0,S),e(w)({type:"html",value:w})};var i=/^<(script|pre|style)(?=(\s|>|$))/i,o=/<\/(script|pre|style)>/i,a=/^<!--/,s=/-->/,l=/^<\?/,u=/\?>/,c=/^<![A-Za-z]/,d=/>/,f=/^<!\[CDATA\[/,p=/\]\]>/,h=/^$/,m=new RegExp(r.source+"\\s*$")},function(e,t,n){"use strict";var r=n(90),i=n(383);e.exports=a,a.notInList=!0,a.notInBlock=!0;var o=/^( {4}|\t)?/gm;function a(e,t,n){var a,s,l,u,c,d,f,p,h,m,g,v,y=this.offset;if(this.options.footnotes){for(a=0,s=t.length,l="",u=e.now(),c=u.line;a<s&&(h=t.charAt(a),r(h));)l+=h,a++;if("["===t.charAt(a)&&"^"===t.charAt(a+1)){for(a=(l+="[^").length,f="";a<s&&"]"!==(h=t.charAt(a));)"\\"===h&&(f+=h,a++,h=t.charAt(a)),f+=h,a++;if(f&&"]"===t.charAt(a)&&":"===t.charAt(a+1)){if(n)return!0;for(m=f,a=(l+=f+"]:").length;a<s&&("\t"===(h=t.charAt(a))||" "===h);)l+=h,a++;for(u.column+=l.length,u.offset+=l.length,f="",d="",p="";a<s;){if("\n"===(h=t.charAt(a))){for(p=h,a++;a<s&&"\n"===(h=t.charAt(a));)p+=h,a++;for(f+=p,p="";a<s&&" "===(h=t.charAt(a));)p+=h,a++;if(0===p.length)break;f+=p}f&&(d+=f,f=""),d+=h,a++}return l+=d,d=d.replace(o,(function(e){return y[c]=(y[c]||0)+e.length,c++,""})),g=e(l),v=this.enterBlock(),d=this.tokenizeBlock(d,u),v(),g({type:"footnoteDefinition",identifier:i(m),label:m,children:d})}}}}},function(e,t,n){"use strict";var r=n(90),i=n(383);e.exports=o,o.notInList=!0,o.notInBlock=!0;function o(e,t,n){for(var r,o,l,u,c,d,f,p,h=this.options.commonmark,m=0,g=t.length,v="";m<g&&(" "===(u=t.charAt(m))||"\t"===u);)v+=u,m++;if("["===(u=t.charAt(m))){for(m++,v+=u,l="";m<g&&"]"!==(u=t.charAt(m));)"\\"===u&&(l+=u,m++,u=t.charAt(m)),l+=u,m++;if(l&&"]"===t.charAt(m)&&":"===t.charAt(m+1)){for(d=l,m=(v+=l+"]:").length,l="";m<g&&("\t"===(u=t.charAt(m))||" "===u||"\n"===u);)v+=u,m++;if(l="",r=v,"<"===(u=t.charAt(m))){for(m++;m<g&&a(u=t.charAt(m));)l+=u,m++;if((u=t.charAt(m))===a.delimiter)v+="<"+l+u,m++;else{if(h)return;m-=l.length+1,l=""}}if(!l){for(;m<g&&s(u=t.charAt(m));)l+=u,m++;v+=l}if(l){for(f=l,l="";m<g&&("\t"===(u=t.charAt(m))||" "===u||"\n"===u);)l+=u,m++;if(c=null,'"'===(u=t.charAt(m))?c='"':"'"===u?c="'":"("===u&&(c=")"),c){if(!l)return;for(m=(v+=l+u).length,l="";m<g&&(u=t.charAt(m))!==c;){if("\n"===u){if(m++,"\n"===(u=t.charAt(m))||u===c)return;l+="\n"}l+=u,m++}if((u=t.charAt(m))!==c)return;o=v,v+=l+u,m++,p=l,l=""}else l="",m=v.length;for(;m<g&&("\t"===(u=t.charAt(m))||" "===u);)v+=u,m++;return(u=t.charAt(m))&&"\n"!==u?void 0:!!n||(r=e(r).test().end,f=this.decode.raw(this.unescape(f),r,{nonTerminated:!1}),p&&(o=e(o).test().end,p=this.decode.raw(this.unescape(p),o)),e(v)({type:"definition",identifier:i(d),label:d,title:p||null,url:f}))}}}}function a(e){return">"!==e&&"["!==e&&"]"!==e}function s(e){return"["!==e&&"]"!==e&&!r(e)}a.delimiter=">"},function(e,t,n){"use strict";var r=n(90);e.exports=function(e,t,n){var i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,_,w,x,k,E,S,O,T;if(!this.options.gfm)return;i=0,w=0,u=t.length+1,c=[];for(;i<u;){if(S=t.indexOf("\n",i),O=t.indexOf("|",i+1),-1===S&&(S=t.length),-1===O||O>S){if(w<2)return;break}c.push(t.slice(i,S)),w++,i=S+1}s=c.join("\n"),o=c.splice(1,1)[0]||[],i=0,u=o.length,w--,a=!1,h=[];for(;i<u;){if("|"===(f=o.charAt(i))){if(p=null,!1===a){if(!1===T)return}else h.push(a),a=!1;T=!1}else if("-"===f)p=!0,a=a||null;else if(":"===f)a="left"===a?"center":p&&null===a?"right":"left";else if(!r(f))return;i++}!1!==a&&h.push(a);if(h.length<1)return;if(n)return!0;_=-1,k=[],E=e(s).reset({type:"table",align:h,children:k});for(;++_<w;){for(x=c[_],l={type:"tableRow",children:[]},_&&e("\n"),e(x).reset(l,E),u=x.length+1,i=0,d="",m="",g=!0,v=null,y=null;i<u;)if("\t"!==(f=x.charAt(i))&&" "!==f){if(""===f||"|"===f)if(g)e(f);else{if(f&&y){d+=f,i++;continue}!m&&!f||g||(s=m,d.length>1&&(f?(s+=d.slice(0,d.length-1),d=d.charAt(d.length-1)):(s+=d,d="")),b=e.now(),e(s)({type:"tableCell",children:this.tokenizeInline(m,b)},l)),e(d+f),d="",m=""}else if(d&&(m+=d,d=""),m+=f,"\\"===f&&i!==u-2&&(m+=x.charAt(i+1),i++),"`"===f){for(v=1;x.charAt(i+1)===f;)m+=f,i++,v++;y?v>=y&&(y=0):y=v}g=!1,i++}else m?d+=f:e(f),i++;_||e("\n"+o)}return E}},function(e,t,n){"use strict";var r=n(171),i=n(194),o=n(283),a=n(382);e.exports=function(e,t,n){var s,l,u,c,d,f=this.options,p=f.commonmark,h=f.gfm,m=this.blockTokenizers,g=this.interruptParagraph,v=t.indexOf("\n"),y=t.length;for(;v<y;){if(-1===v){v=y;break}if("\n"===t.charAt(v+1))break;if(p){for(c=0,s=v+1;s<y;){if("\t"===(u=t.charAt(s))){c=4;break}if(" "!==u)break;c++,s++}if(c>=4&&"\n"!==u){v=t.indexOf("\n",v+1);continue}}if(l=t.slice(v+1),a(g,m,this,[e,l,!0]))break;if(m.list.call(this,e,l,!0)&&(this.inList||p||h&&!i(r.left(l).charAt(0))))break;if(s=v,-1!==(v=t.indexOf("\n",v+1))&&""===r(t.slice(s,v))){v=s;break}}if(l=t.slice(0,v),""===r(l))return e(l),null;if(n)return!0;return d=e.now(),l=o(l),e(l)({type:"paragraph",children:this.tokenizeInline(l,d)})}},function(e,t,n){"use strict";var r=n(1277);e.exports=i,i.locator=r;function i(e,t,n){var r,i;if("\\"===t.charAt(0)&&(r=t.charAt(1),-1!==this.escape.indexOf(r)))return!!n||(i="\n"===r?{type:"break"}:{type:"text",value:r},e("\\"+r)(i))}},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("\\",t)}},function(e,t,n){"use strict";var r=n(90),i=n(281),o=n(601);e.exports=s,s.locator=o,s.notInLink=!0;var a="mailto:".length;function s(e,t,n){var o,s,l,u,c,d="",f=t.length,p=0,h="",m=!1,g="";if("<"===t.charAt(0)){for(p++,d="<";p<f&&(o=t.charAt(p),!(r(o)||">"===o||"@"===o||":"===o&&"/"===t.charAt(p+1)));)h+=o,p++;if(h){if(g+=h,h="",g+=o=t.charAt(p),p++,"@"===o)m=!0;else{if(":"!==o||"/"!==t.charAt(p+1))return;g+="/",p++}for(;p<f&&(o=t.charAt(p),!r(o)&&">"!==o);)h+=o,p++;if(o=t.charAt(p),h&&">"===o)return!!n||(l=g+=h,d+=g+o,(s=e.now()).column++,s.offset++,m&&("mailto:"===g.slice(0,a).toLowerCase()?(l=l.substr(a),s.column+=a,s.offset+=a):g="mailto:"+g),u=this.inlineTokenizers,this.inlineTokenizers={text:u.text},c=this.enterLink(),l=this.tokenizeInline(l,s),this.inlineTokenizers=u,c(),e(d)({type:"link",title:null,url:i(g,{nonTerminated:!1}),children:l}))}}}},function(e,t,n){"use strict";var r=n(281),i=n(90),o=n(1280);e.exports=l,l.locator=o,l.notInLink=!0;var a=["http://","https://","mailto:"],s=a.length;function l(e,t,n){var o,l,u,c,d,f,p,h,m,g,v,y,b;if(this.options.gfm){for(o="",c=-1;++c<s;)if(f=a[c],(p=t.slice(0,f.length)).toLowerCase()===f){o=p;break}if(o){for(c=o.length,h=t.length,m="",g=0;c<h&&(u=t.charAt(c),!i(u)&&"<"!==u)&&("."!==u&&","!==u&&":"!==u&&";"!==u&&'"'!==u&&"'"!==u&&")"!==u&&"]"!==u||(v=t.charAt(c+1))&&!i(v))&&("("!==u&&"["!==u||g++,")"!==u&&"]"!==u||!(--g<0));)m+=u,c++;if(m){if(l=o+=m,"mailto:"===f){if(-1===(d=m.indexOf("@"))||d===h-1)return;l=l.substr("mailto:".length)}return!!n||(b=this.enterLink(),y=this.inlineTokenizers,this.inlineTokenizers={text:y.text},l=this.tokenizeInline(l,e.now()),this.inlineTokenizers=y,b(),e(o)({type:"link",title:null,url:r(o,{nonTerminated:!1}),children:l}))}}}}},function(e,t,n){"use strict";e.exports=function(e,t){var n,i=r.length,o=-1,a=-1;if(!this.options.gfm)return-1;for(;++o<i;)-1!==(n=e.indexOf(r[o],t))&&(n<a||-1===a)&&(a=n);return a};var r=["https://","http://","mailto:"]},function(e,t,n){"use strict";var r=n(595),i=n(601),o=n(600).tag;e.exports=l,l.locator=i;var a=/^<a /i,s=/^<\/a>/i;function l(e,t,n){var i,l,u=t.length;if(!("<"!==t.charAt(0)||u<3)&&(i=t.charAt(1),(r(i)||"?"===i||"!"===i||"/"===i)&&(l=t.match(o))))return!!n||(l=l[0],!this.inLink&&a.test(l)?this.inLink=!0:this.inLink&&s.test(l)&&(this.inLink=!1),e(l)({type:"html",value:l}))}},function(e,t,n){"use strict";var r=n(90),i=n(602);e.exports=o,o.locator=i;function o(e,t,n){var i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,_,w,x="",k=0,E=t.charAt(0),S=this.options.pedantic,O=this.options.commonmark,T=this.options.gfm;if("!"===E&&(d=!0,x=E,E=t.charAt(++k)),"["===E&&(d||!this.inLink)){for(x+=E,v="",k++,h=t.length,g=0,(b=e.now()).column+=k,b.offset+=k;k<h;){if(u=E=t.charAt(k),"`"===E){for(o=1;"`"===t.charAt(k+1);)u+=E,k++,o++;a?o>=a&&(a=0):a=o}else if("\\"===E)k++,u+=t.charAt(k);else if(a&&!T||"["!==E){if((!a||T)&&"]"===E){if(!g){if(!S)for(;k<h&&(E=t.charAt(k+1),r(E));)u+=E,k++;if("("!==t.charAt(k+1))return;u+="(",i=!0,k++;break}g--}}else g++;v+=u,u="",k++}if(i){for(f=v,x+=v+u,k++;k<h&&(E=t.charAt(k),r(E));)x+=E,k++;if(v="",s=x,"<"===(E=t.charAt(k))){for(k++,s+="<";k<h&&">"!==(E=t.charAt(k));){if(O&&"\n"===E)return;v+=E,k++}if(">"!==t.charAt(k))return;x+="<"+v+">",y=v,k++}else{for(E=null,u="";k<h&&(E=t.charAt(k),!u||!('"'===E||"'"===E||O&&"("===E));){if(r(E)){if(!S)break;u+=E}else{if("("===E)g++;else if(")"===E){if(0===g)break;g--}v+=u,u="","\\"===E&&(v+="\\",E=t.charAt(++k)),v+=E}k++}y=v,k=(x+=v).length}for(v="";k<h&&(E=t.charAt(k),r(E));)v+=E,k++;if(E=t.charAt(k),x+=v,v&&('"'===E||"'"===E||O&&"("===E))if(k++,v="",p="("===E?")":E,l=x+=E,O){for(;k<h&&(E=t.charAt(k))!==p;)"\\"===E&&(v+="\\",E=t.charAt(++k)),k++,v+=E;if((E=t.charAt(k))!==p)return;for(m=v,x+=v+E,k++;k<h&&(E=t.charAt(k),r(E));)x+=E,k++}else for(u="";k<h;){if((E=t.charAt(k))===p)c&&(v+=p+u,u=""),c=!0;else if(c){if(")"===E){x+=v+p+u,m=v;break}r(E)?u+=E:(v+=p+u+E,u="",c=!1)}else v+=E;k++}if(")"===t.charAt(k))return!!n||(x+=")",y=this.decode.raw(this.unescape(y),e(s).test().end,{nonTerminated:!1}),m&&(l=e(l).test().end,m=this.decode.raw(this.unescape(m),l)),w={type:d?"image":"link",title:m||null,url:y},d?w.alt=this.decode.raw(this.unescape(f),b)||null:(_=this.enterLink(),w.children=this.tokenizeInline(f,b),_()),e(x)(w))}}}},function(e,t,n){"use strict";var r=n(90),i=n(602),o=n(383);e.exports=a,a.locator=i;function a(e,t,n){var i,a,s,l,u,c,d,f,p=this.options.commonmark,h=t.charAt(0),m=0,g=t.length,v="",y="",b="link",_="shortcut";if("!"===h&&(b="image",y=h,h=t.charAt(++m)),"["===h){if(m++,y+=h,c="",this.options.footnotes&&"^"===t.charAt(m)){if("image"===b)return;y+="^",m++,b="footnote"}for(f=0;m<g;){if("["===(h=t.charAt(m)))d=!0,f++;else if("]"===h){if(!f)break;f--}"\\"===h&&(c+="\\",h=t.charAt(++m)),c+=h,m++}if(v=c,i=c,"]"===(h=t.charAt(m))){if(m++,v+=h,c="",!p)for(;m<g&&(h=t.charAt(m),r(h));)c+=h,m++;if(h=t.charAt(m),"footnote"!==b&&"["===h){for(a="",c+=h,m++;m<g&&"["!==(h=t.charAt(m))&&"]"!==h;)"\\"===h&&(a+="\\",h=t.charAt(++m)),a+=h,m++;"]"===(h=t.charAt(m))?(_=a?"full":"collapsed",c+=a+h,m++):a="",v+=c,c=""}else{if(!i)return;a=i}if("full"===_||!d)return v=y+v,"link"===b&&this.inLink?null:!!n||("footnote"===b&&-1!==i.indexOf(" ")?e(v)({type:"footnote",children:this.tokenizeInline(i,e.now())}):((s=e.now()).column+=y.length,s.offset+=y.length,l={type:b+"Reference",identifier:o(a="full"===_?a:i),label:a},"link"!==b&&"image"!==b||(l.referenceType=_),"link"===b?(u=this.enterLink(),l.children=this.tokenizeInline(i,s),u()):"image"===b&&(l.alt=this.decode.raw(this.unescape(i),s)||null),e(v)(l)))}}}},function(e,t,n){"use strict";var r=n(171),i=n(90),o=n(1285);e.exports=a,a.locator=o;function a(e,t,n){var o,a,s,l,u,c,d,f=0,p=t.charAt(f);if(!("*"!==p&&"_"!==p||t.charAt(++f)!==p||(a=this.options.pedantic,u=(s=p)+s,c=t.length,f++,l="",p="",a&&i(t.charAt(f)))))for(;f<c;){if(d=p,!((p=t.charAt(f))!==s||t.charAt(f+1)!==s||a&&i(d))&&(p=t.charAt(f+2))!==s){if(!r(l))return;return!!n||((o=e.now()).column+=2,o.offset+=2,e(u+l+u)({type:"strong",children:this.tokenizeInline(l,o)}))}a||"\\"!==p||(l+=p,p=t.charAt(++f)),l+=p,f++}}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("**",t),r=e.indexOf("__",t);if(-1===r)return n;if(-1===n)return r;return r<n?r:n}},function(e,t,n){"use strict";var r=n(171),i=n(1287),o=n(90),a=n(1288);e.exports=s,s.locator=a;function s(e,t,n){var a,s,l,u,c,d,f,p=0,h=t.charAt(p);if(!("*"!==h&&"_"!==h||(s=this.options.pedantic,c=h,l=h,d=t.length,p++,u="",h="",s&&o(t.charAt(p)))))for(;p<d;){if(f=h,!((h=t.charAt(p))!==l||s&&o(f))){if((h=t.charAt(++p))!==l){if(!r(u)||f===l)return;if(!s&&"_"===l&&i(h)){u+=l;continue}return!!n||((a=e.now()).column++,a.offset++,e(c+u+l)({type:"emphasis",children:this.tokenizeInline(u,a)}))}u+=l}s||"\\"!==h||(u+=h,h=t.charAt(++p)),u+=h,p++}}},function(e,t,n){"use strict";e.exports=function(e){return i.test("number"==typeof e?r(e):e.charAt(0))};var r=String.fromCharCode,i=/\w/},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("*",t),r=e.indexOf("_",t);if(-1===r)return n;if(-1===n)return r;return r<n?r:n}},function(e,t,n){"use strict";var r=n(90),i=n(1290);e.exports=o,o.locator=i;function o(e,t,n){var i,o,a,s="",l="",u="",c="";if(this.options.gfm&&"~"===t.charAt(0)&&"~"===t.charAt(1)&&!r(t.charAt(2)))for(i=1,o=t.length,(a=e.now()).column+=2,a.offset+=2;++i<o;){if(!("~"!==(s=t.charAt(i))||"~"!==l||u&&r(u)))return!!n||e("~~"+c+"~~")({type:"delete",children:this.tokenizeInline(c,a)});c+=l,u=l,l=s}}},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("~~",t)}},function(e,t,n){"use strict";var r=n(90),i=n(1292);e.exports=o,o.locator=i;function o(e,t,n){for(var i,o,a,s,l,u,c,d,f=t.length,p=0,h="",m="";p<f&&"`"===t.charAt(p);)h+="`",p++;if(h){for(l=h,s=p,h="",d=t.charAt(p),a=0;p<f;){if(u=d,d=t.charAt(p+1),"`"===u?(a++,m+=u):(a=0,h+=u),a&&"`"!==d){if(a===s){l+=h+m,c=!0;break}h+=m,m=""}p++}if(!c){if(s%2!=0)return;h=""}if(n)return!0;for(i="",o="",f=h.length,p=-1;++p<f;)u=h.charAt(p),r(u)?o+=u:(o&&(i&&(i+=o),o=""),i+=u);return e(l)({type:"inlineCode",value:i})}}},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("`",t)}},function(e,t,n){"use strict";var r=n(1294);e.exports=i,i.locator=r;function i(e,t,n){for(var r,i=t.length,o=-1,a="";++o<i;){if("\n"===(r=t.charAt(o))){if(o<2)return;return!!n||e(a+=r)({type:"break"})}if(" "!==r)return;a+=r}}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("\n",t);for(;n>t&&" "===e.charAt(n-1);)n--;return n}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o,a,s,l,u,c,d,f;if(n)return!0;r=this.inlineMethods,a=r.length,i=this.inlineTokenizers,o=-1,d=t.length;for(;++o<a;)"text"!==(c=r[o])&&i[c]&&((u=i[c].locator)||e.file.fail("Missing locator: `"+c+"`"),-1!==(l=u.call(this,t,1))&&l<d&&(d=l));s=t.slice(0,d),f=e.now(),this.decode(s,f,(function(t,n,r){e(r||t)({type:"text",value:t})}))}},function(e,t,n){"use strict";var r=n(593),i=n(53),o=n(1297);function a(e){var t=r(o);t.prototype.options=i(t.prototype.options,this.data("settings"),e),this.Compiler=t}e.exports=a,a.Compiler=o},function(e,t,n){"use strict";var r=n(53),i=n(594);function o(e,t){this.inLink=!1,this.inTable=!1,this.tree=e,this.file=t,this.options=r(this.options),this.setOptions({})}e.exports=o;var a=o.prototype;a.enterLink=i("inLink",!1),a.enterTable=i("inTable",!1),a.enterLinkReference=n(1298),a.options=n(604),a.setOptions=n(1299),a.compile=n(1304),a.visit=n(1306),a.all=n(1307),a.block=n(1308),a.visitOrderedItems=n(1309),a.visitUnorderedItems=n(1310),a.visitors={root:n(1311),text:n(1312),heading:n(1313),paragraph:n(1314),blockquote:n(1315),list:n(1316),listItem:n(1317),inlineCode:n(1318),code:n(1319),html:n(1320),thematicBreak:n(1321),strong:n(1322),emphasis:n(1323),break:n(1324),delete:n(1325),link:n(1326),linkReference:n(1327),imageReference:n(1329),definition:n(1330),image:n(1331),footnote:n(1332),footnoteReference:n(1333),footnoteDefinition:n(1334),table:n(1335),tableCell:n(1337)}},function(e,t,n){"use strict";var r=n(603);e.exports=function(e,t){var n=e.encode,i=e.escape,o=e.enterLink();if("shortcut"!==t.referenceType&&"collapsed"!==t.referenceType)return o;return e.escape=r,e.encode=r,function(){e.encode=n,e.escape=i,o()}}},function(e,t,n){"use strict";var r=n(53),i=n(1300),o=n(604),a=n(1302),s=n(603);e.exports=function(e){var t,n,d=this.options;if(null==e)e={};else{if("object"!=typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=r(e)}for(n in o)u[typeof o[n]](e,n,d[n],l[n]);(t=e.ruleRepetition)&&t<3&&c(t,"options.ruleRepetition");return this.encode=function(e){var t={};if("false"===e)return s;"true"===e&&(t.useNamedReferences=!0);"escape"===e&&(t.escapeOnly=!0,t.useNamedReferences=!0);return function(e){return i(e,t)}}(String(e.entities)),this.escape=a(e),this.options=e,this};var l={entities:{true:!0,false:!0,numbers:!0,escape:!0},bullet:{"*":!0,"-":!0,"+":!0},rule:{"-":!0,_:!0,"*":!0},listItemIndent:{tab:!0,mixed:!0,1:!0},emphasis:{_:!0,"*":!0},strong:{_:!0,"*":!0},fence:{"`":!0,"~":!0}},u={boolean:function(e,t,n){var r=e[t];null==r&&(r=n);"boolean"!=typeof r&&c(r,"options."+t);e[t]=r},string:function(e,t,n,r){var i=e[t];null==i&&(i=n);(i=String(i))in r||c(i,"options."+t);e[t]=i},number:function(e,t,n){var r=e[t];null==r&&(r=n);isNaN(r)&&c(r,"options."+t);e[t]=r},function:function(e,t,n){var r=e[t];null==r&&(r=n);"function"!=typeof r&&c(r,"options."+t);e[t]=r}};function c(e,t){throw new Error("Invalid value `"+e+"` for setting `"+t+"`")}},function(e,t,n){"use strict";var r=n(605),i=n(379),o=n(380),a=n(381),s=n(1301);e.exports=p,p.escape=function(e){return p(e,{escapeOnly:!0,useNamedReferences:!0})};var l={}.hasOwnProperty,u=function(){var e,t={};for(e in r)t[r[e]]=e;return t}(),c=g(['"',"'","<",">","&","`"]),d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;function p(e,t){var n=t||{},r=n.subset,i=r?g(r):c,o=n.escapeOnly,a=n.omitOptionalSemicolons;return e=e.replace(i,(function(e,t,r){return h(e,r.charAt(t+1),n)})),r||o?e:e.replace(d,(function(e,t,n){return m(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charAt(t+2),a)})).replace(f,(function(e,t,r){return h(e,r.charAt(t+1),n)}))}function h(e,t,n){var r,o,c=n.useShortestReferences,d=n.omitOptionalSemicolons;return(c||n.useNamedReferences)&&l.call(u,e)&&(r=function(e,t,n,r){var o="&"+e;if(n&&l.call(i,e)&&-1===s.indexOf(e)&&(!r||t&&"="!==t&&!a(t)))return o;return o+";"}(u[e],t,d,n.attribute)),!c&&r||(o=m(e.charCodeAt(0),t,d)),r&&(!c||r.length<o.length)?r:o}function m(e,t,n){var r="&#x"+e.toString(16).toUpperCase();return n&&t&&!o(t)?r:r+";"}function g(e){return new RegExp("["+e.join("")+"]","g")}},function(e){e.exports=JSON.parse('["cent","copy","divide","gt","lt","not","para","times"]')},function(e,t,n){"use strict";var r=n(194),i=n(1303),o=n(90),a=n(596),s=n(606);e.exports=function(e){return function(t,n,p){var h,m,g,v,y,b,_=e.gfm,w=e.commonmark,x=e.pedantic,k=w?[".",")"]:["."],E=p&&p.children,S=E&&E.indexOf(n),O=E&&E[S-1],T=E&&E[S+1],C=t.length,A=a(e),P=-1,R=[],M=R;h=O?d(O)&&u.test(O.value):!p||"root"===p.type||"paragraph"===p.type;for(;++P<C;){if(m=t.charAt(P),b=!1,"\n"===m)h=!0;else if("\\"===m||"`"===m||"*"===m||"!"===m&&"["===t.charAt(P+1)||"["===m||"<"===m||"&"===m&&s(t.slice(P))>0||"]"===m&&this.inLink||_&&"~"===m&&"~"===t.charAt(P+1)||_&&"|"===m&&(this.inTable||c(t,P))||"_"===m&&P>0&&P<C-1&&(x||!i(t.charAt(P-1))||!i(t.charAt(P+1)))||_&&!this.inLink&&":"===m&&f(R.join("")))b=!0;else if(h)if(">"===m||"#"===m||"*"===m||"-"===m||"+"===m)b=!0;else if(r(m)){for(y=P+1;y<C&&r(t.charAt(y));)y++;-1!==k.indexOf(t.charAt(y))&&((T=t.charAt(y+1))&&" "!==T&&"\t"!==T&&"\n"!==T||(R.push(t.slice(P,y)),P=y,m=t.charAt(P),b=!0))}h&&!o(m)&&(h=!1),R.push(b?I(m):m)}if(E&&d(n)){if(O&&"shortcut"===O.referenceType){for(P=-1,C=M.length;++P<C;)if(" "!==(m=M[P])&&"\t"!==m){"("!==m&&":"!==m||(M[P]=I(m));break}d(T)&&P===C&&"("===T.value.charAt(0)&&M.push("\\")}_&&!this.inLink&&d(O)&&":"===t.charAt(0)&&f(O.value.slice(-6))&&(M[0]=I(":")),d(T)&&"&"===t.charAt(C-1)&&0!==s("&"+T.value)&&(M[M.length-1]=I("&")),T&&"link"===T.type&&"!"===t.charAt(C-1)&&(M[M.length-1]=I("!")),_&&d(T)&&"~"===t.charAt(C-1)&&"~"===T.value.charAt(0)&&M.splice(M.length-1,0,"\\"),g=d(O)&&i(O.value.slice(-1)),v=d(T)&&i(T.value.charAt(0)),1===C?"_"!==t||!x&&g&&v||M.unshift("\\"):("_"!==t.charAt(0)||!x&&g&&i(t.charAt(1))||M.unshift("\\"),"_"!==t.charAt(C-1)||!x&&v&&i(t.charAt(C-2))||M.splice(M.length-1,0,"\\"))}return M.join("");function I(e){return-1===A.indexOf(e)?l[e]:"\\"+e}}};var l={"<":"&lt;",":":"&#x3A;","&":"&amp;","|":"&#x7C;","~":"&#x7E;"},u=/\n\s*$/;function c(e,t){var n,r=e.lastIndexOf("\n",t),i=e.indexOf("\n",t);for(i=-1===i?e.length:i;++r<i;)if(":"!==(n=e.charAt(r))&&"-"!==n&&" "!==n&&"|"!==n)return!1;return!0}function d(e){return e&&"text"===e.type}function f(e){var t=e.slice(-6).toLowerCase();return"mailto"===t||"https"===t.slice(-5)||"http"===t.slice(-4)}},function(e,t,n){"use strict";e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return!/[^0-9a-z\xDF-\xFF]/.test(e.toLowerCase())}},function(e,t,n){"use strict";var r=n(1305);e.exports=function(){return this.visit(r(this.tree,this.options.commonmark))}},function(e,t,n){"use strict";var r=n(282);function i(e,t){var n,r;return"text"===e.type?!e.position||(n=e.position.start,r=e.position.end,n.line!==r.line||r.column-n.column===e.value.length):t&&"blockquote"===e.type}e.exports=function(e,t){return r(e,(function(e,n,r){var o=r?r.children:[],a=n&&o[n-1];if(a&&e.type===a.type&&i(a,t)&&i(e,t))return e.value&&(a.value+=e.value),e.children&&(a.children=a.children.concat(e.children)),o.splice(n,1),a.position&&e.position&&(a.position.end=e.position.end),n})),e}},function(e,t,n){"use strict";e.exports=function(e,t){var n=this.visitors;"function"!=typeof n[e.type]&&this.file.fail(new Error("Missing compiler for node of type `"+e.type+"`: `"+e+"`"),e);return n[e.type].call(this,e,t)}},function(e,t,n){"use strict";e.exports=function(e){var t=e.children,n=t.length,r=[],i=-1;for(;++i<n;)r[i]=this.visit(t[i],e);return r}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r=this.options,i=r.fences,o=r.commonmark?"\n\n\x3c!----\x3e\n\n":"\n\n\n",a=[],s=e.children,l=s.length,u=-1;for(;++u<l;)t=n,n=s[u],t&&("list"===t.type&&("list"===n.type&&t.ordered===n.ordered||"code"===n.type&&!n.lang&&!i)?a.push(o):a.push("\n\n")),a.push(this.visit(n,e));return a.join("")}},function(e,t,n){"use strict";e.exports=function(e){var t,n=this.visitors.listItem,r=this.options.incrementListMarker,i=[],o=e.start,a=e.children,s=a.length,l=-1;o=null==o?1:o;for(;++l<s;)t=(r?o+l:o)+".",i[l]=n.call(this,a[l],e,l,t);return i.join(e.spread?"\n\n":"\n")}},function(e,t,n){"use strict";e.exports=function(e){var t=this.options.bullet,n=this.visitors.listItem,r=e.children,i=r.length,o=-1,a=[];for(;++o<i;)a[o]=n.call(this,r[o],e,o,t);return a.join(e.spread?"\n\n":"\n")}},function(e,t,n){"use strict";e.exports=function(e){return this.block(e)+"\n"}},function(e,t,n){"use strict";e.exports=function(e,t){return this.encode(this.escape(e.value,e,t),e)}},function(e,t,n){"use strict";var r=n(83);e.exports=function(e){var t,n=e.depth,i=this.options.setext,o=this.options.closeAtx,a=this.all(e).join("");if(i&&n<3)return a+"\n"+r(1===n?"=":"-",a.length);return(t=r("#",e.depth))+" "+a+(o?" "+t:"")}},function(e,t,n){"use strict";e.exports=function(e){return this.all(e).join("")}},function(e,t,n){"use strict";e.exports=function(e){var t,n=this.block(e).split("\n"),r=[],i=n.length,o=-1;for(;++o<i;)t=n[o],r[o]=(t?" ":"")+t;return">"+r.join("\n>")}},function(e,t,n){"use strict";e.exports=function(e){return(e.ordered?this.visitOrderedItems:this.visitUnorderedItems).call(this,e)}},function(e,t,n){"use strict";var r=n(83),i=n(607);e.exports=function(e,t,n,a){var s,l,u,c=this.options.listItemIndent,d=a||this.options.bullet,f=null==e.spread||e.spread,p=e.checked,h=e.children,m=h.length,g=[],v=-1;for(;++v<m;)g[v]=this.visit(h[v],e);s=g.join(f?"\n\n":"\n"),"boolean"==typeof p&&(s="["+(p?"x":" ")+"] "+s);"1"===c||"mixed"===c&&-1===s.indexOf("\n")?(l=d.length+1,u=" "):(l=4*o((d.length+1)/4),u=r(" ",l-d.length));return s?d+u+i(s,l/4).slice(l):d};var o=Math.ceil},function(e,t,n){"use strict";var r=n(608),i=n(83);e.exports=function(e){var t=e.value,n=i("`",r(t,"`")+1),o=n,a=n;"`"===t.charAt(0)&&(o+=" ");"`"===t.charAt(t.length-1)&&(a=" "+a);return o+t+a}},function(e,t,n){"use strict";var r=n(608),i=n(83),o=n(607);e.exports=function(e,t){var n,a=e.value,s=this.options,l=s.fence,u=e.lang||"";u&&e.meta&&(u+=" "+e.meta);if(!(u=this.encode(this.escape(u,e)))&&!s.fences&&a)return t&&"listItem"===t.type&&"tab"!==s.listItemIndent&&s.pedantic&&this.file.fail("Cannot indent code properly. See https://git.io/fxKR8",e.position),o(a,1);return(n=i(l,Math.max(r(a,l)+1,3)))+u+"\n"+a+"\n"+n}},function(e,t,n){"use strict";e.exports=function(e){return e.value}},function(e,t,n){"use strict";var r=n(83);e.exports=function(){var e=this.options,t=r(e.rule,e.ruleRepetition);return e.ruleSpaces?t.split("").join(" "):t}},function(e,t,n){"use strict";var r=n(83);e.exports=function(e){var t=r(this.options.strong,2);return t+this.all(e).join("")+t}},function(e,t,n){"use strict";e.exports=function(e){var t=this.options.emphasis,n=this.all(e).join("");this.options.pedantic&&"_"===t&&-1!==n.indexOf(t)&&(t="*");return t+n+t}},function(e,t,n){"use strict";e.exports=function(){return this.options.commonmark?"\\\n":" \n"}},function(e,t,n){"use strict";e.exports=function(e){return"~~"+this.all(e).join("")+"~~"}},function(e,t,n){"use strict";var r=n(385),i=n(386);e.exports=function(e){var t=this.encode(e.url||"",e),n=this.enterLink(),a=this.encode(this.escape(e.url||"",e)),s=this.all(e).join("");if(n(),null==e.title&&o.test(t)&&a===s)return r(this.encode(e.url),!0);t=r(t),e.title&&(t+=" "+i(this.encode(this.escape(e.title,e),e)));return"["+s+"]("+t+")"};var o=/^[a-z][a-z+.-]+:\/?/i},function(e,t,n){"use strict";var r=n(1328),i=n(609);e.exports=function(e){var t=e.referenceType,n=this.enterLinkReference(this,e),o=this.all(e).join("");n(),("shortcut"===t||"collapsed"===t)&&(o=r(o,e.label||e.identifier));return"["+o+"]"+i(e)}},function(e,t,n){"use strict";var r=n(606);e.exports=function(e,t){var n,o=e.length,a=t.length,s=[],l=0,u=0;for(;u<o;){for(n=u;u<o&&!i.test(e.charAt(u));)u+=1;for(s.push(e.slice(n,u));l<a&&!i.test(t.charAt(l));)l+=1;for(n=l;l<a&&i.test(t.charAt(l));)"&"===t.charAt(l)&&(l+=r(t.slice(l))),l+=1;for(s.push(t.slice(n,l));u<o&&i.test(e.charAt(u));)u+=1}return s.join("")};var i=/[-!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~_]/},function(e,t,n){"use strict";var r=n(609);e.exports=function(e){return"!["+(this.encode(e.alt,e)||"")+"]"+r(e)}},function(e,t,n){"use strict";var r=n(385),i=n(386);e.exports=function(e){var t=r(e.url);e.title&&(t+=" "+i(e.title));return"["+(e.label||e.identifier)+"]: "+t}},function(e,t,n){"use strict";var r=n(385),i=n(386);e.exports=function(e){var t=r(this.encode(e.url||"",e)),n=this.enterLink(),o=this.encode(this.escape(e.alt||"",e));n(),e.title&&(t+=" "+i(this.encode(e.title,e)));return"!["+o+"]("+t+")"}},function(e,t,n){"use strict";e.exports=function(e){return"[^"+this.all(e).join("")+"]"}},function(e,t,n){"use strict";e.exports=function(e){return"[^"+(e.label||e.identifier)+"]"}},function(e,t,n){"use strict";var r=n(83),i=r(" ",4);e.exports=function(e){var t=this.all(e).join("\n\n"+i);return"[^"+(e.label||e.identifier)+"]: "+t}},function(e,t,n){"use strict";var r=n(1336);e.exports=function(e){var t,n,i=this.options,o=i.looseTable,a=i.spacedTable,s=i.paddedTable,l=i.stringLength,u=e.children,c=u.length,d=this.enterTable(),f=[];for(;c--;)f[c]=this.all(u[c]);d(),o?(t="",n=""):a?(t="| ",n=" |"):(t="|",n="|");return r(f,{align:e.align,pad:s,start:t,end:n,stringLength:l,delimiter:a?" | ":"|"})}},function(e,t,n){"use strict";e.exports=function(e,t){var n,i,u,c,d,f,p,h,m,g,v,y,b=t||{},_=b.delimiter,w=b.start,x=b.end,k=b.align,E=b.stringLength||a,S=0,O=-1,T=e.length,C=[];k=k?k.concat():[],null==_&&(_=" | ");null==w&&(w="| ");null==x&&(x=" |");for(;++O<T;)for(c=e[O],f=-1,c.length>S&&(S=c.length);++f<S;)p=c[f]?l(c[f]):null,C[f]||(C[f]=3),p>C[f]&&(C[f]=p);"string"==typeof k&&(k=s(S,k).split(""));f=-1;for(;++f<S;)"string"==typeof(n=k[f])&&(n=n.charAt(0).toLowerCase()),"l"!==n&&"r"!==n&&"c"!==n&&"."!==n&&(n=""),k[f]=n;O=-1,u=[];for(;++O<T;){for(c=e[O],f=-1,d=[];++f<S;)m=o(m=c[f]),"."===k[f]?(p=l(m),h=C[f]+(r.test(m)?0:1)-(E(m)-p),d[f]=m+s(h-1)):d[f]=m;u[O]=d}C=[],O=-1;for(;++O<T;)for(d=u[O],f=-1;++f<S;)m=d[f],C[f]||(C[f]=3),(h=E(m))>C[f]&&(C[f]=h);O=-1;for(;++O<T;){if(d=u[O],f=-1,!1!==b.pad)for(;++f<S;)m=d[f],p=C[f]-(E(m)||0),g=s(p),"r"===k[f]||"."===k[f]?m=g+m:"c"===k[f]?((p/=2)%1==0?(v=p,y=p):(v=p+.5,y=p-.5),m=s(v)+m+s(y)):m+=g,d[f]=m;u[O]=d.join(_)}if(!1!==b.rule){for(f=-1,i=[];++f<S;)!1===b.pad?(m=e[0][f],g=(g=E(o(m)))>3?g:3):g=C[f],n=k[f],m="r"===n||""===n?"-":":",m+=s(g-2,"-"),m+="l"!==n&&""!==n?":":"-",i[f]=m;u.splice(1,0,i.join(_))}return w+u.join(x+"\n"+w)+x};var r=/\./,i=/\.[^.]*$/;function o(e){return null==e?"":String(e)}function a(e){return String(e).length}function s(e,t){return new Array(e+1).join(t||" ")}function l(e){var t=i.exec(e);return t?t.index+1:e.length}},function(e,t,n){"use strict";e.exports=function(e){return this.all(e).join("")}},function(e,t,n){"use strict";var r=n(1339);e.exports=function(e,t){e&&!e.process&&(t=e,e=null);return e?function(e,t){return function(n,i,o){e.run(r(n,t),i,(function(e){o(e)}))}}(e,t):function(e){return function(t){return r(t,e)}}(t)}},function(e,t,n){"use strict";e.exports=n(1340)},function(e,t,n){"use strict";e.exports=function(e,t){var n=function(e,t){var n=t||{},i=n.allowDangerousHTML;return c.dangerous=i,c.definition=l(e,n),c.footnotes=[],c.augment=u,c.handlers=r(d,n.handlers||{}),o(e,"footnoteDefinition",f),c;function u(e,t){var n,i;return e&&"data"in e&&(n=e.data,"element"===t.type&&n.hName&&(t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=r(t.properties,n.hProperties)),t.children&&n.hChildren&&(t.children=n.hChildren)),i=e&&e.position?e:{position:e},s(i)||(t.position={start:a.start(i),end:a.end(i)}),t}function c(e,t,n,r){return null==r&&"object"==typeof n&&"length"in n&&(r=n,n={}),u(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}function f(e){c.footnotes.push(e)}}(e,t),f=u(n,e),p=c(n);f&&f.children&&p&&(f.children=f.children.concat(i("text","\n"),p));return f};var r=n(53),i=n(60),o=n(282),a=n(610),s=n(1341),l=n(611),u=n(612),c=n(1342),d=n(1343)},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e?e:{}}e.exports=function(e){var t=r(r(e).position),n=r(t.start),i=r(t.end);return!(n.line&&n.column&&i.line&&i.column)}},function(e,t,n){"use strict";e.exports=function(e){var t,n,a,s,l=e.footnotes,u=l.length,c=-1,d=[];if(!u)return null;for(;++c<u;)t=l[c],a=t.children.concat(),s=a[a.length-1],n={type:"link",url:"#fnref-"+t.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"↩"}]},s&&"paragraph"===s.type||(s={type:"paragraph",children:[]},a.push(s)),s.children.push(n),d[c]={type:"listItem",data:{hProperties:{id:"fn-"+t.identifier}},children:a,position:t.position};return e(null,"div",{className:["footnotes"]},o([r(e),i(e,{type:"list",ordered:!0,children:d})],!0))};var r=n(613),i=n(614),o=n(195)},function(e,t,n){"use strict";function r(){return null}e.exports={blockquote:n(1344),break:n(1345),code:n(1346),delete:n(1348),emphasis:n(1349),footnoteReference:n(615),footnote:n(1350),heading:n(1351),html:n(1352),imageReference:n(1353),image:n(1354),inlineCode:n(1355),linkReference:n(1356),link:n(1357),listItem:n(1358),list:n(614),paragraph:n(1359),root:n(1360),strong:n(1361),table:n(1362),text:n(1363),thematicBreak:n(613),toml:r,yaml:r,definition:r,footnoteDefinition:r}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"blockquote",r(i(e,t),!0))};var r=n(195),i=n(84)},function(e,t,n){"use strict";e.exports=function(e,t){return[e(t,"br"),r("text","\n")]};var r=n(60)},function(e,t,n){"use strict";e.exports=function(e,t){var n=t.value?r(t.value+"\n"):"",o=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),a={};o&&(a.className=["language-"+o]);return e(t.position,"pre",[e(t,"code",a,[i("text",n)])])};var r=n(1347),i=n(60)},function(e,t,n){"use strict";e.exports=function(e,t){var n,i,o="string"==typeof e,a=o&&e.length,s=0,l=-1,u=-1,c=t||4,d=[];if(!o)throw new Error("detab expected string");for(;++l<a;)9===(n=e.charCodeAt(l))?(u+=i=c-(u+1)%c,d.push(e.slice(s,l)+r(" ",i)),s=l+1):10===n||13===n?u=-1:u++;return d.push(e.slice(s)),d.join("")};var r=n(83)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"del",r(e,t))};var r=n(84)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"em",r(e,t))};var r=n(84)},function(e,t,n){"use strict";e.exports=function(e,t){var n=[],i=1,o=e.footnotes,a=o.length,s=-1;for(;++s<a;)n[s]=o[s].identifier;for(;-1!==n.indexOf(String(i));)i++;return i=String(i),o.push({type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position}),r(e,{type:"footnoteReference",identifier:i,position:t.position})};var r=n(615)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"h"+t.depth,r(e,t))};var r=n(84)},function(e,t,n){"use strict";e.exports=function(e,t){return e.dangerous?e.augment(t,r("raw",t.value)):null};var r=n(60)},function(e,t,n){"use strict";e.exports=function(e,t){var n,o=e.definition(t.identifier);if(!o)return i(e,t);n={src:r(o.url||""),alt:t.alt},null!==o.title&&void 0!==o.title&&(n.title=o.title);return e(t,"img",n)};var r=n(285),i=n(616)},function(e,t,n){"use strict";var r=n(285);e.exports=function(e,t){var n={src:r(t.url),alt:t.alt};null!==t.title&&void 0!==t.title&&(n.title=t.title);return e(t,"img",n)}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"code",[i("text",r(t.value))])};var r=n(384),i=n(60)},function(e,t,n){"use strict";e.exports=function(e,t){var n,a=e.definition(t.identifier);if(!a)return i(e,t);n={href:r(a.url||"")},null!==a.title&&void 0!==a.title&&(n.title=a.title);return e(t,"a",n,o(e,t))};var r=n(285),i=n(616),o=n(84)},function(e,t,n){"use strict";var r=n(285),i=n(84);e.exports=function(e,t){var n={href:r(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);return e(t,"a",n,i(e,t))}},function(e,t,n){"use strict";e.exports=function(e,t,n){var s,l,u,c,d,f=t.children[0],p=o(e,t),h=n?function(e){var t=e.spread,n=e.children,r=n.length,i=-1;for(;!t&&++i<r;)t=a(n[i]);return t}(n):a(t),m={};if(h)s=p;else for(s=[],c=p.length,u=-1;++u<c;)"p"===(d=p[u]).tagName?s=s.concat(d.children):s.push(d);"boolean"==typeof t.checked&&(!h||f&&"paragraph"===f.type||s.unshift(e(null,"p",[])),0!==(l=h?s[0].children:s).length&&l.unshift(r("text"," ")),l.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),m.className=["task-list-item"]);h&&0!==s.length&&(s=i(s,!0));return e(t,"li",m,s)};var r=n(60),i=n(195),o=n(84);function a(e){var t=e.spread;return null==t?e.children.length>1:t}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"p",r(e,t))};var r=n(84)},function(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("root",i(o(e,t))))};var r=n(60),i=n(195),o=n(84)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"strong",r(e,t))};var r=n(84)},function(e,t,n){"use strict";e.exports=function(e,t){var n,a,s,l,u,c=t.children,d=c.length,f=t.align,p=f.length,h=[];for(;d--;){for(a=c[d].children,l=0===d?"th":"td",n=p,s=[];n--;)u=a[n],s[n]=e(u,l,{align:f[n]},u?o(e,u):[]);h[d]=e(c[d],"tr",i(s,!0))}return e(t,"table",i([e(h[0].position,"thead",i([h[0]],!0)),e({start:r.start(h[1]),end:r.end(h[h.length-1])},"tbody",i(h.slice(1),!0))],!0))};var r=n(610),i=n(195),o=n(84)},function(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("text",i(t.value)))};var r=n(60),i=n(1364)},function(e,t,n){"use strict";e.exports=function(e){return String(e).replace(r,"\n")};var r=/[ \t]*\n+[ \t]*/g},function(e,t,n){"use strict";var r=n(53),i=n(1366);e.exports=function(e){var t=r(e,this.data("settings"));this.Compiler=function(e){return i(e,t)}}},function(e,t,n){"use strict";e.exports=n(1367)},function(e,t,n){"use strict";var r=n(387),i=n(287),o=n(1370),a=n(1371),s=n(630);e.exports=function(e,t){var n=t||{},u=n.quote||'"',c='"'===u?"'":'"',d=n.quoteSmart,f=e&&"object"==typeof e&&"length"in e?{type:"root",children:e}:e;if('"'!==u&&"'"!==u)throw new Error("Invalid quote `"+u+"`, expected `'` or `\"`");void 0!==n.allowDangerousHTML&&(l||(l=!0,console.warn("Deprecation warning: `allowDangerousHTML` is a nonstandard option, use `allowDangerousHtml` instead")));return s({valid:n.allowParseErrors?0:1,safe:n.allowDangerousCharacters?0:1,schema:"svg"===n.space?i:r,omit:n.omitOptionalTags&&a,quote:u,alternative:c,smart:d,unquoted:Boolean(n.preferUnquoted),tight:n.tightAttributes,upperDoctype:Boolean(n.upperDoctype),tightDoctype:Boolean(n.tightDoctype),bogusComments:Boolean(n.bogusComments),tightLists:n.tightCommaSeparatedLists,tightClose:n.tightSelfClosing,collapseEmpty:n.collapseEmptyAttributes,dangerous:n.allowDangerousHtml||n.allowDangerousHTML,voids:n.voids||o.concat(),entities:n.entities||{},close:n.closeSelfClosing,closeEmpty:n.closeEmptyElements},f)};var l=!1},function(e,t,n){"use strict";var r=n(286),i=n(196),o=n(624),a=r.boolean,s=r.overloadedBoolean,l=r.booleanish,u=r.number,c=r.spaceSeparated,d=r.commaSeparated;e.exports=i({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:c,accessKey:c,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:c,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:c,cols:u,colSpan:null,content:null,contentEditable:l,controls:a,controlsList:c,coords:u|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:c,height:u,hidden:a,high:u,href:null,hrefLang:null,htmlFor:c,httpEquiv:c,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:c,itemRef:c,itemScope:a,itemType:c,kind:null,label:null,lang:null,language:null,list:null,loop:a,low:u,manifest:null,max:null,maxLength:u,media:null,method:null,min:null,minLength:u,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:u,pattern:null,ping:c,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:c,required:a,reversed:a,rows:u,rowSpan:u,sandbox:c,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:u,sizes:null,slot:null,span:u,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:u,step:null,style:null,tabIndex:u,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:l,width:u,wrap:null,align:null,aLink:null,archive:c,axis:null,background:null,bgColor:null,border:u,borderColor:null,bottomMargin:u,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:u,leftMargin:u,link:null,longDesc:null,lowSrc:null,marginHeight:u,marginWidth:u,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:u,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:u,valueType:null,version:null,vAlign:null,vLink:null,vSpace:u,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:u,security:null,unselectable:null}})},function(e,t,n){"use strict";var r=n(286),i=n(196),o=n(625),a=r.boolean,s=r.number,l=r.spaceSeparated,u=r.commaSeparated,c=r.commaOrSpaceSeparated;e.exports=i({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:o,properties:{about:c,accentHeight:s,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:s,amplitude:s,arabicForm:null,ascent:s,attributeName:null,attributeType:null,azimuth:s,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:s,by:null,calcMode:null,capHeight:s,className:l,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:s,diffuseConstant:s,direction:null,display:null,dur:null,divisor:s,dominantBaseline:null,download:a,dx:null,dy:null,edgeMode:null,editable:null,elevation:s,enableBackground:null,end:null,event:null,exponent:s,externalResourcesRequired:null,fill:null,fillOpacity:s,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:u,g2:u,glyphName:u,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:s,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:s,horizOriginX:s,horizOriginY:s,id:null,ideographic:s,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:s,k:s,k1:s,k2:s,k3:s,k4:s,kernelMatrix:c,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:s,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:s,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:s,overlineThickness:s,paintOrder:null,panose1:null,path:null,pathLength:s,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:l,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:s,pointsAtY:s,pointsAtZ:s,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:c,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:c,rev:c,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:c,requiredFeatures:c,requiredFonts:c,requiredFormats:c,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:s,specularExponent:s,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:s,strikethroughThickness:s,string:null,stroke:null,strokeDashArray:c,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:s,strokeOpacity:s,strokeWidth:null,style:null,surfaceScale:s,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:c,tabIndex:s,tableValues:null,target:null,targetX:s,targetY:s,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:c,to:null,transform:null,u1:null,u2:null,underlinePosition:s,underlineThickness:s,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:s,values:null,vAlphabetic:s,vMathematical:s,vectorEffect:null,vHanging:s,vIdeographic:s,version:null,vertAdvY:s,vertOriginX:s,vertOriginY:s,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:s,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}})},function(e){e.exports=JSON.parse('["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"]')},function(e,t,n){"use strict";t.opening=n(1372),t.closing=n(628)},function(e,t,n){"use strict";var r=n(172),i=n(106),o=n(389).before,a=n(1373),s=n(1374),l=n(627),u=n(628),c=n(629),d=r("comment"),f=["title","base"],p=["meta","link","script","style","template"],h=["thead","tbody"];e.exports=c({html:function(e){var t=a(e);return!t||!d(t)},head:function(e){var t,n,r=e.children,o=r.length,a=[],s=-1;for(;++s<o;)if(t=r[s],n=t.tagName,i(t,f)){if(-1!==a.indexOf(n))return!1;a.push(n)}return 0!==o},body:function(e){var t=a(e,!0);return!t||!d(t)&&!l(t)&&!i(t,p)},colgroup:function(e,t,n){var r=o(n,t),l=a(e,!0);if(i(r,"colgroup")&&u(r,s(n,r),n))return!1;return l&&i(l,"col")},tbody:function(e,t,n){var r=o(n,t),l=a(e);if(i(r,h)&&u(r,s(n,r),n))return!1;return l&&i(l,"tr")}})},function(e,t,n){"use strict";var r=n(389).after;e.exports=function(e,t){return r(e,-1,t)}},function(e,t,n){"use strict";e.exports=function(e,t){return e&&e.children&&e.children.indexOf(t)}},function(e){e.exports=JSON.parse('["cent","copy","divide","gt","lt","not","para","times"]')},function(e,t,n){"use strict";var r=n(53),i=n(287),o=n(391),a=n(633).stringify,s=n(634).stringify,l=n(288),u=n(284),c=n(631),d=n(1377);e.exports=function(e,t,n,r){var o,a,s,l,u,d,p=e.schema,h=t.tagName,m="",g=t;"html"===p.space&&"svg"===h&&(e.schema=i);u=function(e,t){var n,r,i,o,a,s,l=[];for(n in t)null!=(r=t[n])&&(i=f(e,n,r))&&l.push(i);o=l.length,a=-1;for(;++a<o;)i=l[a],s=null,e.tight&&(s=i.charAt(i.length-1)),a!==o-1&&'"'!==s&&"'"!==s&&(l[a]=i+" ");return l.join("")}(e,t.properties),"svg"===e.schema.space?(s=!1,a=!0,o=e.closeEmpty):(s=e.omit,a=e.close,o=-1!==e.voids.indexOf(h.toLowerCase()),"template"===h&&(g=t.content));l=c(e,g),o=!l&&o,!u&&s&&s.opening(t,n,r)||(m="<"+h+(u?" "+u:""),o&&a&&(d=u.charAt(u.length-1),(!e.tightClose||"/"===d||"svg"===e.schema.space&&d&&'"'!==d&&"'"!==d)&&(m+=" "),m+="/"),m+=">");m+=l,o||s&&s.closing(t,n,r)||(m+="</"+h+">");return e.schema=p,m};function f(e,t,n){var i=e.schema,c=o(i,t),f=c.attribute;return!c.overloadedBoolean||n!==f&&""!==n?(c.boolean||c.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&isNaN(n)?"":(f=function(e,t){var n="html"===e.schema.space?e.valid:1,i=d.name[n][e.safe];return l(t,r(e.entities,{subset:i}))}(e,f),!0===n?f:f+function(e,t,n,i){var o,c,f=e.entities,p=e.quote,h=e.alternative,m=e.smart;"object"==typeof n&&"length"in n&&(n=(i.commaSeparated?s:a)(n,{padLeft:!e.tightLists}));!(n=String(n))&&e.collapseEmpty||(o=n,e.unquoted&&(c=d.unquoted[e.valid][e.safe],o=l(n,r(f,{subset:c,attribute:!0}))),e.unquoted&&o===n||(m&&u(n,p)>u(n,h)&&(p=h),c=(c="'"===p?d.single:d.double)["html"===e.schema.space?e.valid:1][e.safe],n=l(n,r(f,{subset:c,attribute:!0})),n=p+n+p),n=n?"="+n:n);return n}(e,0,n,c))}},function(e,t,n){"use strict";var r=[" ","\t","\n","\r","\f"],i=r.concat("&","/",">","="),o=r.concat("&",">"),a=o.concat("\0",'"',"'","<","=","`"),s=["&","'"],l=["&",'"'];e.exports={name:[[i,i.concat('"',"'","`")],[i.concat("\0",'"',"'","<"),i.concat("\0",'"',"'","<","`")]],unquoted:[[o,a],[a,a]],single:[[s,s.concat('"',"`")],[s.concat("\0"),s.concat("\0",'"',"`")]],double:[[l,l.concat("'","`")],[l.concat("\0"),l.concat("\0","'","`")]]}},function(e,t,n){"use strict";var r=n(53),i=n(284),o=n(288);e.exports=function(e,t){var n=e.upperDoctype?a:"doctype",r=e.tightDoctype?"":" ",i=t.name,o=t.public,l=t.system,u=["<!"+n];i&&(u.push(r,i),null!=o?u.push(" public",r,s(e,o)):null!=l&&u.push(" system"),null!=l&&u.push(r,s(e,l)));return u.join("")+">"};var a="doctype".toUpperCase();function s(e,t){var n=e.quote,a=e.alternative,s=String(t),l=i(s,n)>i(s,a)?a:n;return l+o(s,r(e.entities,{subset:["<","&",l]}))+l}},function(e,t,n){"use strict";var r=n(53),i=n(288);e.exports=function(e,t){var n=t.value;if(e.bogusComments)return"<?"+i(n,r(e.entities,{subset:s}))+">";return"\x3c!--"+n.replace(o,(function(t){return i(t,r(e.entities,{subset:a}))}))+"--\x3e"};var o=/^>|^->|<!--|-->|--!>|<!-$/g,a=["<",">"],s=[">"]},function(e,t,n){"use strict";var r=n(632);e.exports=function(e,t){return e.dangerous?t.value:r(e,t)}},function(e,t,n){"use strict";var r=n(1382),i=n(1389),o=n(53),a=n(1403),s={2:!0,1:!1,0:null};function l(e){return e.charAt(1).toUpperCase()}e.exports=function(e){var t=o(e,this.data("settings")),n=t.position;n="boolean"!=typeof n||n,this.Parser=function(e,o){var u=t.fragment?"parseFragment":"parse",c=t.emitParseErrors?function(n){var r,i,u=n.code,c=function(e){return e.replace(/-[a-z]/g,l)}(u),d=t[c],f=null==d||d,p="number"==typeof f?f:f?1:0,h={line:n.startLine,column:n.startCol,offset:n.startOffset},m={line:n.endLine,column:n.endCol,offset:n.endOffset};p&&(r=a[c]||{reason:"",description:""},(i=o.message(g(r.reason),{start:h,end:m})).source="parse-error",i.ruleId=u,i.fatal=s[p],i.note=g(r.description),i.url=!1===r.url?null:"https://html.spec.whatwg.org/multipage/parsing.html#parse-error-"+u);function g(e){return e.replace(/%c(?:-(\d+))?/g,v).replace(/%x/g,y)}function v(t,r){var i=r?-parseInt(r,10):0,o=e.charAt(n.startOffset+i);return"`"===o?"` ` `":o}function y(){return"0x"+e.charCodeAt(n.startOffset).toString(16).toUpperCase()}}:null,d=new i({sourceCodeLocationInfo:n,onParseError:c,scriptingEnabled:!1});return r(d[u](e),{space:t.space,file:o,verbose:t.verbose})}}},function(e,t,n){"use strict";var r=n(387),i=n(287),o=n(391),a=n(1383),s=n(1384),l=n(1387),u=n(53),c=n(284);e.exports=function(e,t){var n,o=t||{};o.messages?(n=o,o={}):n=o.file;return p(e,{schema:"svg"===o.space?i:r,file:n,verbose:o.verbose,location:!1})};var d={}.hasOwnProperty,f={"#document":h,"#document-fragment":h,"#text":function(e){return{type:"text",value:e.value}},"#comment":function(e){return{type:"comment",value:e.data}},"#documentType":function(e){return{type:"doctype",name:e.name||"",public:e.publicId||null,system:e.systemId||null}}};function p(e,t){var n,s,l,c=t.schema,h=d.call(f,e.nodeName)?f[e.nodeName]:m;return h===m&&(t.schema=e.namespaceURI===a.svg?i:r),e.childNodes&&(n=function(e,t){var n=e.length,r=-1,i=[];for(;++r<n;)i[r]=p(e[r],t);return i}(e.childNodes,t)),s=h(e,n,t),e.sourceCodeLocation&&t.file&&(l=function(e,t,n){var r,i,a,s,l,c=n.schema,d=n.verbose,f=g(t);if("element"===e.type&&(r=e.children[e.children.length-1],!t.endTag&&r&&r.position&&r.position.end&&(f.end=u(r.position.end)),d)){for(a in i=t.attrs,s={},i)l=o(c,a).property,s[l]=g(i[a]);e.data={position:{opening:g(t.startTag),closing:t.endTag?g(t.endTag):null,properties:s}}}return f}(s,e.sourceCodeLocation,t))&&(t.location=!0,s.position=l),t.schema=c,s}function h(e,t,n){var r,i={type:"root",children:t,data:{}};return i.data.quirksMode="quirks"===e.mode||"limited-quirks"===e.mode,n.file&&n.location&&(r=String(n.file),i.position={start:{line:1,column:1,offset:0},end:{line:c(r,"\n")+1,column:r.length-r.lastIndexOf("\n"),offset:r.length}}),i}function m(e,t,n){for(var r,i,o,a,u,c="svg"===n.schema.space?s:l,d=e.tagName,f=e.attrs,h=f.length,m={},v=-1;++v<h;)m[((r=f[v]).prefix?r.prefix+":":"")+r.name]=r.value;return i=c(d,m,t),"template"===d&&"content"in e&&(a=(o=e.sourceCodeLocation)&&o.startTag&&g(o.startTag).end,u=o&&o.endTag&&g(o.endTag).start,i.content=p(e.content,n),(a||u)&&n.file&&(i.content.position={start:a,end:u})),i}function g(e){var t=v({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=v({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:null}function v(e){return e.line&&e.column?e:null}},function(e){e.exports=JSON.parse('{"html":"http://www.w3.org/1999/xhtml","mathml":"http://www.w3.org/1998/Math/MathML","svg":"http://www.w3.org/2000/svg","xlink":"http://www.w3.org/1999/xlink","xml":"http://www.w3.org/XML/1998/namespace","xmlns":"http://www.w3.org/2000/xmlns/"}')},function(e,t,n){"use strict";var r=n(287),i=n(1385),o=n(635)(r,"g",i);o.displayName="svg",e.exports=o},function(e){e.exports=JSON.parse('["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]')},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i,o,a,s=e||"",l=t||"div",u={},c=-1,d=s.length;for(;++c<=d;)(i=s.charCodeAt(c))&&46!==i&&35!==i||((o=s.slice(a,c))&&(46===r?n?n.push(o):(n=[o],u.className=n):35===r?u.id=o:l=o),a=c+1,r=i);return{type:"element",tagName:l,properties:u,children:[]}}},function(e,t,n){"use strict";e.exports=n(1388)},function(e,t,n){"use strict";var r=n(387),i=n(635)(r,"div");i.displayName="html",e.exports=i},function(e,t,n){"use strict";const r=n(289),i=n(1392),o=n(1393),a=n(1394),s=n(1396),l=n(125),u=n(1399),c=n(1400),d=n(1401),f=n(1402),p=n(393),h=n(392),m=n(197),g=m.TAG_NAMES,v=m.NAMESPACES,y=m.ATTRS,b={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:u},_="IN_TABLE_MODE",w={[g.TR]:"IN_ROW_MODE",[g.TBODY]:"IN_TABLE_BODY_MODE",[g.THEAD]:"IN_TABLE_BODY_MODE",[g.TFOOT]:"IN_TABLE_BODY_MODE",[g.CAPTION]:"IN_CAPTION_MODE",[g.COLGROUP]:"IN_COLUMN_GROUP_MODE",[g.TABLE]:_,[g.BODY]:"IN_BODY_MODE",[g.FRAMESET]:"IN_FRAMESET_MODE"},x={[g.CAPTION]:_,[g.COLGROUP]:_,[g.TBODY]:_,[g.TFOOT]:_,[g.THEAD]:_,[g.COL]:"IN_COLUMN_GROUP_MODE",[g.TR]:"IN_TABLE_BODY_MODE",[g.TD]:"IN_ROW_MODE",[g.TH]:"IN_ROW_MODE"},k={INITIAL_MODE:{[r.CHARACTER_TOKEN]:N,[r.NULL_CHARACTER_TOKEN]:N,[r.WHITESPACE_CHARACTER_TOKEN]:R,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const n=t.forceQuirks?m.DOCUMENT_MODE.QUIRKS:d.getDocumentMode(t);d.isConforming(t)||e._err(p.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode="BEFORE_HTML_MODE"},[r.START_TAG_TOKEN]:N,[r.END_TAG_TOKEN]:N,[r.EOF_TOKEN]:N},BEFORE_HTML_MODE:{[r.CHARACTER_TOKEN]:F,[r.NULL_CHARACTER_TOKEN]:F,[r.WHITESPACE_CHARACTER_TOKEN]:R,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?(e._insertElement(t,v.HTML),e.insertionMode="BEFORE_HEAD_MODE"):F(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n!==g.HTML&&n!==g.HEAD&&n!==g.BODY&&n!==g.BR||F(e,t)},[r.EOF_TOKEN]:F},BEFORE_HEAD_MODE:{[r.CHARACTER_TOKEN]:B,[r.NULL_CHARACTER_TOKEN]:B,[r.WHITESPACE_CHARACTER_TOKEN]:R,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:M,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.HEAD?(e._insertElement(t,v.HTML),e.headElement=e.openElements.current,e.insertionMode="IN_HEAD_MODE"):B(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HEAD||n===g.BODY||n===g.HTML||n===g.BR?B(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:B},IN_HEAD_MODE:{[r.CHARACTER_TOKEN]:q,[r.NULL_CHARACTER_TOKEN]:q,[r.WHITESPACE_CHARACTER_TOKEN]:D,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:M,[r.START_TAG_TOKEN]:z,[r.END_TAG_TOKEN]:U,[r.EOF_TOKEN]:q},IN_HEAD_NO_SCRIPT_MODE:{[r.CHARACTER_TOKEN]:H,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:D,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:M,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.BASEFONT||n===g.BGSOUND||n===g.HEAD||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.STYLE?z(e,t):n===g.NOSCRIPT?e._err(p.nestedNoscriptInHead):H(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.NOSCRIPT?(e.openElements.pop(),e.insertionMode="IN_HEAD_MODE"):n===g.BR?H(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:H},AFTER_HEAD_MODE:{[r.CHARACTER_TOKEN]:W,[r.NULL_CHARACTER_TOKEN]:W,[r.WHITESPACE_CHARACTER_TOKEN]:D,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:M,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.BODY?(e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode="IN_BODY_MODE"):n===g.FRAMESET?(e._insertElement(t,v.HTML),e.insertionMode="IN_FRAMESET_MODE"):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE?(e._err(p.abandonedHeadElementChild),e.openElements.push(e.headElement),z(e,t),e.openElements.remove(e.headElement)):n===g.HEAD?e._err(p.misplacedStartTagForHeadElement):W(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.BODY||n===g.HTML||n===g.BR?W(e,t):n===g.TEMPLATE?U(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:W},IN_BODY_MODE:{[r.CHARACTER_TOKEN]:$,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:V,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:re,[r.END_TAG_TOKEN]:se,[r.EOF_TOKEN]:le},TEXT_MODE:{[r.CHARACTER_TOKEN]:D,[r.NULL_CHARACTER_TOKEN]:D,[r.WHITESPACE_CHARACTER_TOKEN]:D,[r.COMMENT_TOKEN]:R,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:R,[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[r.EOF_TOKEN]:function(e,t){e._err(p.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[_]:{[r.CHARACTER_TOKEN]:ue,[r.NULL_CHARACTER_TOKEN]:ue,[r.WHITESPACE_CHARACTER_TOKEN]:ue,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:ce,[r.END_TAG_TOKEN]:de,[r.EOF_TOKEN]:le},IN_TABLE_TEXT_MODE:{[r.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[r.COMMENT_TOKEN]:pe,[r.DOCTYPE_TOKEN]:pe,[r.START_TAG_TOKEN]:pe,[r.END_TAG_TOKEN]:pe,[r.EOF_TOKEN]:pe},IN_CAPTION_MODE:{[r.CHARACTER_TOKEN]:$,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:V,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_,e._processToken(t)):re(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_,n===g.TABLE&&e._processToken(t)):n!==g.BODY&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&se(e,t)},[r.EOF_TOKEN]:le},IN_COLUMN_GROUP_MODE:{[r.CHARACTER_TOKEN]:he,[r.NULL_CHARACTER_TOKEN]:he,[r.WHITESPACE_CHARACTER_TOKEN]:D,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.COL?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.TEMPLATE?z(e,t):he(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.COLGROUP?e.openElements.currentTagName===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=_):n===g.TEMPLATE?U(e,t):n!==g.COL&&he(e,t)},[r.EOF_TOKEN]:le},IN_TABLE_BODY_MODE:{[r.CHARACTER_TOKEN]:ue,[r.NULL_CHARACTER_TOKEN]:ue,[r.WHITESPACE_CHARACTER_TOKEN]:ue,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,v.HTML),e.insertionMode="IN_ROW_MODE"):n===g.TH||n===g.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(g.TR),e.insertionMode="IN_ROW_MODE",e._processToken(t)):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_,e._processToken(t)):ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_):n===g.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_,e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH&&n!==g.TR)&&de(e,t)},[r.EOF_TOKEN]:le},IN_ROW_MODE:{[r.CHARACTER_TOKEN]:ue,[r.NULL_CHARACTER_TOKEN]:ue,[r.WHITESPACE_CHARACTER_TOKEN]:ue,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TH||n===g.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,v.HTML),e.insertionMode="IN_CELL_MODE",e.activeFormattingElements.insertMarker()):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE"):n===g.TABLE?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):n===g.TBODY||n===g.TFOOT||n===g.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(g.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH)&&de(e,t)},[r.EOF_TOKEN]:le},IN_CELL_MODE:{[r.CHARACTER_TOKEN]:$,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:V,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),e._processToken(t)):re(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode="IN_ROW_MODE"):n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&se(e,t)},[r.EOF_TOKEN]:le},IN_SELECT_MODE:{[r.CHARACTER_TOKEN]:D,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:D,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:me,[r.END_TAG_TOKEN]:ge,[r.EOF_TOKEN]:le},IN_SELECT_IN_TABLE_MODE:{[r.CHARACTER_TOKEN]:D,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:D,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):me(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):ge(e,t)},[r.EOF_TOKEN]:le},IN_TEMPLATE_MODE:{[r.CHARACTER_TOKEN]:$,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:V,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;if(n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE)z(e,t);else{const r=x[n]||"IN_BODY_MODE";e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.TEMPLATE&&U(e,t)},[r.EOF_TOKEN]:ve},AFTER_BODY_MODE:{[r.CHARACTER_TOKEN]:ye,[r.NULL_CHARACTER_TOKEN]:ye,[r.WHITESPACE_CHARACTER_TOKEN]:V,[r.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?re(e,t):ye(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?e.fragmentContext||(e.insertionMode="AFTER_AFTER_BODY_MODE"):ye(e,t)},[r.EOF_TOKEN]:L},IN_FRAMESET_MODE:{[r.CHARACTER_TOKEN]:R,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:D,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.FRAMESET?e._insertElement(t,v.HTML):n===g.FRAME?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.NOFRAMES&&z(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName!==g.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===g.FRAMESET||(e.insertionMode="AFTER_FRAMESET_MODE"))},[r.EOF_TOKEN]:L},AFTER_FRAMESET_MODE:{[r.CHARACTER_TOKEN]:R,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:D,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.NOFRAMES&&z(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML&&(e.insertionMode="AFTER_AFTER_FRAMESET_MODE")},[r.EOF_TOKEN]:L},AFTER_AFTER_BODY_MODE:{[r.CHARACTER_TOKEN]:be,[r.NULL_CHARACTER_TOKEN]:be,[r.WHITESPACE_CHARACTER_TOKEN]:V,[r.COMMENT_TOKEN]:j,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?re(e,t):be(e,t)},[r.END_TAG_TOKEN]:be,[r.EOF_TOKEN]:L},AFTER_AFTER_FRAMESET_MODE:{[r.CHARACTER_TOKEN]:R,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:V,[r.COMMENT_TOKEN]:j,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.NOFRAMES&&z(e,t)},[r.END_TAG_TOKEN]:R,[r.EOF_TOKEN]:L}};function E(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):ae(e,t),n}function S(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function O(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const n=e.activeFormattingElements.getElementEntry(a),s=n&&o>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=T(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function T(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function C(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===g.TEMPLATE&&i===v.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function A(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o)}function P(e,t){let n;for(let r=0;r<8&&(n=E(e,t),n);r++){const t=S(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;const r=O(e,t,n.element),i=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),C(e,i,r),A(e,t,n)}}function R(){}function M(e){e._err(p.misplacedDoctype)}function I(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function j(e,t){e._appendCommentNode(t,e.document)}function D(e,t){e._insertCharacters(t)}function L(e){e.stopped=!0}function N(e,t){e._err(p.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,m.DOCUMENT_MODE.QUIRKS),e.insertionMode="BEFORE_HTML_MODE",e._processToken(t)}function F(e,t){e._insertFakeRootElement(),e.insertionMode="BEFORE_HEAD_MODE",e._processToken(t)}function B(e,t){e._insertFakeElement(g.HEAD),e.headElement=e.openElements.current,e.insertionMode="IN_HEAD_MODE",e._processToken(t)}function z(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.TITLE?e._switchToTextParsing(t,r.MODE.RCDATA):n===g.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,r.MODE.RAWTEXT):(e._insertElement(t,v.HTML),e.insertionMode="IN_HEAD_NO_SCRIPT_MODE"):n===g.NOFRAMES||n===g.STYLE?e._switchToTextParsing(t,r.MODE.RAWTEXT):n===g.SCRIPT?e._switchToTextParsing(t,r.MODE.SCRIPT_DATA):n===g.TEMPLATE?(e._insertTemplate(t,v.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode="IN_TEMPLATE_MODE",e._pushTmplInsertionMode("IN_TEMPLATE_MODE")):n===g.HEAD?e._err(p.misplacedStartTagForHeadElement):q(e,t)}function U(e,t){const n=t.tagName;n===g.HEAD?(e.openElements.pop(),e.insertionMode="AFTER_HEAD_MODE"):n===g.BODY||n===g.BR||n===g.HTML?q(e,t):n===g.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==g.TEMPLATE&&e._err(p.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(p.endTagWithoutMatchingOpenElement)}function q(e,t){e.openElements.pop(),e.insertionMode="AFTER_HEAD_MODE",e._processToken(t)}function H(e,t){const n=t.type===r.EOF_TOKEN?p.openElementsLeftAfterEof:p.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode="IN_HEAD_MODE",e._processToken(t)}function W(e,t){e._insertFakeElement(g.BODY),e.insertionMode="IN_BODY_MODE",e._processToken(t)}function V(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function $(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function G(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}function K(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Y(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Q(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function X(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,v.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function J(e,t){e._appendElement(t,v.HTML),t.ackSelfClosing=!0}function Z(e,t){e._switchToTextParsing(t,r.MODE.RAWTEXT)}function ee(e,t){e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML)}function te(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,v.HTML)}function ne(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML)}function re(e,t){const n=t.tagName;switch(n.length){case 1:n===g.I||n===g.S||n===g.B||n===g.U?Y(e,t):n===g.P?G(e,t):n===g.A?function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(g.A);n&&(P(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):ne(e,t);break;case 2:n===g.DL||n===g.OL||n===g.UL?G(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement();const n=e.openElements.currentTagName;n!==g.H1&&n!==g.H2&&n!==g.H3&&n!==g.H4&&n!==g.H5&&n!==g.H6||e.openElements.pop(),e._insertElement(t,v.HTML)}(e,t):n===g.LI||n===g.DD||n===g.DT?function(e,t){e.framesetOk=!1;const n=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){const r=e.openElements.items[t],i=e.treeAdapter.getTagName(r);let o=null;if(n===g.LI&&i===g.LI?o=g.LI:n!==g.DD&&n!==g.DT||i!==g.DD&&i!==g.DT||(o=i),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(i!==g.ADDRESS&&i!==g.DIV&&i!==g.P&&e._isSpecialElement(r))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}(e,t):n===g.EM||n===g.TT?Y(e,t):n===g.BR?X(e,t):n===g.HR?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,v.HTML),e.framesetOk=!1,e.ackSelfClosing=!0}(e,t):n===g.RB?te(e,t):n===g.RT||n===g.RP?function(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,v.HTML)}(e,t):n!==g.TH&&n!==g.TD&&n!==g.TR&&ne(e,t);break;case 3:n===g.DIV||n===g.DIR||n===g.NAV?G(e,t):n===g.PRE?K(e,t):n===g.BIG?Y(e,t):n===g.IMG||n===g.WBR?X(e,t):n===g.XMP?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===g.SVG?function(e,t){e._reconstructActiveFormattingElements(),f.adjustTokenSVGAttrs(t),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,v.SVG):e._insertElement(t,v.SVG),t.ackSelfClosing=!0}(e,t):n===g.RTC?te(e,t):n!==g.COL&&ne(e,t);break;case 4:n===g.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===g.BASE||n===g.LINK||n===g.META?z(e,t):n===g.BODY?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===g.MAIN||n===g.MENU?G(e,t):n===g.FORM?function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===g.CODE||n===g.FONT?Y(e,t):n===g.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(P(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===g.AREA?X(e,t):n===g.MATH?function(e,t){e._reconstructActiveFormattingElements(),f.adjustTokenMathMLAttrs(t),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,v.MATHML):e._insertElement(t,v.MATHML),t.ackSelfClosing=!0}(e,t):n===g.MENU?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}(e,t):n!==g.HEAD&&ne(e,t);break;case 5:n===g.STYLE||n===g.TITLE?z(e,t):n===g.ASIDE?G(e,t):n===g.SMALL?Y(e,t):n===g.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==m.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode=_}(e,t):n===g.EMBED?X(e,t):n===g.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,v.HTML);const n=r.getTokenAttr(t,y.TYPE);n&&"hidden"===n.toLowerCase()||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):n===g.PARAM||n===g.TRACK?J(e,t):n===g.IMAGE?function(e,t){t.tagName=g.IMG,X(e,t)}(e,t):n!==g.FRAME&&n!==g.TBODY&&n!==g.TFOOT&&n!==g.THEAD&&ne(e,t);break;case 6:n===g.SCRIPT?z(e,t):n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?G(e,t):n===g.BUTTON?function(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.framesetOk=!1}(e,t):n===g.STRIKE||n===g.STRONG?Y(e,t):n===g.APPLET||n===g.OBJECT?Q(e,t):n===g.KEYGEN?X(e,t):n===g.SOURCE?J(e,t):n===g.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===g.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode===_||"IN_CAPTION_MODE"===e.insertionMode||"IN_TABLE_BODY_MODE"===e.insertionMode||"IN_ROW_MODE"===e.insertionMode||"IN_CELL_MODE"===e.insertionMode?e.insertionMode="IN_SELECT_IN_TABLE_MODE":e.insertionMode="IN_SELECT_MODE"}(e,t):n===g.OPTION?ee(e,t):ne(e,t);break;case 7:n===g.BGSOUND?z(e,t):n===g.DETAILS||n===g.ADDRESS||n===g.ARTICLE||n===g.SECTION||n===g.SUMMARY?G(e,t):n===g.LISTING?K(e,t):n===g.MARQUEE?Q(e,t):n===g.NOEMBED?Z(e,t):n!==g.CAPTION&&ne(e,t);break;case 8:n===g.BASEFONT?z(e,t):n===g.FRAMESET?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,v.HTML),e.insertionMode="IN_FRAMESET_MODE")}(e,t):n===g.FIELDSET?G(e,t):n===g.TEXTAREA?function(e,t){e._insertElement(t,v.HTML),e.skipNextNewLine=!0,e.tokenizer.state=r.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode="TEXT_MODE"}(e,t):n===g.TEMPLATE?z(e,t):n===g.NOSCRIPT?e.options.scriptingEnabled?Z(e,t):ne(e,t):n===g.OPTGROUP?ee(e,t):n!==g.COLGROUP&&ne(e,t);break;case 9:n===g.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.tokenizer.state=r.MODE.PLAINTEXT}(e,t):ne(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?G(e,t):ne(e,t);break;default:ne(e,t)}}function ie(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function oe(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ae(e,t){const n=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){const r=e.openElements.items[t];if(e.treeAdapter.getTagName(r)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(r);break}if(e._isSpecialElement(r))break}}function se(e,t){const n=t.tagName;switch(n.length){case 1:n===g.A||n===g.B||n===g.I||n===g.S||n===g.U?P(e,t):n===g.P?function(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(g.P),e._closePElement()}(e):ae(e,t);break;case 2:n===g.DL||n===g.UL||n===g.OL?ie(e,t):n===g.LI?function(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}(e):n===g.DD||n===g.DT?function(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===g.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(g.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===g.EM||n===g.TT?P(e,t):ae(e,t);break;case 3:n===g.BIG?P(e,t):n===g.DIR||n===g.DIV||n===g.NAV||n===g.PRE?ie(e,t):ae(e,t);break;case 4:n===g.BODY?function(e){e.openElements.hasInScope(g.BODY)&&(e.insertionMode="AFTER_BODY_MODE")}(e):n===g.HTML?function(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode="AFTER_BODY_MODE",e._processToken(t))}(e,t):n===g.FORM?function(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):e.openElements.remove(n))}(e):n===g.CODE||n===g.FONT||n===g.NOBR?P(e,t):n===g.MAIN||n===g.MENU?ie(e,t):ae(e,t);break;case 5:n===g.ASIDE?ie(e,t):n===g.SMALL?P(e,t):ae(e,t);break;case 6:n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?ie(e,t):n===g.APPLET||n===g.OBJECT?oe(e,t):n===g.STRIKE||n===g.STRONG?P(e,t):ae(e,t);break;case 7:n===g.ADDRESS||n===g.ARTICLE||n===g.DETAILS||n===g.SECTION||n===g.SUMMARY||n===g.LISTING?ie(e,t):n===g.MARQUEE?oe(e,t):ae(e,t);break;case 8:n===g.FIELDSET?ie(e,t):n===g.TEMPLATE?U(e,t):ae(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?ie(e,t):ae(e,t);break;default:ae(e,t)}}function le(e,t){e.tmplInsertionModeStackTop>-1?ve(e,t):e.stopped=!0}function ue(e,t){const n=e.openElements.currentTagName;n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode="IN_TABLE_TEXT_MODE",e._processToken(t)):fe(e,t)}function ce(e,t){const n=t.tagName;switch(n.length){case 2:n===g.TD||n===g.TH||n===g.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.TBODY),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)}(e,t):fe(e,t);break;case 3:n===g.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.COLGROUP),e.insertionMode="IN_COLUMN_GROUP_MODE",e._processToken(t)}(e,t):fe(e,t);break;case 4:n===g.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,v.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):fe(e,t);break;case 5:n===g.TABLE?function(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===g.STYLE?z(e,t):n===g.TBODY||n===g.TFOOT||n===g.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,v.HTML),e.insertionMode="IN_TABLE_BODY_MODE"}(e,t):n===g.INPUT?function(e,t){const n=r.getTokenAttr(t,y.TYPE);n&&"hidden"===n.toLowerCase()?e._appendElement(t,v.HTML):fe(e,t),t.ackSelfClosing=!0}(e,t):fe(e,t);break;case 6:n===g.SCRIPT?z(e,t):fe(e,t);break;case 7:n===g.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,v.HTML),e.insertionMode="IN_CAPTION_MODE"}(e,t):fe(e,t);break;case 8:n===g.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,v.HTML),e.insertionMode="IN_COLUMN_GROUP_MODE"}(e,t):n===g.TEMPLATE?z(e,t):fe(e,t);break;default:fe(e,t)}}function de(e,t){const n=t.tagName;n===g.TABLE?e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode()):n===g.TEMPLATE?U(e,t):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&fe(e,t)}function fe(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function pe(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)fe(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function he(e,t){e.openElements.currentTagName===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=_,e._processToken(t))}function me(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.OPTION?(e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._insertElement(t,v.HTML)):n===g.OPTGROUP?(e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e.openElements.currentTagName===g.OPTGROUP&&e.openElements.pop(),e._insertElement(t,v.HTML)):n===g.INPUT||n===g.KEYGEN||n===g.TEXTAREA||n===g.SELECT?e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),n!==g.SELECT&&e._processToken(t)):n!==g.SCRIPT&&n!==g.TEMPLATE||z(e,t)}function ge(e,t){const n=t.tagName;if(n===g.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],n=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===g.OPTION&&n===g.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===g.OPTGROUP&&e.openElements.pop()}else n===g.OPTION?e.openElements.currentTagName===g.OPTION&&e.openElements.pop():n===g.SELECT&&e.openElements.hasInSelectScope(g.SELECT)?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode()):n===g.TEMPLATE&&U(e,t)}function ve(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function ye(e,t){e.insertionMode="IN_BODY_MODE",e._processToken(t)}function be(e,t){e.insertionMode="IN_BODY_MODE",e._processToken(t)}e.exports=class{constructor(e){this.options=c(b,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&l.install(this,a),this.options.onParseError&&l.install(this,s,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(g.TEMPLATE,v.HTML,[]));const n=this.treeAdapter.createElement("documentmock",v.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===g.TEMPLATE&&this._pushTmplInsertionMode("IN_TEMPLATE_MODE"),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const r=this.treeAdapter.getFirstChild(n),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,i),i}_bootstrap(e,t){this.tokenizer=new r(this.options),this.stopped=!1,this.insertionMode="INITIAL_MODE",this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new i(this.document,this.treeAdapter),this.activeFormattingElements=new o(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===r.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===r.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==v.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,v.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode="TEXT_MODE"}switchToPlaintextParsing(){this.insertionMode="TEXT_MODE",this.originalInsertionMode="IN_BODY_MODE",this.tokenizer.state=r.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===g.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===v.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===g.TITLE||e===g.TEXTAREA?this.tokenizer.state=r.MODE.RCDATA:e===g.STYLE||e===g.XMP||e===g.IFRAME||e===g.NOEMBED||e===g.NOFRAMES||e===g.NOSCRIPT?this.tokenizer.state=r.MODE.RAWTEXT:e===g.SCRIPT?this.tokenizer.state=r.MODE.SCRIPT_DATA:e===g.PLAINTEXT&&(this.tokenizer.state=r.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,r)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,v.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,v.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(g.HTML,v.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const n=this.treeAdapter.getNamespaceURI(t);if(n===v.HTML)return!1;if(this.treeAdapter.getTagName(t)===g.ANNOTATION_XML&&n===v.MATHML&&e.type===r.START_TAG_TOKEN&&e.tagName===g.SVG)return!1;const i=e.type===r.CHARACTER_TOKEN||e.type===r.NULL_CHARACTER_TOKEN||e.type===r.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===r.START_TAG_TOKEN&&e.tagName!==g.MGLYPH&&e.tagName!==g.MALIGNMARK)&&!i||!this._isIntegrationPoint(t,v.MATHML))&&((e.type!==r.START_TAG_TOKEN&&!i||!this._isIntegrationPoint(t,v.HTML))&&e.type!==r.EOF_TOKEN)}_processToken(e){k[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){k.IN_BODY_MODE[e.type](this,e)}_processTokenInForeignContent(e){e.type===r.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===r.NULL_CHARACTER_TOKEN?function(e,t){t.chars=h.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===r.WHITESPACE_CHARACTER_TOKEN?D(this,e):e.type===r.COMMENT_TOKEN?I(this,e):e.type===r.START_TAG_TOKEN?function(e,t){if(f.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==v.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===v.MATHML?f.adjustTokenMathMLAttrs(t):r===v.SVG&&(f.adjustTokenSVGTagName(t),f.adjustTokenSVGAttrs(t)),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):e.type===r.END_TAG_TOKEN&&function(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===v.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===r.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(p.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return f.isIntegrationPoint(n,r,i,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,n=null;do{if(t--,n=this.activeFormattingElements.entries[t],n.type===o.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(let r=t;r<e;r++)n=this.activeFormattingElements.entries[r],this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode="IN_ROW_MODE"}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));const r=this.treeAdapter.getTagName(n),i=w[r];if(i){this.insertionMode=i;break}if(!(t||r!==g.TD&&r!==g.TH)){this.insertionMode="IN_CELL_MODE";break}if(!t&&r===g.HEAD){this.insertionMode="IN_HEAD_MODE";break}if(r===g.SELECT){this._resetInsertionModeForSelect(e);break}if(r===g.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===g.HTML){this.insertionMode=this.headElement?"AFTER_HEAD_MODE":"BEFORE_HEAD_MODE";break}if(t){this.insertionMode="IN_BODY_MODE";break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],n=this.treeAdapter.getTagName(e);if(n===g.TEMPLATE)break;if(n===g.TABLE)return void(this.insertionMode="IN_SELECT_IN_TABLE_MODE")}this.insertionMode="IN_SELECT_MODE"}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===g.TABLE||t===g.TBODY||t===g.TFOOT||t===g.THEAD||t===g.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),i=this.treeAdapter.getNamespaceURI(n);if(r===g.TEMPLATE&&i===v.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===g.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return m.SPECIAL_ELEMENTS[n][t]}}},function(e,t,n){"use strict";const r=n(392),i=n(393),o=r.CODE_POINTS;e.exports=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(r.isSurrogatePair(t))return this.pos++,this._addGap(),r.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,o.EOF;return this._err(i.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,o.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===o.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===o.CARRIAGE_RETURN)return this.skipNextNewLine=!0,o.LINE_FEED;this.skipNextNewLine=!1,r.isSurrogate(e)&&(e=this._processSurrogate(e));return e>31&&e<127||e===o.LINE_FEED||e===o.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){r.isControlCodePoint(e)?this._err(i.controlCharacterInInputStream):r.isUndefinedCodePoint(e)&&this._err(i.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}},function(e,t,n){"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},function(e,t,n){"use strict";const r=n(197),i=r.TAG_NAMES,o=r.NAMESPACES;function a(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI;case 3:return e===i.RTC;case 6:return e===i.OPTION;case 8:return e===i.OPTGROUP}return!1}function s(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI||e===i.TD||e===i.TH||e===i.TR;case 3:return e===i.RTC;case 5:return e===i.TBODY||e===i.TFOOT||e===i.THEAD;case 6:return e===i.OPTION;case 7:return e===i.CAPTION;case 8:return e===i.OPTGROUP||e===i.COLGROUP}return!1}function l(e,t){switch(e.length){case 2:if(e===i.TD||e===i.TH)return t===o.HTML;if(e===i.MI||e===i.MO||e===i.MN||e===i.MS)return t===o.MATHML;break;case 4:if(e===i.HTML)return t===o.HTML;if(e===i.DESC)return t===o.SVG;break;case 5:if(e===i.TABLE)return t===o.HTML;if(e===i.MTEXT)return t===o.MATHML;if(e===i.TITLE)return t===o.SVG;break;case 6:return(e===i.APPLET||e===i.OBJECT)&&t===o.HTML;case 7:return(e===i.CAPTION||e===i.MARQUEE)&&t===o.HTML;case 8:return e===i.TEMPLATE&&t===o.HTML;case 13:return e===i.FOREIGN_OBJECT&&t===o.SVG;case 14:return e===i.ANNOTATION_XML&&t===o.MATHML}return!1}e.exports=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t}_isInTemplate(){return this.currentTagName===i.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===o.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===o.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.H1||e===i.H2||e===i.H3||e===i.H4||e===i.H5||e===i.H6&&t===o.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.TD||e===i.TH&&t===o.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==i.TABLE&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==i.TBODY&&this.currentTagName!==i.TFOOT&&this.currentTagName!==i.THEAD&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==i.TR&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===i.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===i.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===o.HTML)return!0;if(l(n,r))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===i.H1||t===i.H2||t===i.H3||t===i.H4||t===i.H5||t===i.H6)&&n===o.HTML)return!0;if(l(t,n))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===o.HTML)return!0;if((n===i.UL||n===i.OL)&&r===o.HTML||l(n,r))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===o.HTML)return!0;if(n===i.BUTTON&&r===o.HTML||l(n,r))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===o.HTML){if(n===e)return!0;if(n===i.TABLE||n===i.TEMPLATE||n===i.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===o.HTML){if(t===i.TBODY||t===i.THEAD||t===i.TFOOT)return!0;if(t===i.TABLE||t===i.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===o.HTML){if(n===e)return!0;if(n!==i.OPTION&&n!==i.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;a(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;s(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;a(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}},function(e,t,n){"use strict";class r{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const t=[];if(this.length>=3){const n=this.treeAdapter.getAttrList(e).length,i=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const a=this.entries[e];if(a.type===r.MARKER_ENTRY)break;const s=a.element,l=this.treeAdapter.getAttrList(s);this.treeAdapter.getTagName(s)===i&&this.treeAdapter.getNamespaceURI(s)===o&&l.length===n&&t.push({idx:e,attrs:l})}}return t.length<3?[]:t}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let n=t.length;if(n){const r=this.treeAdapter.getAttrList(e),i=r.length,o=Object.create(null);for(let e=0;e<i;e++){const t=r[e];o[t.name]=t.value}for(let e=0;e<i;e++)for(let r=0;r<n;r++){const i=t[r].attrs[e];if(o[i.name]!==i.value&&(t.splice(r,1),n--),t.length<3)return}for(let e=n-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:r.MARKER_ENTRY}),this.length++}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:r.ELEMENT_ENTRY,element:e,token:t}),this.length++}insertElementAfterBookmark(e,t){let n=this.length-1;for(;n>=0&&this.entries[n]!==this.bookmark;n--);this.entries.splice(n+1,0,{type:r.ELEMENT_ENTRY,element:e,token:t}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===r.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let t=this.length-1;t>=0;t--){const n=this.entries[t];if(n.type===r.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(n.element)===e)return n}return null}getElementEntry(e){for(let t=this.length-1;t>=0;t--){const n=this.entries[t];if(n.type===r.ELEMENT_ENTRY&&n.element===e)return n}return null}}r.MARKER_ENTRY="MARKER_ENTRY",r.ELEMENT_ENTRY="ELEMENT_ENTRY",e.exports=r},function(e,t,n){"use strict";const r=n(125),i=n(289),o=n(636),a=n(1395),s=n(197).TAG_NAMES;e.exports=class extends r{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){const n=this.treeAdapter.getNodeSourceCodeLocation(e);if(n&&t.location){const r=t.location,o=this.treeAdapter.getTagName(e);t.type===i.END_TAG_TOKEN&&o===t.tagName?(n.endTag=Object.assign({},r),n.endLine=r.endLine,n.endCol=r.endCol,n.endOffset=r.endOffset):(n.endLine=r.startLine,n.endCol=r.startCol,n.endOffset=r.startOffset)}}_getOverriddenMethods(e,t){return{_bootstrap(n,i){t._bootstrap.call(this,n,i),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const s=r.install(this.tokenizer,o);e.posTracker=s.posTracker,r.install(this.openElements,a,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(n){t._runParsingLoop.call(this,n);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken(n){e.currentToken=n,t._processToken.call(this,n);if(n.type===i.END_TAG_TOKEN&&(n.tagName===s.HTML||n.tagName===s.BODY&&this.openElements.hasInScope(s.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];if(this.treeAdapter.getTagName(r)===n.tagName){e._setEndLocation(r,n);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const n=this.treeAdapter.getChildNodes(this.document),r=n.length;for(let t=0;t<r;t++){const r=n[t];if(this.treeAdapter.isDocumentTypeNode(r)){this.treeAdapter.setNodeSourceCodeLocation(r,e.location);break}}},_attachElementToTree(n){e._setStartLocation(n),e.lastStartTagToken=null,t._attachElementToTree.call(this,n)},_appendElement(n,r){e.lastStartTagToken=n,t._appendElement.call(this,n,r)},_insertElement(n,r){e.lastStartTagToken=n,t._insertElement.call(this,n,r)},_insertTemplate(n){e.lastStartTagToken=n,t._insertTemplate.call(this,n);const r=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(r,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,n){t._appendCommentNode.call(this,e,n);const r=this.treeAdapter.getChildNodes(n),i=r[r.length-1];this.treeAdapter.setNodeSourceCodeLocation(i,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(n){t._insertCharacters.call(this,n);const r=this._shouldFosterParentOnInsertion(),i=r&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,o=this.treeAdapter.getChildNodes(i),a=r&&e.lastFosterParentingLocation.beforeElement?o.indexOf(e.lastFosterParentingLocation.beforeElement)-1:o.length-1,s=o[a],l=this.treeAdapter.getNodeSourceCodeLocation(s);l?(l.endLine=n.location.endLine,l.endCol=n.location.endCol,l.endOffset=n.location.endOffset):this.treeAdapter.setNodeSourceCodeLocation(s,n.location)}}}}},function(e,t,n){"use strict";const r=n(125);e.exports=class extends r{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(n){e.onItemPop(this.current),t.remove.call(this,n)}}}}},function(e,t,n){"use strict";const r=n(394),i=n(1397),o=n(636),a=n(125);e.exports=class extends r{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),a.install(this.tokenizer,i,e.opts),a.install(this.tokenizer,o)},_processInputToken(n){e.ctLoc=n.location,t._processInputToken.call(this,n)},_err(t,n){e.locBeforeToken=n&&n.beforeToken,e._reportError(t)}}}}},function(e,t,n){"use strict";const r=n(394),i=n(1398),o=n(125);e.exports=class extends r{constructor(e,t){super(e,t);const n=o.install(e.preprocessor,i,t);this.posTracker=n.posTracker}}},function(e,t,n){"use strict";const r=n(394),i=n(637),o=n(125);e.exports=class extends r{constructor(e,t){super(e,t),this.posTracker=o.install(e,i),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}}},function(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(197);t.createDocument=function(){return{nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const i=function(e){return{nodeName:"#text",value:e,parentNode:null}},o=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},a=t.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,r){let i=null;for(let t=0;t<e.childNodes.length;t++)if("#documentType"===e.childNodes[t].nodeName){i=e.childNodes[t];break}i?(i.name=t,i.publicId=n,i.systemId=r):o(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})},t.setDocumentMode=function(e,t){e.mode=t},t.getDocumentMode=function(e){return e.mode},t.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},t.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if("#text"===n.nodeName)return void(n.value+=t)}o(e,i(t))},t.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&"#text"===r.nodeName?r.value+=t:a(e,i(t),n)},t.adoptAttributes=function(e,t){const n=[];for(let t=0;t<e.attrs.length;t++)n.push(e.attrs[t].name);for(let r=0;r<t.length;r++)-1===n.indexOf(t[r].name)&&e.attrs.push(t[r])},t.getFirstChild=function(e){return e.childNodes[0]},t.getChildNodes=function(e){return e.childNodes},t.getParentNode=function(e){return e.parentNode},t.getAttrList=function(e){return e.attrs},t.getTagName=function(e){return e.tagName},t.getNamespaceURI=function(e){return e.namespaceURI},t.getTextNodeContent=function(e){return e.value},t.getCommentNodeContent=function(e){return e.data},t.getDocumentTypeNodeName=function(e){return e.name},t.getDocumentTypeNodePublicId=function(e){return e.publicId},t.getDocumentTypeNodeSystemId=function(e){return e.systemId},t.isTextNode=function(e){return"#text"===e.nodeName},t.isCommentNode=function(e){return"#comment"===e.nodeName},t.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},t.isElementNode=function(e){return!!e.tagName},t.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},t.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation}},function(e,t,n){"use strict";e.exports=function(e,t){return[e,t=t||Object.create(null)].reduce((e,t)=>(Object.keys(t).forEach(n=>{e[n]=t[n]}),e),Object.create(null))}},function(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(197),i=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],o=i.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),a=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],s=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],l=s.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function u(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function c(e,t){for(let n=0;n<t.length;n++)if(0===e.indexOf(t[n]))return!0;return!1}t.isConforming=function(e){return"html"===e.name&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},t.getDocumentMode=function(e){if("html"!==e.name)return r.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return r.QUIRKS;let n=e.publicId;if(null!==n){if(n=n.toLowerCase(),a.indexOf(n)>-1)return r.QUIRKS;let e=null===t?o:i;if(c(n,e))return r.QUIRKS;if(e=null===t?s:l,c(n,e))return r.LIMITED_QUIRKS}return r.NO_QUIRKS},t.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+u(t):n&&(r+=" SYSTEM"),null!==n&&(r+=" "+u(n)),r}},function(e,t,n){"use strict";const r=n(289),i=n(197),o=i.TAG_NAMES,a=i.NAMESPACES,s=i.ATTRS,l="text/html",u="application/xhtml+xml",c={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"},d={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:a.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:a.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:a.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:a.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:a.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:a.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:a.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:a.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:a.XML},"xml:space":{prefix:"xml",name:"space",namespace:a.XML},xmlns:{prefix:"",name:"xmlns",namespace:a.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:a.XMLNS}},f=t.SVG_TAG_NAMES_ADJUSTMENT_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",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"},p={[o.B]:!0,[o.BIG]:!0,[o.BLOCKQUOTE]:!0,[o.BODY]:!0,[o.BR]:!0,[o.CENTER]:!0,[o.CODE]:!0,[o.DD]:!0,[o.DIV]:!0,[o.DL]:!0,[o.DT]:!0,[o.EM]:!0,[o.EMBED]:!0,[o.H1]:!0,[o.H2]:!0,[o.H3]:!0,[o.H4]:!0,[o.H5]:!0,[o.H6]:!0,[o.HEAD]:!0,[o.HR]:!0,[o.I]:!0,[o.IMG]:!0,[o.LI]:!0,[o.LISTING]:!0,[o.MENU]:!0,[o.META]:!0,[o.NOBR]:!0,[o.OL]:!0,[o.P]:!0,[o.PRE]:!0,[o.RUBY]:!0,[o.S]:!0,[o.SMALL]:!0,[o.SPAN]:!0,[o.STRONG]:!0,[o.STRIKE]:!0,[o.SUB]:!0,[o.SUP]:!0,[o.TABLE]:!0,[o.TT]:!0,[o.U]:!0,[o.UL]:!0,[o.VAR]:!0};t.causesExit=function(e){const t=e.tagName;return!!(t===o.FONT&&(null!==r.getTokenAttr(e,s.COLOR)||null!==r.getTokenAttr(e,s.SIZE)||null!==r.getTokenAttr(e,s.FACE)))||p[t]},t.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},t.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=c[e.attrs[t].name];n&&(e.attrs[t].name=n)}},t.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=d[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}},t.adjustTokenSVGTagName=function(e){const t=f[e.tagName];t&&(e.tagName=t)},t.isIntegrationPoint=function(e,t,n,r){return!(r&&r!==a.HTML||!function(e,t,n){if(t===a.MATHML&&e===o.ANNOTATION_XML)for(let e=0;e<n.length;e++)if(n[e].name===s.ENCODING){const t=n[e].value.toLowerCase();return t===l||t===u}return t===a.SVG&&(e===o.FOREIGN_OBJECT||e===o.DESC||e===o.TITLE)}(e,t,n))||!(r&&r!==a.MATHML||!function(e,t){return t===a.MATHML&&(e===o.MI||e===o.MO||e===o.MN||e===o.MS||e===o.MTEXT)}(e,t))}},function(e){e.exports=JSON.parse('{"abandonedHeadElementChild":{"reason":"Unexpected metadata element after head","description":"Unexpected element after head. Expected the element before `</head>`","url":false},"abruptClosingOfEmptyComment":{"reason":"Unexpected abruptly closed empty comment","description":"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},"abruptDoctypePublicIdentifier":{"reason":"Unexpected abruptly closed public identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the public identifier"},"abruptDoctypeSystemIdentifier":{"reason":"Unexpected abruptly closed system identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the identifier identifier"},"absenceOfDigitsInNumericCharacterReference":{"reason":"Unexpected non-digit at start of numeric character reference","description":"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},"cdataInHtmlContent":{"reason":"Unexpected CDATA section in HTML","description":"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},"characterReferenceOutsideUnicodeRange":{"reason":"Unexpected too big numeric character reference","description":"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},"closingOfElementWithOpenChildElements":{"reason":"Unexpected closing tag with open child elements","description":"Unexpectedly closing tag. Expected other tags to be closed first","url":false},"controlCharacterInInputStream":{"reason":"Unexpected control character","description":"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},"controlCharacterReference":{"reason":"Unexpected control character reference","description":"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},"disallowedContentInNoscriptInHead":{"reason":"Disallowed content inside `<noscript>` in `<head>`","description":"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`","url":false},"duplicateAttribute":{"reason":"Unexpected duplicate attribute","description":"Unexpectedly double attribute. Expected attributes to occur only once"},"endTagWithAttributes":{"reason":"Unexpected attribute on closing tag","description":"Unexpected attribute. Expected `>` instead"},"endTagWithTrailingSolidus":{"reason":"Unexpected slash at end of closing tag","description":"Unexpected `%c-1`. Expected `>` instead"},"endTagWithoutMatchingOpenElement":{"reason":"Unexpected unopened end tag","description":"Unexpected end tag. Expected no end tag or another end tag","url":false},"eofBeforeTagName":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected tag name instead"},"eofInCdata":{"reason":"Unexpected end of file in CDATA","description":"Unexpected end of file. Expected `]]>` to close the CDATA"},"eofInComment":{"reason":"Unexpected end of file in comment","description":"Unexpected end of file. Expected `--\x3e` to close the comment"},"eofInDoctype":{"reason":"Unexpected end of file in doctype","description":"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},"eofInElementThatCanContainOnlyText":{"reason":"Unexpected end of file in element that can only contain text","description":"Unexpected end of file. Expected text or a closing tag","url":false},"eofInScriptHtmlCommentLikeText":{"reason":"Unexpected end of file in comment inside script","description":"Unexpected end of file. Expected `--\x3e` to close the comment"},"eofInTag":{"reason":"Unexpected end of file in tag","description":"Unexpected end of file. Expected `>` to close the tag"},"incorrectlyClosedComment":{"reason":"Incorrectly closed comment","description":"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},"incorrectlyOpenedComment":{"reason":"Incorrectly opened comment","description":"Unexpected `%c`. Expected `\x3c!--` to open the comment"},"invalidCharacterSequenceAfterDoctypeName":{"reason":"Invalid sequence after doctype name","description":"Unexpected sequence at `%c`. Expected `public` or `system`"},"invalidFirstCharacterOfTagName":{"reason":"Invalid first character in tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"misplacedDoctype":{"reason":"Misplaced doctype","description":"Unexpected doctype. Expected doctype before head","url":false},"misplacedStartTagForHeadElement":{"reason":"Misplaced `<head>` start tag","description":"Unexpected start tag `<head>`. Expected `<head>` directly after doctype","url":false},"missingAttributeValue":{"reason":"Missing attribute value","description":"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},"missingDoctype":{"reason":"Missing doctype before other content","description":"Expected a `<!doctype html>` before anything else","url":false},"missingDoctypeName":{"reason":"Missing doctype name","description":"Unexpected doctype end at `%c`. Expected `html` instead"},"missingDoctypePublicIdentifier":{"reason":"Missing public identifier in doctype","description":"Unexpected `%c`. Expected identifier for `public` instead"},"missingDoctypeSystemIdentifier":{"reason":"Missing system identifier in doctype","description":"Unexpected `%c`. Expected identifier for `system` instead (suggested: `\\"about:legacy-compat\\"`)"},"missingEndTagName":{"reason":"Missing name in end tag","description":"Unexpected `%c`. Expected an ASCII letter instead"},"missingQuoteBeforeDoctypePublicIdentifier":{"reason":"Missing quote before public identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingQuoteBeforeDoctypeSystemIdentifier":{"reason":"Missing quote before system identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingSemicolonAfterCharacterReference":{"reason":"Missing semicolon after character reference","description":"Unexpected `%c`. Expected `;` instead"},"missingWhitespaceAfterDoctypePublicKeyword":{"reason":"Missing whitespace after public identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceAfterDoctypeSystemKeyword":{"reason":"Missing whitespace after system identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBeforeDoctypeName":{"reason":"Missing whitespace before doctype name","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenAttributes":{"reason":"Missing whitespace between attributes","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers":{"reason":"Missing whitespace between public and system identifiers in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"nestedComment":{"reason":"Unexpected nested comment","description":"Unexpected `\x3c!--`. Expected `--\x3e`"},"nestedNoscriptInHead":{"reason":"Unexpected nested `<noscript>` in `<head>`","description":"Unexpected `<noscript>`. Expected a closing tag or a meta element","url":false},"nonConformingDoctype":{"reason":"Unexpected non-conforming doctype declaration","description":"Expected `<!doctype html>` or `<!doctype html system \\"about:legacy-compat\\">`","url":false},"nonVoidHtmlElementStartTagWithTrailingSolidus":{"reason":"Unexpected trailing slash on start tag of non-void element","description":"Unexpected `/`. Expected `>` instead"},"noncharacterCharacterReference":{"reason":"Unexpected noncharacter code point referenced by character reference","description":"Unexpected code point. Do not use noncharacters in HTML"},"noncharacterInInputStream":{"reason":"Unexpected noncharacter character","description":"Unexpected code point `%x`. Do not use noncharacters in HTML"},"nullCharacterReference":{"reason":"Unexpected NULL character referenced by character reference","description":"Unexpected code point. Do not use NULL characters in HTML"},"openElementsLeftAfterEof":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected closing tag instead","url":false},"surrogateCharacterReference":{"reason":"Unexpected surrogate character referenced by character reference","description":"Unexpected code point. Do not use lone surrogate characters in HTML"},"surrogateInInputStream":{"reason":"Unexpected surrogate character","description":"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},"unexpectedCharacterAfterDoctypeSystemIdentifier":{"reason":"Invalid character after system identifier in doctype","description":"Unexpected character at `%c`. Expected `>`"},"unexpectedCharacterInAttributeName":{"reason":"Unexpected character in attribute name","description":"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},"unexpectedCharacterInUnquotedAttributeValue":{"reason":"Unexpected character in unquoted attribute value","description":"Unexpected `%c`. Quote the attribute value to include it"},"unexpectedEqualsSignBeforeAttributeName":{"reason":"Unexpected equals sign before attribute name ","description":"Unexpected `%c`. Add an attribute name before it"},"unexpectedNullCharacter":{"reason":"Unexpected NULL character","description":"Unexpected code point `%x`. Do not use NULL characters in HTML"},"unexpectedQuestionMarkInsteadOfTagName":{"reason":"Unexpected question mark instead of tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"unexpectedSolidusInTag":{"reason":"Unexpected slash in tag","description":"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},"unknownNamedCharacterReference":{"reason":"Unexpected unknown named character reference","description":"Unexpected character reference. Expected known named character references"}}')},function(e,t,n){"use strict";var r=n(1405);e.exports=function(e,t){var n;e&&!e.process&&(n=e,e=null);void 0!==(n=n||t||{}).document&&null!==n.document||(n.document=!0);return e?function(e,t){return function(n,i,o){e.run(r(n,t),i,(function(e){o(e)}))}}(e,n):function(e){return function(t){return r(t,e)}}(n)}},function(e,t,n){"use strict";e.exports=function(e,t){var n=t||{},l={};return u.nodeById=l,u.baseFound=!1,u.frozenBaseUrl=null,u.wrapText=!0,u.qNesting=0,u.handlers=o(s,n.handlers||{}),u.augment=c,u.document=n.document,u.checked=n.checked||"[x]",u.unchecked=n.unchecked||"[ ]",u.quotes=n.quotes||['"'],i(e,(function(e){var t=(e.properties||{}).id;t&&!(t in e)&&(l[t]=e)})),r({newlines:!0===n.newlines})(e),a(u,e,null);function u(e,t,n,r){var i;return!r&&("string"==typeof n||"object"==typeof n&&"length"in n)&&(r=n,n={}),i=o({type:t},n),"string"==typeof r?i.value=r:r&&(i.children=r),c(e,i)}function c(e,t){return e.position&&(t.position=e.position),t}};var r=n(1406),i=n(395),o=n(53),a=n(638),s=n(1413)},function(e,t,n){"use strict";var r=n(384),i=n(106),o=n(1407),a=n(172),s=n(390),l=n(1408),u=n(1409),c=n(1410);e.exports=function(e){var t=(e||{}).newlines?k:r;return function(e){g(e,{collapse:t,whitespace:"normal"})}};var d=a(["doctype","comment"]),f=a(["element","root"]),p=a(["root"]),h=a(["element"]),m=a(["text"]);function g(e,t){var n;if(f(e))return n=Object.assign({},t),(p(e)||_(e))&&(n.before=!0,n.after=!0),n.whitespace=function(e,t){var n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap";default:return t.whitespace}}(e,t),function(e,t){var n,r=t.before,i=t.after,o=e.children,a=o.length,s=-1;for(;++s<a;)(n=g(o[s],Object.assign({},t,{before:r,after:v(o,s,i)}))).remove?(o.splice(s,1),s--,a--):n.ignore||(r=n.stripAtStart),b(o[s])&&(r=!1);return{remove:!1,ignore:!1,stripAtStart:r||i}}(e,n);if(m(e)){if("normal"===t.whitespace)return function(e,t){var n=t.collapse(e.value),r=0,i=n.length,o={remove:!1,ignore:!1,stripAtStart:!1};t.before&&x(n.charAt(0))&&r++;r!==i&&x(n.charAt(i-1))&&(t.after?i--:o.stripAtStart=!0);r===i?o.remove=!0:e.value=n.slice(r,i);return o}(e,t);"nowrap"===t.whitespace&&(e.value=t.collapse(e.value))}return{remove:!1,ignore:d(e),stripAtStart:!1}}function v(e,t,n){for(var r,i,o=e.length;++t<o;)if(void 0===(i=y(r=e[t]))&&r.children&&!w(r)&&(i=v(r.children,-1)),"boolean"==typeof i)return i;return n}function y(e){if(h(e)){if(b(e))return!1;if(_(e))return!0}else if(m(e)){if(!s(e))return!1}else if(!d(e))return!1}function b(e){return o(e)||i(e,u)}function _(e){return i(e,l)}function w(e){var t=e.properties||{};return d(e)||i(e,c)||t.hidden}function x(e){return" "===e||"\n"===e}function k(e){return String(e).replace(/\s+/g,(function(e){return-1===e.indexOf("\n")?" ":"\n"}))}},function(e,t,n){"use strict";var r=n(106);e.exports=function(e){return r(e,i)};var i=["audio","canvas","embed","iframe","img","math","object","picture","svg","video"]},function(e,t){e.exports=["br","wbr","li","table","caption","colgroup","col","thead","tbody","tfoot","tr","td","th","summary","optgroup","option","html","head","body","address","blockquote","center","dialog","div","figure","figcaption","footer","form","header","hr","legend","listing","main","p","plaintext","pre","xmp","article","aside","h1","h2","h3","h4","h5","h6","hgroup","nav","section","dir","dd","dl","dt","menu","ol","ul","li","th","td"]},function(e,t){e.exports=["button","input","select","textarea"]},function(e,t){e.exports=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"]},function(e,t,n){"use strict";e.exports=o;var r=n(172),i=n(1412);function o(e,t,n,o){var c;function d(e,r,s){var f,p=u(e)?e:{};return l(p.type)&&(f=l(p.tagName)?p.tagName:l(p.name)?p.name:void 0,h.displayName="node ("+i(p.type+(f?"<"+f+">":""))+")"),h;function h(){var i,l=[];return(t&&!c(e,r,s[s.length-1]||null)||!1!==(l=a(n(e,s)))[0])&&e.children&&"skip"!==l[0]&&!1===(i=a(function(e,t){var n,r,i=o?-1:1,a=(o?e.length:-1)+i;for(;a>-1&&a<e.length;){if(n=e[a],!1===(r=d(n,a,t)())[0])return r;a="number"==typeof r[1]?r[1]:a+i}}(e.children,s.concat(e))))[0]?i:l}}s(t)&&!s(n)&&(o=n,n=t,t=null),c=r(t),d(e,null,[])()}function a(e){return u(e)&&"length"in e?e:"number"==typeof e?[!0,e]:[e]}function s(e){return"function"==typeof e}function l(e){return"string"==typeof e}function u(e){return"object"==typeof e&&null!==e}o.CONTINUE=!0,o.SKIP="skip",o.EXIT=!1},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";var r=n(71),i=n(396),o=n(1415),a=n(1416),s=n(1417),l=n(1418),u=n(1419),c=n(1421),d=n(1422),f=n(1423),p=n(1424),h=n(1425),m=n(1426),g=n(1427),v=n(1428),y=n(1429),b=n(1430),_=n(1431),w=n(1432),x=n(1433),k=n(1434),E=n(1435),S=n(1436),O=n(1437),T=n(1438),C=n(1439),A=n(1440),P=n(1441),R=n(1442),M=n(1443),I=n(1444);function j(){}t.root=S,t.text=P,t.comment=c,t.doctype=j,t.applet=j,t.area=j,t.basefont=j,t.bgsound=j,t.caption=j,t.col=j,t.colgroup=j,t.command=j,t.content=j,t.datalist=j,t.dialog=j,t.element=j,t.embed=j,t.frame=j,t.frameset=j,t.isindex=j,t.keygen=j,t.link=j,t.math=j,t.menu=j,t.menuitem=j,t.meta=j,t.nextid=j,t.noembed=j,t.noframes=j,t.optgroup=j,t.option=j,t.param=j,t.script=j,t.shadow=j,t.source=j,t.spacer=j,t.style=j,t.svg=j,t.template=j,t.title=j,t.track=j,t.abbr=r,t.acronym=r,t.bdi=r,t.bdo=r,t.big=r,t.blink=r,t.button=r,t.canvas=r,t.cite=r,t.data=r,t.details=r,t.dfn=r,t.font=r,t.ins=r,t.label=r,t.map=r,t.marquee=r,t.meter=r,t.nobr=r,t.noscript=r,t.object=r,t.output=r,t.progress=r,t.rb=r,t.rbc=r,t.rp=r,t.rt=r,t.rtc=r,t.ruby=r,t.slot=r,t.small=r,t.span=r,t.sup=r,t.sub=r,t.tbody=r,t.tfoot=r,t.thead=r,t.time=r,t.address=i,t.article=i,t.aside=i,t.body=i,t.center=i,t.div=i,t.fieldset=i,t.figcaption=i,t.figure=i,t.form=i,t.footer=i,t.header=i,t.hgroup=i,t.html=i,t.legend=i,t.main=i,t.multicol=i,t.nav=i,t.picture=i,t.section=i,t.a=b,t.audio=x,t.b=C,t.base=o,t.blockquote=a,t.br=s,t.code=v,t.dir=_,t.dl=d,t.dt=w,t.dd=w,t.del=f,t.em=p,t.h1=h,t.h2=h,t.h3=h,t.h4=h,t.h5=h,t.h6=h,t.hr=M,t.i=p,t.iframe=m,t.img=g,t.image=g,t.input=y,t.kbd=v,t.li=w,t.listing=u,t.mark=p,t.ol=_,t.p=k,t.plaintext=u,t.pre=u,t.q=E,t.s=f,t.samp=v,t.select=T,t.strike=f,t.strong=C,t.summary=k,t.table=A,t.td=l,t.textarea=R,t.th=l,t.tr=O,t.tt=v,t.u=p,t.ul=_,t.var=v,t.video=x,t.wbr=I,t.xmp=u},function(e,t,n){"use strict";var r=n(172)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);r.displayName="isPhrasing",e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){e.baseFound||(e.frozenBaseUrl=t.properties.href||null,e.baseFound=!0)}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"blockquote",r(e,t))};var r=n(396)},function(e,t,n){"use strict";e.exports=function(e,t){return e.wrapText?e(t,"break"):e(t,"text"," ")}},function(e,t,n){"use strict";e.exports=function(e,t){var n,i=e.wrapText;return e.wrapText=!1,n=e(t,"tableCell",r(e,t)),e.wrapText=i,n};var r=n(71)},function(e,t,n){"use strict";e.exports=function(e,t){var n,l,u,c,d=t.children,f=d.length,p=-1;if("pre"===t.tagName)for(;++p<f;)if(n=d[p],r(n,"code")&&i(n,"className")){l=n.properties.className;break}if(l)for(f=l.length,p=-1;++p<f;)if("language-"===(u=l[p]).slice(0,"language-".length)){c=u.slice("language-".length);break}return e(t,"code",{lang:c||null,meta:null},a(s(e,o(t))))};var r=n(106),i=n(398),o=n(290),a=n(283),s=n(112)},function(e,t,n){"use strict";var r=n(172);e.exports=function(e,t,n){var i,o,a,s=r(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");i=e.children,a=i.length,t&&t.type&&(t=i.indexOf(t));if(isNaN(t)||t<0||t===1/0)throw new Error("Expected positive finite index or child node");for(;++t<a;)if(o=i[t],s(o,t,e))return o;return null}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"html","\x3c!--"+r(e,t.value)+"--\x3e")};var r=n(112)},function(e,t,n){"use strict";e.exports=function(e,t){var n,i,s,l,u=t.children,c=u.length,d=-1,f=[],p=[],h={titles:[],definitions:[]};for(;++d<c;)l=u[d],f=f.concat(r(l,"div")?l.children:l);c=f.length,d=-1;for(;++d<c;)l=f[d],(s=r(l,"dt"))&&i&&(p.push(h),h={titles:[],definitions:[]}),h[s?"titles":"definitions"].push(l),i=r(l,"dd");p.push(h),c=p.length,d=-1,n=[];for(;++d<c;)h=p[d],0!==(h=a(e,h.titles).concat(a(e,h.definitions))).length&&n.push({type:"listItem",spread:h.length>1,checked:null,children:h});if(0!==n.length)return e(t,"list",{ordered:!1,start:null,spread:o(n)},n)};var r=n(106),i=n(639),o=n(640);function a(e,t){var n=i(e,{children:t});return 0===n.length?[]:1===n.length?n[0].children:[{type:"list",ordered:!1,start:null,spread:o(n),children:n}]}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"delete",r(e,t))};var r=n(71)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"emphasis",r(e,t))};var r=n(71)},function(e,t,n){"use strict";e.exports=function(e,t){var n,i=Number(t.tagName.charAt(1)),o=e.wrapText;return i=i||1,e.wrapText=!1,n=e(t,"heading",{depth:i},r(e,t)),e.wrapText=o,n};var r=n(71)},function(e,t,n){"use strict";e.exports=function(e,t){var n=t.properties.src,o=t.properties.title;if(n&&o)return{type:"link",title:null,url:r(e,n),children:[{type:"text",value:i(e,o)}]}};var r=n(231),i=n(112)},function(e,t,n){"use strict";e.exports=function(e,t){var n={url:r(e,t.properties.src),title:t.properties.title||null,alt:t.properties.alt||null};return e(t,"image",n)};var r=n(231)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"inlineCode",i(e,r(t)))};var r=n(290),i=n(112)},function(e,t,n){"use strict";var r=n(83),i=n(106),o=n(231),a=n(641),s=n(112);e.exports=function(e,t){var n,l,u,c,d,f=e.nodeById,p=t.properties,h=p.value||p.placeholder,m=p.list,g=p.type,v=[];if(p.disabled||"hidden"===p.type||"file"===p.type)return;if("checkbox"===g||"radio"===g)return{type:"text",value:s(e,e[p.checked?"checked":"unchecked"])};"image"===g&&p.alt?v=[[p.alt]]:h?v=[[h]]:m&&"password"!==g&&"file"!==g&&"submit"!==g&&"reset"!==g&&"button"!==g&&m in f&&i(f[m],"datalist")&&(v=a(e,f[m],p));if(0===v.length)return;"password"===g&&(v[0]=[r("•",v[0][0].length)]);if("image"===g)return e(t,"image",{url:o(e,p.src),title:p.title&&s(e,p.title)||null,alt:s(e,v[0][0])});if(n=v.length,l=-1,u=[],"url"!==g&&"email"!==g){for(;++l<n;)h=v[l],u.push(h[1]?h[1]+" ("+h[0]+")":h[0]);return e(t,"text",s(e,u.join(", ")))}for(;++l<n;)h=v[l],d=o(e,h[0]),c="email"===g?"mailto:"+d:d,u.push(e(t,"link",{title:null,url:s(e,c)},[{type:"text",value:s(e,h[1]||d)}])),l!==n-1&&u.push({type:"text",value:", "});return u}},function(e,t,n){"use strict";e.exports=function(e,t){var n={title:t.properties.title||null,url:i(e,t.properties.href)};return e(t,"link",n,r(e,t))};var r=n(71),i=n(231)},function(e,t,n){"use strict";e.exports=function(e,t){var n,a="ol"===t.tagName,s=null;a&&(s=r(t,"start")?t.properties.start:1);return n=i(e,t),e(t,"list",{ordered:a,start:s,spread:o(n)},n)};var r=n(398),i=n(639),o=n(640)},function(e,t,n){"use strict";e.exports=function(e,t){var n,o,a,s=t.children[0],l=null;s&&r(s,"p")&&(o=s.children,(n=o[0])&&r(n,"input")&&("checkbox"===n.properties.type||"radio"===n.properties.type)&&(l=Boolean(n.properties.checked)));a=i(e,t),null!==l&&(o=a[0]&&a[0].children,!(s=o&&o[0])||"text"!==s.type||s.value!==e.checked&&s.value!==e.unchecked||o.shift(),(s=o&&o[0])&&"text"===s.type&&" "===s.value.charAt(0)&&(1===s.value.length?a[0].children=o.slice(1):s.value=s.value.slice(1)));return e(t,"listItem",{spread:a.length>1,checked:l},a)};var r=n(106),i=n(396)},function(e,t,n){"use strict";e.exports=function(e,t){var n,u=a(e,t),c=t.properties.title,d=i(t,"video")?t.properties.poster:null,f=t.properties.src,p=t.children,h=p.length,m=-1,g=!1;for(;!f&&++m<h;)n=p[m],i(n,"source")&&(f=n.properties.src);if(r({type:"root",children:u},"link",(function(){return g=!0,r.EXIT})),g||l(u))return u;d&&(u=[{type:"image",title:null,url:s(e,d),alt:o({children:u})}]);return{type:"link",title:c||null,url:s(e,f),children:u}};var r=n(395),i=n(106),o=n(291),a=n(71),s=n(231),l=n(397).needed},function(e,t,n){"use strict";e.exports=function(e,t){var n=t.children,i=r(e,t);if(n&&0!==n.length&&0===i.length)return;return e(t,"paragraph",i)};var r=n(71)},function(e,t,n){"use strict";e.exports=function(e,t){var n,i,o,a=e.quotes[e.qNesting%e.quotes.length],s=1===a.length?a:a.charAt(0),l=1===a.length?a:a.charAt(1);e.qNesting++,n=r(e,t),e.qNesting--,i=n[0],o=n[n.length-1],i&&"text"===i.type?i.value=s+i.value:n.unshift({type:"text",value:s});o&&"text"===o.type?o.value+=l:n.push({type:"text",value:l});return n};var r=n(71)},function(e,t,n){"use strict";e.exports=function(e,t){var n=r(e,t);(e.document||i.needed(n))&&(n=i(n));return e(t,"root",n)};var r=n(71),i=n(397)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"tableRow",r(e,t))};var r=n(71)},function(e,t,n){"use strict";var r=n(641),i=n(112);e.exports=function(e,t){var n,o=r(e,t),a=o.length,s=-1,l=[];for(;++s<a;)n=o[s],l.push(n[1]?n[1]+" ("+n[0]+")":n[0]);if(0!==l.length)return e(t,"text",i(e,l.join(", ")))}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"strong",r(e,t))};var r=n(71)},function(e,t,n){"use strict";e.exports=function(e,t){var n=function(e){var t=!0,n=[],r=0,o=0;return i(e,"element",(function(e){var i=e.tagName;"thead"===i?t=!1:"tr"===i?(r++,o=0):"th"!==i&&"td"!==i||(n[o]||(n[o]=e.properties.align||null),t&&r<2&&"th"===e.tagName&&(t=!1),o++)})),{align:n,headless:t}}(t);return e(t,"table",{align:n.align},function(e,t){var n,i,o=[],l=e.length,u=-1;t.headless&&d(a([]));for(;++u<l;)"tableRow"===(n=e[u]).type?(c(),d(n)):i=(i||[]).concat(n);return c(),o;function c(){i&&(d(a(i)),i=void 0)}function d(e){o.push(function(e,t){var n,i,o=t.align.length,a=[],l=e.children,u=l.length,c=-1;for(;++c<u;)"tableCell"===(n=l[c]).type?(d(),a.push(n)):i=(i||[]).concat(n);d(),c=a.length,u=o+1;for(;++c<u;)a.push(s([]));return r(e,{children:a});function d(){i&&(a.push(s(i)),i=void 0)}}(e,t))}}(o(e,t),n))};var r=n(53),i=n(395),o=n(71);function a(e){return{type:"tableRow",children:e}}function s(e){return{type:"tableCell",children:e}}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"text",r(e,t.value))};var r=n(112)},function(e,t,n){"use strict";var r=n(290),i=n(112);e.exports=function(e,t){return e(t,"text",i(e,r(t)))}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"thematicBreak")}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"text","​")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({plugins:e,getAsset:t,resolveWidget:n}){return function(e){const t=(0,i.default)(e.children,l);return c(c({},e),{},{children:t})};function l(i){if(!(0,r.default)(i,["data","shortcode"]))return i;const{shortcode:l,shortcodeData:u}=i.data,d=function(e,r){const{toPreview:i,widget:a,fields:s}=e;if(i)return i(r,t,s);const l=n(a);return o.default.createElement(l.preview,{value:r,field:e,getAsset:t})}(e.get(l),u),f="string"==typeof d?d:(0,a.renderToString)(d),p=[(0,s.default)("html",f)];return c(c({},i),{},{children:p})}};var r=l(n(642)),i=l(n(161)),o=l(n(1)),a=n(1447),s=l(n(60));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t,n){"use strict";e.exports=n(1448)},function(e,t,n){"use strict";
+/** @license React v16.13.1
+ * react-dom-server.browser.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var r=n(179),i=n(1);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a="function"==typeof Symbol&&Symbol.for,s=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,u=a?Symbol.for("react.strict_mode"):60108,c=a?Symbol.for("react.profiler"):60114,d=a?Symbol.for("react.provider"):60109,f=a?Symbol.for("react.context"):60110,p=a?Symbol.for("react.concurrent_mode"):60111,h=a?Symbol.for("react.forward_ref"):60112,m=a?Symbol.for("react.suspense"):60113,g=a?Symbol.for("react.suspense_list"):60120,v=a?Symbol.for("react.memo"):60115,y=a?Symbol.for("react.lazy"):60116,b=a?Symbol.for("react.block"):60121,_=a?Symbol.for("react.fundamental"):60117,w=a?Symbol.for("react.scope"):60119;function x(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case l:return"Fragment";case s:return"Portal";case c:return"Profiler";case u:return"StrictMode";case m:return"Suspense";case g:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case f:return"Context.Consumer";case d:return"Context.Provider";case h:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case v:return x(e.type);case b:return x(e.render);case y:if(e=1===e._status?e._result:null)return x(e)}return null}var k=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;k.hasOwnProperty("ReactCurrentDispatcher")||(k.ReactCurrentDispatcher={current:null}),k.hasOwnProperty("ReactCurrentBatchConfig")||(k.ReactCurrentBatchConfig={suspense:null});var E={};function S(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var O=new Uint16Array(16),T=0;15>T;T++)O[T]=T+1;O[15]=0;var C=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,A=Object.prototype.hasOwnProperty,P={},R={};function M(e){return!!A.call(R,e)||!A.call(P,e)&&(C.test(e)?R[e]=!0:(P[e]=!0,!1))}function I(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var j={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){j[e]=new I(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];j[t]=new I(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){j[e]=new I(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){j[e]=new I(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){j[e]=new I(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){j[e]=new I(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){j[e]=new I(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){j[e]=new I(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){j[e]=new I(e,5,!1,e.toLowerCase(),null,!1)}));var D=/[\-:]([a-z])/g;function L(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(D,L);j[t]=new I(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(D,L);j[t]=new I(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(D,L);j[t]=new I(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){j[e]=new I(e,1,!1,e.toLowerCase(),null,!1)})),j.xlinkHref=new I("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){j[e]=new I(e,1,!1,e.toLowerCase(),null,!0)}));var N=/["'&<>]/;function F(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=N.exec(e);if(t){var n,r="",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}i!==n&&(r+=e.substring(i,n)),i=n+1,r+=t}e=i!==n?r+e.substring(i,n):r}return e}function B(e,t){var n,r=j.hasOwnProperty(e)?j[e]:null;return(n="style"!==e)&&(n=null!==r?0===r.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),n||function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(e,t,r,!1)?"":null!==r?(e=r.attributeName,3===(n=r.type)||4===n&&!0===t?e+'=""':(r.sanitizeURL&&(t=""+t),e+'="'+F(t)+'"')):M(e)?e+'="'+F(t)+'"':""}var z="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},U=null,q=null,H=null,W=!1,V=!1,$=null,G=0;function K(){if(null===U)throw Error(o(321));return U}function Y(){if(0<G)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Q(){return null===H?null===q?(W=!1,q=H=Y()):(W=!0,H=q):null===H.next?(W=!1,H=H.next=Y()):(W=!0,H=H.next),H}function X(e,t,n,r){for(;V;)V=!1,G+=1,H=null,n=e(t,r);return q=U=null,G=0,H=$=null,n}function J(e,t){return"function"==typeof t?t(e):t}function Z(e,t,n){if(U=K(),H=Q(),W){var r=H.queue;if(t=r.dispatch,null!==$&&void 0!==(n=$.get(r))){$.delete(r),r=H.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return H.memoizedState=r,[r,t]}return[H.memoizedState,t]}return e=e===J?"function"==typeof t?t():t:void 0!==n?n(t):t,H.memoizedState=e,e=(e=H.queue={last:null,dispatch:null}).dispatch=ee.bind(null,U,e),[H.memoizedState,e]}function ee(e,t,n){if(!(25>G))throw Error(o(301));if(e===U)if(V=!0,e={action:n,next:null},null===$&&($=new Map),void 0===(n=$.get(t)))$.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function te(){}var ne=0,re={readContext:function(e){var t=ne;return S(e,t),e[t]},useContext:function(e){K();var t=ne;return S(e,t),e[t]},useMemo:function(e,t){if(U=K(),t=void 0===t?null:t,null!==(H=Q())){var n=H.memoizedState;if(null!==n&&null!==t){e:{var r=n[1];if(null===r)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!z(t[i],r[i])){r=!1;break e}r=!0}}if(r)return n[0]}}return e=e(),H.memoizedState=[e,t],e},useReducer:Z,useRef:function(e){U=K();var t=(H=Q()).memoizedState;return null===t?(e={current:e},H.memoizedState=e):t},useState:function(e){return Z(J,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:te,useEffect:te,useDebugValue:te,useResponder:function(e,t){return{props:t,responder:e}},useDeferredValue:function(e){return K(),e},useTransition:function(){return K(),[function(e){e()},!1]}},ie="http://www.w3.org/1999/xhtml";function oe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var ae={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},se=r({menuitem:!0},ae),le={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ue=["Webkit","ms","Moz","O"];Object.keys(le).forEach((function(e){ue.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),le[t]=le[e]}))}));var ce=/([A-Z])/g,de=/^ms-/,fe=i.Children.toArray,pe=k.ReactCurrentDispatcher,he={listing:!0,pre:!0,textarea:!0},me=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ge={},ve={};var ye=Object.prototype.hasOwnProperty,be={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function _e(e,t){if(void 0===e)throw Error(o(152,x(t)||"Component"))}function we(e,t,n){function a(i,a){var s=a.prototype&&a.prototype.isReactComponent,l=function(e,t,n,r){if(r&&("object"==typeof(r=e.contextType)&&null!==r))return S(r,n),r[n];if(e=e.contextTypes){for(var i in n={},e)n[i]=t[i];t=n}else t=E;return t}(a,t,n,s),u=[],c=!1,d={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===u)return null},enqueueReplaceState:function(e,t){c=!0,u=[t]},enqueueSetState:function(e,t){if(null===u)return null;u.push(t)}};if(s){if(s=new a(i.props,l,d),"function"==typeof a.getDerivedStateFromProps){var f=a.getDerivedStateFromProps.call(null,i.props,s.state);null!=f&&(s.state=r({},s.state,f))}}else if(U={},s=a(i.props,l,d),null==(s=X(a,i.props,s,l))||null==s.render)return void _e(e=s,a);if(s.props=i.props,s.context=l,s.updater=d,void 0===(d=s.state)&&(s.state=d=null),"function"==typeof s.UNSAFE_componentWillMount||"function"==typeof s.componentWillMount)if("function"==typeof s.componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),u.length){d=u;var p=c;if(u=null,c=!1,p&&1===d.length)s.state=d[0];else{f=p?d[0]:s.state;var h=!0;for(p=p?1:0;p<d.length;p++){var m=d[p];null!=(m="function"==typeof m?m.call(s,f,i.props,l):m)&&(h?(h=!1,f=r({},f,m)):r(f,m))}s.state=f}}else u=null;if(_e(e=s.render(),a),"function"==typeof s.getChildContext&&"object"==typeof(i=a.childContextTypes)){var g=s.getChildContext();for(var v in g)if(!(v in i))throw Error(o(108,x(a)||"Unknown",v))}g&&(t=r({},t,g))}for(;i.isValidElement(e);){var s=e,l=s.type;if("function"!=typeof l)break;a(s,l)}return{child:e,context:t}}var xe=function(){function e(e,t){i.isValidElement(e)?e.type!==l?e=[e]:(e=e.props.children,e=i.isValidElement(e)?[e]:fe(e)):e=fe(e),e={type:null,domNamespace:ie,children:e,childIndex:0,context:E,footer:""};var n=O[0];if(0===n){var r=O,a=2*(n=r.length);if(!(65536>=a))throw Error(o(304));var s=new Uint16Array(a);for(s.set(r),(O=s)[0]=n+1,r=n;r<a-1;r++)O[r]=r+1;O[a-1]=0}else O[0]=O[n];this.threadID=n,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[]}var t=e.prototype;return t.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var e=this.threadID;O[e]=O[0],O[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,r=this.threadID;S(n,r);var i=n[r];this.contextStack[t]=n,this.contextValueStack[t]=i,n[r]=e.props.value},t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},t.read=function(e){if(this.exhausted)return null;var t=ne;ne=this.threadID;var n=pe.current;pe.current=re;try{for(var r=[""],i=!1;r[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var a=this.threadID;O[a]=O[0],O[0]=a;break}var s=this.stack[this.stack.length-1];if(i||s.childIndex>=s.children.length){var l=s.footer;if(""!==l&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===d)this.popProvider(s.type);else if(s.type===m){this.suspenseDepth--;var u=r.pop();if(i){i=!1;var c=s.fallbackFrame;if(!c)throw Error(o(303));this.stack.push(c),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=u}r[this.suspenseDepth]+=l}else{var f=s.children[s.childIndex++],p="";try{p+=this.render(f,s.context,s.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw Error(o(294));throw e}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=p}}return r[0]}finally{pe.current=n,ne=t}},t.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?F(n):this.previousWasTextNode?"\x3c!-- --\x3e"+F(n):(this.previousWasTextNode=!0,F(n));if(e=(t=we(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!i.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===s)throw Error(o(257));throw Error(o(258,n.toString()))}return e=fe(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var a=e.type;if("string"==typeof a)return this.renderDOM(e,t,n);switch(a){case u:case p:case c:case g:case l:return e=fe(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case m:throw Error(o(294))}if("object"==typeof a&&null!==a)switch(a.$$typeof){case h:U={};var b=a.render(e.props,e.ref);return b=X(a.render,e.props,b,e.ref),b=fe(b),this.stack.push({type:null,domNamespace:n,children:b,childIndex:0,context:t,footer:""}),"";case v:return e=[i.createElement(a.type,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case d:return n={type:e,domNamespace:n,children:a=fe(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case f:a=e.type,b=e.props;var x=this.threadID;return S(a,x),a=fe(b.children(a[x])),this.stack.push({type:e,domNamespace:n,children:a,childIndex:0,context:t,footer:""}),"";case _:throw Error(o(338));case y:switch(function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(a=e.type),a._status){case 1:return e=[i.createElement(a._result,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw a._result;default:throw Error(o(295))}case w:throw Error(o(343))}throw Error(o(130,null==a?a:typeof a,""))},t.renderDOM=function(e,t,n){var a=e.type.toLowerCase();if(n===ie&&oe(a),!ge.hasOwnProperty(a)){if(!me.test(a))throw Error(o(65,a));ge[a]=!0}var s=e.props;if("input"===a)s=r({type:void 0},s,{defaultChecked:void 0,defaultValue:void 0,value:null!=s.value?s.value:s.defaultValue,checked:null!=s.checked?s.checked:s.defaultChecked});else if("textarea"===a){var l=s.value;if(null==l){l=s.defaultValue;var u=s.children;if(null!=u){if(null!=l)throw Error(o(92));if(Array.isArray(u)){if(!(1>=u.length))throw Error(o(93));u=u[0]}l=""+u}null==l&&(l="")}s=r({},s,{value:void 0,children:""+l})}else if("select"===a)this.currentSelectValue=null!=s.value?s.value:s.defaultValue,s=r({},s,{value:void 0});else if("option"===a){u=this.currentSelectValue;var c=function(e){if(null==e)return e;var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(s.children);if(null!=u){var d=null!=s.value?s.value+"":c;if(l=!1,Array.isArray(u)){for(var f=0;f<u.length;f++)if(""+u[f]===d){l=!0;break}}else l=""+u===d;s=r({selected:void 0,children:void 0},s,{selected:l,children:c})}}if(l=s){if(se[a]&&(null!=l.children||null!=l.dangerouslySetInnerHTML))throw Error(o(137,a,""));if(null!=l.dangerouslySetInnerHTML){if(null!=l.children)throw Error(o(60));if("object"!=typeof l.dangerouslySetInnerHTML||!("__html"in l.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=l.style&&"object"!=typeof l.style)throw Error(o(62,""))}for(_ in l=s,u=this.makeStaticMarkup,c=1===this.stack.length,d="<"+e.type,l)if(ye.call(l,_)){var p=l[_];if(null!=p){if("style"===_){f=void 0;var h="",m="";for(f in p)if(p.hasOwnProperty(f)){var g=0===f.indexOf("--"),v=p[f];if(null!=v){if(g)var y=f;else if(y=f,ve.hasOwnProperty(y))y=ve[y];else{var b=y.replace(ce,"-$1").toLowerCase().replace(de,"-ms-");y=ve[y]=b}h+=m+y+":",m=f,h+=g=null==v||"boolean"==typeof v||""===v?"":g||"number"!=typeof v||0===v||le.hasOwnProperty(m)&&le[m]?(""+v).trim():v+"px",m=";"}}p=h||null}f=null;e:if(g=a,v=l,-1===g.indexOf("-"))g="string"==typeof v.is;else switch(g){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":g=!1;break e;default:g=!0}g?be.hasOwnProperty(_)||(f=M(f=_)&&null!=p?f+'="'+F(p)+'"':""):f=B(_,p),f&&(d+=" "+f)}}u||c&&(d+=' data-reactroot=""');var _=d;l="",ae.hasOwnProperty(a)?_+="/>":(_+=">",l="</"+e.type+">");e:{if(null!=(u=s.dangerouslySetInnerHTML)){if(null!=u.__html){u=u.__html;break e}}else if("string"==typeof(u=s.children)||"number"==typeof u){u=F(u);break e}u=null}return null!=u?(s=[],he.hasOwnProperty(a)&&"\n"===u.charAt(0)&&(_+="\n"),_+=u):s=fe(s.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?oe(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:s,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,_},e}(),ke={renderToString:function(e){e=new xe(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new xe(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(o(207))},renderToStaticNodeStream:function(){throw Error(o(208))},version:"16.13.1"};e.exports=ke.default||ke},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=t=>"img"===t.tagName&&t.properties.dataEmojiCh?{type:"text",value:t.properties.dataEmojiCh}:(t.children=t.children?t.children.map(e):t.children,t);return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function e(t){const n=function(e){const t=["paragraph","heading","code","blockquote","list","table","thematicBreak"],n=["root","blockquote","listItem","tableCell"];let i;return(0,s.default)(e,(e,s)=>{const l=!(0,r.default)(s)&&(0,o.default)(s).type;if(t.includes(e.type)&&!n.includes(l))return i=(0,a.default)(s,e),!1}),i}(t);return n?(function(e,t){const n=(0,i.default)(t,-3)||e,s=(0,i.default)(t,-2),l=(0,o.default)(t),u=n.children.indexOf(s),d=n.children,f=s.children.indexOf(l),p=s.children.slice(0,f),h=s.children.slice(f+1),m=!(0,r.default)(p)&&c(c({},s),{},{children:p}),g=!(0,r.default)(h)&&c(c({},s),{},{children:h}),v=[m,l,g].filter(e=>!(0,r.default)(e)),y=d.slice(0,u),b=d.slice(u+1),_=(0,a.default)(y,v,b);n.children=_}(t,n),e(t)):t}};var r=l(n(142)),i=l(n(1451)),o=l(n(162)),a=l(n(1453)),s=l(n(598));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}},function(e,t,n){var r=n(1452),i=n(110);e.exports=function(e,t){return e&&e.length?r(e,i(t)):void 0}},function(e,t,n){var r=n(183);e.exports=function(e,t){var n=e.length;if(n)return r(t+=t<0?n:0,n)?e[t]:void 0}},function(e,t,n){var r=n(245),i=n(212),o=n(189),a=n(44);e.exports=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],s=e;s--;)t[s-1]=arguments[s];return r(a(n)?o(n):[n],i(t,1))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){function e(e){if("link"!==e.type)return e;const n=(0,d.default)(e),r=(0,s.default)(n," ")&&t(e),l=(0,a.default)(n," ")&&t(e,!0);if(!r&&!l)return e;r&&(r.value=(0,o.default)(r.value)),l&&(l.value=(0,i.default)(l.value));return[r&&(0,c.default)("text"," "),e,l&&(0,c.default)("text"," ")].filter(e=>e)}function t(e,t){let n,r;return n=t?l.default:u.default,function e(t){!r&&t.value&&(r=t);n(t.children,e)}(e),r}return function t(n){if(!n.children)return n;const i=(n.children.some(e=>"link"===e.type)?(0,r.default)(n.children,e):n.children).map(t);return h(h({},n),{},{children:i})}};var r=f(n(643)),i=f(n(163)),o=f(n(121)),a=f(n(1455)),s=f(n(517)),l=f(n(1456)),u=f(n(376)),c=f(n(60)),d=f(n(291));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}},function(e,t,n){var r=n(518),i=n(155),o=n(110),a=n(109);e.exports=function(e,t,n){e=a(e),t=i(t);var s=e.length,l=n=void 0===n?s:r(o(n),0,s);return(n-=t.length)>=0&&e.slice(n,l)==t}},function(e,t,n){var r=n(589)(n(1457));e.exports=r},function(e,t,n){var r=n(323),i=n(102),o=n(110),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l=null==e?0:e.length;if(!l)return-1;var u=l-1;return void 0!==n&&(u=o(n),u=n<0?a(l+u,0):s(u,l-1)),r(e,i(t,3),u,!0)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(e){return e.children=e.children.map(e=>"html"===e.type?(0,i.default)("paragraph",[e]):e),e}};var r,i=(r=n(60))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({voidCodeBlock:e}={}){return t;function t(e){let n=!["strong","emphasis","delete"].includes(e.type)&&!(0,l.default)(e.children)&&(0,a.default)(e.children,t).filter(e=>e);Array.isArray(n)&&(n=v(n),n=y(n));return m(e,n||void 0)}function n(e,t){return t?d(d({},e),{},{nodes:t}):e}function r(e,t,r={}){(0,s.default)(t)||(r=t,t=void 0);const i=(0,l.default)(t)?[c("")]:t;return n(d({object:"block",type:e},r),i)}function u(e,t={},r){return n(d({object:"inline",type:e},t),(0,l.default)(r)?[c("")]:r)}function c(e){const t={object:"text"};if("string"==typeof e)return d(d({},t),{},{text:e});const{text:n,marks:r}=e;return d(d({},t),{},{text:n,marks:r})}function f(e,n=[]){const r=h[e.type],s=r?[...n.filter(({type:e})=>e!==r),{type:r}]:n;return(0,a.default)(e.children,e=>function e(n,r){switch(n.type){case"html":case"text":return d(d({},m(n)),{},{marks:r});case"inlineCode":{const e=[...r,{type:h[n.type]}];return d(d({},m(n)),{},{marks:e})}case"strong":case"emphasis":case"delete":return f(n,r);case"link":{const t=(0,o.default)(n.children,t=>e(t,r));return m(n,(0,i.default)(t))}default:return t(d(d({},n),{},{data:d(d({},n.data),{},{marks:r})}))}}(e,s))}function m(t,n){switch(t.type){case"root":case"paragraph":case"blockquote":case"tableRow":case"tableCell":return r(p[t.type],n);case"listItem":{const e=(0,l.default)(n)?[r("paragraph")]:n;return r(p[t.type],e)}case"shortcode":{const e=[c("")],n=d({},t.data);return r(p[t.type],e,{data:n})}case"text":return c(t.value);case"html":return c(t.value);case"inlineCode":return c({text:t.value,marks:[{type:"code"}]});case"strong":case"emphasis":case"delete":return f(t);case"heading":return r("heading-"+{1:"one",2:"two",3:"three",4:"four",5:"five",6:"six"}[t.depth],n);case"code":{const n=d({lang:t.lang},e?{code:t.value}:{}),i=[c(e?"":t.value)];return r(p[t.type],i,{data:n})}case"list":return r(t.ordered?"numbered-list":"bulleted-list",n,{data:{start:t.start}});case"break":{const{data:e}=t;return u("break",{data:e})}case"thematicBreak":return r(p[t.type]);case"link":{const{title:e,url:r,data:i}=t,o=d(d({},i),{},{title:e,url:r});return u(p[t.type],{data:o},n)}case"image":{const{title:e,url:n,alt:r,data:i}=t,o=d(d({},i),{},{title:e,alt:r,url:n});return u(p[t.type],{data:o})}case"table":{const e={align:t.align};return r(p[t.type],n,{data:e})}}}},t.mergeAdjacentTexts=t.wrapInlinesWithTexts=void 0;var r=u(n(263)),i=u(n(217)),o=u(n(161)),a=u(n(643)),s=u(n(44)),l=u(n(142));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={root:"root",paragraph:"paragraph",blockquote:"quote",code:"code-block",listItem:"list-item",table:"table",tableRow:"table-row",tableCell:"table-cell",thematicBreak:"thematic-break",link:"link",image:"image",shortcode:"shortcode"},h={strong:"bold",emphasis:"italic",delete:"strikethrough",inlineCode:"code"},m=e=>"inline"===e.object,g=e=>"text"===e.object,v=e=>{if(e.length<=0)return e;const t=[];let n=e[0];m(n)&&t.push(0);for(let r=1;r<e.length;r++){const i=e[r];(m(n)&&!g(i)||!g(n)&&m(i))&&t.push(r),n=i}m(n)&&t.push(e.length);for(let n=0;n<t.length;n++)e.splice(t[n]+n,0,{object:"text",text:""});return e};t.wrapInlinesWithTexts=v;const y=e=>{if(e.length<=0)return e;const t=[];let n,i=!1;for(let s=0;s<e.length-1;s++){i||(n=e[s]);const l=e[s+1];g(n)&&g(l)&&(o=n,a=l,(0,r.default)(o.marks,a.marks))?(i=!0,n=d(d({},n),{},{text:`${n.text}${l.text}`})):(t.push(n),i=!1)}var o,a;return i?t.push(n):t.push(e[e.length-1]),t};t.mergeAdjacentTexts=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(t){const n=(0,a.default)(t);return e.call(null,n,t)};function e(t,n){const a=e.bind(null,t),s=n.children?n.children.map(a):n.children;if(["imageReference","linkReference"].includes(n.type)){const e="imageReference"===n.type?"image":"link",r=t(n.identifier);if(r){const{title:t,url:i}=r;return(0,o.default)(e,{title:t,url:i,alt:n.alt},s)}const i=(0,o.default)("text","imageReference"===n.type?"![":"["),a=(0,o.default)("text","]");return[i,...s||[(0,o.default)("text",n.alt)],a]}if("definition"===n.type)return null;const l=(0,i.default)(s,null);return u(u({},n),{},{children:(0,r.default)(l)})}};var r=s(n(217)),i=s(n(644)),o=s(n(60)),a=s(n(611));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(247),i=n(255),o=n(326),a=n(120),s=n(156),l=n(248);e.exports=function(e,t,n,u){var c=-1,d=i,f=!0,p=e.length,h=[],m=t.length;if(!p)return h;n&&(t=a(t,s(n))),u?(d=o,f=!1):t.length>=200&&(d=l,f=!1,t=new r(t));e:for(;++c<p;){var g=e[c],v=null==n?g:n(g);if(g=u||0!==g?g:0,f&&v==v){for(var y=m;y--;)if(t[y]===v)continue e;h.push(g)}else d(t,v,u)||h.push(g)}return h}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.remarkParseShortcodes=function({plugins:e}){const t=this.Parser,n=t.prototype.blockTokenizers,r=t.prototype.blockMethods;n.shortcode=function({plugins:e}){return function(t,n,r){let i;const o=n.split("\n\n")[0].trimEnd(),a=e.find(e=>(i=n.match(e.pattern),i||(i=o.match(e.pattern)),!!i));if(i){if(r)return!0;const e=a.fromBlock(i);try{return t(i[0])({type:"shortcode",data:{shortcode:a.id,shortcodeData:e}})}catch(t){return console.warn(`Sent invalid data to remark. Plugin: ${a.id}. Value: ${i[0]}. Data: ${JSON.stringify(e)}`),!1}}}}({plugins:e}),r.unshift("shortcode")},t.createRemarkShortcodeStringifier=function({plugins:e}){return function(){this.Compiler.prototype.visitors.shortcode=function(t){const{data:n}=t;return e.find(e=>n.shortcode===e.id).toBlock(n.shortcodeData)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=(t,n)=>{if((0,a.default)(t.data,"shortcode"))return t;const r=t.children?{children:t.children.map(e)}:{};if(["text","html"].includes(t.type)){const e=0===n?function(e){return e.replace(/^\s*([-#*>=|]| {4,}|`{3,})/,"$`\\$1")}(y(t.value)):y(t.value);return c(c({},t),{},{value:e},r)}return c(c({},t),r)};return e};var r=l(n(161)),i=l(n(170)),o=l(n(124)),a=l(n(642)),s=n(1464);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}const f={htmlOpeningTagEnd:/(?: *\w+=(?:(?:"[^"]*")|(?:'[^']*')))* *>/},p={htmlTags:[/<(?!pre|style|script)[\w]+/,f.htmlOpeningTagEnd],preformattedHtmlBlocks:[/<(pre|style|script)/,f.htmlOpeningTagEnd,/(.|[\n\r])*?/,/<\/\1>/]},h=(0,r.default)(p,e=>new RegExp((0,s.joinPatternSegments)(e))),m=(0,s.combinePatterns)(h),g=[/(\*+)[^*]*(\1)/g,/(_)[^_]+(_)\b/g,/(_{2,})[^_]*(\1)/g,/(~+)[^~]*(\1)/g,/(`+)[^`]*(\1)/g,/(\[(?!\^)+)[^\]]*]/g].map(e=>(0,i.default)(b,e)),v=(0,o.default)(g);function y(e){const t=new RegExp(m,"gm");return(0,s.replaceWhen)(t,v,e,!0)}function b(e,t){return t.replace(e,(e,t,n)=>{const r="string"==typeof n,i=r?e.length-n.length:e.length,o=e.slice(t.length,i);return`${_(t)}${o}${r?_(n):""}`})}function _(e){let t="";for(const n of e)t+="\\"+n;return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinPatternSegments=function(e){return e.map(e=>e.source).join("")},t.combinePatterns=function(e){return e.map(e=>`(?:${e.source})`).join("|")},t.replaceWhen=function(e,t,n,r){function o(e,t,n,r=!1){e.push({index:t,text:n,match:r})}const a=function e(t,n,r){const a=t.exec(n),s=(0,i.default)(r);if(!a)return r;if(0===a.index)o(r,0,a[0],!0);else if(s)if(a.index===s.index+s.text.length)o(r,a.index,a[0],!0);else{const e=s.index+s.text.length;o(r,e,a.input.slice(e,a.index)),o(r,a.index,a[0],!0)}else o(r,0,a.input.slice(0,a.index)),o(r,a.index,a[0],!0);return e(t,n,r)}(e,n,[]),s=(0,i.default)(a);if(!s)return t(n);const l=s.index+s.text.length;n.length>l&&a.push({index:l,text:n.slice(l)});return a.map(e=>(r?!e.match:e.match)?t(e.text):e.text).join("")};var r,i=(r=n(162))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=t=>(t.children&&(t.children=t.children.map((e,t,n)=>{if("break"===e.type){const r={type:"root",children:n.slice(t+1)};return(0,i.default)(r).trim()?e:null}return e}).filter(e=>e).map(e)),t);return e};var r,i=(r=n(291))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){this.Parser.prototype.inlineTokenizers.text=function(e,t,n){var r,i,o,a,s,l,u,c,d;if(n)return!0;for(a=(r=this.inlineMethods).length,i=this.inlineTokenizers,o=-1,d=t.length;++o<a;)"text"!==(c=r[o])&&i[c]&&((u=i[c].locator)||e.file.fail("Missing locator: `"+c+"`"),-1!==(l=u.call(this,t,1))&&l<d&&(d=l));e(s=t.slice(0,d))({type:"text",value:s})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,{voidCodeBlock:t}){return e.type="root",function e(n){const r=n.nodes&&n.nodes[0]&&"block"===n.nodes[0].object?n.nodes.map(e).filter(e=>e):function e(t=[]){const n=[];let r=t;for(;r.length>0;){const t=r[0];if("inline"===t.object||t.marks&&t.marks.length>0){const[t,i,o]=p(r);if("code"===t){const e=i[0];n.push((0,u.default)(v[t],e.data,e.text))}else if(t||1!==i.length||"inline"!==i[0].object){const{leadingWhitespace:a,trailingWhitespace:s,centerNodes:l}=_(i),d=e(l),f=(0,u.default)(v[t],d);if(""===(0,c.default)(f)){r=o;continue}const p=e=>e&&(0,u.default)("html",e),h=[p(a),f,p(s)].filter(e=>e);n.push(...h)}else{const t=i[0];n.push(w(t,e(t.nodes)))}r=o}else r.shift(),n.push((0,u.default)("html",t.text))}return n}(n.nodes);return function(e,n){switch(e.type){case"root":case"paragraph":case"quote":case"list-item":case"table":case"table-row":case"table-cell":return(0,u.default)(g[e.type],n);case"shortcode":{const{data:t}=e;return(0,u.default)(g[e.type],{data:t})}case"heading-one":case"heading-two":case"heading-three":case"heading-four":case"heading-five":case"heading-six":{const t={one:1,two:2,three:3,four:4,five:5,six:6},r=e.type.split("-")[1],i=t[r],o=(0,u.default)(g[e.type],{depth:i},n);return(0,c.default)(o)?o:void 0}case"code-block":{var r;const i=(0,l.default)(e,"data",{}),{lang:o,code:a}=i,s=f(i,["lang","code"]),c=t?a:null===(r=n[0])||void 0===r?void 0:r.value;return(0,u.default)(g[e.type],{lang:o,data:s},c||"")}case"numbered-list":case"bulleted-list":{const t={ordered:"numbered-list"===e.type,start:(0,l.default)(e.data,"start")||1};return(0,u.default)(g[e.type],t,n)}case"thematic-break":return(0,u.default)(g[e.type])}}(n,r)}(e);function n(e){switch(e.type){case"link":{const t=e.nodes.map(e=>h(h({},e),{},{marks:e.marks?e.marks.filter(({type:e})=>"code"!==e):e.marks})),r=(0,o.default)(t,n);return(0,i.default)(...r)}case"break":case"image":return(0,o.default)((0,l.default)(e,["data","marks"]),e=>e.type);default:return(0,o.default)(e.marks,e=>e.type)}}function d(e,t){const r=n(t),o=(0,i.default)(e,r);return"code"===o[0]?1===r.length?e:[]:o}function p(e){let t=n(e[0])||[];"code"===t[0]&&t.length>1&&(t=[...(0,s.default)("firstGroupMarks","code"),"code"]);let i=1;if(t.length>0)for(;i<e.length;){if(e[i]){const n=d(t,e[i]);if(!(n.length>0))break;t=n}i+=1}const o=t[0],a=e.slice(0,i);return[o,o?function e(t,n){return t.map(t=>{switch(t.type){case"link":{const r=e(t.nodes,n);return h(h({},t),{},{nodes:r})}case"image":case"break":{const e=(0,r.default)(t.data,"marks");return h(h({},t),{},{data:e})}default:return h(h({},t),{},{marks:t.marks.filter(({type:e})=>e!==n)})}})}(a,o):a,e.slice(i)]}function m(e,{trailing:t}={}){if(!e.text)return{trimmedNode:e};const n=t?b:y,r=e.text.search(n);if(r>-1){const n=t?r:r+1,i=e.text.substring(0,n),o=e.text.substring(n),a=t?i:o;return{whitespace:t?o:i,trimmedNode:h(h({},e),{},{text:a})}}return{trimmedNode:e}}function _(e){const{whitespace:t,trimmedNode:n}=m(e[0]),r=m(e.length>1?(0,a.default)(e):n,{trailing:!0}),{whitespace:i,trimmedNode:o}=r;return{leadingWhitespace:t,centerNodes:function(e,t,n){switch(e.length){case 0:return[];case 1:return[n];case 2:return[t,n];default:return[t,...e.slice(1,-1),n]}}(e,n,o).filter(e=>e),trailingWhitespace:i}}function w(e,t){switch(e.type){case"break":return(0,u.default)(g[e.type]);case"link":{const n=(0,l.default)(e,"data",{}),{url:r,title:i}=n,o=f(n,["url","title"]);return(0,u.default)(g[e.type],{url:r,title:i,data:o},t)}case"image":{const t=(0,l.default)(e,"data",{}),{url:n,title:r,alt:i}=t,o=f(t,["url","title","alt"]);return(0,u.default)(g[e.type],{url:n,title:r,alt:i,data:o})}}}};var r=d(n(144)),i=d(n(578)),o=d(n(161)),a=d(n(162)),s=d(n(644)),l=d(n(82)),u=d(n(60)),c=d(n(291));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}const g={root:"root",paragraph:"paragraph","heading-one":"heading","heading-two":"heading","heading-three":"heading","heading-four":"heading","heading-five":"heading","heading-six":"heading",quote:"blockquote","code-block":"code","numbered-list":"list","bulleted-list":"list","list-item":"listItem",table:"table","table-row":"tableRow","table-cell":"tableCell",break:"break","thematic-break":"thematicBreak",link:"link",image:"image",shortcode:"shortcode"},v={bold:"strong",italic:"emphasis",strikethrough:"delete",code:"inlineCode"},y=/^\s+\S/,b=/(?!\S)\s+$/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(18)),i=(s(n(1)),s(n(2))),o=n(16),a=n(11);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("button",{target:"ejt81md0",label:"StyledToolbarButton"})(o.buttons.button,";display:inline-block;padding:6px;border:none;background-color:transparent;font-size:16px;color:",e=>e.isActive?"#1e2532":"inherit",";cursor:pointer;&:disabled{cursor:auto;opacity:0.5;}",o.Icon,"{display:block;}"),u=({type:e,label:t,icon:n,onClick:r,isActive:i,disabled:s})=>(0,a.jsx)(l,{isActive:i,onClick:t=>r&&r(t,e),title:t,disabled:s},n?(0,a.jsx)(o.Icon,{type:n}):t);u.propTypes={type:i.default.string,label:i.default.string.isRequired,icon:i.default.string,onClick:i.default.func,isActive:i.default.bool,disabled:i.default.bool};var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.mergeMediaConfig=void 0;var r=w(n(18)),i=w(n(230)),o=w(n(142)),a=w(n(82)),s=w(n(1)),l=w(n(2)),u=w(n(24)),c=n(4),d=n(11),f=n(23),p=n(405),h=n(16),m=n(645),g=n(280),v=w(n(646)),y=n(1470),b=w(n(1473)),_=w(n(1489));function w(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const k=({minimal:e})=>`\n position: relative;\n overflow: hidden;\n overflow-x: auto;\n font-family: ${h.fonts.primary};\n min-height: ${e?"auto":h.lengths.richTextEditorMinHeight};\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-top: 0;\n margin-top: -${m.editorStyleVars.stickyDistanceBottom};\n padding: 0;\n display: flex;\n flex-direction: column;\n z-index: ${h.zIndex.zIndex100};\n`,E=(0,r.default)("div",{target:"evezps90",label:"InsertionPoint"})({name:"b2d31m",styles:"flex:1 1 auto;cursor:text;"}),S=(e,{voidCodeBlock:t})=>{const n=e&&(0,g.markdownToSlate)(e,{voidCodeBlock:t}),r=!(0,o.default)((0,a.default)(n,"nodes")),i=f.Document.fromJSON(r?n:(()=>{const e=f.Text.create("");return{nodes:[f.Block.create({object:"block",type:"paragraph",nodes:[e]})]}})());return f.Value.create({document:i})},O=(e,t)=>{if(e.has("image")){const n=e.get("image"),r=null==n?void 0:n.fields;r&&(n.fields=r.update(r.findIndex(e=>"image"===e.get("widget")),e=>(t.has("media_library")&&(e=e.set("media_library",t.get("media_library").mergeDeep(e.get("media_library")))),t.has("media_folder")&&!e.has("media_folder")&&(e=e.set("media_folder",t.get("media_folder"))),t.has("public_folder")&&!e.has("public_folder")&&(e=e.set("public_folder",t.get("public_folder"))),e)))}};t.mergeMediaConfig=O;var T={name:"t5h4ts-Editor",styles:"position:relative;;label:Editor;"};class C extends s.default.Component{constructor(e){super(e),x(this,"handleMarkClick",e=>{this.editor.toggleMark(e).focus()}),x(this,"handleBlockClick",e=>{this.editor.toggleBlock(e).focus()}),x(this,"handleLinkClick",()=>{this.editor.toggleLink(()=>window.prompt("Enter the URL of the link"))}),x(this,"hasMark",e=>this.editor&&this.editor.hasMark(e)),x(this,"hasInline",e=>this.editor&&this.editor.hasInline(e)),x(this,"hasBlock",e=>this.editor&&this.editor.hasBlock(e)),x(this,"handleToggleMode",()=>{this.props.onMode("raw")}),x(this,"handleInsertShortcode",e=>{this.editor.insertShortcode(e)}),x(this,"handleClickBelowDocument",()=>{this.editor.moveToEndOfDocument()}),x(this,"handleDocumentChange",(0,i.default)(e=>{const{onChange:t}=this.props,n=e.value.document.toJS();t((0,g.slateToMarkdown)(n,{voidCodeBlock:this.codeBlockComponent}))},150)),x(this,"handleChange",e=>{this.state.value.document.equals(e.value.document)||this.handleDocumentChange(e),this.setState({value:e.value})}),x(this,"processRef",e=>{this.editor=e});const t=e.getEditorComponents();this.shortcodeComponents=t.filter(({type:e})=>"shortcode"===e),this.codeBlockComponent=(0,c.fromJS)(t.find(({type:e})=>"code-block"===e)),this.editorComponents=this.codeBlockComponent||t.has("code-block")?t:t.set("code-block",{label:"Code Block",type:"code-block"}),O(this.editorComponents,this.props.field),this.renderBlock=(0,y.renderBlock)({classNameWrapper:e.className,resolveWidget:e.resolveWidget,codeBlockComponent:this.codeBlockComponent}),this.renderInline=(0,y.renderInline)(),this.renderMark=(0,y.renderMark)(),this.schema=(0,_.default)({voidCodeBlock:!!this.codeBlockComponent}),this.plugins=(0,b.default)({getAsset:e.getAsset,resolveWidget:e.resolveWidget}),this.state={value:S(this.props.value,{voidCodeBlock:!!this.codeBlockComponent})}}shouldComponentUpdate(e,t){return!this.state.value.equals(t.value)}componentDidMount(){this.props.pendingFocus&&(this.editor.focus(),this.props.pendingFocus())}render(){const{onAddAsset:e,getAsset:t,className:n,field:r,t:i}=this.props;return(0,d.jsx)("div",{css:T},(0,d.jsx)(m.EditorControlBar,null,(0,d.jsx)(v.default,{onMarkClick:this.handleMarkClick,onBlockClick:this.handleBlockClick,onLinkClick:this.handleLinkClick,onToggleMode:this.handleToggleMode,plugins:this.editorComponents,onSubmit:this.handleInsertShortcode,onAddAsset:e,getAsset:t,buttons:r.get("buttons"),editorComponents:r.get("editorComponents"),hasMark:this.hasMark,hasInline:this.hasInline,hasBlock:this.hasBlock,t:i})),(0,d.jsx)(d.ClassNames,null,({css:e,cx:t})=>(0,d.jsx)("div",{className:t(n,e`
+ ${k({minimal:r.get("minimal")})}
+ `)},(0,d.jsx)(p.Editor,{className:e`
+ padding: 16px 20px 0;
+ `,value:this.state.value,renderBlock:this.renderBlock,renderInline:this.renderInline,renderMark:this.renderMark,schema:this.schema,plugins:this.plugins,onChange:this.handleChange,ref:this.processRef,spellCheck:!0}),(0,d.jsx)(E,{onClick:this.handleClickBelowDocument}))))}}t.default=C,x(C,"propTypes",{onAddAsset:l.default.func.isRequired,getAsset:l.default.func.isRequired,onChange:l.default.func.isRequired,onMode:l.default.func.isRequired,className:l.default.string.isRequired,value:l.default.string,field:u.default.map.isRequired,getEditorComponents:l.default.func.isRequired,t:l.default.func.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderBlock=t.renderInline=t.renderMark=void 0;var r=l(n(18)),i=(l(n(1)),n(11)),o=n(16),a=l(n(1471)),s=l(n(1472));function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const c="\n font-weight: 700;\n line-height: 1;\n",d=(0,r.default)("h1",{target:"e19otniy0",label:"StyledH1"})(c,";font-size:32px;margin-top:16px;"),f=(0,r.default)("h2",{target:"e19otniy1",label:"StyledH2"})(c,";font-size:24px;margin-top:12px;"),p=(0,r.default)("h3",{target:"e19otniy2",label:"StyledH3"})(c,";font-size:20px;"),h=(0,r.default)("h4",{target:"e19otniy3",label:"StyledH4"})(c,";font-size:18px;margin-top:8px;"),m=(0,r.default)("h5",{target:"e19otniy4",label:"StyledH5"})(c,";font-size:16px;margin-top:8px;"),g=m.withComponent("h6",{target:"e19otniy15",label:"StyledH6"}),v=(0,r.default)("p",{target:"e19otniy5",label:"StyledP"})("margin-bottom:","16px",";"),y=(0,r.default)("blockquote",{target:"e19otniy6",label:"StyledBlockQuote"})("padding-left:16px;border-left:3px solid ",o.colors.background,";margin-left:0;margin-right:0;margin-bottom:","16px",";"),b=(0,r.default)("pre",{target:"e19otniy7",label:"StyledPre"})("margin-bottom:","16px",";white-space:pre-wrap;& > code{display:block;width:100%;overflow-y:auto;background-color:#000;color:#ccc;border-radius:",o.lengths.borderRadius,";padding:10px;}"),_=(0,r.default)("code",{target:"e19otniy8",label:"StyledCode"})("background-color:",o.colors.background,";border-radius:",o.lengths.borderRadius,";padding:0 2px;font-size:85%;"),w=(0,r.default)("ul",{target:"e19otniy9",label:"StyledUl"})("margin-bottom:","16px",";padding-left:30px;"),x=w.withComponent("ol",{target:"e19otniy16",label:"StyledOl"}),k=(0,r.default)("li",{target:"e19otniy10",label:"StyledLi"})({name:"1eoco3j",styles:"& > p:first-child{margin-top:8px;}& > p:last-child{margin-bottom:8px;}"}),E=(0,r.default)("a",{target:"e19otniy11",label:"StyledA"})({name:"1081t4c",styles:"text-decoration:underline;"}),S=(0,r.default)("hr",{target:"e19otniy12",label:"StyledHr"})({name:"pqqqdc",styles:"border:1px solid;margin-bottom:16px;"}),O=(0,r.default)("table",{target:"e19otniy13",label:"StyledTable"})({name:"1uhv8nx",styles:"border-collapse:collapse;"}),T=(0,r.default)("td",{target:"e19otniy14",label:"StyledTd"})({name:"1fi1vzc",styles:"border:2px solid black;padding:8px;text-align:left;"}),C=e=>(0,i.jsx)("strong",null,e.children),A=e=>(0,i.jsx)("em",null,e.children),P=e=>(0,i.jsx)("s",null,e.children),R=e=>(0,i.jsx)(_,null,e.children),M=e=>(0,i.jsx)(v,e.attributes,e.children),I=e=>(0,i.jsx)(k,e.attributes,e.children),j=e=>(0,i.jsx)(y,e.attributes,e.children),D=e=>(0,i.jsx)(b,null,(0,i.jsx)(_,e.attributes,e.children)),L=e=>(0,i.jsx)(d,e.attributes,e.children),N=e=>(0,i.jsx)(f,e.attributes,e.children),F=e=>(0,i.jsx)(p,e.attributes,e.children),B=e=>(0,i.jsx)(h,e.attributes,e.children),z=e=>(0,i.jsx)(m,e.attributes,e.children),U=e=>(0,i.jsx)(g,e.attributes,e.children),q=e=>(0,i.jsx)(O,null,(0,i.jsx)("tbody",e.attributes,e.children)),H=e=>(0,i.jsx)("tr",e.attributes,e.children),W=e=>(0,i.jsx)(T,e.attributes,e.children),V=e=>(0,i.jsx)(S,u({},e.attributes,{css:e.editor.isSelected(e.node)&&(0,i.css)("box-shadow:0 0 0 2px ",o.colors.active,";border-radius:8px;color:",o.colors.active,";;label:ThematicBreak;")})),$=e=>(0,i.jsx)("br",e.attributes),G=e=>(0,i.jsx)(w,e.attributes,e.children),K=e=>(0,i.jsx)(x,u({},e.attributes,{start:e.node.data.get("start")||1}),e.children),Y=e=>{const t=e.node.get("data"),n=t.get("url"),r=t.get("title");return(0,i.jsx)(E,u({href:n,title:r},e.attributes),e.children)},Q=e=>{const t=e.node.get("data"),n=t.get("marks"),r=t.get("url"),o=t.get("title"),a=t.get("alt"),s=(0,i.jsx)("img",u({src:r,title:o,alt:a},e.attributes));return n?n.reduce((e,t)=>X({mark:t,children:e}),s):s},X=()=>e=>{switch(e.mark.type){case"bold":return(0,i.jsx)(C,e);case"italic":return(0,i.jsx)(A,e);case"strikethrough":return(0,i.jsx)(P,e);case"code":return(0,i.jsx)(R,e)}};t.renderMark=X;t.renderInline=()=>e=>{switch(e.node.type){case"link":return(0,i.jsx)(Y,e);case"image":return(0,i.jsx)(Q,e);case"break":return(0,i.jsx)($,e)}};t.renderBlock=({classNameWrapper:e,codeBlockComponent:t})=>n=>{switch(n.node.type){case"paragraph":return(0,i.jsx)(M,n);case"list-item":return(0,i.jsx)(I,n);case"quote":return(0,i.jsx)(j,n);case"code-block":return t?(0,i.jsx)(a.default,n,(0,i.jsx)(s.default,u({classNameWrapper:e,typeOverload:"code-block",dataKey:!1},n))):(0,i.jsx)(D,n);case"heading-one":return(0,i.jsx)(L,n);case"heading-two":return(0,i.jsx)(N,n);case"heading-three":return(0,i.jsx)(F,n);case"heading-four":return(0,i.jsx)(B,n);case"heading-five":return(0,i.jsx)(z,n);case"heading-six":return(0,i.jsx)(U,n);case"table":return(0,i.jsx)(q,n);case"table-row":return(0,i.jsx)(H,n);case"table-cell":return(0,i.jsx)(W,n);case"thematic-break":return(0,i.jsx)(a.default,n,(0,i.jsx)(V,{editor:n.editor,node:n.node}));case"bulleted-list":return(0,i.jsx)(G,n);case"numbered-list":return(0,i.jsx)(K,n);case"shortcode":return(0,i.jsx)(a.default,n,(0,i.jsx)(s.default,u({classNameWrapper:e},n)))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;(r=n(1))&&r.__esModule;var r,i=n(11),o=n(16);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const s=e=>(0,i.jsx)("div",a({css:(0,i.css)("height:32px;cursor:text;position:relative;z-index:",o.zIndex.zIndex1,";margin-top:-16px;;label:InsertionPoint;")},e));var l=({editor:e,attributes:t,node:n,children:r})=>(0,i.jsx)("div",a({},t,{onClick:e=>{e.stopPropagation()}}),!e.canInsertBeforeNode(n)&&(0,i.jsx)(s,{onClick:()=>e.forceInsertBeforeNode(n)}),r,!e.canInsertAfterNode(n)&&(0,i.jsx)(s,{onClick:()=>e.forceInsertAfterNode(n)}));t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(144)),i=l(n(1)),o=n(11),a=n(4),s=n(378);function l(e){return e&&e.__esModule?e:{default:e}}var u={name:"1xfnuhy-Shortcode",styles:"margin-top:0;margin-bottom:16px;&:first-of-type{margin-top:0;};label:Shortcode;"};class c extends i.default.Component{constructor(...e){super(...e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"state",{field:(0,a.Map)()})}componentDidMount(){const{node:e,typeOverload:t}=this.props,n=(0,s.getEditorComponents)().get(t||e.data.get("shortcode")),i=(0,a.fromJS)((0,r.default)(n,["id","fromBlock","toBlock","toPreview","pattern","icon"]));this.setState({field:i})}render(){const{editor:e,node:t,dataKey:n="shortcodeData"}=this.props,{field:r}=this.state,i=(0,s.getEditorControl)(),l=!1===n?t.data:(0,a.fromJS)(t.data.get(n)),c=()=>e.moveToRangeOfNode(t);return!r.isEmpty()&&(0,o.jsx)("div",{onClick:c,onFocus:c},(0,o.jsx)(i,{css:u,value:l,field:r,onChange:(r,i,o)=>{const s=!1===n?i:t.data.set("shortcodeData",i);e.setNodeByKey(t.key,{data:s||(0,a.Map)(),metadata:o})},isEditorComponent:!0,isNewEditorComponent:t.data.get("shortcodeNew"),isSelected:e.isSelected(t)}))}}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(105)),i=y(n(1474)),o=y(n(1476)),a=y(n(1478)),s=y(n(1479)),l=y(n(1480)),u=y(n(1481)),c=y(n(1482)),d=y(n(1483)),f=y(n(1484)),p=y(n(1485)),h=y(n(1486)),m=n(1487),g=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=v();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(1488));function v(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return v=function(){return e},e}function y(e){return e&&e.__esModule?e:{default:e}}var b=({getAsset:e,resolveWidget:t})=>[{onKeyDown(e,t,n){(0,r.default)("mod+j",e)&&console.log(JSON.stringify(t.value.document.toJS(),null,2)),n()}},(0,g.default)(g.HOT_KEY_MAP.bold,e=>e.toggleMark("bold")),(0,g.default)(g.HOT_KEY_MAP.code,e=>e.toggleMark("code")),(0,g.default)(g.HOT_KEY_MAP.italic,e=>e.toggleMark("italic")),(0,g.default)(g.HOT_KEY_MAP.strikethrough,e=>e.toggleMark("strikethrough")),(0,g.default)(g.HOT_KEY_MAP["heading-one"],e=>e.toggleBlock("heading-one")),(0,g.default)(g.HOT_KEY_MAP["heading-two"],e=>e.toggleBlock("heading-two")),(0,g.default)(g.HOT_KEY_MAP["heading-three"],e=>e.toggleBlock("heading-three")),(0,g.default)(g.HOT_KEY_MAP["heading-four"],e=>e.toggleBlock("heading-four")),(0,g.default)(g.HOT_KEY_MAP["heading-five"],e=>e.toggleBlock("heading-five")),(0,g.default)(g.HOT_KEY_MAP["heading-six"],e=>e.toggleBlock("heading-six")),(0,g.default)(g.HOT_KEY_MAP.link,e=>e.toggleLink(()=>window.prompt("Enter the URL of the link"))),(0,i.default)({defaultType:m.SLATE_DEFAULT_BLOCK_TYPE}),(0,u.default)({defaultType:m.SLATE_DEFAULT_BLOCK_TYPE,type:"quote"}),(0,o.default)({defaultType:m.SLATE_DEFAULT_BLOCK_TYPE,unorderedListType:"bulleted-list",orderedListType:"numbered-list"}),(0,f.default)({type:"link"}),(0,a.default)(),(0,s.default)({defaultType:m.SLATE_DEFAULT_BLOCK_TYPE}),(0,l.default)({defaultType:m.SLATE_DEFAULT_BLOCK_TYPE}),(0,c.default)(),(0,p.default)({defaultType:m.SLATE_DEFAULT_BLOCK_TYPE}),(0,d.default)({getAsset:e,resolveWidget:t}),(0,h.default)({defaultType:m.SLATE_DEFAULT_BLOCK_TYPE})];t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(399)),i=a(n(1475)),o=a(n(44));function a(e){return e&&e.__esModule?e:{default:e}}var s=({defaultType:e})=>({queries:{atStartOf(e,t){const{selection:n}=e.value;return n.isCollapsed&&n.start.isAtStartOfNode(t)},getAncestor:(e,t,n)=>t===n?e.value.document.getParent(t):e.value.document.getCommonAncestor(t,n),getOffset:(e,t)=>e.value.document.getParent(t.key).nodes.indexOf(t),getSelectedChildren:(e,t)=>t.nodes.filter(t=>e.isSelected(t)),getCommonAncestor(e){const{startBlock:t,endBlock:n,document:r}=e.value;return r.getCommonAncestor(t.key,n.key)},getClosestType(e,t,n){const i=(0,r.default)(n);return e.value.document.getClosest(t.key,e=>i.includes(e.type))},getBlockContainer(e,t){const{startBlock:n,selection:r}=e.value,i=t?e.value.document.getParent(t.key):r.isCollapsed&&n||e.getCommonAncestor();return i?["bulleted-list","numbered-list","list-item","quote","table-cell"].includes(i.type)?i:e.getBlockContainer(i):e.value.document},isSelected:(e,t)=>(0,r.default)(t).every(t=>e.value.document.isInRange(t.key,e.value.selection)),isFirstChild:(e,t)=>e.value.document.getParent(t.key).nodes.first().key===t.key,areSiblings(e,t){if(!(0,o.default)(t)||t.length<2)return!0;const n=e.value.document.getParent(t[0].key);return(0,i.default)(t).every(t=>e.value.document.getParent(t.key).key===n.key)},everyBlock:(e,t)=>e.value.blocks.every(e=>e.type===t),hasMark:(e,t)=>e.value.activeMarks.some(e=>e.type===t),hasBlock:(e,t)=>e.value.blocks.some(e=>e.type===t),hasInline:(e,t)=>e.value.inlines.some(e=>e.type===t)},commands:{toggleBlock(t,n){switch(n){case"heading-one":case"heading-two":case"heading-three":case"heading-four":case"heading-five":case"heading-six":return t.setBlocks(t.everyBlock(n)?e:n);case"quote":return t.toggleQuoteBlock();case"numbered-list":case"bulleted-list":return t.toggleList(n)}},unwrapBlockChildren(e,t){if(!t||"block"!==t.object)throw Error(`Expected block but received ${t}.`);const n=e.value.document.getPath(t.key).last(),r=e.value.document.getParent(t.key);e.withoutNormalizing(()=>{t.nodes.forEach((t,i)=>{e.moveNodeByKey(t.key,r.key,n+i)}),e.removeNodeByKey(t.key)})},unwrapNodeToDepth(e,t,n){let r=0;e.withoutNormalizing(()=>{for(;r<n;)e.unwrapNodeByKey(t.key),r+=1})},unwrapNodeFromAncestor(e,t,n){const r=n.getDepth(t.key);e.unwrapNodeToDepth(t,r)}}});t.default=s},function(e,t,n){var r=n(216);e.exports=function(e){var t=null==e?0:e.length;return t?r(e,1,t):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(82)),i=c(n(407)),o=c(n(399)),a=n(4),s=n(23),l=c(n(105)),u=n(1477);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var h=({defaultType:e,unorderedListType:t,orderedListType:n})=>{const c=[n,t];function h(e){switch(e){case c[0]:return c[1];case c[1]:return c[0]}}return{queries:{getCurrentListItem(e){const{startBlock:t,endBlock:n}=e.value,r=e.value.document.getCommonAncestor(t.key,n.key);return r&&"list-item"===r.type?r:e.value.document.getClosest(r.key,e=>"list-item"===e.type)},getListOrListItem(e,t={}){let{node:n}=t,r=p(t,["node"]);const i=e.getBlockContainer(n);if(i)return["bulleted-list","numbered-list","list-item"].includes(i.type)?i:r.force?e.getListOrListItem(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({node:i},r)):void 0},isList:(e,t)=>t&&c.includes(t.type),getLowestListItem(e,t){(0,u.assertType)(t,c);const n=t.nodes.last(),r=n.nodes.last();return e.isList(r)?e.getLowestListItem(r):n}},commands:{wrapInList(e,t){e.withoutNormalizing(()=>{e.wrapBlock(t).wrapBlock("list-item")})},unwrapListItem(e,t){(0,u.assertType)(t,"list-item"),e.withoutNormalizing(()=>{e.unwrapNodeByKey(t.key).unwrapBlockChildren(t)})},indentListItems:(0,i.default)((function(e,t){const n=a.List.isList(t)?t:(0,a.List)((0,o.default)(t)),r=n.first(),i=e.value.document.getPath(r.key).last(),l=e.value.document.getParent(r.key);if(0===i){const t=e.value.document.getPreviousSibling(l.key);if(!t||t.type!==h(l.type))return;e.withoutNormalizing(()=>{n.forEach((n,r)=>{const i=t.nodes.size+r;e.moveNodeByKey(n.key,t.key,i)})})}const u=s.Block.create("list-item"),c=s.Block.create(l.type);e.withoutNormalizing(()=>{e.insertNodeByKey(l.key,i,u).insertNodeByKey(u.key,0,c),n.forEach((t,n)=>{e.moveNodeByKey(t.key,c.key,n)}),e.mergeNodeByKey(u.key)})}),100),unindentListItems:(0,i.default)((function(e,t){const n=a.List.isList(t)?t:(0,a.List)((0,o.default)(t)),r=e.value.document.getParent(n.first().key);if(!e.isList(r))return;const i=e.value.document.getParent(r.key);if(!i||"list-item"!==i.type)return;const s=e.value.document.getNextSibling(n.last().key);if(e.withoutNormalizing(()=>{n.forEach(t=>e.unwrapNodeToDepth(t,2))}),s){const t=e.value.document.getNextSibling(n.last().key);e.mergeNodeByKey(t.key)}}),100),toggleListItemType(e,t){(0,u.assertType)(t,"list-item");const n=h(e.value.document.getParent(t.key).type);e.withoutNormalizing(()=>{e.unwrapNodeByKey(t.key).wrapBlockByKey(t.key,n)})},toggleList(e,t){if(!c.includes(t))throw Error(`${t} is not a valid list type, must be one of: ${c}`);const{startBlock:n}=e.value,i=e.getBlockContainer();switch((0,r.default)(i,"type")){case"bulleted-list":case"numbered-list":{const n=i;if(n.type!==t){const t=h(i.type),n=s.Block.create(t);e.withoutNormalizing(()=>{e.wrapBlock(n).unwrapNodeByKey(n.key)})}else e.withoutNormalizing(()=>{n.nodes.forEach(t=>{e.isSelected(t)&&e.unwrapListItem(t)})});break}case"list-item":{const r=i,o=e.value.document.getParent(r.key);e.isFirstChild(n)?o.type!==t?e.toggleListItemType(r):e.unwrapListItem(r):e.wrapInList(t);break}default:e.wrapInList(t)}}},onKeyDown(t,n,r){if((0,l.default)("backspace",t)&&n.value.selection.isCollapsed){if(n.value.startBlock.type!==e)return r();const t=n.getListOrListItem();if(t&&"list-item"===t.type&&n.value.selection.start.isAtStartOfNode(t)){const e=t,r=n.value.document.getPreviousSibling(e.key);return r&&"list-item"===r.type?n.mergeNodeByKey(e.key):n.unwrapListItem(e)}return r()}if((0,l.default)("tab",t)||(0,l.default)("shift+tab",t)){const e=(0,l.default)("tab",t),i=!e;t.preventDefault();const o=n.getListOrListItem({force:!0});if(!o)return r();if("list-item"===o.type){const t=o;if(e)return n.indentListItems(t);if(i)return n.unindentListItems(t)}else{const t=o;if(e){const e=n.getSelectedChildren(t);return n.indentListItems(e)}if(i){const e=n.getSelectedChildren(t);return n.unindentListItems(e)}}return r()}if((0,l.default)("enter",t)){const e=n.getListOrListItem();if(!e)return r();if(n.value.selection.isExpanded&&n.delete(),"list-item"===e.type){const t=e;if(n.atStartOf(t))return n.unwrapListItem(t);if(n.atStartOf(n.value.startBlock)){const e=s.Block.create("list-item"),r=s.Range.create(n.value.selection).moveEndToEndOfNode(t);return n.withoutNormalizing(()=>{n.wrapBlockAtRange(r,e).unwrapNodeByKey(e.key)})}return r()}{const t=e;if(0===t.nodes.size)return n.removeNodeByKey(t.key)}return r()}return r()}}};t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertType=function(e,t){const n=(0,i.default)(e),o=(0,r.default)(t)?e=>t.includes(e.type):e=>t===e.type,a=n.find(e=>!o(e));if(a)throw Error(`Expected node of type "${t}", received "${a.type}".`);return!0};var r=o(n(44)),i=o(n(399));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(105))&&r.__esModule?r:{default:r};var o=()=>({onKeyDown:(e,t,n)=>(0,i.default)("shift+enter",e)?t.insertInline("break").insertText("").moveToStartOfNextText():n()});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(105))&&r.__esModule?r:{default:r};var o=({defaultType:e})=>({onKeyDown(t,n,r){const{selection:o,startBlock:a}=n.value;return(0,i.default)("enter",t)?o.isExpanded?(n.delete(),r()):o.start.isAtEndOfNode(a)&&a.type!==e?n.insertBlock(e):r():r()}});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(105))&&r.__esModule?r:{default:r};var o=({defaultType:e})=>({onKeyDown(t,n,r){const{selection:o,startBlock:a}=n.value;return(0,i.default)("backspace",t)?o.isExpanded?n.delete():!o.start.isAtStartOfNode(a)||a.text.length>0?r():a.type!==e?n.setBlocks(e):r():r()}});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(23),o=(r=n(105))&&r.__esModule?r:{default:r};var a=({type:e})=>({commands:{toggleQuoteBlock(t){const n=t.getBlockContainer();if(["bulleted-list","numbered-list"].includes(n.type)){const{nodes:r}=n;if(t.isSelected([r.first(),r.last()])){const r=t.getBlockContainer(n);(null==r?void 0:r.type)===e?t.unwrapNodeFromAncestor(n,r):t.wrapBlockByKey(n.key,e)}else{const o=t.value.document.getParent(n.key);t.withoutNormalizing(()=>{const a=r.filter(e=>t.isSelected(e)),s=i.Block.create(n.type);t.unwrapNodeByKey(a.first());const l=t.getOffset(a.first());t.insertNodeByKey(o.key,l+1,s),a.forEach(({key:e},n)=>t.moveNodeByKey(e,s.key,n)),t.wrapBlockByKey(s.key,e)})}return}const r=t.value.blocks,o=r.first().key,a=r.last().key,s=t.getAncestor(o,a);s.type===e?t.unwrapBlockChildren(s):t.wrapBlock(e)}},onKeyDown(t,n,r){if(!(0,o.default)("enter",t)&&!(0,o.default)("backspace",t))return r();const{selection:i,startBlock:a,document:s}=n.value,l=s.getParent(a.key);if(!(l.type===e))return r();if((0,o.default)("enter",t)){if(i.isExpanded&&n.delete(),n.atStartOf(l))return n.unwrapBlockByKey(l.key);if(n.atStartOf(a)){const e=n.getOffset(a);return n.splitNodeByKey(l.key,e).unwrapBlockByKey(n.value.document.getParent(a.key).key)}return r()}if((0,o.default)("backspace",t)){if(i.isExpanded&&n.delete(),!n.atStartOf(l))return r();const t=s.getPreviousSibling(l.key);return t&&t.type===e?n.mergeNodeByKey(l.key):n.unwrapNodeByKey(a.key)}return r()}});t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(105))&&r.__esModule?r:{default:r};var o=()=>({onKeyDown:(e,t,n)=>(0,i.default)("mod+a",e)?(e.preventDefault(),t.moveToRangeOfDocument()):n()});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(23),i=n(405),o=l(n(205)),a=l(n(105)),s=n(280);function l(e){return e&&e.__esModule?e:{default:e}}var u=({getAsset:e,resolveWidget:t})=>{const n=(n,r)=>{const a=(0,s.slateToMarkdown)(r.value.fragment.toJS()),l=(0,s.markdownToHtml)(a,{getAsset:e,resolveWidget:t});(0,i.setEventTransfer)(n,"text",a),(0,i.setEventTransfer)(n,"html",l),(0,i.setEventTransfer)(n,"fragment",o.default.serializeNode(r.value.fragment)),n.preventDefault()};return{onPaste(e,t,n){const i=e.clipboardData;if((0,a.default)("shift",e))return n();if(i.types.includes("application/x-slate-fragment")){const e=o.default.deserializeNode(i.getData("application/x-slate-fragment"));return t.insertFragment(e)}const l=i.types.includes("text/html")&&i.getData("text/html"),u=l?(0,s.htmlToSlate)(l):(0,s.markdownToSlate)(i.getData("text/plain")),c=r.Document.fromJSON(u);return t.insertFragment(c)},onCopy(e,t,r){n(e,t)},onCut(e,t,r){n(e,t),t.delete()}}};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=({type:e})=>({commands:{toggleLink(t,n){if(!t.hasInline(e)){const r=n();if(!r)return;const i=t.value.selection;return i&&i.isCollapsed?t.insertInline({type:e,data:{url:r},nodes:[{object:"text",text:r}]}):t.wrapInline({type:e,data:{url:r}}).moveToEnd()}t.unwrapInline(e)}}});t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=({defaultType:e})=>({queries:{canInsertBeforeNode:(e,t)=>!e.isVoid(t)||!!e.value.document.getPreviousSibling(t.key),canInsertAfterNode(e,t){if(!e.isVoid(t))return!0;const n=e.value.document.getNextSibling(t.key);return n&&!e.isVoid(n)}},commands:{forceInsertBeforeNode(t,n){const r={type:e,object:"block"},i=t.value.document.getParent(n.key);return t.insertNodeByKey(i.key,0,r).moveToStartOfNode(i).focus()},forceInsertAfterNode:(t,n)=>t.moveToEndOfNode(n).insertBlock(e).focus(),moveToEndOfDocument(t){const n=t.value.document.nodes.last();return t.isVoid(n)&&t.insertBlock(e),t.moveToEndOfNode(n).focus()}}});t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(23);var i=({defaultType:e})=>({commands:{insertShortcode(t,n){const i=(e=>{if("code-block"===e.type)return r.Block.create({type:e.type,data:{shortcodeNew:!0}});const t=[r.Text.create("")],n=e.fields.toMap().mapKeys((e,t)=>t.get("name")).filter(e=>e.has("default")).map(e=>e.get("default"));return r.Block.create({type:"shortcode",data:{shortcode:e.id,shortcodeNew:!0,shortcodeData:n},nodes:t})})(n),{focusBlock:o}=t.value;""===o.text&&o.type===e?t.replaceNodeByKey(o.key,i):t.insertBlock(i),t.focus()}}});t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SLATE_BLOCK_PARENT_TYPES=t.SLATE_DEFAULT_BLOCK_TYPE=void 0;t.SLATE_DEFAULT_BLOCK_TYPE="paragraph";t.SLATE_BLOCK_PARENT_TYPES=["list-item","quote"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.HOT_KEY_MAP=void 0;var r,i=(r=n(105))&&r.__esModule?r:{default:r};t.HOT_KEY_MAP={bold:"mod+b",code:"mod+shift+c",italic:"mod+i",strikethrough:"mod+shift+s","heading-one":"mod+1","heading-two":"mod+2","heading-three":"mod+3","heading-four":"mod+4","heading-five":"mod+5","heading-six":"mod+6",link:"mod+k"};var o=(e,t)=>({onKeyDown(n,r,o){if(!(0,i.default)(e,n))return o();n.preventDefault(),r.command(t)}});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(23);const i={match:[{object:"block",type:"code-block"}],nodes:[{match:[{object:"text"}]}],normalize:(e,t)=>{switch(t.code){case"child_object_invalid":{const{child:n}=t;if(r.Inline.isInline(n)&&"break"===n.type)return void e.replaceNodeByKey(n.key,r.Text.create({text:"\n"}))}}}},o={match:[{object:"block",type:"code-block"}],isVoid:!0};var a=({voidCodeBlock:e}={})=>({rules:[{match:[{object:"document"}],nodes:[{match:[{type:"paragraph"},{type:"heading-one"},{type:"heading-two"},{type:"heading-three"},{type:"heading-four"},{type:"heading-five"},{type:"heading-six"},{type:"quote"},{type:"code-block"},{type:"bulleted-list"},{type:"numbered-list"},{type:"thematic-break"},{type:"table"},{type:"shortcode"}],min:1}],normalize:(e,t)=>{switch(t.code){case"child_min_invalid":{const n={object:"block",type:"paragraph"};return void e.insertNodeByKey(t.node.key,0,n)}}}},{match:[{object:"block",type:"quote"},{object:"block",type:"list-item"}],nodes:[{match:[{type:"paragraph"},{type:"heading-one"},{type:"heading-two"},{type:"heading-three"},{type:"heading-four"},{type:"heading-five"},{type:"heading-six"},{type:"quote"},{type:"code-block"},{type:"bulleted-list"},{type:"numbered-list"},{type:"thematic-break"},{type:"table"},{type:"shortcode"}]}]},{match:[{object:"block",type:"list-item"}],parent:[{type:"bulleted-list"},{type:"numbered-list"}]},{match:[{object:"block",type:"paragraph"},{object:"block",type:"heading-one"},{object:"block",type:"heading-two"},{object:"block",type:"heading-three"},{object:"block",type:"heading-four"},{object:"block",type:"heading-five"},{object:"block",type:"heading-six"},{object:"block",type:"table-cell"},{object:"inline",type:"link"}],nodes:[{match:[{object:"text"},{type:"link"},{type:"image"},{type:"break"}]}]},{match:[{object:"block",type:"bulleted-list"}],nodes:[{match:[{type:"list-item"}],min:1}],next:[{type:"paragraph"},{type:"heading-one"},{type:"heading-two"},{type:"heading-three"},{type:"heading-four"},{type:"heading-five"},{type:"heading-six"},{type:"quote"},{type:"code-block"},{type:"numbered-list"},{type:"thematic-break"},{type:"table"},{type:"shortcode"}],normalize:(e,t)=>{switch(t.code){case"child_min_invalid":return void e.removeNodeByKey(t.node.key);case"next_sibling_type_invalid":return void("bulleted-list"===t.next.type&&e.mergeNodeByKey(t.next.key))}}},{match:[{object:"block",type:"numbered-list"}],nodes:[{match:[{type:"list-item"}],min:1}],next:[{type:"paragraph"},{type:"heading-one"},{type:"heading-two"},{type:"heading-three"},{type:"heading-four"},{type:"heading-five"},{type:"heading-six"},{type:"quote"},{type:"code-block"},{type:"bulleted-list"},{type:"thematic-break"},{type:"table"},{type:"shortcode"}],normalize:(e,t)=>{switch(t.code){case"child_min_invalid":return void e.removeNodeByKey(t.node.key);case"next_sibling_type_invalid":return void("numbered-list"===t.next.type&&e.mergeNodeByKey(t.next.key))}}},{match:[{object:"inline",type:"image"},{object:"inline",type:"break"},{object:"block",type:"thematic-break"},{object:"block",type:"shortcode"}],isVoid:!0},{match:[{object:"block",type:"table"}],nodes:[{match:[{object:"block",type:"table-row"}]}]},{match:[{object:"block",type:"table-row"}],nodes:[{match:[{object:"block",type:"table-cell"}]}]},{match:[{object:"mark",type:"bold"},{object:"mark",type:"italic"},{object:"mark",type:"strikethrough"},{object:"mark",type:"code"}]},e?o:i]});t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(1)),i=l(n(2)),o=n(16),a=n(280),s=n(11);function l(e){return e&&e.__esModule?e:{default:e}}class u extends r.default.Component{render(){const{value:e,getAsset:t,resolveWidget:n}=this.props;if(null===e)return null;const r=(0,a.markdownToHtml)(e,{getAsset:t,resolveWidget:n});return(0,s.jsx)(o.WidgetPreviewContainer,{dangerouslySetInnerHTML:{__html:r}})}}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(u,"propTypes",{getAsset:i.default.func.isRequired,resolveWidget:i.default.func.isRequired,value:i.default.string});var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{minimal:{type:"boolean"},buttons:{type:"array",items:{type:"string",enum:["bold","italic","code","link","heading-one","heading-two","heading-three","heading-four","heading-five","heading-six","quote","bulleted-list","numbered-list"]}},editorComponents:{type:"array",items:{type:"string"}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetList=void 0;var r=a(n(1493)),i=a(n(400)),o=a(n(1498));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=i.default.previewComponent,c={Widget:(e={})=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"list",controlComponent:r.default,previewComponent:u,schema:o.default},e),controlComponent:r.default,previewComponent:u};t.NetlifyCmsWidgetList=c;var d=c;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(173)),i=y(n(18)),o=y(n(142)),a=y(n(170)),s=y(n(1)),l=y(n(2)),u=y(n(24)),c=n(11),d=n(4),f=y(n(140)),p=n(1676),h=y(n(400)),m=n(1497),g=n(16),v=n(166);function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){return e?e.join(",").replace(/,([^\s]|$)/g,", $1"):""}const w=h.default.controlComponent,x=(0,i.default)("div",{target:"e14bfka80",label:"ListItem"})(""),k=(0,p.SortableElement)(x),E=(0,i.default)(g.ListItemTopBar,{target:"e14bfka81",label:"StyledListItemTopBar"})("background-color:",g.colors.textFieldBorder,";"),S=(0,i.default)("div",{target:"e14bfka82",label:"NestedObjectLabel"})("display:",e=>e.collapsed?"block":"none",";border-top:0;color:",e=>e.error?g.colors.errorText:"inherit",";background-color:",g.colors.textFieldBorder,";padding:13px;border-radius:0 0 ",g.lengths.borderRadius," ",g.lengths.borderRadius,";"),O="\n display: none;\n ",T=`\n padding: ${g.lengths.objectWidgetTopBarContainerPadding};\n `,C={listControlItem:{name:"1pb8r5b-listControlItem",styles:"margin-top:18px;&:first-of-type{margin-top:26px;};label:listControlItem;"},listControlItemCollapsed:{name:"1u3t54p-listControlItemCollapsed",styles:"padding-bottom:0;;label:listControlItemCollapsed;"}},A=(0,p.SortableContainer)(({items:e,renderItem:t})=>(0,c.jsx)("div",null,e.map(t))),P="SINGLE",R="MULTIPLE",M="MIXED",I=(e,t,n,r)=>{const i=v.stringTemplate.addFileTemplateFields(t.get("path"),r.set("fields.label",n));return v.stringTemplate.compileStringTemplate(e,null,"",i)};class j extends s.default.Component{constructor(e){super(e),b(this,"validations",[]),b(this,"getValueType",()=>{const{field:e}=this.props;return e.get("fields")?R:e.get("field")?P:e.get(m.TYPES_KEY)?M:null}),b(this,"handleChange",e=>{const{onChange:t}=this.props,n=this.state.value,r=e.target.value,i=e.target.value.split(",");r.match(/,$/)&&n.match(/, $/)&&i.pop();const o=_(i);this.setState({value:o}),t((0,d.List)(i.map(e=>e.trim())))}),b(this,"handleFocus",()=>{this.props.setActiveStyle()}),b(this,"handleBlur",e=>{const t=e.target.value.split(",").map(e=>e.trim()).filter(e=>e);this.setState({value:_(t)}),this.props.setInactiveStyle()}),b(this,"handleAdd",e=>{e.preventDefault();const{value:t,onChange:n,field:r}=this.props,i=this.getValueType()===P?this.singleDefault():(0,d.fromJS)(this.multipleDefault(r.get("fields")));this.setState({itemsCollapsed:[...this.state.itemsCollapsed,!1],keys:[...this.state.keys,(0,f.default)()]}),n((t||(0,d.List)()).push(i))}),b(this,"singleDefault",()=>this.props.field.getIn(["field","default"],null)),b(this,"multipleDefault",e=>this.getFieldsDefault(e)),b(this,"handleAddType",(e,t)=>{const{value:n,onChange:r}=this.props,i=(0,d.fromJS)(this.mixedDefault(t,e));this.setState({itemsCollapsed:[...this.state.itemsCollapsed,!1],keys:[...this.state.keys,(0,f.default)()]}),r((n||(0,d.List)()).push(i))}),b(this,"mixedDefault",(e,t)=>{const n=this.props.field.get(m.TYPES_KEY).find(e=>e.get("name")===t),r=n.get("fields")||[n.get("field")];return this.getFieldsDefault(r,{[e]:t})}),b(this,"getFieldsDefault",(e,t={})=>e.reduce((e,t)=>{const n=t.get("field")||t.get("fields"),r="object"==t.get("widget"),i=t.get("name"),a=t.get("default",null);if(d.List.isList(n)&&r){const t=this.getFieldsDefault(n);return!(0,o.default)(t)&&(e[i]=t),e}if(d.Map.isMap(n)&&r){const t=this.getFieldsDefault([n]);return!(0,o.default)(t)&&(e[i]=t),e}return null!==a&&(e[i]=a),e},t)),b(this,"processControlRef",e=>{if(!e)return;const{validate:t,props:{validationKey:n}}=e;this.validations.push({key:n,validate:t})}),b(this,"validate",()=>{this.getValueType()?this.validations.forEach(e=>{e.validate()}):this.props.validate()}),b(this,"getObjectValue",e=>this.props.value.get(e)||(0,d.Map)()),b(this,"handleRemove",(e,t,n)=>{n.preventDefault();const{itemsCollapsed:r,keys:i}=this.state,{value:o,metadata:a,onChange:s,field:l,clearFieldErrors:u}=this.props,c=l.get("name"),d=this.getValueType()===P,f=this.validations,p=d?o.get(e):o.get(e).valueSeq(),h=a&&!a.isEmpty()?{[c]:a.removeIn(p)}:a;r.splice(e,1),i.splice(e,1),this.setState({itemsCollapsed:[...r],keys:[...i]}),s(o.remove(e),h),u(),f&&(this.validations=f.filter(e=>e.key!==t))}),b(this,"handleItemCollapseToggle",(e,t)=>{t.preventDefault();const{itemsCollapsed:n}=this.state,r=n.map((t,n)=>e===n?!t:t);this.setState({itemsCollapsed:r})}),b(this,"handleCollapseAllToggle",e=>{e.preventDefault();const{value:t,field:n}=this.props,{itemsCollapsed:r,listCollapsed:i}=this.state,o=n.get("minimize_collapsed",!1),a=n.get("collapsed",!0),s=r.every(e=>!0===e);if(o){let e=r;i&&a||(e=Array(t.size).fill(!i)),this.setState({listCollapsed:!i,itemsCollapsed:e})}else this.setState({itemsCollapsed:Array(t.size).fill(!s)})}),b(this,"onSortEnd",({oldIndex:e,newIndex:t})=>{const{value:n,clearFieldErrors:r}=this.props,{itemsCollapsed:i,keys:o}=this.state,a=n.get(e),s=n.delete(e).insert(t,a);this.props.onChange(s);const l=i[e];i.splice(e,1);const u=[...i];u.splice(t,0,l);const c=o.map((n,r)=>r===e||r===t?(0,f.default)():n);this.setState({itemsCollapsed:u,keys:c}),r(),this.validations=this.validations.filter(e=>c.includes(e.key))}),b(this,"hasError",e=>{const{fieldsErrors:t}=this.props;if(t&&t.size>0)return Object.values(t.toJS()).some(t=>t.some(t=>t.parentIds&&t.parentIds.includes(this.state.keys[e])))}),b(this,"renderItem",(e,t)=>{const{classNameWrapper:n,editorControl:i,onValidateObject:o,metadata:s,clearFieldErrors:l,fieldsErrors:u,controlRef:d,resolveWidget:f,parentIds:h,forID:g}=this.props,{itemsCollapsed:v,keys:y}=this.state,b=v[t],_=y[t];let x=this.props.field;const T=this.hasError(t);return this.getValueType()!==M||(x=(0,m.getTypedFieldForValue)(x,e),x)?(0,c.jsx)(k,{css:(0,r.default)([C.listControlItem,b&&C.listControlItemCollapsed],";label:ListControl;"),index:t,key:_},(0,c.jsx)(E,{collapsed:b,onCollapseToggle:(0,a.default)(this.handleItemCollapseToggle,t),onRemove:(0,a.default)(this.handleRemove,t,_),dragHandleHOC:p.SortableHandle,"data-testid":"styled-list-item-top-bar-"+_}),(0,c.jsx)(S,{collapsed:b,error:T},this.objectLabel(e)),(0,c.jsx)(c.ClassNames,null,({css:r,cx:a})=>(0,c.jsx)(w,{classNameWrapper:a(n,{[r`
+ ${O};
+ `]:b}),value:e,field:x,onChangeObject:this.handleChangeFor(t),editorControl:i,resolveWidget:f,metadata:s,forList:!0,onValidateObject:o,clearFieldErrors:l,fieldsErrors:u,ref:this.processControlRef,controlRef:d,validationKey:_,collapsed:b,"data-testid":"object-control-"+_,hasError:T,parentIds:[...h,g,_]}))):this.renderErroneousTypedItem(t,e)});const{field:t,value:n}=e,i=t.get("collapsed",!0),s=n&&Array(n.size).fill(i)||[],l=n&&Array.from({length:n.size},()=>(0,f.default)())||[];this.state={listCollapsed:i,itemsCollapsed:s,value:_(n),keys:l}}shouldComponentUpdate(){return!0}handleChangeFor(e){return(t,n,r)=>{const{value:i,metadata:o,onChange:a,field:s}=this.props,l=s.get("name"),u="object"===s.getIn(["field","widget"]),c=this.getValueType()!==P||this.getValueType()===P&&u?this.getObjectValue(e).set(t.get("name"),n):n,d={[l]:Object.assign(o?o.toJS():{},r||{})};a(i.set(e,c),d)}}objectLabel(e){const{field:t,entry:n}=this.props;switch(this.getValueType()){case M:{const r=(0,m.getTypedFieldForValue)(t,e),i=r.get("label",r.get("name")),o=r.get("summary",t.get("summary"));return o?I(o,n,i,e):i}case P:{const r=t.get("field"),i=r.get("label",r.get("name")),o=t.get("summary"),a=(0,d.fromJS)({[r.get("name")]:e});return o?I(o,n,i,a):i}case R:{const r=t.get("fields"),i=r&&r.first(),o=e.get(i.get("name")),a=t.get("summary");return((a?I(a,n,o,e):o)||"No "+i.get("name")).toString()}}return""}renderErroneousTypedItem(e,t){const n=this.props.field,i=(0,m.getErrorMessageForTypedFieldAndValue)(n,t),o="item-"+e;return(0,c.jsx)(k,{css:(0,r.default)([C.listControlItem,C.listControlItemCollapsed],";label:ListControl;"),index:e,key:o},(0,c.jsx)(E,{onCollapseToggle:null,onRemove:(0,a.default)(this.handleRemove,e,o),dragHandleHOC:p.SortableHandle}),(0,c.jsx)(S,{collapsed:!0,error:!0},i))}renderListControl(){const{value:e,forID:t,field:n,classNameWrapper:r}=this.props,{itemsCollapsed:i,listCollapsed:o}=this.state,a=e||(0,d.List)(),s=n.get("label",n.get("name")),l=n.get("label_singular")||n.get("label",n.get("name")),u=1===a.size?l.toLowerCase():s.toLowerCase(),f=n.get("minimize_collapsed",!1),p=i.every(e=>!0===e)&&(o||!f);return(0,c.jsx)(c.ClassNames,null,({cx:e,css:i})=>(0,c.jsx)("div",{id:t,className:e(r,i`
+ ${T}
+ `)},(0,c.jsx)(g.ObjectWidgetTopBar,{allowAdd:n.get("allow_add",!0),onAdd:this.handleAdd,types:n.get(m.TYPES_KEY,null),onAddType:e=>this.handleAddType(e,(0,m.resolveFieldKeyType)(n)),heading:`${a.size} ${u}`,label:l.toLowerCase(),onCollapseToggle:this.handleCollapseAllToggle,collapsed:p}),(!p||!f)&&(0,c.jsx)(A,{items:a,renderItem:this.renderItem,onSortEnd:this.onSortEnd,useDragHandle:!0,lockAxis:"y"})))}renderInput(){const{forID:e,classNameWrapper:t}=this.props,{value:n}=this.state;return(0,c.jsx)("input",{type:"text",id:e,value:n,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,className:t})}render(){return null!==this.getValueType()?this.renderListControl():this.renderInput()}}t.default=j,b(j,"propTypes",{metadata:u.default.map,onChange:l.default.func.isRequired,onChangeObject:l.default.func.isRequired,onValidateObject:l.default.func.isRequired,validate:l.default.func.isRequired,value:u.default.list,field:l.default.object,forID:l.default.string,controlRef:l.default.func,mediaPaths:u.default.map.isRequired,getAsset:l.default.func.isRequired,onOpenMediaLibrary:l.default.func.isRequired,onAddAsset:l.default.func.isRequired,onRemoveInsertedMedia:l.default.func.isRequired,classNameWrapper:l.default.string.isRequired,setActiveStyle:l.default.func.isRequired,setInactiveStyle:l.default.func.isRequired,editorControl:l.default.elementType.isRequired,resolveWidget:l.default.func.isRequired,clearFieldErrors:l.default.func.isRequired,fieldsErrors:u.default.map.isRequired,entry:u.default.map.isRequired}),b(j,"defaultProps",{value:(0,d.List)(),parentIds:[]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(1)),i=u(n(2)),o=u(n(24)),a=n(11),s=n(4),l=n(16);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d="\n padding: 6px 14px 14px;\n border-top: 0;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n ",f=`\n padding: ${l.lengths.objectWidgetTopBarContainerPadding};\n `,p="\n display: none;\n ";class h extends r.default.Component{constructor(e){super(e),c(this,"componentValidate",{}),c(this,"validate",()=>{const{field:e}=this.props;let t=e.get("field")||e.get("fields");t=s.List.isList(t)?t:(0,s.List)([t]),t.forEach(e=>{"hidden"!==e.get("widget")&&this.componentValidate[e.get("name")]()})}),c(this,"handleCollapseToggle",()=>{this.setState({collapsed:!this.state.collapsed})}),c(this,"renderFields",(e,t)=>e?e.map((e,t)=>this.controlFor(e,t)):this.controlFor(t)),this.state={collapsed:e.field.get("collapsed",!1)}}shouldComponentUpdate(){return!0}controlFor(e,t){const{value:n,onChangeObject:r,onValidateObject:i,clearFieldErrors:o,metadata:l,fieldsErrors:u,editorControl:c,controlRef:d,parentIds:f}=this.props;if("hidden"===e.get("widget"))return null;const p=e.get("name"),h=n&&s.Map.isMap(n)?n.get(p):n;return(0,a.jsx)(c,{key:t,field:e,value:h,onChange:r,clearFieldErrors:o,fieldsMetaData:l,fieldsErrors:u,onValidate:i,processControlRef:d&&d.bind(this),controlRef:d,parentIds:f})}render(){const{field:e,forID:t,classNameWrapper:n,forList:r,hasError:i}=this.props,o=r?this.props.collapsed:this.state.collapsed,s=e.get("fields"),u=e.get("field");return s||u?(0,a.jsx)(a.ClassNames,null,({css:e,cx:c})=>(0,a.jsx)("div",{id:t,className:c(n,e`
+ ${f}
+ `,{[e`
+ ${d}
+ `]:r},{[e`
+ border-color: ${l.colors.textFieldBorder};
+ `]:!!r&&!i})},r?null:(0,a.jsx)(l.ObjectWidgetTopBar,{collapsed:o,onCollapseToggle:this.handleCollapseToggle}),(0,a.jsx)("div",{className:c({[e`
+ ${p}
+ `]:o})},this.renderFields(s,u)))):(0,a.jsx)("h3",null,"No field(s) defined for this widget")}}t.default=h,c(h,"propTypes",{onChangeObject:i.default.func.isRequired,onValidateObject:i.default.func.isRequired,value:i.default.oneOfType([i.default.node,i.default.object,i.default.bool]),field:i.default.object,forID:i.default.string,classNameWrapper:i.default.string.isRequired,forList:i.default.bool,controlRef:i.default.func,editorControl:i.default.elementType.isRequired,resolveWidget:i.default.func.isRequired,clearFieldErrors:i.default.func.isRequired,fieldsErrors:o.default.map.isRequired,hasError:i.default.bool}),c(h,"defaultProps",{value:(0,s.Map)()})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(n(1));var r=a(n(2)),i=n(16),o=n(11);function a(e){return e&&e.__esModule?e:{default:e}}const s=({field:e})=>(0,o.jsx)(i.WidgetPreviewContainer,null,e&&e.get("fields")||e.get("field")||null);s.propTypes={field:r.default.node};var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{collapsed:{type:"boolean"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTypedFieldForValue=function(e,t){const n=r(e),i=e.get("types"),o=t.get(n);return i.find(e=>e.get("name")===o)},t.resolveFunctionForTypedField=function(e){const t=r(e),n=e.get("types");return e=>{const r=e.get(t);return n.find(e=>e.get("name")===r)}},t.resolveFieldKeyType=r,t.getErrorMessageForTypedFieldAndValue=function(e,t){const n=r(e),i=t.get(n);let o;o=i?`Error: item has illegal '${n}' property: '${i}'`:`Error: item has no '${n}' property`;return o},t.DEFAULT_TYPE_KEY=t.TYPE_KEY=t.TYPES_KEY=void 0;t.TYPES_KEY="types";t.TYPE_KEY="typeKey";function r(e){return e.get("typeKey","type")}t.DEFAULT_TYPE_KEY="type"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{allow_add:{type:"boolean"},collapsed:{type:"boolean"},summary:{type:"string"},minimize_collapsed:{type:"boolean"},label_singular:{type:"string"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetRelation=void 0;var r=a(n(1500)),i=a(n(1502)),o=a(n(1503));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={Widget:(e={})=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"relation",controlComponent:r.default,previewComponent:i.default,schema:o.default},e),controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetRelation=u;var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=b(n(211)),i=b(n(1501)),o=b(n(82)),a=b(n(230)),s=b(n(162)),l=b(n(142)),u=b(n(376)),c=b(n(1)),d=b(n(2)),f=b(n(24)),p=n(377),h=n(4),m=n(16),g=n(166),v=n(558),y=n(11);function b(e){return e&&e.__esModule?e:{default:e}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const w=({index:e,style:t,data:n})=>(0,y.jsx)("div",{style:t},n.options[e]),x=e=>{if(e.isLoading||e.options.length<=0||!Array.isArray(e.children))return e.children;const t=e.children;return(0,y.jsx)(v.FixedSizeList,{style:{width:"100%"},width:300,height:Math.min(300,30*t.length+10),itemCount:t.length,itemSize:30,itemData:{options:t}},w)};function k(e){return e&&e.value?e.value:""}function E(e){return"string"==typeof e?{label:e,value:e}:h.Map.isMap(e)?e.toJS():e}function S(e){const t=h.List.isList(e)?e.toJS():e;return t&&Array.isArray(t)?t:null}function O(e,t){return(0,i.default)(e.concat(t),e=>e.value)}class T extends c.default.Component{constructor(...e){super(...e),_(this,"didInitialSearch",!1),_(this,"mounted",!1),_(this,"state",{initialOptions:[]}),_(this,"handleChange",e=>{const{onChange:t,field:n}=this.props;let r,i;Array.isArray(e)?(this.setState({initialOptions:e}),r=e.map(k),i=!(0,l.default)(e)&&{[n.get("name")]:{[n.get("collection")]:{[(0,s.default)(r)]:(0,s.default)(e).data}}}||{},t((0,h.fromJS)(r),i)):(this.setState({initialOptions:[e]}),r=k(e),i=e&&{[n.get("name")]:{[n.get("collection")]:{[r]:e.data}}},t(r,i))}),_(this,"parseNestedFields",(e,t)=>{if(g.stringTemplate.extractTemplateVars(t).length<=0)return(0,o.default)(e.data,t);const n=g.stringTemplate.addFileTemplateFields(e.path,(0,h.fromJS)(e.data));return g.stringTemplate.compileStringTemplate(t,null,e.slug,n)}),_(this,"parseHitOptions",e=>{const{field:t}=this.props,n=t.get("valueField"),r=t.get("displayFields")||(0,h.List)([t.get("valueField")]);return e.reduce((e,t)=>{const i=g.stringTemplate.expandPath({data:t.data,path:n});for(let n=0;n<i.length;n++){const o=r.toJS().map(e=>{const r=g.stringTemplate.expandPath({data:t.data,path:e});return this.parseNestedFields(t,r[n]||r[0])}).join(" "),a=this.parseNestedFields(t,i[n]);e.push({data:t.data,value:a,label:o})}return e},[])}),_(this,"loadOptions",(0,a.default)((e,t)=>{const{field:n,query:r,forID:i}=this.props,o=n.get("collection"),a=n.get("searchFields"),s=n.get("optionsLength")||20;r(i,o,h.List.isList(a)?a.toJS():[a],e,n.get("file"),s).then(({payload:e})=>{var n;const r=(null===(n=e.response)||void 0===n?void 0:n.hits)||[],i=this.parseHitOptions(r),o=O(this.state.initialOptions,i);t(o)})},500))}shouldComponentUpdate(e){return this.props.value!==e.value||this.props.hasActiveStyle!==e.hasActiveStyle||this.props.queryHits!==e.queryHits}async componentDidMount(){this.mounted=!0;const{forID:e,field:t,value:n,query:i}=this.props,o=t.get("collection"),a=t.get("file"),s=this.isMultiple()?S(n):[n];if(s&&s.length>0){const n=await Promise.all(s.map((n,r)=>i(e,o,[t.get("valueField")],n,a,1).then(({payload:e})=>{var t;const n=(null===(t=e.response)||void 0===t?void 0:t.hits)||[];return{options:this.parseHitOptions(n),index:r}}))),l=[].concat(...(0,r.default)(n,({index:e})=>e).map(({options:e})=>e));this.mounted&&this.setState({initialOptions:l})}}componentWillUnmount(){this.mounted=!1}componentDidUpdate(e){if(this.didInitialSearch)return;const{value:t,field:n,forID:r,queryHits:i,onChange:o}=this.props;if(i!==e.queryHits&&i.get(r)){this.didInitialSearch=!0;const e=n.get("valueField"),a=i.get(r);if(t){(h.List.isList(t)?t:(0,h.List)([t])).forEach(r=>{const i=a.find(t=>this.parseNestedFields(t,e)===r);i&&o(t,{[n.get("name")]:{[n.get("collection")]:{[r]:i.data}}})})}}}isMultiple(){return this.props.field.get("multiple",!1)}render(){const{value:e,field:t,forID:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:o,queryHits:a}=this.props,s=this.isMultiple(),l=!t.get("required",!0)||s,c=a.get(n,[]),d=this.parseHitOptions(c),f=function({value:e,options:t,isMultiple:n}){if(n){const n=S(e);if(null===n)return null;return n.map(e=>t.find(t=>t.value===(e.value||e))).filter(Boolean).map(E)}return(0,u.default)(t,["value",e])||null}({options:O(this.state.initialOptions,d),value:e,isMultiple:s});return(0,y.jsx)(p.Async,{components:{MenuList:x},value:f,inputId:n,cacheOptions:!0,defaultOptions:!0,loadOptions:this.loadOptions,onChange:this.handleChange,className:r,onFocus:i,onBlur:o,styles:m.reactSelectStyles,isMulti:s,isClearable:l,placeholder:""})}}t.default=T,_(T,"propTypes",{onChange:d.default.func.isRequired,forID:d.default.string.isRequired,value:d.default.node,field:f.default.map,fetchID:d.default.string,query:d.default.func.isRequired,queryHits:d.default.oneOfType([d.default.array,d.default.object]),classNameWrapper:d.default.string.isRequired,setActiveStyle:d.default.func.isRequired,setInactiveStyle:d.default.func.isRequired})},function(e,t,n){var r=n(102),i=n(325);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(n(1));var r=a(n(2)),i=n(16),o=n(11);function a(e){return e&&e.__esModule?e:{default:e}}const s=({value:e})=>(0,o.jsx)(i.WidgetPreviewContainer,null,e);s.propTypes={value:r.default.node};var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{collection:{type:"string"},valueField:{type:"string"},searchFields:{type:"array",minItems:1,items:{type:"string"}},file:{type:"string"},multiple:{type:"boolean"},displayFields:{type:"array",minItems:1,items:{type:"string"}},optionsLength:{type:"integer"}},required:["collection","valueField","searchFields"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetBoolean=void 0;var r,i=(r=n(1505))&&r.__esModule?r:{default:r};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s={Widget:(e={})=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"boolean",controlComponent:i.default},e),controlComponent:i.default};t.NetlifyCmsWidgetBoolean=s;var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(2)),i=l(n(1)),o=l(n(24)),a=n(11),s=n(16);function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const d=e=>{let{isActive:t}=e,n=c(e,["isActive"]);return(0,a.jsx)(s.ToggleBackground,u({css:(0,a.css)("background-color:",t?s.colors.active:s.colors.textFieldBorder,";;label:BooleanBackground;")},n))};class f extends i.default.Component{render(){const{value:e,forID:t,onChange:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:o}=this.props;return(0,a.jsx)("div",{className:r},(0,a.jsx)(s.Toggle,{id:t,active:e,onChange:n,onFocus:i,onBlur:o,Background:d}))}}t.default=f,f.propTypes={field:o.default.map.isRequired,onChange:r.default.func.isRequired,classNameWrapper:r.default.string.isRequired,setActiveStyle:r.default.func.isRequired,setInactiveStyle:r.default.func.isRequired,forID:r.default.string,value:r.default.bool},f.defaultProps={value:!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetMap=void 0;var r=a(n(1507)),i=a(n(1511)),o=a(n(1512));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=(0,r.default)(),c={Widget:(e={})=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"map",controlComponent:u,previewComponent:i.default,schema:o.default},e),controlComponent:u,previewComponent:i.default};t.NetlifyCmsWidgetMap=c;var d=c;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({getFormat:e,getMap:t}={}){var n,m;return m=n=class extends r.default.Component{constructor(e){super(e),this.mapContainer=r.default.createRef()}componentDidMount(){const{field:n,onChange:r,value:i}=this.props,o=e?e(n):new u.default(v),a=i?[o.readFeature(i)]:[],m=new h.default({features:a,wrapX:!1}),g=new f.default({source:m}),y=this.mapContainer.current,b=t?t(y,g):((e,t)=>new s.default({target:e,layers:[new d.default({source:new p.default}),t],view:new l.default({center:[0,0],zoom:2})}))(y,g);a.length>0&&b.getView().fit(m.getExtent(),{maxZoom:16,padding:[80,80,80,80]});const _=new c.default({source:m,type:n.get("type","Point")});b.addInteraction(_);const w={decimals:n.get("decimals",7)};_.on("drawend",({feature:e})=>{m.clear(),r(o.writeGeometry(e.getGeometry(),w))})}render(){return(0,o.jsx)(o.ClassNames,null,({cx:e,css:t})=>(0,o.jsx)("div",{className:e(this.props.classNameWrapper,t`
+ ${a.default};
+ padding: 0;
+ overflow: hidden;
+ `),ref:this.mapContainer}))}},g(n,"propTypes",{onChange:i.default.func.isRequired,field:i.default.object.isRequired,value:i.default.node}),g(n,"defaultProps",{value:""}),m};var r=m(n(1)),i=m(n(2)),o=n(11),a=m(n(1508)),s=m(n(1675)),l=m(n(411)),u=m(n(1678)),c=m(n(406)),d=m(n(1682)),f=m(n(408)),p=m(n(1677)),h=m(n(410));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}const v={dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"}},function(e,t,n){var r=n(1509);e.exports="string"==typeof r?r:r.toString()},function(e,t,n){(t=n(229)(!1)).push([e.i,'.ol-box {\n box-sizing: border-box;\n border-radius: 2px;\n border: 2px solid blue;\n}\n\n.ol-mouse-position {\n top: 8px;\n right: 8px;\n position: absolute;\n}\n\n.ol-scale-line {\n background: rgba(0,60,136,0.3);\n border-radius: 4px;\n bottom: 8px;\n left: 8px;\n padding: 2px;\n position: absolute;\n}\n.ol-scale-line-inner {\n border: 1px solid #eee;\n border-top: none;\n color: #eee;\n font-size: 10px;\n text-align: center;\n margin: 1px;\n will-change: contents, width;\n}\n.ol-overlay-container {\n will-change: left,right,top,bottom;\n}\n\n.ol-unsupported {\n display: none;\n}\n.ol-viewport, .ol-unselectable {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n}\n.ol-selectable {\n -webkit-touch-callout: default;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n.ol-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n.ol-grab {\n cursor: move;\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n}\n.ol-control {\n position: absolute;\n background-color: rgba(255,255,255,0.4);\n border-radius: 4px;\n padding: 2px;\n}\n.ol-control:hover {\n background-color: rgba(255,255,255,0.6);\n}\n.ol-zoom {\n top: .5em;\n left: .5em;\n}\n.ol-rotate {\n top: .5em;\n right: .5em;\n transition: opacity .25s linear, visibility 0s linear;\n}\n.ol-rotate.ol-hidden {\n opacity: 0;\n visibility: hidden;\n transition: opacity .25s linear, visibility 0s linear .25s;\n}\n.ol-zoom-extent {\n top: 4.643em;\n left: .5em;\n}\n.ol-full-screen {\n right: .5em;\n top: .5em;\n}\n@media print {\n .ol-control {\n display: none;\n }\n}\n\n.ol-control button {\n display: block;\n margin: 1px;\n padding: 0;\n color: white;\n font-size: 1.14em;\n font-weight: bold;\n text-decoration: none;\n text-align: center;\n height: 1.375em;\n width: 1.375em;\n line-height: .4em;\n background-color: rgba(0,60,136,0.5);\n border: none;\n border-radius: 2px;\n}\n.ol-control button::-moz-focus-inner {\n border: none;\n padding: 0;\n}\n.ol-zoom-extent button {\n line-height: 1.4em;\n}\n.ol-compass {\n display: block;\n font-weight: normal;\n font-size: 1.2em;\n will-change: transform;\n}\n.ol-touch .ol-control button {\n font-size: 1.5em;\n}\n.ol-touch .ol-zoom-extent {\n top: 5.5em;\n}\n.ol-control button:hover,\n.ol-control button:focus {\n text-decoration: none;\n background-color: rgba(0,60,136,0.7);\n}\n.ol-zoom .ol-zoom-in {\n border-radius: 2px 2px 0 0;\n}\n.ol-zoom .ol-zoom-out {\n border-radius: 0 0 2px 2px;\n}\n\n\n.ol-attribution {\n text-align: right;\n bottom: .5em;\n right: .5em;\n max-width: calc(100% - 1.3em);\n}\n\n.ol-attribution ul {\n margin: 0;\n padding: 0 .5em;\n font-size: .7rem;\n line-height: 1.375em;\n color: #000;\n text-shadow: 0 0 2px #fff;\n}\n.ol-attribution li {\n display: inline;\n list-style: none;\n line-height: inherit;\n}\n.ol-attribution li:not(:last-child):after {\n content: " ";\n}\n.ol-attribution img {\n max-height: 2em;\n max-width: inherit;\n vertical-align: middle;\n}\n.ol-attribution ul, .ol-attribution button {\n display: inline-block;\n}\n.ol-attribution.ol-collapsed ul {\n display: none;\n}\n.ol-attribution:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-attribution.ol-uncollapsible {\n bottom: 0;\n right: 0;\n border-radius: 4px 0 0;\n height: 1.1em;\n line-height: 1em;\n}\n.ol-attribution.ol-uncollapsible img {\n margin-top: -.2em;\n max-height: 1.6em;\n}\n.ol-attribution.ol-uncollapsible button {\n display: none;\n}\n\n.ol-zoomslider {\n top: 4.5em;\n left: .5em;\n height: 200px;\n}\n.ol-zoomslider button {\n position: relative;\n height: 10px;\n}\n\n.ol-touch .ol-zoomslider {\n top: 5.5em;\n}\n\n.ol-overviewmap {\n left: 0.5em;\n bottom: 0.5em;\n}\n.ol-overviewmap.ol-uncollapsible {\n bottom: 0;\n left: 0;\n border-radius: 0 4px 0 0;\n}\n.ol-overviewmap .ol-overviewmap-map,\n.ol-overviewmap button {\n display: inline-block;\n}\n.ol-overviewmap .ol-overviewmap-map {\n border: 1px solid #7b98bc;\n height: 150px;\n margin: 2px;\n width: 150px;\n}\n.ol-overviewmap:not(.ol-collapsed) button{\n bottom: 1px;\n left: 2px;\n position: absolute;\n}\n.ol-overviewmap.ol-collapsed .ol-overviewmap-map,\n.ol-overviewmap.ol-uncollapsible button {\n display: none;\n}\n.ol-overviewmap:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-overviewmap-box {\n border: 2px dotted rgba(0,60,136,0.7);\n}\n\n.ol-overviewmap .ol-overviewmap-box:hover {\n cursor: move;\n}\n',""]),e.exports=t},function(e,t,n){e.exports=function(){"use strict";function e(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function t(e,t){return e<t?-1:e>t?1:0}return function(n,r,i,o,a){!function t(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1),f=Math.max(i,Math.floor(r-l*c/s+d)),p=Math.min(o,Math.floor(r+(s-l)*c/s+d));t(n,r,f,p,a)}var h=n[r],m=i,g=o;for(e(n,i,r),a(n[o],h)>0&&e(n,i,o);m<g;){for(e(n,m,g),m++,g--;a(n[m],h)<0;)m++;for(;a(n[g],h)>0;)g--}0===a(n[i],h)?e(n,i,g):(g++,e(n,g,o)),g<=r&&(i=g+1),r<=g&&(o=g-1)}}(n,r,i||0,o||n.length-1,a||t)}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(n(1));var r=a(n(2)),i=n(16),o=n(11);function a(e){return e&&e.__esModule?e:{default:e}}const s=({value:e})=>(0,o.jsx)(i.WidgetPreviewContainer,null,e?e.toString():null);s.propTypes={value:r.default.string};var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{decimals:{type:"integer"},type:{type:"string",enum:["Point","LineString","Polygon"]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetDate=void 0;var r=o(n(1514)),i=o(n(1522));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l={Widget:(e={})=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"date",controlComponent:r.default,previewComponent:i.default},e),controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetDate=l;var u=l;t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(262)),i=d(n(1)),o=d(n(2)),a=n(11),s=d(n(647)),l=d(n(648)),u=d(n(139)),c=n(107);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,r.default)(()=>console.warn(c.oneLine`
+ Netlify CMS config: the date widget has been deprecated and will
+ be removed in the next major release. Please use the datetime widget instead.
+`));class h extends i.default.Component{constructor(...e){super(...e),f(this,"formats",this.getFormats()),f(this,"defaultValue",this.getDefaultValue()),f(this,"isValidDate",e=>u.default.isMoment(e)||e instanceof Date||""===e),f(this,"handleChange",e=>{if(!this.isValidDate(e))return;const{onChange:t}=this.props,{format:n}=this.formats;if(n){t(e?(0,u.default)(e).format(n):"")}else{t(u.default.isMoment(e)?e.toDate():e)}}),f(this,"onBlur",e=>{const{setInactiveStyle:t}=this.props;if(!this.isValidDate(e)){(0,u.default)(e).isValid()?this.handleChange(e):window.alert("The date you entered is invalid.")}t()})}getFormats(){const{field:e,includeTime:t}=this.props,n=e.get("format"),r=e.get("dateFormat");let i=e.get("timeFormat");return void 0===i&&(i=!!t),{format:n,dateFormat:r,timeFormat:i}}getDefaultValue(){const{field:e}=this.props;return e.get("default")}componentDidMount(){p();const{value:e}=this.props;void 0===e&&setTimeout(()=>{this.handleChange(void 0===this.defaultValue?new Date:this.defaultValue)},0)}render(){const{forID:e,value:t,classNameWrapper:n,setActiveStyle:r}=this.props,{format:i,dateFormat:o,timeFormat:c}=this.formats;return(0,a.jsx)("div",{css:(0,a.css)(s.default,";;label:DateControl;")},(0,a.jsx)(l.default,{dateFormat:o,timeFormat:c,value:(0,u.default)(t,i),onChange:this.handleChange,onFocus:r,onBlur:this.onBlur,inputProps:{className:n,id:e}}))}}t.default=h,f(h,"propTypes",{field:o.default.object.isRequired,forID:o.default.string,onChange:o.default.func.isRequired,classNameWrapper:o.default.string.isRequired,setActiveStyle:o.default.func.isRequired,setInactiveStyle:o.default.func.isRequired,value:o.default.oneOfType([o.default.object,o.default.string]),includeTime:o.default.bool})},function(e,t,n){(t=n(229)(!1)).push([e.i,"/*!\n * https://github.com/YouCanBookMe/react-datetime\n */\n\n.rdt {\n position: relative;\n}\n.rdtPicker {\n display: none;\n position: absolute;\n 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-child th {\n cursor: pointer;\n}\n.rdtPicker thead tr:first-child 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",""]),e.exports=t},function(e,t,n){"use strict";var r=n(1),i=n(143)({viewComponents:{days:n(1517),months:n(1518),years:n(1519),time:n(1520)},render:function(){return r.createElement(this.viewComponents[this.props.view],this.props.viewProps)}});e.exports=i},function(e,t,n){"use strict";var r=n(1),i=n(143),o=n(139),a=i({render:function(){var e,t=this.renderFooter(),n=this.props.viewDate,i=n.localeData();return e=[r.createElement("thead",{key:"th"},[r.createElement("tr",{key:"h"},[r.createElement("th",{key:"p",className:"rdtPrev",onClick:this.props.subtractTime(1,"months")},r.createElement("span",{},"‹")),r.createElement("th",{key:"s",className:"rdtSwitch",onClick:this.props.showView("months"),colSpan:5,"data-value":this.props.viewDate.month()},i.months(n)+" "+n.year()),r.createElement("th",{key:"n",className:"rdtNext",onClick:this.props.addTime(1,"months")},r.createElement("span",{},"›"))]),r.createElement("tr",{key:"d"},this.getDaysOfWeek(i).map((function(e,t){return r.createElement("th",{key:e+t,className:"dow"},e)})))]),r.createElement("tbody",{key:"tb"},this.renderDays())],t&&e.push(t),r.createElement("div",{className:"rdtDays"},r.createElement("table",{},e))},getDaysOfWeek:function(e){var t=e._weekdaysMin,n=e.firstDayOfWeek(),r=[],i=0;return t.forEach((function(e){r[(7+i++-n)%7]=e})),r},renderDays:function(){var e,t,n,i,a=this.props.viewDate,s=this.props.selectedDate&&this.props.selectedDate.clone(),l=a.clone().subtract(1,"months"),u=a.year(),c=a.month(),d=[],f=[],p=this.props.renderDay||this.renderDay,h=this.props.isValidDate||this.alwaysValidDate;l.date(l.daysInMonth()).startOf("week");for(var m=l.clone().add(42,"d");l.isBefore(m);)e="rdtDay",i=l.clone(),l.year()===u&&l.month()<c||l.year()<u?e+=" rdtOld":(l.year()===u&&l.month()>c||l.year()>u)&&(e+=" rdtNew"),s&&l.isSame(s,"day")&&(e+=" rdtActive"),l.isSame(o(),"day")&&(e+=" rdtToday"),(t=!h(i,s))&&(e+=" rdtDisabled"),n={key:l.format("M_D"),"data-value":l.date(),className:e},t||(n.onClick=this.updateSelectedDate),f.push(p(n,i,s)),7===f.length&&(d.push(r.createElement("tr",{key:l.format("M_D")},f)),f=[]),l.add(1,"d");return d},updateSelectedDate:function(e){this.props.updateSelectedDate(e,!0)},renderDay:function(e,t){return r.createElement("td",e,t.date())},renderFooter:function(){if(!this.props.timeFormat)return"";var e=this.props.selectedDate||this.props.viewDate;return r.createElement("tfoot",{key:"tf"},r.createElement("tr",{},r.createElement("td",{onClick:this.props.showView("time"),colSpan:7,className:"rdtTimeToggle"},e.format(this.props.timeFormat))))},alwaysValidDate:function(){return 1}});e.exports=a},function(e,t,n){"use strict";var r=n(1),i=n(143)({render:function(){return r.createElement("div",{className:"rdtMonths"},[r.createElement("table",{key:"a"},r.createElement("thead",{},r.createElement("tr",{},[r.createElement("th",{key:"prev",className:"rdtPrev",onClick:this.props.subtractTime(1,"years")},r.createElement("span",{},"‹")),r.createElement("th",{key:"year",className:"rdtSwitch",onClick:this.props.showView("years"),colSpan:2,"data-value":this.props.viewDate.year()},this.props.viewDate.year()),r.createElement("th",{key:"next",className:"rdtNext",onClick:this.props.addTime(1,"years")},r.createElement("span",{},"›"))]))),r.createElement("table",{key:"months"},r.createElement("tbody",{key:"b"},this.renderMonths()))])},renderMonths:function(){for(var e,t,n,i,o,a=this.props.selectedDate,s=this.props.viewDate.month(),l=this.props.viewDate.year(),u=[],c=0,d=[],f=this.props.renderMonth||this.renderMonth,p=this.props.isValidDate||this.alwaysValidDate;c<12;)e="rdtMonth",o=(n=this.props.viewDate.clone().set({year:l,month:c,date:1})).endOf("month").format("D"),(i=void 0===Array.from({length:o},(function(e,t){return t+1})).find((function(e){var t=n.clone().set("date",e);return p(t)})))&&(e+=" rdtDisabled"),a&&c===a.month()&&l===a.year()&&(e+=" rdtActive"),t={key:c,"data-value":c,className:e},i||(t.onClick="months"===this.props.updateOn?this.updateSelectedMonth:this.props.setDate("month")),d.push(f(t,c,l,a&&a.clone())),4===d.length&&(u.push(r.createElement("tr",{key:s+"_"+u.length},d)),d=[]),c++;return u},updateSelectedMonth:function(e){this.props.updateSelectedDate(e)},renderMonth:function(e,t){var n,i=this.props.viewDate,o=i.localeData().monthsShort(i.month(t)).substring(0,3);return r.createElement("td",e,(n=o).charAt(0).toUpperCase()+n.slice(1))},alwaysValidDate:function(){return 1}});e.exports=i},function(e,t,n){"use strict";var r=n(1),i=n(143)({render:function(){var e=10*parseInt(this.props.viewDate.year()/10,10);return r.createElement("div",{className:"rdtYears"},[r.createElement("table",{key:"a"},r.createElement("thead",{},r.createElement("tr",{},[r.createElement("th",{key:"prev",className:"rdtPrev",onClick:this.props.subtractTime(10,"years")},r.createElement("span",{},"‹")),r.createElement("th",{key:"year",className:"rdtSwitch",onClick:this.props.showView("years"),colSpan:2},e+"-"+(e+9)),r.createElement("th",{key:"next",className:"rdtNext",onClick:this.props.addTime(10,"years")},r.createElement("span",{},"›"))]))),r.createElement("table",{key:"years"},r.createElement("tbody",{},this.renderYears(e)))])},renderYears:function(e){var t,n,i,o,a,s=[],l=-1,u=[],c=this.props.renderYear||this.renderYear,d=this.props.selectedDate,f=this.props.isValidDate||this.alwaysValidDate;for(e--;l<11;)t="rdtYear",a=(i=this.props.viewDate.clone().set({year:e,month:0,date:1})).endOf("year").format("DDD"),(o=void 0===Array.from({length:a},(function(e,t){return t+1})).find((function(e){var t=i.clone().dayOfYear(e);return f(t)})))&&(t+=" rdtDisabled"),d&&d.year()===e&&(t+=" rdtActive"),n={key:e,"data-value":e,className:t},o||(n.onClick="years"===this.props.updateOn?this.updateSelectedYear:this.props.setDate("year")),s.push(c(n,e,d&&d.clone())),4===s.length&&(u.push(r.createElement("tr",{key:l},s)),s=[]),e++,l++;return u},updateSelectedYear:function(e){this.props.updateSelectedDate(e)},renderYear:function(e,t){return r.createElement("td",e,t)},alwaysValidDate:function(){return 1}});e.exports=i},function(e,t,n){"use strict";var r=n(1),i=n(143),o=n(649),a=i({getInitialState:function(){return this.calculateState(this.props)},calculateState:function(e){var t=e.selectedDate||e.viewDate,n=e.timeFormat,r=[];-1!==n.toLowerCase().indexOf("h")&&(r.push("hours"),-1!==n.indexOf("m")&&(r.push("minutes"),-1!==n.indexOf("s")&&r.push("seconds")));var i=t.format("H"),o=!1;return null!==this.state&&-1!==this.props.timeFormat.toLowerCase().indexOf(" a")&&(o=-1!==this.props.timeFormat.indexOf(" A")?i>=12?"PM":"AM":i>=12?"pm":"am"),{hours:i,minutes:t.format("mm"),seconds:t.format("ss"),milliseconds:t.format("SSS"),daypart:o,counters:r}},renderCounter:function(e){if("daypart"!==e){var t=this.state[e];return"hours"===e&&-1!==this.props.timeFormat.toLowerCase().indexOf(" a")&&0===(t=(t-1)%12+1)&&(t=12),r.createElement("div",{key:e,className:"rdtCounter"},[r.createElement("span",{key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("increase",e),onContextMenu:this.disableContextMenu},"▲"),r.createElement("div",{key:"c",className:"rdtCount"},t),r.createElement("span",{key:"do",className:"rdtBtn",onMouseDown:this.onStartClicking("decrease",e),onContextMenu:this.disableContextMenu},"▼")])}return""},renderDayPart:function(){return r.createElement("div",{key:"dayPart",className:"rdtCounter"},[r.createElement("span",{key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("toggleDayPart","hours"),onContextMenu:this.disableContextMenu},"▲"),r.createElement("div",{key:this.state.daypart,className:"rdtCount"},this.state.daypart),r.createElement("span",{key:"do",className:"rdtBtn",onMouseDown:this.onStartClicking("toggleDayPart","hours"),onContextMenu:this.disableContextMenu},"▼")])},render:function(){var e=this,t=[];return this.state.counters.forEach((function(n){t.length&&t.push(r.createElement("div",{key:"sep"+t.length,className:"rdtCounterSeparator"},":")),t.push(e.renderCounter(n))})),!1!==this.state.daypart&&t.push(e.renderDayPart()),3===this.state.counters.length&&-1!==this.props.timeFormat.indexOf("S")&&(t.push(r.createElement("div",{className:"rdtCounterSeparator",key:"sep5"},":")),t.push(r.createElement("div",{className:"rdtCounter rdtMilli",key:"m"},r.createElement("input",{value:this.state.milliseconds,type:"text",onChange:this.updateMilli})))),r.createElement("div",{className:"rdtTime"},r.createElement("table",{},[this.renderHeader(),r.createElement("tbody",{key:"b"},r.createElement("tr",{},r.createElement("td",{},r.createElement("div",{className:"rdtCounters"},t))))]))},componentWillMount:function(){var e=this;e.timeConstraints={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}},["hours","minutes","seconds","milliseconds"].forEach((function(t){o(e.timeConstraints[t],e.props.timeConstraints[t])})),this.setState(this.calculateState(this.props))},componentWillReceiveProps:function(e){this.setState(this.calculateState(e))},updateMilli:function(e){var t=parseInt(e.target.value,10);t===e.target.value&&t>=0&&t<1e3&&(this.props.setTime("milliseconds",t),this.setState({milliseconds:t}))},renderHeader:function(){if(!this.props.dateFormat)return null;var e=this.props.selectedDate||this.props.viewDate;return r.createElement("thead",{key:"h"},r.createElement("tr",{},r.createElement("th",{className:"rdtSwitch",colSpan:4,onClick:this.props.showView("days")},e.format(this.props.dateFormat))))},onStartClicking:function(e,t){var n=this;return function(){var r={};r[t]=n[e](t),n.setState(r),n.timer=setTimeout((function(){n.increaseTimer=setInterval((function(){r[t]=n[e](t),n.setState(r)}),70)}),500),n.mouseUpListener=function(){clearTimeout(n.timer),clearInterval(n.increaseTimer),n.props.setTime(t,n.state[t]),document.body.removeEventListener("mouseup",n.mouseUpListener),document.body.removeEventListener("touchend",n.mouseUpListener)},document.body.addEventListener("mouseup",n.mouseUpListener),document.body.addEventListener("touchend",n.mouseUpListener)}},disableContextMenu:function(e){return e.preventDefault(),!1},padValues:{hours:1,minutes:2,seconds:2,milliseconds:3},toggleDayPart:function(e){var t=parseInt(this.state[e],10)+12;return t>this.timeConstraints[e].max&&(t=this.timeConstraints[e].min+(t-(this.timeConstraints[e].max+1))),this.pad(e,t)},increase:function(e){var t=parseInt(this.state[e],10)+this.timeConstraints[e].step;return t>this.timeConstraints[e].max&&(t=this.timeConstraints[e].min+(t-(this.timeConstraints[e].max+1))),this.pad(e,t)},decrease:function(e){var t=parseInt(this.state[e],10)-this.timeConstraints[e].step;return t<this.timeConstraints[e].min&&(t=this.timeConstraints[e].max+1-(this.timeConstraints[e].min-t)),this.pad(e,t)},pad:function(e,t){for(var n=t+"";n.length<this.padValues[e];)n="0"+n;return n}});e.exports=a},function(e,t,n){"use strict";n.r(t),n.d(t,"IGNORE_CLASS_NAME",(function(){return f}));var r=n(1),i=n(49);function o(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var a,s,l=(void 0===a&&(a=0),function(){return++a}),u={},c={},d=["touchstart","touchmove"],f="ignore-react-onclickoutside";function p(e,t){var n=null;return-1!==d.indexOf(t)&&s&&(n={passive:!e.props.preventDefault}),n}t.default=function(e,t){var n,a,d=e.displayName||e.name||"Component";return a=n=function(n){var a,f;function h(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+d+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():Object(i.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!c[r._uid]){void 0===s&&(s=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}}()),c[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),u[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.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(o(e,t,n))return!0;e=e.parentNode}return e}(e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,u[r._uid],p(r,e))}))}},r.disableOnClickOutside=function(){delete c[r._uid];var e=u[r._uid];if(e&&"undefined"!=typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,p(r,t))})),delete u[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=l(),r}f=n,(a=h).prototype=Object.create(f.prototype),a.prototype.constructor=a,a.__proto__=f;var m=h.prototype;return m.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},m.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: "+d+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},m.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},m.componentWillUnmount=function(){this.disableOnClickOutside()},m.render=function(){var t=this.props,n=(t.excludeScrollbar,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(r.createElement)(e,n)},h}(r.Component),n.displayName="OnClickOutside("+d+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:f,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(n(1));var r=a(n(2)),i=n(16),o=n(11);function a(e){return e&&e.__esModule?e:{default:e}}const s=({value:e})=>(0,o.jsx)(i.WidgetPreviewContainer,null,e?e.toString():null);s.propTypes={value:r.default.oneOfType([r.default.object,r.default.string])};var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetDatetime=void 0;var r=a(n(1524)),i=a(n(1525)),o=a(n(1526));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={Widget:(e={})=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"datetime",controlComponent:r.default,previewComponent:i.default,schema:o.default},e),controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetDatetime=u;var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(1)),i=c(n(2)),o=n(11),a=c(n(647)),s=c(n(648)),l=c(n(139)),u=n(16);function c(e){return e&&e.__esModule?e:{default: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 f={name:"1yjlc1u-DateTimeControl",styles:"position:absolute;right:20px;transform:translateY(-40px);width:fit-content;z-index:1;;label:DateTimeControl;"};class p extends r.default.Component{constructor(...e){super(...e),d(this,"formats",this.getFormats()),d(this,"defaultValue",this.getDefaultValue()),d(this,"pickerUtc",this.getPickerUtc()),d(this,"isValidDate",e=>l.default.isMoment(e)||e instanceof Date||""===e),d(this,"handleChange",e=>{if(!this.isValidDate(e))return;const{onChange:t}=this.props,{format:n}=this.formats;if(n){t(e?(0,l.default)(e).format(n):"")}else{t(l.default.isMoment(e)?e.toDate():e)}}),d(this,"onBlur",e=>{const{setInactiveStyle:t}=this.props;if(!this.isValidDate(e)){(0,l.default)(e).isValid()?this.handleChange(e):window.alert("The date you entered is invalid.")}t()})}getFormats(){const{field:e}=this.props,t=e.get("format"),n=e.get("dateFormat");let r=e.get("timeFormat");return void 0===r&&(r=!0),{format:t,dateFormat:n,timeFormat:r}}getDefaultValue(){const{field:e}=this.props;return e.get("default")}getPickerUtc(){const{field:e}=this.props;return e.get("pickerUtc")}componentDidMount(){const{value:e}=this.props;void 0===e&&setTimeout(()=>{this.handleChange(void 0===this.defaultValue?new Date:this.defaultValue)},0)}render(){const{forID:e,value:t,classNameWrapper:n,setActiveStyle:r,t:i}=this.props,{format:c,dateFormat:d,timeFormat:p}=this.formats;return(0,o.jsx)("div",{css:(0,o.css)(a.default,";position:relative;;label:DateTimeControl;")},(0,o.jsx)(s.default,{dateFormat:d,timeFormat:p,value:(0,l.default)(t,c),onChange:this.handleChange,onFocus:r,onBlur:this.onBlur,inputProps:{className:n,id:e},utc:this.pickerUtc}),(0,o.jsx)("div",{css:f},(0,o.jsx)("button",{css:(0,o.css)(u.buttons.button," ",u.buttons.default," ",u.buttons.lightBlue," ",u.buttons.small,";label:DateTimeControl;"),onClick:()=>{this.handleChange((0,l.default)())}},i("editor.editorWidgets.datetime.now"))))}}t.default=p,d(p,"propTypes",{field:i.default.object.isRequired,forID:i.default.string,onChange:i.default.func.isRequired,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired,value:i.default.oneOfType([i.default.object,i.default.string])})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(n(1));var r=a(n(2)),i=n(16),o=n(11);function a(e){return e&&e.__esModule?e:{default:e}}const s=({value:e})=>(0,o.jsx)(i.WidgetPreviewContainer,null,e?e.toString():null);s.propTypes={value:r.default.oneOfType([r.default.object,r.default.string])};var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{format:{type:"string"},dateFormat:{oneOf:[{type:"string"},{type:"boolean"}]},timeFormat:{oneOf:[{type:"string"},{type:"boolean"}]},pickerUtc:{type:"boolean"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetCode=void 0;var r=a(n(1528)),i=a(n(1647)),o=a(n(1648));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={Widget:(e={})=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"code",controlComponent:r.default,previewComponent:i.default,schema:o.default,allowMapValue:!0,codeMirrorConfig:{}},e),controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetCode=u;var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(142)),i=y(n(263)),o=y(n(457)),a=y(n(1)),s=y(n(2)),l=y(n(24)),u=n(11),c=n(4),d=y(n(140)),f=n(1529),p=y(n(5));n(1530),n(1532),n(1533);var h=y(n(1534)),m=y(n(1536)),g=y(n(1538)),v=y(n(652));function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const x=[{label:"AGS Script",identifiers:["ags","asc","ash"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"APL",identifiers:["apl","dyalog"],codemirror_mode:"apl",codemirror_mime_type:"text/apl"},{label:"ASN.1",identifiers:["asn"],codemirror_mode:"asn.1",codemirror_mime_type:"text/x-ttcn-asn"},{label:"ASP",identifiers:["asp","aspx","asax","ascx","ashx","asmx","axd"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-aspx"},{label:"Alpine Abuild",identifiers:["abuild","apkbuild"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"AngelScript",identifiers:["angelscript","as"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Ant Build System",identifiers:[],codemirror_mode:"xml",codemirror_mime_type:"application/xml"},{label:"Apex",identifiers:["apex","cls"],codemirror_mode:"clike",codemirror_mime_type:"text/x-java"},{label:"Asymptote",identifiers:["asymptote","asy"],codemirror_mode:"clike",codemirror_mime_type:"text/x-kotlin"},{label:"BibTeX",identifiers:["bibtex","bib"],codemirror_mode:"stex",codemirror_mime_type:"text/x-stex"},{label:"Brainfuck",identifiers:["brainfuck","b","bf"],codemirror_mode:"brainfuck",codemirror_mime_type:"text/x-brainfuck"},{label:"C",identifiers:["c","cats","h","idc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"C#",identifiers:["csharp","cs","cake","csx"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csharp"},{label:"C++",identifiers:["cpp","cc","cp","cxx","h","hh","hpp","hxx","inc","inl","ino","ipp","re","tcc","tpp"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"C2hs Haskell",identifiers:["chs"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"CMake",identifiers:["cmake"],codemirror_mode:"cmake",codemirror_mime_type:"text/x-cmake"},{label:"COBOL",identifiers:["cobol","cob","cbl","ccp","cpy"],codemirror_mode:"cobol",codemirror_mime_type:"text/x-cobol"},{label:"COLLADA",identifiers:["collada","dae"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"CSON",identifiers:["cson"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"CSS",identifiers:["css"],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"Cabal Config",identifiers:["Cabal","cabal"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"ChucK",identifiers:["chuck","ck"],codemirror_mode:"clike",codemirror_mime_type:"text/x-java"},{label:"Clojure",identifiers:["clojure","clj","boot","cljc","cljs","cljscm","cljx","hic"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"Closure Templates",identifiers:["soy"],codemirror_mode:"soy",codemirror_mime_type:"text/x-soy"},{label:"Cloud Firestore Security Rules",identifiers:[],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"CoffeeScript",identifiers:["coffeescript","coffee","cake","cjsx","iced"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"Common Lisp",identifiers:["lisp","asd","cl","l","lsp","ny","podsl","sexp"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Common Workflow Language",identifiers:["cwl"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Component Pascal",identifiers:["delphi","objectpascal","cp","cps"],codemirror_mode:"pascal",codemirror_mime_type:"text/x-pascal"},{label:"Crystal",identifiers:["crystal","cr"],codemirror_mode:"crystal",codemirror_mime_type:"text/x-crystal"},{label:"Cuda",identifiers:["cuda","cu","cuh"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Cycript",identifiers:["cycript","cy"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"Cython",identifiers:["cython","pyrex","pyx","pxd","pxi"],codemirror_mode:"python",codemirror_mime_type:"text/x-cython"},{label:"D",identifiers:["d","di"],codemirror_mode:"d",codemirror_mime_type:"text/x-d"},{label:"DTrace",identifiers:["dtrace","d"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"Dart",identifiers:["dart"],codemirror_mode:"dart",codemirror_mime_type:"application/dart"},{label:"Dhall",identifiers:["dhall"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Diff",identifiers:["diff","udiff","patch"],codemirror_mode:"diff",codemirror_mime_type:"text/x-diff"},{label:"Dockerfile",identifiers:["dockerfile"],codemirror_mode:"dockerfile",codemirror_mime_type:"text/x-dockerfile"},{label:"Dylan",identifiers:["dylan","dyl","intr","lid"],codemirror_mode:"dylan",codemirror_mime_type:"text/x-dylan"},{label:"EBNF",identifiers:["ebnf"],codemirror_mode:"ebnf",codemirror_mime_type:"text/x-ebnf"},{label:"ECL",identifiers:["ecl","eclxml"],codemirror_mode:"ecl",codemirror_mime_type:"text/x-ecl"},{label:"EQ",identifiers:["eq"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csharp"},{label:"Eagle",identifiers:["eagle","sch","brd"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Easybuild",identifiers:["easybuild","eb"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"Ecere Projects",identifiers:["epj"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"EditorConfig",identifiers:["editorconfig"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Edje Data Collection",identifiers:["edc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Eiffel",identifiers:["eiffel","e"],codemirror_mode:"eiffel",codemirror_mime_type:"text/x-eiffel"},{label:"Elm",identifiers:["elm"],codemirror_mode:"elm",codemirror_mime_type:"text/x-elm"},{label:"Emacs Lisp",identifiers:["elisp","emacs","el"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"EmberScript",identifiers:["emberscript","em"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"Erlang",identifiers:["erlang","erl","es","escript","hrl","xrl","yrl"],codemirror_mode:"erlang",codemirror_mime_type:"text/x-erlang"},{label:"F#",identifiers:["fsharp","fs","fsi","fsx"],codemirror_mode:"mllike",codemirror_mime_type:"text/x-fsharp"},{label:"Factor",identifiers:["factor"],codemirror_mode:"factor",codemirror_mime_type:"text/x-factor"},{label:"Forth",identifiers:["forth","fth","f","for","fr","frt","fs"],codemirror_mode:"forth",codemirror_mime_type:"text/x-forth"},{label:"Fortran",identifiers:["fortran","f","for","fpp"],codemirror_mode:"fortran",codemirror_mime_type:"text/x-fortran"},{label:"GCC Machine Description",identifiers:["md"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"GN",identifiers:["gn","gni"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"Game Maker Language",identifiers:["gml"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Genshi",identifiers:["genshi","kid"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Gentoo Ebuild",identifiers:["ebuild"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Gentoo Eclass",identifiers:["eclass"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Git Attributes",identifiers:["gitattributes"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Git Config",identifiers:["gitconfig","gitmodules"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Glyph",identifiers:["glyph","glf"],codemirror_mode:"tcl",codemirror_mime_type:"text/x-tcl"},{label:"Go",identifiers:["go","golang"],codemirror_mode:"go",codemirror_mime_type:"text/x-go"},{label:"Grammatical Framework",identifiers:["gf"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Groovy",identifiers:["groovy","grt","gtpl","gvy"],codemirror_mode:"groovy",codemirror_mime_type:"text/x-groovy"},{label:"Groovy Server Pages",identifiers:["gsp"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-jsp"},{label:"HCL",identifiers:["hcl","terraform","tf","tfvars","workflow"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"HTML",identifiers:["html","xhtml","htm","inc","st","xht"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"HTML+Django",identifiers:["django","htmldjango","njk","nunjucks","jinja","mustache"],codemirror_mode:"django",codemirror_mime_type:"text/x-django"},{label:"HTML+ECR",identifiers:["ecr"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"HTML+EEX",identifiers:["eex"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"HTML+ERB",identifiers:["erb"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-erb"},{label:"HTML+PHP",identifiers:["phtml"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"HTML+Razor",identifiers:["razor","cshtml"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"HTTP",identifiers:["http"],codemirror_mode:"http",codemirror_mime_type:"message/http"},{label:"Hack",identifiers:["hack","hh","php"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"Haml",identifiers:["haml"],codemirror_mode:"haml",codemirror_mime_type:"text/x-haml"},{label:"Haskell",identifiers:["haskell","hs","hsc"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Haxe",identifiers:["haxe","hx","hxsl"],codemirror_mode:"haxe",codemirror_mime_type:"text/x-haxe"},{label:"HolyC",identifiers:["holyc","hc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"IDL",identifiers:["idl","pro","dlm"],codemirror_mode:"idl",codemirror_mime_type:"text/x-idl"},{label:"INI",identifiers:["ini","dosini","cfg","lektorproject","prefs","pro","properties"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"IRC log",identifiers:["irc","irclog","weechatlog"],codemirror_mode:"mirc",codemirror_mime_type:"text/mirc"},{label:"Ignore List",identifiers:["ignore","gitignore"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"JSON",identifiers:["json","avsc","geojson","gltf","har","ice","jsonl","mcmeta","tfstate","topojson","webapp","webmanifest","yy","yyp"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSON with Comments",identifiers:["jsonc"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"JSON5",identifiers:[],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSONLD",identifiers:["jsonld"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSONiq",identifiers:["jsoniq","jq"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSX",identifiers:["jsx"],codemirror_mode:"jsx",codemirror_mime_type:"text/jsx"},{label:"Java",identifiers:["java"],codemirror_mode:"clike",codemirror_mime_type:"text/x-java"},{label:"Java Properties",identifiers:["properties"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Java Server Pages",identifiers:["jsp"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-jsp"},{label:"JavaScript",identifiers:["javascript","js","node","bones","es","frag","gs","jake","jsb","jscad","jsfl","jsm","jss","mjs","njs","pac","sjs","ssjs","xsjs","xsjslib"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"JavaScript+ERB",identifiers:[],codemirror_mode:"javascript",codemirror_mime_type:"application/javascript"},{label:"Julia",identifiers:["julia","jl"],codemirror_mode:"julia",codemirror_mime_type:"text/x-julia"},{label:"Jupyter Notebook",identifiers:["ipynb"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"KiCad Layout",identifiers:["pcbnew"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Kit",identifiers:["kit"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"Kotlin",identifiers:["kotlin","kt","ktm","kts"],codemirror_mode:"clike",codemirror_mime_type:"text/x-kotlin"},{label:"LFE",identifiers:["lfe"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"LTspice Symbol",identifiers:["asy"],codemirror_mode:"spreadsheet",codemirror_mime_type:"text/x-spreadsheet"},{label:"LabVIEW",identifiers:["labview","lvproj"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Latte",identifiers:["latte"],codemirror_mode:"smarty",codemirror_mime_type:"text/x-smarty"},{label:"Less",identifiers:["less"],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"Literate Haskell",identifiers:["lhaskell","lhs"],codemirror_mode:"haskell-literate",codemirror_mime_type:"text/x-literate-haskell"},{label:"LiveScript",identifiers:["livescript","ls"],codemirror_mode:"livescript",codemirror_mime_type:"text/x-livescript"},{label:"LookML",identifiers:["lookml"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Lua",identifiers:["lua","fcgi","nse","rbxs","wlua"],codemirror_mode:"lua",codemirror_mime_type:"text/x-lua"},{label:"M",identifiers:["m","mumps"],codemirror_mode:"mumps",codemirror_mime_type:"text/x-mumps"},{label:"MATLAB",identifiers:["matlab","octave","m"],codemirror_mode:"octave",codemirror_mime_type:"text/x-octave"},{label:"MTML",identifiers:["mtml"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"MUF",identifiers:["muf","m"],codemirror_mode:"forth",codemirror_mime_type:"text/x-forth"},{label:"Makefile",identifiers:["makefile","bsdmake","make","mf","mak","d","mk","mkfile"],codemirror_mode:"cmake",codemirror_mime_type:"text/x-cmake"},{label:"Markdown",identifiers:["markdown","pandoc","md","mdown","mdwn","mdx","mkd","mkdn","mkdown","ronn","workbook"],codemirror_mode:"gfm",codemirror_mime_type:"text/x-gfm"},{label:"Marko",identifiers:["marko","markojs"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"Mathematica",identifiers:["mathematica","mma","cdf","m","ma","mt","nb","nbp","wl","wlt"],codemirror_mode:"mathematica",codemirror_mime_type:"text/x-mathematica"},{label:"Maven POM",identifiers:[],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Max",identifiers:["max","maxmsp","maxpat","maxhelp","maxproj","mxt","pat"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"Metal",identifiers:["metal"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Mirah",identifiers:["mirah","druby","duby"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"Modelica",identifiers:["modelica","mo"],codemirror_mode:"modelica",codemirror_mime_type:"text/x-modelica"},{label:"NSIS",identifiers:["nsis","nsi","nsh"],codemirror_mode:"nsis",codemirror_mime_type:"text/x-nsis"},{label:"NetLogo",identifiers:["netlogo","nlogo"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"NewLisp",identifiers:["newlisp","nl","lisp","lsp"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Nginx",identifiers:["nginx","nginxconf","vhost"],codemirror_mode:"nginx",codemirror_mime_type:"text/x-nginx-conf"},{label:"Nu",identifiers:["nu","nush"],codemirror_mode:"scheme",codemirror_mime_type:"text/x-scheme"},{label:"NumPy",identifiers:["numpy","numpyw","numsc"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"OCaml",identifiers:["ocaml","ml","eliom","eliomi","mli","mll","mly"],codemirror_mode:"mllike",codemirror_mime_type:"text/x-ocaml"},{label:"Objective-C",identifiers:["objc","objectivec","m","h"],codemirror_mode:"clike",codemirror_mime_type:"text/x-objectivec"},{label:"Objective-C++",identifiers:["mm"],codemirror_mode:"clike",codemirror_mime_type:"text/x-objectivec"},{label:"OpenCL",identifiers:["opencl","cl"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"OpenRC runscript",identifiers:["openrc"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Oz",identifiers:["oz"],codemirror_mode:"oz",codemirror_mime_type:"text/x-oz"},{label:"PHP",identifiers:["php","inc","aw","ctp","fcgi","phps","phpt"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"PLSQL",identifiers:["plsql","pls","bdy","ddl","fnc","pck","pkb","pks","plb","prc","spc","sql","tpb","tps","trg","vw"],codemirror_mode:"sql",codemirror_mime_type:"text/x-plsql"},{label:"PLpgSQL",identifiers:["plpgsql","pgsql","sql"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"Pascal",identifiers:["pascal","pas","dfm","dpr","inc","lpr","pp"],codemirror_mode:"pascal",codemirror_mime_type:"text/x-pascal"},{label:"Perl",identifiers:["perl","cperl","pl","al","cgi","fcgi","ph","plx","pm","psgi","t"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"Perl 6",identifiers:["nqp","pl","pm","t"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"Pic",identifiers:["pic","chem"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Pod",identifiers:["pod"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"PowerShell",identifiers:["powershell","posh","pwsh"],codemirror_mode:"powershell",codemirror_mime_type:"application/x-powershell"},{label:"Protocol Buffer",identifiers:["protobuf","proto"],codemirror_mode:"protobuf",codemirror_mime_type:"text/x-protobuf"},{label:"Public Key",identifiers:["asc","pub"],codemirror_mode:"asciiarmor",codemirror_mime_type:"application/pgp"},{label:"Pug",identifiers:["pug","jade"],codemirror_mode:"pug",codemirror_mime_type:"text/x-pug"},{label:"Puppet",identifiers:["puppet","pp"],codemirror_mode:"puppet",codemirror_mime_type:"text/x-puppet"},{label:"PureScript",identifiers:["purescript","purs"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Python",identifiers:["python","rusthon","py","bzl","cgi","fcgi","gyp","gypi","lmi","pyde","pyi","pyp","pyt","pyw","rpy","spec","tac","wsgi","xpy"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"R",identifiers:["r","R","Rscript","splus","rd","rsx"],codemirror_mode:"r",codemirror_mime_type:"text/x-rsrc"},{label:"RAML",identifiers:["raml"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"RHTML",identifiers:["rhtml"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-erb"},{label:"RMarkdown",identifiers:["rmarkdown","rmd"],codemirror_mode:"gfm",codemirror_mime_type:"text/x-gfm"},{label:"RPM Spec",identifiers:["specfile","spec"],codemirror_mode:"rpm",codemirror_mime_type:"text/x-rpm-spec"},{label:"Reason",identifiers:["reason","re","rei"],codemirror_mode:"rust",codemirror_mime_type:"text/x-rustsrc"},{label:"Roff",identifiers:["roff","groff","man","manpage","mdoc","nroff","troff","l","me","ms","n","nr","rno","tmac"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Roff Manpage",identifiers:["man","mdoc"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Rouge",identifiers:["rouge","rg"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"Ruby",identifiers:["ruby","jruby","macruby","rake","rb","rbx","builder","eye","fcgi","gemspec","god","jbuilder","mspec","pluginspec","podspec","rabl","rbuild","rbw","ru","spec","thor","watchr"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"Rust",identifiers:["rust","rs"],codemirror_mode:"rust",codemirror_mime_type:"text/x-rustsrc"},{label:"SAS",identifiers:["sas"],codemirror_mode:"sas",codemirror_mime_type:"text/x-sas"},{label:"SCSS",identifiers:["scss"],codemirror_mode:"css",codemirror_mime_type:"text/x-scss"},{label:"SPARQL",identifiers:["sparql","rq"],codemirror_mode:"sparql",codemirror_mime_type:"application/sparql-query"},{label:"SQL",identifiers:["sql","cql","ddl","inc","mysql","prc","tab","udf","viw"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"SQLPL",identifiers:["sqlpl","sql"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"SRecode Template",identifiers:["srt"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"SVG",identifiers:["svg"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Sage",identifiers:["sage","sagews"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"SaltStack",identifiers:["saltstack","saltstate","salt","sls"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Sass",identifiers:["sass"],codemirror_mode:"sass",codemirror_mime_type:"text/x-sass"},{label:"Scala",identifiers:["scala","kojo","sbt","sc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-scala"},{label:"Scheme",identifiers:["scheme","scm","sch","sld","sls","sps","ss"],codemirror_mode:"scheme",codemirror_mime_type:"text/x-scheme"},{label:"Shell",identifiers:["shell","sh","bash","zsh","bats","cgi","command","fcgi","ksh","tmux","tool"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"ShellSession",identifiers:["shellsession","console"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Slim",identifiers:["slim"],codemirror_mode:"slim",codemirror_mime_type:"text/x-slim"},{label:"Smalltalk",identifiers:["smalltalk","squeak","st","cs"],codemirror_mode:"smalltalk",codemirror_mime_type:"text/x-stsrc"},{label:"Smarty",identifiers:["smarty","tpl"],codemirror_mode:"smarty",codemirror_mime_type:"text/x-smarty"},{label:"Squirrel",identifiers:["squirrel","nut"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Standard ML",identifiers:["sml","ML","fun","sig"],codemirror_mode:"mllike",codemirror_mime_type:"text/x-ocaml"},{label:"Svelte",identifiers:["svelte"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"Swift",identifiers:["swift"],codemirror_mode:"swift",codemirror_mime_type:"text/x-swift"},{label:"SystemVerilog",identifiers:["systemverilog","sv","svh","vh"],codemirror_mode:"verilog",codemirror_mime_type:"text/x-systemverilog"},{label:"TOML",identifiers:["toml"],codemirror_mode:"toml",codemirror_mime_type:"text/x-toml"},{label:"TSX",identifiers:["tsx"],codemirror_mode:"jsx",codemirror_mime_type:"text/jsx"},{label:"Tcl",identifiers:["tcl","adp","tm"],codemirror_mode:"tcl",codemirror_mime_type:"text/x-tcl"},{label:"Tcsh",identifiers:["tcsh","csh"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"TeX",identifiers:["tex","latex","aux","bbx","cbx","cls","dtx","ins","lbx","ltx","mkii","mkiv","mkvi","sty","toc"],codemirror_mode:"stex",codemirror_mime_type:"text/x-stex"},{label:"Terra",identifiers:["terra","t"],codemirror_mode:"lua",codemirror_mime_type:"text/x-lua"},{label:"Textile",identifiers:["textile"],codemirror_mode:"textile",codemirror_mime_type:"text/x-textile"},{label:"Turtle",identifiers:["turtle","ttl"],codemirror_mode:"turtle",codemirror_mime_type:"text/turtle"},{label:"Twig",identifiers:["twig"],codemirror_mode:"twig",codemirror_mime_type:"text/x-twig"},{label:"TypeScript",identifiers:["typescript","ts"],codemirror_mode:"javascript",codemirror_mime_type:"application/typescript"},{label:"Unified Parallel C",identifiers:["upc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"Unity3D Asset",identifiers:["anim","asset","mat","meta","prefab","unity"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Uno",identifiers:["uno"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csharp"},{label:"UnrealScript",identifiers:["unrealscript","uc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-java"},{label:"V",identifiers:["v","vlang"],codemirror_mode:"go",codemirror_mime_type:"text/x-go"},{label:"VHDL",identifiers:["vhdl","vhd","vhf","vhi","vho","vhs","vht","vhw"],codemirror_mode:"vhdl",codemirror_mime_type:"text/x-vhdl"},{label:"Verilog",identifiers:["verilog","v","veo"],codemirror_mode:"verilog",codemirror_mime_type:"text/x-verilog"},{label:"Visual Basic",identifiers:["vbnet","vb","bas","cls","frm","frx","vba","vbhtml","vbs"],codemirror_mode:"vb",codemirror_mime_type:"text/x-vb"},{label:"Volt",identifiers:["volt"],codemirror_mode:"d",codemirror_mime_type:"text/x-d"},{label:"WebAssembly",identifiers:["webassembly","wast","wasm","wat"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"WebIDL",identifiers:["webidl"],codemirror_mode:"webidl",codemirror_mime_type:"text/x-webidl"},{label:"Windows Registry Entries",identifiers:["reg"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"X BitMap",identifiers:["xbm"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"X PixMap",identifiers:["xpm","pm"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"XC",identifiers:["xc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"XML",identifiers:["xml","rss","xsd","wsdl","adml","admx","ant","axml","builds","ccproj","ccxml","clixml","cproject","cscfg","csdef","csl","csproj","ct","depproj","dita","ditamap","ditaval","dotsettings","filters","fsproj","fxml","glade","gml","gmx","grxml","iml","ivy","jelly","jsproj","kml","launch","mdpolicy","mjml","mm","mod","mxml","natvis","ncl","ndproj","nproj","nuspec","odd","osm","pkgproj","pluginspec","proj","props","pt","rdf","resx","sch","scxml","sfproj","shproj","srdf","storyboard","targets","tml","ts","tsx","ui","urdf","ux","vbproj","vcxproj","vsixmanifest","vssettings","vstemplate","vxml","wixproj","workflow","wsf","wxi","wxl","wxs","xacro","xaml","xib","xlf","xliff","xmi","xproj","xspec","xul","zcml"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XML Property List",identifiers:["plist","stTheme","tmCommand","tmLanguage","tmPreferences","tmSnippet","tmTheme"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XPages",identifiers:["xpages"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XProc",identifiers:["xproc","xpl"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XQuery",identifiers:["xquery","xq","xql","xqm","xqy"],codemirror_mode:"xquery",codemirror_mime_type:"application/xquery"},{label:"XS",identifiers:["xs"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"XSLT",identifiers:["xslt","xsl"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"YAML",identifiers:["yaml","yml","mir","reek","rviz","syntax"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"edn",identifiers:["edn"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"reStructuredText",identifiers:["restructuredtext","rst","rest"],codemirror_mode:"rst",codemirror_mime_type:"text/x-rst"},{label:"wisp",identifiers:["wisp"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"}].map(e=>({label:e.label,name:e.identifiers[0],mode:e.codemirror_mode,mimeType:e.codemirror_mime_type})),k={name:"",mode:"",label:"none"};function E(e){return"string"==typeof e?{value:e,label:e}:{value:e.name,label:e.label||e.name}}const S=x.map(E),O=["default","material"],T={theme:"cms.codemirror.theme",keyMap:"cms.codemirror.keymap"};class C extends a.default.Component{constructor(...e){var t;super(...e),w(this,"keys",this.getKeys(this.props.field)),w(this,"state",{isActive:!1,unknownLang:null,lang:"",keyMap:localStorage.getItem(T.keyMap)||"default",settingsVisible:!1,codeMirrorKey:(0,d.default)(),theme:localStorage.getItem(T.theme)||O[O.length-1],lastKnownValue:this.valueIsMap()?null===(t=this.props.value)||void 0===t?void 0:t.get(this.keys.code):this.props.value}),w(this,"getLanguageByName",e=>x.find(t=>t.name===e)),w(this,"getKeyMapOptions",()=>Object.keys(p.default.keyMap).sort().filter(e=>["emacs","vim","sublime","default"].includes(e)).map(e=>({value:e,label:e}))),w(this,"getInitialLang",()=>{const{value:e,field:t}=this.props,n=this.valueIsMap()&&e&&e.get(this.keys.lang)||t.get("default_language"),r=this.getLanguageByName(n);return n&&!r&&this.setState({unknownLang:n}),n}),w(this,"allowLanguageSelection",!this.props.field.has("allow_language_selection")||!!this.props.field.get("allow_language_selection")),w(this,"toValue",this.valueIsMap()?(e,t)=>(this.props.value||(0,c.Map)()).set(this.keys[e],t):(e,t)=>"code"===e?t:this.props.value),w(this,"showSettings",()=>{this.setState({settingsVisible:!0})}),w(this,"hideSettings",()=>{this.state.settingsVisible&&this.setState({settingsVisible:!1}),this.cm.focus()}),w(this,"handleFocus",()=>{this.hideSettings(),this.props.setActiveStyle(),this.setActive()}),w(this,"handleBlur",()=>{this.setInactive(),this.props.setInactiveStyle()}),w(this,"setActive",()=>this.setState({isActive:!0})),w(this,"setInactive",()=>this.setState({isActive:!1}))}shouldComponentUpdate(e,t){return!(0,i.default)(this.state,t)||this.props.classNameWrapper!==e.classNameWrapper}componentDidMount(){this.setState({lang:this.getInitialLang()||""})}componentDidUpdate(e,t){this.updateCodeMirrorProps(t)}updateCodeMirrorProps(e){const t=function(e,t,n){const i=(n||(0,o.default)(Object.keys(e),Object.keys(t))).reduce((n,r)=>(e[r]!==t[r]&&(n[r]=t[r]),n),{});if(!(0,r.default)(i))return i}(e,this.state,["lang","theme","keyMap"]);t&&this.handleChangeCodeMirrorProps(t)}getKeys(e){const t={code:"code",lang:"lang"};if(this.props.isEditorComponent)return t;const n=e.get("keys",(0,c.Map)()).toJS();return _(_({},t),n)}valueIsMap(){const{field:e,isEditorComponent:t}=this.props;return!e.get("output_code_only")||t}async handleChangeCodeMirrorProps(e){const{onChange:t}=this.props;if(e.lang){const{mode:t}=this.getLanguageByName(e.lang)||{};t&&n(1540)(`./${t}/${t}.js`)}if(this.cm){const e=this.cm.doc.getCursor(),t=this.cm.doc.listSelections();this.setState({codeMirrorKey:(0,d.default)()},()=>{this.cm.doc.setCursor(e),this.cm.doc.setSelections(t)})}for(const t of["theme","keyMap"])e[t]&&localStorage.setItem(T[t],e[t]);e.lang&&this.valueIsMap()&&t(this.toValue("lang",e.lang))}handleChange(e){const t=this.cm.doc.getCursor(),n=this.cm.doc.listSelections();this.setState({lastKnownValue:e}),this.props.onChange(this.toValue("code",e),{cursor:t,selections:n})}render(){const{classNameWrapper:e,forID:t,widget:n,isNewEditorComponent:r}=this.props,{lang:i,settingsVisible:o,keyMap:a,codeMirrorKey:s,theme:l,lastKnownValue:c}=this.state,d=this.getLanguageByName(i),p=(null==d?void 0:d.mimeType)||(null==d?void 0:d.mode);return(0,u.jsx)(u.ClassNames,null,({css:i,cx:y})=>(0,u.jsx)("div",{className:y(e,i`
+ ${h.default};
+ ${m.default};
+ ${"\n padding: 0;\n"};
+ `)},!o&&(0,u.jsx)(v.default,{onClick:this.showSettings}),o&&(0,u.jsx)(g.default,{hideSettings:this.hideSettings,forID:t,modes:S,mode:E(d||k),theme:O.find(e=>e===l),themes:O,keyMap:{value:a,label:a},keyMaps:this.getKeyMapOptions(),allowLanguageSelection:this.allowLanguageSelection,onChangeLang:e=>this.setState({lang:e}),onChangeTheme:e=>this.setState({theme:e}),onChangeKeyMap:e=>this.setState({keyMap:e})}),(0,u.jsx)(f.UnControlled,{key:s,id:t,className:i`
+ height: 100%;
+ border-radius: 0 3px 3px 3px;
+ overflow: hidden;
+
+ .CodeMirror {
+ height: auto;
+ cursor: text;
+ min-height: 300px;
+ }
+
+ .CodeMirror-scroll {
+ min-height: 300px;
+ }
+ `,options:_(_({lineNumbers:!0},n.codeMirrorConfig),{},{extraKeys:_({"Shift-Tab":"indentLess",Tab:"indentMore"},n.codeMirrorConfig.extraKeys||{}),theme:l,mode:p,keyMap:a,viewportMargin:1/0}),detach:!0,editorDidMount:e=>{this.cm=e,r&&this.handleFocus()},value:c,onChange:(e,t,n)=>this.handleChange(n),onFocus:this.handleFocus,onBlur:this.handleBlur})))}}t.default=C,w(C,"propTypes",{field:l.default.map.isRequired,onChange:s.default.func.isRequired,value:s.default.node,forID:s.default.string.isRequired,classNameWrapper:s.default.string.isRequired,widget:s.default.object.isRequired})},function(e,t,n){"use strict";(function(e){function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){return(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})(e)}var o,a=(o=function(e,t){return(o=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])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var s,l=n(1),u="undefined"==typeof navigator||!0===e.PREVENT_CODEMIRROR_RENDER;u||(s=n(5));var c=function(){function e(){}return e.equals=function(e,t){var n=this,r=Object.keys,o=i(e),a=i(t);return e&&t&&"object"===o&&o===a?r(e).length===r(t).length&&r(e).every((function(r){return n.equals(e[r],t[r])})):e===t},e}(),d=function(){function e(e,t){this.editor=e,this.props=t}return e.prototype.delegateCursor=function(e,t,n){var r=this.editor.getDoc();n&&this.editor.focus(),t?r.setCursor(e):r.setCursor(e,null,{scroll:!1})},e.prototype.delegateScroll=function(e){this.editor.scrollTo(e.x,e.y)},e.prototype.delegateSelection=function(e,t){this.editor.getDoc().setSelections(e),t&&this.editor.focus()},e.prototype.apply=function(e){e&&e.selection&&e.selection.ranges&&this.delegateSelection(e.selection.ranges,e.selection.focus||!1),e&&e.cursor&&this.delegateCursor(e.cursor,e.autoScroll||!1,this.editor.getOption("autofocus")||!1),e&&e.scroll&&this.delegateScroll(e.scroll)},e.prototype.applyNext=function(e,t,n){e&&e.selection&&e.selection.ranges&&t&&t.selection&&t.selection.ranges&&!c.equals(e.selection.ranges,t.selection.ranges)&&this.delegateSelection(t.selection.ranges,t.selection.focus||!1),e&&e.cursor&&t&&t.cursor&&!c.equals(e.cursor,t.cursor)&&this.delegateCursor(n.cursor||t.cursor,t.autoScroll||!1,t.autoCursor||!1),e&&e.scroll&&t&&t.scroll&&!c.equals(e.scroll,t.scroll)&&this.delegateScroll(t.scroll)},e.prototype.applyUserDefined=function(e,t){t&&t.cursor&&this.delegateCursor(t.cursor,e.autoScroll||!1,this.editor.getOption("autofocus")||!1)},e.prototype.wire=function(e){var t=this;Object.keys(e||{}).filter((function(e){return/^on/.test(e)})).forEach((function(e){switch(e){case"onBlur":t.editor.on("blur",(function(e,n){t.props.onBlur(t.editor,n)}));break;case"onContextMenu":t.editor.on("contextmenu",(function(e,n){t.props.onContextMenu(t.editor,n)}));break;case"onCopy":t.editor.on("copy",(function(e,n){t.props.onCopy(t.editor,n)}));break;case"onCursor":t.editor.on("cursorActivity",(function(e){t.props.onCursor(t.editor,t.editor.getDoc().getCursor())}));break;case"onCursorActivity":t.editor.on("cursorActivity",(function(e){t.props.onCursorActivity(t.editor)}));break;case"onCut":t.editor.on("cut",(function(e,n){t.props.onCut(t.editor,n)}));break;case"onDblClick":t.editor.on("dblclick",(function(e,n){t.props.onDblClick(t.editor,n)}));break;case"onDragEnter":t.editor.on("dragenter",(function(e,n){t.props.onDragEnter(t.editor,n)}));break;case"onDragLeave":t.editor.on("dragleave",(function(e,n){t.props.onDragLeave(t.editor,n)}));break;case"onDragOver":t.editor.on("dragover",(function(e,n){t.props.onDragOver(t.editor,n)}));break;case"onDragStart":t.editor.on("dragstart",(function(e,n){t.props.onDragStart(t.editor,n)}));break;case"onDrop":t.editor.on("drop",(function(e,n){t.props.onDrop(t.editor,n)}));break;case"onFocus":t.editor.on("focus",(function(e,n){t.props.onFocus(t.editor,n)}));break;case"onGutterClick":t.editor.on("gutterClick",(function(e,n,r,i){t.props.onGutterClick(t.editor,n,r,i)}));break;case"onKeyDown":t.editor.on("keydown",(function(e,n){t.props.onKeyDown(t.editor,n)}));break;case"onKeyPress":t.editor.on("keypress",(function(e,n){t.props.onKeyPress(t.editor,n)}));break;case"onKeyUp":t.editor.on("keyup",(function(e,n){t.props.onKeyUp(t.editor,n)}));break;case"onMouseDown":t.editor.on("mousedown",(function(e,n){t.props.onMouseDown(t.editor,n)}));break;case"onPaste":t.editor.on("paste",(function(e,n){t.props.onPaste(t.editor,n)}));break;case"onRenderLine":t.editor.on("renderLine",(function(e,n,r){t.props.onRenderLine(t.editor,n,r)}));break;case"onScroll":t.editor.on("scroll",(function(e){t.props.onScroll(t.editor,t.editor.getScrollInfo())}));break;case"onSelection":t.editor.on("beforeSelectionChange",(function(e,n){t.props.onSelection(t.editor,n)}));break;case"onTouchStart":t.editor.on("touchstart",(function(e,n){t.props.onTouchStart(t.editor,n)}));break;case"onUpdate":t.editor.on("update",(function(e){t.props.onUpdate(t.editor)}));break;case"onViewportChange":t.editor.on("viewportChange",(function(e,n,r){t.props.onViewportChange(t.editor,n,r)}))}}))},e}(),f=function(e){function t(t){var n=e.call(this,t)||this;return u||(n.applied=!1,n.appliedNext=!1,n.appliedUserDefined=!1,n.deferred=null,n.emulating=!1,n.hydrated=!1,n.initCb=function(){n.props.editorDidConfigure&&n.props.editorDidConfigure(n.editor)},n.mounted=!1),n}return a(t,e),t.prototype.hydrate=function(e){var t=this,n=e&&e.options?e.options:{},i=r({},s.defaults,this.editor.options,n);Object.keys(i).some((function(e){return t.editor.getOption(e)!==i[e]}))&&Object.keys(i).forEach((function(e){n.hasOwnProperty(e)&&t.editor.getOption(e)!==i[e]&&(t.editor.setOption(e,i[e]),t.mirror.setOption(e,i[e]))})),this.hydrated||(this.deferred?this.resolveChange():this.initChange(e.value||"")),this.hydrated=!0},t.prototype.initChange=function(e){this.emulating=!0;var t=this.editor.getDoc(),n=t.lastLine(),r=t.getLine(t.lastLine()).length;t.replaceRange(e||"",{line:0,ch:0},{line:n,ch:r}),this.mirror.setValue(e),t.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},t.prototype.resolveChange=function(){this.emulating=!0;var e=this.editor.getDoc();"undo"===this.deferred.origin?e.undo():"redo"===this.deferred.origin?e.redo():e.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),this.emulating=!1,this.deferred=null},t.prototype.mirrorChange=function(e){var t=this.editor.getDoc();return"undo"===e.origin?(t.setHistory(this.mirror.getHistory()),this.mirror.undo()):"redo"===e.origin?(t.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(e.text,e.from,e.to,e.origin),this.mirror.getValue()},t.prototype.componentDidMount=function(){var e=this;u||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&s.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=s(this.ref),this.shared=new d(this.editor,this.props),this.mirror=s((function(){})),this.editor.on("electricInput",(function(){e.mirror.setHistory(e.editor.getDoc().getHistory())})),this.editor.on("cursorActivity",(function(){e.mirror.setCursor(e.editor.getDoc().getCursor())})),this.editor.on("beforeChange",(function(t,n){if(!e.emulating){n.cancel(),e.deferred=n;var r=e.mirrorChange(e.deferred);e.props.onBeforeChange&&e.props.onBeforeChange(e.editor,e.deferred,r)}})),this.editor.on("change",(function(t,n){e.mounted&&e.props.onChange&&e.props.onChange(e.editor,n,e.editor.getValue())})),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},t.prototype.componentDidUpdate=function(e){if(!u){var t={cursor:null};this.props.value!==e.value&&(this.hydrated=!1),this.props.autoCursor||void 0===this.props.autoCursor||(t.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(e,this.props,t),this.appliedNext=!0),this.shared.applyUserDefined(e,t),this.appliedUserDefined=!0}},t.prototype.componentWillUnmount=function(){u||this.props.editorWillUnmount&&this.props.editorWillUnmount(s)},t.prototype.shouldComponentUpdate=function(e,t){return!u},t.prototype.render=function(){var e=this;if(u)return null;var t=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return l.createElement("div",{className:t,ref:function(t){return e.ref=t}})},t}(l.Component);t.Controlled=f;var p=function(e){function t(t){var n=e.call(this,t)||this;return u||(n.applied=!1,n.appliedUserDefined=!1,n.continueChange=!1,n.detached=!1,n.hydrated=!1,n.initCb=function(){n.props.editorDidConfigure&&n.props.editorDidConfigure(n.editor)},n.mounted=!1,n.onBeforeChangeCb=function(){n.continueChange=!0}),n}return a(t,e),t.prototype.hydrate=function(e){var t=this,n=e&&e.options?e.options:{},i=r({},s.defaults,this.editor.options,n);if(Object.keys(i).some((function(e){return t.editor.getOption(e)!==i[e]}))&&Object.keys(i).forEach((function(e){n.hasOwnProperty(e)&&t.editor.getOption(e)!==i[e]&&t.editor.setOption(e,i[e])})),!this.hydrated){var o=this.editor.getDoc(),a=o.lastLine(),l=o.getLine(o.lastLine()).length;o.replaceRange(e.value||"",{line:0,ch:0},{line:a,ch:l})}this.hydrated=!0},t.prototype.componentDidMount=function(){var e=this;u||(this.detached=!0===this.props.detach,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&s.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=s(this.ref),this.shared=new d(this.editor,this.props),this.editor.on("beforeChange",(function(t,n){e.props.onBeforeChange&&e.props.onBeforeChange(e.editor,n,e.editor.getValue(),e.onBeforeChangeCb)})),this.editor.on("change",(function(t,n){e.mounted&&e.props.onChange&&(e.props.onBeforeChange?e.continueChange&&e.props.onChange(e.editor,n,e.editor.getValue()):e.props.onChange(e.editor,n,e.editor.getValue()))})),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},t.prototype.componentDidUpdate=function(e){if(this.detached&&!1===this.props.detach&&(this.detached=!1,e.editorDidAttach&&e.editorDidAttach(this.editor)),this.detached||!0!==this.props.detach||(this.detached=!0,e.editorDidDetach&&e.editorDidDetach(this.editor)),!u&&!this.detached){var t={cursor:null};this.props.value!==e.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),e.autoCursor||void 0===e.autoCursor||(t.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(e),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(e,t),this.appliedUserDefined=!0)}},t.prototype.componentWillUnmount=function(){u||this.props.editorWillUnmount&&this.props.editorWillUnmount(s)},t.prototype.shouldComponentUpdate=function(e,t){var n=!0;return u&&(n=!1),this.detached&&e.detach&&(n=!1),n},t.prototype.render=function(){var e=this;if(u)return null;var t=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return l.createElement("div",{className:t,ref:function(t){return e.ref=t}})},t}(l.Component);t.UnControlled=p}).call(this,n(43))},function(e,t,n){!function(e){"use strict";var t=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"<Del>",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<character>",type:"action",action:"replayMacro"},{keys:"q<character>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<character>",type:"action",action:"setMark"},{keys:'"<character>',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<character>",type:"motion",motion:"textObjectManipulation"},{keys:"i<character>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],n=t.length,r=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"global",shortName:"g"}],i=e.Pos;e.Vim=function(){function o(t,n){this==e.keyMap.vim&&(e.rmClass(t.getWrapperElement(),"cm-fat-cursor"),"contenteditable"==t.getOption("inputStyle")&&null!=document.body.style.caretColor&&(function(e){l(e),e.off("cursorActivity",s),e.state.fatCursorMarks=null}(t),t.getInputField().style.caretColor="")),n&&n.attach==a||function(t){t.setOption("disableInput",!1),t.off("cursorActivity",Ze),e.off(t.getInputField(),"paste",f(t)),t.state.vim=null}(t)}function a(t,n){this==e.keyMap.vim&&(e.addClass(t.getWrapperElement(),"cm-fat-cursor"),"contenteditable"==t.getOption("inputStyle")&&null!=document.body.style.caretColor&&(function(e){e.state.fatCursorMarks=[],s(e),e.on("cursorActivity",s)}(t),t.getInputField().style.caretColor="transparent")),n&&n.attach==a||function(t){t.setOption("disableInput",!0),t.setOption("showCursorWhenSelecting",!1),e.signal(t,"vim-mode-change",{mode:"normal"}),t.on("cursorActivity",Ze),N(t),e.on(t.getInputField(),"paste",f(t))}(t)}function s(e){if(e.state.fatCursorMarks){l(e);for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){var o=t[r];if(o.empty()){var a=e.getLine(o.anchor.line).length;o.anchor.ch<a?n.push(e.markText(o.anchor,i(o.anchor.line,o.anchor.ch+1),{className:"cm-fat-cursor-mark"})):n.push(e.markText(i(o.anchor.line,a-1),i(o.anchor.line,a),{className:"cm-fat-cursor-mark"}))}}e.state.fatCursorMarks=n}}function l(e){var t=e.state.fatCursorMarks;if(t)for(var n=0;n<t.length;n++)t[n].clear()}function u(t,n){if(n){if(this[t])return this[t];var r=function(e){if("'"==e.charAt(0))return e.charAt(1);var t=e.split(/-(?!$)/),n=t[t.length-1];if(1==t.length&&1==t[0].length)return!1;if(2==t.length&&"Shift"==t[0]&&1==n.length)return!1;for(var r=!1,i=0;i<t.length;i++){var o=t[i];o in c?t[i]=c[o]:r=!0,o in d&&(t[i]=d[o])}return!!r&&(E(n)&&(t[t.length-1]=n.toLowerCase()),"<"+t.join("-")+">")}(t);if(!r)return!1;var i=e.Vim.findKey(n,r);return"function"==typeof i&&e.signal(n,"vim-keypress",r),i}}e.defineOption("vimMode",!1,(function(t,n,r){n&&"vim"!=t.getOption("keyMap")?t.setOption("keyMap","vim"):!n&&r!=e.Init&&/^vim/.test(t.getOption("keyMap"))&&t.setOption("keyMap","default")}));var c={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A"},d={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function f(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(J(e.getCursor(),0,1)),Y.enterInsertMode(e,{},t))}),t.onPasteFn}var p=/[\d]/,h=[e.isWordChar,function(t){return t&&!e.isWordChar(t)&&!/\s/.test(t)}],m=[function(e){return/\S/.test(e)}];function g(e,t){for(var n=[],r=e;r<e+t;r++)n.push(String.fromCharCode(r));return n}var v=g(65,26),y=g(97,26),b=g(48,10),_=[].concat(v,y,b,["<",">"]),w=[].concat(v,y,b,["-",'"',".",":","/"]);function x(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function k(e){return/^[a-z]$/.test(e)}function E(e){return/^[A-Z]$/.test(e)}function S(e){return/^\s*$/.test(e)}function O(e){return-1!=".?!".indexOf(e)}function T(e,t){for(var n=0;n<t.length;n++)if(t[n]==e)return!0;return!1}var C={};function A(e,t,n,r,i){if(void 0===t&&!i)throw Error("defaultValue is required unless callback is provided");if(n||(n="string"),C[e]={type:n,defaultValue:t,callback:i},r)for(var o=0;o<r.length;o++)C[r[o]]=C[e];t&&P(e,t)}function P(e,t,n,r){var i=C[e],o=(r=r||{}).scope;if(!i)return new Error("Unknown option: "+e);if("boolean"==i.type){if(t&&!0!==t)return new Error("Invalid argument: "+e+"="+t);!1!==t&&(t=!0)}i.callback?("local"!==o&&i.callback(t,void 0),"global"!==o&&n&&i.callback(t,n)):("local"!==o&&(i.value="boolean"==i.type?!!t:t),"global"!==o&&n&&(n.state.vim.options[e]={value:t}))}function R(e,t,n){var r=C[e],i=(n=n||{}).scope;if(!r)return new Error("Unknown option: "+e);if(r.callback){var o=t&&r.callback(void 0,t);return"global"!==i&&void 0!==o?o:"local"!==i?r.callback():void 0}return((o="global"!==i&&t&&t.state.vim.options[e])||"local"!==i&&r||{}).value}A("filetype",void 0,"string",["ft"],(function(e,t){if(void 0!==t){if(void 0===e)return"null"==(n=t.getOption("mode"))?"":n;var n=""==e?"null":e;t.setOption("mode",n)}}));var M,I,j=function(){var e=-1,t=0,n=0,r=new Array(100);function i(i,o){(e+=o)>t?e=t:e<n&&(e=n);var a=r[(100+e)%100];if(a&&!a.find()){var s,l=o>0?1:-1,u=i.getCursor();do{if((a=r[(100+(e+=l))%100])&&(s=a.find())&&!ne(u,s))break}while(e<t&&e>n)}return a}return{cachedCursor:void 0,add:function(i,o,a){var s=r[e%100];function l(t){var n=++e%100,o=r[n];o&&o.clear(),r[n]=i.setBookmark(t)}if(s){var u=s.find();u&&!ne(u,o)&&l(o)}else l(o);l(a),t=e,(n=e-100+1)<0&&(n=0)},find:function(t,n){var r=e,o=i(t,n);return e=r,o&&o.find()},move:i}},D=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function L(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=D()}function N(e){return e.state.vim||(e.state.vim={inputState:new z,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},fakeCursor:null,insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),e.state.vim}function F(){for(var e in M={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:j(),macroModeState:new L,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new H({}),searchHistoryController:new W,exCommandHistoryController:new W},C){var t=C[e];t.value=t.defaultValue}}L.prototype={exitMacroRecordMode:function(){var e=M.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=void 0,e.isRecording=!1},enterMacroRecordMode:function(e,t){var n=M.registerController.getRegister(t);n&&(n.clear(),this.latestRegister=t,e.openDialog&&(this.onRecordingDone=e.openDialog("(recording)["+t+"]",null,{bottom:!0})),this.isRecording=!0)}};var B={buildKeyMap:function(){},getRegisterController:function(){return M.registerController},resetVimGlobalState_:F,getVimGlobalState_:function(){return M},maybeInitVimState_:N,suppressErrorLogging:!1,InsertModeKey:nt,map:function(e,t,n){Ke.map(e,t,n)},unmap:function(e,t){Ke.unmap(e,t)},noremap:function(e,r,i){function o(e){return e?[e]:["normal","insert","visual"]}for(var a=o(i),s=t.length,l=s-n;l<s&&a.length;l++){var u=t[l];if(!(u.keys!=r||i&&u.context&&u.context!==i||"ex"===u.type.substr(0,2)||"key"===u.type.substr(0,3))){var c={};for(var d in u)c[d]=u[d];c.keys=e,i&&!c.context&&(c.context=i),this._mapCommand(c);var f=o(u.context);a=a.filter((function(e){return-1===f.indexOf(e)}))}}},mapclear:function(e){var r=t.length,i=n,o=t.slice(0,r-i);if(t=t.slice(r-i),e)for(var a=o.length-1;a>=0;a--){var s=o[a];if(e!==s.context)if(s.context)this._mapCommand(s);else{var l=["normal","insert","visual"];for(var u in l)if(l[u]!==e){var c={};for(var d in s)c[d]=s[d];c.context=l[u],this._mapCommand(c)}}}},setOption:P,getOption:R,defineOption:A,defineEx:function(e,t,n){if(t){if(0!==e.indexOf(t))throw new Error('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered')}else t=e;Ge[e]=n,Ke.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(e,t,n){var r=this.findKey(e,t,n);if("function"==typeof r)return r()},findKey:function(n,r,i){var o,a=N(n);function s(){var e=M.macroModeState;if(e.isRecording){if("q"==r)return e.exitMacroRecordMode(),U(n),!0;"mapping"!=i&&function(e,t){if(!e.isPlaying){var n=e.latestRegister,r=M.registerController.getRegister(n);r&&r.pushText(t)}}(e,r)}}function l(){if("<Esc>"==r)return U(n),a.visualMode?me(n):a.insertMode&&Ye(n),!0}return!1===(o=a.insertMode?function(){if(l())return!0;for(var e=a.inputState.keyBuffer=a.inputState.keyBuffer+r,i=1==r.length,o=V.matchCommand(e,t,a.inputState,"insert");e.length>1&&"full"!=o.type;){e=a.inputState.keyBuffer=e.slice(1);var s=V.matchCommand(e,t,a.inputState,"insert");"none"!=s.type&&(o=s)}if("none"==o.type)return U(n),!1;if("partial"==o.type)return I&&window.clearTimeout(I),I=window.setTimeout((function(){a.insertMode&&a.inputState.keyBuffer&&U(n)}),R("insertModeEscKeysTimeout")),!i;if(I&&window.clearTimeout(I),i){for(var u=n.listSelections(),c=0;c<u.length;c++){var d=u[c].head;n.replaceRange("",J(d,0,-(e.length-1)),d,"+input")}M.macroModeState.lastInsertModeChanges.changes.pop()}return U(n),o.command}():function(){if(s()||l())return!0;var e=a.inputState.keyBuffer=a.inputState.keyBuffer+r;if(/^[1-9]\d*$/.test(e))return!0;if(!(i=/^(\d*)(.*)$/.exec(e)))return U(n),!1;var i,o=a.visualMode?"visual":"normal",u=V.matchCommand(i[2]||i[1],t,a.inputState,o);return"none"==u.type?(U(n),!1):"partial"==u.type||(a.inputState.keyBuffer="",(i=/^(\d*)(.*)$/.exec(e))[1]&&"0"!=i[1]&&a.inputState.pushRepeatDigit(i[1]),u.command)}())?a.insertMode||1!==r.length?void 0:function(){return!0}:!0===o?function(){return!0}:function(){return n.operation((function(){n.curOp.isVimOp=!0;try{"keyToKey"==o.type?function(t){for(var i;t;)i=/<\w+-.+?>|<\w+>|./.exec(t),r=i[0],t=t.substring(i.index+r.length),e.Vim.handleKey(n,r,"mapping")}(o.toKeys):V.processCommand(n,a,o)}catch(t){throw n.state.vim=void 0,N(n),e.Vim.suppressErrorLogging||console.log(t),t}return!0}))}},handleEx:function(e,t){Ke.processCommand(e,t)},defineMotion:function(e,t){$[e]=t},defineAction:function(e,t){Y[e]=t},defineOperator:function(e,t){K[e]=t},mapCommand:function(e,t,n,r,i){var o={keys:e,type:t};for(var a in o[t]=n,o[t+"Args"]=r,i)o[a]=i[a];Qe(o)},_mapCommand:Qe,defineRegister:function(e,t){var n=M.registerController.registers;if(!e||1!=e.length)throw Error("Register name must be 1 character");if(n[e])throw Error("Register already defined "+e);n[e]=t,w.push(e)},exitVisualMode:me,exitInsertMode:Ye};function z(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}function U(t,n){t.state.vim.inputState=new z,e.signal(t,"vim-command-done",n)}function q(e,t,n){this.clear(),this.keyBuffer=[e||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!t,this.blockwise=!!n}function H(e){this.registers=e,this.unnamedRegister=e['"']=new q,e["."]=new q,e[":"]=new q,e["/"]=new q}function W(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}z.prototype.pushRepeatDigit=function(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)},z.prototype.getRepeat=function(){var e=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(e=1,this.prefixRepeat.length>0&&(e*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(e*=parseInt(this.motionRepeat.join(""),10))),e},q.prototype={setText:function(e,t,n){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!n},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(e)},pushInsertModeChanges:function(e){this.insertModeChanges.push(D(e))},pushSearchQuery:function(e){this.searchQueries.push(e)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},H.prototype={pushText:function(e,t,n,r,i){r&&"\n"!==n.charAt(n.length-1)&&(n+="\n");var o=this.isValidRegister(e)?this.getRegister(e):null;if(o)E(e)?o.pushText(n,r):o.setText(n,r,i),this.unnamedRegister.setText(o.toString(),r);else{switch(t){case"yank":this.registers[0]=new q(n,r,i);break;case"delete":case"change":-1==n.indexOf("\n")?this.registers["-"]=new q(n,r):(this.shiftNumericRegisters_(),this.registers[1]=new q(n,r))}this.unnamedRegister.setText(n,r,i)}},getRegister:function(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers[e]||(this.registers[e]=new q),this.registers[e]):this.unnamedRegister},isValidRegister:function(e){return e&&T(e,w)},shiftNumericRegisters_:function(){for(var e=9;e>=2;e--)this.registers[e]=this.getRegister(""+(e-1))}},W.prototype={nextMatch:function(e,t){var n=this.historyBuffer,r=t?-1:1;null===this.initialPrefix&&(this.initialPrefix=e);for(var i=this.iterator+r;t?i>=0:i<n.length;i+=r)for(var o=n[i],a=0;a<=o.length;a++)if(this.initialPrefix==o.substring(0,a))return this.iterator=i,o;return i>=n.length?(this.iterator=n.length,this.initialPrefix):i<0?e:void 0},pushInput:function(e){var t=this.historyBuffer.indexOf(e);t>-1&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var V={matchCommand:function(e,t,n,r){var i,o=function(e,t,n,r){for(var i,o=[],a=[],s=0;s<t.length;s++){var l=t[s];"insert"==n&&"insert"!=l.context||l.context&&l.context!=n||r.operator&&"action"==l.type||!(i=Z(e,l.keys))||("partial"==i&&o.push(l),"full"==i&&a.push(l))}return{partial:o.length&&o,full:a.length&&a}}(e,t,r,n);if(!o.full&&!o.partial)return{type:"none"};if(!o.full&&o.partial)return{type:"partial"};for(var a=0;a<o.full.length;a++){var s=o.full[a];i||(i=s)}if("<character>"==i.keys.slice(-11)){var l=function(e){var t=/^.*(<[^>]+>)$/.exec(e),n=t?t[1]:e.slice(-1);if(n.length>1)switch(n){case"<CR>":n="\n";break;case"<Space>":n=" ";break;default:n=""}return n}(e);if(!l)return{type:"none"};n.selectedCharacter=l}return{type:"full",command:i}},processCommand:function(e,t,n){switch(t.inputState.repeatOverride=n.repeatOverride,n.type){case"motion":this.processMotion(e,t,n);break;case"operator":this.processOperator(e,t,n);break;case"operatorMotion":this.processOperatorMotion(e,t,n);break;case"action":this.processAction(e,t,n);break;case"search":this.processSearch(e,t,n);break;case"ex":case"keyToEx":this.processEx(e,t,n)}},processMotion:function(e,t,n){t.inputState.motion=n.motion,t.inputState.motionArgs=X(n.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,n){var r=t.inputState;if(r.operator){if(r.operator==n.operator)return r.motion="expandToLine",r.motionArgs={linewise:!0},void this.evalInput(e,t);U(e)}r.operator=n.operator,r.operatorArgs=X(n.operatorArgs),n.exitVisualBlock&&(t.visualBlock=!1,pe(e)),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,n){var r=t.visualMode,i=X(n.operatorMotionArgs);i&&r&&i.visualLine&&(t.visualLine=!0),this.processOperator(e,t,n),r||this.processMotion(e,t,n)},processAction:function(e,t,n){var r=t.inputState,i=r.getRepeat(),o=!!i,a=X(n.actionArgs)||{};r.selectedCharacter&&(a.selectedCharacter=r.selectedCharacter),n.operator&&this.processOperator(e,t,n),n.motion&&this.processMotion(e,t,n),(n.motion||n.operator)&&this.evalInput(e,t),a.repeat=i||1,a.repeatIsExplicit=o,a.registerName=r.registerName,U(e),t.lastMotion=null,n.isEdit&&this.recordLastEdit(t,r,n),Y[n.action](e,a,t)},processSearch:function(t,n,r){if(t.getSearchCursor){var i=r.searchArgs.forward,o=r.searchArgs.wholeWordOnly;Ce(t).setReversed(!i);var a=i?"/":"?",s=Ce(t).getQuery(),l=t.getScrollInfo();switch(r.searchArgs.querySrc){case"prompt":var u=M.macroModeState;u.isPlaying?p(f=u.replaySearchQueries.shift(),!0,!1):Ne(t,{onClose:function(e){t.scrollTo(l.left,l.top),p(e,!0,!0);var n=M.macroModeState;n.isRecording&&function(e,t){if(!e.isPlaying){var n=e.latestRegister,r=M.registerController.getRegister(n);r&&r.pushSearchQuery&&r.pushSearchQuery(t)}}(n,e)},prefix:a,desc:Le,onKeyUp:function(n,r,o){var a,s,u,c=e.keyName(n);"Up"==c||"Down"==c?(a="Up"==c,s=n.target?n.target.selectionEnd:0,o(r=M.searchHistoryController.nextMatch(r,a)||""),s&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(s,n.target.value.length))):"Left"!=c&&"Right"!=c&&"Ctrl"!=c&&"Alt"!=c&&"Shift"!=c&&M.searchHistoryController.reset();try{u=Fe(t,r,!0,!0)}catch(n){}u?t.scrollIntoView(Ue(t,!i,u),30):(qe(t),t.scrollTo(l.left,l.top))},onKeyDown:function(n,r,i){var o=e.keyName(n);"Esc"==o||"Ctrl-C"==o||"Ctrl-["==o||"Backspace"==o&&""==r?(M.searchHistoryController.pushInput(r),M.searchHistoryController.reset(),Fe(t,s),qe(t),t.scrollTo(l.left,l.top),e.e_stop(n),U(t),i(),t.focus()):"Up"==o||"Down"==o?e.e_stop(n):"Ctrl-U"==o&&(e.e_stop(n),i(""))}});break;case"wordUnderCursor":var c=ve(t,!1,0,!1,!0),d=!0;if(c||(c=ve(t,!1,0,!1,!1),d=!1),!c)return;var f=t.getLine(c.start.line).substring(c.start.ch,c.end.ch);f=d&&o?"\\b"+f+"\\b":f.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1"),M.jumpList.cachedCursor=t.getCursor(),t.setCursor(c.start),p(f,!0,!1)}}function p(e,i,o){M.searchHistoryController.pushInput(e),M.searchHistoryController.reset();try{Fe(t,e,i,o)}catch(n){return De(t,"Invalid regex: "+e),void U(t)}V.processMotion(t,n,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:r.searchArgs.toJumplist}})}},processEx:function(t,n,r){function i(e){M.exCommandHistoryController.pushInput(e),M.exCommandHistoryController.reset(),Ke.processCommand(t,e)}function o(n,r,i){var o,a,s=e.keyName(n);("Esc"==s||"Ctrl-C"==s||"Ctrl-["==s||"Backspace"==s&&""==r)&&(M.exCommandHistoryController.pushInput(r),M.exCommandHistoryController.reset(),e.e_stop(n),U(t),i(),t.focus()),"Up"==s||"Down"==s?(e.e_stop(n),o="Up"==s,a=n.target?n.target.selectionEnd:0,i(r=M.exCommandHistoryController.nextMatch(r,o)||""),a&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(a,n.target.value.length))):"Ctrl-U"==s?(e.e_stop(n),i("")):"Left"!=s&&"Right"!=s&&"Ctrl"!=s&&"Alt"!=s&&"Shift"!=s&&M.exCommandHistoryController.reset()}"keyToEx"==r.type?Ke.processCommand(t,r.exArgs.input):n.visualMode?Ne(t,{onClose:i,prefix:":",value:"'<,'>",onKeyDown:o,selectValueOnOpen:!1}):Ne(t,{onClose:i,prefix:":",onKeyDown:o})},evalInput:function(e,t){var n,r,o,a=t.inputState,s=a.motion,l=a.motionArgs||{},u=a.operator,c=a.operatorArgs||{},d=a.registerName,f=t.sel,p=te(t.visualMode?Q(e,f.head):e.getCursor("head")),h=te(t.visualMode?Q(e,f.anchor):e.getCursor("anchor")),m=te(p),g=te(h);if(u&&this.recordLastEdit(t,a),(o=void 0!==a.repeatOverride?a.repeatOverride:a.getRepeat())>0&&l.explicitRepeat?l.repeatIsExplicit=!0:(l.noRepeat||!l.explicitRepeat&&0===o)&&(o=1,l.repeatIsExplicit=!1),a.selectedCharacter&&(l.selectedCharacter=c.selectedCharacter=a.selectedCharacter),l.repeat=o,U(e),s){var v=$[s](e,p,l,t);if(t.lastMotion=$[s],!v)return;if(l.toJumplist){var y=M.jumpList,b=y.cachedCursor;b?(ye(e,b,v),delete y.cachedCursor):ye(e,p,v)}v instanceof Array?(r=v[0],n=v[1]):n=v,n||(n=te(p)),t.visualMode?(t.visualBlock&&n.ch===1/0||(n=Q(e,n)),r&&(r=Q(e,r)),r=r||g,f.anchor=r,f.head=n,pe(e),Ee(e,t,"<",re(r,n)?r:n),Ee(e,t,">",re(r,n)?n:r)):u||(n=Q(e,n),e.setCursor(n.line,n.ch))}if(u){if(c.lastSel){r=g;var _=c.lastSel,w=Math.abs(_.head.line-_.anchor.line),x=Math.abs(_.head.ch-_.anchor.ch);n=_.visualLine?i(g.line+w,g.ch):_.visualBlock?i(g.line+w,g.ch+x):_.head.line==_.anchor.line?i(g.line,g.ch+x):i(g.line+w,g.ch),t.visualMode=!0,t.visualLine=_.visualLine,t.visualBlock=_.visualBlock,f=t.sel={anchor:r,head:n},pe(e)}else t.visualMode&&(c.lastSel={anchor:te(f.anchor),head:te(f.head),visualBlock:t.visualBlock,visualLine:t.visualLine});var k,E,O,T,C;if(t.visualMode){if(k=ie(f.head,f.anchor),E=oe(f.head,f.anchor),O=t.visualLine||c.linewise,C=he(e,{anchor:k,head:E},T=t.visualBlock?"block":O?"line":"char"),O){var A=C.ranges;if("block"==T)for(var P=0;P<A.length;P++)A[P].head.ch=se(e,A[P].head.line);else"line"==T&&(A[0].head=i(A[0].head.line+1,0))}}else{if(k=te(r||g),re(E=te(n||m),k)){var R=k;k=E,E=R}(O=l.linewise||c.linewise)?function(e,t,n){t.ch=0,n.ch=0,n.line++}(0,k,E):l.forward&&function(e,t,n){var r=e.getRange(t,n);if(/\n\s*$/.test(r)){var i=r.split("\n");i.pop();for(var o=i.pop();i.length>0&&o&&S(o);o=i.pop())n.line--,n.ch=0;o?(n.line--,n.ch=se(e,n.line)):n.ch=0}}(e,k,E),C=he(e,{anchor:k,head:E},T="char",!l.inclusive||O)}e.setSelections(C.ranges,C.primary),t.lastMotion=null,c.repeat=o,c.registerName=d,c.linewise=O;var I=K[u](e,c,C.ranges,g,n);t.visualMode&&me(e,null!=I),I&&e.setCursor(I)}},recordLastEdit:function(e,t,n){var r=M.macroModeState;r.isPlaying||(e.lastEditInputState=t,e.lastEditActionCommand=n,r.lastInsertModeChanges.changes=[],r.lastInsertModeChanges.expectCursorActivityForChange=!1,r.lastInsertModeChanges.visualBlock=e.visualBlock?e.sel.head.line-e.sel.anchor.line:0)}},$={moveToTopLine:function(e,t,n){var r=He(e).top+n.repeat-1;return i(r,ge(e.getLine(r)))},moveToMiddleLine:function(e){var t=He(e),n=Math.floor(.5*(t.top+t.bottom));return i(n,ge(e.getLine(n)))},moveToBottomLine:function(e,t,n){var r=He(e).bottom-n.repeat+1;return i(r,ge(e.getLine(r)))},expandToLine:function(e,t,n){return i(t.line+n.repeat-1,1/0)},findNext:function(e,t,n){var r=Ce(e),i=r.getQuery();if(i){var o=!n.forward;return o=r.isReversed()?!o:o,ze(e,i),Ue(e,o,i,n.repeat)}},goToMark:function(e,t,n,r){var i=We(e,r,n.selectedCharacter);return i?n.linewise?{line:i.line,ch:ge(e.getLine(i.line))}:i:null},moveToOtherHighlightedEnd:function(e,t,n,r){if(r.visualBlock&&n.sameLine){var o=r.sel;return[Q(e,i(o.anchor.line,o.head.ch)),Q(e,i(o.head.line,o.anchor.ch))]}return[r.sel.head,r.sel.anchor]},jumpToMark:function(e,t,n,r){for(var o=t,a=0;a<n.repeat;a++){var s=o;for(var l in r.marks)if(k(l)){var u=r.marks[l].find();if(!((n.forward?re(u,s):re(s,u))||n.linewise&&u.line==s.line)){var c=ne(s,o),d=n.forward?ae(s,u,o):ae(o,u,s);(c||d)&&(o=u)}}}return n.linewise&&(o=i(o.line,ge(e.getLine(o.line)))),o},moveByCharacters:function(e,t,n){var r=t,o=n.repeat,a=n.forward?r.ch+o:r.ch-o;return i(r.line,a)},moveByLines:function(e,t,n,r){var o=t,a=o.ch;switch(r.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:a=r.lastHPos;break;default:r.lastHPos=a}var s=n.repeat+(n.repeatOffset||0),l=n.forward?o.line+s:o.line-s,u=e.firstLine(),c=e.lastLine(),d=e.findPosV(o,n.forward?s:-s,"line",r.lastHSPos);return(n.forward?d.line>l:d.line<l)&&(l=d.line,a=d.ch),l<u&&o.line==u?this.moveToStartOfLine(e,t,n,r):l>c&&o.line==c?this.moveToEol(e,t,n,r,!0):(n.toFirstChar&&(a=ge(e.getLine(l)),r.lastHPos=a),r.lastHSPos=e.charCoords(i(l,a),"div").left,i(l,a))},moveByDisplayLines:function(e,t,n,r){var o=t;switch(r.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:r.lastHSPos=e.charCoords(o,"div").left}var a=n.repeat;if((l=e.findPosV(o,n.forward?a:-a,"line",r.lastHSPos)).hitSide)if(n.forward)var s={top:e.charCoords(l,"div").top+8,left:r.lastHSPos},l=e.coordsChar(s,"div");else{var u=e.charCoords(i(e.firstLine(),0),"div");u.left=r.lastHSPos,l=e.coordsChar(u,"div")}return r.lastHPos=l.ch,l},moveByPage:function(e,t,n){var r=t,i=n.repeat;return e.findPosV(r,n.forward?i:-i,"page")},moveByParagraph:function(e,t,n){var r=n.forward?1:-1;return Oe(e,t,n.repeat,r)},moveBySentence:function(e,t,n){var r=n.forward?1:-1;return function(e,t,n,r){function o(e,t){if(t.pos+t.dir<0||t.pos+t.dir>=t.line.length){if(t.ln+=t.dir,!x(e,t.ln))return t.line=null,t.ln=null,void(t.pos=null);t.line=e.getLine(t.ln),t.pos=t.dir>0?0:t.line.length-1}else t.pos+=t.dir}function a(e,t,n,r){var i=""===(u=e.getLine(t)),a={line:u,ln:t,pos:n,dir:r},s={ln:a.ln,pos:a.pos},l=""===a.line;for(o(e,a);null!==a.line;){if(s.ln=a.ln,s.pos=a.pos,""===a.line&&!l)return{ln:a.ln,pos:a.pos};if(i&&""!==a.line&&!S(a.line[a.pos]))return{ln:a.ln,pos:a.pos};!O(a.line[a.pos])||i||a.pos!==a.line.length-1&&!S(a.line[a.pos+1])||(i=!0),o(e,a)}var u=e.getLine(s.ln);s.pos=0;for(var c=u.length-1;c>=0;--c)if(!S(u[c])){s.pos=c;break}return s}function s(e,t,n,r){var i={line:l=e.getLine(t),ln:t,pos:n,dir:r},a={ln:i.ln,pos:null},s=""===i.line;for(o(e,i);null!==i.line;){if(""===i.line&&!s)return null!==a.pos?a:{ln:i.ln,pos:i.pos};if(O(i.line[i.pos])&&null!==a.pos&&(i.ln!==a.ln||i.pos+1!==a.pos))return a;""===i.line||S(i.line[i.pos])||(s=!1,a={ln:i.ln,pos:i.pos}),o(e,i)}var l=e.getLine(a.ln);a.pos=0;for(var u=0;u<l.length;++u)if(!S(l[u])){a.pos=u;break}return a}for(var l={ln:t.line,pos:t.ch};n>0;)l=r<0?s(e,l.ln,l.pos,r):a(e,l.ln,l.pos,r),n--;return i(l.ln,l.pos)}(e,t,n.repeat,r)},moveByScroll:function(e,t,n,r){var i=e.getScrollInfo(),o=null,a=n.repeat;a||(a=i.clientHeight/(2*e.defaultTextHeight()));var s=e.charCoords(t,"local");if(n.repeat=a,!(o=$.moveByDisplayLines(e,t,n,r)))return null;var l=e.charCoords(o,"local");return e.scrollTo(null,i.top+l.top-s.top),o},moveByWords:function(e,t,n){return function(e,t,n,r,o,a){var s=te(t),l=[];(r&&!o||!r&&o)&&n++;for(var u=!(r&&o),c=0;c<n;c++){var d=xe(e,t,r,a,u);if(!d){var f=se(e,e.lastLine());l.push(r?{line:e.lastLine(),from:f,to:f}:{line:0,from:0,to:0});break}l.push(d),t=i(d.line,r?d.to-1:d.from)}var p=l.length!=n,h=l[0],m=l.pop();return r&&!o?(p||h.from==s.ch&&h.line==s.line||(m=l.pop()),i(m.line,m.from)):r&&o?i(m.line,m.to-1):!r&&o?(p||h.to==s.ch&&h.line==s.line||(m=l.pop()),i(m.line,m.to)):i(m.line,m.from)}(e,t,n.repeat,!!n.forward,!!n.wordEnd,!!n.bigWord)},moveTillCharacter:function(e,t,n){var r=ke(e,n.repeat,n.forward,n.selectedCharacter),i=n.forward?-1:1;return be(i,n),r?(r.ch+=i,r):null},moveToCharacter:function(e,t,n){var r=n.repeat;return be(0,n),ke(e,r,n.forward,n.selectedCharacter)||t},moveToSymbol:function(e,t,n){return function(e,t,n,r){var o=te(e.getCursor()),a=n?1:-1,s=n?e.lineCount():-1,l=o.ch,u=o.line,c=e.getLine(u),d={lineText:c,nextCh:c.charAt(l),lastCh:null,index:l,symb:r,reverseSymb:(n?{")":"(","}":"{"}:{"(":")","{":"}"})[r],forward:n,depth:0,curMoveThrough:!1},f=_e[r];if(!f)return o;var p=we[f].init,h=we[f].isComplete;for(p&&p(d);u!==s&&t;){if(d.index+=a,d.nextCh=d.lineText.charAt(d.index),!d.nextCh){if(u+=a,d.lineText=e.getLine(u)||"",a>0)d.index=0;else{var m=d.lineText.length;d.index=m>0?m-1:0}d.nextCh=d.lineText.charAt(d.index)}h(d)&&(o.line=u,o.ch=d.index,t--)}return d.nextCh||d.curMoveThrough?i(u,d.index):o}(e,n.repeat,n.forward,n.selectedCharacter)||t},moveToColumn:function(e,t,n,r){var o=n.repeat;return r.lastHPos=o-1,r.lastHSPos=e.charCoords(t,"div").left,function(e,t){var n=e.getCursor().line;return Q(e,i(n,t-1))}(e,o)},moveToEol:function(e,t,n,r,o){var a=i(t.line+n.repeat-1,1/0),s=e.clipPos(a);return s.ch--,o||(r.lastHPos=1/0,r.lastHSPos=e.charCoords(s,"div").left),a},moveToFirstNonWhiteSpaceCharacter:function(e,t){var n=t;return i(n.line,ge(e.getLine(n.line)))},moveToMatchedSymbol:function(e,t){for(var n,r=t,o=r.line,a=r.ch,s=e.getLine(o);a<s.length;a++)if((n=s.charAt(a))&&-1!="()[]{}".indexOf(n)){var l=e.getTokenTypeAt(i(o,a+1));if("string"!==l&&"comment"!==l)break}if(a<s.length){var u="<"===a||">"===a?/[(){}[\]<>]/:/[(){}[\]]/;return e.findMatchingBracket(i(o,a),{bracketRegex:u}).to}return r},moveToStartOfLine:function(e,t){return i(t.line,0)},moveToLineOrEdgeOfDocument:function(e,t,n){var r=n.forward?e.lastLine():e.firstLine();return n.repeatIsExplicit&&(r=n.repeat-e.getOption("firstLineNumber")),i(r,ge(e.getLine(r)))},textObjectManipulation:function(e,t,n,r){var o=n.selectedCharacter;"b"==o?o="(":"B"==o&&(o="{");var a,s=!n.textObjectInner;if({"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"}[o])a=function(e,t,n,r){var o,a,s=t,l={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[n],u={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[n],c=e.getLine(s.line).charAt(s.ch)===u?1:0;if(o=e.scanForBracket(i(s.line,s.ch+c),-1,void 0,{bracketRegex:l}),a=e.scanForBracket(i(s.line,s.ch+c),1,void 0,{bracketRegex:l}),!o||!a)return{start:s,end:s};if(o=o.pos,a=a.pos,o.line==a.line&&o.ch>a.ch||o.line>a.line){var d=o;o=a,a=d}return r?a.ch+=1:o.ch+=1,{start:o,end:a}}(e,t,o,s);else if({"'":!0,'"':!0,"`":!0}[o])a=function(e,t,n,r){var o,a,s,l,u=te(t),c=e.getLine(u.line).split(""),d=c.indexOf(n);if(u.ch<d?u.ch=d:d<u.ch&&c[u.ch]==n&&(a=u.ch,--u.ch),c[u.ch]!=n||a)for(s=u.ch;s>-1&&!o;s--)c[s]==n&&(o=s+1);else o=u.ch+1;if(o&&!a)for(s=o,l=c.length;s<l&&!a;s++)c[s]==n&&(a=s);return o&&a?(r&&(--o,++a),{start:i(u.line,o),end:i(u.line,a)}):{start:u,end:u}}(e,t,o,s);else if("W"===o)a=ve(e,s,0,!0);else if("w"===o)a=ve(e,s,0,!1);else{if("p"!==o)return null;if(a=Oe(e,t,n.repeat,0,s),n.linewise=!0,r.visualMode)r.visualLine||(r.visualLine=!0);else{var l=r.inputState.operatorArgs;l&&(l.linewise=!0),a.end.line--}}return e.state.vim.visualMode?function(e,t,n){var r,o=e.state.vim.sel,a=o.head,s=o.anchor;return re(n,t)&&(r=n,n=t,t=r),re(a,s)?(a=ie(t,a),s=oe(s,n)):(s=ie(t,s),-1==(a=J(a=oe(a,n),0,-1)).ch&&a.line!=e.firstLine()&&(a=i(a.line-1,se(e,a.line-1)))),[s,a]}(e,a.start,a.end):[a.start,a.end]},repeatLastCharacterSearch:function(e,t,n){var r=M.lastCharacterSearch,i=n.repeat,o=n.forward===r.forward,a=(r.increment?1:0)*(o?-1:1);e.moveH(-a,"char"),n.inclusive=!!o;var s=ke(e,i,o,r.selectedCharacter);return s?(s.ch+=a,s):(e.moveH(a,"char"),t)}};function G(e,t){for(var n=[],r=0;r<t;r++)n.push(e);return n}var K={change:function(t,n,r){var o,a,s=t.state.vim,l=r[0].anchor,u=r[0].head;if(s.visualMode)if(n.fullLine)u.ch=Number.MAX_VALUE,u.line--,t.setSelection(l,u),a=t.getSelection(),t.replaceSelection(""),o=l;else{a=t.getSelection();var c=G("",r.length);t.replaceSelections(c),o=ie(r[0].head,r[0].anchor)}else{a=t.getRange(l,u);var d=s.lastEditInputState||{};if("moveByWords"==d.motion&&!S(a)){var f=/\s+$/.exec(a);f&&d.motionArgs&&d.motionArgs.forward&&(u=J(u,0,-f[0].length),a=a.slice(0,-f[0].length))}var p=new i(l.line-1,Number.MAX_VALUE),h=t.firstLine()==t.lastLine();u.line>t.lastLine()&&n.linewise&&!h?t.replaceRange("",p,u):t.replaceRange("",l,u),n.linewise&&(h||(t.setCursor(p),e.commands.newlineAndIndent(t)),l.ch=Number.MAX_VALUE),o=l}M.registerController.pushText(n.registerName,"change",a,n.linewise,r.length>1),Y.enterInsertMode(t,{head:o},t.state.vim)},delete:function(e,t,n){var r,o,a=e.state.vim;if(a.visualBlock){o=e.getSelection();var s=G("",n.length);e.replaceSelections(s),r=n[0].anchor}else{var l=n[0].anchor,u=n[0].head;t.linewise&&u.line!=e.firstLine()&&l.line==e.lastLine()&&l.line==u.line-1&&(l.line==e.firstLine()?l.ch=0:l=i(l.line-1,se(e,l.line-1))),o=e.getRange(l,u),e.replaceRange("",l,u),r=l,t.linewise&&(r=$.moveToFirstNonWhiteSpaceCharacter(e,l))}return M.registerController.pushText(t.registerName,"delete",o,t.linewise,a.visualBlock),Q(e,r)},indent:function(e,t,n){var r=e.state.vim,i=n[0].anchor.line,o=r.visualBlock?n[n.length-1].anchor.line:n[0].head.line,a=r.visualMode?t.repeat:1;t.linewise&&o--;for(var s=i;s<=o;s++)for(var l=0;l<a;l++)e.indentLine(s,t.indentRight);return $.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},indentAuto:function(e,t,n){return e.execCommand("indentAuto"),$.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},changeCase:function(e,t,n,r,i){for(var o=e.getSelections(),a=[],s=t.toLower,l=0;l<o.length;l++){var u=o[l],c="";if(!0===s)c=u.toLowerCase();else if(!1===s)c=u.toUpperCase();else for(var d=0;d<u.length;d++){var f=u.charAt(d);c+=E(f)?f.toLowerCase():f.toUpperCase()}a.push(c)}return e.replaceSelections(a),t.shouldMoveCursor?i:!e.state.vim.visualMode&&t.linewise&&n[0].anchor.line+1==n[0].head.line?$.moveToFirstNonWhiteSpaceCharacter(e,r):t.linewise?r:ie(n[0].anchor,n[0].head)},yank:function(e,t,n,r){var i=e.state.vim,o=e.getSelection(),a=i.visualMode?ie(i.sel.anchor,i.sel.head,n[0].head,n[0].anchor):r;return M.registerController.pushText(t.registerName,"yank",o,t.linewise,i.visualBlock),a}},Y={jumpListWalk:function(e,t,n){if(!n.visualMode){var r=t.repeat,i=t.forward,o=M.jumpList.move(e,i?r:-r),a=o?o.find():void 0;a=a||e.getCursor(),e.setCursor(a)}},scroll:function(e,t,n){if(!n.visualMode){var r=t.repeat||1,i=e.defaultTextHeight(),o=e.getScrollInfo().top,a=i*r,s=t.forward?o+a:o-a,l=te(e.getCursor()),u=e.charCoords(l,"local");if(t.forward)s>u.top?(l.line+=(s-u.top)/i,l.line=Math.ceil(l.line),e.setCursor(l),u=e.charCoords(l,"local"),e.scrollTo(null,u.top)):e.scrollTo(null,s);else{var c=s+e.getScrollInfo().clientHeight;c<u.bottom?(l.line-=(u.bottom-c)/i,l.line=Math.floor(l.line),e.setCursor(l),u=e.charCoords(l,"local"),e.scrollTo(null,u.bottom-e.getScrollInfo().clientHeight)):e.scrollTo(null,s)}}},scrollToCursor:function(e,t){var n=e.getCursor().line,r=e.charCoords(i(n,0),"local"),o=e.getScrollInfo().clientHeight,a=r.top,s=r.bottom-a;switch(t.position){case"center":a=a-o/2+s;break;case"bottom":a=a-o+s}e.scrollTo(null,a)},replayMacro:function(e,t,n){var r=t.selectedCharacter,i=t.repeat,o=M.macroModeState;for("@"==r?r=o.latestRegister:o.latestRegister=r;i--;)Xe(e,n,o,r)},enterMacroRecordMode:function(e,t){var n=M.macroModeState,r=t.selectedCharacter;M.registerController.isValidRegister(r)&&n.enterMacroRecordMode(e,r)},toggleOverwrite:function(t){t.state.overwrite?(t.toggleOverwrite(!1),t.setOption("keyMap","vim-insert"),e.signal(t,"vim-mode-change",{mode:"insert"})):(t.toggleOverwrite(!0),t.setOption("keyMap","vim-replace"),e.signal(t,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(t,n,r){if(!t.getOption("readOnly")){r.insertMode=!0,r.insertModeRepeat=n&&n.repeat||1;var o=n?n.insertAt:null,a=r.sel,s=n.head||t.getCursor("head"),l=t.listSelections().length;if("eol"==o)s=i(s.line,se(t,s.line));else if("bol"==o)s=i(s.line,0);else if("charAfter"==o)s=J(s,0,1);else if("firstNonBlank"==o)s=$.moveToFirstNonWhiteSpaceCharacter(t,s);else if("startOfSelectedArea"==o){if(!r.visualMode)return;r.visualBlock?(s=i(Math.min(a.head.line,a.anchor.line),Math.min(a.head.ch,a.anchor.ch)),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line<a.anchor.line?a.head:i(a.anchor.line,0)}else if("endOfSelectedArea"==o){if(!r.visualMode)return;r.visualBlock?(s=i(Math.min(a.head.line,a.anchor.line),Math.max(a.head.ch+1,a.anchor.ch)),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line>=a.anchor.line?J(a.head,0,1):i(a.anchor.line,0)}else if("inplace"==o){if(r.visualMode)return}else"lastEdit"==o&&(s=Ve(t)||s);t.setOption("disableInput",!1),n&&n.replace?(t.toggleOverwrite(!0),t.setOption("keyMap","vim-replace"),e.signal(t,"vim-mode-change",{mode:"replace"})):(t.toggleOverwrite(!1),t.setOption("keyMap","vim-insert"),e.signal(t,"vim-mode-change",{mode:"insert"})),M.macroModeState.isPlaying||(t.on("change",Je),e.on(t.getInputField(),"keydown",rt)),r.visualMode&&me(t),de(t,s,l)}},toggleVisualMode:function(t,n,r){var o,a=n.repeat,s=t.getCursor();r.visualMode?r.visualLine^n.linewise||r.visualBlock^n.blockwise?(r.visualLine=!!n.linewise,r.visualBlock=!!n.blockwise,e.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),pe(t)):me(t):(r.visualMode=!0,r.visualLine=!!n.linewise,r.visualBlock=!!n.blockwise,o=Q(t,i(s.line,s.ch+a-1)),r.sel={anchor:s,head:o},e.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),pe(t),Ee(t,r,"<",ie(s,o)),Ee(t,r,">",oe(s,o)))},reselectLastSelection:function(t,n,r){var i=r.lastSelection;if(r.visualMode&&fe(t,r),i){var o=i.anchorMark.find(),a=i.headMark.find();if(!o||!a)return;r.sel={anchor:o,head:a},r.visualMode=!0,r.visualLine=i.visualLine,r.visualBlock=i.visualBlock,pe(t),Ee(t,r,"<",ie(o,a)),Ee(t,r,">",oe(o,a)),e.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""})}},joinLines:function(e,t,n){var r,o;if(n.visualMode){if(r=e.getCursor("anchor"),re(o=e.getCursor("head"),r)){var a=o;o=r,r=a}o.ch=se(e,o.line)-1}else{var s=Math.max(t.repeat,2);r=e.getCursor(),o=Q(e,i(r.line+s-1,1/0))}for(var l=0,u=r.line;u<o.line;u++){l=se(e,r.line),a=i(r.line+1,se(e,r.line+1));var c=e.getRange(r,a);c=t.keepSpaces?c.replace(/\n\r?/g,""):c.replace(/\n\s*/g," "),e.replaceRange(c,r,a)}var d=i(r.line,l);n.visualMode&&me(e,!1),e.setCursor(d)},newLineAndEnterInsertMode:function(t,n,r){r.insertMode=!0;var o=te(t.getCursor());o.line!==t.firstLine()||n.after?(o.line=n.after?o.line:o.line-1,o.ch=se(t,o.line),t.setCursor(o),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(t)):(t.replaceRange("\n",i(t.firstLine(),0)),t.setCursor(t.firstLine(),0)),this.enterInsertMode(t,{repeat:n.repeat},r)},paste:function(e,t,n){var r=te(e.getCursor()),o=M.registerController.getRegister(t.registerName);if(p=o.toString()){if(t.matchIndent){var a=e.getOption("tabSize"),s=function(e){var t=e.split("\t").length-1,n=e.split(" ").length-1;return t*a+1*n},l=e.getLine(e.getCursor().line),u=s(l.match(/^\s*/)[0]),c=p.replace(/\n$/,""),d=p!==c,f=s(p.match(/^\s*/)[0]),p=c.replace(/^\s*/gm,(function(t){var n=u+(s(t)-f);if(n<0)return"";if(e.getOption("indentWithTabs")){var r=Math.floor(n/a);return Array(r+1).join("\t")}return Array(n+1).join(" ")}));p+=d?"\n":""}t.repeat>1&&(p=Array(t.repeat+1).join(p));var h,m,g=o.linewise,v=o.blockwise;if(v){p=p.split("\n"),g&&p.pop();for(var y=0;y<p.length;y++)p[y]=""==p[y]?" ":p[y];r.ch+=t.after?1:0,r.ch=Math.min(se(e,r.line),r.ch)}else g?n.visualMode?p=n.visualLine?p.slice(0,-1):"\n"+p.slice(0,p.length-1)+"\n":t.after?(p="\n"+p.slice(0,p.length-1),r.ch=se(e,r.line)):r.ch=0:r.ch+=t.after?1:0;if(n.visualMode){var b;n.lastPastedText=p;var _=function(e,t){var n=t.lastSelection;return t.visualMode?function(){var t=e.listSelections(),n=t[0],r=t[t.length-1];return[re(n.anchor,n.head)?n.anchor:n.head,re(r.anchor,r.head)?r.head:r.anchor]}():function(){var t=e.getCursor(),r=e.getCursor(),o=n.visualBlock;if(o){var a=o.width,s=o.height;r=i(t.line+s,t.ch+a);for(var l=[],u=t.line;u<r.line;u++){var c={anchor:i(u,t.ch),head:i(u,r.ch)};l.push(c)}e.setSelections(l)}else{var d=n.anchorMark.find(),f=n.headMark.find(),p=f.line-d.line,h=f.ch-d.ch;r={line:r.line+p,ch:p?r.ch:h+r.ch},n.visualLine&&(t=i(t.line,0),r=i(r.line,se(e,r.line))),e.setSelection(t,r)}return[t,r]}()}(e,n),w=_[0],x=_[1],k=e.getSelection(),E=e.listSelections(),S=new Array(E.length).join("1").split("1");n.lastSelection&&(b=n.lastSelection.headMark.find()),M.registerController.unnamedRegister.setText(k),v?(e.replaceSelections(S),x=i(w.line+p.length-1,w.ch),e.setCursor(w),ce(e,x),e.replaceSelections(p),h=w):n.visualBlock?(e.replaceSelections(S),e.setCursor(w),e.replaceRange(p,w,w),h=w):(e.replaceRange(p,w,x),h=e.posFromIndex(e.indexFromPos(w)+p.length-1)),b&&(n.lastSelection.headMark=e.setBookmark(b)),g&&(h.ch=0)}else if(v){for(e.setCursor(r),y=0;y<p.length;y++){var O=r.line+y;O>e.lastLine()&&e.replaceRange("\n",i(O,0)),se(e,O)<r.ch&&ue(e,O,r.ch)}e.setCursor(r),ce(e,i(r.line+p.length-1,r.ch)),e.replaceSelections(p),h=r}else e.replaceRange(p,r),g&&t.after?h=i(r.line+1,ge(e.getLine(r.line+1))):g&&!t.after?h=i(r.line,ge(e.getLine(r.line))):!g&&t.after?(m=e.indexFromPos(r),h=e.posFromIndex(m+p.length-1)):(m=e.indexFromPos(r),h=e.posFromIndex(m+p.length));n.visualMode&&me(e,!1),e.setCursor(h)}},undo:function(t,n){t.operation((function(){ee(t,e.commands.undo,n.repeat)(),t.setCursor(t.getCursor("anchor"))}))},redo:function(t,n){ee(t,e.commands.redo,n.repeat)()},setRegister:function(e,t,n){n.inputState.registerName=t.selectedCharacter},setMark:function(e,t,n){Ee(e,n,t.selectedCharacter,e.getCursor())},replace:function(t,n,r){var o,a,s=n.selectedCharacter,l=t.getCursor(),u=t.listSelections();if(r.visualMode)l=t.getCursor("start"),a=t.getCursor("end");else{var c=t.getLine(l.line);(o=l.ch+n.repeat)>c.length&&(o=c.length),a=i(l.line,o)}if("\n"==s)r.visualMode||t.replaceRange("",l,a),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(t);else{var d=t.getRange(l,a);if(d=d.replace(/[^\n]/g,s),r.visualBlock){var f=new Array(t.getOption("tabSize")+1).join(" ");d=(d=t.getSelection()).replace(/\t/g,f).replace(/[^\n]/g,s).split("\n"),t.replaceSelections(d)}else t.replaceRange(d,l,a);r.visualMode?(l=re(u[0].anchor,u[0].head)?u[0].anchor:u[0].head,t.setCursor(l),me(t,!1)):t.setCursor(J(a,0,-1))}},incrementNumberToken:function(e,t){for(var n,r,o,a,s=e.getCursor(),l=e.getLine(s.line),u=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(n=u.exec(l))&&(o=(r=n.index)+n[0].length,!(s.ch<o)););if((t.backtrack||!(o<=s.ch))&&n){var c=n[2]||n[4],d=n[3]||n[5],f=t.increase?1:-1,p={"0b":2,0:8,"":10,"0x":16}[c.toLowerCase()];a=(parseInt(n[1]+d,p)+f*t.repeat).toString(p);var h=c?new Array(d.length-a.length+1+n[1].length).join("0"):"";a="-"===a.charAt(0)?"-"+c+h+a.substr(1):c+h+a;var m=i(s.line,r),g=i(s.line,o);e.replaceRange(a,m,g),e.setCursor(i(s.line,r+a.length-1))}},repeatLastEdit:function(e,t,n){if(n.lastEditInputState){var r=t.repeat;r&&t.repeatIsExplicit?n.lastEditInputState.repeatOverride=r:r=n.lastEditInputState.repeatOverride||r,it(e,n,r,!1)}},indent:function(e,t){e.indentLine(e.getCursor().line,t.indentRight)},exitInsertMode:Ye};function Q(e,t){var n=e.state.vim,r=n.insertMode||n.visualMode,o=Math.min(Math.max(e.firstLine(),t.line),e.lastLine()),a=se(e,o)-1+!!r,s=Math.min(Math.max(0,t.ch),a);return i(o,s)}function X(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function J(e,t,n){return"object"==typeof t&&(n=t.ch,t=t.line),i(e.line+t,e.ch+n)}function Z(e,t){if("<character>"==t.slice(-11)){var n=t.length-11,r=e.slice(0,n),i=t.slice(0,n);return r==i&&e.length>n?"full":0==i.indexOf(r)&&"partial"}return e==t?"full":0==t.indexOf(e)&&"partial"}function ee(e,t,n){return function(){for(var r=0;r<n;r++)t(e)}}function te(e){return i(e.line,e.ch)}function ne(e,t){return e.ch==t.ch&&e.line==t.line}function re(e,t){return e.line<t.line||e.line==t.line&&e.ch<t.ch}function ie(e,t){return arguments.length>2&&(t=ie.apply(void 0,Array.prototype.slice.call(arguments,1))),re(e,t)?e:t}function oe(e,t){return arguments.length>2&&(t=oe.apply(void 0,Array.prototype.slice.call(arguments,1))),re(e,t)?t:e}function ae(e,t,n){var r=re(e,t),i=re(t,n);return r&&i}function se(e,t){return e.getLine(t).length}function le(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function ue(e,t,n){var r=se(e,t),o=new Array(n-r+1).join(" ");e.setCursor(i(t,r)),e.replaceRange(o,e.getCursor())}function ce(e,t){var n=[],r=e.listSelections(),o=te(e.clipPos(t)),a=!ne(t,o),s=function(e,t,n){for(var r=0;r<e.length;r++){var i="head"!=n&&ne(e[r].anchor,t),o="anchor"!=n&&ne(e[r].head,t);if(i||o)return r}return-1}(r,e.getCursor("head")),l=ne(r[s].head,r[s].anchor),u=r.length-1,c=u-s>s?u:0,d=r[c].anchor,f=Math.min(d.line,o.line),p=Math.max(d.line,o.line),h=d.ch,m=o.ch,g=r[c].head.ch-h,v=m-h;g>0&&v<=0?(h++,a||m--):g<0&&v>=0?(h--,l||m++):g<0&&-1==v&&(h--,m++);for(var y=f;y<=p;y++){var b={anchor:new i(y,h),head:new i(y,m)};n.push(b)}return e.setSelections(n),t.ch=m,d.ch=h,d}function de(e,t,n){for(var r=[],i=0;i<n;i++){var o=J(t,i,0);r.push({anchor:o,head:o})}e.setSelections(r,0)}function fe(e,t){var n=t.sel.anchor,r=t.sel.head;t.lastPastedText&&(r=e.posFromIndex(e.indexFromPos(n)+t.lastPastedText.length),t.lastPastedText=null),t.lastSelection={anchorMark:e.setBookmark(n),headMark:e.setBookmark(r),anchor:te(n),head:te(r),visualMode:t.visualMode,visualLine:t.visualLine,visualBlock:t.visualBlock}}function pe(e,t,n){var r=e.state.vim,i=he(e,t=t||r.sel,n=n||r.visualLine?"line":r.visualBlock?"block":"char");e.setSelections(i.ranges,i.primary),et(e)}function he(e,t,n,r){var o=te(t.head),a=te(t.anchor);if("char"==n){var s=r||re(t.head,t.anchor)?0:1,l=re(t.head,t.anchor)?1:0;return o=J(t.head,0,s),{ranges:[{anchor:a=J(t.anchor,0,l),head:o}],primary:0}}if("line"==n){if(re(t.head,t.anchor))o.ch=0,a.ch=se(e,a.line);else{a.ch=0;var u=e.lastLine();o.line>u&&(o.line=u),o.ch=se(e,o.line)}return{ranges:[{anchor:a,head:o}],primary:0}}if("block"==n){for(var c=Math.min(a.line,o.line),d=Math.min(a.ch,o.ch),f=Math.max(a.line,o.line),p=Math.max(a.ch,o.ch)+1,h=f-c+1,m=o.line==c?0:h-1,g=[],v=0;v<h;v++)g.push({anchor:i(c+v,d),head:i(c+v,p)});return{ranges:g,primary:m}}}function me(t,n){var r=t.state.vim;!1!==n&&t.setCursor(Q(t,r.sel.head)),fe(t,r),r.visualMode=!1,r.visualLine=!1,r.visualBlock=!1,r.insertMode||e.signal(t,"vim-mode-change",{mode:"normal"}),tt(r)}function ge(e){if(!e)return 0;var t=e.search(/\S/);return-1==t?e.length:t}function ve(e,t,n,r,o){for(var a=function(e){var t=e.getCursor("head");return 1==e.getSelection().length&&(t=ie(t,e.getCursor("anchor"))),t}(e),s=e.getLine(a.line),l=a.ch,u=o?h[0]:m[0];!u(s.charAt(l));)if(++l>=s.length)return null;r?u=m[0]:(u=h[0])(s.charAt(l))||(u=h[1]);for(var c=l,d=l;u(s.charAt(c))&&c<s.length;)c++;for(;u(s.charAt(d))&&d>=0;)d--;if(d++,t){for(var f=c;/\s/.test(s.charAt(c))&&c<s.length;)c++;if(f==c){for(var p=d;/\s/.test(s.charAt(d-1))&&d>0;)d--;d||(d=p)}}return{start:i(a.line,d),end:i(a.line,c)}}function ye(e,t,n){ne(t,n)||M.jumpList.add(e,t,n)}function be(e,t){M.lastCharacterSearch.increment=e,M.lastCharacterSearch.forward=t.forward,M.lastCharacterSearch.selectedCharacter=t.selectedCharacter}var _e={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},we={bracket:{isComplete:function(e){if(e.nextCh===e.symb){if(e.depth++,e.depth>=1)return!0}else e.nextCh===e.reverseSymb&&e.depth--;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?"]":"[")===e.symb?"{":"}"},isComplete:function(e){return 0===e.index&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t="*"===e.lastCh&&"/"===e.nextCh;return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb="m"===e.symb?"{":"}",e.reverseSymb="{"===e.symb?"}":"{"},isComplete:function(e){return e.nextCh===e.symb}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if("#"===e.nextCh){var t=e.lineText.match(/#(\w+)/)[1];if("endif"===t){if(e.forward&&0===e.depth)return!0;e.depth++}else if("if"===t){if(!e.forward&&0===e.depth)return!0;e.depth--}if("else"===t&&0===e.depth)return!0}return!1}}};function xe(e,t,n,r,i){var o=t.line,a=t.ch,s=e.getLine(o),l=n?1:-1,u=r?m:h;if(i&&""==s){if(o+=l,s=e.getLine(o),!x(e,o))return null;a=n?0:s.length}for(;;){if(i&&""==s)return{from:0,to:0,line:o};for(var c=l>0?s.length:-1,d=c,f=c;a!=c;){for(var p=!1,g=0;g<u.length&&!p;++g)if(u[g](s.charAt(a))){for(d=a;a!=c&&u[g](s.charAt(a));)a+=l;if(p=d!=(f=a),d==t.ch&&o==t.line&&f==d+l)continue;return{from:Math.min(d,f+1),to:Math.max(d,f),line:o}}p||(a+=l)}if(!x(e,o+=l))return null;s=e.getLine(o),a=l>0?0:s.length}}function ke(e,t,n,r){for(var o,a=e.getCursor(),s=a.ch,l=0;l<t;l++){if(-1==(o=Se(s,e.getLine(a.line),r,n,!0)))return null;s=o}return i(e.getCursor().line,o)}function Ee(e,t,n,r){T(n,_)&&(t.marks[n]&&t.marks[n].clear(),t.marks[n]=e.setBookmark(r))}function Se(e,t,n,r,i){var o;return r?-1==(o=t.indexOf(n,e+1))||i||(o-=1):-1==(o=t.lastIndexOf(n,e-1))||i||(o+=1),o}function Oe(e,t,n,r,o){var a,s=t.line,l=e.firstLine(),u=e.lastLine(),c=s;function d(t){return!e.getLine(t)}function f(e,t,n){return n?d(e)!=d(e+t):!d(e)&&d(e+t)}if(r){for(;l<=c&&c<=u&&n>0;)f(c,r)&&n--,c+=r;return new i(c,0)}var p=e.state.vim;if(p.visualLine&&f(s,1,!0)){var h=p.sel.anchor;f(h.line,-1,!0)&&(o&&h.line==s||(s+=1))}var m=d(s);for(c=s;c<=u&&n;c++)f(c,1,!0)&&(o&&d(c)==m||n--);for(a=new i(c,0),c>u&&!m?m=!0:o=!1,c=s;c>l&&(o&&d(c)!=m&&c!=s||!f(c,-1,!0));c--);return{start:new i(c,0),end:a}}function Te(){}function Ce(e){var t=e.state.vim;return t.searchState_||(t.searchState_=new Te)}function Ae(e,t,n,r,i){e.openDialog?e.openDialog(t,r,{bottom:!0,value:i.value,onKeyDown:i.onKeyDown,onKeyUp:i.onKeyUp,selectValueOnOpen:!1}):r(prompt(n,""))}function Pe(e,t){var n=Re(e,t)||[];if(!n.length)return[];var r=[];if(0===n[0]){for(var i=0;i<n.length;i++)"number"==typeof n[i]&&r.push(e.substring(n[i]+1,n[i+1]));return r}}function Re(e,t){t||(t="/");for(var n=!1,r=[],i=0;i<e.length;i++){var o=e.charAt(i);n||o!=t||r.push(i),n=!n&&"\\"==o}return r}A("pcre",!0,"boolean"),Te.prototype={getQuery:function(){return M.query},setQuery:function(e){M.query=e},getOverlay:function(){return this.searchOverlay},setOverlay:function(e){this.searchOverlay=e},isReversed:function(){return M.isReversed},setReversed:function(e){M.isReversed=e},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(e){this.annotate=e}};var Me={"\\n":"\n","\\r":"\r","\\t":"\t"},Ie={"\\/":"/","\\\\":"\\","\\n":"\n","\\r":"\r","\\t":"\t","\\&":"&"};function je(e,t,n){if(M.registerController.getRegister("/").setText(e),e instanceof RegExp)return e;var r,i,o=Re(e,"/");return o.length?(r=e.substring(0,o[0]),i=-1!=e.substring(o[0]).indexOf("i")):r=e,r?(R("pcre")||(r=function(e){for(var t=!1,n=[],r=-1;r<e.length;r++){var i=e.charAt(r)||"",o=e.charAt(r+1)||"",a=o&&-1!="|(){".indexOf(o);t?("\\"===i&&a||n.push(i),t=!1):"\\"===i?(t=!0,o&&-1!="}".indexOf(o)&&(a=!0),a&&"\\"!==o||n.push(i)):(n.push(i),a&&"\\"!==o&&n.push("\\"))}return n.join("")}(r)),n&&(t=/^[^A-Z]*$/.test(r)),new RegExp(r,t||i?"i":void 0)):null}function De(e,t){e.openNotification?e.openNotification('<span style="color: red">'+t+"</span>",{bottom:!0,duration:5e3}):alert(t)}var Le="(Javascript regexp)";function Ne(e,t){var n,r,i,o=(t.prefix||"")+" "+(t.desc||"");Ae(e,(n=t.prefix,r=t.desc,i='<span style="font-family: monospace; white-space: pre">'+(n||"")+'<input type="text" autocorrect="off" autocapitalize="off" spellcheck="false"></span>',r&&(i+=' <span style="color: #888">'+r+"</span>"),i),o,t.onClose,t)}function Fe(e,t,n,r){if(t){var i=Ce(e),o=je(t,!!n,!!r);if(o)return ze(e,o),function(e,t){if(e instanceof RegExp&&t instanceof RegExp){for(var n=["global","multiline","ignoreCase","source"],r=0;r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0}return!1}(o,i.getQuery())||i.setQuery(o),o}}var Be=0;function ze(e,t){clearTimeout(Be),Be=setTimeout((function(){var n=Ce(e),r=n.getOverlay();r&&t==r.query||(r&&e.removeOverlay(r),r=function(e){if("^"==e.source.charAt(0))var t=!0;return{token:function(n){if(!t||n.sol()){var r=n.match(e,!1);if(r)return 0==r[0].length?(n.next(),"searching"):n.sol()||(n.backUp(1),e.exec(n.next()+r[0]))?(n.match(e),"searching"):(n.next(),null);for(;!n.eol()&&(n.next(),!n.match(e,!1)););}else n.skipToEnd()},query:e}}(t),e.addOverlay(r),e.showMatchesOnScrollbar&&(n.getScrollbarAnnotate()&&n.getScrollbarAnnotate().clear(),n.setScrollbarAnnotate(e.showMatchesOnScrollbar(t))),n.setOverlay(r))}),50)}function Ue(e,t,n,r){return void 0===r&&(r=1),e.operation((function(){for(var o=e.getCursor(),a=e.getSearchCursor(n,o),s=0;s<r;s++){var l=a.find(t);if(0==s&&l&&ne(a.from(),o)&&(l=a.find(t)),!l&&!(a=e.getSearchCursor(n,t?i(e.lastLine()):i(e.firstLine(),0))).find(t))return}return a.from()}))}function qe(e){var t=Ce(e);e.removeOverlay(Ce(e).getOverlay()),t.setOverlay(null),t.getScrollbarAnnotate()&&(t.getScrollbarAnnotate().clear(),t.setScrollbarAnnotate(null))}function He(e){var t=e.getScrollInfo(),n=e.coordsChar({left:0,top:6+t.top},"local"),r=t.clientHeight-10+t.top,i=e.coordsChar({left:0,top:r},"local");return{top:n.line,bottom:i.line}}function We(e,t,n){if("'"==n||"`"==n)return M.jumpList.find(e,-1)||i(0,0);if("."==n)return Ve(e);var r=t.marks[n];return r&&r.find()}function Ve(e){for(var t=e.doc.history.done,n=t.length;n--;)if(t[n].changes)return te(t[n].changes[0].to)}var $e=function(){this.buildCommandMap_()};$e.prototype={processCommand:function(e,t,n){var r=this;e.operation((function(){e.curOp.isVimOp=!0,r._processCommand(e,t,n)}))},_processCommand:function(t,n,r){var i=t.state.vim,o=M.registerController.getRegister(":"),a=o.toString();i.visualMode&&me(t);var s=new e.StringStream(n);o.setText(n);var l,u,c=r||{};c.input=n;try{this.parseInput_(t,s,c)}catch(e){throw De(t,e),e}if(c.commandName){if(l=this.matchCommand_(c.commandName)){if(u=l.name,l.excludeFromCommandHistory&&o.setText(a),this.parseCommandArgs_(s,c,l),"exToKey"==l.type){for(var d=0;d<l.toKeys.length;d++)e.Vim.handleKey(t,l.toKeys[d],"mapping");return}if("exToEx"==l.type)return void this.processCommand(t,l.toInput)}}else void 0!==c.line&&(u="move");if(u)try{Ge[u](t,c),l&&l.possiblyAsync||!c.callback||c.callback()}catch(e){throw De(t,e),e}else De(t,'Not an editor command ":'+n+'"')},parseInput_:function(e,t,n){t.eatWhile(":"),t.eat("%")?(n.line=e.firstLine(),n.lineEnd=e.lastLine()):(n.line=this.parseLineSpec_(e,t),void 0!==n.line&&t.eat(",")&&(n.lineEnd=this.parseLineSpec_(e,t)));var r=t.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return n.commandName=r?r[1]:t.match(/.*/)[0],n},parseLineSpec_:function(e,t){var n=t.match(/^(\d+)/);if(n)return parseInt(n[1],10)-1;switch(t.next()){case".":return this.parseLineSpecOffset_(t,e.getCursor().line);case"$":return this.parseLineSpecOffset_(t,e.lastLine());case"'":var r=t.next(),i=We(e,e.state.vim,r);if(!i)throw new Error("Mark not set");return this.parseLineSpecOffset_(t,i.line);case"-":case"+":return t.backUp(1),this.parseLineSpecOffset_(t,e.getCursor().line);default:return void t.backUp(1)}},parseLineSpecOffset_:function(e,t){var n=e.match(/^([+-])?(\d+)/);if(n){var r=parseInt(n[2],10);"-"==n[1]?t-=r:t+=r}return t},parseCommandArgs_:function(e,t,n){if(!e.eol()){t.argString=e.match(/.*/)[0];var r=n.argDelimiter||/\s+/,i=le(t.argString).split(r);i.length&&i[0]&&(t.args=i)}},matchCommand_:function(e){for(var t=e.length;t>0;t--){var n=e.substring(0,t);if(this.commandMap_[n]){var r=this.commandMap_[n];if(0===r.name.indexOf(e))return r}}return null},buildCommandMap_:function(){this.commandMap_={};for(var e=0;e<r.length;e++){var t=r[e],n=t.shortName||t.name;this.commandMap_[n]=t}},map:function(e,n,r){if(":"!=e&&":"==e.charAt(0)){if(r)throw Error("Mode not supported for ex mappings");var i=e.substring(1);":"!=n&&":"==n.charAt(0)?this.commandMap_[i]={name:i,type:"exToEx",toInput:n.substring(1),user:!0}:this.commandMap_[i]={name:i,type:"exToKey",toKeys:n,user:!0}}else if(":"!=n&&":"==n.charAt(0)){var o={keys:e,type:"keyToEx",exArgs:{input:n.substring(1)}};r&&(o.context=r),t.unshift(o)}else o={keys:e,type:"keyToKey",toKeys:n},r&&(o.context=r),t.unshift(o)},unmap:function(e,n){if(":"!=e&&":"==e.charAt(0)){if(n)throw Error("Mode not supported for ex mappings");var r=e.substring(1);if(this.commandMap_[r]&&this.commandMap_[r].user)return void delete this.commandMap_[r]}else for(var i=e,o=0;o<t.length;o++)if(i==t[o].keys&&t[o].context===n)return void t.splice(o,1);throw Error("No such mapping.")}};var Ge={colorscheme:function(e,t){!t.args||t.args.length<1?De(e,e.getOption("theme")):e.setOption("theme",t.args[0])},map:function(e,t,n){var r=t.args;!r||r.length<2?e&&De(e,"Invalid mapping: "+t.input):Ke.map(r[0],r[1],n)},imap:function(e,t){this.map(e,t,"insert")},nmap:function(e,t){this.map(e,t,"normal")},vmap:function(e,t){this.map(e,t,"visual")},unmap:function(e,t,n){var r=t.args;!r||r.length<1?e&&De(e,"No such mapping: "+t.input):Ke.unmap(r[0],n)},move:function(e,t){V.processCommand(e,e.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:t.line+1})},set:function(e,t){var n=t.args,r=t.setCfg||{};if(!n||n.length<1)e&&De(e,"Invalid mapping: "+t.input);else{var i=n[0].split("="),o=i[0],a=i[1],s=!1;if("?"==o.charAt(o.length-1)){if(a)throw Error("Trailing characters: "+t.argString);o=o.substring(0,o.length-1),s=!0}void 0===a&&"no"==o.substring(0,2)&&(o=o.substring(2),a=!1);var l=C[o]&&"boolean"==C[o].type;if(l&&null==a&&(a=!0),!l&&void 0===a||s){var u=R(o,e,r);u instanceof Error?De(e,u.message):De(e,!0===u||!1===u?" "+(u?"":"no")+o:" "+o+"="+u)}else{var c=P(o,a,e,r);c instanceof Error&&De(e,c.message)}}},setlocal:function(e,t){t.setCfg={scope:"local"},this.set(e,t)},setglobal:function(e,t){t.setCfg={scope:"global"},this.set(e,t)},registers:function(e,t){var n=t.args,r=M.registerController.registers,i="----------Registers----------<br><br>";if(n){n=n.join("");for(var o=0;o<n.length;o++)a=n.charAt(o),M.registerController.isValidRegister(a)&&(i+='"'+a+" "+(r[a]||new q).toString()+"<br>")}else for(var a in r){var s=r[a].toString();s.length&&(i+='"'+a+" "+s+"<br>")}De(e,i)},sort:function(t,n){var r,o,a,s,l,u=function(){if(n.argString){var t=new e.StringStream(n.argString);if(t.eat("!")&&(r=!0),t.eol())return;if(!t.eatSpace())return"Invalid arguments";var i=t.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!i&&!t.eol())return"Invalid arguments";if(i[1]){o=-1!=i[1].indexOf("i"),a=-1!=i[1].indexOf("u");var u=-1!=i[1].indexOf("d")||-1!=i[1].indexOf("n")&&1,c=-1!=i[1].indexOf("x")&&1,d=-1!=i[1].indexOf("o")&&1;if(u+c+d>1)return"Invalid arguments";s=(u?"decimal":c&&"hex")||d&&"octal"}i[2]&&(l=new RegExp(i[2].substr(1,i[2].length-2),o?"i":""))}}();if(u)De(t,u+": "+n.argString);else{var c=n.line||t.firstLine(),d=n.lineEnd||n.line||t.lastLine();if(c!=d){var f=i(c,0),p=i(d,se(t,d)),h=t.getRange(f,p).split("\n"),m=l||("decimal"==s?/(-?)([\d]+)/:"hex"==s?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==s?/([0-7]+)/:null),g="decimal"==s?10:"hex"==s?16:"octal"==s?8:null,v=[],y=[];if(s||l)for(var b=0;b<h.length;b++){var _=l?h[b].match(l):null;_&&""!=_[0]?v.push(_):!l&&m.exec(h[b])?v.push(h[b]):y.push(h[b])}else y=h;if(v.sort(l?function(e,t){var n;return r&&(n=e,e=t,t=n),o&&(e[0]=e[0].toLowerCase(),t[0]=t[0].toLowerCase()),e[0]<t[0]?-1:1}:k),l)for(b=0;b<v.length;b++)v[b]=v[b].input;else s||y.sort(k);if(h=r?v.concat(y):y.concat(v),a){var w,x=h;for(h=[],b=0;b<x.length;b++)x[b]!=w&&h.push(x[b]),w=x[b]}t.replaceRange(h.join("\n"),f,p)}}function k(e,t){var n;r&&(n=e,e=t,t=n),o&&(e=e.toLowerCase(),t=t.toLowerCase());var i=s&&m.exec(e),a=s&&m.exec(t);return i?(i=parseInt((i[1]+i[2]).toLowerCase(),g))-(a=parseInt((a[1]+a[2]).toLowerCase(),g)):e<t?-1:1}},global:function(e,t){var n=t.argString;if(n){var r,i=void 0!==t.line?t.line:e.firstLine(),o=t.lineEnd||t.line||e.lastLine(),a=function(e){return Pe(e,"/")}(n),s=n;if(a.length&&(s=a[0],r=a.slice(1,a.length).join("/")),s)try{Fe(e,s,!0,!0)}catch(t){return void De(e,"Invalid regex: "+s)}for(var l=Ce(e).getQuery(),u=[],c="",d=i;d<=o;d++)l.test(e.getLine(d))&&(u.push(d+1),c+=e.getLine(d)+"<br>");if(r){var f=0,p=function(){if(f<u.length){var t=u[f]+r;Ke.processCommand(e,t,{callback:p})}f++};p()}else De(e,c)}else De(e,"Regular Expression missing from global")},substitute:function(t,n){if(!t.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var r,o,a,s,l=n.argString,u=l?Pe(l,l[0]):[],c="",d=!1,f=!1;if(u.length)r=u[0],R("pcre")&&""!==r&&(r=new RegExp(r).source),c=u[1],r&&"$"===r[r.length-1]&&(r=r.slice(0,r.length-1)+"\\n",c=c?c+"\n":"\n"),void 0!==c&&(c=R("pcre")?function(t){for(var n=new e.StringStream(t),r=[];!n.eol();){for(;n.peek()&&"\\"!=n.peek();)r.push(n.next());var i=!1;for(var o in Ie)if(n.match(o,!0)){i=!0,r.push(Ie[o]);break}i||r.push(n.next())}return r.join("")}(c.replace(/([^\\])&/g,"$1$$&")):function(e){for(var t,n=!1,r=[],i=-1;i<e.length;i++){var o=e.charAt(i)||"",a=e.charAt(i+1)||"";Me[o+a]?(r.push(Me[o+a]),i++):n?(r.push(o),n=!1):"\\"===o?(n=!0,t=a,p.test(t)||"$"===a?r.push("$"):"/"!==a&&"\\"!==a&&r.push("\\")):("$"===o&&r.push("$"),r.push(o),"/"===a&&r.push("\\"))}return r.join("")}(c),M.lastSubstituteReplacePart=c),o=u[2]?u[2].split(" "):[];else if(l&&l.length)return void De(t,"Substitutions should be of the form :s/pattern/replace/");if(o&&(a=o[0],s=parseInt(o[1]),a&&(-1!=a.indexOf("c")&&(d=!0,a.replace("c","")),-1!=a.indexOf("g")&&(f=!0,a.replace("g","")),r=R("pcre")?r+"/"+a:r.replace(/\//g,"\\/")+"/"+a)),r)try{Fe(t,r,!0,!0)}catch(e){return void De(t,"Invalid regex: "+r)}if(void 0!==(c=c||M.lastSubstituteReplacePart)){var h=Ce(t).getQuery(),m=void 0!==n.line?n.line:t.getCursor().line,g=n.lineEnd||m;m==t.firstLine()&&g==t.lastLine()&&(g=1/0),s&&(g=(m=g)+s-1);var v=Q(t,i(m,0)),y=t.getSearchCursor(h,v);!function(t,n,r,i,o,a,s,l,u){t.state.vim.exMode=!0;var c=!1,d=a.from();function f(){t.operation((function(){for(;!c;)p(),h();m()}))}function p(){var e=t.getRange(a.from(),a.to()).replace(s,l);a.replace(e)}function h(){for(;a.findNext()&&(e=a.from(),n=i,s=o,"number"!=typeof e&&(e=e.line),n instanceof Array?T(e,n):s?e>=n&&e<=s:e==n);)if(r||!d||a.from().line!=d.line)return t.scrollIntoView(a.from(),30),t.setSelection(a.from(),a.to()),d=a.from(),void(c=!1);var e,n,s;c=!0}function m(e){if(e&&e(),t.focus(),d){t.setCursor(d);var n=t.state.vim;n.exMode=!1,n.lastHPos=n.lastHSPos=d.ch}u&&u()}if(h(),!c)return n?void Ne(t,{prefix:"replace with <strong>"+l+"</strong> (y/n/a/q/l)",onKeyDown:function(n,r,i){switch(e.e_stop(n),e.keyName(n)){case"Y":p(),h();break;case"N":h();break;case"A":var o=u;u=void 0,t.operation(f),u=o;break;case"L":p();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":m(i)}return c&&m(i),!0}}):(f(),void(u&&u()));De(t,"No matches for "+s.source)}(t,d,f,m,g,y,h,c,n.callback)}else De(t,"No previous substitute regular expression")},redo:e.commands.redo,undo:e.commands.undo,write:function(t){e.commands.save?e.commands.save(t):t.save&&t.save()},nohlsearch:function(e){qe(e)},yank:function(e){var t=te(e.getCursor()).line,n=e.getLine(t);M.registerController.pushText("0","yank",n,!0,!0)},delmarks:function(t,n){if(n.argString&&le(n.argString))for(var r=t.state.vim,i=new e.StringStream(le(n.argString));!i.eol();){i.eatSpace();var o=i.pos;if(!i.match(/[a-zA-Z]/,!1))return void De(t,"Invalid argument: "+n.argString.substring(o));var a=i.next();if(i.match("-",!0)){if(!i.match(/[a-zA-Z]/,!1))return void De(t,"Invalid argument: "+n.argString.substring(o));var s=a,l=i.next();if(!(k(s)&&k(l)||E(s)&&E(l)))return void De(t,"Invalid argument: "+s+"-");var u=s.charCodeAt(0),c=l.charCodeAt(0);if(u>=c)return void De(t,"Invalid argument: "+n.argString.substring(o));for(var d=0;d<=c-u;d++){var f=String.fromCharCode(u+d);delete r.marks[f]}}else delete r.marks[a]}else De(t,"Argument required")}},Ke=new $e;function Ye(t){var n=t.state.vim,r=M.macroModeState,i=M.registerController.getRegister("."),o=r.isPlaying,a=r.lastInsertModeChanges;o||(t.off("change",Je),e.off(t.getInputField(),"keydown",rt)),!o&&n.insertModeRepeat>1&&(it(t,n,n.insertModeRepeat-1,!0),n.lastEditInputState.repeatOverride=n.insertModeRepeat),delete n.insertModeRepeat,n.insertMode=!1,t.setCursor(t.getCursor().line,t.getCursor().ch-1),t.setOption("keyMap","vim"),t.setOption("disableInput",!0),t.toggleOverwrite(!1),i.setText(a.changes.join("")),e.signal(t,"vim-mode-change",{mode:"normal"}),r.isRecording&&function(e){if(!e.isPlaying){var t=e.latestRegister,n=M.registerController.getRegister(t);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(e.lastInsertModeChanges)}}(r)}function Qe(e){t.unshift(e)}function Xe(t,n,r,i){var o=M.registerController.getRegister(i);if(":"==i)return o.keyBuffer[0]&&Ke.processCommand(t,o.keyBuffer[0]),void(r.isPlaying=!1);var a=o.keyBuffer,s=0;r.isPlaying=!0,r.replaySearchQueries=o.searchQueries.slice(0);for(var l=0;l<a.length;l++)for(var u,c,d=a[l];d;)if(c=(u=/<\w+-.+?>|<\w+>|./.exec(d))[0],d=d.substring(u.index+c.length),e.Vim.handleKey(t,c,"macro"),n.insertMode){var f=o.insertModeChanges[s++].changes;M.macroModeState.lastInsertModeChanges.changes=f,ot(t,f,1),Ye(t)}r.isPlaying=!1}function Je(e,t){var n=M.macroModeState,r=n.lastInsertModeChanges;if(!n.isPlaying)for(;t;){if(r.expectCursorActivityForChange=!0,r.ignoreCount>1)r.ignoreCount--;else if("+input"==t.origin||"paste"==t.origin||void 0===t.origin){var i=e.listSelections().length;i>1&&(r.ignoreCount=i);var o=t.text.join("\n");r.maybeReset&&(r.changes=[],r.maybeReset=!1),o&&(e.state.overwrite&&!/\n/.test(o)?r.changes.push([o]):r.changes.push(o))}t=t.next}}function Ze(t){var n=t.state.vim;if(n.insertMode){var r=M.macroModeState;if(r.isPlaying)return;var i=r.lastInsertModeChanges;i.expectCursorActivityForChange?i.expectCursorActivityForChange=!1:i.maybeReset=!0}else t.curOp.isVimOp||function(t,n){var r=t.getCursor("anchor"),i=t.getCursor("head");if(n.visualMode&&!t.somethingSelected()?me(t,!1):n.visualMode||n.insertMode||!t.somethingSelected()||(n.visualMode=!0,n.visualLine=!1,e.signal(t,"vim-mode-change",{mode:"visual"})),n.visualMode){var o=re(i,r)?0:-1,a=re(i,r)?-1:0;i=J(i,0,o),r=J(r,0,a),n.sel={anchor:r,head:i},Ee(t,n,"<",ie(i,r)),Ee(t,n,">",oe(i,r))}else n.insertMode||(n.lastHPos=t.getCursor().ch)}(t,n);n.visualMode&&et(t)}function et(e){var t=e.state.vim,n=Q(e,te(t.sel.head)),r=J(n,0,1);if(tt(t),n.ch==e.getLine(n.line).length){var i=document.createElement("span");i.textContent=" ",i.className="cm-animate-fat-cursor",t.fakeCursorBookmark=e.setBookmark(n,{widget:i})}else t.fakeCursor=e.markText(n,r,{className:"cm-animate-fat-cursor"})}function tt(e){e.fakeCursor&&(e.fakeCursor.clear(),e.fakeCursor=null),e.fakeCursorBookmark&&(e.fakeCursorBookmark.clear(),e.fakeCursorBookmark=null)}function nt(e){this.keyName=e}function rt(t){var n=M.macroModeState.lastInsertModeChanges,r=e.keyName(t);r&&(-1==r.indexOf("Delete")&&-1==r.indexOf("Backspace")||e.lookupKey(r,"vim-insert",(function(){return n.maybeReset&&(n.changes=[],n.maybeReset=!1),n.changes.push(new nt(r)),!0})))}function it(e,t,n,r){var i=M.macroModeState;i.isPlaying=!0;var o=!!t.lastEditActionCommand,a=t.inputState;function s(){o?V.processAction(e,t,t.lastEditActionCommand):V.evalInput(e,t)}function l(n){if(i.lastInsertModeChanges.changes.length>0){n=t.lastEditActionCommand?n:1;var r=i.lastInsertModeChanges;ot(e,r.changes,n)}}if(t.inputState=t.lastEditInputState,o&&t.lastEditActionCommand.interlaceInsertRepeat)for(var u=0;u<n;u++)s(),l(1);else r||s(),l(n);t.inputState=a,t.insertMode&&!r&&Ye(e),i.isPlaying=!1}function ot(t,n,r){function i(n){return"string"==typeof n?e.commands[n](t):n(t),!0}var o=t.getCursor("head"),a=M.macroModeState.lastInsertModeChanges.visualBlock;a&&(de(t,o,a+1),r=t.listSelections().length,t.setCursor(o));for(var s=0;s<r;s++){a&&t.setCursor(J(o,s,0));for(var l=0;l<n.length;l++){var u=n[l];if(u instanceof nt)e.lookupKey(u.keyName,"vim-insert",i);else if("string"==typeof u){var c=t.getCursor();t.replaceRange(u,c,c)}else{var d=t.getCursor(),f=J(d,0,u[0].length);t.replaceRange(u[0],d,f)}}}a&&t.setCursor(J(o,0,1))}return e.keyMap.vim={attach:a,detach:o,call:u},A("insertModeEscKeysTimeout",200,"number"),e.keyMap["vim-insert"]={fallthrough:["default"],attach:a,detach:o,call:u},e.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:a,detach:o,call:u},F(),B}()}(n(5),n(650),n(1531),n(651))},function(e,t,n){!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",(function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function u(t){if("string"==typeof t)d.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var c,d=a.getElementsByTagName("input")[0];return d?(d.focus(),o.value&&(d.value=o.value,!1!==o.selectValueOnOpen&&d.select()),o.onInput&&e.on(d,"input",(function(e){o.onInput(e,d.value,u)})),o.onKeyUp&&e.on(d,"keyup",(function(e){o.onKeyUp(e,d.value,u)})),e.on(d,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,d.value,u)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(d.blur(),e.e_stop(t),u()),13==t.keyCode&&i(d.value,t))})),!1!==o.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&u()}))):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",(function(){u(),l.focus()})),!1!==o.closeOnBlur&&e.on(c,"blur",u),c.focus()),u})),e.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,u=this,c=1;function d(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus())}s[0].focus();for(var f=0;f<s.length;++f){var p=s[f];!function(t){e.on(p,"click",(function(n){e.e_preventDefault(n),d(),t&&t(u)}))}(i[f]),e.on(p,"blur",(function(){--c,setTimeout((function(){c<=0&&d()}),200)})),e.on(p,"focus",(function(){++c}))}})),e.defineExtension("openNotification",(function(r,i){n(this,u);var o,a=t(this,r,i&&i.bottom),s=!1,l=i&&void 0!==i.duration?i.duration:5e3;function u(){s||(s=!0,clearTimeout(o),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",(function(t){e.e_preventDefault(t),u()})),l&&(o=setTimeout(u,l)),u}))}(n(5))},function(e,t,n){!function(e){"use strict";var t=e.commands,n=e.Pos;function r(t,r){t.extendSelectionsBy((function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,u=l,c=i<0?0:o.length,d=0;u!=c;u+=i,d++){var f=o.charAt(i<0?u-1:u),p="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==p&&f.toUpperCase()==f&&(p="W"),"start"==s)"o"!=p?(s="in",a=p):l=u+i;else if("in"==s&&a!=p){if("w"==a&&"W"==p&&i<0&&u--,"W"==a&&"w"==p&&i>0){if(u==l+1){a="w";continue}u--}break}}return n(r.line,u)}(t.doc,i.head,r):r<0?i.from():i.to()}))}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a<e;a++){var s=t.listSelections()[a].head;if(!(s.line<=o)){var l=n(s.line+(r?0:1),0);t.replaceRange("\n",l,null,"+insertLine"),t.indentLine(l.line,null,!0),i.push({head:l,anchor:l}),o=s.line+1}}t.setSelections(i)})),t.execCommand("indentAuto")}function o(t,r){for(var i=r.ch,o=i,a=t.getLine(r.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function a(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),s=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,s.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var l={anchor:a,head:s};r.push(o),r.push(l)}e.setSelections(r)}function s(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],s=a.head,l=t.scanForBracket(s,-1);if(!l)return!1;for(;;){var u=t.scanForBracket(s,1);if(!u)return!1;if(u.ch=="(){}[]".charAt("(){}[]".indexOf(l.ch)+1)){var c=n(l.pos.line,l.pos.ch+1);if(0!=e.cmpPos(c,a.from())||0!=e.cmpPos(u.pos,a.to())){i.push({anchor:c,head:u.pos});break}if(!(l=t.scanForBracket(l.pos,-1)))return!1}s=n(u.pos.line,u.pos.ch+1)}}return t.setSelections(i),!0}function l(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function u(t,r){if(t.isReadOnly())return e.Pass;for(var i,o=t.listSelections(),a=[],s=0;s<o.length;s++){var l=o[s];if(!l.empty()){for(var u=l.from().line,c=l.to().line;s<o.length-1&&o[s+1].from().line==c;)c=o[++s].to().line;o[s].to().ch||c--,a.push(u,c)}}a.length?i=!0:a.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],o=0;o<a.length;o+=2){var s=a[o],l=a[o+1],u=n(s,0),c=n(l),d=t.getRange(u,c,!1);r?d.sort():d.sort((function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-1:e==t?0:1})),t.replaceRange(d,u,c),i&&e.push({anchor:u,head:n(l+1,0)})}i&&t.setSelections(e,0)}))}function c(t,n){t.operation((function(){for(var r=t.listSelections(),i=[],a=[],s=0;s<r.length;s++)(u=r[s]).empty()?(i.push(s),a.push("")):a.push(n(t.getRange(u.from(),u.to())));var l;for(t.replaceSelections(a,"around","case"),s=i.length-1;s>=0;s--){var u=r[i[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=o(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}}))}function d(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function f(e,t){var r=d(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.goSubwordLeft=function(e){r(e,-1)},t.goSubwordRight=function(e){r(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),s=o.line;s<=a.line;++s)a.line>o.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},t.insertLineAfter=function(e){return i(e,!1)},t.insertLineBefore=function(e){return i(e,!0)},t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),a=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var s=o(t,r);if(!s.word)return;t.setSelection(s.from,s.to),a=!0}else{var l=t.getRange(r,i),u=a?new RegExp("\\b"+l+"\\b"):l,c=t.getSearchCursor(u,i),d=c.findNext();if(d||(d=(c=t.getSearchCursor(u,n(t.firstLine(),0))).findNext()),!d||function(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}(t.listSelections(),c.from(),c.to()))return;t.addSelection(c.from(),c.to())}a&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter((function(e){return e.anchor!=r||e.head!=i})))},t.addCursorToPrevLine=function(e){a(e,-1)},t.addCursorToNextLine=function(e){a(e,1)},t.selectScope=function(e){s(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!s(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,l(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,l(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;s<r.length;s++){var l=r[s],u=l.from().line-1,c=l.to().line;a.push({anchor:n(l.anchor.line-1,l.anchor.ch),head:n(l.head.line-1,l.head.ch)}),0!=l.to().ch||l.empty()||--c,u>o?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],s=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,u=s.from().line;0!=s.to().ch||s.empty()||l--,l<o?i.push(l,u):i.length&&(i[i.length-1]=u),o=u}t.operation((function(){for(var e=i.length-2;e>=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){for(var o=t[i],a=o.from(),s=a.line,l=o.to().line;i<t.length-1&&t[i+1].from().line==l;)l=t[++i].to().line;r.push({start:s,end:l,anchor:!o.empty()&&a})}e.operation((function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,s=r[o],l=s.anchor&&n(s.anchor.line-t,s.anchor.ch),u=s.start;u<=s.end;u++){var c=u-t;u==s.end&&(a=n(c,e.getLine(c).length+1)),c<e.lastLine()&&(e.replaceRange(" ",n(c),n(c+1,/^\s*/.exec(e.getLine(c+1))[0].length)),++t)}i.push({anchor:l||a,head:a})}e.setSelections(i,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()}))},t.sortLines=function(e){u(e,!0)},t.sortLinesInsensitive=function(e){u(e,!1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var l=0;l<n.length;l++)n[l]==a[s]&&n.splice(l--,1);break}s==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var c=new n(a.line,e.findColumn(s,l-i,i));c.ch!=a.ch&&(u=c)}t.replaceRange("",u,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){c(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){c(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){f(e,!0)},t.findUnderPrevious=function(e){f(e,!1)},t.findAllUnder=function(e){var t=d(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var p=e.keyMap;p.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Cmd-F5":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(p.macSublime),p.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Ctrl-F9":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(p.pcSublime);var h=p.default==p.macDefault;p.sublime=h?p.macSublime:p.pcSublime}(n(5),n(650),n(651))},function(e,t,n){!function(e){"use strict";var t=e.Pos;function n(e,t){return e.line==t.line&&e.ch==t.ch}var r=[];function i(e){r.push(e),r.length>50&&r.shift()}function o(e){return r[r.length-(e?Math.min(e,1):1)]||""}var a=null;function s(e,t,o,s,l){null==l&&(l=e.getRange(t,o)),"grow"==s&&a&&a.cm==e&&n(t,a.pos)&&e.isClean(a.gen)?function(e){if(!r.length)return i(e);r[r.length-1]+=e}(l):!1!==s&&i(l),e.replaceRange("",t,o,"+delete"),a="grow"==s?{cm:e,pos:t,gen:e.changeGeneration()}:null}function l(e,t,n){return e.findPosH(t,n,"char",!0)}function u(e,t,n){return e.findPosH(t,n,"word",!0)}function c(e,t,n){return e.findPosV(t,n,"line",e.doc.sel.goalColumn)}function d(e,t,n){return e.findPosV(t,n,"page",e.doc.sel.goalColumn)}function f(e,n,r){for(var i=n.line,o=e.getLine(i),a=/\S/.test(r<0?o.slice(0,n.ch):o.slice(n.ch)),s=e.firstLine(),l=e.lastLine();;){if((i+=r)<s||i>l)return e.clipPos(t(i-r,r<0?0:null));if(o=e.getLine(i),/\S/.test(o))a=!0;else if(a)return t(i,0)}}function p(e,n,r){for(var i=n.line,o=n.ch,a=e.getLine(n.line),s=!1;;){var l=a.charAt(o+(r<0?-1:0));if(l){if(s&&/[!?.]/.test(l))return t(i,o+(r>0?1:0));s||(s=/\w/.test(l)),o+=r}else{if(i==(r<0?e.firstLine():e.lastLine()))return t(i,o);if(a=e.getLine(i+r),!/\S/.test(a))return t(i,o);i+=r,o=r<0?a.length:0}}}function h(e,r,i){var o;if(e.findMatchingBracket&&(o=e.findMatchingBracket(r,{strict:!0}))&&o.match&&(o.forward?1:-1)==i)return i>0?t(o.to.line,o.to.ch+1):o.to;for(var a=!0;;a=!1){var s=e.getTokenAt(r),l=t(r.line,i<0?s.start:s.end);if(!(a&&i>0&&s.end==r.ch)&&/\w/.test(s.string))return l;var u=e.findPosH(l,i,"char");if(n(l,u))return r;r=u}}function m(e,t){var n=e.state.emacsPrefix;return n?(E(e),"-"==n?-1:Number(n)):t?null:1}function g(e){var t="string"==typeof e?function(t){t.execCommand(e)}:e;return function(e){var n=m(e);t(e);for(var r=1;r<n;++r)t(e)}}function v(e,t,r,i){var o=m(e);o<0&&(i=-i,o=-o);for(var a=0;a<o;++a){var s=r(e,t,i);if(n(s,t))break;t=s}return t}function y(e,t){var n=function(n){n.extendSelection(v(n,n.getCursor(),e,t))};return n.motion=!0,n}function b(e,t,n,r){for(var i,o=e.listSelections(),a=o.length;a--;)s(e,i=o[a].head,v(e,i,t,n),r)}function _(e,t){if(e.somethingSelected()){for(var n,r=e.listSelections(),i=r.length;i--;)s(e,(n=r[i]).anchor,n.head,t);return!0}}function w(e,t){e.state.emacsPrefix?"-"!=t&&(e.state.emacsPrefix+=t):(e.state.emacsPrefix=t,e.on("keyHandled",k),e.on("inputRead",S))}var x={"Alt-G":!0,"Ctrl-X":!0,"Ctrl-Q":!0,"Ctrl-U":!0};function k(e,t){e.state.emacsPrefixMap||x.hasOwnProperty(t)||E(e)}function E(e){e.state.emacsPrefix=null,e.off("keyHandled",k),e.off("inputRead",S)}function S(e,t){var n=m(e);if(n>1&&"+input"==t.origin){for(var r=t.text.join("\n"),i="",o=1;o<n;++o)i+=r;e.replaceSelection(i)}}function O(e,t){("string"!=typeof t||!/^\d$/.test(t)&&"Ctrl-U"!=t)&&(e.removeKeyMap(R),e.state.emacsPrefixMap=!1,e.off("keyHandled",O),e.off("inputRead",O))}function T(e){e.setCursor(e.getCursor()),e.setExtending(!e.getExtending()),e.on("change",(function(){e.setExtending(!1)}))}function C(e){e.setExtending(!1),e.setCursor(e.getCursor())}function A(e,t){var n=e.getCursor(),r=e.findPosH(n,1,"word");e.replaceRange(t(e.getRange(n,r)),n,r),e.setCursor(r)}e.emacs={kill:s,killRegion:_,repeated:g};var P=e.keyMap.emacs=e.normalizeKeyMap({"Ctrl-W":function(e){s(e,e.getCursor("start"),e.getCursor("end"),!0)},"Ctrl-K":g((function(e){var n=e.getCursor(),r=e.clipPos(t(n.line)),i=e.getRange(n,r);/\S/.test(i)||(i+="\n",r=t(n.line+1,0)),s(e,n,r,"grow",i)})),"Alt-W":function(e){i(e.getSelection()),C(e)},"Ctrl-Y":function(e){var t=e.getCursor();e.replaceRange(o(m(e)),t,t,"paste"),e.setSelection(t,e.getCursor())},"Alt-Y":function(e){e.replaceSelection((r.length>1&&r.pop(),o()),"around","paste")},"Ctrl-Space":T,"Ctrl-Shift-2":T,"Ctrl-F":y(l,1),"Ctrl-B":y(l,-1),Right:y(l,1),Left:y(l,-1),"Ctrl-D":function(e){b(e,l,1,!1)},Delete:function(e){_(e,!1)||b(e,l,1,!1)},"Ctrl-H":function(e){b(e,l,-1,!1)},Backspace:function(e){_(e,!1)||b(e,l,-1,!1)},"Alt-F":y(u,1),"Alt-B":y(u,-1),"Alt-Right":y(u,1),"Alt-Left":y(u,-1),"Alt-D":function(e){b(e,u,1,"grow")},"Alt-Backspace":function(e){b(e,u,-1,"grow")},"Ctrl-N":y(c,1),"Ctrl-P":y(c,-1),Down:y(c,1),Up:y(c,-1),"Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd",End:"goLineEnd",Home:"goLineStart","Alt-V":y(d,-1),"Ctrl-V":y(d,1),PageUp:y(d,-1),PageDown:y(d,1),"Ctrl-Up":y(f,-1),"Ctrl-Down":y(f,1),"Alt-A":y(p,-1),"Alt-E":y(p,1),"Alt-K":function(e){b(e,p,1,"grow")},"Ctrl-Alt-K":function(e){b(e,h,1,"grow")},"Ctrl-Alt-Backspace":function(e){b(e,h,-1,"grow")},"Ctrl-Alt-F":y(h,1),"Ctrl-Alt-B":y(h,-1),"Shift-Ctrl-Alt-2":function(e){var t=e.getCursor();e.setSelection(v(e,t,h,1),t)},"Ctrl-Alt-T":function(e){var t=h(e,e.getCursor(),-1),n=h(e,t,1),r=h(e,n,1),i=h(e,r,-1);e.replaceRange(e.getRange(i,r)+e.getRange(n,i)+e.getRange(t,n),t,r)},"Ctrl-Alt-U":g((function(e){for(var n=e.getCursor(),r=n.line,i=n.ch,o=[];r>=e.firstLine();){for(var a=e.getLine(r),s=null==i?a.length:i;s>0;)if(")"==(i=a.charAt(--s)))o.push("(");else if("]"==i)o.push("[");else if("}"==i)o.push("{");else if(/[\(\{\[]/.test(i)&&(!o.length||o.pop()!=i))return e.extendSelection(t(r,s));--r,i=null}})),"Alt-Space":function(e){for(var n=e.getCursor(),r=n.ch,i=n.ch,o=e.getLine(n.line);r&&/\s/.test(o.charAt(r-1));)--r;for(;i<o.length&&/\s/.test(o.charAt(i));)++i;e.replaceRange(" ",t(n.line,r),t(n.line,i))},"Ctrl-O":g((function(e){e.replaceSelection("\n","start")})),"Ctrl-T":g((function(e){e.execCommand("transposeChars")})),"Alt-C":g((function(e){A(e,(function(e){var t=e.search(/\w/);return-1==t?e:e.slice(0,t)+e.charAt(t).toUpperCase()+e.slice(t+1).toLowerCase()}))})),"Alt-U":g((function(e){A(e,(function(e){return e.toUpperCase()}))})),"Alt-L":g((function(e){A(e,(function(e){return e.toLowerCase()}))})),"Alt-;":"toggleComment","Ctrl-/":g("undo"),"Shift-Ctrl--":g("undo"),"Ctrl-Z":g("undo"),"Cmd-Z":g("undo"),"Shift-Ctrl-Z":"redo","Shift-Alt-,":"goDocStart","Shift-Alt-.":"goDocEnd","Ctrl-S":"findPersistentNext","Ctrl-R":"findPersistentPrev","Ctrl-G":function(e){e.execCommand("clearSearch"),C(e)},"Shift-Alt-5":"replace","Alt-/":"autocomplete",Enter:"newlineAndIndent","Ctrl-J":g((function(e){e.replaceSelection("\n","end")})),Tab:"indentAuto","Alt-G G":function(e){var t=m(e,!0);if(null!=t&&t>0)return e.setCursor(t-1);!function(e,t,n){e.openDialog?e.openDialog(t+': <input type="text" style="width: 10em"/>',n,{bottom:!0}):n(prompt(t,""))}(e,"Goto line",(function(t){var n;t&&!isNaN(n=Number(t))&&n==(0|n)&&n>0&&e.setCursor(n-1)}))},"Ctrl-X Tab":function(e){e.indentSelection(m(e,!0)||e.getOption("indentUnit"))},"Ctrl-X Ctrl-X":function(e){e.setSelection(e.getCursor("head"),e.getCursor("anchor"))},"Ctrl-X Ctrl-S":"save","Ctrl-X Ctrl-W":"save","Ctrl-X S":"saveAll","Ctrl-X F":"open","Ctrl-X U":g("undo"),"Ctrl-X K":"close","Ctrl-X Delete":function(e){s(e,e.getCursor(),p(e,e.getCursor(),1),"grow")},"Ctrl-X H":"selectAll","Ctrl-Q Tab":g("insertTab"),"Ctrl-U":function(e){e.state.emacsPrefixMap=!0,e.addKeyMap(R),e.on("keyHandled",O),e.on("inputRead",O)},fallthrough:"default"}),R={"Ctrl-G":E};function M(e){R[e]=function(t){w(t,e)},P["Ctrl-"+e]=function(t){w(t,e)},x["Ctrl-"+e]=!0}for(var I=0;I<10;++I)M(String(I));M("-")}(n(5))},function(e,t,n){var r=n(1535);e.exports="string"==typeof r?r:r.toString()},function(e,t,n){(t=n(229)(!1)).push([e.i,"/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n.cm-fat-cursor-mark {\n background-color: rgba(20, 255, 20, 0.5);\n -webkit-animation: blink 1.06s steps(1) infinite;\n -moz-animation: blink 1.06s steps(1) infinite;\n animation: blink 1.06s steps(1) infinite;\n}\n.cm-animate-fat-cursor {\n width: auto;\n border: 0;\n -webkit-animation: blink 1.06s steps(1) infinite;\n -moz-animation: blink 1.06s steps(1) infinite;\n animation: blink 1.06s steps(1) infinite;\n background-color: #7e7;\n}\n@-moz-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@-webkit-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: 0;\n overflow: hidden;\n}\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 50px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -50px; margin-right: -50px;\n padding-bottom: 50px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n}\n.CodeMirror-sizer {\n position: relative;\n border-right: 50px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n}\n.CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -50px;\n}\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n",""]),e.exports=t},function(e,t,n){var r=n(1537);e.exports="string"==typeof r?r:r.toString()},function(e,t,n){(t=n(229)(!1)).push([e.i,"/*\n Name: material\n Author: Mattia Astorino (http://github.com/equinusocio)\n Website: https://material-theme.site/\n*/\n\n.cm-s-material.CodeMirror {\n background-color: #263238;\n color: #EEFFFF;\n}\n\n.cm-s-material .CodeMirror-gutters {\n background: #263238;\n color: #546E7A;\n border: none;\n}\n\n.cm-s-material .CodeMirror-guttermarker,\n.cm-s-material .CodeMirror-guttermarker-subtle,\n.cm-s-material .CodeMirror-linenumber {\n color: #546E7A;\n}\n\n.cm-s-material .CodeMirror-cursor {\n border-left: 1px solid #FFCC00;\n}\n\n.cm-s-material div.CodeMirror-selected {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material.CodeMirror-focused div.CodeMirror-selected {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::selection,\n.cm-s-material .CodeMirror-line>span::selection,\n.cm-s-material .CodeMirror-line>span>span::selection {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::-moz-selection,\n.cm-s-material .CodeMirror-line>span::-moz-selection,\n.cm-s-material .CodeMirror-line>span>span::-moz-selection {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-activeline-background {\n background: rgba(0, 0, 0, 0.5);\n}\n\n.cm-s-material .cm-keyword {\n color: #C792EA;\n}\n\n.cm-s-material .cm-operator {\n color: #89DDFF;\n}\n\n.cm-s-material .cm-variable-2 {\n color: #EEFFFF;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n color: #f07178;\n}\n\n.cm-s-material .cm-builtin {\n color: #FFCB6B;\n}\n\n.cm-s-material .cm-atom {\n color: #F78C6C;\n}\n\n.cm-s-material .cm-number {\n color: #FF5370;\n}\n\n.cm-s-material .cm-def {\n color: #82AAFF;\n}\n\n.cm-s-material .cm-string {\n color: #C3E88D;\n}\n\n.cm-s-material .cm-string-2 {\n color: #f07178;\n}\n\n.cm-s-material .cm-comment {\n color: #546E7A;\n}\n\n.cm-s-material .cm-variable {\n color: #f07178;\n}\n\n.cm-s-material .cm-tag {\n color: #FF5370;\n}\n\n.cm-s-material .cm-meta {\n color: #FFCB6B;\n}\n\n.cm-s-material .cm-attribute {\n color: #C792EA;\n}\n\n.cm-s-material .cm-property {\n color: #C792EA;\n}\n\n.cm-s-material .cm-qualifier {\n color: #DECB6B;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n color: #DECB6B;\n}\n\n\n.cm-s-material .cm-error {\n color: rgba(255, 255, 255, 1.0);\n background-color: #FF5370;\n}\n\n.cm-s-material .CodeMirror-matchingbracket {\n text-decoration: underline;\n color: white !important;\n}",""]),e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(18)),i=d(n(1)),o=d(n(377)),a=d(n(105)),s=n(16),l=d(n(652)),u=d(n(1539)),c=n(11);function d(e){return e&&e.__esModule?e:{default:e}}const f=(0,r.default)("div",{target:"e17zz1uv0",label:"SettingsPaneContainer"})("position:absolute;right:0;width:200px;z-index:",s.zIndex.zIndex10,";height:100%;background-color:#fff;overflow:hidden;overflow-y:scroll;padding:12px;border-radius:0 3px 3px 0;",s.shadows.drop,";"),p=(0,r.default)("label",{target:"e17zz1uv1",label:"SettingsFieldLabel"})(s.text.fieldLabel,";font-size:11px;display:block;margin-top:8px;margin-bottom:2px;"),h=(0,r.default)("h3",{target:"e17zz1uv2",label:"SettingsSectionTitle"})({name:"punfmt",styles:"font-size:14px;margin-top:14px;margin-bottom:0;&:first-of-type{margin-top:4px;}"}),m=({value:e,options:t,onChange:n,forID:r,type:i,autoFocus:a})=>(0,c.jsx)(o.default,{inputId:`${r}-select-${i}`,styles:u.default,value:e,options:t,onChange:e=>n(e.value),menuPlacement:"auto",captureMenuScroll:!1,autoFocus:a});var g=({hideSettings:e,forID:t,modes:n,mode:r,theme:o,themes:s,keyMap:u,keyMaps:d,allowLanguageSelection:g,onChangeLang:v,onChangeTheme:y,onChangeKeyMap:b})=>(0,c.jsx)(f,{onKeyDown:t=>(0,a.default)("esc",t)&&e()},(0,c.jsx)(l.default,{onClick:e,showClose:!0}),g&&(0,c.jsx)(i.default.Fragment,null,(0,c.jsx)(h,null,"Field Settings"),(0,c.jsx)(p,{htmlFor:t+"-select-mode"},"Mode"),(0,c.jsx)(m,{type:"mode",forID:t,value:r,options:n,onChange:v,autoFocus:!0})),(0,c.jsx)(i.default.Fragment,null,(0,c.jsx)(h,null,"Global Settings"),s&&(0,c.jsx)(i.default.Fragment,null,(0,c.jsx)(p,{htmlFor:t+"-select-theme"},"Theme"),(0,c.jsx)(m,{type:"theme",forID:t,value:{value:o,label:o},options:s.map(e=>({value:e,label:e})),onChange:y,autoFocus:!g})),(0,c.jsx)(p,{htmlFor:t+"-select-keymap"},"KeyMap"),(0,c.jsx)(m,{type:"keymap",forID:t,value:u,options:d,onChange:b})));t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(16);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(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){a(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}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=o(o({},r.reactSelectStyles),{},{container:e=>o(o({},r.reactSelectStyles.container(e)),{},{"margin-top":"2px"}),control:e=>o(o({},r.reactSelectStyles.control(e)),{},{border:r.borders.textField,padding:0,fontSize:"13px",minHeight:"auto"}),dropdownIndicator:e=>o(o({},r.reactSelectStyles.dropdownIndicator(e)),{},{padding:"4px"}),option:(e,t)=>o(o({},r.reactSelectStyles.option(e,t)),{},{padding:0,paddingLeft:"8px"}),menu:e=>o(o({},r.reactSelectStyles.menu(e)),{},{margin:"2px 0"}),menuList:e=>o(o({},e),{},{"max-height":"200px"})});t.default=s},function(e,t,n){var r={"./apl/apl.js":1541,"./asciiarmor/asciiarmor.js":1542,"./asn.1/asn.1.js":1543,"./asterisk/asterisk.js":1544,"./brainfuck/brainfuck.js":1545,"./clike/clike.js":401,"./clojure/clojure.js":1546,"./cmake/cmake.js":1547,"./cobol/cobol.js":1548,"./coffeescript/coffeescript.js":653,"./commonlisp/commonlisp.js":1549,"./crystal/crystal.js":1550,"./css/css.js":232,"./cypher/cypher.js":1551,"./d/d.js":1552,"./dart/dart.js":1553,"./diff/diff.js":1554,"./django/django.js":1555,"./dockerfile/dockerfile.js":1556,"./dtd/dtd.js":1557,"./dylan/dylan.js":1558,"./ebnf/ebnf.js":1559,"./ecl/ecl.js":1560,"./eiffel/eiffel.js":1561,"./elm/elm.js":1562,"./erlang/erlang.js":1563,"./factor/factor.js":1564,"./fcl/fcl.js":1565,"./forth/forth.js":1566,"./fortran/fortran.js":1567,"./gas/gas.js":1568,"./gfm/gfm.js":1569,"./gherkin/gherkin.js":1571,"./go/go.js":1572,"./groovy/groovy.js":1573,"./haml/haml.js":1574,"./handlebars/handlebars.js":655,"./haskell-literate/haskell-literate.js":1575,"./haskell/haskell.js":656,"./haxe/haxe.js":1576,"./htmlembedded/htmlembedded.js":1577,"./htmlmixed/htmlmixed.js":126,"./http/http.js":1578,"./idl/idl.js":1579,"./javascript/javascript.js":198,"./jinja2/jinja2.js":1580,"./jsx/jsx.js":1581,"./julia/julia.js":1582,"./livescript/livescript.js":1583,"./lua/lua.js":1584,"./markdown/markdown.js":654,"./mathematica/mathematica.js":1585,"./mbox/mbox.js":1586,"./mirc/mirc.js":1587,"./mllike/mllike.js":1588,"./modelica/modelica.js":1589,"./mscgen/mscgen.js":1590,"./mumps/mumps.js":1591,"./nginx/nginx.js":1592,"./nsis/nsis.js":1593,"./ntriples/ntriples.js":1594,"./octave/octave.js":1595,"./oz/oz.js":1596,"./pascal/pascal.js":1597,"./pegjs/pegjs.js":1598,"./perl/perl.js":1599,"./php/php.js":1600,"./pig/pig.js":1601,"./powershell/powershell.js":1602,"./properties/properties.js":1603,"./protobuf/protobuf.js":1604,"./pug/pug.js":657,"./puppet/puppet.js":1605,"./python/python.js":658,"./q/q.js":1606,"./r/r.js":1607,"./rpm/rpm.js":1608,"./rst/rst.js":1609,"./ruby/ruby.js":402,"./rust/rust.js":1610,"./sas/sas.js":1611,"./sass/sass.js":660,"./scheme/scheme.js":1612,"./shell/shell.js":1613,"./sieve/sieve.js":1614,"./slim/slim.js":1615,"./smalltalk/smalltalk.js":1616,"./smarty/smarty.js":1617,"./solr/solr.js":1618,"./soy/soy.js":1619,"./sparql/sparql.js":1620,"./spreadsheet/spreadsheet.js":1621,"./sql/sql.js":1622,"./stex/stex.js":659,"./stylus/stylus.js":661,"./swift/swift.js":1623,"./tcl/tcl.js":1624,"./textile/textile.js":1625,"./tiddlywiki/tiddlywiki.js":1626,"./tiki/tiki.js":1627,"./toml/toml.js":1628,"./tornado/tornado.js":1629,"./troff/troff.js":1630,"./ttcn-cfg/ttcn-cfg.js":1631,"./ttcn/ttcn.js":1632,"./turtle/turtle.js":1633,"./twig/twig.js":1634,"./vb/vb.js":1635,"./vbscript/vbscript.js":1636,"./velocity/velocity.js":1637,"./verilog/verilog.js":1638,"./vhdl/vhdl.js":1639,"./vue/vue.js":1640,"./wast/wast.js":1641,"./webidl/webidl.js":1642,"./xml/xml.js":233,"./xquery/xquery.js":1643,"./yacas/yacas.js":1644,"./yaml-frontmatter/yaml-frontmatter.js":1645,"./yaml/yaml.js":662,"./z80/z80.js":1646};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=1540},function(e,t,n){!function(e){"use strict";e.defineMode("apl",(function(){var e={".":"innerProduct","\\":"scan","/":"reduce","⌿":"reduce1Axis","⍀":"scan1Axis","¨":"each","⍣":"power"},t={"+":["conjugate","add"],"−":["negate","subtract"],"×":["signOf","multiply"],"÷":["reciprocal","divide"],"⌈":["ceiling","greaterOf"],"⌊":["floor","lesserOf"],"∣":["absolute","residue"],"⍳":["indexGenerate","indexOf"],"?":["roll","deal"],"⋆":["exponentiate","toThePowerOf"],"⍟":["naturalLog","logToTheBase"],"○":["piTimes","circularFuncs"],"!":["factorial","binomial"],"⌹":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"≤":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"∪":["unique","union"],"∩":[null,"intersection"],"∼":["not","without"],"∨":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"⍴":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"⊤":["encode",null],"⊥":["decode",null],"⍕":["format","formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]},n=/[\.\/⌿⍀¨⍣]/,r=/⍬/,i=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,o=/←/,a=/[⍝#].*$/;return{startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(s,l){var u,c,d,f;return s.eatSpace()?null:'"'===(u=s.next())||"'"===u?(s.eatWhile((d=u,f=!1,function(e){return f=e,e!==d||"\\"===f})),s.next(),l.prev=!0,"string"):/[\[{\(]/.test(u)?(l.prev=!1,null):/[\]}\)]/.test(u)?(l.prev=!0,null):r.test(u)?(l.prev=!1,"niladic"):/[¯\d]/.test(u)?(l.func?(l.func=!1,l.prev=!1):l.prev=!0,s.eatWhile(/[\w\.]/),"number"):n.test(u)?"operator apl-"+e[u]:o.test(u)?"apl-arrow":i.test(u)?(c="apl-",null!=t[u]&&(l.prev?c+=t[u][1]:c+=t[u][0]),l.func=!0,l.prev=!1,"function "+c):a.test(u)?(s.skipToEnd(),"comment"):"∘"===u&&"."===s.peek()?(s.next(),"function jot-dot"):(s.eatWhile(/[\w\$_]/),l.prev=!0,"keyword")}}})),e.defineMIME("text/apl","apl")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){var t=e.match(/^\s*\S/);return e.skipToEnd(),t?"error":null}e.defineMode("asciiarmor",(function(){return{token:function(e,n){var r;if("top"==n.state)return e.sol()&&(r=e.match(/^-----BEGIN (.*)?-----\s*$/))?(n.state="headers",n.type=r[1],"tag"):t(e);if("headers"==n.state){if(e.sol()&&e.match(/^\w+:/))return n.state="header","atom";var i=t(e);return i&&(n.state="body"),i}return"header"==n.state?(e.skipToEnd(),n.state="headers","string"):"body"==n.state?e.sol()&&(r=e.match(/^-----END (.*)?-----\s*$/))?r[1]!=n.type?"error":(n.state="end","tag"):e.eatWhile(/[A-Za-z0-9+\/=]/)?null:(e.next(),"error"):"end"==n.state?t(e):void 0},blankLine:function(e){"headers"==e.state&&(e.state="body")},startState:function(){return{state:"top",type:null}}}})),e.defineMIME("application/pgp","asciiarmor"),e.defineMIME("application/pgp-encrypted","asciiarmor"),e.defineMIME("application/pgp-keys","asciiarmor"),e.defineMIME("application/pgp-signature","asciiarmor")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("asn.1",(function(e,t){var n,r=e.indentUnit,i=t.keywords||{},o=t.cmipVerbs||{},a=t.compareTypes||{},s=t.status||{},l=t.tags||{},u=t.storage||{},c=t.modifier||{},d=t.accessTypes||{},f=t.multiLineStrings,p=!1!==t.indentStatements,h=/[\|\^]/;function m(e,t){var r,p=e.next();if('"'==p||"'"==p)return t.tokenize=(r=p,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){var a=e.peek();a&&("b"!=(a=a.toLowerCase())&&"h"!=a&&"o"!=a||e.next()),o=!0;break}i=!i&&"\\"==n}return(o||!i&&!f)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]\(\){}:=,;]/.test(p))return n=p,"punctuation";if("-"==p&&e.eat("-"))return e.skipToEnd(),"comment";if(/\d/.test(p))return e.eatWhile(/[\w\.]/),"number";if(h.test(p))return e.eatWhile(h),"operator";e.eatWhile(/[\w\-]/);var m=e.current();return i.propertyIsEnumerable(m)?"keyword":o.propertyIsEnumerable(m)?"variable cmipVerbs":a.propertyIsEnumerable(m)?"atom compareTypes":s.propertyIsEnumerable(m)?"comment status":l.propertyIsEnumerable(m)?"variable-3 tags":u.propertyIsEnumerable(m)?"builtin storage":c.propertyIsEnumerable(m)?"string-2 modifier":d.propertyIsEnumerable(m)?"atom accessTypes":"variable"}function g(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function v(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new g(r,t,n,null,e.context)}function y(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new g((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;n=null;var i=(t.tokenize||m)(e,t);if("comment"==i)return i;if(null==r.align&&(r.align=!0),";"!=n&&":"!=n&&","!=n||"statement"!=r.type)if("{"==n)v(t,e.column(),"}");else if("["==n)v(t,e.column(),"]");else if("("==n)v(t,e.column(),")");else if("}"==n){for(;"statement"==r.type;)r=y(t);for("}"==r.type&&(r=y(t));"statement"==r.type;)r=y(t)}else n==r.type?y(t):p&&(("}"==r.type||"top"==r.type)&&";"!=n||"statement"==r.type&&"newstatement"==n)&&v(t,e.column(),"statement");else y(t);return t.startOfLine=!1,i},electricChars:"{}",lineComment:"--",fold:"brace"}})),e.defineMIME("text/x-ttcn-asn",{name:"asn.1",keywords:t("DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS MINACCESS MAXACCESS REVISION STATUS DESCRIPTION SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY IMPLIED EXPORTS"),cmipVerbs:t("ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE"),compareTypes:t("OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL TEXTUAL-CONVENTION"),status:t("current deprecated mandatory obsolete"),tags:t("APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS UNIVERSAL"),storage:t("BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING UTCTime InterfaceIndex IANAifType CMIP-Attribute REAL PACKAGE PACKAGES IpAddress PhysAddress NetworkAddress BITS BMPString TimeStamp TimeTicks TruthValue RowStatus DisplayString GeneralString GraphicString IA5String NumericString PrintableString SnmpAdminAtring TeletexString UTF8String VideotexString VisibleString StringStore ISO646String T61String UniversalString Unsigned32 Integer32 Gauge Gauge32 Counter Counter32 Counter64"),modifier:t("ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS DEFINED"),accessTypes:t("not-accessible accessible-for-notify read-only read-create read-write"),multiLineStrings:!0})}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("asterisk",(function(){var e=["exten","same","include","ignorepat","switch"],t=["#include","#exec"],n=["addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi","alarmreceiver","amd","answer","authenticate","background","backgrounddetect","bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent","changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge","congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge","dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility","datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa","dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy","externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif","goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete","ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus","jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme","meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete","minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode","mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish","originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce","parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones","privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten","readfile","receivefax","receivefax","receivefax","record","removequeuemember","resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun","saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax","sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags","setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel","slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground","speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound","speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor","stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec","trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate","vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring","waitforsilence","waitmusiconhold","waituntil","while","zapateller"];return{startState:function(){return{blockComment:!1,extenStart:!1,extenSame:!1,extenInclude:!1,extenExten:!1,extenPriority:!1,extenApplication:!1}},token:function(r,i){var o="";return r.eatSpace()?null:i.extenStart?(r.eatWhile(/[^\s]/),o=r.current(),/^=>?$/.test(o)?(i.extenExten=!0,i.extenStart=!1,"strong"):(i.extenStart=!1,r.skipToEnd(),"error")):i.extenExten?(i.extenExten=!1,i.extenPriority=!0,r.eatWhile(/[^,]/),i.extenInclude&&(r.skipToEnd(),i.extenPriority=!1,i.extenInclude=!1),i.extenSame&&(i.extenPriority=!1,i.extenSame=!1,i.extenApplication=!0),"tag"):i.extenPriority?(i.extenPriority=!1,i.extenApplication=!0,r.next(),i.extenSame?null:(r.eatWhile(/[^,]/),"number")):i.extenApplication?(r.eatWhile(/,/),","===(o=r.current())?null:(r.eatWhile(/\w/),o=r.current().toLowerCase(),i.extenApplication=!1,-1!==n.indexOf(o)?"def strong":null)):function(n,r){var i="",o=n.next();if(r.blockComment)return"-"==o&&n.match("-;",!0)?r.blockComment=!1:n.skipTo("--;")?(n.next(),n.next(),n.next(),r.blockComment=!1):n.skipToEnd(),"comment";if(";"==o)return n.match("--",!0)&&!n.match("-",!1)?(r.blockComment=!0,"comment"):(n.skipToEnd(),"comment");if("["==o)return n.skipTo("]"),n.eat("]"),"header";if('"'==o)return n.skipTo('"'),"string";if("'"==o)return n.skipTo("'"),"string-2";if("#"==o&&(n.eatWhile(/\w/),i=n.current(),-1!==t.indexOf(i)))return n.skipToEnd(),"strong";if("$"==o&&"{"==n.peek())return n.skipTo("}"),n.eat("}"),"variable-3";if(n.eatWhile(/\w/),i=n.current(),-1!==e.indexOf(i)){switch(r.extenStart=!0,i){case"same":r.extenSame=!0;break;case"include":case"switch":case"ignorepat":r.extenInclude=!0}return"atom"}}(r,i)},blockCommentStart:";--",blockCommentEnd:"--;",lineComment:";"}})),e.defineMIME("text/x-asterisk","asterisk")}(n(5))},function(e,t,n){!function(e){"use strict";var t="><+-.,[]".split("");e.defineMode("brainfuck",(function(){return{startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(e,n){if(e.eatSpace())return null;e.sol()&&(n.commentLine=!1);var r=e.next().toString();return-1===t.indexOf(r)?(n.commentLine=!0,e.eol()&&(n.commentLine=!1),"comment"):!0===n.commentLine?(e.eol()&&(n.commentLine=!1),"comment"):"]"===r||"["===r?("["===r?n.left++:n.right++,"bracket"):"+"===r||"-"===r?"keyword":"<"===r||">"===r?"atom":"."===r||","===r?"def":void(e.eol()&&(n.commentLine=!1))}}})),e.defineMIME("text/x-brainfuck","brainfuck")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("clojure",(function(t){var n=["false","nil","true"],r=[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],i=["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"];e.registerHelper("hintWords","clojure",[].concat(n,r,i));var o=g(n),a=g(r),s=g(i),l=g(["->","->>","as->","binding","bound-fn","case","catch","comment","cond","cond->","cond->>","condp","def","definterface","defmethod","defn","defmacro","defprotocol","defrecord","defstruct","deftype","do","doseq","dotimes","doto","extend","extend-protocol","extend-type","fn","for","future","if","if-let","if-not","if-some","let","letfn","locking","loop","ns","proxy","reify","struct-map","some->","some->>","try","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn"]),u=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/,c=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,d=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,f=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;function p(e,t){if(e.eatSpace()||e.eat(","))return["space",null];if(e.match(c))return[null,"number"];if(e.match(d))return[null,"string-2"];if(e.eat(/^"/))return(t.tokenize=h)(e,t);if(e.eat(/^[(\[{]/))return["open","bracket"];if(e.eat(/^[)\]}]/))return["close","bracket"];if(e.eat(/^;/))return e.skipToEnd(),["space","comment"];if(e.eat(/^[#'@^`~]/))return[null,"meta"];var n=e.match(f),r=n&&n[0];return r?"comment"===r&&"("===t.lastToken?(t.tokenize=m)(e,t):v(r,o)||":"===r.charAt(0)?["symbol","atom"]:v(r,a)||v(r,s)?["symbol","keyword"]:"("===t.lastToken?["symbol","builtin"]:["symbol","variable"]:(e.next(),e.eatWhile((function(e){return!v(e,u)})),[null,"error"])}function h(e,t){for(var n,r=!1;n=e.next();){if('"'===n&&!r){t.tokenize=p;break}r=!r&&"\\"===n}return[null,"string"]}function m(e,t){for(var n,r=1;n=e.next();)if(")"===n&&r--,"("===n&&r++,0===r){e.backUp(1),t.tokenize=p;break}return["space","comment"]}function g(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}function v(e,t){return t instanceof RegExp?t.test(e):t instanceof Object?t.propertyIsEnumerable(e):void 0}return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastToken:null,tokenize:p}},token:function(e,n){e.sol()&&"number"!=typeof n.ctx.indentTo&&(n.ctx.indentTo=n.ctx.start+1);var r=n.tokenize(e,n),i=r[0],o=r[1],a=e.current();return"space"!==i&&("("===n.lastToken&&null===n.ctx.indentTo?"symbol"===i&&v(a,l)?n.ctx.indentTo=n.ctx.start+t.indentUnit:n.ctx.indentTo="next":"next"===n.ctx.indentTo&&(n.ctx.indentTo=e.column()),n.lastToken=a),"open"===i?n.ctx={prev:n.ctx,start:e.column(),indentTo:null}:"close"===i&&(n.ctx=n.ctx.prev||n.ctx),o},indent:function(e){var t=e.ctx.indentTo;return"number"==typeof t?t:e.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;"}})),e.defineMIME("text/x-clojure","clojure"),e.defineMIME("text/x-clojurescript","clojure"),e.defineMIME("application/edn","clojure")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("cmake",(function(){var e=/({)?[a-zA-Z0-9_]+(})?/;function t(e,t){for(var n,r,i=!1;!e.eol()&&(n=e.next())!=t.pending;){if("$"===n&&"\\"!=r&&'"'==t.pending){i=!0;break}r=n}return i&&e.backUp(1),n==t.pending?t.continueString=!1:t.continueString=!0,"string"}return{startState:function(){var e={inDefinition:!1,inInclude:!1,continueString:!1,pending:!1};return e},token:function(n,r){return n.eatSpace()?null:function(n,r){var i=n.next();return"$"===i?n.match(e)?"variable-2":"variable":r.continueString?(n.backUp(1),t(n,r)):n.match(/(\s+)?\w+\(/)||n.match(/(\s+)?\w+\ \(/)?(n.backUp(1),"def"):"#"==i?(n.skipToEnd(),"comment"):"'"==i||'"'==i?(r.pending=i,t(n,r)):"("==i||")"==i?"bracket":i.match(/[0-9]/)?"number":(n.eatWhile(/[\w-]/),null)}(n,r)}}})),e.defineMIME("text/x-cmake","cmake")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("cobol",(function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t=e("TRUE FALSE ZEROES ZEROS ZERO SPACES SPACE LOW-VALUE LOW-VALUES "),n=e("ACCEPT ACCESS ACQUIRE ADD ADDRESS ADVANCING AFTER ALIAS ALL ALPHABET ALPHABETIC ALPHABETIC-LOWER ALPHABETIC-UPPER ALPHANUMERIC ALPHANUMERIC-EDITED ALSO ALTER ALTERNATE AND ANY ARE AREA AREAS ARITHMETIC ASCENDING ASSIGN AT ATTRIBUTE AUTHOR AUTO AUTO-SKIP AUTOMATIC B-AND B-EXOR B-LESS B-NOT B-OR BACKGROUND-COLOR BACKGROUND-COLOUR BEEP BEFORE BELL BINARY BIT BITS BLANK BLINK BLOCK BOOLEAN BOTTOM BY CALL CANCEL CD CF CH CHARACTER CHARACTERS CLASS CLOCK-UNITS CLOSE COBOL CODE CODE-SET COL COLLATING COLUMN COMMA COMMIT COMMITMENT COMMON COMMUNICATION COMP COMP-0 COMP-1 COMP-2 COMP-3 COMP-4 COMP-5 COMP-6 COMP-7 COMP-8 COMP-9 COMPUTATIONAL COMPUTATIONAL-0 COMPUTATIONAL-1 COMPUTATIONAL-2 COMPUTATIONAL-3 COMPUTATIONAL-4 COMPUTATIONAL-5 COMPUTATIONAL-6 COMPUTATIONAL-7 COMPUTATIONAL-8 COMPUTATIONAL-9 COMPUTE CONFIGURATION CONNECT CONSOLE CONTAINED CONTAINS CONTENT CONTINUE CONTROL CONTROL-AREA CONTROLS CONVERTING COPY CORR CORRESPONDING COUNT CRT CRT-UNDER CURRENCY CURRENT CURSOR DATA DATE DATE-COMPILED DATE-WRITTEN DAY DAY-OF-WEEK DB DB-ACCESS-CONTROL-KEY DB-DATA-NAME DB-EXCEPTION DB-FORMAT-NAME DB-RECORD-NAME DB-SET-NAME DB-STATUS DBCS DBCS-EDITED DE DEBUG-CONTENTS DEBUG-ITEM DEBUG-LINE DEBUG-NAME DEBUG-SUB-1 DEBUG-SUB-2 DEBUG-SUB-3 DEBUGGING DECIMAL-POINT DECLARATIVES DEFAULT DELETE DELIMITED DELIMITER DEPENDING DESCENDING DESCRIBED DESTINATION DETAIL DISABLE DISCONNECT DISPLAY DISPLAY-1 DISPLAY-2 DISPLAY-3 DISPLAY-4 DISPLAY-5 DISPLAY-6 DISPLAY-7 DISPLAY-8 DISPLAY-9 DIVIDE DIVISION DOWN DROP DUPLICATE DUPLICATES DYNAMIC EBCDIC EGI EJECT ELSE EMI EMPTY EMPTY-CHECK ENABLE END END. END-ACCEPT END-ACCEPT. END-ADD END-CALL END-COMPUTE END-DELETE END-DISPLAY END-DIVIDE END-EVALUATE END-IF END-INVOKE END-MULTIPLY END-OF-PAGE END-PERFORM END-READ END-RECEIVE END-RETURN END-REWRITE END-SEARCH END-START END-STRING END-SUBTRACT END-UNSTRING END-WRITE END-XML ENTER ENTRY ENVIRONMENT EOP EQUAL EQUALS ERASE ERROR ESI EVALUATE EVERY EXCEEDS EXCEPTION EXCLUSIVE EXIT EXTEND EXTERNAL EXTERNALLY-DESCRIBED-KEY FD FETCH FILE FILE-CONTROL FILE-STREAM FILES FILLER FINAL FIND FINISH FIRST FOOTING FOR FOREGROUND-COLOR FOREGROUND-COLOUR FORMAT FREE FROM FULL FUNCTION GENERATE GET GIVING GLOBAL GO GOBACK GREATER GROUP HEADING HIGH-VALUE HIGH-VALUES HIGHLIGHT I-O I-O-CONTROL ID IDENTIFICATION IF IN INDEX INDEX-1 INDEX-2 INDEX-3 INDEX-4 INDEX-5 INDEX-6 INDEX-7 INDEX-8 INDEX-9 INDEXED INDIC INDICATE INDICATOR INDICATORS INITIAL INITIALIZE INITIATE INPUT INPUT-OUTPUT INSPECT INSTALLATION INTO INVALID INVOKE IS JUST JUSTIFIED KANJI KEEP KEY LABEL LAST LD LEADING LEFT LEFT-JUSTIFY LENGTH LENGTH-CHECK LESS LIBRARY LIKE LIMIT LIMITS LINAGE LINAGE-COUNTER LINE LINE-COUNTER LINES LINKAGE LOCAL-STORAGE LOCALE LOCALLY LOCK MEMBER MEMORY MERGE MESSAGE METACLASS MODE MODIFIED MODIFY MODULES MOVE MULTIPLE MULTIPLY NATIONAL NATIVE NEGATIVE NEXT NO NO-ECHO NONE NOT NULL NULL-KEY-MAP NULL-MAP NULLS NUMBER NUMERIC NUMERIC-EDITED OBJECT OBJECT-COMPUTER OCCURS OF OFF OMITTED ON ONLY OPEN OPTIONAL OR ORDER ORGANIZATION OTHER OUTPUT OVERFLOW OWNER PACKED-DECIMAL PADDING PAGE PAGE-COUNTER PARSE PERFORM PF PH PIC PICTURE PLUS POINTER POSITION POSITIVE PREFIX PRESENT PRINTING PRIOR PROCEDURE PROCEDURE-POINTER PROCEDURES PROCEED PROCESS PROCESSING PROGRAM PROGRAM-ID PROMPT PROTECTED PURGE QUEUE QUOTE QUOTES RANDOM RD READ READY REALM RECEIVE RECONNECT RECORD RECORD-NAME RECORDS RECURSIVE REDEFINES REEL REFERENCE REFERENCE-MONITOR REFERENCES RELATION RELATIVE RELEASE REMAINDER REMOVAL RENAMES REPEATED REPLACE REPLACING REPORT REPORTING REPORTS REPOSITORY REQUIRED RERUN RESERVE RESET RETAINING RETRIEVAL RETURN RETURN-CODE RETURNING REVERSE-VIDEO REVERSED REWIND REWRITE RF RH RIGHT RIGHT-JUSTIFY ROLLBACK ROLLING ROUNDED RUN SAME SCREEN SD SEARCH SECTION SECURE SECURITY SEGMENT SEGMENT-LIMIT SELECT SEND SENTENCE SEPARATE SEQUENCE SEQUENTIAL SET SHARED SIGN SIZE SKIP1 SKIP2 SKIP3 SORT SORT-MERGE SORT-RETURN SOURCE SOURCE-COMPUTER SPACE-FILL SPECIAL-NAMES STANDARD STANDARD-1 STANDARD-2 START STARTING STATUS STOP STORE STRING SUB-QUEUE-1 SUB-QUEUE-2 SUB-QUEUE-3 SUB-SCHEMA SUBFILE SUBSTITUTE SUBTRACT SUM SUPPRESS SYMBOLIC SYNC SYNCHRONIZED SYSIN SYSOUT TABLE TALLYING TAPE TENANT TERMINAL TERMINATE TEST TEXT THAN THEN THROUGH THRU TIME TIMES TITLE TO TOP TRAILING TRAILING-SIGN TRANSACTION TYPE TYPEDEF UNDERLINE UNEQUAL UNIT UNSTRING UNTIL UP UPDATE UPON USAGE USAGE-MODE USE USING VALID VALIDATE VALUE VALUES VARYING VLR WAIT WHEN WHEN-COMPILED WITH WITHIN WORDS WORKING-STORAGE WRITE XML XML-CODE XML-EVENT XML-NTEXT XML-TEXT ZERO ZERO-FILL "),r=e("- * ** / + < <= = > >= "),i={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};return{startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(e,o){if(null==o.indentStack&&e.sol()&&(o.indentation=6),e.eatSpace())return null;var a=null;switch(o.mode){case"string":for(var s=!1;null!=(s=e.next());)if('"'==s||"'"==s){o.mode=!1;break}a="string";break;default:var l=e.next(),u=e.column();if(u>=0&&u<=5)a="def";else if(u>=72&&u<=79)e.skipToEnd(),a="header";else if("*"==l&&6==u)e.skipToEnd(),a="comment";else if('"'==l||"'"==l)o.mode="string",a="string";else if("'"!=l||i.digit_or_colon.test(e.peek()))if("."==l)a="link";else if(function(e,t){return"0"===e&&t.eat(/x/i)?(t.eatWhile(i.hex),!0):("+"!=e&&"-"!=e||!i.digit.test(t.peek())||(t.eat(i.sign),e=t.next()),!!i.digit.test(e)&&(t.eat(e),t.eatWhile(i.digit),"."==t.peek()&&(t.eat("."),t.eatWhile(i.digit)),t.eat(i.exponent)&&(t.eat(i.sign),t.eatWhile(i.digit)),!0))}(l,e))a="number";else{if(e.current().match(i.symbol))for(;u<71&&void 0!==e.eat(i.symbol);)u++;a=n&&n.propertyIsEnumerable(e.current().toUpperCase())?"keyword":r&&r.propertyIsEnumerable(e.current().toUpperCase())?"builtin":t&&t.propertyIsEnumerable(e.current().toUpperCase())?"atom":null}else a="atom"}return a},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent}}})),e.defineMIME("text/x-cobol","cobol")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("commonlisp",(function(e){var t,n=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,r=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,i=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,o=/[^\s'`,@()\[\]";]/;function a(e){for(var t;t=e.next();)if("\\"==t)e.next();else if(!o.test(t)){e.backUp(1);break}return e.current()}function s(e,o){if(e.eatSpace())return t="ws",null;if(e.match(i))return"number";var s;if("\\"==(s=e.next())&&(s=e.next()),'"'==s)return(o.tokenize=l)(e,o);if("("==s)return t="open","bracket";if(")"==s||"]"==s)return t="close","bracket";if(";"==s)return e.skipToEnd(),t="ws","comment";if(/['`,@]/.test(s))return null;if("|"==s)return e.skipTo("|")?(e.next(),"symbol"):(e.skipToEnd(),"error");if("#"==s)return"("==(s=e.next())?(t="open","bracket"):/[+\-=\.']/.test(s)||/\d/.test(s)&&e.match(/^\d*#/)?null:"|"==s?(o.tokenize=u)(e,o):":"==s?(a(e),"meta"):"\\"==s?(e.next(),a(e),"string-2"):"error";var c=a(e);return"."==c?null:(t="symbol","nil"==c||"t"==c||":"==c.charAt(0)?"atom":"open"==o.lastType&&(n.test(c)||r.test(c))?"keyword":"&"==c.charAt(0)?"variable-2":"variable")}function l(e,t){for(var n,r=!1;n=e.next();){if('"'==n&&!r){t.tokenize=s;break}r=!r&&"\\"==n}return"string"}function u(e,n){for(var r,i;r=e.next();){if("#"==r&&"|"==i){n.tokenize=s;break}i=r}return t="ws","comment"}return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:s}},token:function(n,i){n.sol()&&"number"!=typeof i.ctx.indentTo&&(i.ctx.indentTo=i.ctx.start+1),t=null;var o=i.tokenize(n,i);return"ws"!=t&&(null==i.ctx.indentTo?"symbol"==t&&r.test(n.current())?i.ctx.indentTo=i.ctx.start+e.indentUnit:i.ctx.indentTo="next":"next"==i.ctx.indentTo&&(i.ctx.indentTo=n.column()),i.lastType=t),"open"==t?i.ctx={prev:i.ctx,start:n.column(),indentTo:null}:"close"==t&&(i.ctx=i.ctx.prev||i.ctx),o},indent:function(e,t){var n=e.ctx.indentTo;return"number"==typeof n?n:e.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;",blockCommentStart:"#|",blockCommentEnd:"|#"}})),e.defineMIME("text/x-common-lisp","commonlisp")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("crystal",(function(e){function t(e,t){return new RegExp((t?"":"^")+"(?:"+e.join("|")+")"+(t?"$":"\\b"))}function n(e,t,n){return n.tokenize.push(e),e(t,n)}var r=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,i=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,o=/^(?:\[\][?=]?)/,a=/^(?:\.(?:\.{2})?|->|[?:])/,s=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,l=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,u=t(["abstract","alias","as","asm","begin","break","case","class","def","do","else","elsif","end","ensure","enum","extend","for","fun","if","include","instance_sizeof","lib","macro","module","next","of","out","pointerof","private","protected","rescue","return","require","select","sizeof","struct","super","then","type","typeof","uninitialized","union","unless","until","when","while","with","yield","__DIR__","__END_LINE__","__FILE__","__LINE__"]),c=t(["true","false","nil","self"]),d=t(["def","fun","macro","class","module","struct","lib","enum","union","do","for"]),f=t(["if","unless","case","while","until","begin","then"]),p=["end","else","elsif","rescue","ensure"],h=t(p),m=["\\)","\\}","\\]"],g=new RegExp("^(?:"+m.join("|")+")$"),v={def:x,fun:x,macro:function(e,t){if(e.eatSpace())return null;var n;if(n=e.match(s)){if("def"==n)return"keyword";e.eat(/[?!]/)}return t.tokenize.pop(),"def"},class:k,module:k,struct:k,lib:k,enum:k,union:k},y={"[":"]","{":"}","(":")","<":">"};function b(e,t){if(e.eatSpace())return null;if("\\"!=t.lastToken&&e.match("{%",!1))return n(w("%","%"),e,t);if("\\"!=t.lastToken&&e.match("{{",!1))return n(w("{","}"),e,t);if("#"==e.peek())return e.skipToEnd(),"comment";var p;if(e.match(s))return e.eat(/[?!]/),p=e.current(),e.eat(":")?"atom":"."==t.lastToken?"property":u.test(p)?(d.test(p)?"fun"==p&&t.blocks.indexOf("lib")>=0||"def"==p&&"abstract"==t.lastToken||(t.blocks.push(p),t.currentIndent+=1):"operator"!=t.lastStyle&&t.lastStyle||!f.test(p)?"end"==p&&(t.blocks.pop(),t.currentIndent-=1):(t.blocks.push(p),t.currentIndent+=1),v.hasOwnProperty(p)&&t.tokenize.push(v[p]),"keyword"):c.test(p)?"atom":"variable";if(e.eat("@"))return"["==e.peek()?n(_("[","]","meta"),e,t):(e.eat("@"),e.match(s)||e.match(l),"variable-2");if(e.match(l))return"tag";if(e.eat(":"))return e.eat('"')?n(E('"',"atom",!1),e,t):e.match(s)||e.match(l)||e.match(r)||e.match(i)||e.match(o)?"atom":(e.eat(":"),"operator");if(e.eat('"'))return n(E('"',"string",!0),e,t);if("%"==e.peek()){var h,m="string",g=!0;if(e.match("%r"))m="string-2",h=e.next();else if(e.match("%w"))g=!1,h=e.next();else if(e.match("%q"))g=!1,h=e.next();else{if(!(h=e.match(/^%([^\w\s=])/)))return e.match(/^%[a-zA-Z0-9_\u009F-\uFFFF]*/)?"meta":"operator";h=h[1]}return y.hasOwnProperty(h)&&(h=y[h]),n(E(h,m,g),e,t)}return(p=e.match(/^<<-('?)([A-Z]\w*)\1/))?n(function(e,t){return function(n,r){if(n.sol()&&(n.eatSpace(),n.match(e)))return r.tokenize.pop(),"string";for(var i=!1;n.peek();)if(i)n.next(),i=!1;else{if(n.match("{%",!1))return r.tokenize.push(w("%","%")),"string";if(n.match("{{",!1))return r.tokenize.push(w("{","}")),"string";if(t&&n.match("#{",!1))return r.tokenize.push(_("#{","}","meta")),"string";i=t&&"\\"==n.next()}return"string"}}(p[2],!p[1]),e,t):e.eat("'")?(e.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),e.eat("'"),"atom"):e.eat("0")?(e.eat("x")?e.match(/^[0-9a-fA-F]+/):e.eat("o")?e.match(/^[0-7]+/):e.eat("b")&&e.match(/^[01]+/),"number"):e.eat(/^\d/)?(e.match(/^\d*(?:\.\d+)?(?:[eE][+-]?\d+)?/),"number"):e.match(r)?(e.eat("="),"operator"):e.match(i)||e.match(a)?"operator":(p=e.match(/[({[]/,!1))?n(_(p=p[0],y[p],null),e,t):e.eat("\\")?(e.next(),"meta"):(e.next(),null)}function _(e,t,n,r){return function(i,o){if(!r&&i.match(e))return o.tokenize[o.tokenize.length-1]=_(e,t,n,!0),o.currentIndent+=1,n;var a=b(i,o);return i.current()===t&&(o.tokenize.pop(),o.currentIndent-=1,a=n),a}}function w(e,t,n){return function(r,i){return!n&&r.match("{"+e)?(i.currentIndent+=1,i.tokenize[i.tokenize.length-1]=w(e,t,!0),"meta"):r.match(t+"}")?(i.currentIndent-=1,i.tokenize.pop(),"meta"):b(r,i)}}function x(e,t){return e.eatSpace()?null:(e.match(s)?e.eat(/[!?]/):e.match(r)||e.match(i)||e.match(o),t.tokenize.pop(),"def")}function k(e,t){return e.eatSpace()?null:(e.match(l),t.tokenize.pop(),"def")}function E(e,t,n){return function(r,i){for(var o=!1;r.peek();)if(o)r.next(),o=!1;else{if(r.match("{%",!1))return i.tokenize.push(w("%","%")),t;if(r.match("{{",!1))return i.tokenize.push(w("{","}")),t;if(n&&r.match("#{",!1))return i.tokenize.push(_("#{","}","meta")),t;var a=r.next();if(a==e)return i.tokenize.pop(),t;o=n&&"\\"==a}return t}}return{startState:function(){return{tokenize:[b],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t),r=e.current();return n&&"comment"!=n&&(t.lastToken=r,t.lastStyle=n),n},indent:function(t,n){return n=n.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,""),h.test(n)||g.test(n)?e.indentUnit*(t.currentIndent-1):e.indentUnit*t.currentIndent},fold:"indent",electricInput:t(m.concat(p),!0),lineComment:"#"}})),e.defineMIME("text/x-crystal","crystal")}(n(5))},function(e,t,n){!function(e){"use strict";var t=function(e){return new RegExp("^(?:"+e.join("|")+")$","i")};e.defineMode("cypher",(function(n){var r,i=function(e){var t=e.next();if('"'===t)return e.match(/.*?"/),"string";if("'"===t)return e.match(/.*?'/),"string";if(/[{}\(\),\.;\[\]]/.test(t))return r=t,"node";if("/"===t&&e.eat("/"))return e.skipToEnd(),"comment";if(f.test(t))return e.eatWhile(f),null;if(e.eatWhile(/[_\w\d]/),e.eat(":"))return e.eatWhile(/[\w\d_\-]/),"atom";var n=e.current();return l.test(n)?"builtin":u.test(n)?"def":c.test(n)||d.test(n)?"keyword":"variable"},o=function(e,t,n){return e.context={prev:e.context,indent:e.indent,col:n,type:t}},a=function(e){return e.indent=e.context.indent,e.context=e.context.prev},s=n.indentUnit,l=t(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","keys","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","reverse","right","round","rtrim","shortestPath","sign","sin","size","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","toString","trim","type","upper"]),u=t(["all","and","any","contains","exists","has","in","none","not","or","single","xor"]),c=t(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","detach","distinct","drop","else","end","ends","explain","false","fieldterminator","foreach","from","headers","in","index","is","join","limit","load","match","merge","null","on","optional","order","periodic","profile","remove","return","scan","set","skip","start","starts","then","true","union","unique","unwind","using","when","where","with","call","yield"]),d=t(["access","active","assign","all","alter","as","catalog","change","copy","create","constraint","constraints","current","database","databases","dbms","default","deny","drop","element","elements","exists","from","grant","graph","graphs","if","index","indexes","label","labels","management","match","name","names","new","node","nodes","not","of","on","or","password","populated","privileges","property","read","relationship","relationships","remove","replace","required","revoke","role","roles","set","show","start","status","stop","suspended","to","traverse","type","types","user","users","with","write"]),f=/[*+\-<>=&|~%^]/;return{startState:function(){return{tokenize:i,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!==n&&t.context&&null==t.context.align&&"pattern"!==t.context.type&&(t.context.align=!0),"("===r)o(t,")",e.column());else if("["===r)o(t,"]",e.column());else if("{"===r)o(t,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;t.context&&"pattern"===t.context.type;)a(t);t.context&&r===t.context.type&&a(t)}else"."===r&&t.context&&"pattern"===t.context.type?a(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?o(t,"pattern",e.column()):"pattern"!==t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(t,n){var r=n&&n.charAt(0),i=t.context;if(/[\]\}]/.test(r))for(;i&&"pattern"===i.type;)i=i.prev;var o=i&&r===i.type;return i?"keywords"===i.type?e.commands.newlineAndIndent:i.align?i.col+(o?0:1):i.indent+(o?0:s):0}}})),e.modeExtensions.cypher={autoFormatLineBreaks:function(e){for(var t=e.split("\n"),n=/\s+\b(return|where|order by|match|with|skip|limit|create|delete|set)\b\s/g,r=0;r<t.length;r++)t[r]=t[r].replace(n," \n$1 ").trim();return t.join("\n")}},e.defineMIME("application/x-cypher-query","cypher")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("d",(function(t,n){var r,i=t.indentUnit,o=n.statementIndentUnit||i,a=n.keywords||{},s=n.builtin||{},l=n.blockKeywords||{},u=n.atoms||{},c=n.hooks||{},d=n.multiLineStrings,f=/[+\-*&%=<>!?|\/]/;function p(e,t){var n,i=e.next();if(c[i]){var o=c[i](e,t);if(!1!==o)return o}if('"'==i||"'"==i||"`"==i)return t.tokenize=(n=i,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!d)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(i))return r=i,null;if(/\d/.test(i))return e.eatWhile(/[\w\.]/),"number";if("/"==i){if(e.eat("+"))return t.tokenize=m,m(e,t);if(e.eat("*"))return t.tokenize=h,h(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(f.test(i))return e.eatWhile(f),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var p=e.current();return a.propertyIsEnumerable(p)?(l.propertyIsEnumerable(p)&&(r="newstatement"),"keyword"):s.propertyIsEnumerable(p)?(l.propertyIsEnumerable(p)&&(r="newstatement"),"builtin"):u.propertyIsEnumerable(p)?"atom":"variable"}function h(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function m(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="+"==n}return"comment"}function g(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function v(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new g(r,t,n,null,e.context)}function y(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new g((e||0)-i,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;r=null;var i=(t.tokenize||p)(e,t);if("comment"==i||"meta"==i)return i;if(null==n.align&&(n.align=!0),";"!=r&&":"!=r&&","!=r||"statement"!=n.type)if("{"==r)v(t,e.column(),"}");else if("["==r)v(t,e.column(),"]");else if("("==r)v(t,e.column(),")");else if("}"==r){for(;"statement"==n.type;)n=y(t);for("}"==n.type&&(n=y(t));"statement"==n.type;)n=y(t)}else r==n.type?y(t):(("}"==n.type||"top"==n.type)&&";"!=r||"statement"==n.type&&"newstatement"==r)&&v(t,e.column(),"statement");else y(t);return t.startOfLine=!1,i},indent:function(t,n){if(t.tokenize!=p&&null!=t.tokenize)return e.Pass;var r=t.context,a=n&&n.charAt(0);"statement"==r.type&&"}"==a&&(r=r.prev);var s=a==r.type;return"statement"==r.type?r.indented+("{"==a?0:o):r.align?r.column+(s?0:1):r.indented+(s?0:i)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var n="body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with";e.defineMIME("text/x-d",{name:"d",keywords:t("abstract alias align asm assert auto break case cast cdouble cent cfloat const continue debug default delegate delete deprecated export extern final finally function goto immutable import inout invariant is lazy macro module new nothrow override package pragma private protected public pure ref return shared short static super synchronized template this throw typedef typeid typeof volatile __FILE__ __LINE__ __gshared __traits __vector __parameters "+n),blockKeywords:t(n),builtin:t("bool byte char creal dchar double float idouble ifloat int ireal long real short ubyte ucent uint ulong ushort wchar wstring void size_t sizediff_t"),atoms:t("exit failure success true false null"),hooks:{"@":function(e,t){return e.eatWhile(/[\w\$_]/),"meta"}}})}(n(5))},function(e,t,n){!function(e){"use strict";var t="this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required".split(" "),n="try catch finally do else for if switch while".split(" "),r="true false null".split(" "),i="void bool num int double dynamic var String Null Never".split(" ");function o(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}function a(e){(e.interpolationStack||(e.interpolationStack=[])).push(e.tokenize)}function s(e){return(e.interpolationStack||(e.interpolationStack=[])).pop()}function l(e,t,n,r){var i=!1;if(t.eat(e)){if(!t.eat(e))return"string";i=!0}function o(t,n){for(var o=!1;!t.eol();){if(!r&&!o&&"$"==t.peek())return a(n),n.tokenize=u,"string";var s=t.next();if(s==e&&!o&&(!i||t.match(e+e))){n.tokenize=null;break}o=!r&&!o&&"\\"==s}return"string"}return n.tokenize=o,o(t,n)}function u(e,t){return e.eat("$"),e.eat("{")?t.tokenize=null:t.tokenize=c,null}function c(e,t){return e.eatWhile(/[\w_]/),t.tokenize=s(t),"variable"}e.defineMIME("application/dart",{name:"clike",keywords:o(t),blockKeywords:o(n),builtin:o(i),atoms:o(r),hooks:{"@":function(e){return e.eatWhile(/[\w\$_\.]/),"meta"},"'":function(e,t){return l("'",e,t,!1)},'"':function(e,t){return l('"',e,t,!1)},r:function(e,t){var n=e.peek();return("'"==n||'"'==n)&&l(e.next(),e,t,!0)},"}":function(e,t){return function(e){return e.interpolationStack?e.interpolationStack.length:0}(t)>0&&(t.tokenize=s(t),null)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=function e(t){return function(n,r){for(var i;i=n.next();){if("*"==i&&n.eat("/")){if(1==t){r.tokenize=null;break}return r.tokenize=e(t-1),r.tokenize(n,r)}if("/"==i&&n.eat("*"))return r.tokenize=e(t+1),r.tokenize(n,r)}return"comment"}}(1),t.tokenize(e,t))},token:function(e,t,n){if("variable"==n&&RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g").test(e.current()))return"variable-2"}}}),e.registerHelper("hintWords","application/dart",t.concat(r).concat(i)),e.defineMode("dart",(function(t){return e.getMode(t,"application/dart")}),"clike")}(n(5),n(401))},function(e,t,n){!function(e){"use strict";e.defineMode("diff",(function(){var e={"+":"positive","-":"negative","@":"meta"};return{token:function(t){var n=t.string.search(/[\t ]+?$/);if(!t.sol()||0===n)return t.skipToEnd(),("error "+(e[t.string.charAt(0)]||"")).replace(/ $/,"");var r=e[t.peek()]||t.skipToEnd();return-1===n?t.skipToEnd():t.pos=n,r}}})),e.defineMIME("text/x-diff","diff")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("django:inner",(function(){var e=["block","endblock","for","endfor","true","false","filter","endfilter","loop","none","self","super","if","elif","endif","as","else","import","with","endwith","without","context","ifequal","endifequal","ifnotequal","endifnotequal","extends","include","load","comment","endcomment","empty","url","static","trans","blocktrans","endblocktrans","now","regroup","lorem","ifchanged","endifchanged","firstof","debug","cycle","csrf_token","autoescape","endautoescape","spaceless","endspaceless","ssi","templatetag","verbatim","endverbatim","widthratio"],t=["add","addslashes","capfirst","center","cut","date","default","default_if_none","dictsort","dictsortreversed","divisibleby","escape","escapejs","filesizeformat","first","floatformat","force_escape","get_digit","iriencode","join","last","length","length_is","linebreaks","linebreaksbr","linenumbers","ljust","lower","make_list","phone2numeric","pluralize","pprint","random","removetags","rjust","safe","safeseq","slice","slugify","stringformat","striptags","time","timesince","timeuntil","title","truncatechars","truncatechars_html","truncatewords","truncatewords_html","unordered_list","upper","urlencode","urlize","urlizetrunc","wordcount","wordwrap","yesno"],n=["==","!=","<",">","<=",">="],r=["in","not","or","and"];function i(e,t){if(e.match("{{"))return t.tokenize=a,"tag";if(e.match("{%"))return t.tokenize=s,"tag";if(e.match("{#"))return t.tokenize=l,"comment";for(;null!=e.next()&&!e.match(/\{[{%#]/,!1););return null}function o(e,t){return function(n,r){return!r.escapeNext&&n.eat(e)?r.tokenize=t:(r.escapeNext&&(r.escapeNext=!1),"\\"==n.next()&&(r.escapeNext=!0)),"string"}}function a(e,n){if(n.waitDot){if(n.waitDot=!1,"."!=e.peek())return"null";if(e.match(/\.\W+/))return"error";if(e.eat("."))return n.waitProperty=!0,"null";throw Error("Unexpected error while waiting for property.")}if(n.waitPipe){if(n.waitPipe=!1,"|"!=e.peek())return"null";if(e.match(/\.\W+/))return"error";if(e.eat("|"))return n.waitFilter=!0,"null";throw Error("Unexpected error while waiting for filter.")}return n.waitProperty&&(n.waitProperty=!1,e.match(/\b(\w+)\b/))?(n.waitDot=!0,n.waitPipe=!0,"property"):n.waitFilter&&(n.waitFilter=!1,e.match(t))?"variable-2":e.eatSpace()?(n.waitProperty=!1,"null"):e.match(/\b\d+(\.\d+)?\b/)?"number":e.match("'")?(n.tokenize=o("'",n.tokenize),"string"):e.match('"')?(n.tokenize=o('"',n.tokenize),"string"):e.match(/\b(\w+)\b/)&&!n.foundVariable?(n.waitDot=!0,n.waitPipe=!0,"variable"):e.match("}}")?(n.waitProperty=null,n.waitFilter=null,n.waitDot=null,n.waitPipe=null,n.tokenize=i,"tag"):(e.next(),"null")}function s(a,s){if(s.waitDot){if(s.waitDot=!1,"."!=a.peek())return"null";if(a.match(/\.\W+/))return"error";if(a.eat("."))return s.waitProperty=!0,"null";throw Error("Unexpected error while waiting for property.")}if(s.waitPipe){if(s.waitPipe=!1,"|"!=a.peek())return"null";if(a.match(/\.\W+/))return"error";if(a.eat("|"))return s.waitFilter=!0,"null";throw Error("Unexpected error while waiting for filter.")}if(s.waitProperty&&(s.waitProperty=!1,a.match(/\b(\w+)\b/)))return s.waitDot=!0,s.waitPipe=!0,"property";if(s.waitFilter&&(s.waitFilter=!1,a.match(t)))return"variable-2";if(a.eatSpace())return s.waitProperty=!1,"null";if(a.match(/\b\d+(\.\d+)?\b/))return"number";if(a.match("'"))return s.tokenize=o("'",s.tokenize),"string";if(a.match('"'))return s.tokenize=o('"',s.tokenize),"string";if(a.match(n))return"operator";if(a.match(r))return"keyword";var l=a.match(e);return l?("comment"==l[0]&&(s.blockCommentTag=!0),"keyword"):a.match(/\b(\w+)\b/)?(s.waitDot=!0,s.waitPipe=!0,"variable"):a.match("%}")?(s.waitProperty=null,s.waitFilter=null,s.waitDot=null,s.waitPipe=null,s.blockCommentTag?(s.blockCommentTag=!1,s.tokenize=u):s.tokenize=i,"tag"):(a.next(),"null")}function l(e,t){return e.match(/^.*?#\}/)?t.tokenize=i:e.skipToEnd(),"comment"}function u(e,t){return e.match(/\{%\s*endcomment\s*%\}/,!1)?(t.tokenize=s,e.match("{%"),"tag"):(e.next(),"comment")}return e=new RegExp("^\\b("+e.join("|")+")\\b"),t=new RegExp("^\\b("+t.join("|")+")\\b"),n=new RegExp("^\\b("+n.join("|")+")\\b"),r=new RegExp("^\\b("+r.join("|")+")\\b"),{startState:function(){return{tokenize:i}},token:function(e,t){return t.tokenize(e,t)},blockCommentStart:"{% comment %}",blockCommentEnd:"{% endcomment %}"}})),e.defineMode("django",(function(t){var n=e.getMode(t,"text/html"),r=e.getMode(t,"django:inner");return e.overlayMode(n,r)})),e.defineMIME("text/x-django","django")}(n(5),n(126),n(234))},function(e,t,n){!function(e){"use strict";var t="from",n=new RegExp("^(\\s*)\\b("+t+")\\b","i"),r=["run","cmd","entrypoint","shell"],i=new RegExp("^(\\s*)("+r.join("|")+")(\\s+\\[)","i"),o="expose",a=new RegExp("^(\\s*)("+o+")(\\s+)","i"),s="("+[t,o].concat(r).concat(["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"]).join("|")+")",l=new RegExp("^(\\s*)"+s+"(\\s*)(#.*)?$","i"),u=new RegExp("^(\\s*)"+s+"(\\s+)","i");e.defineSimpleMode("dockerfile",{start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:n,token:[null,"keyword"],sol:!0,next:"from"},{regex:l,token:[null,"keyword",null,"error"],sol:!0},{regex:i,token:[null,"keyword",null],sol:!0,next:"array"},{regex:a,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:u,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],meta:{lineComment:"#"}}),e.defineMIME("text/x-dockerfile","dockerfile")}(n(5),n(199))},function(e,t,n){!function(e){"use strict";e.defineMode("dtd",(function(e){var t,n=e.indentUnit;function r(e,n){return t=n,e}function i(e,t){var n,a,s,l=e.next();if("<"!=l||!e.eat("!")){if("<"==l&&e.eat("?"))return t.tokenize=(a="meta",s="?>",function(e,t){for(;!e.eol();){if(e.match(s)){t.tokenize=i;break}e.next()}return a}),r("meta",l);if("#"==l&&e.eatWhile(/[\w]/))return r("atom","tag");if("|"==l)return r("keyword","seperator");if(l.match(/[\(\)\[\]\-\.,\+\?>]/))return r(null,l);if(l.match(/[\[\]]/))return r("rule",l);if('"'==l||"'"==l)return t.tokenize=(n=l,function(e,t){for(var o,a=!1;null!=(o=e.next());){if(o==n&&!a){t.tokenize=i;break}a=!a&&"\\"==o}return r("string","tag")}),t.tokenize(e,t);if(e.eatWhile(/[a-zA-Z\?\+\d]/)){var u=e.current();return null!==u.substr(u.length-1,u.length).match(/\?|\+/)&&e.backUp(1),r("tag","tag")}return"%"==l||"*"==l?r("number","number"):(e.eatWhile(/[\w\\\-_%.{,]/),r(null,null))}return e.eatWhile(/[\-]/)?(t.tokenize=o,o(e,t)):e.eatWhile(/[\w]/)?r("keyword","doindent"):void 0}function o(e,t){for(var n,o=0;null!=(n=e.next());){if(o>=2&&">"==n){t.tokenize=i;break}o="-"==n?o+1:0}return r("comment","comment")}return{startState:function(e){return{tokenize:i,baseIndent:e||0,stack:[]}},token:function(e,n){if(e.eatSpace())return null;var r=n.tokenize(e,n),i=n.stack[n.stack.length-1];return"["==e.current()||"doindent"===t||"["==t?n.stack.push("rule"):"endtag"===t?n.stack[n.stack.length-1]="endtag":"]"==e.current()||"]"==t||">"==t&&"rule"==i?n.stack.pop():"["==t&&n.stack.push("["),r},indent:function(e,r){var i=e.stack.length;return r.match(/\]\s+|\]/)?i-=1:">"===r.substr(r.length-1,r.length)&&("<"===r.substr(0,1)||"doindent"==t&&r.length>1||("doindent"==t?i--:">"==t&&r.length>1||"tag"==t&&">"!==r||("tag"==t&&"rule"==e.stack[e.stack.length-1]?i--:"tag"==t?i++:">"===r&&"rule"==e.stack[e.stack.length-1]&&">"===t?i--:">"===r&&"rule"==e.stack[e.stack.length-1]||("<"!==r.substr(0,1)&&">"===r.substr(0,1)?i-=1:">"===r||(i-=1)))),null!=t&&"]"!=t||i--),e.baseIndent+i*n},electricChars:"]>"}})),e.defineMIME("application/xml-dtd","dtd")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e,t){for(var n=0;n<e.length;n++)t(e[n],n)}function n(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n))return!0;return!1}e.defineMode("dylan",(function(e){var r={unnamedDefinition:["interface"],namedDefinition:["module","library","macro","C-struct","C-union","C-function","C-callable-wrapper"],typeParameterizedDefinition:["class","C-subtype","C-mapped-subtype"],otherParameterizedDefinition:["method","function","C-variable","C-address"],constantSimpleDefinition:["constant"],variableSimpleDefinition:["variable"],otherSimpleDefinition:["generic","domain","C-pointer-type","table"],statement:["if","block","begin","method","case","for","select","when","unless","until","while","iterate","profiling","dynamic-bind"],separator:["finally","exception","cleanup","else","elseif","afterwards"],other:["above","below","by","from","handler","in","instance","let","local","otherwise","slot","subclass","then","to","keyed-by","virtual"],signalingCalls:["signal","error","cerror","break","check-type","abort"]};r.otherDefinition=r.unnamedDefinition.concat(r.namedDefinition).concat(r.otherParameterizedDefinition),r.definition=r.typeParameterizedDefinition.concat(r.otherDefinition),r.parameterizedDefinition=r.typeParameterizedDefinition.concat(r.otherParameterizedDefinition),r.simpleDefinition=r.constantSimpleDefinition.concat(r.variableSimpleDefinition).concat(r.otherSimpleDefinition),r.keyword=r.statement.concat(r.separator).concat(r.other);var i="[-_a-zA-Z?!*@<>$%]+",o=new RegExp("^"+i),a={symbolKeyword:i+":",symbolClass:"<"+i+">",symbolGlobal:"\\*"+i+"\\*",symbolConstant:"\\$"+i},s={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variable-2",symbolConstant:"variable-3"};for(var l in a)a.hasOwnProperty(l)&&(a[l]=new RegExp("^"+a[l]));a.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var u={keyword:"keyword",definition:"def",simpleDefinition:"def",signalingCalls:"builtin"},c={},d={};function f(e,t,n){return t.tokenize=n,n(e,t)}function p(e,t){var r=e.peek();if("'"==r||'"'==r)return e.next(),f(e,t,m(r,"string"));if("/"==r){if(e.next(),e.eat("*"))return f(e,t,h);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}else if(/[+\-\d\.]/.test(r)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/))return"number"}else{if("#"==r)return e.next(),'"'==(r=e.peek())?(e.next(),f(e,t,m('"',"string"))):"b"==r?(e.next(),e.eatWhile(/[01]/),"number"):"x"==r?(e.next(),e.eatWhile(/[\da-f]/i),"number"):"o"==r?(e.next(),e.eatWhile(/[0-7]/),"number"):"#"==r?(e.next(),"punctuation"):"["==r||"("==r?(e.next(),"bracket"):e.match(/f|t|all-keys|include|key|next|rest/i)?"atom":(e.eatWhile(/[-a-zA-Z]/),"error");if("~"==r)return e.next(),"="==(r=e.peek())?(e.next(),"="==(r=e.peek())?(e.next(),"operator"):"operator"):"operator";if(":"==r){if(e.next(),"="==(r=e.peek()))return e.next(),"operator";if(":"==r)return e.next(),"punctuation"}else{if(-1!="[](){}".indexOf(r))return e.next(),"bracket";if(-1!=".,".indexOf(r))return e.next(),"punctuation";if(e.match("end"))return"keyword"}}for(var i in a)if(a.hasOwnProperty(i)){var l=a[i];if(l instanceof Array&&n(l,(function(t){return e.match(t)}))||e.match(l))return s[i]}return/[+\-*\/^=<>&|]/.test(r)?(e.next(),"operator"):e.match("define")?"def":(e.eatWhile(/[\w\-]/),c.hasOwnProperty(e.current())?d[e.current()]:e.current().match(o)?"variable":(e.next(),"variable-2"))}function h(e,t){for(var n,r=!1,i=!1,o=0;n=e.next();){if("/"==n&&r){if(!(o>0)){t.tokenize=p;break}o--}else"*"==n&&i&&o++;r="*"==n,i="/"==n}return"comment"}function m(e,t){return function(n,r){for(var i,o=!1,a=!1;null!=(i=n.next());){if(i==e&&!o){a=!0;break}o=!o&&"\\"==i}return!a&&o||(r.tokenize=p),t}}return t(["keyword","definition","simpleDefinition","signalingCalls"],(function(e){t(r[e],(function(t){c[t]=e,d[t]=u[e]}))})),{startState:function(){return{tokenize:p,currentIndent:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"/*",blockCommentEnd:"*/"}})),e.defineMIME("text/x-dylan","dylan")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("ebnf",(function(t){var n=0,r=1,i=0,o=1,a=2,s=null;return t.bracesMode&&(s=e.getMode(t,t.bracesMode)),{startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(t,l){if(t){switch(0===l.stack.length&&('"'==t.peek()||"'"==t.peek()?(l.stringType=t.peek(),t.next(),l.stack.unshift(o)):t.match(/^\/\*/)?(l.stack.unshift(i),l.commentType=n):t.match(/^\(\*/)&&(l.stack.unshift(i),l.commentType=r)),l.stack[0]){case o:for(;l.stack[0]===o&&!t.eol();)t.peek()===l.stringType?(t.next(),l.stack.shift()):"\\"===t.peek()?(t.next(),t.next()):t.match(/^.[^\\\"\']*/);return l.lhs?"property string":"string";case i:for(;l.stack[0]===i&&!t.eol();)l.commentType===n&&t.match(/\*\//)||l.commentType===r&&t.match(/\*\)/)?(l.stack.shift(),l.commentType=null):t.match(/^.[^\*]*/);return"comment";case a:for(;l.stack[0]===a&&!t.eol();)t.match(/^[^\]\\]+/)||t.match(/^\\./)||l.stack.shift();return"operator"}var u=t.peek();if(null!==s&&(l.braced||"{"===u)){null===l.localState&&(l.localState=e.startState(s));var c=s.token(t,l.localState),d=t.current();if(!c)for(var f=0;f<d.length;f++)"{"===d[f]?(0===l.braced&&(c="matchingbracket"),l.braced++):"}"===d[f]&&(l.braced--,0===l.braced&&(c="matchingbracket"));return c}switch(u){case"[":return t.next(),l.stack.unshift(a),"bracket";case":":case"|":case";":return t.next(),"operator";case"%":if(t.match("%%"))return"header";if(t.match(/[%][A-Za-z]+/))return"keyword";if(t.match(/[%][}]/))return"matchingbracket";break;case"/":if(t.match(/[\/][A-Za-z]+/))return"keyword";case"\\":if(t.match(/[\][a-z]+/))return"string-2";case".":if(t.match("."))return"atom";case"*":case"-":case"+":case"^":if(t.match(u))return"atom";case"$":if(t.match("$$"))return"builtin";if(t.match(/[$][0-9]+/))return"variable-3";case"<":if(t.match(/<<[a-zA-Z_]+>>/))return"builtin"}return t.match(/^\/\//)?(t.skipToEnd(),"comment"):t.match(/return/)?"operator":t.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?t.match(/(?=[\(.])/)?"variable":t.match(/(?=[\s\n]*[:=])/)?"def":"variable-2":-1!=["[","]","(",")"].indexOf(t.peek())?(t.next(),"bracket"):(t.eatSpace()||t.next(),null)}}}})),e.defineMIME("text/x-ebnf","ebnf")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("ecl",(function(e){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var n,r=e.indentUnit,i=t("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode"),o=t("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"),a=t("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath"),s=t("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode"),l=t("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when"),u=t("catch class do else finally for if switch try while"),c=t("true false null"),d={"#":function(e,t){return!!t.startOfLine&&(e.skipToEnd(),"meta")}},f=/[+\-*&%=<>!?|\/]/;function p(e,t){var r,m=e.next();if(d[m]){var g=d[m](e,t);if(!1!==g)return g}if('"'==m||"'"==m)return t.tokenize=(r=m,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"\\"==n}return!o&&i||(t.tokenize=p),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(m))return n=m,null;if(/\d/.test(m))return e.eatWhile(/[\w\.]/),"number";if("/"==m){if(e.eat("*"))return t.tokenize=h,h(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(f.test(m))return e.eatWhile(f),"operator";e.eatWhile(/[\w\$_]/);var v=e.current().toLowerCase();if(i.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"keyword";if(o.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"variable";if(a.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"variable-2";if(s.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"variable-3";if(l.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"builtin";for(var y=v.length-1;y>=0&&(!isNaN(v[y])||"_"==v[y]);)--y;if(y>0){var b=v.substr(0,y+1);if(s.propertyIsEnumerable(b))return u.propertyIsEnumerable(b)&&(n="newstatement"),"variable-3"}return c.propertyIsEnumerable(v)?"atom":null}function h(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=p;break}r="*"==n}return"comment"}function m(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function g(e,t,n){return e.context=new m(e.indented,t,n,null,e.context)}function v(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new m((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;n=null;var i=(t.tokenize||p)(e,t);if("comment"==i||"meta"==i)return i;if(null==r.align&&(r.align=!0),";"!=n&&":"!=n||"statement"!=r.type)if("{"==n)g(t,e.column(),"}");else if("["==n)g(t,e.column(),"]");else if("("==n)g(t,e.column(),")");else if("}"==n){for(;"statement"==r.type;)r=v(t);for("}"==r.type&&(r=v(t));"statement"==r.type;)r=v(t)}else n==r.type?v(t):("}"==r.type||"top"==r.type||"statement"==r.type&&"newstatement"==n)&&g(t,e.column(),"statement");else v(t);return t.startOfLine=!1,i},indent:function(e,t){if(e.tokenize!=p&&null!=e.tokenize)return 0;var n=e.context,i=t&&t.charAt(0);"statement"==n.type&&"}"==i&&(n=n.prev);var o=i==n.type;return"statement"==n.type?n.indented+("{"==i?0:r):n.align?n.column+(o?0:1):n.indented+(o?0:r)},electricChars:"{}"}})),e.defineMIME("text/x-ecl","ecl")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("eiffel",(function(){function e(e){for(var t={},n=0,r=e.length;n<r;++n)t[e[n]]=!0;return t}var t=e(["note","across","when","variant","until","unique","undefine","then","strip","select","retry","rescue","require","rename","reference","redefine","prefix","once","old","obsolete","loop","local","like","is","inspect","infix","include","if","frozen","from","external","export","ensure","end","elseif","else","do","creation","create","check","alias","agent","separate","invariant","inherit","indexing","feature","expanded","deferred","class","Void","True","Result","Precursor","False","Current","create","attached","detachable","as","and","implies","not","or"]),n=e([":=","and then","and","or","<<",">>"]);function r(e,t){if(e.eatSpace())return null;var n,r,i,o=e.next();return'"'==o||"'"==o?function(e,t,n){return n.tokenize.push(e),e(t,n)}((n=o,r="string",function(e,t){for(var o,a=!1;null!=(o=e.next());){if(o==n&&(i||!a)){t.tokenize.pop();break}a=!a&&"%"==o}return r}),e,t):"-"==o&&e.eat("-")?(e.skipToEnd(),"comment"):":"==o&&e.eat("=")?"operator":/[0-9]/.test(o)?(e.eatWhile(/[xXbBCc0-9\.]/),e.eat(/[\?\!]/),"ident"):/[a-zA-Z_0-9]/.test(o)?(e.eatWhile(/[a-zA-Z_0-9]/),e.eat(/[\?\!]/),"ident"):/[=+\-\/*^%<>~]/.test(o)?(e.eatWhile(/[=+\-\/*^%<>~]/),"operator"):null}return{startState:function(){return{tokenize:[r]}},token:function(e,r){var i=r.tokenize[r.tokenize.length-1](e,r);if("ident"==i){var o=e.current();i=t.propertyIsEnumerable(e.current())?"keyword":n.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(o)?"tag":/^0[bB][0-1]+$/g.test(o)||/^0[cC][0-7]+$/g.test(o)||/^0[xX][a-fA-F0-9]+$/g.test(o)||/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(o)||/^[0-9]+$/g.test(o)?"number":"variable"}return i},lineComment:"--"}})),e.defineMIME("text/x-eiffel","eiffel")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("elm",(function(){function e(e,t,n){return t(n),n(e,t)}var t=/[a-z]/,n=/[A-Z]/,r=/[a-zA-Z0-9_]/,i=/[0-9]/,o=/[0-9A-Fa-f]/,a=/[-&*+.\\/<>=?^|:]/,s=/[(),[\]{}]/,l=/[ \v\f]/;function u(){return function(h,m){if(h.eatWhile(l))return null;var g=h.next();if(s.test(g))return"{"===g&&h.eat("-")?e(h,m,function e(t){return 0==t?u():function(n,r){for(;!n.eol();){var i=n.next();if("{"==i&&n.eat("-"))++t;else if("-"==i&&n.eat("}")&&0==--t)return r(u()),"comment"}return r(e(t)),"comment"}}(1)):"["===g&&h.match("glsl|")?e(h,m,p):"builtin";if("'"===g)return e(h,m,f);if('"'===g)return h.eat('"')?h.eat('"')?e(h,m,c):"string":e(h,m,d);if(n.test(g))return h.eatWhile(r),"variable-2";if(t.test(g)){var v=1===h.pos;return h.eatWhile(r),v?"def":"variable"}if(i.test(g)){if("0"===g){if(h.eat(/[xX]/))return h.eatWhile(o),"number"}else h.eatWhile(i);return h.eat(".")&&h.eatWhile(i),h.eat(/[eE]/)&&(h.eat(/[-+]/),h.eatWhile(i)),"number"}return a.test(g)?"-"===g&&h.eat("-")?(h.skipToEnd(),"comment"):(h.eatWhile(a),"keyword"):"_"===g?"keyword":"error"}}function c(e,t){for(;!e.eol();)if('"'===e.next()&&e.eat('"')&&e.eat('"'))return t(u()),"string";return"string"}function d(e,t){for(;e.skipTo('\\"');)e.next(),e.next();return e.skipTo('"')?(e.next(),t(u()),"string"):(e.skipToEnd(),t(u()),"error")}function f(e,t){for(;e.skipTo("\\'");)e.next(),e.next();return e.skipTo("'")?(e.next(),t(u()),"string"):(e.skipToEnd(),t(u()),"error")}function p(e,t){for(;!e.eol();)if("|"===e.next()&&e.eat("]"))return t(u()),"string";return"string"}var h={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};return{startState:function(){return{f:u()}},copyState:function(e){return{f:e.f}},token:function(e,t){var n=t.f(e,(function(e){t.f=e})),r=e.current();return h.hasOwnProperty(r)?"keyword":n}}})),e.defineMIME("text/x-elm","elm")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMIME("text/x-erlang","erlang"),e.defineMode("erlang",(function(t){var n=["-type","-spec","-export_type","-opaque"],r=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],i=/[\->,;]/,o=["->",";",","],a=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],s=/[\+\-\*\/<>=\|:!]/,l=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],u=/[<\(\[\{]/,c=["<<","(","[","{"],d=/[>\)\]\}]/,f=["}","]",")",">>"],p=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],h=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],m=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,g=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function v(e,t,n){if(1==e.current().length&&t.test(e.current())){for(e.backUp(1);t.test(e.peek());)if(e.next(),x(e.current(),n))return!0;e.backUp(e.current().length-1)}return!1}function y(e,t,n){if(1==e.current().length&&t.test(e.current())){for(;t.test(e.peek());)e.next();for(;0<e.current().length;){if(x(e.current(),n))return!0;e.backUp(1)}e.next()}return!1}function b(e){return w(e,'"',"\\")}function _(e){return w(e,"'","\\")}function w(e,t,n){for(;!e.eol();){var r=e.next();if(r==t)return!0;r==n&&e.next()}return!1}function x(e,t){return-1<t.indexOf(e)}function k(e,t,n){switch(function(e,t){"comment"!=t.type&&"whitespace"!=t.type&&(e.tokenStack=function(e,t){var n=e.length-1;return 0<n&&"record"===e[n].type&&"dot"===t.type?e.pop():0<n&&"group"===e[n].type?(e.pop(),e.push(t)):e.push(t),e}(e.tokenStack,t),e.tokenStack=function(e){if(!e.length)return e;var t=e.length-1;if("dot"===e[t].type)return[];if(t>1&&"fun"===e[t].type&&"fun"===e[t-1].token)return e.slice(0,t-1);switch(e[t].token){case"}":return T(e,{g:["{"]});case"]":return T(e,{i:["["]});case")":return T(e,{i:["("]});case">>":return T(e,{i:["<<"]});case"end":return T(e,{i:["begin","case","fun","if","receive","try"]});case",":return T(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return T(e,{r:["when"],m:["try","if","case","receive"]});case";":return T(e,{E:["case","fun","if","receive","try","when"]});case"catch":return T(e,{e:["try"]});case"of":return T(e,{e:["case"]});case"after":return T(e,{e:["receive","try"]});default:return e}}(e.tokenStack))}(e,function(e,t){return E(t.current(),t.column(),t.indentation(),e)}(n,t)),n){case"atom":return"atom";case"attribute":return"attribute";case"boolean":return"atom";case"builtin":return"builtin";case"close_paren":case"colon":return null;case"comment":return"comment";case"dot":return null;case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"variable-2";case"number":return"number";case"open_paren":return null;case"operator":return"operator";case"record":return"bracket";case"separator":return null;case"string":return"string";case"type":return"def";case"variable":return"variable";default:return null}}function E(e,t,n,r){return{token:e,column:t,indent:n,type:r}}function S(e){return E(e,0,0,e)}function O(e,t){var n=e.tokenStack.length,r=t||1;return!(n<r)&&e.tokenStack[n-r]}function T(e,t){for(var n in t)for(var r=e.length-1,i=t[n],o=r-1;-1<o;o--)if(x(e[o].token,i)){var a=e.slice(0,o);switch(n){case"m":return a.concat(e[o]).concat(e[r]);case"r":return a.concat(e[r]);case"i":return a;case"g":return a.concat(S("group"));case"E":case"e":return a.concat(e[o])}}return"E"==n?[]:e}function C(n,r){var i,o,a=t.indentUnit,s=R(o=r.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/))&&0===o.index?o[0]:"",l=O(n,1),u=O(n,2);return n.in_string||n.in_atom?e.Pass:u?"when"==l.token?l.column+a:"when"===s&&"function"===u.type?u.indent+a:"("===s&&"fun"===l.token?l.column+3:"catch"===s&&(i=A(n,["try"]))?i.column:x(s,["end","after","of"])?(i=A(n,["begin","case","fun","if","receive","try"]))?i.column:e.Pass:x(s,f)?(i=A(n,c))?i.column:e.Pass:x(l.token,[",","|","||"])||x(s,[",","|","||"])?(i=function(e){var t=e.tokenStack.slice(0,-1),n=P(t,"type",["open_paren"]);return!!R(t[n])&&t[n]}(n))?i.column+i.token.length:a:"->"==l.token?x(u.token,["receive","case","if","try"])?u.column+a+a:u.column+a:x(l.token,c)?l.column+l.token.length:(i=function(e){var t=e.tokenStack,n=P(t,"type",["open_paren","separator","keyword"]),r=P(t,"type",["operator"]);return R(n)&&R(r)&&n<r?t[n+1]:!!R(n)&&t[n]}(n),R(i)?i.column+a:0):0}function A(e,t){var n=e.tokenStack,r=P(n,"token",t);return!!R(n[r])&&n[r]}function P(e,t,n){for(var r=e.length-1;-1<r;r--)if(x(e[r][t],n))return r;return!1}function R(e){return!1!==e&&null!=e}return{startState:function(){return{tokenStack:[],in_string:!1,in_atom:!1}},token:function(e,t){return function(e,t){if(t.in_string)return t.in_string=!b(e),k(t,e,"string");if(t.in_atom)return t.in_atom=!_(e),k(t,e,"atom");if(e.eatSpace())return k(t,e,"whitespace");if(!O(t)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return x(e.current(),n)?k(t,e,"type"):k(t,e,"attribute");var w=e.next();if("%"==w)return e.skipToEnd(),k(t,e,"comment");if(":"==w)return k(t,e,"colon");if("?"==w)return e.eatSpace(),e.eatWhile(m),k(t,e,"macro");if("#"==w)return e.eatSpace(),e.eatWhile(m),k(t,e,"record");if("$"==w)return"\\"!=e.next()||e.match(g)?k(t,e,"number"):k(t,e,"error");if("."==w)return k(t,e,"dot");if("'"==w){if(!(t.in_atom=!_(e))){if(e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),k(t,e,"fun");if(e.match(/\s*\(/,!1)||e.match(/\s*:/,!1))return k(t,e,"function")}return k(t,e,"atom")}if('"'==w)return t.in_string=!b(e),k(t,e,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(w))return e.eatWhile(m),k(t,e,"variable");if(/[a-z_ß-öø-ÿ]/.test(w)){if(e.eatWhile(m),e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),k(t,e,"fun");var E=e.current();return x(E,r)?k(t,e,"keyword"):x(E,a)?k(t,e,"operator"):e.match(/\s*\(/,!1)?!x(E,h)||":"==O(t).token&&"erlang"!=O(t,2).token?x(E,p)?k(t,e,"guard"):k(t,e,"function"):k(t,e,"builtin"):":"==function(e){var t=e.match(/([\n\s]+|%[^\n]*\n)*(.)/,!1);return t?t.pop():""}(e)?k(t,e,"erlang"==E?"builtin":"function"):x(E,["true","false"])?k(t,e,"boolean"):k(t,e,"atom")}var S=/[0-9]/;return S.test(w)?(e.eatWhile(S),e.eat("#")?e.eatWhile(/[0-9a-zA-Z]/)||e.backUp(1):e.eat(".")&&(e.eatWhile(S)?e.eat(/[eE]/)&&(e.eat(/[-+]/)?e.eatWhile(S)||e.backUp(2):e.eatWhile(S)||e.backUp(1)):e.backUp(1)),k(t,e,"number")):v(e,u,c)?k(t,e,"open_paren"):v(e,d,f)?k(t,e,"close_paren"):y(e,i,o)?k(t,e,"separator"):y(e,s,l)?k(t,e,"operator"):k(t,e,null)}(e,t)},indent:function(e,t){return C(e,t)},lineComment:"%"}}))}(n(5))},function(e,t,n){!function(e){"use strict";e.defineSimpleMode("factor",{start:[{regex:/#?!.*/,token:"comment"},{regex:/"""/,token:"string",next:"string3"},{regex:/(STRING:)(\s)/,token:["keyword",null],next:"string2"},{regex:/\S*?"/,token:"string",next:"string"},{regex:/(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/,token:"number"},{regex:/((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/,token:["keyword",null,"def",null,"bracket"],next:"stack"},{regex:/(M\:)(\s+)(\S+)(\s+)(\S+)/,token:["keyword",null,"def",null,"tag"]},{regex:/USING\:/,token:"keyword",next:"vocabulary"},{regex:/(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"tag"]},{regex:/(\S+\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"def"]},{regex:/(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|<PRIVATE|\.|\S*\[|\]|\S*\{|\})(?=\s|$)/,token:"keyword"},{regex:/\S+[\)>\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],meta:{dontIndentStates:["start","vocabulary","string","string3","stack"],lineComment:["!","#!"]}}),e.defineMIME("text/x-factor","factor")}(n(5),n(199))},function(e,t,n){!function(e){"use strict";e.defineMode("fcl",(function(e){var t=e.indentUnit,n={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},r={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},i={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},o={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},a=/[+\-*&^%:=<>!|\/]/;function s(e,t){var s=e.next();if(/[\d\.]/.test(s))return"."==s?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==s?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if("/"==s||"("==s){if(e.eat("*"))return t.tokenize=l,l(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(a.test(s))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var u=e.current().toLowerCase();return n.propertyIsEnumerable(u)||r.propertyIsEnumerable(u)||i.propertyIsEnumerable(u)?"keyword":o.propertyIsEnumerable(u)?"atom":"variable"}function l(e,t){for(var n,r=!1;n=e.next();){if(("/"==n||")"==n)&&r){t.tokenize=s;break}r="*"==n}return"comment"}function u(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}return{startState:function(e){return{tokenize:null,context:new u((e||0)-t,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;var o=(t.tokenize||s)(e,t);if("comment"==o)return o;null==n.align&&(n.align=!0);var a=e.current().toLowerCase();return r.propertyIsEnumerable(a)?function(e,t,n){e.context=new u(e.indented,t,n,null,e.context)}(t,e.column(),"end_block"):i.propertyIsEnumerable(a)&&function(e){e.context.prev&&("end_block"==e.context.type&&(e.indented=e.context.indented),e.context=e.context.prev)}(t),t.startOfLine=!1,o},indent:function(e,n){if(e.tokenize!=s&&null!=e.tokenize)return 0;var r=e.context,o=i.propertyIsEnumerable(n);return r.align?r.column+(o?0:1):r.indented+(o?0:t)},electricChars:"ryk",fold:"brace",blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:"//"}})),e.defineMIME("text/x-fcl","fcl")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){var t=[];return e.split(" ").forEach((function(e){t.push({name:e})})),t}var n=t("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"),r=t("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");e.defineMode("forth",(function(){function e(e,t){var n;for(n=e.length-1;n>=0;n--)if(e[n].name===t.toUpperCase())return e[n]}return{startState:function(){return{state:"",base:10,coreWordList:n,immediateWordList:r,wordList:[]}},token:function(t,n){var r;if(t.eatSpace())return null;if(""===n.state){if(t.match(/^(\]|:NONAME)(\s|$)/i))return n.state=" compilation","builtin compilation";if(r=t.match(/^(\:)\s+(\S+)(\s|$)+/))return n.wordList.push({name:r[2].toUpperCase()}),n.state=" compilation","def"+n.state;if(r=t.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i))return n.wordList.push({name:r[2].toUpperCase()}),"def"+n.state;if(r=t.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/))return"builtin"+n.state}else{if(t.match(/^(\;|\[)(\s)/))return n.state="",t.backUp(1),"builtin compilation";if(t.match(/^(\;|\[)($)/))return n.state="","builtin compilation";if(t.match(/^(POSTPONE)\s+\S+(\s|$)+/))return"builtin"}return(r=t.match(/^(\S+)(\s+|$)/))?void 0!==e(n.wordList,r[1])?"variable"+n.state:"\\"===r[1]?(t.skipToEnd(),"comment"+n.state):void 0!==e(n.coreWordList,r[1])?"builtin"+n.state:void 0!==e(n.immediateWordList,r[1])?"keyword"+n.state:"("===r[1]?(t.eatWhile((function(e){return")"!==e})),t.eat(")"),"comment"+n.state):".("===r[1]?(t.eatWhile((function(e){return")"!==e})),t.eat(")"),"string"+n.state):'S"'===r[1]||'."'===r[1]||'C"'===r[1]?(t.eatWhile((function(e){return'"'!==e})),t.eat('"'),"string"+n.state):r[1]-68719476735?"number"+n.state:"atom"+n.state:void 0}}})),e.defineMIME("text/x-forth","forth")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("fortran",(function(){function e(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}var t=e(["abstract","accept","allocatable","allocate","array","assign","asynchronous","backspace","bind","block","byte","call","case","class","close","common","contains","continue","cycle","data","deallocate","decode","deferred","dimension","do","elemental","else","encode","end","endif","entry","enumerator","equivalence","exit","external","extrinsic","final","forall","format","function","generic","go","goto","if","implicit","import","include","inquire","intent","interface","intrinsic","module","namelist","non_intrinsic","non_overridable","none","nopass","nullify","open","optional","options","parameter","pass","pause","pointer","print","private","program","protected","public","pure","read","recursive","result","return","rewind","save","select","sequence","stop","subroutine","target","then","to","type","use","value","volatile","where","while","write"]),n=e(["abort","abs","access","achar","acos","adjustl","adjustr","aimag","aint","alarm","all","allocated","alog","amax","amin","amod","and","anint","any","asin","associated","atan","besj","besjn","besy","besyn","bit_size","btest","cabs","ccos","ceiling","cexp","char","chdir","chmod","clog","cmplx","command_argument_count","complex","conjg","cos","cosh","count","cpu_time","cshift","csin","csqrt","ctime","c_funloc","c_loc","c_associated","c_null_ptr","c_null_funptr","c_f_pointer","c_null_char","c_alert","c_backspace","c_form_feed","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","dabs","dacos","dasin","datan","date_and_time","dbesj","dbesj","dbesjn","dbesy","dbesy","dbesyn","dble","dcos","dcosh","ddim","derf","derfc","dexp","digits","dim","dint","dlog","dlog","dmax","dmin","dmod","dnint","dot_product","dprod","dsign","dsinh","dsin","dsqrt","dtanh","dtan","dtime","eoshift","epsilon","erf","erfc","etime","exit","exp","exponent","extends_type_of","fdate","fget","fgetc","float","floor","flush","fnum","fputc","fput","fraction","fseek","fstat","ftell","gerror","getarg","get_command","get_command_argument","get_environment_variable","getcwd","getenv","getgid","getlog","getpid","getuid","gmtime","hostnm","huge","iabs","iachar","iand","iargc","ibclr","ibits","ibset","ichar","idate","idim","idint","idnint","ieor","ierrno","ifix","imag","imagpart","index","int","ior","irand","isatty","ishft","ishftc","isign","iso_c_binding","is_iostat_end","is_iostat_eor","itime","kill","kind","lbound","len","len_trim","lge","lgt","link","lle","llt","lnblnk","loc","log","logical","long","lshift","lstat","ltime","matmul","max","maxexponent","maxloc","maxval","mclock","merge","move_alloc","min","minexponent","minloc","minval","mod","modulo","mvbits","nearest","new_line","nint","not","or","pack","perror","precision","present","product","radix","rand","random_number","random_seed","range","real","realpart","rename","repeat","reshape","rrspacing","rshift","same_type_as","scale","scan","second","selected_int_kind","selected_real_kind","set_exponent","shape","short","sign","signal","sinh","sin","sleep","sngl","spacing","spread","sqrt","srand","stat","sum","symlnk","system","system_clock","tan","tanh","time","tiny","transfer","transpose","trim","ttynam","ubound","umask","unlink","unpack","verify","xor","zabs","zcos","zexp","zlog","zsin","zsqrt"]),r=e(["c_bool","c_char","c_double","c_double_complex","c_float","c_float_complex","c_funptr","c_int","c_int16_t","c_int32_t","c_int64_t","c_int8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_int_fast8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_least8_t","c_intmax_t","c_intptr_t","c_long","c_long_double","c_long_double_complex","c_long_long","c_ptr","c_short","c_signed_char","c_size_t","character","complex","double","integer","logical","real"]),i=/[+\-*&=<>\/\:]/,o=new RegExp("(.and.|.or.|.eq.|.lt.|.le.|.gt.|.ge.|.ne.|.not.|.eqv.|.neqv.)","i");function a(e,a){if(e.match(o))return"operator";var s,l=e.next();if("!"==l)return e.skipToEnd(),"comment";if('"'==l||"'"==l)return a.tokenize=(s=l,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==s&&!r){i=!0;break}r=!r&&"\\"==n}return!i&&r||(t.tokenize=null),"string"}),a.tokenize(e,a);if(/[\[\]\(\),]/.test(l))return null;if(/\d/.test(l))return e.eatWhile(/[\w\.]/),"number";if(i.test(l))return e.eatWhile(i),"operator";e.eatWhile(/[\w\$_]/);var u=e.current().toLowerCase();return t.hasOwnProperty(u)?"keyword":n.hasOwnProperty(u)||r.hasOwnProperty(u)?"builtin":"variable"}return{startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var n=(t.tokenize||a)(e,t);return n}}})),e.defineMIME("text/x-fortran","fortran")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("gas",(function(e,t){var n=[],r="",i={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"},o={},a=(t.architecture||"x86").toLowerCase();function s(e,t){for(var n,r=!1;null!=(n=e.next());){if("/"===n&&r){t.tokenize=null;break}r="*"===n}return"comment"}return"x86"===a?(r="#",o.ax="variable",o.eax="variable-2",o.rax="variable-3",o.bx="variable",o.ebx="variable-2",o.rbx="variable-3",o.cx="variable",o.ecx="variable-2",o.rcx="variable-3",o.dx="variable",o.edx="variable-2",o.rdx="variable-3",o.si="variable",o.esi="variable-2",o.rsi="variable-3",o.di="variable",o.edi="variable-2",o.rdi="variable-3",o.sp="variable",o.esp="variable-2",o.rsp="variable-3",o.bp="variable",o.ebp="variable-2",o.rbp="variable-3",o.ip="variable",o.eip="variable-2",o.rip="variable-3",o.cs="keyword",o.ds="keyword",o.ss="keyword",o.es="keyword",o.fs="keyword",o.gs="keyword"):"arm"!==a&&"armv6"!==a||(r="@",i.syntax="builtin",o.r0="variable",o.r1="variable",o.r2="variable",o.r3="variable",o.r4="variable",o.r5="variable",o.r6="variable",o.r7="variable",o.r8="variable",o.r9="variable",o.r10="variable",o.r11="variable",o.r12="variable",o.sp="variable-2",o.lr="variable-2",o.pc="variable-2",o.r13=o.sp,o.r14=o.lr,o.r15=o.pc,n.push((function(e,t){if("#"===e)return t.eatWhile(/\w/),"number"}))),{startState:function(){return{tokenize:null}},token:function(e,t){if(t.tokenize)return t.tokenize(e,t);if(e.eatSpace())return null;var a,l,u=e.next();if("/"===u&&e.eat("*"))return t.tokenize=s,s(e,t);if(u===r)return e.skipToEnd(),"comment";if('"'===u)return function(e,t){for(var n,r=!1;null!=(n=e.next());){if(n===t&&!r)return!1;r=!r&&"\\"===n}}(e,'"'),"string";if("."===u)return e.eatWhile(/\w/),l=e.current().toLowerCase(),(a=i[l])||null;if("="===u)return e.eatWhile(/\w/),"tag";if("{"===u)return"braket";if("}"===u)return"braket";if(/\d/.test(u))return"0"===u&&e.eat("x")?(e.eatWhile(/[0-9a-fA-F]/),"number"):(e.eatWhile(/\d/),"number");if(/\w/.test(u))return e.eatWhile(/\w/),e.eat(":")?"tag":(l=e.current().toLowerCase(),(a=o[l])||null);for(var c=0;c<n.length;c++)if(a=n[c](u,e,t))return a},lineComment:r,blockCommentStart:"/*",blockCommentEnd:"*/"}}))}(n(5))},function(e,t,n){!function(e){"use strict";var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",(function(n,r){var i=0,o={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var o=e.pos;e.eatWhile("`");var a=1+e.pos-o;return n.code?a===i&&(n.code=!1):(i=a,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==r.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(t)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:function(e){return e.code=!1,null}},a={taskLists:!0,strikethrough:!0,emoji:!0};for(var s in r)a[s]=r[s];return a.name="markdown",e.overlayMode(e.getMode(n,a),o)}),"markdown"),e.defineMIME("text/x-gfm","gfm")}(n(5),n(654),n(234))},function(e,t,n){!function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var t=0;t<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==t)return r}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==t)return r}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var i=t.lastIndexOf("."),o=i>-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("gherkin",(function(){return{startState:function(){return{lineNumber:0,tableHeaderLine:!1,allowFeature:!0,allowBackground:!1,allowScenario:!1,allowSteps:!1,allowPlaceholders:!1,allowMultilineArgument:!1,inMultilineString:!1,inMultilineTable:!1,inKeywordLine:!1}},token:function(e,t){if(e.sol()&&(t.lineNumber++,t.inKeywordLine=!1,t.inMultilineTable&&(t.tableHeaderLine=!1,e.match(/\s*\|/,!1)||(t.allowMultilineArgument=!1,t.inMultilineTable=!1))),e.eatSpace(),t.allowMultilineArgument){if(t.inMultilineString)return e.match('"""')?(t.inMultilineString=!1,t.allowMultilineArgument=!1):e.match(/.*/),"string";if(t.inMultilineTable)return e.match(/\|\s*/)?"bracket":(e.match(/[^\|]*/),t.tableHeaderLine?"header":"string");if(e.match('"""'))return t.inMultilineString=!0,"string";if(e.match("|"))return t.inMultilineTable=!0,t.tableHeaderLine=!0,"bracket"}return e.match(/#.*/)?"comment":!t.inKeywordLine&&e.match(/@\S+/)?"tag":!t.inKeywordLine&&t.allowFeature&&e.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)?(t.allowScenario=!0,t.allowBackground=!0,t.allowPlaceholders=!1,t.allowSteps=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowBackground&&e.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)?(t.allowPlaceholders=!0,t.allowSteps=!0,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):t.allowScenario&&e.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowSteps&&e.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/)?(t.inStep=!0,t.allowPlaceholders=!0,t.allowMultilineArgument=!0,t.inKeywordLine=!0,"keyword"):e.match(/"[^"]*"?/)?"string":t.allowPlaceholders&&e.match(/<[^>]*>?/)?"variable":(e.next(),e.eatWhile(/[^@"<#]/),null)}}})),e.defineMIME("text/x-feature","gherkin")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("go",(function(t){var n,r=t.indentUnit,i={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0},o={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},a=/[+\-*&^%:=<>!|\/]/;function s(e,t){var r,u=e.next();if('"'==u||"'"==u||"`"==u)return t.tokenize=(r=u,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"`"!=r&&"\\"==n}return(o||!i&&"`"!=r)&&(t.tokenize=s),"string"}),t.tokenize(e,t);if(/[\d\.]/.test(u))return"."==u?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==u?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(u))return n=u,null;if("/"==u){if(e.eat("*"))return t.tokenize=l,l(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(a.test(u))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var c=e.current();return i.propertyIsEnumerable(c)?("case"!=c&&"default"!=c||(n="case"),"keyword"):o.propertyIsEnumerable(c)?"atom":"variable"}function l(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=s;break}r="*"==n}return"comment"}function u(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function c(e,t,n){return e.context=new u(e.indented,t,n,null,e.context)}function d(e){if(e.context.prev){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}}return{startState:function(e){return{tokenize:null,context:new u((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"case"==r.type&&(r.type="}")),e.eatSpace())return null;n=null;var i=(t.tokenize||s)(e,t);return"comment"==i||(null==r.align&&(r.align=!0),"{"==n?c(t,e.column(),"}"):"["==n?c(t,e.column(),"]"):"("==n?c(t,e.column(),")"):"case"==n?r.type="case":("}"==n&&"}"==r.type||n==r.type)&&d(t),t.startOfLine=!1),i},indent:function(t,n){if(t.tokenize!=s&&null!=t.tokenize)return e.Pass;var i=t.context,o=n&&n.charAt(0);if("case"==i.type&&/^(?:case|default)\b/.test(n))return t.context.type="}",i.indented;var a=o==i.type;return i.align?i.column+(a?0:1):i.indented+(a?0:r)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-go","go")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("groovy",(function(t){function n(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var r,i=n("abstract as assert boolean break byte case catch char class const continue def default do double else enum extends final finally float for goto if implements import in instanceof int interface long native new package private protected public return short static strictfp super switch synchronized threadsafe throw throws trait transient try void volatile while"),o=n("catch class def do else enum finally for if interface switch trait try while"),a=n("return break continue"),s=n("null true false this");function l(e,t){var n=e.next();if('"'==n||"'"==n)return u(n,e,t);if(/[\[\]{}\(\),;\:\.]/.test(n))return r=n,null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),e.eat(/eE/)&&(e.eat(/\+\-/),e.eatWhile(/\d/)),"number";if("/"==n){if(e.eat("*"))return t.tokenize.push(d),d(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";if(f(t.lastToken,!1))return u(n,e,t)}if("-"==n&&e.eat(">"))return r="->",null;if(/[+\-*&%=<>!?|\/~]/.test(n))return e.eatWhile(/[+\-*&%=<>|~]/),"operator";if(e.eatWhile(/[\w\$_]/),"@"==n)return e.eatWhile(/[\w\$_\.]/),"meta";if("."==t.lastToken)return"property";if(e.eat(":"))return r="proplabel","property";var l=e.current();return s.propertyIsEnumerable(l)?"atom":i.propertyIsEnumerable(l)?(o.propertyIsEnumerable(l)?r="newstatement":a.propertyIsEnumerable(l)&&(r="standalone"),"keyword"):"variable"}function u(e,t,n){var r=!1;if("/"!=e&&t.eat(e)){if(!t.eat(e))return"string";r=!0}function i(t,n){for(var i,o=!1,a=!r;null!=(i=t.next());){if(i==e&&!o){if(!r)break;if(t.match(e+e)){a=!0;break}}if('"'==e&&"$"==i&&!o&&t.eat("{"))return n.tokenize.push(c()),"string";o=!o&&"\\"==i}return a&&n.tokenize.pop(),"string"}return n.tokenize.push(i),i(t,n)}function c(){var e=1;function t(t,n){if("}"==t.peek()){if(0==--e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)}else"{"==t.peek()&&e++;return l(t,n)}return t.isBase=!0,t}function d(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize.pop();break}r="*"==n}return"comment"}function f(e,t){return!e||"operator"==e||"->"==e||/[\.\[\{\(,;:]/.test(e)||"newstatement"==e||"keyword"==e||"proplabel"==e||"standalone"==e&&!t}function p(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function h(e,t,n){return e.context=new p(e.indented,t,n,null,e.context)}function m(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return l.isBase=!0,{startState:function(e){return{tokenize:[l],context:new p((e||0)-t.indentUnit,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"statement"!=n.type||f(t.lastToken,!0)||(m(t),n=t.context)),e.eatSpace())return null;r=null;var i=t.tokenize[t.tokenize.length-1](e,t);if("comment"==i)return i;if(null==n.align&&(n.align=!0),";"!=r&&":"!=r||"statement"!=n.type)if("->"==r&&"statement"==n.type&&"}"==n.prev.type)m(t),t.context.align=!1;else if("{"==r)h(t,e.column(),"}");else if("["==r)h(t,e.column(),"]");else if("("==r)h(t,e.column(),")");else if("}"==r){for(;"statement"==n.type;)n=m(t);for("}"==n.type&&(n=m(t));"statement"==n.type;)n=m(t)}else r==n.type?m(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==r)&&h(t,e.column(),"statement");else m(t);return t.startOfLine=!1,t.lastToken=r||i,i},indent:function(n,r){if(!n.tokenize[n.tokenize.length-1].isBase)return e.Pass;var i=r&&r.charAt(0),o=n.context;"statement"!=o.type||f(n.lastToken,!0)||(o=o.prev);var a=i==o.type;return"statement"==o.type?o.indented+("{"==i?0:t.indentUnit):o.align?o.column+(a?0:1):o.indented+(a?0:t.indentUnit)},electricChars:"{}",closeBrackets:{triples:"'\""},fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-groovy","groovy")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("haml",(function(t){var n=e.getMode(t,{name:"htmlmixed"}),r=e.getMode(t,"ruby");function i(e){return function(t,n){return t.peek()==e&&1==n.rubyState.tokenize.length?(t.next(),n.tokenize=a,"closeAttributeTag"):o(t,n)}}function o(e,t){return e.match("-#")?(e.skipToEnd(),"comment"):r.token(e,t.rubyState)}function a(e,t){var r=e.peek();if("comment"==t.previousToken.style&&t.indented>t.previousToken.indented)return e.skipToEnd(),"commentLine";if(t.startOfLine){if("!"==r&&e.match("!!"))return e.skipToEnd(),"tag";if(e.match(/^%[\w:#\.]+=/))return t.tokenize=o,"hamlTag";if(e.match(/^%[\w:]+/))return"hamlTag";if("/"==r)return e.skipToEnd(),"comment"}if((t.startOfLine||"hamlTag"==t.previousToken.style)&&("#"==r||"."==r))return e.match(/[\w-#\.]*/),"hamlAttribute";if(t.startOfLine&&!e.match("--\x3e",!1)&&("="==r||"-"==r))return t.tokenize=o,t.tokenize(e,t);if("hamlTag"==t.previousToken.style||"closeAttributeTag"==t.previousToken.style||"hamlAttribute"==t.previousToken.style){if("("==r)return t.tokenize=i(")"),t.tokenize(e,t);if("{"==r&&!e.match(/^\{%.*/))return t.tokenize=i("}"),t.tokenize(e,t)}return n.token(e,t.htmlState)}return{startState:function(){return{htmlState:e.startState(n),rubyState:e.startState(r),indented:0,previousToken:{style:null,indented:0},tokenize:a}},copyState:function(t){return{htmlState:e.copyState(n,t.htmlState),rubyState:e.copyState(r,t.rubyState),indented:t.indented,previousToken:t.previousToken,tokenize:t.tokenize}},token:function(e,t){if(e.sol()&&(t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;var n=t.tokenize(e,t);if(t.startOfLine=!1,n&&"commentLine"!=n&&(t.previousToken={style:n,indented:t.indented}),e.eol()&&t.tokenize==o){e.backUp(1);var r=e.peek();e.next(),r&&","!=r&&(t.tokenize=a)}return"hamlTag"==n?n="tag":"commentLine"==n?n="comment":"hamlAttribute"==n?n="attribute":"closeAttributeTag"==n&&(n=null),n}}}),"htmlmixed","ruby"),e.defineMIME("text/x-haml","haml")}(n(5),n(126),n(402))},function(e,t,n){!function(e){"use strict";e.defineMode("haskell-literate",(function(t,n){var r=e.getMode(t,n&&n.base||"haskell");return{startState:function(){return{inCode:!1,baseState:e.startState(r)}},token:function(e,t){return e.sol()&&(t.inCode=e.eat(">"))?"meta":t.inCode?r.token(e,t.baseState):(e.skipToEnd(),"comment")},innerMode:function(e){return e.inCode?{state:e.baseState,mode:r}:null}}}),"haskell"),e.defineMIME("text/x-literate-haskell","haskell-literate")}(n(5),n(656))},function(e,t,n){!function(e){"use strict";e.defineMode("haxe",(function(e,t){var n=e.indentUnit;function r(e){return{type:e,style:"keyword"}}var i,o=r("keyword a"),a=r("keyword b"),s=r("keyword c"),l=r("operator"),u={type:"atom",style:"atom"},c={type:"attribute",style:"attribute"},d=r("typedef"),f={if:o,while:o,else:a,do:a,try:a,return:s,break:s,continue:s,new:s,throw:s,var:r("var"),inline:c,static:c,using:r("import"),public:c,private:c,cast:r("cast"),import:r("import"),macro:r("macro"),function:r("function"),catch:r("catch"),untyped:r("untyped"),callback:r("cb"),for:r("for"),switch:r("switch"),case:r("case"),default:r("default"),in:l,never:r("property_access"),trace:r("trace"),class:d,abstract:d,enum:d,interface:d,typedef:d,extends:d,implements:d,dynamic:d,true:u,false:u,null:u},p=/[+\-*&%=<>!?|]/;function h(e,t,n){return t.tokenize=n,n(e,t)}function m(e,t){for(var n,r=!1;null!=(n=e.next());){if(n==t&&!r)return!0;r=!r&&"\\"==n}}function g(e,t,n){return d=e,i=n,t}function v(e,t){var n=e.next();if('"'==n||"'"==n)return h(e,t,(r=n,function(e,t){return m(e,r)&&(t.tokenize=v),g("string","string")}));if(/[\[\]{}\(\),;\:\.]/.test(n))return g(n);if("0"==n&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),g("number","number");if(/\d/.test(n)||"-"==n&&e.eat(/\d/))return e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/),g("number","number");if(t.reAllowed&&"~"==n&&e.eat(/\//))return m(e,"/"),e.eatWhile(/[gimsu]/),g("regexp","string-2");if("/"==n)return e.eat("*")?h(e,t,y):e.eat("/")?(e.skipToEnd(),g("comment","comment")):(e.eatWhile(p),g("operator",null,e.current()));if("#"==n)return e.skipToEnd(),g("conditional","meta");if("@"==n)return e.eat(/:/),e.eatWhile(/[\w_]/),g("metadata","meta");if(p.test(n))return e.eatWhile(p),g("operator",null,e.current());if(/[A-Z]/.test(n))return e.eatWhile(/[\w_<>]/),g("type","variable-3",i=e.current());e.eatWhile(/[\w_]/);var r,i=e.current(),o=f.propertyIsEnumerable(i)&&f[i];return o&&t.kwAllowed?g(o.type,o.style,i):g("variable","variable",i)}function y(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=v;break}r="*"==n}return g("comment","comment")}var b={atom:!0,number:!0,variable:!0,string:!0,regexp:!0};function _(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function w(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0}function x(e,t){if(/[a-z]/.test(t.charAt(0)))return!1;for(var n=e.importedtypes.length,r=0;r<n;r++)if(e.importedtypes[r]==t)return!0}function k(e){for(var t=E.state,n=t.importedtypes;n;n=n.next)if(n.name==e)return;t.importedtypes={name:e,next:t.importedtypes}}var E={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)E.cc.push(arguments[e])}function O(){return S.apply(null,arguments),!0}function T(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function C(e){var t=E.state;if(t.context){if(E.marked="def",T(e,t.localVars))return;t.localVars={name:e,next:t.localVars}}else if(t.globalVars){if(T(e,t.globalVars))return;t.globalVars={name:e,next:t.globalVars}}}var A={name:"this",next:null};function P(){E.state.context||(E.state.localVars=A),E.state.context={prev:E.state.context,vars:E.state.localVars}}function R(){E.state.localVars=E.state.context.vars,E.state.context=E.state.context.prev}function M(e,t){var n=function(){var n=E.state;n.lexical=new _(n.indented,E.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function I(){var e=E.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function j(e){return function t(n){return n==e?O():";"==e?S():O(t)}}function D(e){return"@"==e?O(z):"var"==e?O(M("vardef"),Y,j(";"),I):"keyword a"==e?O(M("form"),L,D,I):"keyword b"==e?O(M("form"),D,I):"{"==e?O(M("}"),P,K,I,R):";"==e?O():"attribute"==e?O(B):"function"==e?O(Z):"for"==e?O(M("form"),j("("),M(")"),X,j(")"),I,D,I):"variable"==e?O(M("stat"),W):"switch"==e?O(M("form"),L,M("}","switch"),j("{"),K,I,I):"case"==e?O(L,j(":")):"default"==e?O(j(":")):"catch"==e?O(M("form"),P,j("("),re,j(")"),D,I,R):"import"==e?O(q,j(";")):"typedef"==e?O(H):S(M("stat"),L,j(";"),I)}function L(e){return b.hasOwnProperty(e)||"type"==e?O(F):"function"==e?O(Z):"keyword c"==e?O(N):"("==e?O(M(")"),N,j(")"),I,F):"operator"==e?O(L):"["==e?O(M("]"),G(N,"]"),I,F):"{"==e?O(M("}"),G($,"}"),I,F):O()}function N(e){return e.match(/[;\}\)\],]/)?S():S(L)}function F(e,t){return"operator"==e&&/\+\+|--/.test(t)?O(F):"operator"==e||":"==e?O(L):";"!=e?"("==e?O(M(")"),G(L,")"),I,F):"."==e?O(V,F):"["==e?O(M("]"),L,j("]"),I,F):void 0:void 0}function B(e){return"attribute"==e?O(B):"function"==e?O(Z):"var"==e?O(Y):void 0}function z(e){return":"==e||"variable"==e?O(z):"("==e?O(M(")"),G(U,")"),I,D):void 0}function U(e){if("variable"==e)return O()}function q(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(k(t),O()):"variable"==e||"property"==e||"."==e||"*"==t?O(q):void 0}function H(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(k(t),O()):"type"==e&&/[A-Z]/.test(t.charAt(0))?O():void 0}function W(e){return":"==e?O(I,D):S(F,j(";"),I)}function V(e){if("variable"==e)return E.marked="property",O()}function $(e){if("variable"==e&&(E.marked="property"),b.hasOwnProperty(e))return O(j(":"),L)}function G(e,t){function n(r){return","==r?O(e,n):r==t?O():O(j(t))}return function(r){return r==t?O():S(e,n)}}function K(e){return"}"==e?O():S(D,K)}function Y(e,t){return"variable"==e?(C(t),O(ee,Q)):O()}function Q(e,t){return"="==t?O(L,Q):","==e?O(Y):void 0}function X(e,t){return"variable"==e?(C(t),O(J,L)):S()}function J(e,t){if("in"==t)return O()}function Z(e,t){return"variable"==e||"type"==e?(C(t),O(Z)):"new"==t?O(Z):"("==e?O(M(")"),P,G(re,")"),I,ee,D,R):void 0}function ee(e){if(":"==e)return O(te)}function te(e){return"type"==e||"variable"==e?O():"{"==e?O(M("}"),G(ne,"}"),I):void 0}function ne(e){if("variable"==e)return O(ee)}function re(e,t){if("variable"==e)return C(t),O(ee)}return R.lex=!0,I.lex=!0,{startState:function(e){var r={tokenize:v,reAllowed:!0,kwAllowed:!0,cc:[],lexical:new _((e||0)-n,0,"block",!1),localVars:t.localVars,importedtypes:["Int","Float","String","Void","Std","Bool","Dynamic","Array"],context:t.localVars&&{vars:t.localVars},indented:0};return t.globalVars&&"object"==typeof t.globalVars&&(r.globalVars=t.globalVars),r},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==d?n:(t.reAllowed=!("operator"!=d&&"keyword c"!=d&&!d.match(/^[\[{}\(,;:]$/)),t.kwAllowed="."!=d,function(e,t,n,r,i){var o=e.cc;for(E.state=e,E.stream=i,E.marked=null,E.cc=o,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():D)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return E.marked?E.marked:"variable"==n&&w(e,r)?"variable-2":"variable"==n&&x(e,r)?"variable-3":t}}(t,n,d,i,e))},indent:function(e,t){if(e.tokenize!=v)return 0;var r=t&&t.charAt(0),i=e.lexical;"stat"==i.type&&"}"==r&&(i=i.prev);var o=i.type,a=r==o;return"vardef"==o?i.indented+4:"form"==o&&"{"==r?i.indented:"stat"==o||"form"==o?i.indented+n:"switch"!=i.info||a?i.align?i.column+(a?0:1):i.indented+(a?0:n):i.indented+(/^(?:case|default)\b/.test(t)?n:2*n)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-haxe","haxe"),e.defineMode("hxml",(function(){return{startState:function(){return{define:!1,inString:!1}},token:function(e,t){var n=e.peek(),r=e.sol();if("#"==n)return e.skipToEnd(),"comment";if(r&&"-"==n){var i="variable-2";return e.eat(/-/),"-"==e.peek()&&(e.eat(/-/),i="keyword a"),"D"==e.peek()&&(e.eat(/[D]/),i="keyword c",t.define=!0),e.eatWhile(/[A-Z]/i),i}return n=e.peek(),0==t.inString&&"'"==n&&(t.inString=!0,e.next()),1==t.inString?(e.skipTo("'")||e.skipToEnd(),"'"==e.peek()&&(e.next(),t.inString=!1),"string"):(e.next(),null)},lineComment:"#"}})),e.defineMIME("text/x-hxml","hxml")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("htmlembedded",(function(t,n){var r=n.closeComment||"--%>";return e.multiplexingMode(e.getMode(t,"htmlmixed"),{open:n.openComment||"<%--",close:r,delimStyle:"comment",mode:{token:function(e){return e.skipTo(r)||e.skipToEnd(),"comment"}}},{open:n.open||n.scriptStartRegex||"<%",close:n.close||n.scriptEndRegex||"%>",mode:e.getMode(t,n.scriptingModeSpec)})}),"htmlmixed"),e.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"}),e.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"}),e.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"}),e.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})}(n(5),n(126),n(403))},function(e,t,n){!function(e){"use strict";e.defineMode("http",(function(){function e(e,t){return e.skipToEnd(),t.cur=a,"error"}function t(t,r){return t.match(/^HTTP\/\d\.\d/)?(r.cur=n,"keyword"):t.match(/^[A-Z]+/)&&/[ \t]/.test(t.peek())?(r.cur=i,"keyword"):e(t,r)}function n(t,n){var i=t.match(/^\d+/);if(!i)return e(t,n);n.cur=r;var o=Number(i[0]);return o>=100&&o<200?"positive informational":o>=200&&o<300?"positive success":o>=300&&o<400?"positive redirect":o>=400&&o<500?"negative client-error":o>=500&&o<600?"negative server-error":"error"}function r(e,t){return e.skipToEnd(),t.cur=a,null}function i(e,t){return e.eatWhile(/\S/),t.cur=o,"string-2"}function o(t,n){return t.match(/^HTTP\/\d\.\d$/)?(n.cur=a,"keyword"):e(t,n)}function a(e){return e.sol()&&!e.eat(/[ \t]/)?e.match(/^.*?:/)?"atom":(e.skipToEnd(),"error"):(e.skipToEnd(),"string")}function s(e){return e.skipToEnd(),null}return{token:function(e,t){var n=t.cur;return n!=a&&n!=s&&e.eatSpace()?null:n(e,t)},blankLine:function(e){e.cur=s},startState:function(){return{cur:t}}}})),e.defineMIME("message/http","http")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var n=["a_correlate","abs","acos","adapt_hist_equal","alog","alog2","alog10","amoeba","annotate","app_user_dir","app_user_dir_query","arg_present","array_equal","array_indices","arrow","ascii_template","asin","assoc","atan","axis","axis","bandpass_filter","bandreject_filter","barplot","bar_plot","beseli","beselj","beselk","besely","beta","biginteger","bilinear","bin_date","binary_template","bindgen","binomial","bit_ffs","bit_population","blas_axpy","blk_con","boolarr","boolean","boxplot","box_cursor","breakpoint","broyden","bubbleplot","butterworth","bytarr","byte","byteorder","bytscl","c_correlate","calendar","caldat","call_external","call_function","call_method","call_procedure","canny","catch","cd","cdf","ceil","chebyshev","check_math","chisqr_cvf","chisqr_pdf","choldc","cholsol","cindgen","cir_3pnt","clipboard","close","clust_wts","cluster","cluster_tree","cmyk_convert","code_coverage","color_convert","color_exchange","color_quan","color_range_map","colorbar","colorize_sample","colormap_applicable","colormap_gradient","colormap_rotation","colortable","comfit","command_line_args","common","compile_opt","complex","complexarr","complexround","compute_mesh_normals","cond","congrid","conj","constrained_min","contour","contour","convert_coord","convol","convol_fft","coord2to3","copy_lun","correlate","cos","cosh","cpu","cramer","createboxplotdata","create_cursor","create_struct","create_view","crossp","crvlength","ct_luminance","cti_test","cursor","curvefit","cv_coord","cvttobm","cw_animate","cw_animate_getp","cw_animate_load","cw_animate_run","cw_arcball","cw_bgroup","cw_clr_index","cw_colorsel","cw_defroi","cw_field","cw_filesel","cw_form","cw_fslider","cw_light_editor","cw_light_editor_get","cw_light_editor_set","cw_orient","cw_palette_editor","cw_palette_editor_get","cw_palette_editor_set","cw_pdmenu","cw_rgbslider","cw_tmpl","cw_zoom","db_exists","dblarr","dcindgen","dcomplex","dcomplexarr","define_key","define_msgblk","define_msgblk_from_file","defroi","defsysv","delvar","dendro_plot","dendrogram","deriv","derivsig","determ","device","dfpmin","diag_matrix","dialog_dbconnect","dialog_message","dialog_pickfile","dialog_printersetup","dialog_printjob","dialog_read_image","dialog_write_image","dictionary","digital_filter","dilate","dindgen","dissolve","dist","distance_measure","dlm_load","dlm_register","doc_library","double","draw_roi","edge_dog","efont","eigenql","eigenvec","ellipse","elmhes","emboss","empty","enable_sysrtn","eof","eos","erase","erf","erfc","erfcx","erode","errorplot","errplot","estimator_filter","execute","exit","exp","expand","expand_path","expint","extrac","extract_slice","f_cvf","f_pdf","factorial","fft","file_basename","file_chmod","file_copy","file_delete","file_dirname","file_expand_path","file_gunzip","file_gzip","file_info","file_lines","file_link","file_mkdir","file_move","file_poll_input","file_readlink","file_same","file_search","file_tar","file_test","file_untar","file_unzip","file_which","file_zip","filepath","findgen","finite","fix","flick","float","floor","flow3","fltarr","flush","format_axis_values","forward_function","free_lun","fstat","fulstr","funct","function","fv_test","fx_root","fz_roots","gamma","gamma_ct","gauss_cvf","gauss_pdf","gauss_smooth","gauss2dfit","gaussfit","gaussian_function","gaussint","get_drive_list","get_dxf_objects","get_kbrd","get_login_info","get_lun","get_screen_size","getenv","getwindows","greg2jul","grib","grid_input","grid_tps","grid3","griddata","gs_iter","h_eq_ct","h_eq_int","hanning","hash","hdf","hdf5","heap_free","heap_gc","heap_nosave","heap_refcount","heap_save","help","hilbert","hist_2d","hist_equal","histogram","hls","hough","hqr","hsv","i18n_multibytetoutf8","i18n_multibytetowidechar","i18n_utf8tomultibyte","i18n_widechartomultibyte","ibeta","icontour","iconvertcoord","idelete","identity","idl_base64","idl_container","idl_validname","idlexbr_assistant","idlitsys_createtool","idlunit","iellipse","igamma","igetcurrent","igetdata","igetid","igetproperty","iimage","image","image_cont","image_statistics","image_threshold","imaginary","imap","indgen","int_2d","int_3d","int_tabulated","intarr","interpol","interpolate","interval_volume","invert","ioctl","iopen","ir_filter","iplot","ipolygon","ipolyline","iputdata","iregister","ireset","iresolve","irotate","isa","isave","iscale","isetcurrent","isetproperty","ishft","isocontour","isosurface","isurface","itext","itranslate","ivector","ivolume","izoom","journal","json_parse","json_serialize","jul2greg","julday","keyword_set","krig2d","kurtosis","kw_test","l64indgen","la_choldc","la_cholmprove","la_cholsol","la_determ","la_eigenproblem","la_eigenql","la_eigenvec","la_elmhes","la_gm_linear_model","la_hqr","la_invert","la_least_square_equality","la_least_squares","la_linear_equation","la_ludc","la_lumprove","la_lusol","la_svd","la_tridc","la_trimprove","la_triql","la_trired","la_trisol","label_date","label_region","ladfit","laguerre","lambda","lambdap","lambertw","laplacian","least_squares_filter","leefilt","legend","legendre","linbcg","lindgen","linfit","linkimage","list","ll_arc_distance","lmfit","lmgr","lngamma","lnp_test","loadct","locale_get","logical_and","logical_or","logical_true","lon64arr","lonarr","long","long64","lsode","lu_complex","ludc","lumprove","lusol","m_correlate","machar","make_array","make_dll","make_rt","map","mapcontinents","mapgrid","map_2points","map_continents","map_grid","map_image","map_patch","map_proj_forward","map_proj_image","map_proj_info","map_proj_init","map_proj_inverse","map_set","matrix_multiply","matrix_power","max","md_test","mean","meanabsdev","mean_filter","median","memory","mesh_clip","mesh_decimate","mesh_issolid","mesh_merge","mesh_numtriangles","mesh_obj","mesh_smooth","mesh_surfacearea","mesh_validate","mesh_volume","message","min","min_curve_surf","mk_html_help","modifyct","moment","morph_close","morph_distance","morph_gradient","morph_hitormiss","morph_open","morph_thin","morph_tophat","multi","n_elements","n_params","n_tags","ncdf","newton","noise_hurl","noise_pick","noise_scatter","noise_slur","norm","obj_class","obj_destroy","obj_hasmethod","obj_isa","obj_new","obj_valid","objarr","on_error","on_ioerror","online_help","openr","openu","openw","oplot","oploterr","orderedhash","p_correlate","parse_url","particle_trace","path_cache","path_sep","pcomp","plot","plot3d","plot","plot_3dbox","plot_field","ploterr","plots","polar_contour","polar_surface","polyfill","polyshade","pnt_line","point_lun","polarplot","poly","poly_2d","poly_area","poly_fit","polyfillv","polygon","polyline","polywarp","popd","powell","pref_commit","pref_get","pref_set","prewitt","primes","print","printf","printd","pro","product","profile","profiler","profiles","project_vol","ps_show_fonts","psafm","pseudo","ptr_free","ptr_new","ptr_valid","ptrarr","pushd","qgrid3","qhull","qromb","qromo","qsimp","query_*","query_ascii","query_bmp","query_csv","query_dicom","query_gif","query_image","query_jpeg","query_jpeg2000","query_mrsid","query_pict","query_png","query_ppm","query_srf","query_tiff","query_video","query_wav","r_correlate","r_test","radon","randomn","randomu","ranks","rdpix","read","readf","read_ascii","read_binary","read_bmp","read_csv","read_dicom","read_gif","read_image","read_interfile","read_jpeg","read_jpeg2000","read_mrsid","read_pict","read_png","read_ppm","read_spr","read_srf","read_sylk","read_tiff","read_video","read_wav","read_wave","read_x11_bitmap","read_xwd","reads","readu","real_part","rebin","recall_commands","recon3","reduce_colors","reform","region_grow","register_cursor","regress","replicate","replicate_inplace","resolve_all","resolve_routine","restore","retall","return","reverse","rk4","roberts","rot","rotate","round","routine_filepath","routine_info","rs_test","s_test","save","savgol","scale3","scale3d","scatterplot","scatterplot3d","scope_level","scope_traceback","scope_varfetch","scope_varname","search2d","search3d","sem_create","sem_delete","sem_lock","sem_release","set_plot","set_shading","setenv","sfit","shade_surf","shade_surf_irr","shade_volume","shift","shift_diff","shmdebug","shmmap","shmunmap","shmvar","show3","showfont","signum","simplex","sin","sindgen","sinh","size","skewness","skip_lun","slicer3","slide_image","smooth","sobel","socket","sort","spawn","sph_4pnt","sph_scat","spher_harm","spl_init","spl_interp","spline","spline_p","sprsab","sprsax","sprsin","sprstp","sqrt","standardize","stddev","stop","strarr","strcmp","strcompress","streamline","streamline","stregex","stretch","string","strjoin","strlen","strlowcase","strmatch","strmessage","strmid","strpos","strput","strsplit","strtrim","struct_assign","struct_hide","strupcase","surface","surface","surfr","svdc","svdfit","svsol","swap_endian","swap_endian_inplace","symbol","systime","t_cvf","t_pdf","t3d","tag_names","tan","tanh","tek_color","temporary","terminal_size","tetra_clip","tetra_surface","tetra_volume","text","thin","thread","threed","tic","time_test2","timegen","timer","timestamp","timestamptovalues","tm_test","toc","total","trace","transpose","tri_surf","triangulate","trigrid","triql","trired","trisol","truncate_lun","ts_coef","ts_diff","ts_fcast","ts_smooth","tv","tvcrs","tvlct","tvrd","tvscl","typename","uindgen","uint","uintarr","ul64indgen","ulindgen","ulon64arr","ulonarr","ulong","ulong64","uniq","unsharp_mask","usersym","value_locate","variance","vector","vector_field","vel","velovect","vert_t3d","voigt","volume","voronoi","voxel_proj","wait","warp_tri","watershed","wdelete","wf_draw","where","widget_base","widget_button","widget_combobox","widget_control","widget_displaycontextmenu","widget_draw","widget_droplist","widget_event","widget_info","widget_label","widget_list","widget_propertysheet","widget_slider","widget_tab","widget_table","widget_text","widget_tree","widget_tree_move","widget_window","wiener_filter","window","window","write_bmp","write_csv","write_gif","write_image","write_jpeg","write_jpeg2000","write_nrif","write_pict","write_png","write_ppm","write_spr","write_srf","write_sylk","write_tiff","write_video","write_wav","write_wave","writeu","wset","wshow","wtn","wv_applet","wv_cwt","wv_cw_wavelet","wv_denoise","wv_dwt","wv_fn_coiflet","wv_fn_daubechies","wv_fn_gaussian","wv_fn_haar","wv_fn_morlet","wv_fn_paul","wv_fn_symlet","wv_import_data","wv_import_wavelet","wv_plot3d_wps","wv_plot_multires","wv_pwt","wv_tool_denoise","xbm_edit","xdisplayfile","xdxf","xfont","xinteranimate","xloadct","xmanager","xmng_tmpl","xmtool","xobjview","xobjview_rotate","xobjview_write_image","xpalette","xpcolor","xplot3d","xregistered","xroi","xsq_test","xsurface","xvaredit","xvolume","xvolume_rotate","xvolume_write_image","xyouts","zlib_compress","zlib_uncompress","zoom","zoom_24"],r=t(n),i=["begin","end","endcase","endfor","endwhile","endif","endrep","endforeach","break","case","continue","for","foreach","goto","if","then","else","repeat","until","switch","while","do","pro","function"],o=t(i);e.registerHelper("hintWords","idl",n.concat(i));var a=new RegExp("^[_a-z¡-￿][_a-z0-9¡-￿]*","i"),s=/[+\-*&=<>\/@#~$]/,l=new RegExp("(and|or|eq|lt|le|gt|ge|ne|not)","i");e.defineMode("idl",(function(){return{token:function(e){return function(e){if(e.eatSpace())return null;if(e.match(";"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(o)?"keyword":e.match(r)?"builtin":e.match(a)?"variable":e.match(s)||e.match(l)?"operator":(e.next(),null)}(e)}}})),e.defineMIME("text/x-idl","idl")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("jinja2",(function(){var e=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],t=/^[+\-*&%=<>!?|~^]/,n=/^[:\[\(\{]/,r=["true","false"],i=/^(\d[+\-\*\/])?\d+(\.\d+)?/;function o(o,a){var s=o.peek();if(a.incomment)return o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(a.intag){if(a.operator){if(a.operator=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.sign){if(a.sign=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.instring)return s==a.instring&&(a.instring=!1),o.next(),"string";if("'"==s||'"'==s)return a.instring=s,o.next(),"string";if(o.match(a.intag+"}")||o.eat("-")&&o.match(a.intag+"}"))return a.intag=!1,"tag";if(o.match(t))return a.operator=!0,"operator";if(o.match(n))a.sign=!0;else if(o.eat(" ")||o.sol()){if(o.match(e))return"keyword";if(o.match(r))return"atom";if(o.match(i))return"number";o.sol()&&o.next()}else o.next();return"variable"}if(o.eat("{")){if(o.eat("#"))return a.incomment=!0,o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(s=o.eat(/\{|%/))return a.intag=s,"{"==s&&(a.intag="}"),o.eat("-"),"tag"}o.next()}return e=new RegExp("(("+e.join(")|(")+"))\\b"),r=new RegExp("(("+r.join(")|(")+"))\\b"),{startState:function(){return{tokenize:o}},token:function(e,t){return t.tokenize(e,t)},blockCommentStart:"{#",blockCommentEnd:"#}"}})),e.defineMIME("text/jinja2","jinja2")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){this.state=e,this.mode=t,this.depth=n,this.prev=r}function n(r){return new t(e.copyState(r.mode,r.state),r.mode,r.depth,r.prev&&n(r.prev))}e.defineMode("jsx",(function(r,i){var o=e.getMode(r,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),a=e.getMode(r,i&&i.base||"javascript");function s(e){var t=e.tagName;e.tagName=null;var n=o.indent(e,"","");return e.tagName=t,n}function l(n,i){return i.context.mode==o?function(n,i,u){if(2==u.depth)return n.match(/^.*?\*\//)?u.depth=1:n.skipToEnd(),"comment";if("{"==n.peek()){o.skipAttribute(u.state);var c=s(u.state),d=u.state.context;if(d&&n.match(/^[^>]*>\s*$/,!1)){for(;d.prev&&!d.startOfLine;)d=d.prev;d.startOfLine?c-=r.indentUnit:u.prev.state.lexical&&(c=u.prev.state.lexical.indented)}else 1==u.depth&&(c+=r.indentUnit);return i.context=new t(e.startState(a,c),a,0,i.context),null}if(1==u.depth){if("<"==n.peek())return o.skipAttribute(u.state),i.context=new t(e.startState(o,s(u.state)),o,0,i.context),null;if(n.match("//"))return n.skipToEnd(),"comment";if(n.match("/*"))return u.depth=2,l(n,i)}var f,p=o.token(n,u.state),h=n.current();return/\btag\b/.test(p)?/>$/.test(h)?u.state.context?u.depth=0:i.context=i.context.prev:/^</.test(h)&&(u.depth=1):!p&&(f=h.indexOf("{"))>-1&&n.backUp(h.length-f),p}(n,i,i.context):function(n,r,i){if("<"==n.peek()&&a.expressionAllowed(n,i.state))return a.skipExpression(i.state),r.context=new t(e.startState(o,a.indent(i.state,"","")),o,0,r.context),null;var s=a.token(n,i.state);if(!s&&null!=i.depth){var l=n.current();"{"==l?i.depth++:"}"==l&&0==--i.depth&&(r.context=r.context.prev)}return s}(n,i,i.context)}return{startState:function(){return{context:new t(e.startState(a),a)}},copyState:function(e){return{context:n(e.context)}},token:l,indent:function(e,t,n){return e.context.mode.indent(e.context.state,t,n)},innerMode:function(e){return e.context}}}),"xml","javascript"),e.defineMIME("text/jsx","jsx"),e.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})}(n(5),n(233),n(198))},function(e,t,n){!function(e){"use strict";e.defineMode("julia",(function(t,n){function r(e,t){return void 0===t&&(t="\\b"),new RegExp("^(("+e.join(")|(")+"))"+t)}var i=n.operators||r(["[<>]:","[<>=]=","<<=?",">>>?=?","=>","->","\\/\\/","[\\\\%*+\\-<>!=\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),o=n.delimiters||/^[;,()[\]{}]/,a=n.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,s=r(["\\\\[0-7]{1,3}","\\\\x[A-Fa-f0-9]{1,2}","\\\\[abefnrtv0%?'\"\\\\]","([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])"],"'"),l=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],u=["true","false","nothing","NaN","Inf"];e.registerHelper("hintWords","julia",l.concat(u));var c=r(["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"]),d=r(["end","else","elseif","catch","finally"]),f=r(l),p=r(u),h=/^@[_A-Za-z][\w]*/,m=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,g=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/;function v(e){return e.nestedArrays>0}function y(e,t){return void 0===t&&(t=0),e.scopes.length<=t?null:e.scopes[e.scopes.length-(t+1)]}function b(e,t){if(e.match(/^#=/,!1))return t.tokenize=x,t.tokenize(e,t);var n=t.leavingExpr;if(e.sol()&&(n=!1),t.leavingExpr=!1,n&&e.match(/^'+/))return"operator";if(e.match(/\.{4,}/))return"error";if(e.match(/\.{1,3}/))return"operator";if(e.eatSpace())return null;var r,s,l=e.peek();if("#"===l)return e.skipToEnd(),"comment";if("["===l&&(t.scopes.push("["),t.nestedArrays++),"("===l&&(t.scopes.push("("),t.nestedGenerators++),v(t)&&"]"===l){for(;t.scopes.length&&"["!==y(t);)t.scopes.pop();t.scopes.pop(),t.nestedArrays--,t.leavingExpr=!0}if(function(e){return e.nestedGenerators>0}(t)&&")"===l){for(;t.scopes.length&&"("!==y(t);)t.scopes.pop();t.scopes.pop(),t.nestedGenerators--,t.leavingExpr=!0}if(v(t)){if("end"==t.lastToken&&e.match(/^:/))return"operator";if(e.match(/^end/))return"number"}if((r=e.match(c,!1))&&t.scopes.push(r[0]),e.match(d,!1)&&t.scopes.pop(),e.match(/^::(?![:\$])/))return t.tokenize=w,t.tokenize(e,t);if(!n&&e.match(m)||e.match(/:([<>]:|<<=?|>>>?=?|->|\/\/|\.{2,3}|[\.\\%*+\-<>!\/^|&]=?|[~\?\$])/))return"builtin";if(e.match(i))return"operator";if(e.match(/^\.?\d/,!1)){var u=RegExp(/^im\b/),E=!1;if(e.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(E=!0),e.match(/^0x[0-9a-f_]+/i)&&(E=!0),e.match(/^0b[01_]+/i)&&(E=!0),e.match(/^0o[0-7_]+/i)&&(E=!0),e.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(E=!0),e.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(E=!0),E)return e.match(u),t.leavingExpr=!0,"number"}if(e.match(/^'/))return t.tokenize=k,t.tokenize(e,t);if(e.match(g))return t.tokenize=('"""'===(s=e.current()).substr(-3)?s='"""':'"'===s.substr(-1)&&(s='"'),function(e,t){if(e.eat("\\"))e.next();else{if(e.match(s))return t.tokenize=b,t.leavingExpr=!0,"string";e.eat(/[`"]/)}return e.eatWhile(/[^\\`"]/),"string"}),t.tokenize(e,t);if(e.match(h))return"meta";if(e.match(o))return null;if(e.match(f))return"keyword";if(e.match(p))return"builtin";var S=t.isDefinition||"function"==t.lastToken||"macro"==t.lastToken||"type"==t.lastToken||"struct"==t.lastToken||"immutable"==t.lastToken;return e.match(a)?S?"."===e.peek()?(t.isDefinition=!0,"variable"):(t.isDefinition=!1,"def"):e.match(/^({[^}]*})*\(/,!1)?(t.tokenize=_,t.tokenize(e,t)):(t.leavingExpr=!0,"variable"):(e.next(),"error")}function _(e,t){var n=e.match(/^(\(\s*)/);if(n&&(t.firstParenPos<0&&(t.firstParenPos=t.scopes.length),t.scopes.push("("),t.charsAdvanced+=n[1].length),"("==y(t)&&e.match(/^\)/)&&(t.scopes.pop(),t.charsAdvanced+=1,t.scopes.length<=t.firstParenPos)){var r=e.match(/^(\s*where\s+[^\s=]+)*\s*?=(?!=)/,!1);return e.backUp(t.charsAdvanced),t.firstParenPos=-1,t.charsAdvanced=0,t.tokenize=b,r?"def":"builtin"}if(e.match(/^$/g,!1)){for(e.backUp(t.charsAdvanced);t.scopes.length>t.firstParenPos;)t.scopes.pop();return t.firstParenPos=-1,t.charsAdvanced=0,t.tokenize=b,"builtin"}return t.charsAdvanced+=e.match(/^([^()]*)/)[1].length,t.tokenize(e,t)}function w(e,t){return e.match(/.*?(?=,|;|{|}|\(|\)|=|$|\s)/),e.match(/^{/)?t.nestedParameters++:e.match(/^}/)&&t.nestedParameters>0&&t.nestedParameters--,t.nestedParameters>0?e.match(/.*?(?={|})/)||e.next():0==t.nestedParameters&&(t.tokenize=b),"builtin"}function x(e,t){return e.match(/^#=/)&&t.nestedComments++,e.match(/.*?(?=(#=|=#))/)||e.skipToEnd(),e.match(/^=#/)&&(t.nestedComments--,0==t.nestedComments&&(t.tokenize=b)),"comment"}function k(e,t){var n,r=!1;if(e.match(s))r=!0;else if(n=e.match(/\\u([a-f0-9]{1,4})(?=')/i))((i=parseInt(n[1],16))<=55295||i>=57344)&&(r=!0,e.next());else if(n=e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var i;(i=parseInt(n[1],16))<=1114111&&(r=!0,e.next())}return r?(t.leavingExpr=!0,t.tokenize=b,"string"):(e.match(/^[^']+(?=')/)||e.skipToEnd(),e.match(/^'/)&&(t.tokenize=b),"error")}return{startState:function(){return{tokenize:b,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,charsAdvanced:0,firstParenPos:-1}},token:function(e,t){var n=t.tokenize(e,t),r=e.current();return r&&n&&(t.lastToken=r),n},indent:function(e,n){var r=0;return("]"===n||")"===n||/^end/.test(n)||/^else/.test(n)||/^catch/.test(n)||/^elseif/.test(n)||/^finally/.test(n))&&(r=-1),(e.scopes.length+r)*t.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#=",blockCommentEnd:"=#",lineComment:"#",closeBrackets:'()[]{}""',fold:"indent"}})),e.defineMIME("text/x-julia","julia")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("livescript",(function(){var e=function(e,t){var n=t.next||"start";if(n){t.next=t.next;var r=o[n];if(r.splice){for(var i=0;i<r.length;++i){var a=r[i];if(a.regex&&e.match(a.regex))return t.next=a.next||t.next,a.token}return e.next(),"error"}if(e.match(a=o[n]))return a.regex&&e.match(a.regex)?(t.next=a.next,a.token):(e.next(),"error")}return e.next(),"error"};return{startState:function(){return{next:"start",lastToken:{style:null,indent:0,content:""}}},token:function(t,n){for(;t.pos==t.start;)var r=e(t,n);return n.lastToken={style:r,indent:t.indentation(),content:t.current()},r.replace(/\./g," ")},indent:function(e){var t=e.lastToken.indent;return e.lastToken.content.match(n)&&(t+=2),t}}}));var t="(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*",n=RegExp("(?:[({[=:]|[-~]>|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+t+")?))\\s*$"),r="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",i={token:"string",regex:".+"},o={start:[{token:"comment.doc",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+r},{token:"constant.language",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+r},{token:"invalid.illegal",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+r},{token:"language.support.class",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+r},{token:"language.support.function",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+r},{token:"variable.language",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+r},{token:"identifier",regex:t+"\\s*:(?![:=])"},{token:"variable",regex:t},{token:"keyword.operator",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword.variable",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"keyword.operator",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"string.doc",regex:"'''",next:"qdoc"},{token:"string.doc",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"string.regex",regex:"//",next:"heregex"},{token:"string.regex",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"constant.numeric",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"lparen",regex:"[({[]"},{token:"rparen",regex:"[)}\\]]",next:"key"},{token:"keyword.operator",regex:"\\S+"},{token:"text",regex:"\\s+"}],heregex:[{token:"string.regex",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"string.regex",regex:"\\s*#{"},{token:"comment.regex",regex:"\\s+(?:#.*)?"},{token:"string.regex",regex:"\\S+"}],key:[{token:"keyword.operator",regex:"[.?@!]+"},{token:"identifier",regex:t,next:"start"},{token:"text",regex:"",next:"start"}],comment:[{token:"comment.doc",regex:".*?\\*/",next:"start"},{token:"comment.doc",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},i],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},i],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},i],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},i],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},i],words:[{token:"string",regex:".*?\\]>",next:"key"},i]};for(var a in o){var s=o[a];if(s.splice)for(var l=0,u=s.length;l<u;++l){var c=s[l];"string"==typeof c.regex&&(o[a][l].regex=new RegExp("^"+c.regex))}else"string"==typeof c.regex&&(o[a].regex=new RegExp("^"+s.regex))}e.defineMIME("text/x-livescript","livescript")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("lua",(function(e,t){var n=e.indentUnit;function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var i=r(t.specials||[]),o=r(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),a=r(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),s=r(["function","if","repeat","do","\\(","{"]),l=r(["end","until","\\)","}"]),u=new RegExp("^(?:"+["end","until","\\)","}","else","elseif"].join("|")+")","i");function c(e){for(var t=0;e.eat("=");)++t;return e.eat("["),t}function d(e,t){var n,r=e.next();return"-"==r&&e.eat("-")?e.eat("[")&&e.eat("[")?(t.cur=f(c(e),"comment"))(e,t):(e.skipToEnd(),"comment"):'"'==r||"'"==r?(t.cur=(n=r,function(e,t){for(var r,i=!1;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.cur=d),"string"}))(e,t):"["==r&&/[\[=]/.test(e.peek())?(t.cur=f(c(e),"string"))(e,t):/\d/.test(r)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(r)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function f(e,t){return function(n,r){for(var i,o=null;null!=(i=n.next());)if(null==o)"]"==i&&(o=0);else if("="==i)++o;else{if("]"==i&&o==e){r.cur=d;break}o=null}return t}}return{startState:function(e){return{basecol:e||0,indentDepth:0,cur:d}},token:function(e,t){if(e.eatSpace())return null;var n=t.cur(e,t),r=e.current();return"variable"==n&&(a.test(r)?n="keyword":o.test(r)?n="builtin":i.test(r)&&(n="variable-2")),"comment"!=n&&"string"!=n&&(s.test(r)?++t.indentDepth:l.test(r)&&--t.indentDepth),n},indent:function(e,t){var r=u.test(t);return e.basecol+n*(e.indentDepth-(r?1:0))},lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}})),e.defineMIME("text/x-lua","lua")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("mathematica",(function(e,t){var n="(?:\\.\\d+|\\d+\\.\\d*|\\d+)",r="(?:`(?:`?"+n+")?)",i=new RegExp("(?:(?:\\d+)(?:\\^\\^(?:\\.\\w+|\\w+\\.\\w*|\\w+)"+r+"?(?:\\*\\^[+-]?\\d+)?))"),o=new RegExp("(?:"+n+r+"?(?:\\*\\^[+-]?\\d+)?)"),a=new RegExp("(?:`?)(?:[a-zA-Z\\$][a-zA-Z0-9\\$]*)(?:`(?:[a-zA-Z\\$][a-zA-Z0-9\\$]*))*(?:`?)");function s(e,t){var n;return'"'===(n=e.next())?(t.tokenize=l,t.tokenize(e,t)):"("===n&&e.eat("*")?(t.commentLevel++,t.tokenize=u,t.tokenize(e,t)):(e.backUp(1),e.match(i,!0,!1)||e.match(o,!0,!1)?"number":e.match(/(?:In|Out)\[[0-9]*\]/,!0,!1)?"atom":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/,!0,!1)?"meta":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,!0,!1)?"string-2":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,!0,!1)||e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)?"variable-2":e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,!0,!1)?"variable-3":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,!0,!1)?"variable-2":e.match(a,!0,!1)?"keyword":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)?"operator":(e.next(),"error"))}function l(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=s),"string"}function u(e,t){for(var n,r;t.commentLevel>0&&null!=(r=e.next());)"("===n&&"*"===r&&t.commentLevel++,"*"===n&&")"===r&&t.commentLevel--,n=r;return t.commentLevel<=0&&(t.tokenize=s),"comment"}return{startState:function(){return{tokenize:s,commentLevel:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(*",blockCommentEnd:"*)"}})),e.defineMIME("text/x-mathematica",{name:"mathematica"})}(n(5))},function(e,t,n){!function(e){"use strict";var t=["From","Sender","Reply-To","To","Cc","Bcc","Message-ID","In-Reply-To","References","Resent-From","Resent-Sender","Resent-To","Resent-Cc","Resent-Bcc","Resent-Message-ID","Return-Path","Received"],n=["Date","Subject","Comments","Keywords","Resent-Date"];e.registerHelper("hintWords","mbox",t.concat(n));var r=/^[ \t]/,i=/^From /,o=new RegExp("^("+t.join("|")+"): "),a=new RegExp("^("+n.join("|")+"): "),s=/^[^:]+:/,l=/^[^ ]+@[^ ]+/,u=/^.*?(?=[^ ]+?@[^ ]+)/,c=/^<.*?>/,d=/^.*?(?=<.*>)/;function f(e,t){if(e.sol()){if(t.inSeparator=!1,t.inHeader&&e.match(r))return null;if(t.inHeader=!1,t.header=null,e.match(i))return t.inHeaders=!0,t.inSeparator=!0,"atom";var n,f=!1;return(n=e.match(a))||(f=!0)&&(n=e.match(o))?(t.inHeaders=!0,t.inHeader=!0,t.emailPermitted=f,t.header=n[1],"atom"):t.inHeaders&&(n=e.match(s))?(t.inHeader=!0,t.emailPermitted=!0,t.header=n[1],"atom"):(t.inHeaders=!1,e.skipToEnd(),null)}if(t.inSeparator)return e.match(l)?"link":(e.match(u)||e.skipToEnd(),"atom");if(t.inHeader){var p=function(e){return"Subject"===e?"header":"string"}(t.header);if(t.emailPermitted){if(e.match(c))return p+" link";if(e.match(d))return p}return e.skipToEnd(),p}return e.skipToEnd(),null}e.defineMode("mbox",(function(){return{startState:function(){return{inSeparator:!1,inHeader:!1,emailPermitted:!1,header:null,inHeaders:!1}},token:f,blankLine:function(e){e.inHeaders=e.inSeparator=e.inHeader=!1}}})),e.defineMIME("application/mbox","mbox")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMIME("text/mirc","mirc"),e.defineMode("mirc",(function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t=e("$! $$ $& $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"),n=e("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"),r=e("if elseif else and not or eq ne in ni for foreach while switch"),i=/[+\-*&%=<>!?^\/\|]/;function o(e,t,n){return t.tokenize=n,n(e,t)}function a(e,a){var u=a.beforeParams;a.beforeParams=!1;var c=e.next();if(/[\[\]{}\(\),\.]/.test(c))return"("==c&&u?a.inParams=!0:")"==c&&(a.inParams=!1),null;if(/\d/.test(c))return e.eatWhile(/[\w\.]/),"number";if("\\"==c)return e.eat("\\"),e.eat(/./),"number";if("/"==c&&e.eat("*"))return o(e,a,s);if(";"==c&&e.match(/ *\( *\(/))return o(e,a,l);if(";"!=c||a.inParams){if('"'==c)return e.eat(/"/),"keyword";if("$"==c)return e.eatWhile(/[$_a-z0-9A-Z\.:]/),t&&t.propertyIsEnumerable(e.current().toLowerCase())?"keyword":(a.beforeParams=!0,"builtin");if("%"==c)return e.eatWhile(/[^,\s()]/),a.beforeParams=!0,"string";if(i.test(c))return e.eatWhile(i),"operator";e.eatWhile(/[\w\$_{}]/);var d=e.current().toLowerCase();return n&&n.propertyIsEnumerable(d)?"keyword":r&&r.propertyIsEnumerable(d)?(a.beforeParams=!0,"keyword"):null}return e.skipToEnd(),"comment"}function s(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=a;break}r="*"==n}return"comment"}function l(e,t){for(var n,r=0;n=e.next();){if(";"==n&&2==r){t.tokenize=a;break}")"==n?r++:" "!=n&&(r=0)}return"meta"}return{startState:function(){return{tokenize:a,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}}))}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("mllike",(function(t,n){var r={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},i=n.extraWords||{};for(var o in i)i.hasOwnProperty(o)&&(r[o]=n.extraWords[o]);var a=[];for(var s in r)a.push(s);function l(e,t){var i=e.next();if('"'===i)return t.tokenize=u,t.tokenize(e,t);if("{"===i&&e.eat("|"))return t.longString=!0,t.tokenize=d,t.tokenize(e,t);if("("===i&&e.eat("*"))return t.commentLevel++,t.tokenize=c,t.tokenize(e,t);if("~"===i||"?"===i)return e.eatWhile(/\w/),"variable-2";if("`"===i)return e.eatWhile(/\w/),"quote";if("/"===i&&n.slashComments&&e.eat("/"))return e.skipToEnd(),"comment";if(/\d/.test(i))return"0"===i&&e.eat(/[bB]/)&&e.eatWhile(/[01]/),"0"===i&&e.eat(/[xX]/)&&e.eatWhile(/[0-9a-fA-F]/),"0"===i&&e.eat(/[oO]/)?e.eatWhile(/[0-7]/):(e.eatWhile(/[\d_]/),e.eat(".")&&e.eatWhile(/[\d]/),e.eat(/[eE]/)&&e.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(i))return"operator";if(/[\w\xa1-\uffff]/.test(i)){e.eatWhile(/[\w\xa1-\uffff]/);var o=e.current();return r.hasOwnProperty(o)?r[o]:"variable"}return null}function u(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=l),"string"}function c(e,t){for(var n,r;t.commentLevel>0&&null!=(r=e.next());)"("===n&&"*"===r&&t.commentLevel++,"*"===n&&")"===r&&t.commentLevel--,n=r;return t.commentLevel<=0&&(t.tokenize=l),"comment"}function d(e,t){for(var n,r;t.longString&&null!=(r=e.next());)"|"===n&&"}"===r&&(t.longString=!1),n=r;return t.longString||(t.tokenize=l),"string"}return e.registerHelper("hintWords","mllike",a),{startState:function(){return{tokenize:l,commentLevel:0,longString:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:n.slashComments?"//":null}})),e.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),e.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),e.defineMIME("text/x-sml",{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("modelica",(function(t,n){var r=t.indentUnit,i=n.keywords||{},o=n.builtin||{},a=n.atoms||{},s=/[;=\(:\),{}.*<>+\-\/^\[\]]/,l=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,u=/[0-9]/,c=/[_a-zA-Z]/;function d(e,t){return e.skipToEnd(),t.tokenize=null,"comment"}function f(e,t){for(var n,r=!1;n=e.next();){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return"comment"}function p(e,t){for(var n,r=!1;null!=(n=e.next());){if('"'==n&&!r){t.tokenize=null,t.sol=!1;break}r=!r&&"\\"==n}return"string"}function h(e,t){for(e.eatWhile(u);e.eat(u)||e.eat(c););var n=e.current();return!t.sol||"package"!=n&&"model"!=n&&"when"!=n&&"connector"!=n?t.sol&&"end"==n&&t.level>0&&t.level--:t.level++,t.tokenize=null,t.sol=!1,i.propertyIsEnumerable(n)?"keyword":o.propertyIsEnumerable(n)?"builtin":a.propertyIsEnumerable(n)?"atom":"variable"}function m(e,t){for(;e.eat(/[^']/););return t.tokenize=null,t.sol=!1,e.eat("'")?"variable":"error"}function g(e,t){return e.eatWhile(u),e.eat(".")&&e.eatWhile(u),(e.eat("e")||e.eat("E"))&&(e.eat("-")||e.eat("+"),e.eatWhile(u)),t.tokenize=null,t.sol=!1,"number"}return{startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(e,t){if(null!=t.tokenize)return t.tokenize(e,t);if(e.sol()&&(t.sol=!0),e.eatSpace())return t.tokenize=null,null;var n=e.next();if("/"==n&&e.eat("/"))t.tokenize=d;else if("/"==n&&e.eat("*"))t.tokenize=f;else{if(l.test(n+e.peek()))return e.next(),t.tokenize=null,"operator";if(s.test(n))return t.tokenize=null,"operator";if(c.test(n))t.tokenize=h;else if("'"==n&&e.peek()&&"'"!=e.peek())t.tokenize=m;else if('"'==n)t.tokenize=p;else{if(!u.test(n))return t.tokenize=null,"error";t.tokenize=g}}return t.tokenize(e,t)},indent:function(t,n){if(null!=t.tokenize)return e.Pass;var i=t.level;return/(algorithm)/.test(n)&&i--,/(equation)/.test(n)&&i--,/(initial algorithm)/.test(n)&&i--,/(initial equation)/.test(n)&&i--,/(end)/.test(n)&&i--,i>0?r*i:0},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),function(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.builtin),i(n.atoms),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}(["text/x-modelica"],{name:"modelica",keywords:t("algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within"),builtin:t("abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh"),atoms:t("Real Boolean Integer String")})}(n(5))},function(e,t,n){!function(e){"use strict";var t={mscgen:{keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]},xu:{keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]},msgenny:{keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}};function n(e){return new RegExp("\\b("+e.join("|")+")\\b","i")}function r(e){return new RegExp("("+e.join("|")+")","i")}function i(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function o(e){return{inComment:e.inComment,inString:e.inString,inAttributeList:e.inAttributeList,inScript:e.inScript}}e.defineMode("mscgen",(function(e,a){var s,l=t[a&&a.language||"mscgen"];return{startState:i,copyState:o,token:(s=l,function(e,t){if(e.match(r(s.brackets),!0,!0))return"bracket";if(!t.inComment){if(e.match(/\/\*[^\*\/]*/,!0,!0))return t.inComment=!0,"comment";if(e.match(r(s.singlecomment),!0,!0))return e.skipToEnd(),"comment"}if(t.inComment)return e.match(/[^\*\/]*\*\//,!0,!0)?t.inComment=!1:e.skipToEnd(),"comment";if(!t.inString&&e.match(/\"(\\\"|[^\"])*/,!0,!0))return t.inString=!0,"string";if(t.inString)return e.match(/[^\"]*\"/,!0,!0)?t.inString=!1:e.skipToEnd(),"string";if(s.keywords&&e.match(n(s.keywords),!0,!0))return"keyword";if(e.match(n(s.options),!0,!0))return"keyword";if(e.match(n(s.arcsWords),!0,!0))return"keyword";if(e.match(r(s.arcsOthers),!0,!0))return"keyword";if(s.operators&&e.match(r(s.operators),!0,!0))return"operator";if(s.constants&&e.match(r(s.constants),!0,!0))return"variable";if(!s.inAttributeList&&s.attributes&&e.match(/\[/,!0,!0))return s.inAttributeList=!0,"bracket";if(s.inAttributeList){if(null!==s.attributes&&e.match(n(s.attributes),!0,!0))return"attribute";if(e.match(/]/,!0,!0))return s.inAttributeList=!1,"bracket"}return e.next(),"base"}),lineComment:"#",blockCommentStart:"/*",blockCommentEnd:"*/"}})),e.defineMIME("text/x-mscgen","mscgen"),e.defineMIME("text/x-xu",{name:"mscgen",language:"xu"}),e.defineMIME("text/x-msgenny",{name:"mscgen",language:"msgenny"})}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("mumps",(function(){function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var t=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"),n=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"),r=new RegExp("^[\\.,:]"),i=new RegExp("[()]"),o=new RegExp("^[%A-Za-z][A-Za-z0-9]*"),a=e(["\\$ascii","\\$char","\\$data","\\$ecode","\\$estack","\\$etrap","\\$extract","\\$find","\\$fnumber","\\$get","\\$horolog","\\$io","\\$increment","\\$job","\\$justify","\\$length","\\$name","\\$next","\\$order","\\$piece","\\$qlength","\\$qsubscript","\\$query","\\$quit","\\$random","\\$reverse","\\$select","\\$stack","\\$test","\\$text","\\$translate","\\$view","\\$x","\\$y","\\$a","\\$c","\\$d","\\$e","\\$ec","\\$es","\\$et","\\$f","\\$fn","\\$g","\\$h","\\$i","\\$j","\\$l","\\$n","\\$na","\\$o","\\$p","\\$q","\\$ql","\\$qs","\\$r","\\$re","\\$s","\\$st","\\$t","\\$tr","\\$v","\\$z"]),s=e(["break","close","do","else","for","goto","halt","hang","if","job","kill","lock","merge","new","open","quit","read","set","tcommit","trollback","tstart","use","view","write","xecute","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","r","s","tc","tro","ts","u","v","w","x"]);return{startState:function(){return{label:!1,commandMode:0}},token:function(e,l){var u=function(e,l){e.sol()&&(l.label=!0,l.commandMode=0);var u=e.peek();return" "==u||"\t"==u?(l.label=!1,0==l.commandMode?l.commandMode=1:(l.commandMode<0||2==l.commandMode)&&(l.commandMode=0)):"."!=u&&l.commandMode>0&&(l.commandMode=":"==u?-1:2),"("!==u&&"\t"!==u||(l.label=!1),";"===u?(e.skipToEnd(),"comment"):e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)?"number":'"'==u?e.skipTo('"')?(e.next(),"string"):(e.skipToEnd(),"error"):e.match(n)||e.match(t)?"operator":e.match(r)?null:i.test(u)?(e.next(),"bracket"):l.commandMode>0&&e.match(s)?"variable-2":e.match(a)?"builtin":e.match(o)?"variable":"$"===u||"^"===u?(e.next(),"builtin"):"@"===u?(e.next(),"string-2"):/[\w%]/.test(u)?(e.eatWhile(/[\w%]/),"variable"):(e.next(),"error")}(e,l);return l.label?"tag":u}}})),e.defineMIME("text/x-mumps","mumps")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("nginx",(function(e){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var n,r=t("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),i=t("http mail events server types location upstream charset_map limit_except if geo map"),o=t("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),a=e.indentUnit;function s(e,t){return n=t,e}function l(e,t){e.eatWhile(/[\w\$_]/);var n=e.current();if(r.propertyIsEnumerable(n))return"keyword";if(i.propertyIsEnumerable(n))return"variable-2";if(o.propertyIsEnumerable(n))return"string-2";var a,d=e.next();return"@"==d?(e.eatWhile(/[\w\\\-]/),s("meta",e.current())):"/"==d&&e.eat("*")?(t.tokenize=u,u(e,t)):"<"==d&&e.eat("!")?(t.tokenize=c,c(e,t)):"="!=d?"~"!=d&&"|"!=d||!e.eat("=")?'"'==d||"'"==d?(t.tokenize=(a=d,function(e,t){for(var n,r=!1;null!=(n=e.next())&&(n!=a||r);)r=!r&&"\\"==n;return r||(t.tokenize=l),s("string","string")}),t.tokenize(e,t)):"#"==d?(e.skipToEnd(),s("comment","comment")):"!"==d?(e.match(/^\s*\w*/),s("keyword","important")):/\d/.test(d)?(e.eatWhile(/[\w.%]/),s("number","unit")):/[,.+>*\/]/.test(d)?s(null,"select-op"):/[;{}:\[\]]/.test(d)?s(null,d):(e.eatWhile(/[\w\\\-]/),s("variable","variable")):s(null,"compare"):void s(null,"compare")}function u(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=l;break}r="*"==n}return s("comment","comment")}function c(e,t){for(var n,r=0;null!=(n=e.next());){if(r>=2&&">"==n){t.tokenize=l;break}r="-"==n?r+1:0}return s("comment","comment")}return{startState:function(e){return{tokenize:l,baseIndent:e||0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;n=null;var r=t.tokenize(e,t),i=t.stack[t.stack.length-1];return"hash"==n&&"rule"==i?r="atom":"variable"==r&&("rule"==i?r="number":i&&"@media{"!=i||(r="tag")),"rule"==i&&/^[\{\};]$/.test(n)&&t.stack.pop(),"{"==n?"@media"==i?t.stack[t.stack.length-1]="@media{":t.stack.push("{"):"}"==n?t.stack.pop():"@media"==n?t.stack.push("@media"):"{"==i&&"comment"!=n&&t.stack.push("rule"),r},indent:function(e,t){var n=e.stack.length;return/^\}/.test(t)&&(n-="rule"==e.stack[e.stack.length-1]?2:1),e.baseIndent+n*a},electricChars:"}"}})),e.defineMIME("text/x-nginx-conf","nginx")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineSimpleMode("nsis",{start:[{regex:/(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,token:"number"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/`(?:[^\\`]|\\.)*`?/,token:"string"},{regex:/^\s*(?:\!(include|addincludedir|addplugindir|appendfile|cd|delfile|echo|error|execute|packhdr|pragma|finalize|getdllversion|gettlbversion|system|tempfile|warning|verbose|define|undef|insertmacro|macro|macroend|makensis|searchparse|searchreplace))\b/,token:"keyword"},{regex:/^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/,token:"keyword",indent:!0},{regex:/^\s*(?:\!(else|endif|macroend))\b/,token:"keyword",dedent:!0},{regex:/^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetLabelAddress|GetTempFileName|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/,token:"keyword"},{regex:/^\s*(?:Function|PageEx|Section(?:Group)?)\b/,token:"keyword",indent:!0},{regex:/^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/,token:"keyword",dedent:!0},{regex:/\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/,token:"atom"},{regex:/\b(?:admin|all|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|zlib)\b/,token:"builtin"},{regex:/\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/,token:"variable-2",indent:!0},{regex:/\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/,token:"variable-2",dedent:!0},{regex:/\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/,token:"variable-2",dedent:!0},{regex:/\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/,token:"variable-2",dedent:!0},{regex:/\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/,token:"variable",dedent:!0},{regex:/\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/,token:"variable-2",dedent:!0},{regex:/\$\{(?:RunningX64)\}/,token:"variable",dedent:!0},{regex:/\$\{(?:Disable|Enable)X64FSRedirection\}/,token:"variable-2",dedent:!0},{regex:/(#|;).*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/\$\w+/,token:"variable"},{regex:/\${[\w\.:-]+}/,token:"variable-2"},{regex:/\$\([\w\.:-]+\)/,token:"variable-3"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{electricInput:/^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:["#",";"]}}),e.defineMIME("text/x-nsis","nsis")}(n(5),n(199))},function(e,t,n){!function(e){"use strict";e.defineMode("ntriples",(function(){var e=0,t=1,n=2,r=3,i=4,o=5,a=6,s=7,l=8,u=9,c=10,d=11,f=12;function p(p,h){var m,g=p.location;m=g==e&&"<"==h?t:g==e&&"_"==h?n:g==r&&"<"==h?i:g==o&&"<"==h?a:g==o&&"_"==h?s:g==o&&'"'==h?l:g==t&&">"==h||g==n&&" "==h?r:g==i&&">"==h?o:g==a&&">"==h||g==s&&" "==h||g==l&&'"'==h||g==u&&" "==h||g==c&&">"==h?d:g==l&&"@"==h?u:g==l&&"^"==h?c:" "!=h||g!=e&&g!=r&&g!=o&&g!=d?g==d&&"."==h?e:f:g,p.location=m}return{startState:function(){return{location:e,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(e,t){var n=e.next();if("<"==n){p(t,n);var r="";return e.eatWhile((function(e){return"#"!=e&&">"!=e&&(r+=e,!0)})),t.uris.push(r),e.match("#",!1)||(e.next(),p(t,">")),"variable"}if("#"==n){var i="";return e.eatWhile((function(e){return">"!=e&&" "!=e&&(i+=e,!0)})),t.anchors.push(i),"variable-2"}if(">"==n)return p(t,">"),"variable";if("_"==n){p(t,n);var o="";return e.eatWhile((function(e){return" "!=e&&(o+=e,!0)})),t.bnodes.push(o),e.next(),p(t," "),"builtin"}if('"'==n)return p(t,n),e.eatWhile((function(e){return'"'!=e})),e.next(),"@"!=e.peek()&&"^"!=e.peek()&&p(t,'"'),"string";if("@"==n){p(t,"@");var a="";return e.eatWhile((function(e){return" "!=e&&(a+=e,!0)})),t.langs.push(a),e.next(),p(t," "),"string-2"}if("^"==n){e.next(),p(t,"^");var s="";return e.eatWhile((function(e){return">"!=e&&(s+=e,!0)})),t.types.push(s),e.next(),p(t,">"),"variable"}" "==n&&p(t,n),"."==n&&p(t,n)}}})),e.defineMIME("application/n-triples","ntriples"),e.defineMIME("application/n-quads","ntriples"),e.defineMIME("text/n-triples","ntriples")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("octave",(function(){function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var t=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),n=new RegExp("^[\\(\\[\\{\\},:=;\\.]"),r=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),i=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),o=new RegExp("^((>>=)|(<<=))"),a=new RegExp("^[\\]\\)]"),s=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*"),l=e(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),u=e(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function c(e,t){return e.sol()||"'"!==e.peek()?(t.tokenize=f,f(e,t)):(e.next(),t.tokenize=f,"operator")}function d(e,t){return e.match(/^.*%}/)?(t.tokenize=f,"comment"):(e.skipToEnd(),"comment")}function f(p,h){if(p.eatSpace())return null;if(p.match("%{"))return h.tokenize=d,p.skipToEnd(),"comment";if(p.match(/^[%#]/))return p.skipToEnd(),"comment";if(p.match(/^[0-9\.+-]/,!1)){if(p.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return p.tokenize=f,"number";if(p.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/))return"number";if(p.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(p.match(e(["nan","NaN","inf","Inf"])))return"number";var m=p.match(/^"(?:[^"]|"")*("|$)/)||p.match(/^'(?:[^']|'')*('|$)/);return m?m[1]?"string":"string error":p.match(u)?"keyword":p.match(l)?"builtin":p.match(s)?"variable":p.match(t)||p.match(r)?"operator":p.match(n)||p.match(i)||p.match(o)?null:p.match(a)?(h.tokenize=c,null):(p.next(),"error")}return{startState:function(){return{tokenize:f}},token:function(e,t){var n=t.tokenize(e,t);return"number"!==n&&"variable"!==n||(t.tokenize=c),n},lineComment:"%",fold:"indent"}})),e.defineMIME("text/x-octave","octave")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("oz",(function(e){function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n,r=/[\^@!\|<>#~\.\*\-\+\\/,=]/,i=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,o=/(:::)|(\.\.\.)|(=<:)|(>=:)/,a=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"],s=["end"],l=t(["true","false","nil","unit"]),u=t(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]),c=t(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]),d=t(a),f=t(s);function p(e,t){if(e.eatSpace())return null;if(e.match(/[{}]/))return"bracket";if(e.match(/(\[])/))return"keyword";if(e.match(o)||e.match(i))return"operator";if(e.match(l))return"atom";var n=e.match(c);if(n)return t.doInCurrentLine?t.doInCurrentLine=!1:t.currentIndent++,"proc"==n[0]||"fun"==n[0]?t.tokenize=g:"class"==n[0]?t.tokenize=h:"meth"==n[0]&&(t.tokenize=m),"keyword";if(e.match(d)||e.match(u))return"keyword";if(e.match(f))return t.currentIndent--,"keyword";var a,s=e.next();if('"'==s||"'"==s)return t.tokenize=(a=s,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==a&&!r){i=!0;break}r=!r&&"\\"==n}return!i&&r||(t.tokenize=p),"string"}),t.tokenize(e,t);if(/[~\d]/.test(s)){if("~"==s){if(!/^[0-9]/.test(e.peek()))return null;if("0"==e.next()&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}return"0"==s&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)?"number":null}return"%"==s?(e.skipToEnd(),"comment"):"/"==s&&e.eat("*")?(t.tokenize=v,v(e,t)):r.test(s)?"operator":(e.eatWhile(/\w/),"variable")}function h(e,t){return e.eatSpace()?null:(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=p,"variable-3")}function m(e,t){return e.eatSpace()?null:(e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=p,"def")}function g(e,t){return e.eatSpace()?null:!t.hasPassedFirstStage&&e.eat("{")?(t.hasPassedFirstStage=!0,"bracket"):t.hasPassedFirstStage?(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/),t.hasPassedFirstStage=!1,t.tokenize=p,"def"):(t.tokenize=p,null)}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=p;break}r="*"==n}return"comment"}return{startState:function(){return{tokenize:p,currentIndent:0,doInCurrentLine:!1,hasPassedFirstStage:!1}},token:function(e,t){return e.sol()&&(t.doInCurrentLine=0),t.tokenize(e,t)},indent:function(t,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(f)||r.match(d)||r.match(/(\[])/)?e.indentUnit*(t.currentIndent-1):t.currentIndent<0?0:t.currentIndent*e.indentUnit},fold:"indent",electricInput:(n=a.concat(s),new RegExp("[\\[\\]]|("+n.join("|")+")$")),lineComment:"%",blockCommentStart:"/*",blockCommentEnd:"*/"}})),e.defineMIME("text/x-oz","oz")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("pascal",(function(){var e=function(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}("absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"),t={null:!0},n=/[+\-*&%=<>!?|\/]/;function r(r,a){var s,l=r.next();if("#"==l&&a.startOfLine)return r.skipToEnd(),"meta";if('"'==l||"'"==l)return a.tokenize=(s=l,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==s&&!r){i=!0;break}r=!r&&"\\"==n}return!i&&r||(t.tokenize=null),"string"}),a.tokenize(r,a);if("("==l&&r.eat("*"))return a.tokenize=i,i(r,a);if("{"==l)return a.tokenize=o,o(r,a);if(/[\[\]\(\),;\:\.]/.test(l))return null;if(/\d/.test(l))return r.eatWhile(/[\w\.]/),"number";if("/"==l&&r.eat("/"))return r.skipToEnd(),"comment";if(n.test(l))return r.eatWhile(n),"operator";r.eatWhile(/[\w\$_]/);var u=r.current();return e.propertyIsEnumerable(u)?"keyword":t.propertyIsEnumerable(u)?"atom":"variable"}function i(e,t){for(var n,r=!1;n=e.next();){if(")"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function o(e,t){for(var n;n=e.next();)if("}"==n){t.tokenize=null;break}return"comment"}return{startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var n=(t.tokenize||r)(e,t);return n},electricChars:"{}"}})),e.defineMIME("text/x-pascal","pascal")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("pegjs",(function(t){var n=e.getMode(t,"javascript");return{startState:function(){return{inString:!1,stringType:null,inComment:!1,inCharacterClass:!1,braced:0,lhs:!0,localState:null}},token:function(t,r){if(t&&(r.inString||r.inComment||'"'!=t.peek()&&"'"!=t.peek()||(r.stringType=t.peek(),t.next(),r.inString=!0)),r.inString||r.inComment||!t.match(/^\/\*/)||(r.inComment=!0),r.inString){for(;r.inString&&!t.eol();)t.peek()===r.stringType?(t.next(),r.inString=!1):"\\"===t.peek()?(t.next(),t.next()):t.match(/^.[^\\\"\']*/);return r.lhs?"property string":"string"}if(r.inComment){for(;r.inComment&&!t.eol();)t.match(/\*\//)?r.inComment=!1:t.match(/^.[^\*]*/);return"comment"}if(r.inCharacterClass)for(;r.inCharacterClass&&!t.eol();)t.match(/^[^\]\\]+/)||t.match(/^\\./)||(r.inCharacterClass=!1);else{if("["===t.peek())return t.next(),r.inCharacterClass=!0,"bracket";if(t.match(/^\/\//))return t.skipToEnd(),"comment";if(r.braced||"{"===t.peek()){null===r.localState&&(r.localState=e.startState(n));var i=n.token(t,r.localState),o=t.current();if(!i)for(var a=0;a<o.length;a++)"{"===o[a]?r.braced++:"}"===o[a]&&r.braced--;return i}if(function(e){return e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)}(t))return":"===t.peek()?"variable":"variable-2";if(-1!=["[","]","(",")"].indexOf(t.peek()))return t.next(),"bracket";t.eatSpace()||t.next()}return null}}}),"javascript")}(n(5),n(198))},function(e,t,n){!function(e){"use strict";function t(e,t){return e.string.charAt(e.pos+(t||0))}function n(e,t){if(t){var n=e.pos-t;return e.string.substr(n>=0?n:0,t)}return e.string.substr(0,e.pos-1)}function r(e,t){var n=e.string.length,r=n-e.pos+1;return e.string.substr(e.pos,t&&t<n?t:r)}function i(e,t){var n,r=e.pos+t;r<=0?e.pos=0:r>=(n=e.string.length-1)?e.pos=n:e.pos=r}e.defineMode("perl",(function(){var e={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},o="string-2",a=/[goseximacplud]/;function s(e,t,n,r,i){return t.chain=null,t.style=null,t.tail=null,t.tokenize=function(e,t){for(var o,a=!1,s=0;o=e.next();){if(o===n[s]&&!a)return void 0!==n[++s]?(t.chain=n[s],t.style=r,t.tail=i):i&&e.eatWhile(i),t.tokenize=u,r;a=!a&&"\\"==o}return r},t.tokenize(e,t)}function l(e,t,n){return t.tokenize=function(e,t){return e.string==n&&(t.tokenize=u),e.skipToEnd(),"string"},t.tokenize(e,t)}function u(u,c){if(u.eatSpace())return null;if(c.chain)return s(u,c,c.chain,c.style,c.tail);if(u.match(/^\-?[\d\.]/,!1)&&u.match(/^(\-?(\d*\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F]+|0b[01]+|\d+(e[+-]?\d+)?)/))return"number";if(u.match(/^<<(?=\w)/))return u.eatWhile(/\w/),l(u,c,u.current().substr(2));if(u.sol()&&u.match(/^\=item(?!\w)/))return l(u,c,"=cut");var d=u.next();if('"'==d||"'"==d){if(n(u,3)=="<<"+d){var f=u.pos;u.eatWhile(/\w/);var p=u.current().substr(1);if(p&&u.eat(d))return l(u,c,p);u.pos=f}return s(u,c,[d],"string")}if(!("q"!=d||(h=t(u,-2))&&/\w/.test(h)))if("x"==(h=t(u,0))){if("("==(h=t(u,1)))return i(u,2),s(u,c,[")"],o,a);if("["==h)return i(u,2),s(u,c,["]"],o,a);if("{"==h)return i(u,2),s(u,c,["}"],o,a);if("<"==h)return i(u,2),s(u,c,[">"],o,a);if(/[\^'"!~\/]/.test(h))return i(u,1),s(u,c,[u.eat(h)],o,a)}else if("q"==h){if("("==(h=t(u,1)))return i(u,2),s(u,c,[")"],"string");if("["==h)return i(u,2),s(u,c,["]"],"string");if("{"==h)return i(u,2),s(u,c,["}"],"string");if("<"==h)return i(u,2),s(u,c,[">"],"string");if(/[\^'"!~\/]/.test(h))return i(u,1),s(u,c,[u.eat(h)],"string")}else if("w"==h){if("("==(h=t(u,1)))return i(u,2),s(u,c,[")"],"bracket");if("["==h)return i(u,2),s(u,c,["]"],"bracket");if("{"==h)return i(u,2),s(u,c,["}"],"bracket");if("<"==h)return i(u,2),s(u,c,[">"],"bracket");if(/[\^'"!~\/]/.test(h))return i(u,1),s(u,c,[u.eat(h)],"bracket")}else if("r"==h){if("("==(h=t(u,1)))return i(u,2),s(u,c,[")"],o,a);if("["==h)return i(u,2),s(u,c,["]"],o,a);if("{"==h)return i(u,2),s(u,c,["}"],o,a);if("<"==h)return i(u,2),s(u,c,[">"],o,a);if(/[\^'"!~\/]/.test(h))return i(u,1),s(u,c,[u.eat(h)],o,a)}else if(/[\^'"!~\/(\[{<]/.test(h)){if("("==h)return i(u,1),s(u,c,[")"],"string");if("["==h)return i(u,1),s(u,c,["]"],"string");if("{"==h)return i(u,1),s(u,c,["}"],"string");if("<"==h)return i(u,1),s(u,c,[">"],"string");if(/[\^'"!~\/]/.test(h))return s(u,c,[u.eat(h)],"string")}if("m"==d&&(!(h=t(u,-2))||!/\w/.test(h))&&(h=u.eat(/[(\[{<\^'"!~\/]/))){if(/[\^'"!~\/]/.test(h))return s(u,c,[h],o,a);if("("==h)return s(u,c,[")"],o,a);if("["==h)return s(u,c,["]"],o,a);if("{"==h)return s(u,c,["}"],o,a);if("<"==h)return s(u,c,[">"],o,a)}if("s"==d&&!(h=/[\/>\]})\w]/.test(t(u,-2)))&&(h=u.eat(/[(\[{<\^'"!~\/]/)))return s(u,c,"["==h?["]","]"]:"{"==h?["}","}"]:"<"==h?[">",">"]:"("==h?[")",")"]:[h,h],o,a);if("y"==d&&!(h=/[\/>\]})\w]/.test(t(u,-2)))&&(h=u.eat(/[(\[{<\^'"!~\/]/)))return s(u,c,"["==h?["]","]"]:"{"==h?["}","}"]:"<"==h?[">",">"]:"("==h?[")",")"]:[h,h],o,a);if("t"==d&&!(h=/[\/>\]})\w]/.test(t(u,-2)))&&(h=u.eat("r"))&&(h=u.eat(/[(\[{<\^'"!~\/]/)))return s(u,c,"["==h?["]","]"]:"{"==h?["}","}"]:"<"==h?[">",">"]:"("==h?[")",")"]:[h,h],o,a);if("`"==d)return s(u,c,[d],"variable-2");if("/"==d)return/~\s*$/.test(n(u))?s(u,c,[d],o,a):"operator";if("$"==d){if(f=u.pos,u.eatWhile(/\d/)||u.eat("{")&&u.eatWhile(/\d/)&&u.eat("}"))return"variable-2";u.pos=f}if(/[$@%]/.test(d)){if(f=u.pos,u.eat("^")&&u.eat(/[A-Z]/)||!/[@$%&]/.test(t(u,-2))&&u.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var h=u.current();if(e[h])return"variable-2"}u.pos=f}if(/[$@%&]/.test(d)&&(u.eatWhile(/[\w$\[\]]/)||u.eat("{")&&u.eatWhile(/[\w$\[\]]/)&&u.eat("}")))return h=u.current(),e[h]?"variable-2":"variable";if("#"==d&&"$"!=t(u,-2))return u.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(d)){if(f=u.pos,u.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),e[u.current()])return"operator";u.pos=f}if("_"==d&&1==u.pos){if("_END__"==r(u,6))return s(u,c,["\0"],"comment");if("_DATA__"==r(u,7))return s(u,c,["\0"],"variable-2");if("_C__"==r(u,7))return s(u,c,["\0"],"string")}if(/\w/.test(d)){if(f=u.pos,"{"==t(u,-2)&&("}"==t(u,0)||u.eatWhile(/\w/)&&"}"==t(u,0)))return"string";u.pos=f}if(/[A-Z]/.test(d)){var m=t(u,-2);if(f=u.pos,u.eatWhile(/[A-Z_]/),!/[\da-z]/.test(t(u,0)))return(h=e[u.current()])?(h[1]&&(h=h[0]),":"!=m?1==h?"keyword":2==h?"def":3==h?"atom":4==h?"operator":5==h?"variable-2":"meta":"meta"):"meta";u.pos=f}return/[a-zA-Z_]/.test(d)?(m=t(u,-2),u.eatWhile(/\w/),(h=e[u.current()])?(h[1]&&(h=h[0]),":"!=m?1==h?"keyword":2==h?"def":3==h?"atom":4==h?"operator":5==h?"variable-2":"meta":"meta"):"meta"):null}return{startState:function(){return{tokenize:u,chain:null,style:null,tail:null}},token:function(e,t){return(t.tokenize||u)(e,t)},lineComment:"#"}})),e.registerHelper("wordChars","perl",/[\w$]/),e.defineMIME("text/x-perl","perl")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function n(e,t,i){return 0==e.length?r(t):function(o,a){for(var s=e[0],l=0;l<s.length;l++)if(o.match(s[l][0]))return a.tokenize=n(e.slice(1),t),s[l][1];return a.tokenize=r(t,i),"string"}}function r(e,t){return function(r,i){return function(e,t,r,i){if(!1!==i&&e.match("${",!1)||e.match("{$",!1))return t.tokenize=null,"string";if(!1!==i&&e.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return e.match("[",!1)&&(t.tokenize=n([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],r,i)),e.match(/\-\>\w/,!1)&&(t.tokenize=n([[["->",null]],[[/[\w]+/,"variable"]]],r,i)),"variable-2";for(var o=!1;!e.eol()&&(o||!1===i||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!o&&e.match(r)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}o="\\"==e.next()&&!o}return"string"}(r,i,e,t)}}var i="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",o="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",a="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";e.registerHelper("hintWords","php",[i,o,a].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var s={name:"clike",helperType:"php",keywords:t(i),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class function interface namespace trait"),atoms:t(o),builtin:t(a),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var n;if(n=e.match(/<<\s*/)){var i=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var o=e.current().slice(n[0].length+(i?2:1));if(i&&e.eat(i),o)return(t.tokStack||(t.tokStack=[])).push(o,0),t.tokenize=r(o,"'"!=i),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=r('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&t.tokStack.length>0&&!--t.tokStack[t.tokStack.length-1]&&(t.tokenize=r(t.tokStack[t.tokStack.length-2])),!1}}};e.defineMode("php",(function(t,n){var r=e.getMode(t,n&&n.htmlMode||"text/html"),i=e.getMode(t,s);return{startState:function(){var t=e.startState(r),o=n.startOpen?e.startState(i):null;return{html:t,php:o,curMode:n.startOpen?i:r,curState:n.startOpen?o:t,pending:null}},copyState:function(t){var n,o=t.html,a=e.copyState(r,o),s=t.php,l=s&&e.copyState(i,s);return n=t.curMode==r?a:l,{html:a,php:l,curMode:t.curMode,curState:n,pending:t.pending}},token:function(t,n){var o=n.curMode==i;if(t.sol()&&n.pending&&'"'!=n.pending&&"'"!=n.pending&&(n.pending=null),o)return o&&null==n.php.tokenize&&t.match("?>")?(n.curMode=r,n.curState=n.html,n.php.context.prev||(n.php=null),"meta"):i.token(t,n.curState);if(t.match(/^<\?\w*/))return n.curMode=i,n.php||(n.php=e.startState(i,r.indent(n.html,"",""))),n.curState=n.php,"meta";if('"'==n.pending||"'"==n.pending){for(;!t.eol()&&t.next()!=n.pending;);var a="string"}else n.pending&&t.pos<n.pending.end?(t.pos=n.pending.end,a=n.pending.style):a=r.token(t,n.curState);n.pending&&(n.pending=null);var s,l=t.current(),u=l.search(/<\?/);return-1!=u&&("string"==a&&(s=l.match(/[\'\"]$/))&&!/\?>/.test(l)?n.pending=s[0]:n.pending={end:t.pos,style:a},t.backUp(l.length-u)),a},indent:function(e,t,n){return e.curMode!=i&&/^\s*<\//.test(t)||e.curMode==i&&/^\?>/.test(t)?r.indent(e.html,t,n):e.curMode.indent(e.curState,t,n)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}}),"htmlmixed","clike"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",s)}(n(5),n(126),n(401))},function(e,t,n){!function(e){"use strict";e.defineMode("pig",(function(e,t){var n=t.keywords,r=t.builtins,i=t.types,o=t.multiLineStrings,a=/[*+\-%<>=&?:\/!|]/;function s(e,t,n){return t.tokenize=n,n(e,t)}function l(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=u;break}r="*"==n}return"comment"}function u(e,t){var c,d=e.next();return'"'==d||"'"==d?s(e,t,(c=d,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==c&&!r){i=!0;break}r=!r&&"\\"==n}return(i||!r&&!o)&&(t.tokenize=u),"error"})):/[\[\]{}\(\),;\.]/.test(d)?null:/\d/.test(d)?(e.eatWhile(/[\w\.]/),"number"):"/"==d?e.eat("*")?s(e,t,l):(e.eatWhile(a),"operator"):"-"==d?e.eat("-")?(e.skipToEnd(),"comment"):(e.eatWhile(a),"operator"):a.test(d)?(e.eatWhile(a),"operator"):(e.eatWhile(/[\w\$_]/),n&&n.propertyIsEnumerable(e.current().toUpperCase())&&!e.eat(")")&&!e.eat(".")?"keyword":r&&r.propertyIsEnumerable(e.current().toUpperCase())?"variable-2":i&&i.propertyIsEnumerable(e.current().toUpperCase())?"variable-3":"variable")}return{startState:function(){return{tokenize:u,startOfLine:!0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}})),function(){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var n="ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ",r="VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP",i="BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ";e.defineMIME("text/x-pig",{name:"pig",builtins:t(n),keywords:t(r),types:t(i)}),e.registerHelper("hintWords","pig",(n+i+r).split(" "))}()}(n(5))},function(e,t,n){!function(e){"use strict";var t;(t=n(5)).defineMode("powershell",(function(){function e(e,t){for(var n=void 0!==(t=t||{}).prefix?t.prefix:"^",r=void 0!==t.suffix?t.suffix:"\\b",i=0;i<e.length;i++)e[i]instanceof RegExp?e[i]=e[i].source:e[i]=e[i].replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(n+"("+e.join("|")+")"+r,"i")}var t=/[\w\-:]/,n=e([/begin|break|catch|continue|data|default|do|dynamicparam/,/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,/param|process|return|switch|throw|trap|try|until|where|while/],{suffix:"(?=[^A-Za-z\\d\\-_]|$)"}),r=e(["f",/b?not/,/[ic]?split/,"join",/is(not)?/,"as",/[ic]?(eq|ne|[gl][te])/,/[ic]?(not)?(like|match|contains)/,/[ic]?replace/,/b?(and|or|xor)/],{prefix:"-"}),i=e([r,/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/],{suffix:""}),o=e([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),a=e([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),s={keyword:n,number:/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,operator:i,builtin:e([/[A-Z]:|%|\?/i,o,a],{suffix:"(?=[^A-Za-z\\d\\-_]|$)"}),punctuation:/[\[\]{},;`\\\.]|@[({]/,identifier:/^[A-Za-z\_][A-Za-z\-\_\d]*\b/};function l(e,n){var r=n.returnStack[n.returnStack.length-1];if(r&&r.shouldReturnFrom(n))return n.tokenize=r.tokenize,n.returnStack.pop(),n.tokenize(e,n);if(e.eatSpace())return null;if(e.eat("("))return n.bracketNesting+=1,"punctuation";if(e.eat(")"))return n.bracketNesting-=1,"punctuation";for(var i in s)if(e.match(s[i]))return i;var o=e.next();if("'"===o)return function(e,t){for(var n;null!=(n=e.peek());)if(e.next(),"'"===n&&!e.eat("'"))return t.tokenize=l,"string";return"error"}(e,n);if("$"===o)return m(e,n);if('"'===o)return u(e,n);if("<"===o&&e.eat("#"))return n.tokenize=h,h(e,n);if("#"===o)return e.skipToEnd(),"comment";if("@"===o){var a=e.eat(/["']/);if(a&&e.eol())return n.tokenize=v,n.startQuote=a[0],v(e,n);if(e.eol())return"error";if(e.peek().match(/[({]/))return"punctuation";if(e.peek().match(t))return m(e,n)}return"error"}function u(e,t){for(var n;null!=(n=e.peek());){if("$"===n)return t.tokenize=c,"string";if(e.next(),"`"!==n){if('"'===n&&!e.eat('"'))return t.tokenize=l,"string"}else e.next()}return"error"}function c(e,t){return p(e,t,u)}function d(e,t){return t.tokenize=v,t.startQuote='"',v(e,t)}function f(e,t){return p(e,t,d)}function p(e,t,n){if(e.match("$(")){var r=t.bracketNesting;return t.returnStack.push({shouldReturnFrom:function(e){return e.bracketNesting===r},tokenize:n}),t.tokenize=l,t.bracketNesting+=1,"punctuation"}return e.next(),t.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:n}),t.tokenize=m,t.tokenize(e,t)}function h(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&">"==n){t.tokenize=l;break}r="#"===n}return"comment"}function m(e,n){var r=e.peek();return e.eat("{")?(n.tokenize=g,g(e,n)):null!=r&&r.match(t)?(e.eatWhile(t),n.tokenize=l,"variable-2"):(n.tokenize=l,"error")}function g(e,t){for(var n;null!=(n=e.next());)if("}"===n){t.tokenize=l;break}return"variable-2"}function v(e,t){var n=t.startQuote;if(e.sol()&&e.match(new RegExp(n+"@")))t.tokenize=l;else if('"'===n)for(;!e.eol();){var r=e.peek();if("$"===r)return t.tokenize=f,"string";e.next(),"`"===r&&e.next()}else e.skipToEnd();return"string"}return{startState:function(){return{returnStack:[],bracketNesting:0,tokenize:l}},token:function(e,t){return t.tokenize(e,t)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"}})),t.defineMIME("application/x-powershell","powershell")}()},function(e,t,n){!function(e){"use strict";e.defineMode("properties",(function(){return{token:function(e,t){var n=e.sol()||t.afterSection,r=e.eol();if(t.afterSection=!1,n&&(t.nextMultiline?(t.inMultiline=!0,t.nextMultiline=!1):t.position="def"),r&&!t.nextMultiline&&(t.inMultiline=!1,t.position="def"),n)for(;e.eatSpace(););var i=e.next();return!n||"#"!==i&&"!"!==i&&";"!==i?n&&"["===i?(t.afterSection=!0,e.skipTo("]"),e.eat("]"),"header"):"="===i||":"===i?(t.position="quote",null):("\\"===i&&"quote"===t.position&&e.eol()&&(t.nextMultiline=!0),t.position):(t.position="comment",e.skipToEnd(),"comment")},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}})),e.defineMIME("text/x-properties","properties"),e.defineMIME("text/x-ini","properties")}(n(5))},function(e,t,n){!function(e){"use strict";var t=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"],n=new RegExp("^(("+t.join(")|(")+"))\\b","i");e.registerHelper("hintWords","protobuf",t);var r=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");function i(e){if(e.eatSpace())return null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(n)?"keyword":e.match(r)?"variable":(e.next(),null)}e.defineMode("protobuf",(function(){return{token:i,fold:"brace"}})),e.defineMIME("text/x-protobuf","protobuf")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("puppet",(function(){var e={},t=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function n(t,n){for(var r=n.split(" "),i=0;i<r.length;i++)e[r[i]]=t}function r(e,t){for(var n,r,i=!1;!e.eol()&&(n=e.next())!=t.pending;){if("$"===n&&"\\"!=r&&'"'==t.pending){i=!0;break}r=n}return i&&e.backUp(1),n==t.pending?t.continueString=!1:t.continueString=!0,"string"}return n("keyword","class define site node include import inherits"),n("keyword","case if else in and elsif default or"),n("atom","false true running present absent file directory undef"),n("builtin","action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool"),{startState:function(){var e={inDefinition:!1,inInclude:!1,continueString:!1,pending:!1};return e},token:function(n,i){return n.eatSpace()?null:function(n,i){var o=n.match(/[\w]+/,!1),a=n.match(/(\s+)?\w+\s+=>.*/,!1),s=n.match(/(\s+)?[\w:_]+(\s+)?{/,!1),l=n.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),u=n.next();if("$"===u)return n.match(t)?i.continueString?"variable-2":"variable":"error";if(i.continueString)return n.backUp(1),r(n,i);if(i.inDefinition){if(n.match(/(\s+)?[\w:_]+(\s+)?/))return"def";n.match(/\s+{/),i.inDefinition=!1}return i.inInclude?(n.match(/(\s+)?\S+(\s+)?/),i.inInclude=!1,"def"):n.match(/(\s+)?\w+\(/)?(n.backUp(1),"def"):a?(n.match(/(\s+)?\w+/),"tag"):o&&e.hasOwnProperty(o)?(n.backUp(1),n.match(/[\w]+/),n.match(/\s+\S+\s+{/,!1)&&(i.inDefinition=!0),"include"==o&&(i.inInclude=!0),e[o]):/(^|\s+)[A-Z][\w:_]+/.test(o)?(n.backUp(1),n.match(/(^|\s+)[A-Z][\w:_]+/),"def"):s?(n.match(/(\s+)?[\w:_]+/),"def"):l?(n.match(/(\s+)?[@]{1,2}/),"special"):"#"==u?(n.skipToEnd(),"comment"):"'"==u||'"'==u?(i.pending=u,r(n,i)):"{"==u||"}"==u?"bracket":"/"==u?(n.match(/.*?\//),"variable-3"):u.match(/[0-9]/)?(n.eatWhile(/[0-9]+/),"number"):"="==u?(">"==n.peek()&&n.next(),"operator"):(n.eatWhile(/[\w-]/),null)}(n,i)}}})),e.defineMIME("text/x-puppet","puppet")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("q",(function(e){var t,n=e.indentUnit,r=new RegExp("^("+["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"].join("|")+")$"),i=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function o(e,n){var s=e.sol(),c=e.next();if(t=null,s){if("/"==c)return(n.tokenize=a)(e,n);if("\\"==c)return e.eol()||/\s/.test(e.peek())?(e.skipToEnd(),/^\\\s*$/.test(e.current())?(n.tokenize=l)(e):n.tokenize=o,"comment"):(n.tokenize=o,"builtin")}if(/\s/.test(c))return"/"==e.peek()?(e.skipToEnd(),"comment"):"whitespace";if('"'==c)return(n.tokenize=u)(e,n);if("`"==c)return e.eatWhile(/[A-Za-z\d_:\/.]/),"symbol";if("."==c&&/\d/.test(e.peek())||/\d/.test(c)){var d=null;return e.backUp(1),e.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||e.match(/^\d+[ptuv]{1}/)?d="temporal":(e.match(/^0[NwW]{1}/)||e.match(/^0x[\da-fA-F]*/)||e.match(/^[01]+[b]{1}/)||e.match(/^\d+[chijn]{1}/)||e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(d="number"),!d||(c=e.peek())&&!i.test(c)?(e.next(),"error"):d}return/[A-Za-z]|\./.test(c)?(e.eatWhile(/[A-Za-z._\d]/),r.test(e.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(c)||/[{}\(\[\]\)]/.test(c)?null:"error"}function a(e,t){return e.skipToEnd(),/\/\s*$/.test(e.current())?(t.tokenize=s)(e,t):t.tokenize=o,"comment"}function s(e,t){var n=e.sol()&&"\\"==e.peek();return e.skipToEnd(),n&&/^\\\s*$/.test(e.current())&&(t.tokenize=o),"comment"}function l(e){return e.skipToEnd(),"comment"}function u(e,t){for(var n,r=!1,i=!1;n=e.next();){if('"'==n&&!r){i=!0;break}r=!r&&"\\"==n}return i&&(t.tokenize=o),"string"}function c(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function d(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:o,context:null,indent:0,col:0}},token:function(e,n){e.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=e.indentation());var r=n.tokenize(e,n);if("comment"!=r&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==t)c(n,")",e.column());else if("["==t)c(n,"]",e.column());else if("{"==t)c(n,"}",e.column());else if(/[\]\}\)]/.test(t)){for(;n.context&&"pattern"==n.context.type;)d(n);n.context&&t==n.context.type&&d(n)}else"."==t&&n.context&&"pattern"==n.context.type?d(n):/atom|string|variable/.test(r)&&n.context&&(/[\}\]]/.test(n.context.type)?c(n,"pattern",e.column()):"pattern"!=n.context.type||n.context.align||(n.context.align=!0,n.context.col=e.column()));return r},indent:function(e,t){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n):0}}})),e.defineMIME("text/x-q","q")}(n(5))},function(e,t,n){!function(e){"use strict";e.registerHelper("wordChars","r",/[\w.]/),e.defineMode("r",(function(t){function n(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}var r=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],i=["list","quote","bquote","eval","return","call","parse","deparse"],o=["if","else","repeat","while","function","for","in","next","break"];e.registerHelper("hintWords","r",r.concat(i,o));var a,s=n(r),l=n(i),u=n(o),c=n(["if","else","repeat","while","function","for"]),d=/[+\-*\/^<>=!&|~$:]/;function f(e,t){a=null;var n,r=e.next();if("#"==r)return e.skipToEnd(),"comment";if("0"==r&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if("."==r&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(r))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if("'"==r||'"'==r)return t.tokenize=(n=r,function(e,t){if(e.eat("\\")){var r=e.next();return"x"==r?e.match(/^[a-f0-9]{2}/i):("u"==r||"U"==r)&&e.eat("{")&&e.skipTo("}")?e.next():"u"==r?e.match(/^[a-f0-9]{4}/i):"U"==r?e.match(/^[a-f0-9]{8}/i):/[0-7]/.test(r)&&e.match(/^[0-7]{1,2}/),"string-2"}for(var i;null!=(i=e.next());){if(i==n){t.tokenize=f;break}if("\\"==i){e.backUp(1);break}}return"string"}),"string";if("`"==r)return e.match(/[^`]+`/),"variable-3";if("."==r&&e.match(/.[.\d]+/))return"keyword";if(/[\w\.]/.test(r)&&"_"!=r){e.eatWhile(/[\w\.]/);var i=e.current();return s.propertyIsEnumerable(i)?"atom":u.propertyIsEnumerable(i)?(c.propertyIsEnumerable(i)&&!e.match(/\s*if(\s+|$)/,!1)&&(a="block"),"keyword"):l.propertyIsEnumerable(i)?"builtin":"variable"}return"%"==r?(e.skipTo("%")&&e.next(),"operator variable-2"):"<"==r&&e.eat("-")||"<"==r&&e.match("<-")||"-"==r&&e.match(/>>?/)?"operator arrow":"="==r&&t.ctx.argList?"arg-is":d.test(r)?"$"==r?"operator dollar":(e.eatWhile(d),"operator"):/[\(\){}\[\];]/.test(r)?(a=r,";"==r?"semi":null):null}function p(e,t,n){e.ctx={type:t,indent:e.indent,flags:0,column:n.column(),prev:e.ctx}}function h(e,t){var n=e.ctx;e.ctx={type:n.type,indent:n.indent,flags:n.flags|t,column:n.column,prev:n.prev}}function m(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}return{startState:function(){return{tokenize:f,ctx:{type:"top",indent:-t.indentUnit,flags:2},indent:0,afterIdent:!1}},token:function(e,t){if(e.sol()&&(0==(3&t.ctx.flags)&&(t.ctx.flags|=2),4&t.ctx.flags&&m(t),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"!=n&&0==(2&t.ctx.flags)&&h(t,1),";"!=a&&"{"!=a&&"}"!=a||"block"!=t.ctx.type||m(t),"{"==a?p(t,"}",e):"("==a?(p(t,")",e),t.afterIdent&&(t.ctx.argList=!0)):"["==a?p(t,"]",e):"block"==a?p(t,"block",e):a==t.ctx.type?m(t):"block"==t.ctx.type&&"comment"!=n&&h(t,4),t.afterIdent="variable"==n||"keyword"==n,n},indent:function(e,n){if(e.tokenize!=f)return 0;var r=n&&n.charAt(0),i=e.ctx,o=r==i.type;return 4&i.flags&&(i=i.prev),"block"==i.type?i.indent+("{"==r?0:t.indentUnit):1&i.flags?i.column+(o?0:1):i.indent+(o?0:t.indentUnit)},lineComment:"#"}})),e.defineMIME("text/x-rsrc","r")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("rpm-changes",(function(){var e=/^-+$/,t=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,n=/^[\w+.-]+@[\w.-]+/;return{token:function(r){if(r.sol()){if(r.match(e))return"tag";if(r.match(t))return"tag"}return r.match(n)?"string":(r.next(),null)}}})),e.defineMIME("text/x-rpm-changes","rpm-changes"),e.defineMode("rpm-spec",(function(){var e=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,t=/^[a-zA-Z0-9()]+:/,n=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,r=/^%(ifnarch|ifarch|if)/,i=/^%(else|endif)/,o=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;return{startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(a,s){if("#"==a.peek())return a.skipToEnd(),"comment";if(a.sol()){if(a.match(t))return"header";if(a.match(n))return"atom"}if(a.match(/^\$\w+/))return"def";if(a.match(/^\$\{\w+\}/))return"def";if(a.match(i))return"keyword";if(a.match(r))return s.controlFlow=!0,"keyword";if(s.controlFlow){if(a.match(o))return"operator";if(a.match(/^(\d+)/))return"number";a.eol()&&(s.controlFlow=!1)}if(a.match(e))return a.eol()&&(s.controlFlow=!1),"number";if(a.match(/^%[\w]+/))return a.match(/^\(/)&&(s.macroParameters=!0),"keyword";if(s.macroParameters){if(a.match(/^\d+/))return"number";if(a.match(/^\)/))return s.macroParameters=!1,"keyword"}return a.match(/^%\{\??[\w \-\:\!]+\}/)?(a.eol()&&(s.controlFlow=!1),"def"):(a.next(),null)}}})),e.defineMIME("text/x-rpm-spec","rpm-spec")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("rst",(function(t,n){var r=/^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/,i=/^\*[^\*\s](?:[^\*]*[^\*\s])?\*/,o=/^``[^`\s](?:[^`]*[^`\s])``/,a=/^(?:[\d]+(?:[\.,]\d+)*)/,s=/^(?:\s\+[\d]+(?:[\.,]\d+)*)/,l=/^(?:\s\-[\d]+(?:[\.,]\d+)*)/,u=new RegExp("^[Hh][Tt][Tt][Pp][Ss]?://(?:[\\d\\w.-]+)\\.(?:\\w{2,6})(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*"),c={token:function(e){if(e.match(r)&&e.match(/\W+|$/,!1))return"strong";if(e.match(i)&&e.match(/\W+|$/,!1))return"em";if(e.match(o)&&e.match(/\W+|$/,!1))return"string-2";if(e.match(a))return"number";if(e.match(s))return"positive";if(e.match(l))return"negative";if(e.match(u))return"link";for(;!(null==e.next()||e.match(r,!1)||e.match(i,!1)||e.match(o,!1)||e.match(a,!1)||e.match(s,!1)||e.match(l,!1)||e.match(u,!1)););return null}},d=e.getMode(t,n.backdrop||"rst-base");return e.overlayMode(d,c,!0)}),"python","stex"),e.defineMode("rst-base",(function(t){function n(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,(function(e,n){return void 0!==t[n]?t[n]:e}))}var r=e.getMode(t,"python"),i=e.getMode(t,"stex"),o="(?:\\s*|\\W|$)",a=new RegExp(n("^{0}",o)),s="(?:[^\\W\\d_](?:[\\w!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)",l=new RegExp(n("^{0}",s)),u=n("(?:{0}|`{1}`)",s,"(?:[^\\W\\d_](?:[\\w\\s!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)"),c="(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)",d="(?:[^\\`]+)",f=new RegExp(n("^{0}",d)),p=new RegExp("^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"),h=new RegExp(n("^\\.\\.{0}","\\s+")),m=new RegExp(n("^_{0}:{1}|^__:{1}",u,o)),g=new RegExp(n("^{0}::{1}",u,o)),v=new RegExp(n("^\\|{0}\\|{1}{2}::{3}",c,"\\s+",u,o)),y=new RegExp(n("^\\[(?:\\d+|#{0}?|\\*)]{1}",u,o)),b=new RegExp(n("^\\[{0}\\]{1}",u,o)),_=new RegExp(n("^\\|{0}\\|",c)),w=new RegExp(n("^\\[(?:\\d+|#{0}?|\\*)]_",u)),x=new RegExp(n("^\\[{0}\\]_",u)),k=new RegExp(n("^{0}__?",u)),E=new RegExp(n("^`{0}`_",d)),S=new RegExp(n("^:{0}:`{1}`{2}",s,d,o)),O=new RegExp(n("^`{1}`:{0}:{2}",s,d,o)),T=new RegExp(n("^:{0}:{1}",s,o)),C=new RegExp(n("^{0}",u)),A=new RegExp(n("^::{0}",o)),P=new RegExp(n("^\\|{0}\\|",c)),R=new RegExp(n("^{0}","\\s+")),M=new RegExp(n("^{0}",u)),I=new RegExp(n("^::{0}",o)),j=new RegExp("^_"),D=new RegExp(n("^{0}|_",u)),L=new RegExp(n("^:{0}",o)),N=new RegExp("^::\\s*$"),F=new RegExp("^\\s+(?:>>>|In \\[\\d+\\]:)\\s");function B(t,n){var o=null;if(t.sol()&&t.match(F,!1))$(n,W,{mode:r,local:e.startState(r)});else if(t.sol()&&t.match(h))$(n,z),o="meta";else if(t.sol()&&t.match(p))$(n,B),o="header";else if(K(n)==S||t.match(S,!1))switch(G(n)){case 0:$(n,B,V(S,1)),t.match(/^:/),o="meta";break;case 1:$(n,B,V(S,2)),t.match(l),o="keyword",t.current().match(/^(?:math|latex)/)&&(n.tmp_stex=!0);break;case 2:$(n,B,V(S,3)),t.match(/^:`/),o="meta";break;case 3:if(n.tmp_stex&&(n.tmp_stex=void 0,n.tmp={mode:i,local:e.startState(i)}),n.tmp){if("`"==t.peek()){$(n,B,V(S,4)),n.tmp=void 0;break}o=n.tmp.mode.token(t,n.tmp.local);break}$(n,B,V(S,4)),t.match(f),o="string";break;case 4:$(n,B,V(S,5)),t.match(/^`/),o="meta";break;case 5:$(n,B,V(S,6)),t.match(a);break;default:$(n,B)}else if(K(n)==O||t.match(O,!1))switch(G(n)){case 0:$(n,B,V(O,1)),t.match(/^`/),o="meta";break;case 1:$(n,B,V(O,2)),t.match(f),o="string";break;case 2:$(n,B,V(O,3)),t.match(/^`:/),o="meta";break;case 3:$(n,B,V(O,4)),t.match(l),o="keyword";break;case 4:$(n,B,V(O,5)),t.match(/^:/),o="meta";break;case 5:$(n,B,V(O,6)),t.match(a);break;default:$(n,B)}else if(K(n)==T||t.match(T,!1))switch(G(n)){case 0:$(n,B,V(T,1)),t.match(/^:/),o="meta";break;case 1:$(n,B,V(T,2)),t.match(l),o="keyword";break;case 2:$(n,B,V(T,3)),t.match(/^:/),o="meta";break;case 3:$(n,B,V(T,4)),t.match(a);break;default:$(n,B)}else if(K(n)==_||t.match(_,!1))switch(G(n)){case 0:$(n,B,V(_,1)),t.match(P),o="variable-2";break;case 1:$(n,B,V(_,2)),t.match(/^_?_?/)&&(o="link");break;default:$(n,B)}else if(t.match(w))$(n,B),o="quote";else if(t.match(x))$(n,B),o="quote";else if(t.match(k))$(n,B),t.peek()&&!t.peek().match(/^\W$/)||(o="link");else if(K(n)==E||t.match(E,!1))switch(G(n)){case 0:!t.peek()||t.peek().match(/^\W$/)?$(n,B,V(E,1)):t.match(E);break;case 1:$(n,B,V(E,2)),t.match(/^`/),o="link";break;case 2:$(n,B,V(E,3)),t.match(f);break;case 3:$(n,B,V(E,4)),t.match(/^`_/),o="link";break;default:$(n,B)}else t.match(N)?$(n,q):t.next()&&$(n,B);return o}function z(t,n){var o=null;if(K(n)==v||t.match(v,!1))switch(G(n)){case 0:$(n,z,V(v,1)),t.match(P),o="variable-2";break;case 1:$(n,z,V(v,2)),t.match(R);break;case 2:$(n,z,V(v,3)),t.match(M),o="keyword";break;case 3:$(n,z,V(v,4)),t.match(I),o="meta";break;default:$(n,B)}else if(K(n)==g||t.match(g,!1))switch(G(n)){case 0:$(n,z,V(g,1)),t.match(C),o="keyword",t.current().match(/^(?:math|latex)/)?n.tmp_stex=!0:t.current().match(/^python/)&&(n.tmp_py=!0);break;case 1:$(n,z,V(g,2)),t.match(A),o="meta",(t.match(/^latex\s*$/)||n.tmp_stex)&&(n.tmp_stex=void 0,$(n,W,{mode:i,local:e.startState(i)}));break;case 2:$(n,z,V(g,3)),(t.match(/^python\s*$/)||n.tmp_py)&&(n.tmp_py=void 0,$(n,W,{mode:r,local:e.startState(r)}));break;default:$(n,B)}else if(K(n)==m||t.match(m,!1))switch(G(n)){case 0:$(n,z,V(m,1)),t.match(j),t.match(D),o="link";break;case 1:$(n,z,V(m,2)),t.match(L),o="meta";break;default:$(n,B)}else t.match(y)||t.match(b)?($(n,B),o="quote"):(t.eatSpace(),t.eol()?$(n,B):(t.skipToEnd(),$(n,U),o="comment"));return o}function U(e,t){return H(e,t,"comment")}function q(e,t){return H(e,t,"meta")}function H(e,t,n){return e.eol()||e.eatSpace()?(e.skipToEnd(),n):($(t,B),null)}function W(e,t){return t.ctx.mode&&t.ctx.local?e.sol()?(e.eatSpace()||$(t,B),null):t.ctx.mode.token(e,t.ctx.local):($(t,B),null)}function V(e,t,n,r){return{phase:e,stage:t,mode:n,local:r}}function $(e,t,n){e.tok=t,e.ctx=n||{}}function G(e){return e.ctx.stage||0}function K(e){return e.ctx.phase}return{startState:function(){return{tok:B,ctx:V(void 0,0)}},copyState:function(t){var n=t.ctx,r=t.tmp;return n.local&&(n={mode:n.mode,local:e.copyState(n.mode,n.local)}),r&&(r={mode:r.mode,local:e.copyState(r.mode,r.local)}),{tok:t.tok,ctx:n,tmp:r}},innerMode:function(e){return e.tmp?{state:e.tmp.local,mode:e.tmp.mode}:e.ctx.mode?{state:e.ctx.local,mode:e.ctx.mode}:null},token:function(e,t){return t.tok(e,t)}}}),"python","stex"),e.defineMIME("text/x-rst","rst")}(n(5),n(658),n(659),n(234))},function(e,t,n){!function(e){"use strict";e.defineSimpleMode("rust",{start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string-2"},{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string-2"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),e.defineMIME("text/x-rustsrc","rust"),e.defineMIME("text/rust","rust")}(n(5),n(199))},function(e,t,n){!function(e){"use strict";e.defineMode("sas",(function(){var e={},t={eq:"operator",lt:"operator",le:"operator",gt:"operator",ge:"operator",in:"operator",ne:"operator",or:"operator"},n=/(<=|>=|!=|<>)/,r=/[=\(:\),{}.*<>+\-\/^\[\]]/;function i(t,n,r){if(r)for(var i=n.split(" "),o=0;o<i.length;o++)e[i[o]]={style:t,state:r}}return i("def","stack pgm view source debug nesting nolist",["inDataStep"]),i("def","if while until for do do; end end; then else cancel",["inDataStep"]),i("def","label format _n_ _error_",["inDataStep"]),i("def","ALTER BUFNO BUFSIZE CNTLLEV COMPRESS DLDMGACTION ENCRYPT ENCRYPTKEY EXTENDOBSCOUNTER GENMAX GENNUM INDEX LABEL OBSBUF OUTREP PW PWREQ READ REPEMPTY REPLACE REUSE ROLE SORTEDBY SPILL TOBSNO TYPE WRITE FILECLOSE FIRSTOBS IN OBS POINTOBS WHERE WHEREUP IDXNAME IDXWHERE DROP KEEP RENAME",["inDataStep"]),i("def","filevar finfo finv fipname fipnamel fipstate first firstobs floor",["inDataStep"]),i("def","varfmt varinfmt varlabel varlen varname varnum varray varrayx vartype verify vformat vformatd vformatdx vformatn vformatnx vformatw vformatwx vformatx vinarray vinarrayx vinformat vinformatd vinformatdx vinformatn vinformatnx vinformatw vinformatwx vinformatx vlabel vlabelx vlength vlengthx vname vnamex vnferr vtype vtypex weekday",["inDataStep"]),i("def","zipfips zipname zipnamel zipstate",["inDataStep"]),i("def","put putc putn",["inDataStep"]),i("builtin","data run",["inDataStep"]),i("def","data",["inProc"]),i("def","%if %end %end; %else %else; %do %do; %then",["inMacro"]),i("builtin","proc run; quit; libname filename %macro %mend option options",["ALL"]),i("def","footnote title libname ods",["ALL"]),i("def","%let %put %global %sysfunc %eval ",["ALL"]),i("variable","&sysbuffr &syscc &syscharwidth &syscmd &sysdate &sysdate9 &sysday &sysdevic &sysdmg &sysdsn &sysencoding &sysenv &syserr &syserrortext &sysfilrc &syshostname &sysindex &sysinfo &sysjobid &syslast &syslckrc &syslibrc &syslogapplname &sysmacroname &sysmenv &sysmsg &sysncpu &sysodspath &sysparm &syspbuff &sysprocessid &sysprocessname &sysprocname &sysrc &sysscp &sysscpl &sysscpl &syssite &sysstartid &sysstartname &systcpiphostname &systime &sysuserid &sysver &sysvlong &sysvlong4 &syswarningtext",["ALL"]),i("def","source2 nosource2 page pageno pagesize",["ALL"]),i("def","_all_ _character_ _cmd_ _freq_ _i_ _infile_ _last_ _msg_ _null_ _numeric_ _temporary_ _type_ abort abs addr adjrsq airy alpha alter altlog altprint and arcos array arsin as atan attrc attrib attrn authserver autoexec awscontrol awsdef awsmenu awsmenumerge awstitle backward band base betainv between blocksize blshift bnot bor brshift bufno bufsize bxor by byerr byline byte calculated call cards cards4 catcache cbufno cdf ceil center cexist change chisq cinv class cleanup close cnonct cntllev coalesce codegen col collate collin column comamid comaux1 comaux2 comdef compbl compound compress config continue convert cos cosh cpuid create cross crosstab css curobs cv daccdb daccdbsl daccsl daccsyd dacctab dairy datalines datalines4 datejul datepart datetime day dbcslang dbcstype dclose ddfm ddm delete delimiter depdb depdbsl depsl depsyd deptab dequote descending descript design= device dflang dhms dif digamma dim dinfo display distinct dkricond dkrocond dlm dnum do dopen doptname doptnum dread drop dropnote dsname dsnferr echo else emaildlg emailid emailpw emailserver emailsys encrypt end endsas engine eof eov erf erfc error errorcheck errors exist exp fappend fclose fcol fdelete feedback fetch fetchobs fexist fget file fileclose fileexist filefmt filename fileref fmterr fmtsearch fnonct fnote font fontalias fopen foptname foptnum force formatted formchar formdelim formdlim forward fpoint fpos fput fread frewind frlen from fsep fuzz fwrite gaminv gamma getoption getvarc getvarn go goto group gwindow hbar hbound helpenv helploc hms honorappearance hosthelp hostprint hour hpct html hvar ibessel ibr id if index indexc indexw initcmd initstmt inner input inputc inputn inr insert int intck intnx into intrr invaliddata irr is jbessel join juldate keep kentb kurtosis label lag last lbound leave left length levels lgamma lib library libref line linesize link list log log10 log2 logpdf logpmf logsdf lostcard lowcase lrecl ls macro macrogen maps mautosource max maxdec maxr mdy mean measures median memtype merge merror min minute missing missover mlogic mod mode model modify month mopen mort mprint mrecall msglevel msymtabmax mvarsize myy n nest netpv new news nmiss no nobatch nobs nocaps nocardimage nocenter nocharcode nocmdmac nocol nocum nodate nodbcs nodetails nodmr nodms nodmsbatch nodup nodupkey noduplicates noechoauto noequals noerrorabend noexitwindows nofullstimer noicon noimplmac noint nolist noloadlist nomiss nomlogic nomprint nomrecall nomsgcase nomstored nomultenvappl nonotes nonumber noobs noovp nopad nopercent noprint noprintinit normal norow norsasuser nosetinit nosplash nosymbolgen note notes notitle notitles notsorted noverbose noxsync noxwait npv null number numkeys nummousekeys nway obs on open order ordinal otherwise out outer outp= output over ovp p(1 5 10 25 50 75 90 95 99) pad pad2 paired parm parmcards path pathdll pathname pdf peek peekc pfkey pmf point poisson poke position printer probbeta probbnml probchi probf probgam probhypr probit probnegb probnorm probsig probt procleave prt ps pw pwreq qtr quote r ranbin rancau random ranexp rangam range ranks rannor ranpoi rantbl rantri ranuni rcorr read recfm register regr remote remove rename repeat repeated replace resolve retain return reuse reverse rewind right round rsquare rtf rtrace rtraceloc s s2 samploc sasautos sascontrol sasfrscr sasmsg sasmstore sasscript sasuser saving scan sdf second select selection separated seq serror set setcomm setot sign simple sin sinh siteinfo skewness skip sle sls sortedby sortpgm sortseq sortsize soundex spedis splashlocation split spool sqrt start std stderr stdin stfips stimer stname stnamel stop stopover sub subgroup subpopn substr sum sumwgt symbol symbolgen symget symput sysget sysin sysleave sysmsg sysparm sysprint sysprintfont sysprod sysrc system t table tables tan tanh tapeclose tbufsize terminal test then timepart tinv tnonct to today tol tooldef totper transformout translate trantab tranwrd trigamma trim trimn trunc truncover type unformatted uniform union until upcase update user usericon uss validate value var weight when where while wincharset window work workinit workterm write wsum xsync xwait yearcutoff yes yyq min max",["inDataStep","inProc"]),i("operator","and not ",["inDataStep","inProc"]),{startState:function(){return{inDataStep:!1,inProc:!1,inMacro:!1,nextword:!1,continueString:null,continueComment:!1}},token:function(i,o){return i.eatSpace()?null:function(i,o){var a=i.next();if("/"===a&&i.eat("*"))return o.continueComment=!0,"comment";if(!0===o.continueComment)return"*"===a&&"/"===i.peek()?(i.next(),o.continueComment=!1):i.skipTo("*")?(i.skipTo("*"),i.next(),i.eat("/")&&(o.continueComment=!1)):i.skipToEnd(),"comment";if("*"==a&&i.column()==i.indentation())return i.skipToEnd(),"comment";var s,l=a+i.peek();if(!('"'!==a&&"'"!==a||o.continueString))return o.continueString=a,"string";if(o.continueString)return o.continueString==a?o.continueString=null:i.skipTo(o.continueString)?(i.next(),o.continueString=null):i.skipToEnd(),"string";if(null!==o.continueString&&i.eol())return i.skipTo(o.continueString)||i.skipToEnd(),"string";if(/[\d\.]/.test(a))return"."===a?i.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"===a?i.match(/^[xX][0-9a-fA-F]+/)||i.match(/^0[0-7]+/):i.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(n.test(a+i.peek()))return i.next(),"operator";if(t.hasOwnProperty(l)){if(i.next()," "===i.peek())return t[l.toLowerCase()]}else if(r.test(a))return"operator";if(null!=i.match(/[%&;\w]+/,!1)){if(s=a+i.match(/[%&;\w]+/,!0),/&/.test(s))return"variable"}else s=a;if(o.nextword)return i.match(/[\w]+/),"."===i.peek()&&i.skipTo(" "),o.nextword=!1,"variable-2";if(s=s.toLowerCase(),o.inDataStep){if("run;"===s||i.match(/run\s;/))return o.inDataStep=!1,"builtin";if(s&&"."===i.next())return/\w/.test(i.peek())?"variable-2":"variable";if(s&&e.hasOwnProperty(s)&&(-1!==e[s].state.indexOf("inDataStep")||-1!==e[s].state.indexOf("ALL"))){i.start<i.pos&&i.backUp(i.pos-i.start);for(var u=0;u<s.length;++u)i.next();return e[s].style}}if(o.inProc){if("run;"===s||"quit;"===s)return o.inProc=!1,"builtin";if(s&&e.hasOwnProperty(s)&&(-1!==e[s].state.indexOf("inProc")||-1!==e[s].state.indexOf("ALL")))return i.match(/[\w]+/),e[s].style}return o.inMacro?"%mend"===s?(";"===i.peek()&&i.next(),o.inMacro=!1,"builtin"):s&&e.hasOwnProperty(s)&&(-1!==e[s].state.indexOf("inMacro")||-1!==e[s].state.indexOf("ALL"))?(i.match(/[\w]+/),e[s].style):"atom":s&&e.hasOwnProperty(s)?(i.backUp(1),i.match(/[\w]+/),"data"===s&&!1===/=/.test(i.peek())?(o.inDataStep=!0,o.nextword=!0,"builtin"):"proc"===s?(o.inProc=!0,o.nextword=!0,"builtin"):"%macro"===s?(o.inMacro=!0,o.nextword=!0,"builtin"):/title[1-9]/.test(s)?"def":"footnote"===s?(i.eat(/[1-9]/),"def"):!0===o.inDataStep&&-1!==e[s].state.indexOf("inDataStep")||!0===o.inProc&&-1!==e[s].state.indexOf("inProc")||!0===o.inMacro&&-1!==e[s].state.indexOf("inMacro")||-1!==e[s].state.indexOf("ALL")?e[s].style:null):null}(i,o)},blockCommentStart:"/*",blockCommentEnd:"*/"}})),e.defineMIME("text/x-sas","sas")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("scheme",(function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t=e("λ case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),n=e("define let letrec let* lambda");function r(e,t,n){this.indent=e,this.type=t,this.prev=n}function i(e,t,n){e.indentStack=new r(t,n,e.indentStack)}var o=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),a=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),s=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),l=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function u(e){return e.match(o)}function c(e){return e.match(a)}function d(e,t){return!0===t&&e.backUp(1),e.match(l)}function f(e){return e.match(s)}return{startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(e,r){if(null==r.indentStack&&e.sol()&&(r.indentation=e.indentation()),e.eatSpace())return null;var o=null;switch(r.mode){case"string":for(var a=!1;null!=(s=e.next());){if('"'==s&&!a){r.mode=!1;break}a=!a&&"\\"==s}o="string";break;case"comment":for(var s,l=!1;null!=(s=e.next());){if("#"==s&&l){r.mode=!1;break}l="|"==s}o="comment";break;case"s-expr-comment":if(r.mode=!1,"("!=e.peek()&&"["!=e.peek()){e.eatWhile(/[^\s\(\)\[\]]/),o="comment";break}r.sExprComment=0;default:var p=e.next();if('"'==p)r.mode="string",o="string";else if("'"==p)"("==e.peek()||"["==e.peek()?("number"!=typeof r.sExprQuote&&(r.sExprQuote=0),o="atom"):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),o="atom");else if("#"==p)if(e.eat("|"))r.mode="comment",o="comment";else if(e.eat(/[tf]/i))o="atom";else if(e.eat(";"))r.mode="s-expr-comment",o="comment";else{var h=null,m=!1,g=!0;e.eat(/[ei]/i)?m=!0:e.backUp(1),e.match(/^#b/i)?h=u:e.match(/^#o/i)?h=c:e.match(/^#x/i)?h=f:e.match(/^#d/i)?h=d:e.match(/^[-+0-9.]/,!1)?(g=!1,h=d):m||e.eat("#"),null!=h&&(g&&!m&&e.match(/^#[ei]/i),h(e)&&(o="number"))}else if(/^[-+0-9.]/.test(p)&&d(e,!0))o="number";else if(";"==p)e.skipToEnd(),o="comment";else if("("==p||"["==p){for(var v,y="",b=e.column();null!=(v=e.eat(/[^\s\(\[\;\)\]]/));)y+=v;y.length>0&&n.propertyIsEnumerable(y)?i(r,b+2,p):(e.eatSpace(),e.eol()||";"==e.peek()?i(r,b+1,p):i(r,b+e.current().length,p)),e.backUp(e.current().length-1),"number"==typeof r.sExprComment&&r.sExprComment++,"number"==typeof r.sExprQuote&&r.sExprQuote++,o="bracket"}else")"==p||"]"==p?(o="bracket",null!=r.indentStack&&r.indentStack.type==(")"==p?"(":"[")&&(function(e){e.indentStack=e.indentStack.prev}(r),"number"==typeof r.sExprComment&&0==--r.sExprComment&&(o="comment",r.sExprComment=!1),"number"==typeof r.sExprQuote&&0==--r.sExprQuote&&(o="atom",r.sExprQuote=!1))):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),o=t&&t.propertyIsEnumerable(e.current())?"builtin":"variable")}return"number"==typeof r.sExprComment?"comment":"number"==typeof r.sExprQuote?"atom":o},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent},closeBrackets:{pairs:'()[]{}""'},lineComment:";;"}})),e.defineMIME("text/x-scheme","scheme")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("shell",(function(){var t={};function n(e,n){for(var r=0;r<n.length;r++)t[n[r]]=e}var r=["true","false"],i=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],o=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];function a(e,n){if(e.eatSpace())return null;var r=e.sol(),i=e.next();if("\\"===i)return e.next(),null;if("'"===i||'"'===i||"`"===i)return n.tokens.unshift(s(i,"`"===i?"quote":"string")),c(e,n);if("#"===i)return r&&e.eat("!")?(e.skipToEnd(),"meta"):(e.skipToEnd(),"comment");if("$"===i)return n.tokens.unshift(u),c(e,n);if("+"===i||"="===i)return"operator";if("-"===i)return e.eat("-"),e.eatWhile(/\w/),"attribute";if(/\d/.test(i)&&(e.eatWhile(/\d/),e.eol()||!/\w/.test(e.peek())))return"number";e.eatWhile(/[\w-]/);var o=e.current();return"="===e.peek()&&/\w+/.test(o)?"def":t.hasOwnProperty(o)?t[o]:null}function s(e,t){var n="("==e?")":"{"==e?"}":e;return function(r,i){for(var o,a=!1;null!=(o=r.next());){if(o===n&&!a){i.tokens.shift();break}if("$"===o&&!a&&"'"!==e&&r.peek()!=n){a=!0,r.backUp(1),i.tokens.unshift(u);break}if(!a&&e!==n&&o===e)return i.tokens.unshift(s(e,t)),c(r,i);if(!a&&/['"]/.test(o)&&!/['"]/.test(e)){i.tokens.unshift(l(o,"string")),r.backUp(1);break}a=!a&&"\\"===o}return t}}function l(e,t){return function(n,r){return r.tokens[0]=s(e,t),n.next(),c(n,r)}}e.registerHelper("hintWords","shell",r.concat(i,o)),n("atom",r),n("keyword",i),n("builtin",o);var u=function(e,t){t.tokens.length>1&&e.eat("$");var n=e.next();return/['"({]/.test(n)?(t.tokens[0]=s(n,"("==n?"quote":"{"==n?"def":"string"),c(e,t)):(/\d/.test(n)||e.eatWhile(/\w/),t.tokens.shift(),"def")};function c(e,t){return(t.tokens[0]||a)(e,t)}return{startState:function(){return{tokens:[]}},token:function(e,t){return c(e,t)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}})),e.defineMIME("text/x-sh","shell"),e.defineMIME("application/x-sh","shell")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("sieve",(function(e){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var n=t("if elsif else stop require"),r=t("true false not"),i=e.indentUnit;function o(e,t){var i,l=e.next();if("/"==l&&e.eat("*"))return t.tokenize=s,s(e,t);if("#"===l)return e.skipToEnd(),"comment";if('"'==l)return t.tokenize=(i=l,function(e,t){for(var n,r=!1;null!=(n=e.next())&&(n!=i||r);)r=!r&&"\\"==n;return r||(t.tokenize=o),"string"}),t.tokenize(e,t);if("("==l)return t._indent.push("("),t._indent.push("{"),null;if("{"===l)return t._indent.push("{"),null;if(")"==l&&(t._indent.pop(),t._indent.pop()),"}"===l)return t._indent.pop(),null;if(","==l)return null;if(";"==l)return null;if(/[{}\(\),;]/.test(l))return null;if(/\d/.test(l))return e.eatWhile(/[\d]/),e.eat(/[KkMmGg]/),"number";if(":"==l)return e.eatWhile(/[a-zA-Z_]/),e.eatWhile(/[a-zA-Z0-9_]/),"operator";e.eatWhile(/\w/);var u=e.current();return"text"==u&&e.eat(":")?(t.tokenize=a,"string"):n.propertyIsEnumerable(u)?"keyword":r.propertyIsEnumerable(u)?"atom":null}function a(e,t){return t._multiLineString=!0,e.sol()?("."==e.next()&&e.eol()&&(t._multiLineString=!1,t.tokenize=o),"string"):(e.eatSpace(),"#"==e.peek()?(e.skipToEnd(),"comment"):(e.skipToEnd(),"string"))}function s(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=o;break}r="*"==n}return"comment"}return{startState:function(e){return{tokenize:o,baseIndent:e||0,_indent:[]}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||o)(e,t)},indent:function(e,t){var n=e._indent.length;return t&&"}"==t[0]&&n--,n<0&&(n=0),n*i},electricChars:"}"}})),e.defineMIME("application/sieve","sieve")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("slim",(function(t){var n=e.getMode(t,{name:"htmlmixed"}),r=e.getMode(t,"ruby"),i={html:n,ruby:r},o={ruby:"ruby",javascript:"javascript",css:"text/css",sass:"text/x-sass",scss:"text/x-scss",less:"text/x-less",styl:"text/x-styl",coffee:"coffeescript",asciidoc:"text/x-asciidoc",markdown:"text/x-markdown",textile:"text/x-textile",creole:"text/x-creole",wiki:"text/x-wiki",mediawiki:"text/x-mediawiki",rdoc:"text/x-rdoc",builder:"text/x-builder",nokogiri:"text/x-nokogiri",erb:"application/x-erb"},a=function(e){var t=[];for(var n in e)t.push(n);return new RegExp("^("+t.join("|")+"):")}(o),s={commentLine:"comment",slimSwitch:"operator special",slimTag:"tag",slimId:"attribute def",slimClass:"attribute qualifier",slimAttribute:"attribute",slimSubmode:"keyword special",closeAttributeTag:null,slimDoctype:null,lineContinuation:null},l={"{":"}","[":"]","(":")"},u="_a-zA-ZÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�",c=u+"\\-0-9·̀-ͯ‿-⁀",d=new RegExp("^[:"+u+"](?::["+c+"]|["+c+"]*)"),f=new RegExp("^[:"+u+"][:\\."+c+"]*(?=\\s*=)"),p=new RegExp("^[:"+u+"][:\\."+c+"]*"),h=/^\.-?[_a-zA-Z]+[\w\-]*/,m=/^#[_a-zA-Z]+[\w\-]*/;function g(e,t){e.stack={parent:e.stack,style:"continuation",indented:t,tokenize:e.line},e.line=e.tokenize}function v(e){e.line==e.tokenize&&(e.line=e.stack.tokenize,e.stack=e.stack.parent)}function y(e,t){return function(n,r){return n.peek()==e&&1==r.rubyState.tokenize.length?(n.next(),r.tokenize=t,"closeAttributeTag"):_(n,r)}}function b(t){var n,i=function(e,r){if(1==r.rubyState.tokenize.length&&!r.rubyState.context.prev){if(e.backUp(1),e.eatSpace())return r.rubyState=n,r.tokenize=t,t(e,r);e.next()}return _(e,r)};return function(t,o){return n=o.rubyState,o.rubyState=e.startState(r),o.tokenize=i,_(t,o)}}function _(e,t){return r.token(e,t.rubyState)}function w(e,t){return e.match(/^#\{/)?(t.tokenize=y("}",t.tokenize),null):function(e,t,n,r,i){var o=e.current(),a=o.search(n);return a>-1&&(t.tokenize=function(e,t,n){var r=function(r,i){return i.tokenize=t,r.pos<e?(r.pos=e,n):i.tokenize(r,i)};return function(e,n){return n.tokenize=r,t(e,n)}}(e.pos,t.tokenize,i),e.backUp(o.length-a-r)),i}(e,t,/[^\\]#\{/,1,n.token(e,t.htmlState))}function x(e){return function(t,n){var r=function(e,t){return e.match(/^\\$/)?"lineContinuation":w(e,t)}(t,n);return t.eol()&&(n.tokenize=e),r}}function k(e,t,n){return t.stack={parent:t.stack,style:"html",indented:e.column()+n,tokenize:t.line},t.line=t.tokenize=w,null}function E(e,t){return e.skipToEnd(),t.stack.style}function S(e,t){return e.eat(t.stack.endQuote)?(t.line=t.stack.line,t.tokenize=t.stack.tokenize,t.stack=t.stack.parent,null):e.match(p)?(t.tokenize=O,"slimAttribute"):(e.next(),null)}function O(e,t){return e.match(/^==?/)?(t.tokenize=T,null):S(e,t)}function T(e,t){var n=e.peek();return'"'==n||"'"==n?(t.tokenize=U(n,"string",!0,!1,S),e.next(),t.tokenize(e,t)):"["==n?b(S)(e,t):e.match(/^(true|false|nil)\b/)?(t.tokenize=S,"keyword"):b(S)(e,t)}function C(t,n){if(t.match(/^#\{/))return n.tokenize=y("}",n.tokenize),null;var r=new e.StringStream(t.string.slice(n.stack.indented),t.tabSize);r.pos=t.pos-n.stack.indented,r.start=t.start-n.stack.indented,r.lastColumnPos=t.lastColumnPos-n.stack.indented,r.lastColumnValue=t.lastColumnValue-n.stack.indented;var i=n.subMode.token(r,n.subState);return t.pos=r.pos+n.stack.indented,i}function A(e,t){return t.stack.indented=e.column(),t.line=t.tokenize=C,t.tokenize(e,t)}function P(n){return i.hasOwnProperty(n)?i[n]:i[n]=function(n){var r=o[n],i=e.mimeModes[r];if(i)return e.getMode(t,i);var a=e.modes[r];return a?a(t,{name:r}):e.getMode(t,"null")}(n)}function R(e,t){return e.skipToEnd(),"slimDoctype"}function M(t,n){var r,i;if("<"==t.peek())return(n.tokenize=x(n.tokenize))(t,n);if(t.match(/^[|']/))return k(t,n,1);if(t.match(/^\/(!|\[\w+])?/))return function(e,t){return t.stack={parent:t.stack,style:"comment",indented:t.indented+1,tokenize:t.line},t.line=E,E(e,t)}(t,n);if(t.match(/^(-|==?[<>]?)/))return n.tokenize=function(e,t){return function(n,r){if(v(r),n.match(/^\\$/))return g(r,e),"lineContinuation";var i=t(n,r);return n.eol()&&n.current().match(/(?:^|[^\\])(?:\\\\)*\\$/)&&n.backUp(1),i}}(t.column(),(r=t.column(),i=_,function(e,t){v(t);var n=i(e,t);return e.eol()&&e.current().match(/,$/)&&g(t,r),n})),"slimSwitch";if(t.match(/^doctype\b/))return n.tokenize=R,"keyword";var o=t.match(a);return o?function(t,n){var r=P(t),i=e.startState(r);return n.subMode=r,n.subState=i,n.stack={parent:n.stack,style:"sub",indented:n.indented+1,tokenize:n.line},n.line=n.tokenize=A,"slimSubmode"}(o[1],n):j(t,n)}function I(e,t){return t.startOfLine?M(e,t):j(e,t)}function j(e,t){return e.eat("*")?(t.tokenize=b(D),null):e.match(d)?(t.tokenize=D,"slimTag"):L(e,t)}function D(e,t){return e.match(/^(<>?|><?)/)?(t.tokenize=L,null):L(e,t)}function L(e,t){return e.match(m)?(t.tokenize=L,"slimId"):e.match(h)?(t.tokenize=L,"slimClass"):N(e,t)}function N(e,t){return e.match(/^([\[\{\(])/)?function(e,t,n){return e.stack={parent:e.stack,style:"wrapper",indented:e.indented+1,tokenize:n,line:e.line,endQuote:t},e.line=e.tokenize=S,null}(t,l[RegExp.$1],N):e.match(f)?(t.tokenize=F,"slimAttribute"):"*"==e.peek()?(e.next(),t.tokenize=b(q),null):q(e,t)}function F(e,t){return e.match(/^==?/)?(t.tokenize=B,null):N(e,t)}function B(e,t){var n=e.peek();return'"'==n||"'"==n?(t.tokenize=U(n,"string",!0,!1,N),e.next(),t.tokenize(e,t)):"["==n?b(N)(e,t):":"==n?b(z)(e,t):e.match(/^(true|false|nil)\b/)?(t.tokenize=N,"keyword"):b(N)(e,t)}function z(e,t){return e.backUp(1),e.match(/^[^\s],(?=:)/)?(t.tokenize=b(z),null):(e.next(),N(e,t))}function U(e,t,n,r,i){return function(o,a){v(a);var s=0==o.current().length;if(o.match(/^\\$/,s))return s?(g(a,a.indented),"lineContinuation"):t;if(o.match(/^#\{/,s))return s?(a.tokenize=y("}",a.tokenize),null):t;for(var l,u=!1;null!=(l=o.next());){if(l==e&&(r||!u)){a.tokenize=i;break}if(n&&"#"==l&&!u&&o.eat("{")){o.backUp(2);break}u=!u&&"\\"==l}return o.eol()&&u&&o.backUp(1),t}}function q(e,t){return e.match(/^==?/)?(t.tokenize=_,"slimSwitch"):e.match(/^\/$/)?(t.tokenize=I,null):e.match(/^:/)?(t.tokenize=j,"slimSwitch"):(k(e,t,0),t.tokenize(e,t))}var H={startState:function(){return{htmlState:e.startState(n),rubyState:e.startState(r),stack:null,last:null,tokenize:I,line:I,indented:0}},copyState:function(t){return{htmlState:e.copyState(n,t.htmlState),rubyState:e.copyState(r,t.rubyState),subMode:t.subMode,subState:t.subMode&&e.copyState(t.subMode,t.subState),stack:t.stack,last:t.last,tokenize:t.tokenize,line:t.line}},token:function(e,t){if(e.sol())for(t.indented=e.indentation(),t.startOfLine=!0,t.tokenize=t.line;t.stack&&t.stack.indented>t.indented&&"slimSubmode"!=t.last;)t.line=t.tokenize=t.stack.tokenize,t.stack=t.stack.parent,t.subMode=null,t.subState=null;if(e.eatSpace())return null;var n=t.tokenize(e,t);return t.startOfLine=!1,n&&(t.last=n),s.hasOwnProperty(n)?s[n]:n},blankLine:function(e){if(e.subMode&&e.subMode.blankLine)return e.subMode.blankLine(e.subState)},innerMode:function(e){return e.subMode?{state:e.subState,mode:e.subMode}:{state:e,mode:H}}};return H}),"htmlmixed","ruby"),e.defineMIME("text/x-slim","slim"),e.defineMIME("application/x-slim","slim")}(n(5),n(126),n(402))},function(e,t,n){!function(e){"use strict";e.defineMode("smalltalk",(function(e){var t=/[+\-\/\\*~<>=@%|&?!.,:;^]/,n=/true|false|nil|self|super|thisContext/,r=function(e,t){this.next=e,this.parent=t},i=function(e,t,n){this.name=e,this.context=t,this.eos=n},o=function(){this.context=new r(a,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};o.prototype.userIndent=function(t){this.userIndentationDelta=t>0?t/e.indentUnit-this.indentation:0};var a=function(e,o,a){var d=new i(null,o,!1),f=e.next();return'"'===f?d=s(e,new r(s,o)):"'"===f?d=l(e,new r(l,o)):"#"===f?"'"===e.peek()?(e.next(),d=u(e,new r(u,o))):e.eatWhile(/[^\s.{}\[\]()]/)?d.name="string-2":d.name="meta":"$"===f?("<"===e.next()&&(e.eatWhile(/[^\s>]/),e.next()),d.name="string-2"):"|"===f&&a.expectVariable?d.context=new r(c,o):/[\[\]{}()]/.test(f)?(d.name="bracket",d.eos=/[\[{(]/.test(f),"["===f?a.indentation++:"]"===f&&(a.indentation=Math.max(0,a.indentation-1))):t.test(f)?(e.eatWhile(t),d.name="operator",d.eos=";"!==f):/\d/.test(f)?(e.eatWhile(/[\w\d]/),d.name="number"):/[\w_]/.test(f)?(e.eatWhile(/[\w\d_]/),d.name=a.expectVariable?n.test(e.current())?"keyword":"variable":null):d.eos=a.expectVariable,d},s=function(e,t){return e.eatWhile(/[^"]/),new i("comment",e.eat('"')?t.parent:t,!0)},l=function(e,t){return e.eatWhile(/[^']/),new i("string",e.eat("'")?t.parent:t,!1)},u=function(e,t){return e.eatWhile(/[^']/),new i("string-2",e.eat("'")?t.parent:t,!1)},c=function(e,t){var n=new i(null,t,!1);return"|"===e.next()?(n.context=t.parent,n.eos=!0):(e.eatWhile(/[^|]/),n.name="variable"),n};return{startState:function(){return new o},token:function(e,t){if(t.userIndent(e.indentation()),e.eatSpace())return null;var n=t.context.next(e,t.context,t);return t.context=n.context,t.expectVariable=n.eos,n.name},blankLine:function(e){e.userIndent(0)},indent:function(t,n){var r=t.context.next===a&&n&&"]"===n.charAt(0)?-1:t.userIndentationDelta;return(t.indentation+r)*e.indentUnit},electricChars:"]"}})),e.defineMIME("text/x-stsrc",{name:"smalltalk"})}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("smarty",(function(t,n){var r,i=n.rightDelimiter||"}",o=n.leftDelimiter||"{",a=n.version||2,s=e.getMode(t,n.baseMode||"null"),l=["debug","extends","function","include","literal"],u={operatorChars:/[+\-*&%=<>!?]/,validIdentifier:/[a-zA-Z0-9_]/,stringChar:/['"]/};function c(e,t){return r=t,e}function d(e,t){return null==t&&(t=e.pos),3===a&&"{"==o&&(t==e.string.length||/\s/.test(e.string.charAt(t)))}function f(e,t){for(var n,a,l=e.string,u=e.pos;;){var c=l.indexOf(o,u);if(u=c+o.length,-1==c||!d(e,c+o.length))break}if(c==e.pos)return e.match(o),e.eat("*")?function(e,t,n){return t.tokenize=n,n(e,t)}(e,t,(n="comment",a="*"+i,function(e,t){for(;!e.eol();){if(e.match(a)){t.tokenize=f;break}e.next()}return n})):(t.depth++,t.tokenize=p,r="startTag","tag");c>-1&&(e.string=l.slice(0,c));var h=s.token(e,t.base);return c>-1&&(e.string=l),h}function p(e,t){if(e.match(i,!0))return 3===a?(t.depth--,t.depth<=0&&(t.tokenize=f)):t.tokenize=f,c("tag",null);if(e.match(o,!0))return t.depth++,c("tag","startTag");var n=e.next();if("$"==n)return e.eatWhile(u.validIdentifier),c("variable-2","variable");if("|"==n)return c("operator","pipe");if("."==n)return c("operator","property");if(u.stringChar.test(n))return t.tokenize=(s=n,function(e,t){for(var n=null,r=null;!e.eol();){if(r=e.peek(),e.next()==s&&"\\"!==n){t.tokenize=p;break}n=r}return"string"}),c("string","string");if(u.operatorChars.test(n))return e.eatWhile(u.operatorChars),c("operator","operator");if("["==n||"]"==n)return c("bracket","bracket");if("("==n||")"==n)return c("bracket","operator");if(/\d/.test(n))return e.eatWhile(/\d/),c("number","number");if("variable"==t.last){if("@"==n)return e.eatWhile(u.validIdentifier),c("property","property");if("|"==n)return e.eatWhile(u.validIdentifier),c("qualifier","modifier")}else{if("pipe"==t.last)return e.eatWhile(u.validIdentifier),c("qualifier","modifier");if("whitespace"==t.last)return e.eatWhile(u.validIdentifier),c("attribute","modifier")}if("property"==t.last)return e.eatWhile(u.validIdentifier),c("property",null);if(/\s/.test(n))return r="whitespace",null;var s,d="";"/"!=n&&(d+=n);for(var h=null;h=e.eat(u.validIdentifier);)d+=h;for(var m=0,g=l.length;m<g;m++)if(l[m]==d)return c("keyword","keyword");return/\s/.test(n)?null:c("tag","tag")}return{startState:function(){return{base:e.startState(s),tokenize:f,last:null,depth:0}},copyState:function(t){return{base:e.copyState(s,t.base),tokenize:t.tokenize,last:t.last,depth:t.depth}},innerMode:function(e){if(e.tokenize==f)return{mode:s,state:e.base}},token:function(e,t){var n=t.tokenize(e,t);return t.last=r,n},indent:function(t,n,r){return t.tokenize==f&&s.indent?s.indent(t.base,n,r):e.Pass},blockCommentStart:o+"*",blockCommentEnd:"*"+i}})),e.defineMIME("text/x-smarty","smarty")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("solr",(function(){var e=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,t=/[\|\!\+\-\*\?\~\^\&]/,n=/^(OR|AND|NOT|TO)$/i;function r(t){return function(r,o){for(var a=t;(t=r.peek())&&null!=t.match(e);)a+=r.next();return o.tokenize=i,n.test(a)?"operator":function(e){return parseFloat(e).toString()===e}(a)?"number":":"==r.peek()?"field":"string"}}function i(n,o){var a,s,l=n.next();return'"'==l?o.tokenize=(s=l,function(e,t){for(var n,r=!1;null!=(n=e.next())&&(n!=s||r);)r=!r&&"\\"==n;return r||(t.tokenize=i),"string"}):t.test(l)?o.tokenize=(a=l,function(e,t){var n="operator";return"+"==a?n+=" positive":"-"==a?n+=" negative":"|"==a?e.eat(/\|/):"&"==a?e.eat(/\&/):"^"==a&&(n+=" boost"),t.tokenize=i,n}):e.test(l)&&(o.tokenize=r(l)),o.tokenize!=i?o.tokenize(n,o):null}return{startState:function(){return{tokenize:i}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}})),e.defineMIME("text/x-solr","solr")}(n(5))},function(e,t,n){!function(e){"use strict";var t={noEndTag:!0,soyState:"param-def"},n={alias:{noEndTag:!0},delpackage:{noEndTag:!0},namespace:{noEndTag:!0,soyState:"namespace-def"},"@param":t,"@param?":t,"@inject":t,"@inject?":t,"@state":t,template:{soyState:"templ-def",variableScope:!0},literal:{},msg:{},fallbackmsg:{noEndTag:!0,reduceIndent:!0},select:{},plural:{},let:{soyState:"var-def"},if:{},elseif:{noEndTag:!0,reduceIndent:!0},else:{noEndTag:!0,reduceIndent:!0},switch:{},case:{noEndTag:!0,reduceIndent:!0},default:{noEndTag:!0,reduceIndent:!0},foreach:{variableScope:!0,soyState:"for-loop"},ifempty:{noEndTag:!0,reduceIndent:!0},for:{variableScope:!0,soyState:"for-loop"},call:{soyState:"templ-ref"},param:{soyState:"param-ref"},print:{noEndTag:!0},deltemplate:{soyState:"templ-def",variableScope:!0},delcall:{soyState:"templ-ref"},log:{},element:{variableScope:!0}},r=Object.keys(n).filter((function(e){return!n[e].noEndTag||n[e].reduceIndent}));e.defineMode("soy",(function(t){var i=e.getMode(t,"text/plain"),o={html:e.getMode(t,{name:"text/html",multilineTagIndentFactor:2,multilineTagIndentPastTag:!1}),attributes:i,text:i,uri:i,trusted_resource_uri:i,css:e.getMode(t,"text/css"),js:e.getMode(t,{name:"text/javascript",statementIndent:2*t.indentUnit})};function a(e){return e[e.length-1]}function s(e,t,n){if(e.sol()){for(var r=0;r<t.indent&&e.eat(/\s/);r++);if(r)return null}var i=e.string,o=n.exec(i.substr(e.pos));o&&(e.string=i.substr(0,e.pos+o.index));var s=e.hideFirstChars(t.indent,(function(){var n=a(t.localStates);return n.mode.token(e,n.state)}));return e.string=i,s}function l(e,t){return{element:t,next:e}}function u(e){e.context&&(e.context.scope&&(e.variables=e.context.scope),e.context=e.context.previousContext)}function c(e,t,n){return function(e,t){for(;e;){if(e.element===t)return!0;e=e.next}return!1}(e,t)?"variable-2":n?"variable":"variable-2 error"}function d(e,t,n){this.previousContext=e,this.tag=t,this.kind=null,this.scope=n}function f(e,t){var n;return e.match(/[[]/)?(t.soyState.push("list-literal"),t.context=new d(t.context,"list-literal",t.variables),t.lookupVariables=!1,null):e.match(/map\b/)?(t.soyState.push("map-literal"),"keyword"):e.match(/record\b/)?(t.soyState.push("record-literal"),"keyword"):e.match(/([\w]+)(?=\()/)?"variable callee":(n=e.match(/^["']/))?(t.soyState.push("string"),t.quoteKind=n[0],"string"):e.match(/^[(]/)?(t.soyState.push("open-parentheses"),null):e.match(/(null|true|false)(?!\w)/)||e.match(/0x([0-9a-fA-F]{2,})/)||e.match(/-?([0-9]*[.])?[0-9]+(e[0-9]*)?/)?"atom":e.match(/(\||[+\-*\/%]|[=!]=|\?:|[<>]=?)/)?"operator":(n=e.match(/^\$([\w]+)/))?c(t.variables,n[1],!t.lookupVariables):(n=e.match(/^\w+/))?/^(?:as|and|or|not|in|if)$/.test(n[0])?"keyword":null:(e.next(),null)}return{startState:function(){return{soyState:[],variables:l(null,"ij"),scopes:null,indent:0,quoteKind:null,context:null,lookupVariables:!0,localStates:[{mode:o.html,state:e.startState(o.html)}]}},copyState:function(t){return{tag:t.tag,soyState:t.soyState.concat([]),variables:t.variables,context:t.context,indent:t.indent,quoteKind:t.quoteKind,lookupVariables:t.lookupVariables,localStates:t.localStates.map((function(t){return{mode:t.mode,state:e.copyState(t.mode,t.state)}}))}},token:function(i,p){switch(a(p.soyState)){case"comment":if(i.match(/^.*?\*\//)?p.soyState.pop():i.skipToEnd(),!p.context||!p.context.scope)for(var h=/@param\??\s+(\S+)/g,m=i.current();g=h.exec(m);)p.variables=l(p.variables,g[1]);return"comment";case"string":var g;return(g=i.match(/^.*?(["']|\\[\s\S])/))?g[1]==p.quoteKind&&(p.quoteKind=null,p.soyState.pop()):i.skipToEnd(),"string"}if(!p.soyState.length||"literal"!=a(p.soyState)){if(i.match(/^\/\*/))return p.soyState.push("comment"),"comment";if(i.match(i.sol()?/^\s*\/\/.*/:/^\s+\/\/.*/))return"comment"}switch(a(p.soyState)){case"templ-def":return(g=i.match(/^\.?([\w]+(?!\.[\w]+)*)/))?(p.soyState.pop(),"def"):(i.next(),null);case"templ-ref":return(g=i.match(/(\.?[a-zA-Z_][a-zA-Z_0-9]+)+/))?(p.soyState.pop(),"."==g[0][0]?"variable-2":"variable"):(g=i.match(/^\$([\w]+)/))?(p.soyState.pop(),c(p.variables,g[1],!p.lookupVariables)):(i.next(),null);case"namespace-def":return(g=i.match(/^\.?([\w\.]+)/))?(p.soyState.pop(),"variable"):(i.next(),null);case"param-def":return(g=i.match(/^\w+/))?(p.variables=l(p.variables,g[0]),p.soyState.pop(),p.soyState.push("param-type"),"def"):(i.next(),null);case"param-ref":return(g=i.match(/^\w+/))?(p.soyState.pop(),"property"):(i.next(),null);case"open-parentheses":return i.match(/[)]/)?(p.soyState.pop(),null):f(i,p);case"param-type":var v=i.peek();return-1!="}]=>,".indexOf(v)?(p.soyState.pop(),null):"["==v?(p.soyState.push("param-type-record"),null):"("==v?(p.soyState.push("param-type-template"),null):"<"==v?(p.soyState.push("param-type-parameter"),null):(g=i.match(/^([\w]+|[?])/))?"type":(i.next(),null);case"param-type-record":return"]"==(v=i.peek())?(p.soyState.pop(),null):i.match(/^\w+/)?(p.soyState.push("param-type"),"property"):(i.next(),null);case"param-type-parameter":return i.match(/^[>]/)?(p.soyState.pop(),null):i.match(/^[<,]/)?(p.soyState.push("param-type"),null):(i.next(),null);case"param-type-template":return i.match(/[>]/)?(p.soyState.pop(),p.soyState.push("param-type"),null):i.match(/^\w+/)?(p.soyState.push("param-type"),"def"):(i.next(),null);case"var-def":return(g=i.match(/^\$([\w]+)/))?(p.variables=l(p.variables,g[1]),p.soyState.pop(),"def"):(i.next(),null);case"for-loop":return i.match(/\bin\b/)?(p.soyState.pop(),"keyword"):"$"==i.peek()?(p.soyState.push("var-def"),null):(i.next(),null);case"record-literal":return i.match(/^[)]/)?(p.soyState.pop(),null):i.match(/[(,]/)?(p.soyState.push("map-value"),p.soyState.push("record-key"),null):(i.next(),null);case"map-literal":return i.match(/^[)]/)?(p.soyState.pop(),null):i.match(/[(,]/)?(p.soyState.push("map-value"),p.soyState.push("map-value"),null):(i.next(),null);case"list-literal":return i.match(/\]/)?(p.soyState.pop(),p.lookupVariables=!0,u(p),null):i.match(/\bfor\b/)?(p.lookupVariables=!0,p.soyState.push("for-loop"),"keyword"):f(i,p);case"record-key":return i.match(/[\w]+/)?"property":i.match(/^[:]/)?(p.soyState.pop(),null):(i.next(),null);case"map-value":return")"==i.peek()||","==i.peek()||i.match(/^[:)]/)?(p.soyState.pop(),null):f(i,p);case"import":return i.eat(";")?(p.soyState.pop(),p.indent-=2*t.indentUnit,null):i.match(/\w+(?=\s+as)/)?"variable":(g=i.match(/\w+/))?/(from|as)/.test(g[0])?"keyword":"def":(g=i.match(/^["']/))?(p.soyState.push("string"),p.quoteKind=g[0],"string"):(i.next(),null);case"tag":var y=(E="/"==p.tag[0])?p.tag.substring(1):p.tag,b=n[y];if(i.match(/^\/?}/)){var _="/}"==i.current();return _&&!E&&u(p),"/template"==p.tag||"/deltemplate"==p.tag?(p.variables=l(null,"ij"),p.indent=0):p.indent-=t.indentUnit*(_||-1==r.indexOf(p.tag)?2:1),p.soyState.pop(),"keyword"}if(i.match(/^([\w?]+)(?==)/)){if(p.context&&p.context.tag==y&&"kind"==i.current()&&(g=i.match(/^="([^"]+)/,!1))){var w=g[1];p.context.kind=w;var x=o[w]||o.html;(T=a(p.localStates)).mode.indent&&(p.indent+=T.mode.indent(T.state,"","")),p.localStates.push({mode:x,state:e.startState(x)})}return"attribute"}return f(i,p);case"literal":return i.match(/^(?=\{\/literal})/)?(p.soyState.pop(),this.token(i,p)):s(i,p,/\{\/literal}/)}if(i.match(/^\{literal}/))return p.indent+=t.indentUnit,p.soyState.push("literal"),p.context=new d(p.context,"literal",p.variables),"keyword";if(g=i.match(/^\{([/@\\]?\w+\??)(?=$|[\s}]|\/[/*])/)){var k=p.tag;p.tag=g[1];var E="/"==p.tag[0],S=!!n[p.tag];y=E?p.tag.substring(1):p.tag,b=n[y],"/switch"!=p.tag&&(p.indent+=((E||b&&b.reduceIndent)&&"switch"!=k?1:2)*t.indentUnit),p.soyState.push("tag");var O=!1;if(b)if(E||b.soyState&&p.soyState.push(b.soyState),b.noEndTag||!S&&E){if(E)if(p.context&&p.context.tag==y){if(p.context){var T;p.context.kind&&(p.localStates.pop(),(T=a(p.localStates)).mode.indent&&(p.indent-=T.mode.indent(T.state,"",""))),u(p)}}else O=!0}else p.context=new d(p.context,p.tag,b.variableScope?p.variables:null);else E&&(O=!0);return(O?"error ":"")+"keyword"}return i.eat("{")?(p.tag="print",p.indent+=2*t.indentUnit,p.soyState.push("tag"),"keyword"):!p.context&&i.match(/\bimport\b/)?(p.soyState.push("import"),p.indent+=2*t.indentUnit,"keyword"):s(i,p,/\{|\s+\/\/|\/\*/)},indent:function(n,r,i){var o=n.indent,s=a(n.soyState);if("comment"==s)return e.Pass;if("literal"==s)/^\{\/literal}/.test(r)&&(o-=t.indentUnit);else{if(/^\s*\{\/(template|deltemplate)\b/.test(r))return 0;/^\{(\/|(fallbackmsg|elseif|else|ifempty)\b)/.test(r)&&(o-=t.indentUnit),"switch"!=n.tag&&/^\{(case|default)\b/.test(r)&&(o-=t.indentUnit),/^\{\/switch\b/.test(r)&&(o-=t.indentUnit)}var l=a(n.localStates);return o&&l.mode.indent&&(o+=l.mode.indent(l.state,r,i)),o},innerMode:function(e){return e.soyState.length&&"literal"!=a(e.soyState)?null:a(e.localStates)},electricInput:/^\s*\{(\/|\/template|\/deltemplate|\/switch|fallbackmsg|elseif|else|case|default|ifempty|\/literal\})$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",useInnerComments:!1,fold:"indent"}}),"htmlmixed"),e.registerHelper("wordChars","soy",/[\w$]/),e.registerHelper("hintWords","soy",Object.keys(n).concat(["css","debugger"])),e.defineMIME("text/x-soy","soy")}(n(5),n(126))},function(e,t,n){!function(e){"use strict";e.defineMode("sparql",(function(e){var t,n=e.indentUnit;function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var i=r(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","iri","uri","bnode","count","sum","min","max","avg","sample","group_concat","rand","abs","ceil","floor","round","concat","substr","strlen","replace","ucase","lcase","encode_for_uri","contains","strstarts","strends","strbefore","strafter","year","month","day","hours","minutes","seconds","timezone","tz","now","uuid","struuid","md5","sha1","sha256","sha384","sha512","coalesce","if","strlang","strdt","isnumeric","regex","exists","isblank","isliteral","a","bind"]),o=r(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","true","false","with","data","copy","to","move","add","create","drop","clear","load"]),a=/[*+\-<>=&|\^\/!\?]/;function s(e,n){var r,l=e.next();if(t=null,"$"==l||"?"==l)return"?"==l&&e.match(/\s/,!1)?"operator":(e.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/),"variable-2");if("<"!=l||e.match(/^[\s\u00a0=]/,!1)){if('"'==l||"'"==l)return n.tokenize=(r=l,function(e,t){for(var n,i=!1;null!=(n=e.next());){if(n==r&&!i){t.tokenize=s;break}i=!i&&"\\"==n}return"string"}),n.tokenize(e,n);if(/[{}\(\),\.;\[\]]/.test(l))return t=l,"bracket";if("#"==l)return e.skipToEnd(),"comment";if(a.test(l))return e.eatWhile(a),"operator";if(":"==l)return e.eatWhile(/[\w\d\._\-]/),"atom";if("@"==l)return e.eatWhile(/[a-z\d\-]/i),"meta";if(e.eatWhile(/[_\w\d]/),e.eat(":"))return e.eatWhile(/[\w\d_\-]/),"atom";var u=e.current();return i.test(u)?"builtin":o.test(u)?"keyword":"variable"}return e.match(/^[^\s\u00a0>]*>?/),"atom"}function l(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function u(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:s,context:null,indent:0,col:0}},token:function(e,n){if(e.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=e.indentation()),e.eatSpace())return null;var r=n.tokenize(e,n);if("comment"!=r&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==t)l(n,")",e.column());else if("["==t)l(n,"]",e.column());else if("{"==t)l(n,"}",e.column());else if(/[\]\}\)]/.test(t)){for(;n.context&&"pattern"==n.context.type;)u(n);n.context&&t==n.context.type&&(u(n),"}"==t&&n.context&&"pattern"==n.context.type&&u(n))}else"."==t&&n.context&&"pattern"==n.context.type?u(n):/atom|string|variable/.test(r)&&n.context&&(/[\}\]]/.test(n.context.type)?l(n,"pattern",e.column()):"pattern"!=n.context.type||n.context.align||(n.context.align=!0,n.context.col=e.column()));return r},indent:function(e,t){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n):0},lineComment:"#"}})),e.defineMIME("application/sparql-query","sparql")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("spreadsheet",(function(){return{startState:function(){return{stringType:null,stack:[]}},token:function(e,t){if(e){switch(0===t.stack.length&&('"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.stack.unshift("string"))),t.stack[0]){case"string":for(;"string"===t.stack[0]&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return"string";case"characterClass":for(;"characterClass"===t.stack[0]&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(/^\\./)||t.stack.shift();return"operator"}var n=e.peek();switch(n){case"[":return e.next(),t.stack.unshift("characterClass"),"bracket";case":":return e.next(),"operator";case"\\":return e.match(/\\[a-z]+/)?"string-2":(e.next(),"atom");case".":case",":case";":case"*":case"-":case"+":case"^":case"<":case"/":case"=":return e.next(),"atom";case"$":return e.next(),"builtin"}return e.match(/\d+/)?e.match(/^\w+/)?"error":"number":e.match(/^[a-zA-Z_]\w*/)?e.match(/(?=[\(.])/,!1)?"keyword":"variable-2":-1!=["[","]","(",")","{","}"].indexOf(n)?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}})),e.defineMIME("text/x-spreadsheet","spreadsheet")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function n(e){return e.eat("@")&&(e.match(/^session\./),e.match(/^local\./),e.match(/^global\./)),e.eat("'")?(e.match(/^.*'/),"variable-2"):e.eat('"')?(e.match(/^.*"/),"variable-2"):e.eat("`")?(e.match(/^.*`/),"variable-2"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function r(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null}e.defineMode("sql",(function(t,n){var r=n.client||{},s=n.atoms||{false:!0,true:!0,null:!0},l=n.builtin||o(a),u=n.keywords||o(i),c=n.operatorChars||/^[*+\-%<>!=&|~^\/]/,d=n.support||{},f=n.hooks||{},p=n.dateSQL||{date:!0,time:!0,timestamp:!0},h=!1!==n.backslashStringEscapes,m=n.brackets||/^[\{}\(\)\[\]]/,g=n.punctuation||/^[;.,:]/;function v(e,t){var n=e.next();if(f[n]){var i=f[n](e,t);if(!1!==i)return i}if(d.hexNumber&&("0"==n&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==n||"X"==n)&&e.match(/^'[0-9a-fA-F]+'/)))return"number";if(d.binaryNumber&&(("b"==n||"B"==n)&&e.match(/^'[01]+'/)||"0"==n&&e.match(/^b[01]+/)))return"number";if(n.charCodeAt(0)>47&&n.charCodeAt(0)<58)return e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),d.decimallessFloat&&e.match(/^\.(?!\.)/),"number";if("?"==n&&(e.eatSpace()||e.eol()||e.eat(";")))return"variable-3";if("'"==n||'"'==n&&d.doubleQuote)return t.tokenize=y(n),t.tokenize(e,t);if((d.nCharCast&&("n"==n||"N"==n)||d.charsetCast&&"_"==n&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(d.escapeConstant&&("e"==n||"E"==n)&&("'"==e.peek()||'"'==e.peek()&&d.doubleQuote))return t.tokenize=function(e,t){return(t.tokenize=y(e.next(),!0))(e,t)},"keyword";if(d.commentSlashSlash&&"/"==n&&e.eat("/"))return e.skipToEnd(),"comment";if(d.commentHash&&"#"==n||"-"==n&&e.eat("-")&&(!d.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==n&&e.eat("*"))return t.tokenize=function e(t){return function(n,r){var i=n.match(/^.*?(\/\*|\*\/)/);return i?"/*"==i[1]?r.tokenize=e(t+1):r.tokenize=t>1?e(t-1):v:n.skipToEnd(),"comment"}}(1),t.tokenize(e,t);if("."!=n){if(c.test(n))return e.eatWhile(c),"operator";if(m.test(n))return"bracket";if(g.test(n))return e.eatWhile(g),"punctuation";if("{"==n&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var o=e.current().toLowerCase();return p.hasOwnProperty(o)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":s.hasOwnProperty(o)?"atom":l.hasOwnProperty(o)?"builtin":u.hasOwnProperty(o)?"keyword":r.hasOwnProperty(o)?"string-2":null}return d.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":e.match(/^\.+/)?null:d.ODBCdotTable&&e.match(/^[\w\d_$#]+/)?"variable-2":void 0}function y(e,t){return function(n,r){for(var i,o=!1;null!=(i=n.next());){if(i==e&&!o){r.tokenize=v;break}o=(h||t)&&!o&&"\\"==i}return"string"}}function b(e,t,n){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:n}}return{startState:function(){return{tokenize:v,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),t.tokenize==v&&e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"==n)return n;t.context&&null==t.context.align&&(t.context.align=!0);var r=e.current();return"("==r?b(e,t,")"):"["==r?b(e,t,"]"):t.context&&t.context.type==r&&function(e){e.indent=e.context.indent,e.context=e.context.prev}(t),n},indent:function(n,r){var i=n.context;if(!i)return e.Pass;var o=r.charAt(0)==i.type;return i.align?i.col+(o?0:1):i.indent+(o?0:t.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:d.commentSlashSlash?"//":d.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}}));var i="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function o(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var a="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";e.defineMIME("text/x-sql",{name:"sql",keywords:o(i+"begin"),builtin:o(a),atoms:o("false true null unknown"),dateSQL:o("date time timestamp"),support:o("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-mssql",{name:"sql",client:o("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:o(i+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:o("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:o("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:o("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":n}}),e.defineMIME("text/x-mysql",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(i+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":t,"\\":r}}),e.defineMIME("text/x-mariadb",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(i+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":t,"\\":r}}),e.defineMIME("text/x-sqlite",{name:"sql",client:o("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:o(i+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:o("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:o("date time timestamp datetime"),support:o("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":n,":":n,"?":n,$:n,'"':function(e){for(var t;null!=(t=e.next());)if('"'==t&&!e.eat('"'))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null},"`":t}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:o("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:o("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:o("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:o("commentSlashSlash decimallessFloat"),hooks:{}}),e.defineMIME("text/x-plsql",{name:"sql",client:o("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:o("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:o("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:o("date time timestamp"),support:o("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-hive",{name:"sql",keywords:o("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:o("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:o("date timestamp"),support:o("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-pgsql",{name:"sql",client:o("source"),keywords:o(i+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),e.defineMIME("text/x-gql",{name:"sql",keywords:o("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:o("false true"),builtin:o("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),e.defineMIME("text/x-gpsql",{name:"sql",client:o("source"),keywords:o("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),e.defineMIME("text/x-sparksql",{name:"sql",keywords:o("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases datata dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:o("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:o("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable doubleQuote zerolessFloat")}),e.defineMIME("text/x-esper",{name:"sql",client:o("source"),keywords:o("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:o("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("time"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber")})}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var n=t(["_","var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super","convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is","break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while","defer","return","inout","mutating","nonmutating","catch","do","rethrows","throw","throws","try","didSet","get","set","willSet","assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right","Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"]),r=t(["var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"]),i=t(["true","false","nil","self","super","_"]),o=t(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String","UInt8","UInt16","UInt32","UInt64","Void"]),a=/^\-?0b[01][01_]*/,s=/^\-?0o[0-7][0-7_]*/,l=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,u=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,c=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,d=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,f=/^\#[A-Za-z]+/,p=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function h(e,t,h){if(e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;var m,y=e.peek();if("/"==y){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.tokenize.push(v),v(e,t)}if(e.match(f))return"builtin";if(e.match(p))return"attribute";if(e.match(a))return"number";if(e.match(s))return"number";if(e.match(l))return"number";if(e.match(u))return"number";if(e.match(d))return"property";if("+-/*%=|&<>~^?!".indexOf(y)>-1)return e.next(),"operator";if(":;,.(){}[]".indexOf(y)>-1)return e.next(),e.match(".."),"punctuation";if(m=e.match(/("""|"|')/)){var b=g.bind(null,m[0]);return t.tokenize.push(b),b(e,t)}if(e.match(c)){var _=e.current();return o.hasOwnProperty(_)?"variable-2":i.hasOwnProperty(_)?"atom":n.hasOwnProperty(_)?(r.hasOwnProperty(_)&&(t.prev="define"),"keyword"):"define"==h?"def":"variable"}return e.next(),null}function m(){var e=0;return function(t,n,r){var i=h(t,n,r);if("punctuation"==i)if("("==t.current())++e;else if(")"==t.current()){if(0==e)return t.backUp(1),n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);--e}return i}}function g(e,t,n){for(var r,i=1==e.length,o=!1;r=t.peek();)if(o){if(t.next(),"("==r)return n.tokenize.push(m()),"string";o=!1}else{if(t.match(e))return n.tokenize.pop(),"string";t.next(),o="\\"==r}return i&&n.tokenize.pop(),"string"}function v(e,t){for(var n;e.match(/^[^/*]+/,!0),n=e.next();)"/"===n&&e.eat("*")?t.tokenize.push(v):"*"===n&&e.eat("/")&&t.tokenize.pop();return"comment"}function y(e,t,n){this.prev=e,this.align=t,this.indented=n}function b(e,t){var n=t.match(/^\s*($|\/[\/\*])/,!1)?null:t.column()+1;e.context=new y(e.context,n,e.indented)}function _(e){e.context&&(e.indented=e.context.indented,e.context=e.context.prev)}e.defineMode("swift",(function(e){return{startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var n=t.prev;t.prev=null;var r=(t.tokenize[t.tokenize.length-1]||h)(e,t,n);if(r&&"comment"!=r?t.prev||(t.prev=r):t.prev=n,"punctuation"==r){var i=/[\(\[\{]|([\]\)\}])/.exec(e.current());i&&(i[1]?_:b)(t,e)}return r},indent:function(t,n){var r=t.context;if(!r)return 0;var i=/^[\]\}\)]/.test(n);return null!=r.align?r.align-(i?1:0):r.indented+(i?0:e.indentUnit)},electricInput:/^\s*[\)\}\]]$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace",closeBrackets:"()[]{}''\"\"``"}})),e.defineMIME("text/x-swift","swift")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("tcl",(function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t=e("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"),n=e("if elseif else and not or eq ne in ni for foreach while switch"),r=/[+\-*&%=<>!?^\/\|]/;function i(e,t,n){return t.tokenize=n,n(e,t)}function o(e,l){var u=l.beforeParams;l.beforeParams=!1;var c,d=e.next();if('"'!=d&&"'"!=d||!l.inParams){if(/[\[\]{}\(\),;\.]/.test(d))return"("==d&&u?l.inParams=!0:")"==d&&(l.inParams=!1),null;if(/\d/.test(d))return e.eatWhile(/[\w\.]/),"number";if("#"==d)return e.eat("*")?i(e,l,a):"#"==d&&e.match(/ *\[ *\[/)?i(e,l,s):(e.skipToEnd(),"comment");if('"'==d)return e.skipTo(/"/),"comment";if("$"==d)return e.eatWhile(/[$_a-z0-9A-Z\.{:]/),e.eatWhile(/}/),l.beforeParams=!0,"builtin";if(r.test(d))return e.eatWhile(r),"comment";e.eatWhile(/[\w\$_{}\xa1-\uffff]/);var f=e.current().toLowerCase();return t&&t.propertyIsEnumerable(f)?"keyword":n&&n.propertyIsEnumerable(f)?(l.beforeParams=!0,"keyword"):null}return i(e,l,(c=d,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==c&&!r){i=!0;break}r=!r&&"\\"==n}return i&&(t.tokenize=o),"string"}))}function a(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=o;break}r="*"==n}return"comment"}function s(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=o;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}return{startState:function(){return{tokenize:o,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},lineComment:"#"}})),e.defineMIME("text/x-tcl","tcl")}(n(5))},function(e,t,n){!function(e){"use strict";var t={addition:"positive",attributes:"attribute",bold:"strong",cite:"keyword",code:"atom",definitionList:"number",deletion:"negative",div:"punctuation",em:"em",footnote:"variable",footCite:"qualifier",header:"header",html:"comment",image:"string",italic:"em",link:"link",linkDefinition:"link",list1:"variable-2",list2:"variable-3",list3:"keyword",notextile:"string-2",pre:"operator",p:"property",quote:"bracket",span:"quote",specialChar:"tag",strong:"strong",sub:"builtin",sup:"builtin",table:"variable-3",tableHeading:"operator"};function n(e,n,o){if("_"===o)return e.eat("_")?r(e,n,"italic",/__/,2):r(e,n,"em",/_/,1);if("*"===o)return e.eat("*")?r(e,n,"bold",/\*\*/,2):r(e,n,"strong",/\*/,1);if("["===o)return e.match(/\d+\]/)&&(n.footCite=!0),i(n);if("("===o&&e.match(/^(r|tm|c)\)/))return a(n,t.specialChar);if("<"===o&&e.match(/(\w+)[^>]+>[^<]+<\/\1>/))return a(n,t.html);if("?"===o&&e.eat("?"))return r(e,n,"cite",/\?\?/,2);if("="===o&&e.eat("="))return r(e,n,"notextile",/==/,2);if("-"===o&&!e.eat("-"))return r(e,n,"deletion",/-/,1);if("+"===o)return r(e,n,"addition",/\+/,1);if("~"===o)return r(e,n,"sub",/~/,1);if("^"===o)return r(e,n,"sup",/\^/,1);if("%"===o)return r(e,n,"span",/%/,1);if("@"===o)return r(e,n,"code",/@/,1);if("!"===o){var s=r(e,n,"image",/(?:\([^\)]+\))?!/,1);return e.match(/^:\S+/),s}return i(n)}function r(e,t,n,r,o){var a=e.pos>o?e.string.charAt(e.pos-o-1):null,s=e.peek();if(t[n]){if((!s||/\W/.test(s))&&a&&/\S/.test(a)){var l=i(t);return t[n]=!1,l}}else(!a||/\W/.test(a))&&s&&/\S/.test(s)&&e.match(new RegExp("^.*\\S"+r.source+"(?:\\W|$)"),!1)&&(t[n]=!0,t.mode=c.attributes);return i(t)}function i(e){var n=o(e);if(n)return n;var r=[];return e.layoutType&&r.push(t[e.layoutType]),r=r.concat(function(e){for(var n=[],r=1;r<arguments.length;++r)e[arguments[r]]&&n.push(t[arguments[r]]);return n}(e,"addition","bold","cite","code","deletion","em","footCite","image","italic","link","span","strong","sub","sup","table","tableHeading")),"header"===e.layoutType&&r.push(t.header+"-"+e.header),r.length?r.join(" "):null}function o(e){var n=e.layoutType;switch(n){case"notextile":case"code":case"pre":return t[n];default:return e.notextile?t.notextile+(n?" "+t[n]:""):null}}function a(e,t){var n=o(e);if(n)return n;var r=i(e);return t?r?r+" "+t:t:r}function s(e){var t=e.spanningLayout,n=e.layoutType;for(var r in e)e.hasOwnProperty(r)&&delete e[r];e.mode=c.newLayout,t&&(e.layoutType=n,e.spanningLayout=!0)}var l={cache:{},single:{bc:"bc",bq:"bq",definitionList:/- .*?:=+/,definitionListEnd:/.*=:\s*$/,div:"div",drawTable:/\|.*\|/,foot:/fn\d+/,header:/h[1-6]/,html:/\s*<(?:\/)?(\w+)(?:[^>]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(e){switch(e){case"drawTable":return l.makeRe("^",l.single.drawTable,"$");case"html":return l.makeRe("^",l.single.html,"(?:",l.single.html,")*","$");case"linkDefinition":return l.makeRe("^",l.single.linkDefinition,"$");case"listLayout":return l.makeRe("^",l.single.list,u("allAttributes"),"*\\s+");case"tableCellAttributes":return l.makeRe("^",l.choiceRe(l.single.tableCellAttributes,u("allAttributes")),"+\\.");case"type":return l.makeRe("^",u("allTypes"));case"typeLayout":return l.makeRe("^",u("allTypes"),u("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return l.makeRe("^",u("allAttributes"),"+");case"allTypes":return l.choiceRe(l.single.div,l.single.foot,l.single.header,l.single.bc,l.single.bq,l.single.notextile,l.single.pre,l.single.table,l.single.para);case"allAttributes":return l.choiceRe(l.attributes.selector,l.attributes.css,l.attributes.lang,l.attributes.align,l.attributes.pad);default:return l.makeRe("^",l.single[e])}},makeRe:function(){for(var e="",t=0;t<arguments.length;++t){var n=arguments[t];e+="string"==typeof n?n:n.source}return new RegExp(e)},choiceRe:function(){for(var e=[arguments[0]],t=1;t<arguments.length;++t)e[2*t-1]="|",e[2*t]=arguments[t];return e.unshift("(?:"),e.push(")"),l.makeRe.apply(null,e)}};function u(e){return l.cache[e]||(l.cache[e]=l.createRe(e))}var c={newLayout:function(e,t){return e.match(u("typeLayout"),!1)?(t.spanningLayout=!1,(t.mode=c.blockType)(e,t)):(o(t)||(e.match(u("listLayout"),!1)?n=c.list:e.match(u("drawTable"),!1)?n=c.table:e.match(u("linkDefinition"),!1)?n=c.linkDefinition:e.match(u("definitionList"))?n=c.definitionList:e.match(u("html"),!1)&&(n=c.html)),(t.mode=n||c.text)(e,t));var n},blockType:function(e,t){var n,r;return t.layoutType=null,(n=e.match(u("type")))?((n=(r=n[0]).match(u("header")))?(t.layoutType="header",t.header=parseInt(n[0][1])):r.match(u("bq"))?t.layoutType="quote":r.match(u("bc"))?t.layoutType="code":r.match(u("foot"))?t.layoutType="footnote":r.match(u("notextile"))?t.layoutType="notextile":r.match(u("pre"))?t.layoutType="pre":r.match(u("div"))?t.layoutType="div":r.match(u("table"))&&(t.layoutType="table"),t.mode=c.attributes,i(t)):(t.mode=c.text)(e,t)},text:function(e,t){if(e.match(u("text")))return i(t);var r=e.next();return'"'===r?(t.mode=c.link)(e,t):n(e,t,r)},attributes:function(e,n){return n.mode=c.layoutLength,e.match(u("attributes"))?a(n,t.attributes):i(n)},layoutLength:function(e,t){return e.eat(".")&&e.eat(".")&&(t.spanningLayout=!0),t.mode=c.text,i(t)},list:function(e,t){var n=e.match(u("list"));t.listDepth=n[0].length;var r=(t.listDepth-1)%3;return t.layoutType=r?1===r?"list2":"list3":"list1",t.mode=c.attributes,i(t)},link:function(e,n){return n.mode=c.text,e.match(u("link"))?(e.match(/\S+/),a(n,t.link)):i(n)},linkDefinition:function(e,n){return e.skipToEnd(),a(n,t.linkDefinition)},definitionList:function(e,t){return e.match(u("definitionList")),t.layoutType="definitionList",e.match(/\s*$/)?t.spanningLayout=!0:t.mode=c.attributes,i(t)},html:function(e,n){return e.skipToEnd(),a(n,t.html)},table:function(e,t){return t.layoutType="table",(t.mode=c.tableCell)(e,t)},tableCell:function(e,t){return e.match(u("tableHeading"))?t.tableHeading=!0:e.eat("|"),t.mode=c.tableCellAttributes,i(t)},tableCellAttributes:function(e,n){return n.mode=c.tableText,e.match(u("tableCellAttributes"))?a(n,t.attributes):i(n)},tableText:function(e,t){return e.match(u("tableText"))?i(t):"|"===e.peek()?(t.mode=c.tableCell,i(t)):n(e,t,e.next())}};e.defineMode("textile",(function(){return{startState:function(){return{mode:c.newLayout}},token:function(e,t){return e.sol()&&function(e,t){t.mode=c.newLayout,t.tableHeading=!1,"definitionList"===t.layoutType&&t.spanningLayout&&e.match(u("definitionListEnd"),!1)&&(t.spanningLayout=!1)}(e,t),t.mode(e,t)},blankLine:s}})),e.defineMIME("text/x-textile","textile")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("tiddlywiki",(function(){var e={},t={allTags:!0,closeAll:!0,list:!0,newJournal:!0,newTiddler:!0,permaview:!0,saveChanges:!0,search:!0,slider:!0,tabs:!0,tag:!0,tagging:!0,tags:!0,tiddler:!0,timeline:!0,today:!0,version:!0,option:!0,with:!0,filter:!0},n=/[\w_\-]/i,r=/^\-\-\-\-+$/,i=/^\/\*\*\*$/,o=/^\*\*\*\/$/,a=/^<<<$/,s=/^\/\/\{\{\{$/,l=/^\/\/\}\}\}$/,u=/^<!--\{\{\{-->$/,c=/^<!--\}\}\}-->$/,d=/^\{\{\{$/,f=/^\}\}\}$/,p=/.*?\}\}\}/;function h(e,t,n){return t.tokenize=n,n(e,t)}function m(t,f){var p=t.sol(),m=t.peek();if(f.block=!1,p&&/[<\/\*{}\-]/.test(m)){if(t.match(d))return f.block=!0,h(t,f,y);if(t.match(a))return"quote";if(t.match(i)||t.match(o))return"comment";if(t.match(s)||t.match(l)||t.match(u)||t.match(c))return"comment";if(t.match(r))return"hr"}if(t.next(),p&&/[\/\*!#;:>|]/.test(m)){if("!"==m)return t.skipToEnd(),"header";if("*"==m)return t.eatWhile("*"),"comment";if("#"==m)return t.eatWhile("#"),"comment";if(";"==m)return t.eatWhile(";"),"comment";if(":"==m)return t.eatWhile(":"),"comment";if(">"==m)return t.eatWhile(">"),"quote";if("|"==m)return"header"}if("{"==m&&t.match(/\{\{/))return h(t,f,y);if(/[hf]/i.test(m)&&/[ti]/i.test(t.peek())&&t.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if('"'==m)return"string";if("~"==m)return"brace";if(/[\[\]]/.test(m)&&t.match(m))return"brace";if("@"==m)return t.eatWhile(n),"link";if(/\d/.test(m))return t.eatWhile(/\d/),"number";if("/"==m){if(t.eat("%"))return h(t,f,g);if(t.eat("/"))return h(t,f,b)}if("_"==m&&t.eat("_"))return h(t,f,_);if("-"==m&&t.eat("-")){if(" "!=t.peek())return h(t,f,w);if(" "==t.peek())return"brace"}return"'"==m&&t.eat("'")?h(t,f,v):"<"==m&&t.eat("<")?h(t,f,x):(t.eatWhile(/[\w\$_]/),e.propertyIsEnumerable(t.current())?"keyword":null)}function g(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="%"==n}return"comment"}function v(e,t){for(var n,r=!1;n=e.next();){if("'"==n&&r){t.tokenize=m;break}r="'"==n}return"strong"}function y(e,t){var n=t.block;return n&&e.current()?"comment":!n&&e.match(p)||n&&e.sol()&&e.match(f)?(t.tokenize=m,"comment"):(e.next(),"comment")}function b(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="/"==n}return"em"}function _(e,t){for(var n,r=!1;n=e.next();){if("_"==n&&r){t.tokenize=m;break}r="_"==n}return"underlined"}function w(e,t){for(var n,r=!1;n=e.next();){if("-"==n&&r){t.tokenize=m;break}r="-"==n}return"strikethrough"}function x(e,n){if("<<"==e.current())return"macro";var r=e.next();return r?">"==r&&">"==e.peek()?(e.next(),n.tokenize=m,"macro"):(e.eatWhile(/[\w\$_]/),t.propertyIsEnumerable(e.current())?"keyword":null):(n.tokenize=m,null)}return{startState:function(){return{tokenize:m}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}})),e.defineMIME("text/x-tiddlywiki","tiddlywiki")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("tiki",(function(e){function t(e,t,n){return function(i,o){for(;!i.eol();){if(i.match(t)){o.tokenize=r;break}i.next()}return n&&(o.tokenize=n),e}}function n(e){return function(t,n){for(;!t.eol();)t.next();return n.tokenize=r,e}}function r(e,i){function o(t){return i.tokenize=t,t(e,i)}var a=e.sol(),s=e.next();switch(s){case"{":return e.eat("/"),e.eatSpace(),e.eatWhile(/[^\s\u00a0=\"\'\/?(}]/),i.tokenize=u,"tag";case"_":if(e.eat("_"))return o(t("strong","__",r));break;case"'":if(e.eat("'"))return o(t("em","''",r));break;case"(":if(e.eat("("))return o(t("variable-2","))",r));break;case"[":return o(t("variable-3","]",r));case"|":if(e.eat("|"))return o(t("comment","||"));break;case"-":if(e.eat("="))return o(t("header string","=-",r));if(e.eat("-"))return o(t("error tw-deleted","--",r));break;case"=":if(e.match("=="))return o(t("tw-underline","===",r));break;case":":if(e.eat(":"))return o(t("comment","::"));break;case"^":return o(t("tw-box","^"));case"~":if(e.match("np~"))return o(t("meta","~/np~"))}if(a)switch(s){case"!":return e.match("!!!!!")||e.match("!!!!")||e.match("!!!")||e.match("!!"),o(n("header string"));case"*":case"#":case"+":return o(n("tw-listitem bracket"))}return null}var i,o,a,s,l=e.indentUnit;function u(e,t){var n,i=e.next(),a=e.peek();return"}"==i?(t.tokenize=r,"tag"):"("==i||")"==i?"bracket":"="==i?(o="equals",">"==a&&(e.next(),a=e.peek()),/[\'\"]/.test(a)||(t.tokenize=function(e,t){for(;!e.eol();){var n=e.next(),r=e.peek();if(" "==n||","==n||/[ )}]/.test(r)){t.tokenize=u;break}}return"string"}),"operator"):/[\'\"]/.test(i)?(t.tokenize=(n=i,function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=u;break}return"string"}),t.tokenize(e,t)):(e.eatWhile(/[^\s\u00a0=\"\'\/?]/),"keyword")}function c(){for(var e=arguments.length-1;e>=0;e--)a.cc.push(arguments[e])}function d(){return c.apply(null,arguments),!0}function f(e,t){var n=a.context&&a.context.noIndent;a.context={prev:a.context,pluginName:e,indent:a.indented,startOfLine:t,noIndent:n}}function p(){a.context&&(a.context=a.context.prev)}function h(e){if("openPlugin"==e)return a.pluginName=i,d(m,(n=a.startOfLine,function(e){return"selfclosePlugin"==e||"endPlugin"==e?d():"endPlugin"==e?(f(a.pluginName,n),d()):d()}));if("closePlugin"==e){var t=!1;return a.context?(t=a.context.pluginName!=i,p()):t=!0,t&&(s="error"),d(function(e){return function(t){return e&&(s="error"),"endPlugin"==t?d():c()}}(t))}return"string"==e?(a.context&&"!cdata"==a.context.name||f("!cdata"),a.tokenize==r&&p(),d()):d();var n}function m(e){return"keyword"==e?(s="attribute",d(m)):"equals"==e?d(g,m):c()}function g(e){return"keyword"==e?(s="string",d()):"string"==e?d(v):c()}function v(e){return"string"==e?d(v):c()}return{startState:function(){return{tokenize:r,cc:[],indented:0,startOfLine:!0,pluginName:null,context:null}},token:function(e,t){if(e.sol()&&(t.startOfLine=!0,t.indented=e.indentation()),e.eatSpace())return null;s=o=i=null;var n=t.tokenize(e,t);if((n||o)&&"comment"!=n)for(a=t;!(t.cc.pop()||h)(o||n););return t.startOfLine=!1,s||n},indent:function(e,t){var n=e.context;if(n&&n.noIndent)return 0;for(n&&/^{\//.test(t)&&(n=n.prev);n&&!n.startOfLine;)n=n.prev;return n?n.indent+l:0},electricChars:"/"}})),e.defineMIME("text/tiki","tiki")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("toml",(function(){return{startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(e,t){if(t.inString||'"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.inString=!0),e.sol()&&0===t.inArray&&(t.lhs=!0),t.inString){for(;t.inString&&!e.eol();)e.peek()===t.stringType?(e.next(),t.inString=!1):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property string":"string"}return t.inArray&&"]"===e.peek()?(e.next(),t.inArray--,"bracket"):t.lhs&&"["===e.peek()&&e.skipTo("]")?(e.next(),"]"===e.peek()&&e.next(),"atom"):"#"===e.peek()?(e.skipToEnd(),"comment"):e.eatSpace()?null:t.lhs&&e.eatWhile((function(e){return"="!=e&&" "!=e}))?"property":t.lhs&&"="===e.peek()?(e.next(),t.lhs=!1,null):!t.lhs&&e.match(/^\d\d\d\d[\d\-\:\.T]*Z/)?"atom":t.lhs||!e.match("true")&&!e.match("false")?t.lhs||"["!==e.peek()?!t.lhs&&e.match(/^\-?\d+(?:\.\d+)?/)?"number":(e.eatSpace()||e.next(),null):(t.inArray++,e.next(),"bracket"):"atom"}}})),e.defineMIME("text/x-toml","toml")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("tornado:inner",(function(){var e=["and","as","assert","autoescape","block","break","class","comment","context","continue","datetime","def","del","elif","else","end","escape","except","exec","extends","false","finally","for","from","global","if","import","in","include","is","json_encode","lambda","length","linkify","load","module","none","not","or","pass","print","put","raise","raw","return","self","set","squeeze","super","true","try","url_escape","while","with","without","xhtml_escape","yield"];function t(n,r){n.eatWhile(/[^\{]/);var i,o=n.next();if("{"==o&&(o=n.eat(/\{|%|#/)))return r.tokenize=("{"==(i=o)&&(i="}"),function(n,r){return n.next()==i&&n.eat("}")?(r.tokenize=t,"tag"):n.match(e)?"keyword":"#"==i?"comment":"string"}),"tag"}return e=new RegExp("^(("+e.join(")|(")+"))\\b"),{startState:function(){return{tokenize:t}},token:function(e,t){return t.tokenize(e,t)}}})),e.defineMode("tornado",(function(t){var n=e.getMode(t,"text/html"),r=e.getMode(t,"tornado:inner");return e.overlayMode(n,r)})),e.defineMIME("text/x-tornado","tornado")}(n(5),n(126),n(234))},function(e,t,n){!function(e){"use strict";e.defineMode("troff",(function(){var e={};function t(t){if(t.eatSpace())return null;var n=t.sol(),r=t.next();if("\\"===r)return t.match("fB")||t.match("fR")||t.match("fI")||t.match("u")||t.match("d")||t.match("%")||t.match("&")?"string":t.match("m[")?(t.skipTo("]"),t.next(),"string"):t.match("s+")||t.match("s-")?(t.eatWhile(/[\d-]/),"string"):t.match("(")||t.match("*(")?(t.eatWhile(/[\w-]/),"string"):"string";if(n&&("."===r||"'"===r)&&t.eat("\\")&&t.eat('"'))return t.skipToEnd(),"comment";if(n&&"."===r){if(t.match("B ")||t.match("I ")||t.match("R "))return"attribute";if(t.match("TH ")||t.match("SH ")||t.match("SS ")||t.match("HP "))return t.skipToEnd(),"quote";if(t.match(/[A-Z]/)&&t.match(/[A-Z]/)||t.match(/[a-z]/)&&t.match(/[a-z]/))return"attribute"}t.eatWhile(/[\w-]/);var i=t.current();return e.hasOwnProperty(i)?e[i]:null}function n(e,n){return(n.tokens[0]||t)(e,n)}return{startState:function(){return{tokens:[]}},token:function(e,t){return n(e,t)}}})),e.defineMIME("text/troff","troff"),e.defineMIME("text/x-troff","troff"),e.defineMIME("application/x-troff","troff")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("ttcn-cfg",(function(e,t){var n,r=e.indentUnit,i=t.keywords||{},o=t.fileNCtrlMaskOptions||{},a=t.externalCommands||{},s=t.multiLineStrings,l=!1!==t.indentStatements,u=/[\|]/;function c(e,t){var r,l=e.next();if('"'==l||"'"==l)return t.tokenize=(r=l,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){var a=e.peek();a&&("b"!=(a=a.toLowerCase())&&"h"!=a&&"o"!=a||e.next()),o=!0;break}i=!i&&"\\"==n}return(o||!i&&!s)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[:=]/.test(l))return n=l,"punctuation";if("#"==l)return e.skipToEnd(),"comment";if(/\d/.test(l))return e.eatWhile(/[\w\.]/),"number";if(u.test(l))return e.eatWhile(u),"operator";if("["==l)return e.eatWhile(/[\w_\]]/),"number sectionTitle";e.eatWhile(/[\w\$_]/);var c=e.current();return i.propertyIsEnumerable(c)?"keyword":o.propertyIsEnumerable(c)?"negative fileNCtrlMaskOptions":a.propertyIsEnumerable(c)?"negative externalCommands":"variable"}function d(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function f(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new d(r,t,n,null,e.context)}function p(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new d((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;n=null;var i=(t.tokenize||c)(e,t);if("comment"==i)return i;if(null==r.align&&(r.align=!0),";"!=n&&":"!=n&&","!=n||"statement"!=r.type)if("{"==n)f(t,e.column(),"}");else if("["==n)f(t,e.column(),"]");else if("("==n)f(t,e.column(),")");else if("}"==n){for(;"statement"==r.type;)r=p(t);for("}"==r.type&&(r=p(t));"statement"==r.type;)r=p(t)}else n==r.type?p(t):l&&(("}"==r.type||"top"==r.type)&&";"!=n||"statement"==r.type&&"newstatement"==n)&&f(t,e.column(),"statement");else p(t);return t.startOfLine=!1,i},electricChars:"{}",lineComment:"#",fold:"brace"}})),e.defineMIME("text/x-ttcn-cfg",{name:"ttcn-cfg",keywords:t("Yes No LogFile FileMask ConsoleMask AppendFile TimeStampFormat LogEventTypes SourceInfoFormat LogEntityName LogSourceInfo DiskFullAction LogFileNumber LogFileSize MatchingHints Detailed Compact SubCategories Stack Single None Seconds DateTime Time Stop Error Retry Delete TCPPort KillTimer NumHCs UnixSocketsEnabled LocalAddress"),fileNCtrlMaskOptions:t("TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION TTCN_USER TTCN_FUNCTION TTCN_STATISTICS TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG EXECUTOR ERROR WARNING PORTEVENT TIMEROP VERDICTOP DEFAULTOP TESTCASE ACTION USER FUNCTION STATISTICS PARALLEL MATCHING DEBUG LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED DEBUG_ENCDEC DEBUG_TESTPORT DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED FUNCTION_RND FUNCTION_UNQUALIFIED MATCHING_DONE MATCHING_MCSUCCESS MATCHING_MCUNSUCC MATCHING_MMSUCCESS MATCHING_MMUNSUCC MATCHING_PCSUCCESS MATCHING_PCUNSUCC MATCHING_PMSUCCESS MATCHING_PMUNSUCC MATCHING_PROBLEM MATCHING_TIMEOUT MATCHING_UNQUALIFIED PARALLEL_PORTCONN PARALLEL_PORTMAP PARALLEL_PTC PARALLEL_UNQUALIFIED PORTEVENT_DUALRECV PORTEVENT_DUALSEND PORTEVENT_MCRECV PORTEVENT_MCSEND PORTEVENT_MMRECV PORTEVENT_MMSEND PORTEVENT_MQUEUE PORTEVENT_PCIN PORTEVENT_PCOUT PORTEVENT_PMIN PORTEVENT_PMOUT PORTEVENT_PQUEUE PORTEVENT_STATE PORTEVENT_UNQUALIFIED STATISTICS_UNQUALIFIED STATISTICS_VERDICT TESTCASE_FINISH TESTCASE_START TESTCASE_UNQUALIFIED TIMEROP_GUARD TIMEROP_READ TIMEROP_START TIMEROP_STOP TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED USER_UNQUALIFIED VERDICTOP_FINAL VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED"),externalCommands:t("BeginControlPart EndControlPart BeginTestCase EndTestCase"),multiLineStrings:!0})}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("ttcn",(function(e,t){var n,r=e.indentUnit,i=t.keywords||{},o=t.builtin||{},a=t.timerOps||{},s=t.portOps||{},l=t.configOps||{},u=t.verdictOps||{},c=t.sutOps||{},d=t.functionOps||{},f=t.verdictConsts||{},p=t.booleanConsts||{},h=t.otherConsts||{},m=t.types||{},g=t.visibilityModifiers||{},v=t.templateMatch||{},y=t.multiLineStrings,b=!1!==t.indentStatements,_=/[+\-*&@=<>!\/]/;function w(e,t){var r,b=e.next();if('"'==b||"'"==b)return t.tokenize=(r=b,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){var a=e.peek();a&&("b"!=(a=a.toLowerCase())&&"h"!=a&&"o"!=a||e.next()),o=!0;break}i=!i&&"\\"==n}return(o||!i&&!y)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\\:\?\.]/.test(b))return n=b,"punctuation";if("#"==b)return e.skipToEnd(),"atom preprocessor";if("%"==b)return e.eatWhile(/\b/),"atom ttcn3Macros";if(/\d/.test(b))return e.eatWhile(/[\w\.]/),"number";if("/"==b){if(e.eat("*"))return t.tokenize=x,x(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(_.test(b))return"@"==b&&(e.match("try")||e.match("catch")||e.match("lazy"))?"keyword":(e.eatWhile(_),"operator");e.eatWhile(/[\w\$_\xa1-\uffff]/);var w=e.current();return i.propertyIsEnumerable(w)?"keyword":o.propertyIsEnumerable(w)?"builtin":a.propertyIsEnumerable(w)?"def timerOps":l.propertyIsEnumerable(w)?"def configOps":u.propertyIsEnumerable(w)?"def verdictOps":s.propertyIsEnumerable(w)?"def portOps":c.propertyIsEnumerable(w)?"def sutOps":d.propertyIsEnumerable(w)?"def functionOps":f.propertyIsEnumerable(w)?"string verdictConsts":p.propertyIsEnumerable(w)?"string booleanConsts":h.propertyIsEnumerable(w)?"string otherConsts":m.propertyIsEnumerable(w)?"builtin types":g.propertyIsEnumerable(w)?"builtin visibilityModifiers":v.propertyIsEnumerable(w)?"atom templateMatch":"variable"}function x(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function k(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function E(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new k(r,t,n,null,e.context)}function S(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new k((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;n=null;var i=(t.tokenize||w)(e,t);if("comment"==i)return i;if(null==r.align&&(r.align=!0),";"!=n&&":"!=n&&","!=n||"statement"!=r.type)if("{"==n)E(t,e.column(),"}");else if("["==n)E(t,e.column(),"]");else if("("==n)E(t,e.column(),")");else if("}"==n){for(;"statement"==r.type;)r=S(t);for("}"==r.type&&(r=S(t));"statement"==r.type;)r=S(t)}else n==r.type?S(t):b&&(("}"==r.type||"top"==r.type)&&";"!=n||"statement"==r.type&&"newstatement"==n)&&E(t,e.column(),"statement");else S(t);return t.startOfLine=!1,i},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}})),function(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.builtin),i(n.timerOps),i(n.portOps),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}(["text/x-ttcn","text/x-ttcn3","text/x-ttcnpp"],{name:"ttcn",keywords:t("activate address alive all alt altstep and and4b any break case component const continue control deactivate display do else encode enumerated except exception execute extends extension external for from function goto group if import in infinity inout interleave label language length log match message mixed mod modifies module modulepar mtc noblock not not4b nowait of on optional or or4b out override param pattern port procedure record recursive rem repeat return runs select self sender set signature system template testcase to type union value valueof var variant while with xor xor4b"),builtin:t("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue decomp decvalue float2int float2str hex2bit hex2int hex2oct hex2str int2bit int2char int2float int2hex int2oct int2str int2unichar isbound ischosen ispresent isvalue lengthof log2str oct2bit oct2char oct2hex oct2int oct2str regexp replace rnd sizeof str2bit str2float str2hex str2int str2oct substr unichar2int unichar2char enum2int"),types:t("anytype bitstring boolean char charstring default float hexstring integer objid octetstring universal verdicttype timer"),timerOps:t("read running start stop timeout"),portOps:t("call catch check clear getcall getreply halt raise receive reply send trigger"),configOps:t("create connect disconnect done kill killed map unmap"),verdictOps:t("getverdict setverdict"),sutOps:t("action"),functionOps:t("apply derefers refers"),verdictConsts:t("error fail inconc none pass"),booleanConsts:t("true false"),otherConsts:t("null NULL omit"),visibilityModifiers:t("private public friend"),templateMatch:t("complement ifpresent subset superset permutation"),multiLineStrings:!0})}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("turtle",(function(e){var t,n=e.indentUnit;function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}r([]);var i=r(["@prefix","@base","a"]),o=/[*+\-<>=&|]/;function a(e,n){var r,s=e.next();if(t=null,"<"!=s||e.match(/^[\s\u00a0=]/,!1)){if('"'==s||"'"==s)return n.tokenize=(r=s,function(e,t){for(var n,i=!1;null!=(n=e.next());){if(n==r&&!i){t.tokenize=a;break}i=!i&&"\\"==n}return"string"}),n.tokenize(e,n);if(/[{}\(\),\.;\[\]]/.test(s))return t=s,null;if("#"==s)return e.skipToEnd(),"comment";if(o.test(s))return e.eatWhile(o),null;if(":"==s)return"operator";if(e.eatWhile(/[_\w\d]/),":"==e.peek())return"variable-3";var l=e.current();return i.test(l)?"meta":s>="A"&&s<="Z"?"comment":"keyword"}return e.match(/^[^\s\u00a0>]*>?/),"atom"}function s(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function l(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:a,context:null,indent:0,col:0}},token:function(e,n){if(e.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=e.indentation()),e.eatSpace())return null;var r=n.tokenize(e,n);if("comment"!=r&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==t)s(n,")",e.column());else if("["==t)s(n,"]",e.column());else if("{"==t)s(n,"}",e.column());else if(/[\]\}\)]/.test(t)){for(;n.context&&"pattern"==n.context.type;)l(n);n.context&&t==n.context.type&&l(n)}else"."==t&&n.context&&"pattern"==n.context.type?l(n):/atom|string|variable/.test(r)&&n.context&&(/[\}\]]/.test(n.context.type)?s(n,"pattern",e.column()):"pattern"!=n.context.type||n.context.align||(n.context.align=!0,n.context.col=e.column()));return r},indent:function(e,t){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n):0},lineComment:"#"}})),e.defineMIME("text/turtle","turtle")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("twig:inner",(function(){var e=["and","as","autoescape","endautoescape","block","do","endblock","else","elseif","extends","for","endfor","embed","endembed","filter","endfilter","flush","from","if","endif","in","is","include","import","not","or","set","spaceless","endspaceless","with","endwith","trans","endtrans","blocktrans","endblocktrans","macro","endmacro","use","verbatim","endverbatim"],t=/^[+\-*&%=<>!?|~^]/,n=/^[:\[\(\{]/,r=["true","false","null","empty","defined","divisibleby","divisible by","even","odd","iterable","sameas","same as"],i=/^(\d[+\-\*\/])?\d+(\.\d+)?/;return e=new RegExp("(("+e.join(")|(")+"))\\b"),r=new RegExp("(("+r.join(")|(")+"))\\b"),{startState:function(){return{}},token:function(o,a){return function(o,a){var s=o.peek();if(a.incomment)return o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(a.intag){if(a.operator){if(a.operator=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.sign){if(a.sign=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.instring)return s==a.instring&&(a.instring=!1),o.next(),"string";if("'"==s||'"'==s)return a.instring=s,o.next(),"string";if(o.match(a.intag+"}")||o.eat("-")&&o.match(a.intag+"}"))return a.intag=!1,"tag";if(o.match(t))return a.operator=!0,"operator";if(o.match(n))a.sign=!0;else if(o.eat(" ")||o.sol()){if(o.match(e))return"keyword";if(o.match(r))return"atom";if(o.match(i))return"number";o.sol()&&o.next()}else o.next();return"variable"}if(o.eat("{")){if(o.eat("#"))return a.incomment=!0,o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(s=o.eat(/\{|%/))return a.intag=s,"{"==s&&(a.intag="}"),o.eat("-"),"tag"}o.next()}(o,a)}}})),e.defineMode("twig",(function(t,n){var r=e.getMode(t,"twig:inner");return n&&n.base?e.multiplexingMode(e.getMode(t,n.base),{open:/\{[{#%]/,close:/[}#%]\}/,mode:r,parseDelimiters:!0}):r})),e.defineMIME("text/x-twig","twig")}(n(5),n(403))},function(e,t,n){!function(e){"use strict";e.defineMode("vb",(function(t,n){function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var i=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),o=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),a=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),s=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),l=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),u=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),c=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],d=["else","elseif","case","catch","finally"],f=["next","loop"],p=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],h=r(p),m=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],g=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],v=r(m),y=r(g),b=r(c),_=r(d),w=r(f),x=r(["end"]),k=r(["do"]);function E(e,t){t.currentIndent++}function S(e,t){t.currentIndent--}function O(e,t){if(e.eatSpace())return null;var r,c;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var d=!1;if((e.match(/^\d*\.\d+F?/i)||e.match(/^\d+\.\d*F?/)||e.match(/^\.\d+F?/))&&(d=!0),d)return e.eat(/J/i),"number";var f=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?f=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),f=!0):e.match(/^0(?![\dx])/i)&&(f=!0),f)return e.eat(/L/i),"number"}return e.match('"')?(t.tokenize=(r=e.current(),c=1==r.length,function(e,t){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(r))return t.tokenize=O,"string";e.eat(/['"]/)}if(c){if(n.singleLineStringErrors)return"error";t.tokenize=O}return"string"}),t.tokenize(e,t)):e.match(l)||e.match(s)?null:e.match(a)||e.match(i)||e.match(h)?"operator":e.match(o)?null:e.match(k)?(E(0,t),t.doInCurrentLine=!0,"keyword"):e.match(b)?(t.doInCurrentLine?t.doInCurrentLine=!1:E(0,t),"keyword"):e.match(_)?"keyword":e.match(x)?(S(0,t),S(0,t),"keyword"):e.match(w)?(S(0,t),"keyword"):e.match(y)||e.match(v)?"keyword":e.match(u)?"variable":(e.next(),"error")}return e.registerHelper("hintWords","vb",c.concat(d).concat(f).concat(p).concat(m).concat(g)),{electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:O,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var n=function(e,t){var n=t.tokenize(e,t),r=e.current();if("."===r)return"variable"===(n=t.tokenize(e,t))?"variable":"error";var i="[({".indexOf(r);return-1!==i&&E(0,t),-1!==(i="])}".indexOf(r))&&S(0,t)?"error":n}(e,t);return t.lastToken={style:n,content:e.current()},n},indent:function(e,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(w)||r.match(x)||r.match(_)?t.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*t.indentUnit},lineComment:"'"}})),e.defineMIME("text/x-vb","vb")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("vbscript",(function(e,t){function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var r=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),i=new RegExp("^((<>)|(<=)|(>=))"),o=new RegExp("^[\\.,]"),a=new RegExp("^[\\(\\)]"),s=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),l=n(["and","or","not","xor","is","mod","eqv","imp"]),u=["WScript","err","debug","RegExp"],c=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"].concat(["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"]);u=u.concat(["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"]),e.isASP&&(u=u.concat(["server","response","request","session","application"]),c=c.concat(["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"]));var d=n(["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"]),f=n(["true","false","nothing","empty","null"]),p=n(["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"]),h=n(u),m=n(c),g=n(["class","sub","select","while","if","function","property","with","for"]),v=n(["else","elseif","case"]),y=n(["next","loop","wend"]),b=n(["end"]),_=n(["do"]),w=n(["on error resume next","exit"]),x=n(["rem"]);function k(e,t){t.currentIndent++}function E(e,t){t.currentIndent--}function S(e,n){if(e.eatSpace())return"space";var u,c;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(x))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var O=!1;if((e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)||e.match(/^\.\d+/))&&(O=!0),O)return e.eat(/J/i),"number";var T=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?T=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),T=!0):e.match(/^0(?![\dx])/i)&&(T=!0),T)return e.eat(/L/i),"number"}return e.match('"')?(n.tokenize=(u=e.current(),c=1==u.length,function(e,n){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(u))return n.tokenize=S,"string";e.eat(/['"]/)}if(c){if(t.singleLineStringErrors)return"error";n.tokenize=S}return"string"}),n.tokenize(e,n)):e.match(i)||e.match(r)||e.match(l)?"operator":e.match(o)?null:e.match(a)?"bracket":e.match(w)?(n.doInCurrentLine=!0,"keyword"):e.match(_)?(k(0,n),n.doInCurrentLine=!0,"keyword"):e.match(g)?(n.doInCurrentLine?n.doInCurrentLine=!1:k(0,n),"keyword"):e.match(v)?"keyword":e.match(b)?(E(0,n),E(0,n),"keyword"):e.match(y)?(n.doInCurrentLine?n.doInCurrentLine=!1:E(0,n),"keyword"):e.match(d)?"keyword":e.match(f)?"atom":e.match(m)?"variable-2":e.match(p)?"builtin":e.match(h)?"variable-2":e.match(s)?"variable":(e.next(),"error")}return{electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:S,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var n=function(e,t){var n=t.tokenize(e,t),r=e.current();return"."===r?(n=t.tokenize(e,t),r=e.current(),!n||"variable"!==n.substr(0,8)&&"builtin"!==n&&"keyword"!==n?"error":("builtin"!==n&&"keyword"!==n||(n="variable"),c.indexOf(r.substr(1))>-1&&(n="variable-2"),n)):n}(e,t);return t.lastToken={style:n,content:e.current()},"space"===n&&(n=null),n},indent:function(t,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(y)||r.match(b)||r.match(v)?e.indentUnit*(t.currentIndent-1):t.currentIndent<0?0:t.currentIndent*e.indentUnit}}})),e.defineMIME("text/vbscript","vbscript")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("velocity",(function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t=e("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"),n=e("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"),r=e("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"),i=/[+\-*&%=<>!?:\/|]/;function o(e,t,n){return t.tokenize=n,n(e,t)}function a(e,a){var c=a.beforeParams;a.beforeParams=!1;var d=e.next();if("'"==d&&!a.inString&&a.inParams)return a.lastTokenWasBuiltin=!1,o(e,a,s(d));if('"'!=d){if(/[\[\]{}\(\),;\.]/.test(d))return"("==d&&c?a.inParams=!0:")"==d&&(a.inParams=!1,a.lastTokenWasBuiltin=!0),null;if(/\d/.test(d))return a.lastTokenWasBuiltin=!1,e.eatWhile(/[\w\.]/),"number";if("#"==d&&e.eat("*"))return a.lastTokenWasBuiltin=!1,o(e,a,l);if("#"==d&&e.match(/ *\[ *\[/))return a.lastTokenWasBuiltin=!1,o(e,a,u);if("#"==d&&e.eat("#"))return a.lastTokenWasBuiltin=!1,e.skipToEnd(),"comment";if("$"==d)return e.eatWhile(/[\w\d\$_\.{}-]/),r&&r.propertyIsEnumerable(e.current())?"keyword":(a.lastTokenWasBuiltin=!0,a.beforeParams=!0,"builtin");if(i.test(d))return a.lastTokenWasBuiltin=!1,e.eatWhile(i),"operator";e.eatWhile(/[\w\$_{}@]/);var f=e.current();return t&&t.propertyIsEnumerable(f)?"keyword":n&&n.propertyIsEnumerable(f)||e.current().match(/^#@?[a-z0-9_]+ *$/i)&&"("==e.peek()&&(!n||!n.propertyIsEnumerable(f.toLowerCase()))?(a.beforeParams=!0,a.lastTokenWasBuiltin=!1,"keyword"):a.inString?(a.lastTokenWasBuiltin=!1,"string"):e.pos>f.length&&"."==e.string.charAt(e.pos-f.length-1)&&a.lastTokenWasBuiltin?"builtin":(a.lastTokenWasBuiltin=!1,null)}return a.lastTokenWasBuiltin=!1,a.inString?(a.inString=!1,"string"):a.inParams?o(e,a,s(d)):void 0}function s(e){return function(t,n){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==e&&!i){o=!0;break}if('"'==e&&"$"==t.peek()&&!i){n.inString=!0,o=!0;break}i=!i&&"\\"==r}return o&&(n.tokenize=a),"string"}}function l(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=a;break}r="*"==n}return"comment"}function u(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=a;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}return{startState:function(){return{tokenize:a,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"#*",blockCommentEnd:"*#",lineComment:"##",fold:"velocity"}})),e.defineMIME("text/velocity","velocity")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("verilog",(function(t,n){var r=t.indentUnit,i=n.statementIndentUnit||r,o=n.dontAlignCalls,a=n.noIndentKeywords||[],s=n.multiLineStrings,l=n.hooks||{};function u(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var c,d,f=u("accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 null or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor"),p=/[\+\-\*\/!~&|^%=?:]/,h=/[\[\]{}()]/,m=/\d[0-9_]*/,g=/\d*\s*'s?d\s*\d[0-9_]*/i,v=/\d*\s*'s?b\s*[xz01][xz01_]*/i,y=/\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i,b=/\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i,_=/(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i,w=/^((\w+)|[)}\]])/,x=/[)}\]]/,k=u("case checker class clocking config function generate interface module package primitive program property specify sequence table task"),E={};for(var S in k)E[S]="end"+S;for(var O in E.begin="end",E.casex="endcase",E.casez="endcase",E.do="while",E.fork="join;join_any;join_none",E.covergroup="endgroup",a)S=a[O],E[S]&&(E[S]=void 0);var T=u("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while");function C(e,t){var n,r,i=e.peek();if(l[i]&&0!=(n=l[i](e,t)))return n;if(l.tokenBase&&0!=(n=l.tokenBase(e,t)))return n;if(/[,;:\.]/.test(i))return c=e.next(),null;if(h.test(i))return c=e.next(),"bracket";if("`"==i)return e.next(),e.eatWhile(/[\w\$_]/)?"def":null;if("$"==i)return e.next(),e.eatWhile(/[\w\$_]/)?"meta":null;if("#"==i)return e.next(),e.eatWhile(/[\d_.]/),"def";if('"'==i)return e.next(),t.tokenize=(r=i,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"\\"==n}return(o||!i&&!s)&&(t.tokenize=C),"string"}),t.tokenize(e,t);if("/"==i){if(e.next(),e.eat("*"))return t.tokenize=A,A(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}if(e.match(_)||e.match(g)||e.match(v)||e.match(y)||e.match(b)||e.match(m)||e.match(_))return"number";if(e.eatWhile(p))return"meta";if(e.eatWhile(/[\w\$_]/)){var o=e.current();return f[o]?(E[o]&&(c="newblock"),T[o]&&(c="newstatement"),d=o,"keyword"):"variable"}return e.next(),null}function A(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=C;break}r="*"==n}return"comment"}function P(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function R(e,t,n){var r=new P(e.indented,t,n,null,e.context);return e.context=r}function M(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function I(e,t){if(e==t)return!0;var n=t.split(";");for(var r in n)if(e==n[r])return!0;return!1}return{electricInput:function(){var e=[];for(var t in E)if(E[t]){var n=E[t].split(";");for(var r in n)e.push(n[r])}return new RegExp("[{}()\\[\\]]|("+e.join("|")+")$")}(),startState:function(e){var t={tokenize:null,context:new P((e||0)-r,0,"top",!1),indented:0,startOfLine:!0};return l.startState&&l.startState(t),t},token:function(e,t){var n,r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),l.token&&void 0!==(n=l.token(e,t)))return n;if(e.eatSpace())return null;if(c=null,d=null,"comment"==(n=(t.tokenize||C)(e,t))||"meta"==n||"variable"==n)return n;if(null==r.align&&(r.align=!0),c==r.type)M(t);else if(";"==c&&"statement"==r.type||r.type&&I(d,r.type))for(r=M(t);r&&"statement"==r.type;)r=M(t);else if("{"==c)R(t,e.column(),"}");else if("["==c)R(t,e.column(),"]");else if("("==c)R(t,e.column(),")");else if(r&&"endcase"==r.type&&":"==c)R(t,e.column(),"statement");else if("newstatement"==c)R(t,e.column(),"statement");else if("newblock"==c&&("function"!=d||!r||"statement"!=r.type&&"endgroup"!=r.type))if("task"==d&&r&&"statement"==r.type);else{var i=E[d];R(t,e.column(),i)}return t.startOfLine=!1,n},indent:function(t,n){if(t.tokenize!=C&&null!=t.tokenize)return e.Pass;if(l.indent){var a=l.indent(t);if(a>=0)return a}var s=t.context,u=n&&n.charAt(0);"statement"==s.type&&"}"==u&&(s=s.prev);var c=!1,d=n.match(w);return d&&(c=I(d[0],s.type)),"statement"==s.type?s.indented+("{"==u?0:i):x.test(s.type)&&s.align&&!o?s.column+(c?0:1):")"!=s.type||c?s.indented+(c?0:r):s.indented+i},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}})),e.defineMIME("text/x-verilog",{name:"verilog"}),e.defineMIME("text/x-systemverilog",{name:"verilog"});var t={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"hr","/":"property","/-":"property","@":"variable-3","@-":"variable-3","@++":"variable-3","@+=":"variable-3","@+=-":"variable-3","@--":"variable-3","@-=":"variable-3","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable-2","**":"variable-2","\\":"keyword",'"':"comment"},n={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},r=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,i=/^[! ] /,o=/^[! ] */,a=/^\/[\/\*]/;function s(e,t,n){var r=t/3;return"tlv-"+e.tlvIndentationStyle[r]+"-"+n}e.defineMIME("text/x-tlv",{name:"verilog",hooks:{electricInput:!1,token:function(e,l){var u=void 0;if(e.sol()&&!l.tlvInBlockComment){"\\"==e.peek()&&(u="def",e.skipToEnd(),e.string.match(/\\SV/)?l.tlvCodeActive=!1:e.string.match(/\\TLV/)&&(l.tlvCodeActive=!0)),l.tlvCodeActive&&0==e.pos&&0==l.indented&&(g=e.match(o,!1))&&(l.indented=g[0].length);var c=l.indented,d=c/3;if(d<=l.tlvIndentationStyle.length){var f=e.string.length==c,p=3*d;if(p<e.string.length){var h=e.string.slice(p),m=h[0];n[m]&&(g=h.match(r))&&t[g[1]]&&(c+=3,"\\"==m&&p>0||(l.tlvIndentationStyle[d]=n[m],d++))}if(!f)for(;l.tlvIndentationStyle.length>d;)l.tlvIndentationStyle.pop()}l.tlvNextIndent=c}if(l.tlvCodeActive){var g,v=!1;if(void 0!==u)u+=" "+s(l,0,"scope-ident");else if(e.pos/3<l.tlvIndentationStyle.length&&(g=e.match(e.sol()?i:/^ /)))u="tlv-indent-"+(e.pos%2==0?"even":"odd")+" "+s(l,e.pos-3,"indent"),"!"==g[0].charAt(0)&&(u+=" tlv-alert-line-prefix"),function(e){var t;return(t=e.match(r,!1))&&t[2].length>0}(e)&&(u+=" "+s(l,e.pos,"before-scope-ident"));else if(l.tlvInBlockComment)e.match(/^.*?\*\//)?l.tlvInBlockComment=!1:e.skipToEnd(),u="comment";else if((g=e.match(a))&&!l.tlvInBlockComment)"//"==g[0]?e.skipToEnd():l.tlvInBlockComment=!0,u="comment";else if(g=e.match(r)){var y=g[1],b=g[2];t.hasOwnProperty(y)&&(b.length>0||e.eol())?(u=t[y],e.column()==l.indented&&(u+=" "+s(l,e.column(),"scope-ident"))):(e.backUp(e.current().length-1),u="tlv-default")}else e.match(/^\t+/)?u="tlv-tab":e.match(/^[\[\]{}\(\);\:]+/)?u="meta":(g=e.match(/^[mM]4([\+_])?[\w\d_]*/))?u="+"==g[1]?"tlv-m4-plus":"tlv-m4":e.match(/^ +/)?u=e.eol()?"error":"tlv-default":e.match(/^[\w\d_]+/)?u="number":(e.next(),u="tlv-default");v&&(u+=" tlv-statement")}else e.match(/^[mM]4([\w\d_]*)/)&&(u="tlv-m4");return u},indent:function(e){return 1==e.tlvCodeActive?e.tlvNextIndent:-1},startState:function(e){e.tlvIndentationStyle=[],e.tlvCodeActive=!0,e.tlvNextIndent=-1,e.tlvInBlockComment=!1}}})}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(","),r=0;r<n.length;++r){var i=n[r].toUpperCase(),o=n[r].charAt(0).toUpperCase()+n[r].slice(1);t[n[r]]=!0,t[i]=!0,t[o]=!0}return t}function n(e){return e.eatWhile(/[\w\$_]/),"meta"}e.defineMode("vhdl",(function(e,r){var i,o=e.indentUnit,a=r.atoms||t("null"),s=r.hooks||{"`":n,$:n},l=r.multiLineStrings,u=t("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block,body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case,end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for,function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage,literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map,postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal,sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"),c=t("architecture,entity,begin,case,port,else,elsif,end,for,function,if"),d=/[&|~><!\)\(*#%@+\/=?\:;}{,\.\^\-\[\]]/;function f(e,t){var n,r=e.next();if(s[r]){var o=s[r](e,t);if(!1!==o)return o}if('"'==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"--"==r}return(o||!i&&!l)&&(t.tokenize=f),"string-2"}),t.tokenize(e,t);if("'"==r)return t.tokenize=function(e){return function(t,n){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==e&&!i){o=!0;break}i=!i&&"--"==r}return(o||!i&&!l)&&(n.tokenize=f),"string"}}(r),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(r))return i=r,null;if(/[\d']/.test(r))return e.eatWhile(/[\w\.']/),"number";if("-"==r&&e.eat("-"))return e.skipToEnd(),"comment";if(d.test(r))return e.eatWhile(d),"operator";e.eatWhile(/[\w\$_]/);var p=e.current();return u.propertyIsEnumerable(p.toLowerCase())?(c.propertyIsEnumerable(p)&&(i="newstatement"),"keyword"):a.propertyIsEnumerable(p)?"atom":"variable"}function p(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function h(e,t,n){return e.context=new p(e.indented,t,n,null,e.context)}function m(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new p((e||0)-o,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;i=null;var r=(t.tokenize||f)(e,t);if("comment"==r||"meta"==r)return r;if(null==n.align&&(n.align=!0),";"!=i&&":"!=i||"statement"!=n.type)if("{"==i)h(t,e.column(),"}");else if("["==i)h(t,e.column(),"]");else if("("==i)h(t,e.column(),")");else if("}"==i){for(;"statement"==n.type;)n=m(t);for("}"==n.type&&(n=m(t));"statement"==n.type;)n=m(t)}else i==n.type?m(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==i)&&h(t,e.column(),"statement");else m(t);return t.startOfLine=!1,r},indent:function(e,t){if(e.tokenize!=f&&null!=e.tokenize)return 0;var n=t&&t.charAt(0),r=e.context,i=n==r.type;return"statement"==r.type?r.indented+("{"==n?0:o):r.align?r.column+(i?0:1):r.indented+(i?0:o)},electricChars:"{}"}})),e.defineMIME("text/x-vhdl","vhdl")}(n(5))},function(e,t,n){!function(e){"use strict";var t,r;t=n(5),n(234),n(233),n(198),n(653),n(232),n(660),n(661),n(657),n(655),r={script:[["lang",/coffee(script)?/,"coffeescript"],["type",/^(?:text|application)\/(?:x-)?coffee(?:script)?$/,"coffeescript"],["lang",/^babel$/,"javascript"],["type",/^text\/babel$/,"javascript"],["type",/^text\/ecmascript-\d+$/,"javascript"]],style:[["lang",/^stylus$/i,"stylus"],["lang",/^sass$/i,"sass"],["lang",/^less$/i,"text/x-less"],["lang",/^scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?styl(us)?$/i,"stylus"],["type",/^text\/sass/i,"sass"],["type",/^(text\/)?(x-)?scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?less$/i,"text/x-less"]],template:[["lang",/^vue-template$/i,"vue"],["lang",/^pug$/i,"pug"],["lang",/^handlebars$/i,"handlebars"],["type",/^(text\/)?(x-)?pug$/i,"pug"],["type",/^text\/x-handlebars-template$/i,"handlebars"],[null,null,"vue-template"]]},t.defineMode("vue-template",(function(e,n){return t.overlayMode(t.getMode(e,n.backdrop||"text/html"),{token:function(e){if(e.match(/^\{\{.*?\}\}/))return"meta mustache";for(;e.next()&&!e.match("{{",!1););return null}})})),t.defineMode("vue",(function(e){return t.getMode(e,{name:"htmlmixed",tags:r})}),"htmlmixed","xml","javascript","coffeescript","css","sass","stylus","pug","handlebars"),t.defineMIME("script/x-vue","vue"),t.defineMIME("text/x-vue","vue")}()},function(e,t,n){!function(e){"use strict";e.defineSimpleMode("wast",{start:[{regex:/[+\-]?(?:nan(?::0x[0-9a-fA-F]+)?|infinity|inf|0x[0-9a-fA-F]+\.?[0-9a-fA-F]*p[+\/-]?\d+|\d+(?:\.\d*)?[eE][+\-]?\d*|\d+\.\d*|0x[0-9a-fA-F]+|\d+)/,token:"number"},{regex:/mut|nop|block|if|then|else|loop|br_if|br_table|br|call(_indirect)?|drop|end|return(_call(_indirect)?)?|local\.(get|set|tee)|global\.(get|set)|i(32|64)\.(store(8|16)|(load(8|16)_[su]))|i64\.(load32_[su]|store32)|[fi](32|64)\.(const|load|store)|f(32|64)\.(abs|add|ceil|copysign|div|eq|floor|[gl][et]|max|min|mul|nearest|neg?|sqrt|sub|trunc)|i(32|64)\.(a[dn]d|c[lt]z|(div|rem)_[su]|eqz?|[gl][te]_[su]|mul|ne|popcnt|rot[lr]|sh(l|r_[su])|sub|x?or)|i64\.extend_[su]_i32|i32\.wrap_i64|i(32|64)\.trunc_f(32|64)_[su]|f(32|64)\.convert_i(32|64)_[su]|f64\.promote_f32|f32\.demote_f64|f32\.reinterpret_i32|i32\.reinterpret_f32|f64\.reinterpret_i64|i64\.reinterpret_f64|select|unreachable|current_memory|memory(\.((atomic\.(notify|wait(32|64)))|grow|size))?|type|func|param|result|local|global|module|table|start|elem|data|align|offset|import|export|i64\.atomic\.(load32_u|store32|rmw32\.(a[dn]d|sub|x?or|(cmp)?xchg)_u)|i(32|64)\.atomic\.(load((8|16)_u)?|store(8|16)?|rmw(\.(a[dn]d|sub|x?or|(cmp)?xchg)|(8|16)\.(a[dn]d|sub|x?or|(cmp)?xchg)_u))|v128\.(load|store|const|not|andnot|and|or|xor|bitselect)|i(8x16|16x8|32x4|64x2)\.(shl|shr_[su])|i(8x16|16x8)\.(extract_lane_[su]|((add|sub)_saturate_[su])|avgr_u)|(i(8x16|16x8|32x4|64x2)|f(32x4|64x2))\.(splat|replace_lane|neg|add|sub)|i(8x16|16x8|32x4)\.(eq|ne|([lg][te]_[su])|abs|any_true|all_true|bitmask|((min|max)_[su]))|f(32x4|64x2)\.(eq|ne|[lg][te]|abs|sqrt|mul|div|min|max)|[fi](32x4|64x2)\.extract_lane|v8x16\.(shuffle|swizzle)|i16x8\.(load8x8_[su]|narrow_i32x4_[su]|widen_(low|high)_i8x16_[su]|mul)|i32x4\.(load16x4_[su]|widen_(low|high)_i16x8_[su]|mul|trunc_sat_f32x4_[su])|i64x2\.(load32x2_[su]|mul)|(v(8x16|16x8|32x4|64x2)\.load_splat)|i8x16\.narrow_i16x8_[su]|f32x4\.convert_i32x4_[su]/,token:"keyword"},{regex:/\b(anyfunc|[fi](32|64))\b/,token:"atom"},{regex:/\$([a-zA-Z0-9_`\+\-\*\/\\\^~=<>!\?@#$%&|:\.]+)/,token:"variable-2"},{regex:/"(?:[^"\\\x00-\x1f\x7f]|\\[nt\\'"]|\\[0-9a-fA-F][0-9a-fA-F])*"/,token:"string"},{regex:/\(;.*?/,token:"comment",next:"comment"},{regex:/;;.*$/,token:"comment"},{regex:/\(/,indent:!0},{regex:/\)/,dedent:!0}],comment:[{regex:/.*?;\)/,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"]}}),e.defineMIME("text/webassembly","wast")}(n(5),n(199))},function(e,t,n){!function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"],r=t(n),i=["unsigned","short","long","unrestricted","float","double","boolean","byte","octet","Promise","ArrayBuffer","DataView","Int8Array","Int16Array","Int32Array","Uint8Array","Uint16Array","Uint32Array","Uint8ClampedArray","Float32Array","Float64Array","ByteString","DOMString","USVString","sequence","object","RegExp","Error","DOMException","FrozenArray","any","void"],o=t(i),a=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"],s=t(a),l=["true","false","Infinity","NaN","null"],u=t(l);e.registerHelper("hintWords","webidl",n.concat(i).concat(a).concat(l));var c=t(["callback","dictionary","enum","interface"]),d=t(["typedef"]),f=/^[:<=>?]/,p=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,h=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,m=/^_?[A-Za-z][0-9A-Z_a-z-]*/,g=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,v=/^"[^"]*"/,y=/^\/\*.*?\*\//,b=/^\/\*.*/,_=/^.*?\*\//;e.defineMode("webidl",(function(){return{startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(e,t){var n=function(e,t){if(e.eatSpace())return null;if(t.inComment)return e.match(_)?(t.inComment=!1,"comment"):(e.skipToEnd(),"comment");if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(y))return"comment";if(e.match(b))return t.inComment=!0,"comment";if(e.match(/^-?[0-9\.]/,!1)&&(e.match(p)||e.match(h)))return"number";if(e.match(v))return"string";if(t.startDef&&e.match(m))return"def";if(t.endDef&&e.match(g))return t.endDef=!1,"def";if(e.match(s))return"keyword";if(e.match(o)){var n=t.lastToken,i=(e.match(/^\s*(.+?)\b/,!1)||[])[1];return":"===n||"implements"===n||"implements"===i||"="===i?"builtin":"variable-3"}return e.match(r)?"builtin":e.match(u)?"atom":e.match(m)?"variable":e.match(f)?"operator":(e.next(),null)}(e,t);if(n){var i=e.current();t.lastToken=i,"keyword"===n?(t.startDef=c.test(i),t.endDef=t.endDef||d.test(i)):t.startDef=!1}return n}}})),e.defineMIME("text/x-webidl","webidl")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("xquery",(function(){var e=function(){function e(e){return{type:e,style:"keyword"}}for(var t=e("operator"),n={type:"atom",style:"atom"},r={type:"axis_specifier",style:"qualifier"},i={",":{type:"punctuation",style:null}},o=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"],a=0,s=o.length;a<s;a++)i[o[a]]=e(o[a]);var l=["xs:anyAtomicType","xs:anySimpleType","xs:anyType","xs:anyURI","xs:base64Binary","xs:boolean","xs:byte","xs:date","xs:dateTime","xs:dateTimeStamp","xs:dayTimeDuration","xs:decimal","xs:double","xs:duration","xs:ENTITIES","xs:ENTITY","xs:float","xs:gDay","xs:gMonth","xs:gMonthDay","xs:gYear","xs:gYearMonth","xs:hexBinary","xs:ID","xs:IDREF","xs:IDREFS","xs:int","xs:integer","xs:item","xs:java","xs:language","xs:long","xs:Name","xs:NCName","xs:negativeInteger","xs:NMTOKEN","xs:NMTOKENS","xs:nonNegativeInteger","xs:nonPositiveInteger","xs:normalizedString","xs:NOTATION","xs:numeric","xs:positiveInteger","xs:precisionDecimal","xs:QName","xs:short","xs:string","xs:time","xs:token","xs:unsignedByte","xs:unsignedInt","xs:unsignedLong","xs:unsignedShort","xs:untyped","xs:untypedAtomic","xs:yearMonthDuration"];for(a=0,s=l.length;a<s;a++)i[l[a]]=n;var u=["eq","ne","lt","le","gt","ge",":=","=",">",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"];for(a=0,s=u.length;a<s;a++)i[u[a]]=t;var c=["self::","attribute::","child::","descendant::","descendant-or-self::","parent::","ancestor::","ancestor-or-self::","following::","preceding::","following-sibling::","preceding-sibling::"];for(a=0,s=c.length;a<s;a++)i[c[a]]=r;return i}();function t(e,t,n){return t.tokenize=n,n(e,t)}function n(d,m){var g=d.next(),v=!1,y=function(e){return'"'===e.current()?e.match(/^[^\"]+\"\:/,!1):"'"===e.current()&&e.match(/^[^\"]+\'\:/,!1)}(d);if("<"==g){if(d.match("!--",!0))return t(d,m,s);if(d.match("![CDATA",!1))return m.tokenize=l,"tag";if(d.match("?",!1))return t(d,m,u);var b=d.eat("/");d.eatSpace();for(var _,w="";_=d.eat(/[^\s\u00a0=<>\"\'\/?]/);)w+=_;return t(d,m,function(e,t){return function(r,i){return r.eatSpace(),t&&r.eat(">")?(h(i),i.tokenize=n,"tag"):(r.eat("/")||p(i,{type:"tag",name:e,tokenize:n}),r.eat(">")?(i.tokenize=n,"tag"):(i.tokenize=a,"tag"))}}(w,b))}if("{"==g)return p(m,{type:"codeblock"}),null;if("}"==g)return h(m),null;if(c(m))return">"==g?"tag":"/"==g&&d.eat(">")?(h(m),"tag"):"variable";if(/\d/.test(g))return d.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if("("===g&&d.eat(":"))return p(m,{type:"comment"}),t(d,m,r);if(y||'"'!==g&&"'"!==g){if("$"===g)return t(d,m,o);if(":"===g&&d.eat("="))return"keyword";if("("===g)return p(m,{type:"paren"}),null;if(")"===g)return h(m),null;if("["===g)return p(m,{type:"bracket"}),null;if("]"===g)return h(m),null;var x=e.propertyIsEnumerable(g)&&e[g];if(y&&'"'===g)for(;'"'!==d.next(););if(y&&"'"===g)for(;"'"!==d.next(););x||d.eatWhile(/[\w\$_-]/);var k=d.eat(":");!d.eat(":")&&k&&d.eatWhile(/[\w\$_-]/),d.match(/^[ \t]*\(/,!1)&&(v=!0);var E=d.current();return x=e.propertyIsEnumerable(E)&&e[E],v&&!x&&(x={type:"function_call",style:"variable def"}),function(e){return f(e,"xmlconstructor")}(m)?(h(m),"variable"):("element"!=E&&"attribute"!=E&&"axis_specifier"!=x.type||p(m,{type:"xmlconstructor"}),x?x.style:"variable")}return t(d,m,i(g))}function r(e,t){for(var n,r=!1,i=!1,o=0;n=e.next();){if(")"==n&&r){if(!(o>0)){h(t);break}o--}else":"==n&&i&&o++;r=":"==n,i="("==n}return"comment"}function i(e,t){return function(r,o){var a;if(function(e){return f(e,"string")}(o)&&r.current()==e)return h(o),t&&(o.tokenize=t),"string";if(p(o,{type:"string",name:e,tokenize:i(e,t)}),r.match("{",!1)&&d(o))return o.tokenize=n,"string";for(;a=r.next();){if(a==e){h(o),t&&(o.tokenize=t);break}if(r.match("{",!1)&&d(o))return o.tokenize=n,"string"}return"string"}}function o(e,t){var r=/[\w\$_-]/;if(e.eat('"')){for(;'"'!==e.next(););e.eat(":")}else e.eatWhile(r),e.match(":=",!1)||e.eat(":");return e.eatWhile(r),t.tokenize=n,"variable"}function a(e,r){var o=e.next();return"/"==o&&e.eat(">")?(d(r)&&h(r),c(r)&&h(r),"tag"):">"==o?(d(r)&&h(r),"tag"):"="==o?null:'"'==o||"'"==o?t(e,r,i(o,a)):(d(r)||p(r,{type:"attribute",tokenize:a}),e.eat(/[a-zA-Z_:]/),e.eatWhile(/[-a-zA-Z0-9_:.]/),e.eatSpace(),(e.match(">",!1)||e.match("/",!1))&&(h(r),r.tokenize=n),"attribute")}function s(e,t){for(var r;r=e.next();)if("-"==r&&e.match("->",!0))return t.tokenize=n,"comment"}function l(e,t){for(var r;r=e.next();)if("]"==r&&e.match("]",!0))return t.tokenize=n,"comment"}function u(e,t){for(var r;r=e.next();)if("?"==r&&e.match(">",!0))return t.tokenize=n,"comment meta"}function c(e){return f(e,"tag")}function d(e){return f(e,"attribute")}function f(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function p(e,t){e.stack.push(t)}function h(e){e.stack.pop();var t=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=t||n}return{startState:function(){return{tokenize:n,cc:[],stack:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(:",blockCommentEnd:":)"}})),e.defineMIME("application/xquery","xquery")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("yacas",(function(t,n){var r=function(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}("Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While"),i="(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)",o=new RegExp("(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)"),a=new RegExp(i),s=new RegExp(i+"?_"+i),l=new RegExp(i+"\\s*\\(");function u(e,t){var n;if('"'===(n=e.next()))return t.tokenize=c,t.tokenize(e,t);if("/"===n){if(e.eat("*"))return t.tokenize=d,t.tokenize(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}e.backUp(1);var i=e.match(/^(\w+)\s*\(/,!1);null!==i&&r.hasOwnProperty(i[1])&&t.scopes.push("bodied");var u=f(t);if("bodied"===u&&"["===n&&t.scopes.pop(),"["!==n&&"{"!==n&&"("!==n||t.scopes.push(n),("["===(u=f(t))&&"]"===n||"{"===u&&"}"===n||"("===u&&")"===n)&&t.scopes.pop(),";"===n)for(;"bodied"===u;)t.scopes.pop(),u=f(t);return e.match(/\d+ *#/,!0,!1)?"qualifier":e.match(o,!0,!1)?"number":e.match(s,!0,!1)?"variable-3":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(l,!0,!1)?(e.backUp(1),"variable"):e.match(a,!0,!1)?"variable-2":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function c(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=u),"string"}function d(e,t){for(var n,r;null!=(r=e.next());){if("*"===n&&"/"===r){t.tokenize=u;break}n=r}return"comment"}function f(e){var t=null;return e.scopes.length>0&&(t=e.scopes[e.scopes.length-1]),t}return{startState:function(){return{tokenize:u,scopes:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},indent:function(n,r){if(n.tokenize!==u&&null!==n.tokenize)return e.Pass;var i=0;return"]"!==r&&"];"!==r&&"}"!==r&&"};"!==r&&");"!==r||(i=-1),(n.scopes.length+i)*t.indentUnit},electricChars:"{}[]();",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-yacas",{name:"yacas"})}(n(5))},function(e,t,n){var r;r=n(5),n(662),r.defineMode("yaml-frontmatter",(function(e,t){var n=r.getMode(e,"yaml"),i=r.getMode(e,t&&t.base||"gfm");function o(e){return 2==e.state?i:n}return{startState:function(){return{state:0,inner:r.startState(n)}},copyState:function(e){return{state:e.state,inner:r.copyState(o(e),e.inner)}},token:function(e,t){if(0==t.state)return e.match(/---/,!1)?(t.state=1,n.token(e,t.inner)):(t.state=2,t.inner=r.startState(i),i.token(e,t.inner));if(1==t.state){var o=e.sol()&&e.match(/(---|\.\.\.)/,!1),a=n.token(e,t.inner);return o&&(t.state=2,t.inner=r.startState(i)),a}return i.token(e,t.inner)},innerMode:function(e){return{mode:o(e),state:e.inner}},blankLine:function(e){var t=o(e);if(t.blankLine)return t.blankLine(e.inner)}}}))},function(e,t,n){!function(e){"use strict";e.defineMode("z80",(function(e,t){var n,r,i=t.ez80;i?(n=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i,r=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i):(n=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,r=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);var o=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,a=/^(n?[zc]|p[oe]?|m)\b/i,s=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,l=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{startState:function(){return{context:0}},token:function(e,t){if(e.column()||(t.context=0),e.eatSpace())return null;var u;if(e.eatWhile(/\w/)){if(i&&e.eat(".")&&e.eatWhile(/\w/),u=e.current(),!e.indentation())return e.match(l)?"number":null;if((1==t.context||4==t.context)&&o.test(u))return t.context=4,"var2";if(2==t.context&&a.test(u))return t.context=4,"var3";if(n.test(u))return t.context=1,"keyword";if(r.test(u))return t.context=2,"keyword";if(4==t.context&&l.test(u))return"number";if(s.test(u))return"error"}else{if(e.eat(";"))return e.skipToEnd(),"comment";if(e.eat('"')){for(;(u=e.next())&&'"'!=u;)"\\"==u&&e.next();return"string"}if(e.eat("'")){if(e.match(/\\?.'/))return"number"}else if(e.eat(".")||e.sol()&&e.eat("#")){if(t.context=5,e.eatWhile(/\w/))return"def"}else if(e.eat("$")){if(e.eatWhile(/[\da-f]/i))return"number"}else if(e.eat("%")){if(e.eatWhile(/[01]/))return"number"}else e.next()}return null}}})),e.defineMIME("text/x-z80","z80"),e.defineMIME("text/x-ez80",{name:"z80",ez80:!0})}(n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(353)),i=(l(n(1)),l(n(2))),o=n(4),a=n(16),s=n(11);function l(e){return e&&e.__esModule?e:{default:e}}const u=e=>(0,s.jsx)(a.WidgetPreviewContainer,null,(0,s.jsx)("pre",null,(0,s.jsx)("code",null,((e,t)=>(0,r.default)(e)?e:o.Map.isMap(e)?e.get(t.getIn(["keys","code"],"code"),""):"")(e.value,e.field))));u.propTypes={value:i.default.node};var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{default_language:{type:"string"},allow_language_selection:{type:"boolean"},output_code_only:{type:"boolean"},keys:{type:"object",properties:{code:{type:"string"},lang:{type:"string"}}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsEditorComponentImage=void 0;(r=n(1))&&r.__esModule;var r,i=n(11);const o={label:"Image",id:"image",fromBlock:e=>e&&{image:e[2],alt:e[1],title:e[4]},toBlock:({alt:e,image:t,title:n})=>`![${e||""}](${t||""}${n?` "${n.replace(/"/g,'\\"')}"`:""})`,toPreview:({alt:e,image:t,title:n},r,o)=>{const a=r(t,null==o?void 0:o.find(e=>"image"===e.get("widget")));return(0,i.jsx)("img",{src:a||"",alt:e||"",title:n||""})},pattern:/^!\[(.*)\]\((.*?)(\s"(.*)")?\)$/,fields:[{label:"Image",name:"image",widget:"image",media_library:{allow_multiple:!1}},{label:"Alt Text",name:"alt"},{label:"Title",name:"title"}]},a=o;t.NetlifyCmsEditorComponentImage=a;var s=o;t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"cs",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"de",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"en",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"es",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"ca",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"fr",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"gr",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"hu",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"it",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"ja",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"nl",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"nb_no",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"nn_no",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"pl",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"pt",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"ru",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"sv",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"th",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"tr",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"uk",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"vi",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"zh_Hant",{enumerable:!0,get:function(){return E.default}});var r=S(n(1651)),i=S(n(1652)),o=S(n(1653)),a=S(n(1654)),s=S(n(1655)),l=S(n(1656)),u=S(n(1657)),c=S(n(1658)),d=S(n(1659)),f=S(n(1660)),p=S(n(1661)),h=S(n(1662)),m=S(n(1663)),g=S(n(1664)),v=S(n(1665)),y=S(n(1666)),b=S(n(1667)),_=S(n(1668)),w=S(n(1669)),x=S(n(1670)),k=S(n(1671)),E=S(n(1672));function S(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Přihlásit",loggingIn:"Přihlašování…",loginWithNetlifyIdentity:"Přihlásit pomocí Netlify Identity",loginWithBitbucket:"Přihlásit pomocí Bitbucket",loginWithGitHub:"Přihlásit pomocí GitHub",loginWithGitLab:"Přihlásit pomocí GitLab",errors:{email:"Vyplňte e-mailovou adresu.",password:"Vyplňte heslo.",identitySettings:"Nastavení identity nenalezeno. Používáte-li git-gateway server nezapomeňte aktivovat službu Identity a Git Gateway."}},app:{header:{content:"Obsah",workflow:"Workflow",media:"Média",quickAdd:"Přidat"},app:{errorHeader:"Chyba při načítání CMS konfigurace",configErrors:"Chyba konfigurace",checkConfigYml:"Zkontrolujte soubor config.yml.",loadingConfig:"Načítání konfigurace…",waitingBackend:"Čekání na server…"},notFoundPage:{header:"Nenalezeno"}},collection:{sidebar:{collections:"Kolekce",searchAll:"Hledat"},collectionTop:{viewAs:"Zobrazit jako",newButton:"Nový %{collectionLabel}"},entries:{loadingEntries:"Načítání záznamů",cachingEntries:"Úkládání záznamů do mezipaměti",longerLoading:"Načítání může trvat několik minut"}},editor:{editorControl:{field:{optional:"volitelný"}},editorControlPane:{widget:{required:"%{fieldLabel} je povinný.",regexPattern:"%{fieldLabel} nesouhlasí s předepsaným vzorem: %{pattern}.",processing:"%{fieldLabel} se zpracovává.",range:"%{fieldLabel} musí být mezi %{minValue} a %{maxValue}.",min:"%{fieldLabel} musí být alespoň %{minValue}.",max:"%{fieldLabel} musí být %{maxValue} nebo méně."}},editor:{onLeavePage:"Chcete opravdu opustit tuto stránku?",onUpdatingWithUnsavedChanges:"Máte neuložené změny. Uložte je prosím před změnou statusu.",onPublishingNotReady:"Změňte stav na „Připraveno“ před publikováním.",onPublishingWithUnsavedChanges:"Máte neuložené změny, prosím uložte je před publikováním.",onPublishing:"Chcete opravdu publikovat tento záznam?",onUnpublishing:"Chcete opravdu zrušit publikování tohoto záznamu?",onDeleteWithUnsavedChanges:"Chcete opravdu vymazat tuto publikovanou položku a všechny neuložené změny z této relace?",onDeleteUnpublishedChangesWithUnsavedChanges:"Tato akce vymaže všechny nepublikované změny v tomto záznamu a také všechny neuložené změny z této relace. Chcete záznam skutečně vymazat?",onDeleteUnpublishedChanges:"Všechny nepublivkoané změny v tomto záznamu budou vymazány. Chcete ho skuteně vymazat?",loadingEntry:"Načítání záznamu…",confirmLoadBackup:"Lokální kopie tohoto záznamu byla nalezena, chcete ji použít?"},editorToolbar:{publishing:"Publikování…",publish:"Publikovat",published:"Publikovaný",unpublish:"Zrušit publikování",duplicate:"Duplikovat",unpublishing:"Rušení publikování…",publishAndCreateNew:"Publikovat a vytvořit nový",publishAndDuplicate:"Publikovat a duplikovat",deleteUnpublishedChanges:"Vymazat nepublikované změny",deleteUnpublishedEntry:"Vymazat nepublikovaný záznam",deletePublishedEntry:"Vymazat publikovaný záznam",deleteEntry:"Vymazat záznam",saving:"Ukládání…",save:"Uložit",deleting:"Vymazávání…",updating:"Aktualizace…",setStatus:"Změnit status",backCollection:" Píšete v kolekci %{collectionLabel}",unsavedChanges:"Neuložené změny",changesSaved:"Změny uloženy",draft:"Koncept",inReview:"V revizi",ready:"Připraveno",publishNow:"Publikovat teď",deployPreviewPendingButtonLabel:"Zkontrolovat náhled",deployPreviewButtonLabel:"Zobrazit náhled",deployButtonLabel:"Zobrazit na webu"},editorWidgets:{image:{choose:"vyberte obrázek",chooseDifferent:"vyberte jiný obrázek",remove:"odstranit obrázek"},file:{choose:"vyberte soubor",chooseDifferent:"vyberte jiný soubor",remove:"odebrat soubor"},unknownControl:{noControl:"Žádné ovládání pro widget '%{widget}'."},unknownPreview:{noPreview:"Žádný náhled pro widget '%{widget}'."},headingOptions:{headingOne:"Nadpis 1",headingTwo:"Nadpis 2",headingThree:"Nadpis 3",headingFour:"Nadpis 4",headingFive:"Nadpis 5",headingSix:"Nadpis 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Koncept"},mediaLibrary:{onDelete:"Chcete skutečně vymazat označená média?",fileTooLarge:"Soubor je příliš velký.\nSoubor musí být menší než %{size} kB."},mediaLibraryModal:{loading:"Načítání…",noResults:"Nic nenalezeno.",noAssetsFound:"Média nenalezena.",noImagesFound:"Obrázky nenalezeny.",private:"Soukromé ",images:"Obrázky",mediaAssets:"Média",search:"Hledat…",uploading:"Nahrávání…",upload:"Nahrát nový",deleting:"Vymazávání…",deleteSelected:"Smazat označené",chooseSelected:"Vybrat označené"}},ui:{errorBoundary:{title:"Chyba",details:"Nastala chyba – prosím ",reportIt:"nahlašte ji.",detailsHeading:"Detaily",recoveredEntry:{heading:"Nalezený dokument",warning:"Prosím zkopírujte dokument do schránky před tím než odejte z této stránky!",copyButtonLabel:"Zkopírovat do schránky"}},settingsDropdown:{logOut:"Odhlásit"},toast:{onFailToLoadEntries:"Chyba při načítání záznamu: %{details}",onFailToLoadDeployPreview:"Chyba při načítání náhledu: %{details}",onFailToPersist:"Chyba při ukládání záznamu: %{details}",onFailToDelete:"Chyba při vymazávání záznamu: %{details}",onFailToUpdateStatus:"Chyba při změně stavu záznamu: %{details}",missingRequiredField:"Vynechali jste povinné pole. Prosím vyplňte ho.",entrySaved:"Záznam uložen",entryPublished:"Záznam publikován",entryUnpublished:"Publikování záznamu zrušeno",onFailToPublishEntry:"Chyba při publikování záznamu: %{details}",onFailToUnpublishEntry:"Chyba při rušení publikování záznamu: %{details}",entryUpdated:"Stav záznamu byl změněn",onDeleteUnpublishedChanges:"Nepublikované změny byly smazány",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Načítání workflow záznamů",workflowHeading:"Schvalovací Workflow",newPost:"Nový post",description:"%{smart_count} záznam čeká na schválení, %{readyCount} připraven k publikaci. |||| %{smart_count} čeká na schválení, %{readyCount} připraveno k publikaci. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} (%{author})",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Vymazat změny",deleteNewEntry:"Vymazat nový záznam",publishChanges:"Publikovat změny",publishNewEntry:"Publikovat nový záznam"},workflowList:{onDeleteEntry:"Opravdu chcete smazat tento záznam?",onPublishingNotReadyEntry:'Pouze položky se statusem "Připraveno" mohou být publikováno. Pro umožnění publikace musíte přetáhnout kartu do sloupce "Připraveno"',onPublishEntry:"Opravdu chcete publikovat tento záznam?",draftHeader:"Koncepty",inReviewHeader:"V revizi",readyHeader:"Připraveno",currentEntries:"%{smart_count} záznam |||| %{smart_count} záznamů"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Login",loggingIn:"Sie werden eingeloggt...",loginWithNetlifyIdentity:"Mit Netlify Identity einloggen",loginWithBitbucket:"Mit Bitbucket einloggen",loginWithGitHub:"Mit GitHub einloggen",loginWithGitLab:"Mit GitLab einloggen",errors:{email:"Stellen Sie sicher, Ihre E-Mail-Adresse einzugeben.",password:"Bitte geben Sie Ihr Passwort ein.",identitySettings:"Identity Einstellungen konnten nicht abgerufen werden. Stellen Sie bei der Verwendung des Git-Gateway Backends sicher, den Identity Service und das Git Gateway zu aktivieren."}},app:{header:{content:"Inhalt",workflow:"Arbeitsablauf",media:"Medien",quickAdd:"Schnell-Erstellung"},app:{errorHeader:"Fehler beim Laden der CMS-Konfiguration.",configErrors:"Konfigurationsfehler",checkConfigYml:"Überprüfen Sie die config.yml Konfigurationsdatei.",loadingConfig:"Konfiguration laden...",waitingBackend:"Auf Server warten..."},notFoundPage:{header:"Nicht gefunden"}},collection:{sidebar:{collections:"Inhaltstypen",allCollections:"Allen Inhaltstypen",searchAll:"Alles durchsuchen",searchIn:"Suchen in"},collectionTop:{sortBy:"Sortieren nach",viewAs:"Anzeigen als",newButton:"Neue(r) %{collectionLabel}",ascending:"Aufsteigend",descending:"Absteigend",searchResults:'Suchergebnisse für "%{searchTerm}"',searchResultsInCollection:'Suchergebnisse für "%{searchTerm}" in %{collection}'},entries:{loadingEntries:"Beiträge laden",cachingEntries:"Beiträge zwischenspeichern",longerLoading:"Diese Aktion kann einige Minuten in Anspruch nehmen"}},editor:{editorControl:{field:{optional:"optional"}},editorControlPane:{widget:{required:"%{fieldLabel} ist erforderlich.",regexPattern:"%{fieldLabel} entspricht nicht dem Muster: %{pattern}.",processing:"%{fieldLabel} wird verarbeitet.",range:"%{fieldLabel} muss zwischen %{minValue} und %{maxValue} liegen.",min:"%{fieldLabel} muss größer als %{minValue} sein.",max:"%{fieldLabel} darf nicht größer als %{maxValue} sein.",rangeCount:"%{fieldLabel} muss %{minCount} bis %{maxCount} Element(e) enthalten.",rangeCountExact:"%{fieldLabel} muss exakt %{count} Element(e) enthalten.",minCount:"%{fieldLabel} muss mindestens %{minCount} Element(e) enthalten.",maxCount:"%{fieldLabel} darf maximal %{maxCount} Element(e) enthalten."}},editor:{onLeavePage:"Möchten Sie diese Seite wirklich verlassen?",onUpdatingWithUnsavedChanges:"Es sind noch ungespeicherte Änderungen vorhanden. Bitte speichern Sie diese, bevor Sie den Status aktualisieren.",onPublishingNotReady:'Bitte setzten die den Status vor dem Veröffentlichen auf "Abgeschlossen".',onPublishingWithUnsavedChanges:"Es sind noch ungespeicherte Änderungen vorhanden. Bitte speicheren Sie vor dem Veröffentlichen.",onPublishing:"Soll dieser Beitrag wirklich veröffentlicht werden?",onUnpublishing:"Soll die Veröffentlichung dieses Beitrags wirklich zurückgezogen werden?",onDeleteWithUnsavedChanges:"Möchten Sie diesen veröffentlichten Beitrag, sowie Ihre nicht gespeicherten Änderungen löschen?",onDeletePublishedEntry:"Soll dieser veröffentlichte Beitrag wirklich gelöscht werden?",onDeleteUnpublishedChangesWithUnsavedChanges:"Möchten Sie diesen unveröffentlichten Beitrag, sowie Ihre nicht gespeicherten Änderungen löschen?",onDeleteUnpublishedChanges:"Alle unveröffentlichten Änderungen werden gelöscht. Möchten Sie wirklich löschen?",loadingEntry:"Beitrag laden...",confirmLoadBackup:"Für diesen Beitrag ist ein lokales Backup vorhanden. Möchten Sie dieses benutzen?"},editorToolbar:{publishing:"Veröffentlichen...",publish:"Veröffentlichen",published:"Veröffentlicht",unpublish:"Veröffentlichung zurückziehen",duplicate:"Duplizieren",unpublishing:"Veröffentlichung wird zurückgezogen...",publishAndCreateNew:"Veröffentlichen und neuen Beitrag erstellen",publishAndDuplicate:"Veröffentlichen und Beitrag duplizieren",deleteUnpublishedChanges:"Unveröffentlichte Änderungen verwerfen",deleteUnpublishedEntry:"Lösche unveröffentlichten Beitrag",deletePublishedEntry:"Lösche veröffentlichten Beitrag",deleteEntry:"Lösche Beitrag",saving:"Speichern...",save:"Speichern",deleting:"Löschen...",updating:"Aktualisieren...",setStatus:"Status setzen",backCollection:"Zurück zu allen %{collectionLabel}",unsavedChanges:"Ungespeicherte Änderungen",changesSaved:"Änderungen gespeichert",draft:"Entwurf",inReview:"Zur Überprüfung",ready:"Abgeschlossen",publishNow:"Jetzt veröffentlichen",deployPreviewPendingButtonLabel:"Überprüfen ob eine Vorschau vorhanden ist",deployPreviewButtonLabel:"Vorschau anzeigen",deployButtonLabel:"Live ansehen"},editorWidgets:{image:{choose:"Wähle ein Bild",chooseDifferent:"Wähle ein anderes Bild",remove:"Entferne Bild"},file:{choose:"Wählen Sie eine Datei",chooseDifferent:"Wählen Sie eine andere Datei",remove:"Datei löschen"},unknownControl:{noControl:"Kein Bedienelement für Widget '%{widget}'."},unknownPreview:{noPreview:"Keine Vorschau für Widget '%{widget}'."},headingOptions:{headingOne:"Überschrift 1",headingTwo:"Überschrift 2",headingThree:"Überschrift 3",headingFour:"Überschrift 4",headingFive:"Überschrift 5",headingSix:"Überschrift 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Entwurf"},mediaLibrary:{onDelete:"Soll das ausgewählte Medium wirklich gelöscht werden?",fileTooLarge:"Datei zu groß.\nErlaubt sind nur Dateien bis %{size} kB."},mediaLibraryModal:{loading:"Laden...",noResults:"Keine Egebnisse.",noAssetsFound:"Keine Medien gefunden.",noImagesFound:"Keine Bilder gefunden.",private:"Privat ",images:"Bilder",mediaAssets:"Medien",search:"Suchen...",uploading:"Hochladen...",upload:"Hochladen",deleting:"Löschen...",deleteSelected:"Ausgewähltes Element löschen",chooseSelected:"Ausgewähltes Element verwenden"}},ui:{errorBoundary:{title:"Fehler",details:"Ein Fehler ist aufgetreten - bitte ",reportIt:"berichte ihn.",detailsHeading:"Details",recoveredEntry:{heading:"Widerhergestellter Beitrag",warning:"Bitte speichern Sie sich das bevor Sie die Seite verlassen!",copyButtonLabel:"In Zwischenablage speichern"}},settingsDropdown:{logOut:"Abmelden"},toast:{onFailToLoadEntries:"Beitrag konnte nicht geladen werden: %{details}",onFailToLoadDeployPreview:"Vorschau konnte nicht geladen werden: %{details}",onFailToPersist:"Beitrag speichern fehlgeschlagen: %{details}",onFailToDelete:"Beitrag löschen fehlgeschlagen: %{details}",onFailToUpdateStatus:"Status aktualisieren fehlgeschlagen: %{details}",missingRequiredField:"Oops, einige zwingend erforderliche Felder sind nicht ausgefüllt.",entrySaved:"Beitrag gespeichert",entryPublished:"Beitrag veröffentlicht",entryUnpublished:"Beitrag nicht mehr öffentlich",onFailToPublishEntry:"Veröffentlichen fehlgeschlagen: %{details}",onFailToUnpublishEntry:"Veröffentlichung des Beitrags konnte nicht rückgängig gemacht werden: %{details}",entryUpdated:"Beitragsstatus aktualisiert",onDeleteUnpublishedChanges:"Unveröffentlichte Änderungen verworfen",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Arbeitsablauf Beiträge laden",workflowHeading:"Redaktioneller Arbeitsablauf",newPost:"Neuer Beitrag",description:"%{smart_count} Beitrag zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. |||| %{smart_count} Beiträge zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} von %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"von %{author}",deleteChanges:"Änderungen verwerfen",deleteNewEntry:"Lösche neuen Beitrag",publishChanges:"Veröffentliche Änderungen",publishNewEntry:"Veröffentliche neuen Beitrag"},workflowList:{onDeleteEntry:"Soll dieser Beitrag wirklich gelöscht werden?",onPublishingNotReadyEntry:'Nur Beiträge im Status "Abgeschlossen" können veröffentlicht werden. Bitte ziehen Sie den Beitrag in die "Abgeschlossen" Spalte um die Veröffentlichung zu aktivieren.',onPublishEntry:"Soll dieser Beitrag wirklich veröffentlicht werden soll?",draftHeader:"Entwurf",inReviewHeader:"In Prüfung",readyHeader:"Abgeschlossen",currentEntries:"%{smart_count} Beitrag |||| %{smart_count} Beiträge"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Login",loggingIn:"Logging in...",loginWithNetlifyIdentity:"Login with Netlify Identity",loginWithBitbucket:"Login with Bitbucket",loginWithGitHub:"Login with GitHub",loginWithGitLab:"Login with GitLab",errors:{email:"Make sure to enter your email.",password:"Please enter your password.",identitySettings:"Unable to access identity settings. When using git-gateway backend make sure to enable Identity service and Git Gateway."}},app:{header:{content:"Contents",workflow:"Workflow",media:"Media",quickAdd:"Quick add"},app:{errorHeader:"Error loading the CMS configuration",configErrors:"Config Errors",checkConfigYml:"Check your config.yml file.",loadingConfig:"Loading configuration...",waitingBackend:"Waiting for backend..."},notFoundPage:{header:"Not Found"}},collection:{sidebar:{collections:"Collections",allCollections:"All Collections",searchAll:"Search all",searchIn:"Search in"},collectionTop:{sortBy:"Sort by",viewAs:"View as",newButton:"New %{collectionLabel}",ascending:"Ascending",descending:"Descending",searchResults:'Search Results for "%{searchTerm}"',searchResultsInCollection:'Search Results for "%{searchTerm}" in %{collection}',filterBy:"Filter by"},entries:{loadingEntries:"Loading Entries...",cachingEntries:"Caching Entries...",longerLoading:"This might take several minutes",noEntries:"No Entries"},defaultFields:{author:{label:"Author"},updatedOn:{label:"Updated On"}}},editor:{editorControl:{field:{optional:"optional"}},editorControlPane:{widget:{required:"%{fieldLabel} is required.",regexPattern:"%{fieldLabel} didn't match the pattern: %{pattern}.",processing:"%{fieldLabel} is processing.",range:"%{fieldLabel} must be between %{minValue} and %{maxValue}.",min:"%{fieldLabel} must be at least %{minValue}.",max:"%{fieldLabel} must be %{maxValue} or less.",rangeCount:"%{fieldLabel} must have between %{minCount} and %{maxCount} item(s).",rangeCountExact:"%{fieldLabel} must have exactly %{count} item(s).",minCount:"%{fieldLabel} must be at least %{minCount} item(s).",maxCount:"%{fieldLabel} must be %{maxCount} or less item(s).",invalidPath:"'%{path}' is not a valid path",pathExists:"Path '%{path}' already exists"}},editor:{onLeavePage:"Are you sure you want to leave this page?",onUpdatingWithUnsavedChanges:"You have unsaved changes, please save before updating status.",onPublishingNotReady:'Please update status to "Ready" before publishing.',onPublishingWithUnsavedChanges:"You have unsaved changes, please save before publishing.",onPublishing:"Are you sure you want to publish this entry?",onUnpublishing:"Are you sure you want to unpublish this entry?",onDeleteWithUnsavedChanges:"Are you sure you want to delete this published entry, as well as your unsaved changes from the current session?",onDeletePublishedEntry:"Are you sure you want to delete this published entry?",onDeleteUnpublishedChangesWithUnsavedChanges:"This will delete all unpublished changes to this entry, as well as your unsaved changes from the current session. Do you still want to delete?",onDeleteUnpublishedChanges:"All unpublished changes to this entry will be deleted. Do you still want to delete?",loadingEntry:"Loading entry...",confirmLoadBackup:"A local backup was recovered for this entry, would you like to use it?"},editorToolbar:{publishing:"Publishing...",publish:"Publish",published:"Published",unpublish:"Unpublish",duplicate:"Duplicate",unpublishing:"Unpublishing...",publishAndCreateNew:"Publish and create new",publishAndDuplicate:"Publish and duplicate",deleteUnpublishedChanges:"Delete unpublished changes",deleteUnpublishedEntry:"Delete unpublished entry",deletePublishedEntry:"Delete published entry",deleteEntry:"Delete entry",saving:"Saving...",save:"Save",deleting:"Deleting...",updating:"Updating...",setStatus:"Set status",backCollection:" Writing in %{collectionLabel} collection",unsavedChanges:"Unsaved Changes",changesSaved:"Changes saved",draft:"Draft",inReview:"In review",ready:"Ready",publishNow:"Publish now",deployPreviewPendingButtonLabel:"Check for Preview",deployPreviewButtonLabel:"View Preview",deployButtonLabel:"View Live"},editorWidgets:{markdown:{richText:"Rich Text",markdown:"Markdown"},image:{choose:"Choose an image",chooseDifferent:"Choose different image",remove:"Remove image"},file:{choose:"Choose a file",chooseDifferent:"Choose different file",remove:"Remove file"},unknownControl:{noControl:"No control for widget '%{widget}'."},unknownPreview:{noPreview:"No preview for widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Now"}}},mediaLibrary:{mediaLibraryCard:{draft:"Draft"},mediaLibrary:{onDelete:"Are you sure you want to delete selected media?",fileTooLarge:"File too large.\nConfigured to not allow files greater than %{size} kB."},mediaLibraryModal:{loading:"Loading...",noResults:"No results.",noAssetsFound:"No assets found.",noImagesFound:"No images found.",private:"Private ",images:"Images",mediaAssets:"Media assets",search:"Search...",uploading:"Uploading...",upload:"Upload",download:"Download",deleting:"Deleting...",deleteSelected:"Delete selected",chooseSelected:"Choose selected"}},ui:{default:{goBackToSite:"Go back to site"},errorBoundary:{title:"Error",details:"There's been an error - please ",reportIt:"open an issue on GitHub.",detailsHeading:"Details",privacyWarning:"Opening an issue pre-populates it with the error message and debugging data.\nPlease verify the information is correct and remove sensitive data if exists.",recoveredEntry:{heading:"Recovered document",warning:"Please copy/paste this somewhere before navigating away!",copyButtonLabel:"Copy to clipboard"}},settingsDropdown:{logOut:"Log Out"},toast:{onFailToLoadEntries:"Failed to load entry: %{details}",onFailToLoadDeployPreview:"Failed to load preview: %{details}",onFailToPersist:"Failed to persist entry: %{details}",onFailToDelete:"Failed to delete entry: %{details}",onFailToUpdateStatus:"Failed to update status: %{details}",missingRequiredField:"Oops, you've missed a required field. Please complete before saving.",entrySaved:"Entry saved",entryPublished:"Entry published",entryUnpublished:"Entry unpublished",onFailToPublishEntry:"Failed to publish: %{details}",onFailToUnpublishEntry:"Failed to unpublish entry: %{details}",entryUpdated:"Entry status updated",onDeleteUnpublishedChanges:"Unpublished changes deleted",onFailToAuth:"%{details}",onLoggedOut:"You have been logged out, please back up any data and login again",onBackendDown:"The backend service is experiencing an outage. See %{details} for more information"}},workflow:{workflow:{loading:"Loading Editorial Workflow Entries",workflowHeading:"Editorial Workflow",newPost:"New Post",description:"%{smart_count} entry waiting for review, %{readyCount} ready to go live. |||| %{smart_count} entries waiting for review, %{readyCount} ready to go live. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"Delete changes",deleteNewEntry:"Delete new entry",publishChanges:"Publish changes",publishNewEntry:"Publish new entry"},workflowList:{onDeleteEntry:"Are you sure you want to delete this entry?",onPublishingNotReadyEntry:'Only items with a "Ready" status can be published. Please drag the card to the "Ready" column to enable publishing.',onPublishEntry:"Are you sure you want to publish this entry?",draftHeader:"Drafts",inReviewHeader:"In Review",readyHeader:"Ready",currentEntries:"%{smart_count} entry |||| %{smart_count} entries"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Iniciar sesión",loggingIn:"Iniciando sesión...",loginWithNetlifyIdentity:"Iniciar sesión con Netlify Identity",loginWithBitbucket:"Iniciar sesión con Bitbucket",loginWithGitHub:"Iniciar sesión con GitHub",loginWithGitLab:"Iniciar sesión con GitLab",errors:{email:"Asegurate de ingresar tu correo electrónico.",password:"Por favor ingresa tu contraseña.",identitySettings:"No se pudo accesder a la configuración de Identity. Cuando uses el backend git-gateway asegurate de habilitar el servicio Identity y Git Gateway."}},app:{header:{content:"Contenido",workflow:"Flujo Editorial",media:"Medios",quickAdd:"Añadir rápido"},app:{errorHeader:"Error al cargar la configuración del CMS",configErrors:"Errores de configuración",checkConfigYml:"Compruebe el archivo config.yml.",loadingConfig:"Cargando configuración....",waitingBackend:"Esperando al servidor..."},notFoundPage:{header:"No encontrado"}},collection:{sidebar:{collections:"Colecciones",searchAll:"Buscar todos"},collectionTop:{sortBy:"Ordenar por",viewAs:"Ver como",newButton:"Nuevo %{collectionLabel}",ascending:"Ascendente",descending:"Descendente"},entries:{loadingEntries:"Cargando entradas",cachingEntries:"Almacenando entradas en caché",longerLoading:"Esto puede tardar varios minutos",noEntries:"Ninguna entrada"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualizado en"}}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} es obligatorio.",regexPattern:"%{fieldLabel} no coincide con el patrón: %{pattern}.",processing:"%{fieldLabel} está procesando.",range:"%{fieldLabel} debe estar entre %{minValue} y %{maxValue}.",min:"%{fieldLabel} debe ser por lo menos %{minValue}.",max:"%{fieldLabel} debe ser %{maxValue} o menos.",rangeCount:"%{fieldLabel} debe tener entre %{minCount} y %{maxCount} elemento(s).",rangeCountExact:"%{fieldLabel} debe tener exactamente %{count} elemento(s).",minCount:"%{fieldLabel} debe ser por lo menos %{minCount} elemento(s).",maxCount:"%{fieldLabel} debe ser %{maxCount} o menos elemento(s)."}},editor:{onLeavePage:"¿Estás seguro de que quieres dejar esta página?",onUpdatingWithUnsavedChanges:"Tiene cambios no guardados, por favor, guárdelos antes de actualizar el estado.",onPublishingNotReady:'Por favor, actualice el estado a "Ready" antes de publicar.',onPublishingWithUnsavedChanges:"Tiene cambios no guardados, por favor guárdelos antes de publicarlos.",onPublishing:"¿Estás seguro de que quieres publicar esta entrada?",onUnpublishing:"¿Estás seguro de que quieres retirar esta entrada?",onDeleteWithUnsavedChanges:"¿Está seguro de que desea eliminar esta entrada publicada, así como los cambios no guardados de la sesión actual?",onDeletePublishedEntry:"¿Estás seguro de que quieres borrar esta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Esto eliminará todos los cambios no publicados de esta entrada, así como los cambios no guardados de la sesión actual. ¿Todavía quieres borrar?",onDeleteUnpublishedChanges:"Todos los cambios no publicados en esta entrada serán eliminados. ¿Todavía quieres borrar?",loadingEntry:"Cargando entrada...",confirmLoadBackup:"Se recuperó una copia de seguridad local para esta entrada, ¿le gustaría utilizarla?"},editorToolbar:{publishing:"Publicando...",publish:"Publicar",published:"Publicado",unpublish:"Retirado",duplicate:"Duplicar",unpublishing:"Retirando...",publishAndCreateNew:"Publicar y crear nuevo",publishAndDuplicate:"Publicar y duplicar",deleteUnpublishedChanges:"Eliminar cambios no publicados",deleteUnpublishedEntry:"Eliminar entrada no publicada",deletePublishedEntry:"Eliminar entrada publicada",deleteEntry:"Eliminar entrada",saving:"Guardando...",save:"Guardar",deleting:"Eliminando...",updating:"Actualizando...",setStatus:"Actualizar estado",backCollection:" Escribiendo en la colección %{collectionLabel}",unsavedChanges:"Cambios no guardados",changesSaved:"Cambios guardados",draft:"Borrador",inReview:"En revisión",ready:"Listo",publishNow:"Publicar ahora",deployPreviewPendingButtonLabel:"Comprobar Vista Previo",deployPreviewButtonLabel:"Ver Vista Previa",deployButtonLabel:"Ver publicación"},editorWidgets:{markdown:{richText:"Texto enriquecido",markdown:"Markdown"},image:{choose:"Elige una imagen",chooseDifferent:"Elige una imagen diferente",remove:"Quita la imagen"},file:{choose:"Escoge un archivo",chooseDifferent:"Elige un archivo diferente",remove:"Remover archivo"},unknownControl:{noControl:"No existe un control para el widget '%{widget}'."},unknownPreview:{noPreview:"No existe una vista previa para el widget '%{widget}'."},headingOptions:{headingOne:"Encabezado 1",headingTwo:"Encabezado 2",headingThree:"Encabezado 3",headingFour:"Encabezado 4",headingFive:"Encabezado 5",headingSix:"Encabezado 6"},datetime:{now:"Ahora"}}},mediaLibrary:{mediaLibraryCard:{draft:"Borrador"},mediaLibrary:{onDelete:"¿Está seguro de que desea eliminar el medio seleccionado?",fileTooLarge:"Archivo muy pesado.\nConfigurado para no permitir archivos más pesados que %{size} kB."},mediaLibraryModal:{loading:"Cargando...",noResults:"Sin resultados.",noAssetsFound:"Archivos no encontrados.",noImagesFound:"Imágenes no encontradas.",private:"Privado ",images:"Imágenes",mediaAssets:"Archivos multimedia",search:"Buscar...",uploading:"Subiendo...",upload:"Subir nuevo",download:"Descargar",deleting:"Eliminando...",deleteSelected:"Eliminar selección",chooseSelected:"Confirmar selección"}},ui:{default:{goBackToSite:"Regresar al sitio"},errorBoundary:{title:"Error",details:"Se ha producido un error - por favor ",reportIt:"infórmenos de ello.",detailsHeading:"Detalles",privacyWarning:"Abrir un reporte lo rellena previamente con el mensaje de error y los datos de depuración.\nPor favor verifica que la información es correcta y elimina cualquier dato sensible.",recoveredEntry:{heading:"Documento recuperado",warning:"¡Por favor, copie/pegue esto en algún lugar antes de ir a otra página!",copyButtonLabel:"Copiar al portapapeles"}},settingsDropdown:{logOut:"Cerrar sesión"},toast:{onFailToLoadEntries:"No se ha podido cargar la entrada: %{details}",onFailToLoadDeployPreview:"No se ha podido cargar la vista previa: %{details}",onFailToPersist:"No se ha podido guardar la entrada: %{details}",onFailToDelete:"No se ha podido borrar la entrada: %{details}",onFailToUpdateStatus:"No se ha podido actualizar el estado: %{details}",missingRequiredField:"Oops, no ha rellenado un campo obligatorio. Por favor, rellenelo antes de guardar.",entrySaved:"Entrada guardada",entryPublished:"Entrada publicada",entryUnpublished:"Entrada retirada",onFailToPublishEntry:"No se ha podido publicar: %{details}",onFailToUnpublishEntry:"No se ha podido retirar la entrada: %{details}",entryUpdated:"Estado de entrada actualizado",onDeleteUnpublishedChanges:"Cambios no publicados eliminados",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Cargando Entradas del Flujo Editorial",workflowHeading:"Flujo Editorial",newPost:"Nuevo artículo",description:"%{smart_count} entrada esperando revisión, %{readyCount} lista para publicar |||| %{smart_count} entradas esperando revisión, %{readyCount} listas para publicar. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} por %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"por %{author}",deleteChanges:"Eliminar cambios",deleteNewEntry:"Eliminar nueva entrada",publishChanges:"Publicar cambios",publishNewEntry:"Publicar nueva entrada"},workflowList:{onDeleteEntry:"¿Está seguro de que quiere borrar esta entrada?",onPublishingNotReadyEntry:'Sólo se pueden publicar los elementos con el estado "Listo". Por favor, arrastre la tarjeta hasta la columna "Listo" para permitir la publicación.',onPublishEntry:"¿Estás seguro de que quieres publicar esta entrada?",draftHeader:"Borradores",inReviewHeader:"En revisión",readyHeader:"Listo",currentEntries:"%{smart_count} entrada |||| %{smart_count} entradas"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Iniciar sessió",loggingIn:"Iniciant sessió...",loginWithNetlifyIdentity:"Iniciar sessió amb l'identitat de Netlify",loginWithBitbucket:"Iniciar sessió amb Bitbucket",loginWithGitHub:"Iniciar sessió amb GitHub",loginWithGitLab:"Iniciar sessió amb GitLab",errors:{email:"Comprova que has escrit el teu email.",password:"Si us plau escriu la teva contrasenya.",identitySettings:"No s'ha pogut obtenir accés a les configuracions d'identitat. Quan feu servir backend de git-gateway, assegureu-vos que activeu el servei d’identitat i la passarel·la de Git."}},app:{header:{content:"Contingut",workflow:"Flux Editorial",media:"Multimèdia",quickAdd:"Afegir"},app:{errorHeader:"Error al carregar la configuració del CMS",configErrors:"Errors de configuració",checkConfigYml:"Comprovi l'arxiu config.yml.",loadingConfig:"Carregant configuració....",waitingBackend:"Esperant al servidor..."},notFoundPage:{header:"No trobat"}},collection:{sidebar:{collections:"Coleccions",searchAll:"Buscar tots"},collectionTop:{viewAs:"Veure com",newButton:"Nou %{collectionLabel}"},entries:{loadingEntries:"Carregant entrades",cachingEntries:"Emmagatzemant entrades a la caché",longerLoading:"Això podria tardar uns minuts"}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} és obligatori.",regexPattern:"%{fieldLabel} no coincideix amb el patró: %{pattern}.",processing:"%{fieldLabel} està processant.",range:"%{fieldLabel} ha d'estar entre %{minValue} i %{maxValue}.",min:"%{fieldLabel} ha ser com a mínim %{minValue}.",max:"%{fieldLabel} ha de ser %{maxValue} o més.",rangeCount:"%{fieldLabel} ha de tenir entre %{minCount} i %{maxCount} element(s).",rangeCountExact:"%{fieldLabel} ha de tenir exactament %{count} element(s).",minCount:"%{fieldLabel} ha de tenir com a mínim %{minCount} element(s).",maxCount:"%{fieldLabel} ha de ser %{maxCount} o inferior."}},editor:{onLeavePage:"Estàs segur que vols deixar aquesta pàgina?",onUpdatingWithUnsavedChanges:"Té canvis no guardats, si us plau, guardi'ls abans d'actualitzar l'estat.",onPublishingNotReady:'si us plau, actualitzi l\'estat a "Ready" abans de publicar.',onPublishingWithUnsavedChanges:"Té canvis no guardats, si us plau, guardi'ls abans de publicar-los.",onPublishing:"Està segur que vol publicar aquesta entrada?",onDeleteWithUnsavedChanges:"Està segur que vol eliminar aquesta entrada publicada, així com els canvis no guardats de la sessió actual?",onDeletePublishedEntry:"Està segur que vol eliminar aquesta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Això eliminarà tots els canvis no publicats d'aquesta entrada així com els canvis no guardats de la sessió actual. Encara vol procedir?",onDeleteUnpublishedChanges:"Tots els canvis no publicats en aquesta entrada seràn esborrats. Encara els vol eliminar?",loadingEntry:"Carregant entrada...",confirmLoadBackup:"S'ha recuperat una copia de seguretat local per aquesta entrada. La vol utilitzar?"},editorToolbar:{publishing:"Publicant...",publish:"Publicar",published:"Publicat",unpublish:"Despublicar",duplicate:"Duplicar",unpublishing:"Despublicant...",publishAndCreateNew:"Publicar i crear de nou",publishAndDuplicate:"Publica i duplica",deleteUnpublishedChanges:"Eliminar canvis no publicats",deleteUnpublishedEntry:"Eliminar entrada no publicada",deletePublishedEntry:"Eliminar entrada publicada",deleteEntry:"Eliminar entrada",saving:"Guardant...",save:"Guardar",deleting:"Eliminant...",updating:"Actualizant...",setStatus:"Actualizar estat",backCollection:" Escrivint a la colecció %{collectionLabel}",unsavedChanges:"Canvis no guardats",changesSaved:"Canvis guardats",draft:"Esborrany",inReview:"En revisió",ready:"Llest",publishNow:"Publicar ara",deployPreviewPendingButtonLabel:"Comprovar Vista Prèvia",deployPreviewButtonLabel:"Veure Vista Prèvia",deployButtonLabel:"Veure publicació"},editorWidgets:{markdown:{richText:"Text enriquit",markdown:"Markdown"},image:{choose:"Escull una imatge",chooseDifferent:"Escull una imatge diferent",remove:"Treu la imatge"},file:{choose:"Escull un arxiu",chooseDifferent:"Escull un arxiu diferent",remove:"Esborrar archivo"},unknownControl:{noControl:"No existeix un control per al widget '%{widget}'."},unknownPreview:{noPreview:"No existeix una vista prèvia per al widget '%{widget}'."},headingOptions:{headingOne:"Encapçalament 1",headingTwo:"Encapçalament 2",headingThree:"Encapçalament 3",headingFour:"Encapçalament 4",headingFive:"Encapçalament 5",headingSix:"Encapçalament 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Esborrany"},mediaLibrary:{onDelete:"Està segur de que vol eliminar el mitjà seleccionat?",fileTooLarge:"El fitxer és massa gran.\nLa configuració no permet fitxers més grans de %{size} kB."},mediaLibraryModal:{loading:"Carregant...",noResults:"Sense resultats.",noAssetsFound:"Arxius no trobats.",noImagesFound:"Imatges no trobats.",private:"Privat ",images:"Imatges",mediaAssets:"Arxius multimèdia",search:"Buscar...",uploading:"Penjant...",upload:"Penjar nou",download:"Descarregar",deleting:"Eliminant...",deleteSelected:"Eliminar selecció",chooseSelected:"Confirmar selecció"}},ui:{default:{goBackToSite:"Torna enrere al lloc"},errorBoundary:{title:"Error",details:"S'ha produït un error - si us plau ",reportIt:"informa'ns d'això.",detailsHeading:"Detalls",recoveredEntry:{heading:"Document recuperat",warning:"Si us plau, copiï/enganxi això en algun lloc abans de navegar a una altre pàgina!",copyButtonLabel:"Copiar al porta-retalls"}},settingsDropdown:{logOut:"Tancar sessió"},toast:{onFailToLoadEntries:"No s'ha ha pogut carregar l'entrada: %{details}",onFailToLoadDeployPreview:"No s'ha pogut carregar la vista prèvia: %{details}",onFailToPersist:"No s'ha pogut guardar l'entrada: %{details}",onFailToDelete:"No s'ha pogut eliminar l'entrada: %{details}",onFailToUpdateStatus:"No s'ha pogut actualitzar l'estat: %{details}",missingRequiredField:"Ups, no ha omplert un camp obligatori. Si us plau, ompli'l abans de guardar.",entrySaved:"Entrada guardada",entryPublished:"Entrada publicada",entryUnpublished:"Entrada despublicada",onFailToPublishEntry:"No s'ha pogut publicar: %{details}",onFailToUnpublishEntry:"No s'ha pogut despublicar l'entrada: %{details}",entryUpdated:"Estat de l'entrada actualitzat",onDeleteUnpublishedChanges:"Canvis no publicats eliminats",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Carregant Entradas del Flux Editorial",workflowHeading:"Flux Editorial",newPost:"Nou article",description:"%{smart_count} entrada esperant revisió, %{readyCount} llesta per a publicar |||| %{smart_count} entrades esperant revisió, %{readyCount} llestes per a publicar. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} per %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"per %{author}",deleteChanges:"Eliminar canvis",deleteNewEntry:"Eliminar nova entrada",publishChanges:"Publicar canvis",publishNewEntry:"Publicar nova entrada"},workflowList:{onDeleteEntry:"Està segur que vol borrar aquesta entrada?",onPublishingNotReadyEntry:'Només es poden publicar elements amb estat "Llest". Si us plau, arrossegui la targeta fins la columna "Llest" per a permetre\'n la publicació',onPublishEntry:"Està segur que vol publicar aquesta entrada?",draftHeader:"Esborranys",inReviewHeader:"En revisió",readyHeader:"Llest",currentEntries:"%{smart_count} entrada |||| %{smart_count} entrades"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Se connecter",loggingIn:"Connexion en cours...",loginWithNetlifyIdentity:"Se connecter avec Netlify Identity",loginWithBitbucket:"Se connecter avec Bitbucket",loginWithGitHub:"Se connecter avec GitHub",loginWithGitLab:"Se connecter avec GitLab",errors:{email:"Assurez-vous d'avoir entré votre email.",password:"Merci de saisir votre mot de passe.",identitySettings:"Impsosible d'accéder aux paramètres d'identité. Si vous utilisez le backend git-gateway, merci de vous assurer que vous avez bien activé le service Identity et la passerelle Git."}},app:{header:{content:"Contenus",workflow:"Flux",media:"Media",quickAdd:"Ajout rapide"},app:{errorHeader:"Erreur au chargement de la configuration du CMS",configErrors:"Erreurs de configuration",checkConfigYml:"Vérifiez votre fichier config.yml.",loadingConfig:"Chargement de la configuration...",waitingBackend:"En attente du serveur..."},notFoundPage:{header:"Introuvable"}},collection:{sidebar:{collections:"Collections",allCollections:"Toutes les collections",searchAll:"Tout rechercher",searchIn:"Rechercher dans"},collectionTop:{sortBy:"Trier par",viewAs:"Voir comme",newButton:"Créer une entrée de type %{collectionLabel}",ascending:"Croissant",descending:"Décroissant",searchResults:'Résultats de la recherche pour "%{searchTerm}"',searchResultsInCollection:'Résultats de la recherche pour "%{searchTerm}" dans %{collection}',filterBy:"Filtrer par"},entries:{loadingEntries:"Chargement des entrées",cachingEntries:"Mise en cache des entrées",longerLoading:"Cela peut prendre quelques minutes",noEntries:"Aucune entrée"},defaultFields:{author:{label:"Auteur"},updatedOn:{label:"Mis à jour le"}}},editor:{editorControl:{field:{optional:"optionnel"}},editorControlPane:{widget:{required:"Le champ %{fieldLabel} est requis.",regexPattern:"Le champ %{fieldLabel} ne correspond pas au schéma: %{pattern}.",processing:"Le champ %{fieldLabel} est en cours de traitement.",range:"Le champ %{fieldLabel} doit être compris entre %{minValue} et %{maxValue}.",min:"Le champ %{fieldLabel} doit avoir une valeur de %{minValue} ou plus.",max:"Le champ %{fieldLabel} doit avoir une valeur de %{maxValue} ou moins.",rangeCount:"%{fieldLabel} doit avoir entre %{minCount} et %{maxCount} élément(s).",rangeCountExact:"%{fieldLabel} doit avoir exactement %{count} éléments(s).",minCount:"%{fieldLabel} doit avoir au moins %{minCount} éléments(s).",maxCount:"%{fieldLabel} doit avoir %{maxCount} éléments(s) ou moins.",invalidPath:"'%{path}' n'est pas un chemin valide",pathExists:"Le chemin '%{path}' existe déjà"}},editor:{onLeavePage:"Voulez-vous vraiment quitter cette page ?",onUpdatingWithUnsavedChanges:"Veuillez enregistrer vos modifications avant de mettre à jour le statut.",onPublishingNotReady:'Veuillez mettre à jour le statut à "Prêt" avant de publier.',onPublishingWithUnsavedChanges:"Veuillez enregistrer vos modifications avant de publier.",onPublishing:"Voulez-vous vraiment publier cette entrée ?",onDeleteWithUnsavedChanges:"Voulez-vous vraiment supprimer cette entrée publiée ainsi que vos modifications non enregistrées de cette session ?",onDeletePublishedEntry:"Voulez-vous vraiment supprimer cette entrée publiée ?",onDeleteUnpublishedChangesWithUnsavedChanges:"Ceci supprimera toutes les modifications non publiées de cette entrée ainsi que vos modifications non enregistrées de cette session. Voulez-vous toujours supprimer ?",onDeleteUnpublishedChanges:"Toutes les modifications non publiées de cette entrée seront supprimées. Voulez-vous toujours supprimer ?",loadingEntry:"Chargement de l'entrée...",confirmLoadBackup:"Une sauvegarde locale a été trouvée pour cette entrée. Voulez-vous l'utiliser"},editorToolbar:{publishing:"Publication...",publish:"Publier",published:"Publiée",unpublish:"Dépublier",duplicate:"Dupliquer",unpublishing:"Dépublication...",publishAndCreateNew:"Publier et créer une nouvelle entrée",publishAndDuplicate:"Publier et dupliquer",deleteUnpublishedChanges:"Supprimer les modications non publiées",deleteUnpublishedEntry:"Supprimer l'entrée non publiée",deletePublishedEntry:"Supprimer l'entrée publiée",deleteEntry:"Supprimer l'entrée",saving:"Enregistrement...",save:"Enregistrer",deleting:"Suppression...",updating:"Mise à jour...",setStatus:"Définir le statut",backCollection:" Écriture dans la collection %{collectionLabel}",unsavedChanges:"Modifications non enregistrées",changesSaved:"Modifications enregistrées",draft:"Brouillon",inReview:"En cours de révision",ready:"Prêt",publishNow:"Publier maintenant",deployPreviewPendingButtonLabel:"Vérifier l'aperçu",deployPreviewButtonLabel:"Voir l'aperçu",deployButtonLabel:"Voir en direct"},editorWidgets:{markdown:{richText:"Texte enrichi",markdown:"Markdown"},image:{choose:"Choisissez une image",chooseDifferent:"Choisissez une image différente",remove:"Supprimer l'image"},file:{choose:"Choisissez un fichier",chooseDifferent:"Choisissez un fichier différent",remove:"Effacer le fichier"},unknownControl:{noControl:"Pas de contrôle pour le gadget '%{widget}'."},unknownPreview:{noPreview:"Pas d'aperçu pour le gadget '%{widget}'."},headingOptions:{headingOne:"Titre 1",headingTwo:"Titre 2",headingThree:"Titre 3",headingFour:"Titre 4",headingFive:"Titre 5",headingSix:"Titre 6"},datetime:{now:"Maintenant"}}},mediaLibrary:{mediaLibraryCard:{draft:"Brouillon"},mediaLibrary:{onDelete:"Voulez-vous vraiment supprimer la ressource sélectionné ?",fileTooLarge:"Le fichier est trop volumineux.\nL'instance est configurée pour bloquer les envois de plus de %{size} kB."},mediaLibraryModal:{loading:"Chargement...",noResults:"Aucun résultat.",noAssetsFound:"Aucune ressource trouvée.",noImagesFound:"Aucune image trouvée.",private:"Privé ",images:"Images",mediaAssets:"Ressources",search:"Recherche...",uploading:"Téléversement...",upload:"Téléverser une nouvelle ressource",download:"Télécharger",deleting:"Suppression...",deleteSelected:"Supprimer les éléments sélectionnés",chooseSelected:"Choisir les éléments sélectionnés"}},ui:{default:{goBackToSite:"Retourner sur le site"},errorBoundary:{title:"Erreur",details:"Une erreur est survenue, veuillez ",reportIt:"la signaler.",detailsHeading:"Détails",privacyWarning:"Ouvrir une issue la préremplie avec le message d'erreur et des données de déboggage.\nMerci de vérifier l'exactitude des informations et de supprimer toute donnée sensible si nécessaire.",recoveredEntry:{heading:"Document récupéré",warning:"Veuillez copier/coller ceci quelque part avant de naviguer ailleurs!",copyButtonLabel:"Copier dans le presse-papier"}},settingsDropdown:{logOut:"Déconnexion"},toast:{onFailToLoadEntries:"Échec du chargement de l'entrée : %{details}",onFailToLoadDeployPreview:"Échec du chargement de l'aperçu : %{details}",onFailToPersist:"Échec de l'enregistrement de l'entrée : %{details}",onFailToDelete:"Échec de la suppression de l'entrée : %{details}",onFailToUpdateStatus:"Échec de la mise à jour du statut : %{details}",missingRequiredField:"Oops, il manque un champ requis. Veuillez le renseigner avant de soumettre.",entrySaved:"Entrée enregistrée",entryPublished:"Entrée publiée",entryUnpublished:"Entrée dépubliée",onFailToPublishEntry:"Échec de la publication : %{details}",onFailToUnpublishEntry:"Impossible de dépublier l'entrée : %{details}",entryUpdated:"Statut de l'entrée mis à jour",onDeleteUnpublishedChanges:"Modifications non publiées supprimées",onFailToAuth:"%{details}",onLoggedOut:"Vous avez été déconnecté, merci de sauvegarder les données et vous reconnecter",onBackendDown:"Le serveur est actuellement hors-service. Pour plus d'informations : %{details}"}},workflow:{workflow:{loading:"Chargement des entrées du flux éditorial",workflowHeading:"Flux éditorial",newPost:"Nouvel article",description:"%{smart_count} entrée en attente de revue, %{readyCount} prête(s) à être publiée(s). |||| %{smart_count} entrées en attente de revue, %{readyCount} prête(s) à être publiée(s). ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} par %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"par %{author}",deleteChanges:"Supprimer les mofications",deleteNewEntry:"Supprimer la nouvelle entrée",publishChanges:"Publier les modifications",publishNewEntry:"Publier la nouvelle entrée"},workflowList:{onDeleteEntry:"Voulez-vous vraiment supprimer cette entrée ?",onPublishingNotReadyEntry:'Seuls les éléments ayant le statut "Prêt" peuvent être publiés. Veuillez glisser/déposer la carte dans la colonne "Prêt" pour activer la publication',onPublishEntry:"Voulez-vous vraiment publier cette entrée ?",draftHeader:"Brouillons",inReviewHeader:"En cours de révision",readyHeader:"Prêt",currentEntries:"%{smart_count} entrée |||| %{smart_count} entrées"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Σύνδεση",loggingIn:"Σύνδεση στο...",loginWithNetlifyIdentity:"Σύνδεση μέσω Netlify",loginWithBitbucket:"Σύνδεση μέσω Bitbucket",loginWithGitHub:"Σύνδεση μέσω GitHub",loginWithGitLab:"Σύνδεση μέσω GitLab",errors:{email:"Βεβαιωθείτε ότι έχετε εισαγάγει το email σας.",password:"Παρακαλώ εισάγετε τον κωδικό πρόσβασής σας.",identitySettings:"Δεν είναι δυνατή η πρόσβαση στις ρυθμίσεις ταυτότητας. Όταν χρησιμοποιείτε το παρασκήνιο του git Gateway, φροντίστε να ενεργοποιήσετε την υπηρεσία Identity και το git Gateway."}},app:{header:{content:"Περιεχόμενα",workflow:"Ροής εργασίας",media:"Πολυμέσα",quickAdd:"Γρήγορη προσθήκη"},app:{errorHeader:"Σφάλμα κατά τη φόρτωση της ρύθμισης παραμέτρων CMS",configErrors:"Σφάλματα ρύθμισης παραμέτρων",checkConfigYml:"Ελέγξτε το αρχείο config.yml.",loadingConfig:"Φόρτωση ρύθμισης παραμέτρων...",waitingBackend:"Αναμονή για παρασκηνιακό..."},notFoundPage:{header:"Δεν βρέθηκε"}},collection:{sidebar:{collections:"Συλλογές",searchAll:"Αναζήτηση όλων"},collectionTop:{viewAs:"Προβολή ως",newButton:"Νέο %{collectionLabel}"},entries:{loadingEntries:"Εγγραφές φόρτωσης",cachingEntries:"Εγγραφές προσωρινής αποθήκευσης",longerLoading:"Αυτό μπορεί να διαρκέσει αρκετά λεπτά"}},editor:{editorControl:{field:{optional:"προαιρετικός"}},editorControlPane:{widget:{required:"Το %{fieldLabel} είναι απαραίτητο.",regexPattern:"Το %{fieldLabel} δεν ταιριάζει με το μοτίβο: %{pattern}.",processing:"Το %{fieldLabel} επεξεργάζεται.",range:"Το %{fieldLabel} πρέπει να είναι μεταξύ %{minValue} και %{maxValue}.",min:"Το %{fieldLabel} πρέπει να είναι τουλάχιστον %{minValue}.",max:"Το %{fieldLabel} πρέπει να είναι %{maxValue} ή μικρότερο."}},editor:{onLeavePage:"Είστε βέβαιοι ότι θέλετε να αφήσετε αυτήν τη σελίδα;",onUpdatingWithUnsavedChanges:"Έχετε μη αποθηκευμένες αλλαγές, αποθηκεύστε πριν να ενημερώσετε την κατάσταση.",onPublishingNotReady:'Ενημερώστε την κατάσταση σε "έτοιμο" πριν από τη δημοσίευση.',onPublishingWithUnsavedChanges:"Έχετε μη αποθηκευμένες αλλαγές, αποθηκεύστε πριν από τη δημοσίευση.",onPublishing:"Είστε βέβαιοι ότι θέλετε να δημοσιεύσετε αυτήν την καταχώρηση;",onUnpublishing:"Είστε βέβαιοι ότι θέλετε να καταργήσετε τη δημοσίευση αυτής της καταχώρησης;",onDeleteWithUnsavedChanges:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν τη δημοσιευμένη καταχώρηση, καθώς και τις αλλαγές που δεν αποθηκεύσατε από την τρέχουσα περίοδο λειτουργίας;",onDeletePublishedEntry:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν τη δημοσιευμένη καταχώρηση;",onDeleteUnpublishedChangesWithUnsavedChanges:"Αυτό θα διαγράψει όλες τις μη δημοσιευμένες αλλαγές σε αυτήν την καταχώρηση, καθώς και τις αλλαγές που δεν έχετε αποθηκεύσει από την τρέχουσα περίοδο λειτουργίας. Θέλετε ακόμα να διαγράψετε;",onDeleteUnpublishedChanges:"Όλες οι μη δημοσιευμένες αλλαγές σε αυτήν την καταχώρηση θα διαγραφούν. Θέλετε ακόμα να διαγράψετε;",loadingEntry:"Φόρτωση εισόδου...",confirmLoadBackup:"Ανακτήθηκε ένα τοπικό αντίγραφο ασφαλείας για αυτήν την καταχώρηση, θέλετε να το χρησιμοποιήσετε;"},editorToolbar:{publishing:"Δημοσίευση...",publish:"Δημοσίευση",published:"Δημοσιεύθηκε",unpublish:"Κατάργηση δημοσίευσης",duplicate:"Διπλότυπο",unpublishing:"Κατάργηση δημοσίευσης...",publishAndCreateNew:"Δημοσίευση και δημιουργία νέων",publishAndDuplicate:"Δημοσίευση και αντίγραφο",deleteUnpublishedChanges:"Διαγραφή μη δημοσιευμένων αλλαγών",deleteUnpublishedEntry:"Διαγραφή μη δημοσιευμένης καταχώρησης",deletePublishedEntry:"Διαγραφή δημοσιευμένης καταχώρησης",deleteEntry:"Διαγραφή καταχώρησης",saving:"Εξοικονόμηση...",save:"Αποθήκευση",deleting:"Διαγραφή...",updating:"Ενημέρωση...",setStatus:"Ορισμός κατάστασης",backCollection:" Εγγραφή στη συλλογή %{collectionLabel}",unsavedChanges:"Μη αποθηκευμένες αλλαγές",changesSaved:"Αλλαγές που αποθηκεύτηκαν",draft:"Σχέδιο",inReview:"Σε επανεξέταση",ready:"Έτοιμα",publishNow:"Δημοσίευση τώρα",deployPreviewPendingButtonLabel:"Έλεγχος για προεπισκόπηση",deployPreviewButtonLabel:"Προβολή προεπισκόπησης",deployButtonLabel:"Προβολή Live"},editorWidgets:{image:{choose:"Επιλέξτε μια εικόνα",chooseDifferent:"Επιλέξτε διαφορετική εικόνα",remove:"Αφαιρέστε την εικόνα"},file:{choose:"Επιλέξτε ένα αρχείο",chooseDifferent:"Επιλέξτε διαφορετικό αρχείο",remove:"Αφαιρέστε το αρχείο"},unknownControl:{noControl:"Δεν υπάρχει έλεγχος για το widget '%{widget}'."},unknownPreview:{noPreview:"Δεν υπάρχει προεπισκόπηση για το widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Προσχέδιο"},mediaLibrary:{onDelete:"Είστε βέβαιοι ότι θέλετε να διαγράψετε τα επιλεγμένα πολυμέσα;",fileTooLarge:"Το αρχείο είναι πολύ μεγάλο.\nΔεν επιτρέπονται αρχεία μεγαλύτερα από %{size} kB."},mediaLibraryModal:{loading:"Φόρτωση...",noResults:"Χωρίς αποτελέσματα.",noAssetsFound:"Δεν βρέθηκαν αρχεία.",noImagesFound:"Δεν βρέθηκαν εικόνες.",private:"Ιδιωτικό",images:"Εικόνες",mediaAssets:"Αρχεία πολυμέσων",search:"Αναζήτηση...",uploading:"Φόρτωμα...",upload:"Ανεβάστε νέα",deleting:"Διαγραφή...",deleteSelected:"Διαγραφή επιλεγμένου",chooseSelected:"Επιλέξτε επιλεγμένο"}},ui:{errorBoundary:{title:"Σφάλμα",details:"Υπάρχει ένα λάθος ",reportIt:"παρακαλώ να το αναφέρετε.",detailsHeading:"Λεπτομέρειες",recoveredEntry:{heading:"Ανακτημένο έγγραφο",warning:"Παρακαλώ αντιγράψτε/επικολλήστε αυτό κάπου πριν πλοηγηθείτε μακριά!",copyButtonLabel:"Αντιγραφή στο Πρόχειρο"}},settingsDropdown:{logOut:"Αποσύνδεση"},toast:{onFailToLoadEntries:"Απέτυχε η φόρτωση της καταχώρησης: %{details}",onFailToLoadDeployPreview:"Απέτυχε η φόρτωση της προεπισκόπησης: %{details}",onFailToPersist:"Απέτυχε η διατήρηση της καταχώρησης:% {Details}",onFailToDelete:"Απέτυχε η διαγραφή της καταχώρησης: %{details}",onFailToUpdateStatus:"Απέτυχε η ενημέρωση της κατάστασης: %{details}",missingRequiredField:"Ουπς, ξεχάσατε ένα απαιτούμενο πεδίο. Συμπληρώστε το πριν από την αποθήκευση.",entrySaved:"Η καταχώρηση Αποθηκεύτηκε",entryPublished:"Η καταχώρηση δημοσιεύτηκε",entryUnpublished:"Μη δημοσιευμένη καταχώρηση",onFailToPublishEntry:"Η δημοσίευση απέτυχε: %{details}",onFailToUnpublishEntry:"Απέτυχε η κατάργηση δημοσίευσης καταχώρησης: %{details}",entryUpdated:"Η κατάσταση εισόδου ενημερώθηκε",onDeleteUnpublishedChanges:"Οι μη δημοσιευμένες αλλαγές διαγράφηκαν",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Φόρτωση καταχωρήσεων ροής εργασίας σύνταξης",workflowHeading:"Ροή εργασιών",newPost:"Νέα δημοσίευση",description:"%{smart_count} καταχώρησεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. |||| %{smart_count} καταχωρήσεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} από %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"από %{author}",deleteChanges:"Διαγραφή αλλαγών",deleteNewEntry:"Διαγραφή νέας καταχώρησης",publishChanges:"Δημοσίευση αλλαγών",publishNewEntry:"Δημοσίευση νέας καταχώρησης"},workflowList:{onDeleteEntry:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν την καταχώρηση;",onPublishingNotReadyEntry:'Μόνο τα στοιχεία με κατάσταση "Ready" μπορούν να δημοσιευτούν. Σύρετε την κάρτα στη στήλη "έτοιμο" για να ενεργοποιήσετε τη δημοσίευση.',onPublishEntry:"Είστε βέβαιοι ότι θέλετε να δημοσιεύσετε αυτήν την καταχώρηση;",draftHeader:"Προσχέδια",inReviewHeader:"Σε ανασκόπηση",readyHeader:"Έτοιμα",currentEntries:"%{smart_count} καταχωρηση |||| %{smart_count} καταχωρησεις"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={app:{header:{content:"Tartalom",workflow:"Munkafolyamat",media:"Média",quickAdd:"Gyors hozzáadás"},app:{errorHeader:"Hiba történt a CMS konfiguráció betöltése közben",configErrors:"Configurációs hibák",checkConfigYml:"Ellenőrizd a config.yml filet.",loadingConfig:"Konfiguráció betöltése...",waitingBackend:"Várakozás hattérrendszerekre..."},notFoundPage:{header:"Nincs találat"}},collection:{sidebar:{collections:"Gyűjtemények",searchAll:"Keresés mindenre"},collectionTop:{viewAs:"Nézet mint",newButton:"Új %{collectionLabel}"},entries:{loadingEntries:"Bejegyzések betöltése",cachingEntries:"Bejegyzések cacheelése",longerLoading:"Ez még eltarthat néhany percig"}},editor:{editorControl:{field:{optional:"választható"}},editorControlPane:{widget:{required:"%{fieldLabel} kötelező mező.",regexPattern:"%{fieldLabel} nem egyezik a %{pattern} mintával.",processing:"%{fieldLabel} feldolgozás alatt.",range:"%{fieldLabel}, %{minValue} és %{maxValue} értékek között kell legyen.",min:"%{fieldLabel} legalább %{minValue} kell legyen vagy több.",max:"%{fieldLabel} legalabb %{maxValue} vagy kevesebb kell legyen."}},editor:{onLeavePage:"Biztos hogy el akarod hagyni az oldalt?",onUpdatingWithUnsavedChanges:"Mentettlen változtatások vannak, kérjük, mentse az állapot frissítése előtt.",onPublishingNotReady:'Változtasd az állapotot "Kész"-re publikálás előtt.',onPublishingWithUnsavedChanges:"Mentetlen változtatások vannak, kérjük, mentsen a publikálás előtt.",onPublishing:"Publikálod ezt a bejegyzést?",onUnpublishing:"Publikálás visszavonása erre a bejegyzésre?",onDeleteWithUnsavedChanges:"Töröljük ezt a publikált bejegyzést, a többi mentetlen modositással együtt?",onDeletePublishedEntry:"Töröljük ezt a publikált bejegyzést?",onDeleteUnpublishedChangesWithUnsavedChanges:"Ezzel törli a bejegyzés összes nem közzétett módosítását, valamint az aktuális munkamenetből nem mentett módosításokat. Még mindig törli?",onDeleteUnpublishedChanges:"A bejegyzés összes, nem közzétett módosítása törlődik. Még mindig törli?",loadingEntry:"Bejegyzés betöltése...",confirmLoadBackup:"Helyi biztonsági másolat került helyre ehhez a bejegyzéshez, szeretné használni?"},editorToolbar:{publishing:"Publikálás...",publish:"Publikáció",published:"Publikálás",unpublish:"Publikálás visszavonása",duplicate:"Duplikált",unpublishing:"Publikálás visszavonása...",publishAndCreateNew:"Publikálás és új létrehozása",publishAndDuplicate:"Publikálás és duplikál",deleteUnpublishedChanges:"Nempublikált változtatások törlése",deleteUnpublishedEntry:"Nempublikált bejegyzés törlése",deletePublishedEntry:"Publikált bejegyzés törlése",deleteEntry:"Bejegyzés törlése",saving:"Mentés...",save:"Mentés",deleting:"Törlés...",updating:"Frissítés...",setStatus:"Állapot beállitása",backCollection:" Írás a %{collectionLabel} gyűjteménybe",unsavedChanges:"Nemmentett változtatások",changesSaved:"Változások elmentve",draft:"Piszkozat",inReview:"Felülvizsgálat alatt",ready:"Kész",publishNow:"Publikálás most",deployPreviewPendingButtonLabel:"Előnézet ellenörzése",deployPreviewButtonLabel:"Előnézet megtekintése",deployButtonLabel:"Élő megtekintése"},editorWidgets:{image:{choose:"Válasszon képet",chooseDifferent:"Válasszon másik képet",remove:"Távolítsa el a képet"},file:{choose:"Válasszon fájlt",chooseDifferent:"Válasszon másik fájlt",remove:"Távolítsa el a fájlt"},unknownControl:{noControl:"Nincs vezérlés a '%{widget}' widget számára."},unknownPreview:{noPreview:"Nincs előnézet a '%{widget}' widget számára."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Piszkozat"},mediaLibrary:{onDelete:"Biztos törli a kiválasztott média tartalmat?"},mediaLibraryModal:{loading:"Betöltés...",noResults:"Nincs találat.",noAssetsFound:"Nem található tartalom.",noImagesFound:"Nem található kép.",private:"Privát ",images:"Képek",mediaAssets:"Média tartalmak",search:"Keresés...",uploading:"Feltöltés...",upload:"Új feltöltés",deleting:"Törlés...",deleteSelected:"Kijelöltek törlése",chooseSelected:"Kijelöl"}},ui:{errorBoundary:{title:"Hiba",details:"Hiba történt - kérjük ",reportIt:"jelentse.",detailsHeading:"Részletek",recoveredEntry:{heading:"Helyreállitott dokumentum",warning:"Kérjük mentse ezt el (vágólapra) mielőtt elhagyná az oldalt!",copyButtonLabel:"Másolás a vágólapra"}},settingsDropdown:{logOut:"Kijelentkezés"},toast:{onFailToLoadEntries:"A bejegyzés betöltése nem sikerült: %{details}",onFailToLoadDeployPreview:"Az előnézet betöltése nem sikerült: %{details}",onFailToPersist:"Bejegyzés megtartása sikertelen: %{details}",onFailToDelete:"A bejegyzés törlése sikertelen: %{details}",onFailToUpdateStatus:"Az állapot frissítése nem sikerült: %{details}",missingRequiredField:"Hoppá, kihagytál egy kötelező mezőt. Mentés előtt töltsd ki.",entrySaved:"Bejegyzés elmentve",entryPublished:"Bejegyzés publikálva",entryUnpublished:"Bejegyzés publikálása visszavonva",onFailToPublishEntry:"Bejegyzés publikálása sikertelen: %{details}",onFailToUnpublishEntry:"Bejegyzés publikálásának visszavonása sikertelen: %{details}",entryUpdated:"Bejegyzés állapota frissült",onDeleteUnpublishedChanges:"Unpublished changes deleted",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"A szerkesztési munkafolyamat-bejegyzések betöltése",workflowHeading:"Szerkesztői Folyamat",newPost:"New Post",description:"%{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. |||| %{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, írta %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Változtatások törlése",deleteNewEntry:"Új bejegyzés törlése",publishChanges:"Változtatások publikálása",publishNewEntry:"Új bejegyzés publikálása"},workflowList:{onDeleteEntry:"Biztosan törli ezt a bejegyzést?",onPublishingNotReadyEntry:'Csak a "Kész" állapotú tételek tehetők közzé. A közzététel engedélyezéséhez húzza a kártyát a „Kész” oszlopba.',onPublishEntry:"Biztosan közzéteszi ezt a bejegyzést?",draftHeader:"Piszkozat",inReviewHeader:"Vizsgálat alatt",readyHeader:"Kész",currentEntries:"%{smart_count} bejegyzés |||| %{smart_count} bejegyzések"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Accedi",loggingIn:"Effettuando l'accesso...",loginWithNetlifyIdentity:"Accedi con Netlify Identity",loginWithBitbucket:"Accedi con Bitbucket",loginWithGitHub:"Accedi con GitHub",loginWithGitLab:"Accedi con GitLab",errors:{email:"Assicurati di inserire la tua mail.",password:"Inserisci la tua password.",identitySettings:"Impossibile accedere alle impostazioni di Identity. Quando usi git-gateway come backend assicurati di abilitare il servizio Itentity e Git Gateway."}},app:{header:{content:"Contenuti",workflow:"Workflow",media:"Media",quickAdd:"Aggiunta veloce"},app:{errorHeader:"Errore nel caricamento della configurazione CMS",configErrors:"Errori di Configurazione",checkConfigYml:"Controlla il tuo file config.yml.",loadingConfig:"Caricando la configurazione...",waitingBackend:"Attendi il backend..."},notFoundPage:{header:"Non trovato"}},collection:{sidebar:{collections:"Collezioni",searchAll:"Cerca su tutto"},collectionTop:{viewAs:"Vedi come",newButton:"Nuovo/a %{collectionLabel}"},entries:{loadingEntries:"Caricando le voci",cachingEntries:"Cachando le voci",longerLoading:"Questa operazione potrebbe durare diversi minuti"}},editor:{editorControl:{field:{optional:"opzionale"}},editorControlPane:{widget:{required:"%{fieldLabel} è richiesto.",regexPattern:"%{fieldLabel} non corrisponde allo schema: %{pattern}.",processing:"%{fieldLabel} sta elaborando.",range:"%{fieldLabel} deve essere tra %{minValue} e %{maxValue}.",min:"%{fieldLabel} deve essere almeno %{minValue}.",max:"%{fieldLabel} deve essere %{maxValue} o meno."}},editor:{onLeavePage:"Sei sicuro di voler lasciare questa pagina?",onUpdatingWithUnsavedChanges:"Hai delle modifiche non salvate, salvale prima di aggiornare lo status.",onPublishingNotReady:'Aggiorna lo status a "Pronto" prima di pubblicare.',onPublishingWithUnsavedChanges:"Hai delle modifiche non salvate, salvale prima di pubblicare.",onPublishing:"Sei sicuro di voler pubblicare questa voce?",onUnpublishing:"Sei sicuro di voler nascondere questa voce?",onDeleteWithUnsavedChanges:"Sei sicuro di voler cancellare questa voce pubblicata e tutte le modifiche non salvate della tua sessione corrente?",onDeletePublishedEntry:"Sei sicuro di voler cancellare questa voce pubblicata?",onDeleteUnpublishedChangesWithUnsavedChanges:"Questo cancellerà tutte le modifiche non pubblicate di questa voce, come anche tutte le modifiche non salvate della sessione corrente. Vuoi ancora cancellarle?",onDeleteUnpublishedChanges:"Tutte le modifiche non pubblicate a questa voce saranno cancellate. Vuoi ancora cancellarle?",loadingEntry:"Caricando la voce...",confirmLoadBackup:"Un backup locale è stato recuperato per questa voce, vuoi utilizzarlo?"},editorToolbar:{publishing:"Pubblicando...",publish:"Pubblica",published:"Pubblicato",unpublish:"Rimuovi dalla pubblicazione",duplicate:"Duplica",unpublishing:"Rimuovendo dalla pubblicazione...",publishAndCreateNew:"Pubblica e creane uno nuovo",publishAndDuplicate:"Pubblica e duplica",deleteUnpublishedChanges:"Cancella le modifiche non pubblicate",deleteUnpublishedEntry:"Cancella le voci non pubblicate",deletePublishedEntry:"Cancella la voce pubblicata",deleteEntry:"Cancella voce",saving:"Salvando...",save:"Salva",deleting:"Cancellando...",updating:"Aggiornando...",setStatus:"Imposta status",backCollection:" Scrivendo nella sezione %{collectionLabel}",unsavedChanges:"Modifiche non salvate",changesSaved:"Modifiche salvate",draft:"Bozza",inReview:"In revisione",ready:"Pronto",publishNow:"Pubblica ora",deployPreviewPendingButtonLabel:"Controlla l'anteprima",deployPreviewButtonLabel:"Guarda l'anteprima",deployButtonLabel:"Guarda Live"},editorWidgets:{image:{choose:"Scegli un'immagine",chooseDifferent:"Scegli un'immagine diversa",remove:"Rimuovi immagine"},file:{choose:"Scegli un file",chooseDifferent:"Scegli un altro file",remove:"Rimuovi il file"},unknownControl:{noControl:"Nessun controllo per il widget '%{widget}'."},unknownPreview:{noPreview:"Nessuna preview per il widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Bozza"},mediaLibrary:{onDelete:"Sei sicuro di voler cancellare il media selezionato?",fileTooLarge:"File troppo grande.\nConfigurato per non accettare file piú grandi di %{size} kB."},mediaLibraryModal:{loading:"Caricamento...",noResults:"Nessun risultato.",noAssetsFound:"Nessun assets trovato.",noImagesFound:"Nessuna immagine trovata.",private:"Privato ",images:"Immagini",mediaAssets:"Media assets",search:"Cerca...",uploading:"Uploading...",upload:"Upload",deleting:"Deleting...",deleteSelected:"Cancella selezionato",chooseSelected:"Prendi selezionato"}},ui:{errorBoundary:{title:"Errore",details:"C'è stato un errore - per favore ",reportIt:"riportalo.",detailsHeading:"Dettagli",recoveredEntry:{heading:"Documento recuperato",warning:"Per favore copia/incollalo da qualche parte prima di navigare altrove!",copyButtonLabel:"Copialo negli appunti"}},settingsDropdown:{logOut:"Esci"},toast:{onFailToLoadEntries:"Caricamento voce non riuscito: %{details}",onFailToLoadDeployPreview:"Caricamento della preview non riuscito: %{details}",onFailToPersist:"Salvataggio della voce non riuscito: %{details}",onFailToDelete:"Cancellazione della voce non riuscita: %{details}",onFailToUpdateStatus:"Aggiornamento dello status non riuscito: %{details}",missingRequiredField:"Oops, ti sei perso un campo obbligatorio. Per favore completalo prima di salvare.",entrySaved:"Voce salvata",entryPublished:"Voce pubblicata",entryUnpublished:"Voce rimossa dalla pubblicazione",onFailToPublishEntry:"Pubblicazione fallita: %{details}",onFailToUnpublishEntry:"Rimozione della pubblicazione fallita: %{details}",entryUpdated:"Status della voce aggiornato",onDeleteUnpublishedChanges:"Modifiche non pubblicate cancellate",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Caricando le voci del Flusso Editoriale",workflowHeading:"Flusso Editoriale",newPost:"Nuovo Post",description:"%{smart_count} voce attende la revisione, %{readyCount} pronte per la pubblicazione. |||| %{smart_count} voci attendono la revisione, %{readyCount} pronte per la pubblicazione. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} da %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"da %{author}",deleteChanges:"Cancella le modifiche",deleteNewEntry:"Cancella nuova voce",publishChanges:"Pubblica modifiche",publishNewEntry:"Pubblica una nuova voce"},workflowList:{onDeleteEntry:"Sei sicuro di voler cancellare questa voce?",onPublishingNotReadyEntry:'Solo gli oggetti con lo status "Pronto" possono essere pubblicati. Sposta la Card nella colonna "Pronto" per abilitare la pubblicazione.',onPublishEntry:"Sei sicuro di voler pubblicare questa voce?",draftHeader:"Bozze",inReviewHeader:"In Revisione",readyHeader:"Pronto",currentEntries:"%{smart_count} voce |||| %{smart_count} voci"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"ログイン",loggingIn:"ログインしています...",loginWithNetlifyIdentity:"Netlify Identity でログインする",loginWithBitbucket:"Bitbucket でログインする",loginWithGitHub:"GitHub でログインする",loginWithGitLab:"GitLab でログインする",errors:{email:"メールアドレスを確認してください。",password:"パスワードを入力してください。",identitySettings:"認証情報にアクセスできませんでした。git-gateway backend を利用している場合は、認証サービスと Git Gateway が有効になっているかを確認してください。"}},app:{header:{content:"コンテンツ",workflow:"ワークフロー",media:"メディア",quickAdd:"新規作成"},app:{errorHeader:"CMS設定の読み込みエラー",configErrors:"設定エラー",checkConfigYml:"config.ymlを確認してください。",loadingConfig:"設定を読み込んでいます...",waitingBackend:"バックエンドの応答を待機しています..."},notFoundPage:{header:"ページが見つかりません"}},collection:{sidebar:{collections:"コレクション",allCollections:"すべてのコレクション",searchAll:"検索",searchIn:"検索対象"},collectionTop:{sortBy:"ソート",viewAs:"表示モード",newButton:"%{collectionLabel}を作成",ascending:"昇順",descending:"降順",searchResults:"「%{searchTerm}」の検索結果",searchResultsInCollection:"%{collection}内の「%{searchTerm}」の検索結果",filterBy:"絞り込み"},entries:{loadingEntries:"エントリを読み込み中",cachingEntries:"エントリをキャッシュ中",longerLoading:"少々お待ちください",noEntries:"エントリがありません"},defaultFields:{author:{label:"作成者"},updatedOn:{label:"最終更新"}}},editor:{editorControl:{field:{optional:"任意"}},editorControlPane:{widget:{required:"%{fieldLabel}は必須です。",regexPattern:"%{fieldLabel}が入力規則(%{pattern})と一致しません。",processing:"%{fieldLabel}を処理しています。",range:"%{fieldLabel}は%{minValue}から%{maxValue}まで入力可能です。",min:"%{fieldLabel}の最小値は%{minValue}です。",max:"%{fieldLabel}の最大値は%{maxValue}です。",rangeCount:"%{fieldLabel}は%{minCount}個から%{maxCount}個まで選択してください。",rangeCountExact:"%{fieldLabel}はちょうど%{count}個選択してください。",minCount:"%{fieldLabel}は%{minCount}個以上選択してください。",maxCount:"%{fieldLabel}は%{maxCount}個以下選択してください。",invalidPath:"'%{path}'は有効なパスではありません。",pathExists:"'%{path}'というパスはすでに存在しています。"}},editor:{onLeavePage:"このページから遷移しますか?",onUpdatingWithUnsavedChanges:"変更した項目があります。ステータスを更新する前に保存してください。",onPublishingNotReady:"公開する前に、ステータスを「準備完了」に更新してください。",onPublishingWithUnsavedChanges:"変更した項目があります。公開する前に保存してください。",onPublishing:"このエントリを公開しますか?",onUnpublishing:"このエントリを未公開にしますか?",onDeleteWithUnsavedChanges:"保存されていない変更も削除されますが、この公開エントリを削除しますか?",onDeletePublishedEntry:"この公開エントリを削除しますか?",onDeleteUnpublishedChangesWithUnsavedChanges:"保存されていない変更も削除されますが、このエントリの未公開の変更を削除しますか?",onDeleteUnpublishedChanges:"公開されていない変更も削除されますが、このエントリを削除しますか?",loadingEntry:"エントリの読込中...",confirmLoadBackup:"ローカルのバックアップが復旧できました。利用しますか?"},editorToolbar:{publishing:"公開しています...",publish:"公開",published:"公開済",unpublish:"未公開",duplicate:"複製",unpublishing:"未公開にしています...",publishAndCreateNew:"公開して新規作成",publishAndDuplicate:"公開して複製する",deleteUnpublishedChanges:"未公開の変更を削除",deleteUnpublishedEntry:"未公開エントリを削除",deletePublishedEntry:"公開エントリを削除",deleteEntry:"エントリを削除",saving:"保存中...",save:"保存",deleting:"削除しています...",updating:"更新しています...",setStatus:"ステータスを変更する",backCollection:"%{collectionLabel}のエントリを作成中",unsavedChanges:"未保存",changesSaved:"保存済",draft:"下書き",inReview:"レビュー中",ready:"準備完了",publishNow:"公開する",deployPreviewPendingButtonLabel:"プレビューのチェック",deployPreviewButtonLabel:"プレビューを見る",deployButtonLabel:"ライブで見る"},editorWidgets:{markdown:{richText:"リッチテキスト",markdown:"マークダウン"},image:{choose:"画像を選択",chooseDifferent:"他の画像を選択",remove:"画像を削除"},file:{choose:"ファイルを選択",chooseDifferent:"他のファイルを選択",remove:"ファイルを削除"},unknownControl:{noControl:"'%{widget}'はウィジェットとして利用できません。"},unknownPreview:{noPreview:"'%{widget}'のウィジェットにはプレビューがありません。"},headingOptions:{headingOne:"見出し 1",headingTwo:"見出し 2",headingThree:"見出し 3",headingFour:"見出し 4",headingFive:"見出し 5",headingSix:"見出し 6"},datetime:{now:"現時刻"}}},mediaLibrary:{mediaLibraryCard:{draft:"下書き"},mediaLibrary:{onDelete:"選択しているデータを削除しますか?",fileTooLarge:"ファイルサイズが大きすぎます。\n%{size} kB 以下にしてください。"},mediaLibraryModal:{loading:"読込中...",noResults:"データがありません。",noAssetsFound:"データがありません。",noImagesFound:"データがありません。",private:"プライベート",images:"画像",mediaAssets:"メディア",search:"検索",uploading:"アップロード中...",upload:"アップロードする",download:"ダウンロードする",deleting:"削除中...",deleteSelected:"削除する",chooseSelected:"選択する"}},ui:{default:{goBackToSite:"サイトに戻る"},errorBoundary:{title:"エラー",details:"エラーが発生しました。",reportIt:"レポートする",detailsHeading:"詳細",privacyWarning:"エラーメッセージとデバッグのデータがレポートする前に表示されます。\n情報が正しいことを確認し、機密データが存在する場合は削除してください。",recoveredEntry:{heading:"復旧したエントリ",warning:"必要あれば、このページから遷移する前にコピーしてください。",copyButtonLabel:"コピーする"}},settingsDropdown:{logOut:"ログアウト"},toast:{onFailToLoadEntries:"エントリの読み込みに失敗しました。%{details}",onFailToLoadDeployPreview:"プレビューの読み込みに失敗しました。%{details}",onFailToPersist:"エントリの保存に失敗しました。%{details}",onFailToDelete:"エントリの削除に失敗しました。%{details}",onFailToUpdateStatus:"エントリのステータス更新に失敗しました。%{details}",missingRequiredField:"すべての必須項目を入力してください。",entrySaved:"保存しました。",entryPublished:"公開しました。",entryUnpublished:"未公開にしました。",onFailToPublishEntry:"エントリの公開に失敗しました。%{details}",onFailToUnpublishEntry:"エントリを未公開にするのに失敗しました。%{details}",entryUpdated:"エントリのステータスを更新しました。",onDeleteUnpublishedChanges:"未公開の変更を削除しました。",onFailToAuth:"%{details}",onLoggedOut:"ログアウトされています。データをバックアップし、再度ログインしてください。",onBackendDown:"バックエンドのシステムが停止しています。%{details}"}},workflow:{workflow:{loading:"ワークフロー内のエントリを読込中",workflowHeading:"ワークフロー",newPost:"新規作成",description:"%{smart_count}件がレビュー中、%{readyCount}件が準備完了です。",dateFormat:"M月D日"},workflowCard:{lastChange:"%{author}が%{date}に更新",lastChangeNoAuthor:"最終更新日:%{date}",lastChangeNoDate:"最終更新者:%{author}",deleteChanges:"変更を削除",deleteNewEntry:"エントリを削除",publishChanges:"変更を公開",publishNewEntry:"エントリを公開"},workflowList:{onDeleteEntry:"このエントリを削除しますか?",onPublishingNotReadyEntry:"「準備完了」のエントリのみを公開できます。「準備完了」列にカードを移動し、ステータスを更新してください。",onPublishEntry:"このエントリを公開しますか?",draftHeader:"下書き",inReviewHeader:"レビュー中",readyHeader:"準備完了",currentEntries:"%{smart_count}件のエントリ"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Inloggen",loggingIn:"Inloggen...",loginWithNetlifyIdentity:"Inloggen met Netlify Identity",loginWithBitbucket:"Inloggen met Bitbucket",loginWithGitHub:"Inloggen met GitHub",loginWithGitLab:"Inloggen met GitLab",errors:{email:"Voer uw email in.",password:"Voer uw wachtwoord in.",identitySettings:"Netlify Identity instellingen niet gevonden. Wanneer u git-gateway als backend gebruikt moet u de Identity service en Git Gateway activeren in uw Netlify instellingen."}},app:{header:{content:"Inhoud",workflow:"Workflow",media:"Media",quickAdd:"Snel toevoegen"},app:{errorHeader:"Fout bij het laden van de CMS configuratie",configErrors:"configuratiefouten",checkConfigYml:"Controleer je config.yml bestand",loadingConfig:"Configuatie laden...",waitingBackend:"Wachten op server..."},notFoundPage:{header:"Niet gevonden"}},collection:{sidebar:{collections:"Inhoudstypen",allCollections:"Alle inhoudstypen",searchAll:"Zoeken",searchIn:"Zoeken in"},collectionTop:{sortBy:"Sorteer op",viewAs:"Bekijk als",newButton:"Nieuwe %{collectionLabel}",ascending:"Oplopend",descending:"Aflopend",searchResults:'Zoekresultaten voor "%{searchTerm}"',searchResultsInCollection:'Zoekresultaten voor "%{searchTerm}" in %{collection}',filterBy:"Filteren op"},entries:{loadingEntries:"Items laden",cachingEntries:"Items cachen",longerLoading:"Dit kan een paar minuten duren",noEntries:"Geen items"},defaultFields:{author:{label:"Auteur"},updatedOn:{label:"Bijgewerkt op"}}},editor:{editorControl:{field:{optional:"optioneel"}},editorControlPane:{widget:{required:"%{fieldLabel} is vereist.",regexPattern:"%{fieldLabel} komt niet overeen met het patroon: %{pattern}.",processing:"%{fieldLabel} wordt verwerkt.",range:"%{fieldLabel} moet tussen %{minValue} en %{maxValue} liggen.",min:"%{fieldLabel} moet tenminste %{minValue} bevatten.",max:"%{fieldLabel} moet hoogstens %{maxValue} bevatten.",rangeCount:"%{fieldLabel} moet tussen %{minCount} en %{maxCount} item(s) bevatten.",rangeCountExact:"%{fieldLabel} moet exact %{count} item(s) bevatten.",minCount:"%{fieldLabel} moet tenminste %{minCount} item(s) bevatten.",maxCount:"%{fieldLabel} moet hoogstens %{maxCount} item(s) bevatten."}},editor:{onLeavePage:"Weet je zeker dat je deze pagina wilt verlaten?",onUpdatingWithUnsavedChanges:"Er zijn nog niet-opgeslagen wijzigingen. Bewaar ze voordat u de status bijwerkt.",onPublishingNotReady:'Stel de status in op "Voltooid" voordat u publiceert.',onPublishingWithUnsavedChanges:"Er zijn nog niet-opgeslagen wijzigingen. Bewaar deze voordat u publiceert.",onPublishing:"Weet u zeker dat u dit item wil publiceren?",onDeleteWithUnsavedChanges:"Weet u zeker dat u dit gepubliceerde item en uw niet-opgeslagen wijzigingen uit de huidige sessie wilt verwijderen?",onDeletePublishedEntry:"Weet u zeker dat u dit gepubliceerde item wilt verwijderen?",onDeleteUnpublishedChangesWithUnsavedChanges:"Alle niet-gepubliceerde wijzigingen in dit item worden verwijderd, evenals uw niet-opgeslagen wijzigingen uit de huidige sessie. Wilt u nog steeds verwijderen?",onDeleteUnpublishedChanges:"Alle niet-gepubliceerde wijzigingen in dit item worden verwijderd. Wilt u nog steeds verwijderen?",loadingEntry:"Item laden...",confirmLoadBackup:"Voor dit item is een lokale back-up hersteld, wilt u deze gebruiken?"},editorToolbar:{publishing:"Publiceren...",publish:"Publiceer",published:"Gepubliceerd",unpublish:"Publicatie terugtrekken",duplicate:"Dupliceren",unpublishing:"Publicatie ongedaan maken...",publishAndCreateNew:"Publiceer en maak nieuw item aan",publishAndDuplicate:"Publiceer en dupliceer item",deleteUnpublishedChanges:"Verwijder niet-gepubliceerde wijzigingen",deleteUnpublishedEntry:"Niet-gepubliceerd item verwijderen",deletePublishedEntry:"Gepubliceerd item verwijderen",deleteEntry:"Item verwijderen",saving:"Opslaan...",save:"Opslaan",deleting:"Verwijderen...",updating:"Bijwerken...",setStatus:"Stel status in",backCollection:" Terug naar %{collectionLabel}",unsavedChanges:"Niet-opgeslagen wijzigingen",changesSaved:"Wijzigingen opgeslagen",draft:"Concept",inReview:"Wordt beoordeeld",ready:"Klaar",publishNow:"Publiceer nu",deployPreviewPendingButtonLabel:"Controleer of voorvertoning geladen is",deployPreviewButtonLabel:"Bekijk voorvertoning",deployButtonLabel:"Bekijk Live"},editorWidgets:{markdown:{richText:"Rijke tekst",markdown:"Markdown"},image:{choose:"Kies een afbeelding",chooseDifferent:"Kies een andere afbeelding",remove:"Verwijder afbeelding"},file:{choose:"Kies een bestand",chooseDifferent:"Kies een ander bestand",remove:"Verwijder bestand"},unknownControl:{noControl:"Geen control voor widget '%{widget}'."},unknownPreview:{noPreview:"Geen voorvertoning voor widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Nu"}}},mediaLibrary:{mediaLibraryCard:{draft:"Concept"},mediaLibrary:{onDelete:"Weet u zeker dat u de geselecteerde media wilt verwijderen?",fileTooLarge:"Het bestand is te groot.\n De instellingen staan geen bestanden toe groter dan %{size} kB."},mediaLibraryModal:{loading:"Laden...",noResults:"Geen resultaten.",noAssetsFound:"Geen media gevonden.",noImagesFound:"Geen afbeeldingen gevonden.",private:"Privé",images:"Afbeeldingen",mediaAssets:"Media",search:"Zoeken...",uploading:"Uploaden...",upload:"Nieuwe uploaden",download:"Downloaden",deleting:"Verwijderen...",deleteSelected:"Verwijder selectie",chooseSelected:"Gebruik selectie"}},ui:{default:{goBackToSite:"Ga terug naar site"},errorBoundary:{title:"Fout",details:"Er is een fout opgetreden - ",reportIt:"maak er alstublieft een melding van.",detailsHeading:"Details",privacyWarning:"Als u een probleem opent, wordt het vooraf gevuld met het foutbericht en foutopsporingsgegevens. \nControleer of de informatie correct is en verwijder, indien aanwezig, gevoelige gegevens.",recoveredEntry:{heading:"Hersteld document",warning:"Kopieer / plak dit ergens voordat u weggaat!",copyButtonLabel:"Kopieer naar klembord"}},settingsDropdown:{logOut:"Uitloggen"},toast:{onFailToLoadEntries:"Kan item niet laden: %{details}",onFailToLoadDeployPreview:"Kan voorvertoning niet laden: %{details}",onFailToPersist:"Kan item niet opslaan: %{details}",onFailToDelete:"Kan item niet verwijderen: %{details}",onFailToUpdateStatus:"Kan status niet updaten: %{details}",missingRequiredField:"Oeps, sommige verplichte velden zijn niet ingevuld.",entrySaved:"Item opgeslagen",entryPublished:"Item gepubliceerd",entryUnpublished:"Publicatie teruggetrokken",onFailToPublishEntry:"Kan item niet publiceren: %{details}",onFailToUnpublishEntry:"Kan item niet terugtrekken: %{details}",entryUpdated:"Status van item geüpdatet",onDeleteUnpublishedChanges:"Niet-gepubliceerde wijzigingen verwijderd",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Redactionele Workflow items laden",workflowHeading:"Redactionele Workflow",newPost:"Nieuw bericht",description:"%{smart_count} item wacht op beoordeling, %{readyCount} klaar om live te gaan. |||| %{smart_count} items wachten op beoordeling, %{readyCount} klaar om live te gaan. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} door %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"door %{author}",deleteChanges:"Verwijder wijzigingen",deleteNewEntry:"Verwijder nieuw item",publishChanges:"Publiceer wijzigingen",publishNewEntry:"Publiceer nieuw item"},workflowList:{onDeleteEntry:"Weet u zeker dat u dit item wilt verwijderen?",onPublishingNotReadyEntry:'Alleen items met de status "Gereed" kunnen worden gepubliceerd. Sleep de kaart naar de kolom "Gereed" om publiceren mogelijk te maken.',onPublishEntry:"Weet u zeker dat u dit item wilt publiceren?",draftHeader:"Concepten",inReviewHeader:"Wordt beoordeeld",readyHeader:"Klaar",currentEntries:"%{smart_count} item |||| %{smart_count} items"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Logg inn",loggingIn:"Logger inn..",loginWithNetlifyIdentity:"Logg på med Netlify Identity",loginWithBitbucket:"Logg på med Bitbucket",loginWithGitHub:"Logg på med GitHub",loginWithGitLab:"Logg på med GitLab",errors:{email:"Du må skrive inn e-posten din.",password:"Du må skrive inn passordet ditt.",identitySettings:"Fant ingen innstillinger for Identity. Hvis du skal bruke git-gateway må du skru på Identity service og Git Gateway."}},app:{header:{content:"Innhold",workflow:"Arbeidsflyt",media:"Media",quickAdd:"Hurtiginnlegg"},app:{errorHeader:"Det oppstod en feil under lastingen av CMS konfigurasjonen",configErrors:"Konfigurasjonsfeil",checkConfigYml:"Sjekk config.yml filen.",loadingConfig:"Laster konfigurasjon...",waitingBackend:"Venter på backend..."},notFoundPage:{header:"Ikke funnet"}},collection:{sidebar:{collections:"Samlinger",searchAll:"Søk i alle"},collectionTop:{sortBy:"Sorter etter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigende",descending:"Synkende"},entries:{loadingEntries:"Laster innlegg...",cachingEntries:"Mellomlagrer innlegg...",longerLoading:"Dette kan ta opptil flere minutter",noEntries:"Ingen innlegg"},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Oppdatert"}}},editor:{editorControl:{field:{optional:"valgfritt"}},editorControlPane:{widget:{required:"%{fieldLabel} er påkrevd.",regexPattern:"%{fieldLabel} samsvarer ikke med mønsteret: %{pattern}.",processing:"%{fieldLabel} blir prosessert.",range:"%{fieldLabel} må være mellom %{minValue} og %{maxValue}.",min:"%{fieldLabel} må minst være %{minValue}.",max:"%{fieldLabel} må være %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} må ha mellom %{minCount} og %{maxCount} element(er).",rangeCountExact:"%{fieldLabel} må ha nøyaktig %{count} element(er).",minCount:"%{fieldLabel} må minst ha %{minCount} element(er).",maxCount:"%{fieldLabel} må ha %{maxCount} eller færre element(er)."}},editor:{onLeavePage:"Er du sikker på du vil navigere bort fra denne siden?",onUpdatingWithUnsavedChanges:"Du må lagre endringene dine før du oppdaterer status.",onPublishingNotReady:'Du må endre status til "Klar" før du publiserer.',onPublishingWithUnsavedChanges:"Du må lagre endringene dine før du kan publisere.",onPublishing:"Er du sikker på at du vil publisere?",onUnpublishing:"Er du sikker på at du vil avpublisere innlegget?",onDeleteWithUnsavedChanges:"Er du sikker på at du vil slette et publisert innlegg med tilhørende ulagrede endringer?",onDeletePublishedEntry:"Er du sikker på at du vil slette dette publiserte innlegget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Handlingen sletter endringer som ikke er publisert eller lagret enda. Er du sikker på du vil fortsette?",onDeleteUnpublishedChanges:"Alle endringer som ikke er publisert i dette innlegget vil gå tapt. Vil du fortsette?",loadingEntry:"Laster innlegg...",confirmLoadBackup:"Vil du gjenopprette tidligere endringer som ikke har blitt lagret?"},editorToolbar:{publishing:"Publiserer...",publish:"Publiser",published:"Publisert",unpublish:"Avpubliser",duplicate:"Dupliser",unpublishing:"Avpubliserer...",publishAndCreateNew:"Publiser og lag nytt",publishAndDuplicate:"Publiser og dupliser",deleteUnpublishedChanges:"Slett upubliserte endringer",deleteUnpublishedEntry:"Slett upublisert innlegg",deletePublishedEntry:"Slett publisert innlegg",deleteEntry:"Sletter innlegg",saving:"Lagrer...",save:"Lagre",deleting:"Sletter...",updating:"Oppdaterer...",setStatus:"Sett status",backCollection:" Skriver i samlingen %{collectionLabel}",unsavedChanges:"Ulagrede endringer",changesSaved:"Endringer lagret",draft:"Kladd",inReview:"Til godkjenning",ready:"Klar",publishNow:"Publiser nå",deployPreviewPendingButtonLabel:"Kontroller forhåndsvisning",deployPreviewButtonLabel:"Vis forhåndsvisning",deployButtonLabel:"Vis i produksjon"},editorWidgets:{markdown:{richText:"Rik-tekst",markdown:"Markdown"},image:{choose:"Velg et bilde",chooseDifferent:"Velg et annet bilde",remove:"Fjern bilde"},file:{choose:"Velg en fil",chooseDifferent:"Velg en annen fil",remove:"Fjern fil"},unknownControl:{noControl:"Ingen konfigurasjon for widget '%{widget}'."},unknownPreview:{noPreview:"Ingen forhåndsvisning tilgjengelig for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"Nå"}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladd"},mediaLibrary:{onDelete:"Er du sikker på at du vil slette markert element?",fileTooLarge:"Filen er for stor.\nMaksimal konfiguert filstørrelse er %{size} kB."},mediaLibraryModal:{loading:"Laster...",noResults:"Ingen resultater.",noAssetsFound:"Ingen elementer funnet.",noImagesFound:"Ingen bilder funnet.",private:"Privat ",images:"Bilder",mediaAssets:"Mediebibliotek",search:"Søk...",uploading:"Laster opp...",upload:"Last opp",download:"Last ned",deleting:"Sletter...",deleteSelected:"Slett markert",chooseSelected:"Velg markert"}},ui:{default:{goBackToSite:"Gå tilbake til siden"},errorBoundary:{title:"Feil",details:"Det har oppstått en feil. Det er fint om du ",reportIt:"oppretter et issue på GitHub.",detailsHeading:"Detaljer",privacyWarning:"Når du åpner et issue forhåndsutfylles feil og feilsøkingsdata. Dobbeltsjekk at informasjonen er riktig, og fjern eventuelle sensitive data.",recoveredEntry:{heading:"Gjenopprettet dokument",warning:"Det kan være lurt å ta kopi av innholdet før navigerer bort fra denne siden!",copyButtonLabel:"Kopier til utklippstavle"}},settingsDropdown:{logOut:"Logg ut"},toast:{onFailToLoadEntries:"Kunne ikke laste innlegg: %{details}",onFailToLoadDeployPreview:"Kunne ikke laste forhåndsvisning: %{details}",onFailToPersist:"Kunne ikke lagre: %{details}",onFailToDelete:"Kunne ikke slette: %{details}",onFailToUpdateStatus:"Kunne ikke laste opp: %{details}",missingRequiredField:"Oisann, ser ut som du glemte et påkrevd felt. Du må fylle det ut før du kan fortsette.",entrySaved:"Innlegg lagret",entryPublished:"Innlegg publisert",entryUnpublished:"Innlegg avpublisert",onFailToPublishEntry:"Kunne ikke publisere: %{details}",onFailToUnpublishEntry:"Kunne ikke avpublisere: %{details}",entryUpdated:"Innleggsstatus oppdatert",onDeleteUnpublishedChanges:"Avpubliserte endringer slettet",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Laster innlegg for redaksjonell arbeidsflyt",workflowHeading:"Redaksjonell arbeidsflyt",newPost:"Nytt innlegg",description:"%{smart_count} innlegg trenger gjennomgang, og %{readyCount} er klar til publisering. |||| %{smart_count} innlegg trenger gjennomgang, og %{readyCount} er klar til publisering ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Slett endringer",deleteNewEntry:"Slett nytt innlegg",publishChanges:"Publiser endringer",publishNewEntry:"Publiser nytt innlegg"},workflowList:{onDeleteEntry:"Er du sikker på du vil slette innlegget?",onPublishingNotReadyEntry:'Du kan bare publisere innlegg i "Klar" kolonnen. Trekk kortet til riktig kolonne for å fortsette.',onPublishEntry:"Er du sikker på du vil publisere innlegget?",draftHeader:"Kladd",inReviewHeader:"Gjennomgås",readyHeader:"Klar",currentEntries:"%{smart_count} innlegg |||| %{smart_count} innlegg"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Logg inn",loggingIn:"Loggar inn..",loginWithNetlifyIdentity:"Logg på med Netlify Identity",loginWithBitbucket:"Logg på med Bitbucket",loginWithGitHub:"Logg på med GitHub",loginWithGitLab:"Logg på med GitLab",errors:{email:"Du må skriva inn e-posten din.",password:"Du må skriva inn passordet ditt.",identitySettings:"Fann ingen innstillingar for Identity. Om du ynskjer å nytte git-gateway må du hugse å skru på Identity service og Git Gateway"}},app:{header:{content:"Innhald",workflow:"Arbeidsflyt",media:"Media",quickAdd:"Hurtiginnlegg"},app:{errorHeader:"Noko gjekk gale under lastinga av CMS konfigurasjonen",configErrors:"Konfigurasjonsfeil",checkConfigYml:"Sjå over config.yml fila.",loadingConfig:"Lastar konfigurasjon...",waitingBackend:"Ventar på backend..."},notFoundPage:{header:"Ikkje funnen"}},collection:{sidebar:{collections:"Samlingar",searchAll:"Søk i alle"},collectionTop:{sortBy:"Sorter etter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigande",descending:"Synkande"},entries:{loadingEntries:"Laster innlegg...",cachingEntries:"Mellomlagrar innlegg...",longerLoading:"Dette kan ta fleire minutt",noEntries:"Ingen innlegg"},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Oppdatert"}}},editor:{editorControl:{field:{optional:"valfritt"}},editorControlPane:{widget:{required:"%{fieldLabel} krevast.",regexPattern:"%{fieldLabel} samsvarar ikkje med mønsteret: %{pattern}.",processing:"%{fieldLabel} vart prosessert.",range:"%{fieldLabel} må vera mellom %{minValue} og %{maxValue}.",min:"%{fieldLabel} må minst vera %{minValue}.",max:"%{fieldLabel} må vera %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} må ha mellom %{minCount} og %{maxCount} element.",rangeCountExact:"%{fieldLabel} må ha nøyaktig %{count} element.",minCount:"%{fieldLabel} må minst ha %{minCount} element.",maxCount:"%{fieldLabel} må ha %{maxCount} eller færre element."}},editor:{onLeavePage:"Er du sikker på at du vil navigere bort frå denne sida?",onUpdatingWithUnsavedChanges:"Du må lagra endringane dine før du endrar status",onPublishingNotReady:'Du må endre status til "Klar" før du publiserer',onPublishingWithUnsavedChanges:"Du må laga endringane dine før du kan publisere.",onPublishing:"Er du sikker på at vil publisere?",onUnpublishing:"Er du sikker på at du vil avpublisere innlegget?",onDeleteWithUnsavedChanges:"Er du sikkert på at du vil slette eit publisert innlegg med tilhøyrande ulagra endringar?",onDeletePublishedEntry:"Er du sikker på at du vil slette dette publiserte innlegget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Handlinga slettar endringar som ikkje er publisert eller lagra. Vil du halde fram?",onDeleteUnpublishedChanges:"Alle endringar som ikkje er publisert vil gå tapt. Vil du halde fram?",loadingEntry:"Lastar innlegg...",confirmLoadBackup:"Ynskjer du å gjennopprette tidlegare endringar som ikkje har verta lagra?"},editorToolbar:{publishing:"Publiserer...",publish:"Publiser",published:"Publisert",unpublish:"Avpubliser",duplicate:"Dupliser",unpublishing:"Avpubliserer...",publishAndCreateNew:"Publiser og lag nytt",publishAndDuplicate:"Publiser og dupliser",deleteUnpublishedChanges:"Slett upubliserte endringar",deleteUnpublishedEntry:"Slett upublisert innlegg",deletePublishedEntry:"Slett publisert innlegg",deleteEntry:"Slettar innlegg",saving:"Lagrar...",save:"Lagre",deleting:"Slettar...",updating:"Oppdaterer...",setStatus:"Sett status",backCollection:" Skriv i samlinga %{collectionLabel}",unsavedChanges:"Ulagra endringar",changesSaved:"Endringar lagret",draft:"Kladd",inReview:"Til godkjenning",ready:"Klar",publishNow:"Publiser no",deployPreviewPendingButtonLabel:"Kontroller førehandsvisning",deployPreviewButtonLabel:"Sjå førehandsvisning",deployButtonLabel:"Sjå i produksjon"},editorWidgets:{markdown:{richText:"Rik-tekst",markdown:"Markdown"},image:{choose:"Vel bilete",chooseDifferent:"Vel eit anna bilete",remove:"Fjern bilete"},file:{choose:"Vel fil",chooseDifferent:"Vel ei anna fil",remove:"Fjern fil"},unknownControl:{noControl:"Ingen konfigurasjon for widget '%{widget}'."},unknownPreview:{noPreview:"Ingen førehandsvisning tilgjengeleg for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"No"}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladd"},mediaLibrary:{onDelete:"Er du sikker på at du vil slette markert element?",fileTooLarge:"Fila er for stor.\nMaksimal konfiguert filstorleik er %{size} kB."},mediaLibraryModal:{loading:"Lastar...",noResults:"Ingen resultat.",noAssetsFound:"Ingen elementer funne.",noImagesFound:"Ingen bilete funne.",private:"Privat ",images:"Bileter",mediaAssets:"Mediebibliotek",search:"Søk...",uploading:"Lastar opp...",upload:"Last opp",download:"Last ned",deleting:"Slettar...",deleteSelected:"Slett markert",chooseSelected:"Vel markert"}},ui:{default:{goBackToSite:"Attende til sida"},errorBoundary:{title:"Feil",details:"Ein feil har oppstått. Det er fint om du ",reportIt:"opnar eit issue på GitHub.",detailsHeading:"Detaljer",privacyWarning:"Når du opnar eit issue vart feil og feilsøkingsdata automatisk fylt ut. Hugs å sjå over at alt ser greitt ut, og ikkje inneheld sensitive data.",recoveredEntry:{heading:"Gjenopprettet dokument",warning:"Det kan vere lurt å ta kopi av innhaldet før du navigerer bort frå denne sida!",copyButtonLabel:"Kopier til utklippstavle"}},settingsDropdown:{logOut:"Logg ut"},toast:{onFailToLoadEntries:"Kunne ikkje laste innlegg: %{details}",onFailToLoadDeployPreview:"Kunne ikkje laste førehandsvisning: %{details}",onFailToPersist:"Kunne ikkje lagre: %{details}",onFailToDelete:"Kunne ikkje slette: %{details}",onFailToUpdateStatus:"Kunne ikkje laste opp: %{details}",missingRequiredField:"Oisann, gløymte du noko? Alle påkrevde felt må fyllast ut før du kan halde fram",entrySaved:"Innlegg lagra",entryPublished:"Innlegg publisert",entryUnpublished:"Innlegg avpublisert",onFailToPublishEntry:"Kunne ikkje publisere: %{details}",onFailToUnpublishEntry:"Kunne ikkje avpublisere: %{details}",entryUpdated:"Innleggsstatus oppdatert",onDeleteUnpublishedChanges:"Avpubliserte endringar sletta",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Lastar innlegg for redaksjonell arbeidsflyt",workflowHeading:"Redaksjonell arbeidsflyt",newPost:"Nytt innlegg",description:"%{smart_count} innlegg treng gjennomgong, og %{readyCount} er klar til publisering. |||| %{smart_count} innlegg treng gjennomgong, og %{readyCount} er klar til publisering ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Slett endringar",deleteNewEntry:"Slett nytt innlegg",publishChanges:"Publiser endringar",publishNewEntry:"Publiser nytt innlegg"},workflowList:{onDeleteEntry:"Er du sikker på du vil slette innlegget?",onPublishingNotReadyEntry:'Du kan berre publisere innlegg i "Klar" kolonna. Dra kortet til riktig stad for å halde fram.',onPublishEntry:"Er du sikker på du vil publisere innlegget?",draftHeader:"Kladd",inReviewHeader:"Gjennomgås",readyHeader:"Klar",currentEntries:"%{smart_count} innlegg |||| %{smart_count} innlegg"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Zaloguj się",loggingIn:"Logowanie...",loginWithNetlifyIdentity:"Zaloguj przez konto Netlify",loginWithBitbucket:"Zaloguj przez Bitbucket",loginWithGitHub:"Zaloguj przez GitHub",loginWithGitLab:"Zaloguj przez GitLab",errors:{email:"Wprowadź swój adres email",password:"Wprowadź swoje hasło",identitySettings:"Brak dostępu do ustawień tożsamości. Jeśli używasza backendu git-gateway upewnij się, że usługa tożsamośći (Identity service) oraz Git Gateway są włączone."}},app:{header:{content:"Treść",workflow:"Przebieg redakcyjny",media:"Multimedia",quickAdd:"Szybkie dodawanie"},app:{errorHeader:"Błąd ładowania konfiguracji CMS",configErrors:"Błędy konfiguracji",checkConfigYml:"Sprawdź plik config.yml.",loadingConfig:"Ładowanie konfiguracji...",waitingBackend:"Oczekiwanie na backend..."},notFoundPage:{header:"Nie znaleziono"}},collection:{sidebar:{collections:"Zbiory",searchAll:"Wyszukaj wszystkie"},collectionTop:{sortBy:"Sortuj po",viewAs:"Wyświetl jako",newButton:"Nowy %{collectionLabel}",ascending:"Rosnąco",descending:"Malejąco"},entries:{loadingEntries:"Ładowanie pozycji...",cachingEntries:"Ładowanie pozycji do pamięci podręcznej...",longerLoading:"To może zająć kilka minut",noEntries:"Brak pozycji"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Zaktualizowano"}}},editor:{editorControl:{field:{optional:"opcjonalne"}},editorControlPane:{widget:{required:"%{fieldLabel} jest wymagane.",regexPattern:"%{fieldLabel} nie pasuje do formatu: %{pattern}.",processing:"%{fieldLabel} jest przetwarzane.",range:"%{fieldLabel} musi być pomiędzy %{minValue} a %{maxValue}.",min:"%{fieldLabel} musi być co najmniej %{minValue}.",max:"%{fieldLabel} musi być %{maxValue} lub mniej.",rangeCount:"%{fieldLabel} musi mieć od %{minCount} do %{maxCount} elementów",rangeCountExact:"%{fieldLabel} musi mieć %{count} elementów",minCount:"%{fieldLabel} musi mieć przynajmniej %{minCount} elementów",maxCount:"%{fieldLabel} może mieć maksymalnie %{maxCount} elementów"}},editor:{onLeavePage:"Czy na pewno chcesz opuścić tę stronę?",onUpdatingWithUnsavedChanges:"Masz niezapisane zmiany, proszę zapisz je przed aktualizacją statusu.",onPublishingNotReady:'Proszę zaktualizować status do "Gotowe" przed publikacją.',onPublishingWithUnsavedChanges:"Masz niezapisane zmiany, proszę zapisz je przed publikacją.",onPublishing:"Czy na pewno chcesz opublikować tę pozycję?",onUnpublishing:"Czy na pewno chcesz cofnąć publikację tej pozycji?",onDeleteWithUnsavedChanges:"Czy na pewno chcesz usunąć tę opublikowaną pozycję, a także niezapisane zmiany z bieżącej sesji?",onDeletePublishedEntry:"Czy na pewno chcesz usunąć tę opublikowaną pozycję?",onDeleteUnpublishedChangesWithUnsavedChanges:"Spowoduje to usunięcie wszystkich nieopublikowanych zmian tej pozycji, a także niezapisanych zmian z bieżącej sesji. Czy nadal chcesz usunąć?",onDeleteUnpublishedChanges:"Wszystkie nieopublikowane zmiany tej pozycji zostaną usunięte. Czy nadal chcesz usunąć?",loadingEntry:"Ładowanie pozycji...",confirmLoadBackup:"Odzyskano lokalną kopię zapasową tej pozycji, czy chcesz jej użyć?"},editorToolbar:{publishing:"Publikowanie...",publish:"Opublikuj",published:"Opublikowane",unpublish:"Cofnij publikację",duplicate:"Zduplikuj",unpublishing:"Cofanie publikacji...",publishAndCreateNew:"Opublikuj i dodaj nowy",publishAndDuplicate:"Opublikuj i zduplikuj",deleteUnpublishedChanges:"Usuń nieopublikowane zmiany",deleteUnpublishedEntry:"Usuń nieopublikowaną pozycję",deletePublishedEntry:"Usuń opublikowaną pozycję",deleteEntry:"Usuń pozycję",saving:"Zapisywanie...",save:"Zapisz",deleting:"Usuwanie...",updating:"Uaktualnianie...",setStatus:"Ustaw status",backCollection:" Edycja treści w zbiorze %{collectionLabel}",unsavedChanges:"Niezapisane zmiany",changesSaved:"Zmiany zapisane",draft:"Wersja robocza",inReview:"W recenzji",ready:"Gotowe",publishNow:"Opublikuj teraz",deployPreviewPendingButtonLabel:"Sprawdź, czy istnieje podgląd",deployPreviewButtonLabel:"Zobacz podgląd",deployButtonLabel:"Zobacz na żywo"},editorWidgets:{markdown:{richText:"Tekst sformatowany",markdown:"Markdown"},image:{choose:"Wybierz zdjęcie",chooseDifferent:"Zmień zdjęcie",remove:"Usuń zdjęcie"},file:{choose:"Wybierz plik",chooseDifferent:"Wybierz inny plik",remove:"Usuń plik"},unknownControl:{noControl:"Brak kontrolki dla widżetu '%{widget}'."},unknownPreview:{noPreview:"Brak podglądu dla widżetu '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Wersja robocza"},mediaLibrary:{onDelete:"Czy na pewno chcesz usunąć zaznaczone multimedia?",fileTooLarge:"Plik jest za duży.\nUstawiony maksymalny rozmiar pliku: %{size} kB."},mediaLibraryModal:{loading:"Ładowanie...",noResults:"Brak wyników.",noAssetsFound:"Nie znaleziono żadnych zasobów.",noImagesFound:"Nie znaleziono żadnych obrazów.",private:"Prywatne ",images:"Obrazy",mediaAssets:"Zasoby multimedialne",search:"Szukaj...",uploading:"Przesyłanie...",upload:"Prześlij nowe",deleting:"Usuwanie...",deleteSelected:"Usuń zaznaczone",chooseSelected:"Wybierz zaznaczone"}},ui:{default:{goBackToSite:"Wróć do strony"},errorBoundary:{title:"Błąd",details:"Wystąpił błąd - proszę ",reportIt:"zgłoś to.",detailsHeading:"Szczegóły",privacyWarning:"Nowe zgłoszenie zostanie wstępnie wypełnione danymi o błędzie.\nZweryfikuj czy dane są poprawne i usuń wrażliwe informacje jeśli takie zostały dodane.",recoveredEntry:{heading:"Odzyskany dokument",warning:"Proszę skopiuj/wklej to gdzieś zanim opuścisz tę stronę!",copyButtonLabel:"Skopiuj do schowka"}},settingsDropdown:{logOut:"Wyloguj się"},toast:{onFailToLoadEntries:"Nie udało się załadować pozycji: %{details}",onFailToLoadDeployPreview:"Nie udało się załadować podglądu: %{details}",onFailToPersist:"Nie udało się zapisać pozycji: %{details}",onFailToDelete:"Nie udało się usunąć pozycji: %{details}",onFailToUpdateStatus:"Nie udało się zaktualizować statusu: %{details}",missingRequiredField:"Ups, przegapiłeś wymagane pole. Proszę uzupełnij przed zapisaniem.",entrySaved:"Pozycja zapisana",entryPublished:"Pozycja opublikowana",entryUnpublished:"Cofnięto publikację pozycji",onFailToPublishEntry:"Nie udało się opublikować: %{details}",onFailToUnpublishEntry:"Nie udało się cofnąć publikacji pozycji: %{details}",entryUpdated:"Zaktualizowano status pozycji",onDeleteUnpublishedChanges:"Nieopublikowane zmiany zostały usunięte",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Ładowanie pozycji przebiegu redakcyjnego",workflowHeading:"Przebieg redakcyjny",newPost:"Nowa pozycja",description:"%{smart_count} pozycja oczekuje na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycje oczekują na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycji oczekuje na recenzje, %{readyCount} oczekuje na publikacje. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} przez %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"przez %{author}",deleteChanges:"Usuń zmiany",deleteNewEntry:"Usuń nową pozycję",publishChanges:"Opublikuj zmiany",publishNewEntry:"Opublikuj nową pozycję"},workflowList:{onDeleteEntry:"Czy na pewno chcesz usunąć tę pozycję?",onPublishingNotReadyEntry:"Tylko pozycje o statusie „Gotowe” mogą być publikowane. Przeciągnij proszę kartę do kolumny „Gotowe do publikacji”, aby umożliwić publikowanie.",onPublishEntry:"Czy na pewno chcesz opublikować tę pozycję?",draftHeader:"Wersje robocze",inReviewHeader:"W recenzji",readyHeader:"Gotowe do publikacji",currentEntries:"%{smart_count} pozycja |||| %{smart_count} pozycje |||| %{smart_count} pozycji"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Entrar",loggingIn:"Entrando...",loginWithNetlifyIdentity:"Entrar com o Netlify Identity",loginWithBitbucket:"Entrar com o Bitbucket",loginWithGitHub:"Entrar com o GitHub",loginWithGitLab:"Entrar com o GitLab",errors:{email:"Certifique-se de inserir seu e-mail.",password:"Por favor, insira sua senha.",identitySettings:"Não foi possível acessar as configurações de identidade. Ao usar o back-end git-gateway, certifique-se de habilitar o serviço Identity e o Git Gateway."}},app:{header:{content:"Conteúdos",workflow:"Fluxo de Trabalho",media:"Mídia",quickAdd:"Adição rápida"},app:{errorHeader:"Erro ao carregar a configuração do CMS",configErrors:"Erros de configuração",checkConfigYml:"Verifique o arquivo config.yml.",loadingConfig:"Carregando configuração...",waitingBackend:"Aguardando o back-end..."},notFoundPage:{header:"Não Encontrado"}},collection:{sidebar:{collections:"Coleções",allCollections:"Todas as Coleções",searchAll:"Pesquisar em todos",searchIn:"Pesquisar em"},collectionTop:{sortBy:"Ordenar por",viewAs:"Visualizar como",newButton:"Novo(a) %{collectionLabel}",ascending:"Ascendente",descending:"Descendente",searchResults:'Resultados da busca por "%{searchTerm}"',searchResultsInCollection:'Resultados da busca por "%{searchTerm}" em %{collection}',filterBy:"Filtrar por"},entries:{loadingEntries:"Carregando Entradas",cachingEntries:"Armazenando Entradas em Cache",longerLoading:"Isso pode levar alguns minutos",noEntries:"Nenhuma Entrada"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Atualizado em"}}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} é obrigatório.",regexPattern:"%{fieldLabel} não corresponde com o padrão: %{pattern}.",processing:"%{fieldLabel} está processando.",range:"%{fieldLabel} deve estar entre %{minValue} e %{maxValue}.",min:"%{fieldLabel} deve ser, no mínimo, %{minValue}.",max:"%{fieldLabel} deve ser igual ou menor que %{maxValue}.",rangeCount:"%{fieldLabel} deve ser entre %{minCount} e %{maxCount}.",rangeCountExact:"%{fieldLabel} deve ser exatamente %{count}.",minCount:"%{fieldLabel} deve ter, pelo menos, %{minCount}.",maxCount:"%{fieldLabel} deve ter %{maxCount} ou menos.",invalidPath:"'%{path}' não é um caminho válido",pathExists:"O caminho '%{path}' já existe"}},editor:{onLeavePage:"Tem certeza que deseja sair desta página?",onUpdatingWithUnsavedChanges:"Há mudanças não salvas. Por favor, salve-as antes de atualizar o status.",onPublishingNotReady:'Por favor, altere o status para "Pronto" antes de publicar.',onPublishingWithUnsavedChanges:"Há mudanças não salvas. Por favor, salve-as antes de publicar.",onPublishing:"Tem certeza que deseja publicar essa entrada?",onUnpublishing:"Tem certeza que deseja cancelar a publicação dessa entrada?",onDeleteWithUnsavedChanges:"Tem certeza de que deseja excluir esta entrada publicada, bem como as alterações não salvas da sessão atual?",onDeletePublishedEntry:"Tem certeza de que deseja excluir esta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Isso excluirá todas as alterações não publicadas nesta entrada, bem como as alterações não salvas da sessão atual. Você ainda deseja excluir?",onDeleteUnpublishedChanges:"Todas as alterações não publicadas nesta entrada serão excluídas. Você ainda deseja excluir?",loadingEntry:"Carregando entrada...",confirmLoadBackup:"Um backup local foi recuperado para esta entrada. Deseja usá-lo?"},editorToolbar:{publishing:"Publicando...",publish:"Publicar",published:"Publicado",unpublish:"Despublicar",duplicate:"Duplicado",unpublishing:"Despublicando...",publishAndCreateNew:"Publicar e criar novo(a)",publishAndDuplicate:"Publicar e duplicar",deleteUnpublishedChanges:"Excluir alterações não publicadas",deleteUnpublishedEntry:"Excluir entrada não publicada",deletePublishedEntry:"Excluir entrada publicada",deleteEntry:"Excluir entrada",saving:"Salvando...",save:"Salvar",deleting:"Excluindo...",updating:"Atualizando...",setStatus:"Definir status",backCollection:" Escrevendo na coleção %{collectionLabel}",unsavedChanges:"Alterações não salvas",changesSaved:"Alterações salvas",draft:"Rascunho",inReview:"Em revisão",ready:"Pronto",publishNow:"Publicar agora",deployPreviewPendingButtonLabel:"Verificar se há Pré-visualização",deployPreviewButtonLabel:"Ver Pré-visualização",deployButtonLabel:"Ver em Produção"},editorWidgets:{markdown:{richText:"Rich Text",markdown:"Markdown"},image:{choose:"Escolha uma imagem",chooseDifferent:"Escolha uma imagem diferente",remove:"Remover imagem"},file:{choose:"Escolha um arquivo",chooseDifferent:"Escolha um arquivo diferente",remove:"Remover arquivo"},unknownControl:{noControl:"Nenhum controle para o widget '%{widget}'."},unknownPreview:{noPreview:"Nenhuma pré-visualização para o widget '%{widget}'."},headingOptions:{headingOne:"Título nível 1",headingTwo:"Título nível 2",headingThree:"Título nível 3",headingFour:"Título nível 4",headingFive:"Título nível 5",headingSix:"Título nível 6"},datetime:{now:"Agora"}}},mediaLibrary:{mediaLibraryCard:{draft:"Rascunho"},mediaLibrary:{onDelete:"Tem certeza de que deseja excluir a mídia selecionada?",fileTooLarge:"Arquivo muito grande.\nConfigurado para não permitir arquivos maiores que %{size} kB."},mediaLibraryModal:{loading:"Carregando...",noResults:"Nenhum resultado.",noAssetsFound:"Nenhum recurso encontrado.",noImagesFound:"Nenhuma imagem encontrada.",private:"Privado ",images:"Imagens",mediaAssets:"Recursos de mídia",search:"Pesquisar...",uploading:"Enviando...",upload:"Enviar novo",download:"Download",deleting:"Excluindo...",deleteSelected:"Excluir selecionado",chooseSelected:"Escolher selecionado"}},ui:{default:{goBackToSite:"Voltar ao site"},errorBoundary:{title:"Erro",details:"Ocorreu um erro - por favor ",reportIt:"relatar.",detailsHeading:"Detalhes",privacyWarning:"Ao abrir uma issue, ela é preenchida com a mensagem de erro e o log de debug.\nPor favor, verifique se a informação está correta e remova dados sensíveis caso existam.",recoveredEntry:{heading:"Documento recuperado",warning:"Copie/cole isso em algum lugar antes de sair!",copyButtonLabel:"Copiar para área de transferência"}},settingsDropdown:{logOut:"Sair"},toast:{onFailToLoadEntries:"Falha ao carregar a entrada: %{details}",onFailToLoadDeployPreview:"Falha ao carregar a pré-visualização: %{details}",onFailToPersist:"Falha ao persistir na entrada: %{details}",onFailToDelete:"Falha ao excluir a entrada: %{details}",onFailToUpdateStatus:"Falha ao atualizar status: %{details}",missingRequiredField:"Ops, você perdeu um campo obrigatório. Por favor, preencha antes de salvar.",entrySaved:"Entrada salva",entryPublished:"Entrada publicada",entryUnpublished:"Entrada despublicada",onFailToPublishEntry:"Falha ao publicar: %{details}",onFailToUnpublishEntry:"Falha ao cancelar a publicação da entrada: %{details}",entryUpdated:"Status da entrada atualizado",onDeleteUnpublishedChanges:"Alterações não publicadas excluídas",onFailToAuth:"%{details}",onLoggedOut:"Você foi desconectado. Por favor, salve as alterações e entre novamente",onBackendDown:"O serviço de back-end está fora do ar. Veja %{details} para mais informações"}},workflow:{workflow:{loading:"Carregando entradas do Fluxo de Trabalho Editorial",workflowHeading:"Fluxo de Trabalho Editorial",newPost:"Nova Publicação",description:"%{smart_count} entrada aguardando revisão, %{readyCount} pronta para publicação. |||| %{smart_count} entradas aguardando revisão, %{readyCount} pronta para publicação.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} por %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"por %{author}",deleteChanges:"Excluir alterações",deleteNewEntry:"Excluir nova entrada",publishChanges:"Publicar alterações",publishNewEntry:"Publicar nova entrada"},workflowList:{onDeleteEntry:"Tem certeza de que deseja excluir esta entrada?",onPublishingNotReadyEntry:'Somente itens com o status "Pronto" podem ser publicados. Arraste o cartão para a coluna "Pronto" para poder publicar.',onPublishEntry:"Tem certeza de que quer publicar esta entrada?",draftHeader:"Rascunhos",inReviewHeader:"Em Revisão",readyHeader:"Prontos",currentEntries:"%{smart_count} entrada |||| %{smart_count} entradas"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={app:{header:{content:"Записи",workflow:"Документооборот",media:"Медиафайлы",quickAdd:"Быстрое добавление"},app:{errorHeader:"Ошибка загрузки конфигурации CMS",configErrors:"Ошибки конфигурации",checkConfigYml:"Проверьте свой config.yml файл.",loadingConfig:"Загрузка конфигурации…",waitingBackend:"Ожидание ответа от бэкенда…"},notFoundPage:{header:"Не найден"}},collection:{sidebar:{collections:"Коллекции",searchAll:"Искать повсюду"},collectionTop:{viewAs:"Вид",newButton:"Создать %{collectionLabel}"},entries:{loadingEntries:"Загрузка записей…",cachingEntries:"Кэширование записей…",longerLoading:"Это может занять несколько минут"}},editor:{editorControl:{field:{optional:"необязательный"}},editorControlPane:{widget:{required:"Необходимо указать значение поля %{fieldLabel}.",regexPattern:"Значение поля %{fieldLabel} не соответствует шаблону: %{pattern}.",processing:"Значение поля %{fieldLabel} обрабатывается…",range:"Значение поля %{fieldLabel} должно быть между %{minValue} и %{maxValue}.",min:"Значение поля %{fieldLabel} должно быть не менее %{minValue}.",max:"Значение поля %{fieldLabel} должно быть %{maxValue} или менее."}},editor:{onLeavePage:"Вы уверены, что хотите покинуть эту страницу?",onUpdatingWithUnsavedChanges:"У вас есть несохраненные изменения, сохраните их перед обновлением статуса.",onPublishingNotReady:"Пожалуйста, измените статус на «Готов» перед публикацией.",onPublishingWithUnsavedChanges:"У вас есть несохраненные изменения, сохраните их перед публикацией.",onPublishing:"Вы уверены, что хотите опубликовать эту запись?",onUnpublishing:"Вы уверены, что хотите отменить публикацию этой записи?",onDeleteWithUnsavedChanges:"Вы уверены, что хотите удалить эту опубликованную запись, а также несохраненные изменения из текущего сеанса?",onDeletePublishedEntry:"Вы уверены, что хотите удалить эту опубликованную запись?",onDeleteUnpublishedChangesWithUnsavedChanges:"Это удалит все неопубликованные изменения в этой записи, а также ваши несохраненные изменения из текущего сеанса. Вы все еще хотите удалить?",onDeleteUnpublishedChanges:"Все неопубликованные изменения в этой записи будут удалены. Вы все еще хотите удалить?",loadingEntry:"Загрузка записи…",confirmLoadBackup:"Для этой записи была восстановлена локальная резервная копия, хотите ли вы ее использовать?"},editorToolbar:{publishing:"Публикация…",publish:"Опубликовать",published:"Опубликовано",unpublish:"Отменить публикацию",unpublishing:"Отмена публикации…",publishAndCreateNew:"Опубликовать и создать новую",deleteUnpublishedChanges:"Удалить неопубликованные изменения",deleteUnpublishedEntry:"Удалить неопубликованную запись",deletePublishedEntry:"Удалить опубликованную запись",deleteEntry:"Удалить запись",saving:"Сохранение…",save:"Сохранить",deleting:"Удаление…",updating:"Обновление…",setStatus:"Установить статус",backCollection:"Запись в коллекцию %{collectionLabel}",unsavedChanges:"Несохраненные изменения",changesSaved:"Изменения сохранены",draft:"Черновик",inReview:"На рассмотрении",ready:"Одобрен",publishNow:"Опубликовать сейчас",deployPreviewPendingButtonLabel:"Проверить предварительный просмотр",deployPreviewButtonLabel:"Предварительный просмотр",deployButtonLabel:"Просмотр"},editorWidgets:{image:{choose:"Выберите изображение",chooseDifferent:"Выберите другое изображение",remove:"Удалить изображение"},file:{choose:"Выберите файл",chooseDifferent:"Выберите другой файл",remove:"Удалить файл"},unknownControl:{noControl:"Нет контрола для виджета '%{widget}'."},unknownPreview:{noPreview:"Нет превью для виджета '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Черновик"},mediaLibrary:{onDelete:"Вы уверены, что хотите удалить выбранный медиафайл?"},mediaLibraryModal:{loading:"Загрузка медифайлов…",noResults:"Нет результатов.",noAssetsFound:"Ресурсы не найдены.",noImagesFound:"Изображения не найдены.",private:"Приватные ",images:"Изображения",mediaAssets:"Медиаресурсы",search:"Идёт поиск…",uploading:"Загрузка…",upload:"Загрузить новый",deleting:"Удаление…",deleteSelected:"Удалить помеченные",chooseSelected:"Выбрать помеченные"}},ui:{errorBoundary:{title:"Ошибка",details:"Произошла ошибка. Пожалуйста, ",reportIt:"сообщите о ней.",detailsHeading:"Подробности",recoveredEntry:{heading:"Восстановленный документ",warning:"Пожалуйста, скопируйте это сообщение куда-нибудь, прежде чем уйти со страницы!",copyButtonLabel:"Скопировать в буфер обмена"}},settingsDropdown:{logOut:"Выйти"},toast:{onFailToLoadEntries:"Не удалось загрузить запись: %{details}",onFailToLoadDeployPreview:"Не удалось загрузить превью: %{details}",onFailToPersist:"Не удалось сохранить запись: %{details}",onFailToDelete:"Не удалось удалить запись: %{details}",onFailToUpdateStatus:"Не удалось обновить статус: %{details}",missingRequiredField:"К сожалению, вы пропустили обязательное поле. Пожалуйста, заполните перед сохранением.",entrySaved:"Запись сохранена",entryPublished:"Запись опубликована",entryUnpublished:"Публикация записи отменена",onFailToPublishEntry:"Не удалось опубликовать запись: %{details}",onFailToUnpublishEntry:"Не удалось отменить публикацию записи: %{details}",entryUpdated:"Статус записи обновлен",onDeleteUnpublishedChanges:"Неопубликованные изменения удалены",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Загрузка записей редакционного документооборота",workflowHeading:"Редакционный документооборот",newPost:"Новая запись",description:"Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. |||| Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Удалить изменения",deleteNewEntry:"Удалить новую запись",publishChanges:"Опубликовать изменения",publishNewEntry:"Опубликовать новую запись"},workflowList:{onDeleteEntry:"Вы уверены, что хотите удалить эту запись?",onPublishingNotReadyEntry:"Только элементы со статусом «Готов» могут быть опубликованы. Перетащите карточку в столбец «Одобренные», чтобы разрешить публикацию.",onPublishEntry:"Вы уверены, что хотите опубликовать эту запись?",draftHeader:"Черновики",inReviewHeader:"На рассмотрении",readyHeader:"Одобренные",currentEntries:"%{smart_count} entry |||| %{smart_count} entries"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Logga in",loggingIn:"Loggar in...",loginWithNetlifyIdentity:"Logga in med Netlify Identity",loginWithBitbucket:"Logga in med Bitbucket",loginWithGitHub:"Logga in med GitHub",loginWithGitLab:"Logga in med GitLab",errors:{email:"Fyll i din epostadress.",password:"Vänligen skriv ditt lösenord.",identitySettings:"Kan inte hämta inställningar för Identity. Vid användade av git-gateway backend, kontrollera att Identity service och Git Gateway är aktiverade."}},app:{header:{content:"Innehåll",workflow:"Arbetsflöde",media:"Media",quickAdd:"Snabbt tillägg"},app:{errorHeader:"Ett fel uppstod vid hämtning av CMS-konfigurationen",configErrors:"Konfigurationsfel",checkConfigYml:"Kontrollera din config.yml-fil.",loadingConfig:"Hämtar konfiguration...",waitingBackend:"Väntar på backend..."},notFoundPage:{header:"Sidan finns inte"}},collection:{sidebar:{collections:"Samlingar",searchAll:"Sök"},collectionTop:{sortBy:"Sortera efter",viewAs:"Visa som",newButton:"Ny %{collectionLabel}",ascending:"Stigande",descending:"Fallande"},entries:{loadingEntries:"Hämtar inlägg...",cachingEntries:"Sparar inlägg i cache...",longerLoading:"Det här kan ta några minuter",noEntries:"Inga inlägg"},defaultFields:{author:{label:"Författare"},updatedOn:{label:"Uppdaterad vid"}}},editor:{editorControl:{field:{optional:"frivillig"}},editorControlPane:{widget:{required:"%{fieldLabel} är obligatoriskt.",regexPattern:"%{fieldLabel} matchar inte mönstret: %{pattern}.",processing:"%{fieldLabel} bearbetas.",range:"%{fieldLabel} måste vara mellan %{minValue} och %{maxValue}.",min:"%{fieldLabel} måste vara åtminstone %{minValue}.",max:"%{fieldLabel} måste vara %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} måste ha mellan %{minCount} och %{maxCount} element.",rangeCountExact:"%{fieldLabel} måste ha exakt %{count} element.",minCount:"%{fieldLabel} måste ha åtminstone %{minCount} element.",maxCount:"%{fieldLabel} måste ha %{maxCount} eller färre element."}},editor:{onLeavePage:"Är du säker på att du vill lämna sidan?",onUpdatingWithUnsavedChanges:"Du har osparade ändringar, vänligen spara dem innan du uppdaterar status.",onPublishingNotReady:'Vänligen uppdatera status till "Redo" innan du publicerar.',onPublishingWithUnsavedChanges:"Du har osparade ändringar, vänligen spara innan du publicerar.",onPublishing:"Är du säker på att du vill publicera det här inlägget?",onUnpublishing:"Är du säker på att du vill avpublicera det här inlägget?",onDeleteWithUnsavedChanges:"Är du säker på att du vill radera det här publicerade inlägget, inklusive dina osparade ändringar från nuvarande session?",onDeletePublishedEntry:"Är du säker på att du vill radera det här publicerade inlägget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Du är på väg att radera alla opublicerade ändringar för det här inlägget, inklusive dina osparade ändringar från nuvarande session. Vill du fortfarande radera?",onDeleteUnpublishedChanges:"Alla opublicerade ändringar kommer raderas. Vill du fortfarande radera?",loadingEntry:"Hämtar inlägg...",confirmLoadBackup:"En lokal kopia hittades för det här inlägget, vill du använda den?"},editorToolbar:{publishing:"Publicerar...",publish:"Publicera",published:"Publicerad",unpublish:"Avpublicera",duplicate:"Duplicera",unpublishing:"Avpublicerar...",publishAndCreateNew:"Publicera och skapa ny",publishAndDuplicate:"Publicera och duplicera",deleteUnpublishedChanges:"Radera opublicerade ändringar",deleteUnpublishedEntry:"Radera opublicerat inlägg",deletePublishedEntry:"Radera publicerat inlägg",deleteEntry:"Radera inlägg",saving:"Sparar...",save:"Spara",deleting:"Raderar...",updating:"Updaterar...",setStatus:"Sätt status",backCollection:" Redigerar i samlingen %{collectionLabel}",unsavedChanges:"Osparade ändringar",changesSaved:"Ändringar sparade",draft:"Utkast",inReview:"Under granskning",ready:"Redo",publishNow:"Publicera nu",deployPreviewPendingButtonLabel:"Kontrollera förhandsvisning",deployPreviewButtonLabel:"Visa förhandsvisning",deployButtonLabel:"Visa Live"},editorWidgets:{markdown:{richText:"Rich Text",markdown:"Markdown"},image:{choose:"Välj en bild",chooseDifferent:"Välj en annan bild",remove:"Ta bort bild"},file:{choose:"Välj en fil",chooseDifferent:"Välj en annan fil",remove:"Ta bort fil"},unknownControl:{noControl:"Inget reglage för widget '%{widget}'."},unknownPreview:{noPreview:"Ingen förhandsvisning för widget '%{widget}'."},headingOptions:{headingOne:"Rubrik 1",headingTwo:"Rubrik 2",headingThree:"Rubrik 3",headingFour:"Rubrik 4",headingFive:"Rubrik 5",headingSix:"Rubrik 6"},datetime:{now:"Nu"}}},mediaLibrary:{mediaLibraryCard:{draft:"Utkast"},mediaLibrary:{onDelete:"Är du säker på att du vill radera valt mediaobjekt?",fileTooLarge:"Maximal filstorlek överskriden.\nKonfigurerad att inte tillåta filer större än %{size} kB."},mediaLibraryModal:{loading:"Hämtar...",noResults:"Inga resultat.",noAssetsFound:"Hittade inga mediaobjekt.",noImagesFound:"Hittade inga bilder.",private:"Privat ",images:"Bilder",mediaAssets:"Mediaobjekt",search:"Sök...",uploading:"Laddar upp...",upload:"Ladda upp",download:"Ladda ner",deleting:"Raderar...",deleteSelected:"Radera markerad",chooseSelected:"Välj markerad"}},ui:{default:{goBackToSite:"Tillbaka till sida"},errorBoundary:{title:"Fel",details:"Ett fel har uppstått - vänligen ",reportIt:"öppna ett ärende på GitHub.",detailsHeading:"Detaljer",privacyWarning:"När ett ärende öppnas bifogas felsökningsdata automatiskt.\nVänligen kontrollera att informationen är korrekt och ta bort känslig data om det skulle finnas sådan.",recoveredEntry:{heading:"Återskapade dokument",warning:"Vänligen kopiera materialet någon annanstans innan du navigerar från sidan!",copyButtonLabel:"Kopiera till urklipp"}},settingsDropdown:{logOut:"Logga ut"},toast:{onFailToLoadEntries:"Kunde inte hämta inlägg: %{details}",onFailToLoadDeployPreview:"Kunde inte ladda förhandsvisning: %{details}",onFailToPersist:"Kunde inte spara inlägg: %{details}",onFailToDelete:"Kunde inte radera inlägg: %{details}",onFailToUpdateStatus:"Kunde inte uppdatera status: %{details}",missingRequiredField:"Oops, du har missat ett obligatoriskt fält. Vänligen fyll i det innan du sparar.",entrySaved:"Inlägg sparat",entryPublished:"Inlägg publicerat",entryUnpublished:"Inlägg avpublicerat",onFailToPublishEntry:"Kunde inte publicera: %{details}",onFailToUnpublishEntry:"Kunde inte avpublicera inlägg: %{details}",entryUpdated:"Inläggsstatus uppdaterad",onDeleteUnpublishedChanges:"Opublicerade ändringar raderade",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Hämtar inlägg för redaktionellt arbetsflöde",workflowHeading:"Redaktionellt arbetsflöde",newPost:"Nytt inlägg",description:"%{smart_count} inlägg väntar på granskning, %{readyCount} redo att publiceras. |||| %{smart_count} inlägg väntar på granskning, %{readyCount} redo att publiceras. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Radera ändringar",deleteNewEntry:"Radera nytt inlägg",publishChanges:"Publicera ändringar",publishNewEntry:"Publicera nytt inlägg"},workflowList:{onDeleteEntry:"Är du säker på att du vill radera det här inlägget?",onPublishingNotReadyEntry:'Bara inlägg med statusen "Redo" kan publiceras. Vänligen dra kortet till "Redo"-kolumnen för att möjliggöra publicering',onPublishEntry:"Är du säker på att du vill publicera det här inlägget?",draftHeader:"Utkast",inReviewHeader:"Under granskning",readyHeader:"Redo",currentEntries:"%{smart_count} inlägg |||| %{smart_count} inlägg"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"เข้าสู่ระบบ",loggingIn:"กำลังเข้าสู่ระบบ...",loginWithNetlifyIdentity:"เข้าสู่ระบบด้วย Netlify Identity",loginWithBitbucket:"เข้าสู่ระบบด้วย Bitbucket",loginWithGitHub:"เข้าสู่ระบบด้วย GitHub",loginWithGitLab:"เข้าสู่ระบบด้วย GitLab",errors:{email:"ตรวจสอบให้แน่ใจว่าได้ใส่อีเมลล์แล้ว",password:"โปรดใส่รหัสผ่านของคุณ",identitySettings:"ไม่สามารถเข้าถึงการตั้งค่าส่วนตัว เมื่อใช้ git-gateway backend ตรวจสอบให้แน่ใจว่าได้เปิดใช้งานระบบยืนยันตัวตนและ Git Gateway."}},app:{header:{content:"เนื้อหา",workflow:"ขั้นตอนการทำงาน",media:"มีเดีย",quickAdd:"เพิ่มเนื้อหา อย่างเร็ว"},app:{errorHeader:"เกิดข้อผิดพลาดในการโหลดการตั้งค่า CMS",configErrors:"คอนฟิกมีข้อผิดพลาด",checkConfigYml:"กรุณาตรวจสอบไฟล์ config.yml ของคุณ",loadingConfig:"กำลังโหลดการตั้งค่า...",waitingBackend:"กำลังรอการตอบกลับจาก backend..."},notFoundPage:{header:"ไม่พบหน้านี้"}},collection:{sidebar:{collections:"กลุ่ม",allCollections:"ทุกกลุ่ม",searchAll:"ค้นหาทั้งหมด",searchIn:"ค้าหาใน"},collectionTop:{sortBy:"จัดเรียงตาม",viewAs:"ดูในฐานะ",newButton:"สร้าง %{collectionLabel}",ascending:"น้อยไปมาก",descending:"มากไปน้อย",searchResults:'ค้นหาผลลัพธ์สำหรับ "%{searchTerm}"',searchResultsInCollection:'ค้นหาผลลัพธ์สำหรับ "%{searchTerm}" ใน %{collection}',filterBy:"กรองตาม"},entries:{loadingEntries:"กำลังโหลดเนิ้อหา...",cachingEntries:"กำลังแคชข้อมูลเนื้อหา...",longerLoading:"อาจจะโหลดนานหลายนาที",noEntries:"ไม่มีเนื้อหา"},defaultFields:{author:{label:"ผู้เขียน"},updatedOn:{label:"อัพเดตเมื่อ"}}},editor:{editorControl:{field:{optional:"ทางเลือก"}},editorControlPane:{widget:{required:"%{fieldLabel} ต้องระบุ",regexPattern:"%{fieldLabel} ไม่ตรงกับรูปแบบ: %{pattern}",processing:"%{fieldLabel} กำลังประมวลผล",range:"%{fieldLabel} ต้องอยู่ระหว่าง %{minValue} และ %{maxValue}",min:"%{fieldLabel} จะต้องมีค่าไม่ต่ำกว่า %{minValue}",max:"%{fieldLabel} จะต้องมีค่าไม่มากกว่า %{maxValue}",rangeCount:"%{fieldLabel} จะต้องอยู่ระหว่าง %{minCount} และ %{maxCount} รายการ",rangeCountExact:"%{fieldLabel} จะต้องมี %{count} รายการ",minCount:"%{fieldLabel} จะต้องมีไม่ต่ำกว่า %{minCount} รายการ",maxCount:"%{fieldLabel} จะต้องมีไม่มากกว่า %{maxCount} รายการ"}},editor:{onLeavePage:"คุณแน่ใจหรือว่าจะออกจากหน้านี้?",onUpdatingWithUnsavedChanges:"คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก โปรดบันทึกก่อนอัปเดตสถานะ",onPublishingNotReady:'โปรดอัปเดตสถานะเป็น "พร้อม" ก่อนจะเผยแพร่',onPublishingWithUnsavedChanges:"คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก โปรดบันทึกก่อนจะเผยแพร่",onPublishing:"คุณแน่ใจหรือว่าจะเผยแพร่เนื้อหานี้?",onUnpublishing:"คุณแน่ใจหรือว่าจะไม่ต้องการเผยแพร่เนื้อหานี้?",onDeleteWithUnsavedChanges:"คุณแน่ใจหรือว่าจะต้องการลบการเผยแพร่เนื้อหานี้ รวมถึงการเปลี่ยนแปลงที่ยังไม่ได้บันทึก?",onDeletePublishedEntry:"คุณแน่ใจหรือว่าจะต้องการลบการเผยแพร่เนื้อหานี้?",onDeleteUnpublishedChangesWithUnsavedChanges:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหาที่ยังไม่ได้เผยแพร่ทั้งหมดนี้ รวมถึงการเปลี่ยนแปลงที่ยังไม่ได้บันทึก?",onDeleteUnpublishedChanges:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหาที่ยังไม่ได้เผยแพร่ทั้งหมดนี้?",loadingEntry:"กำลังโหลดเนื้อหา...",confirmLoadBackup:"ข้อมูลสำรองได้ถูกกู้คืนสำหรับเนื้อหานี้ คุณต้องการใช้มันไหม?"},editorToolbar:{publishing:"กำลังเผยแพร่...",publish:"เผยแพร่",published:"เผยแพร่แล้ว",unpublish:"ไม่ได้เผยแพร่",duplicate:"ทำซ้ำ",unpublishing:"ไม่ทำการเผยแพร่...",publishAndCreateNew:"เผยแพร่ และ สร้างใหม่",publishAndDuplicate:"เผยแพร่ และ ทำซ้ำ",deleteUnpublishedChanges:"ลบการเปลี่ยแปลงเนื้อหาที่ยังไม่ได้เผยแพร่",deleteUnpublishedEntry:"ลบเนื้อหาที่ยังไม่ได้เผยแพร่",deletePublishedEntry:"ลบเนื้อหาที่เผยแพร่",deleteEntry:"ลบเนื้อหา",saving:"กำลังบันทึก...",save:"บันทึก",deleting:"กำลังลบ...",updating:"กำลังอัปเดต...",setStatus:"เซ็ตสถานะ",backCollection:" เขียนในกลุ่ม %{collectionLabel}",unsavedChanges:"การเปลี่ยนแปลงยังไม่ได้บันทึก",changesSaved:"การเปลี่ยนเปลงถูกบันทึกแล้ว",draft:"ร่าง",inReview:"อยู่ระหว่างการตรวจสอบ",ready:"พร้อม",publishNow:"เผยแพร่ตอนนี้",deployPreviewPendingButtonLabel:"ตรวจสอบตัวอย่าง",deployPreviewButtonLabel:"ดูตัวอย่าง",deployButtonLabel:"ดูตัวอย่างจากหน้าจริง"},editorWidgets:{markdown:{richText:"Rich Text",markdown:"Markdown"},image:{choose:"เลือกรูปภาพ",chooseDifferent:"เลือกรูปภาพอื่น",remove:"เอารูปภาพออก"},file:{choose:"เลือกไฟล์",chooseDifferent:"เลือกไฟล์อื่น",remove:"เอาไฟล์ออก"},unknownControl:{noControl:"ไม่มีการควบคุม widget '%{widget}'."},unknownPreview:{noPreview:"ไม่มีตัวอย่างสำหรับ widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"เวลาตอนนี้"}}},mediaLibrary:{mediaLibraryCard:{draft:"ร่าง"},mediaLibrary:{onDelete:"คุณแน่ใจหรือว่าจะลบมีเดียที่ถูกเลือก?",fileTooLarge:"ไฟล์ใหญ่เกินไป\n ค่าที่ตั้งไว้ไม่ยอมรับไฟล์ที่ใหญ่กว่า %{size} kB."},mediaLibraryModal:{loading:"กำลังโหลด...",noResults:"ไม่มีผลลัพธ์",noAssetsFound:"ไม่พบข้อมูล",noImagesFound:"ไม่พบรูปภาพ",private:"ส่วนตัว ",images:"รูปภาพ",mediaAssets:"ข้อมูลมีเดีย",search:"ค้นหา...",uploading:"กำลังอัปโหลด...",upload:"อัปโหลด",download:"ดาวน์โหลด",deleting:"กำลังลบ...",deleteSelected:"ลบข้อมูลที่เลือก",chooseSelected:"เลือกข้อมูลที่ถูกเลือก"}},ui:{default:{goBackToSite:"กลับไปยังเว็บไซต์"},errorBoundary:{title:"มีข้อผิดพลาด",details:"มีข้อผิดพลาดเกิดขึ้น",reportIt:"แจ้งข้อผิดพลาดบน GitHub",detailsHeading:"รายละเอียด",privacyWarning:"การแจ้งปัญหาจะเติมข้อมูลล่วงหน้าด้วยข้อความแสดงข้อผิดพลาดและข้อมูลการดีบัก\nโปรดตรวจสอบข้อมูลว่าถูกต้องและลบข้อมูลที่สำคัญหากมีอยู่",recoveredEntry:{heading:"เอกสารถูกกู้คืน",warning:"โปรด คัดลอก/วาง ที่ใดที่หนึ่งก่อนจะทำอย่างอื่น!",copyButtonLabel:"คัดลอกไปที่คลิปบอร์ด"}},settingsDropdown:{logOut:"ออกจากระบบ"},toast:{onFailToLoadEntries:"ล้มเหลวในการโหลดเนื้อหา: %{details}",onFailToLoadDeployPreview:"ล้มเหลวในการโหลดตัวอย่าง: %{details}",onFailToPersist:"ล้มเหลวในการยืนยันเนื้อหา: %{details}",onFailToDelete:"ล้มเหลวในการลบเนื้อหา: %{details}",onFailToUpdateStatus:"ล้มเหลวในการอัปเดตสถานะ: %{details}",missingRequiredField:"คุณไม่ได้ใส่ข้อมูลในช่องที่ต้องการ กรุณาใส่ข้อมูลก่อนบันทึก",entrySaved:"เนื้อหาถูกบันทึก",entryPublished:"เนื้อหาถูกเผยแพร่",entryUnpublished:"เนื้อหาไม่ได้ถูกเผยแพร่",onFailToPublishEntry:"ล้มเหลวในการเผยแพร่เนื้อหา: %{details}",onFailToUnpublishEntry:"ล้มเหลวในการไม่เผยแพร่เนื้อหา: %{details}",entryUpdated:"สถานะเนื้อหาถูกอัปเดต",onDeleteUnpublishedChanges:"การเปลี่ยนแปลงเนื้อหาไม่ถูกเผยแพร่ได้ถูกลบ",onFailToAuth:"%{details}",onLoggedOut:"คุณได้ออกจากระบบ โปรดสำรองข้อมูลแล้วเข้าสู่ระบบอีกครั้ง"}},workflow:{workflow:{loading:"กำลังโหลดเนื้อหาขั้นตอนการทำงานของบรรณาธิการ",workflowHeading:"ขั้นตอนการทำงานของบรรณาธิการ",newPost:"สร้างโพสต์ใหม่",description:"%{smart_count} เนื้อหารอการตรวจสอบ, %{readyCount} พร้อมที่จะเผยแพร่ ่",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} โดย %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"โดย %{author}",deleteChanges:"ลบการเปลี่ยนแปลง",deleteNewEntry:"ลบเนื้อหาใหม่",publishChanges:"เผยแพร่การเปลี่ยนแปลง",publishNewEntry:"เผยแพร่เนื้อหาใหม่"},workflowList:{onDeleteEntry:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหานี้?",onPublishingNotReadyEntry:'เฉพาะรายการที่มีสถานะ "พร้อม" สามารถทำการเผยแพร่ โปรดลากเนื้อหาไปยังช่อง "พร้อม" เพื่อจะทำการเผยแพร่.',onPublishEntry:"คุณแน่ใจหรือว่าจะต้องการเผยแพร่เนื้อหานี้?",draftHeader:"ร่าง",inReviewHeader:"อยู่ในการตรวจสอบ",readyHeader:"พร้อม",currentEntries:"%{smart_count} เนื้อหา"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Giriş",loggingIn:"Giriş yapılıyor..",loginWithNetlifyIdentity:"Netlify Identity ile Giriş",loginWithBitbucket:"Bitbucket ile Giriş",loginWithGitHub:"GitHub ile Giriş",loginWithGitLab:"GitLab ile Giriş",errors:{email:"E-postanızı girdiğinizden emin olun.",password:"Şifrenizi lütfen giriniz.",identitySettings:"Identity ayarlarına erişilemiyor. Git-gateway arka ucunu kullanırken Identity servisi ve Git Gateway etkin olduğundan emin olun."}},app:{header:{content:"İçerikler",workflow:"İş Akışı",media:"Medya",quickAdd:"Hızlı ekle"},app:{errorHeader:"CMS yapılandırması yüklenirken hata oluştu",configErrors:"Yapılandırma Hataları",checkConfigYml:"config.yml dosyanızı kontrol edin.",loadingConfig:"Yapılandırma yükleniyor...",waitingBackend:"Arka uç bekleniyor..."},notFoundPage:{header:"Bulunamadı"}},collection:{sidebar:{collections:"Koleksiyonlar",searchAll:"Tümünü ara"},collectionTop:{viewAs:"Görüntüle",newButton:"Yeni %{collectionLabel}"},entries:{loadingEntries:"Girdiler yükleniyor",cachingEntries:"Girdi önbelleği",longerLoading:"Bu birkaç dakika sürebilir"}},editor:{editorControl:{field:{optional:"seçmeli"}},editorControlPane:{widget:{required:"%{fieldLabel} zorunlu",regexPattern:"%{fieldLabel} eşleşmeyen kalıp: %{pattern}.",processing:"%{fieldLabel} işleniyor.",range:"%{fieldLabel} - %{minValue} ve %{maxValue} arasında olmalı.",min:"%{fieldLabel} en az %{minValue} olmalı.",max:"%{fieldLabel}, %{maxValue} veya daha az olmalı.",rangeCount:"%{fieldLabel}, %{minCount} ve %{maxCount} öğeleri arasında olmalı.",rangeCountExact:"%{fieldLabel}, %{count} öğe olmalıdır.",minCount:"%{fieldLabel}, en az %{minCount} öğe olmalıdır.",maxCount:"%{fieldLabel}, %{maxCount} veya daha az öğe olmalıdır."}},editor:{onLeavePage:"Bu sayfadan ayrılmak istediğinize emin misiniz?",onUpdatingWithUnsavedChanges:"Kaydedilmemiş değişiklikleriniz var, lütfen içeriği güncellemeden önce kaydedin.",onPublishingNotReady:'Lütfen yayınlamadan önce içeriği "Hazır" olarak güncelleyin.',onPublishingWithUnsavedChanges:"Kaydedilmemiş değişiklikleriniz var, lütfen yayınlamadan önce kaydedin.",onPublishing:"Bu girdi yayınlamak istediğinize emin misiniz?",onUnpublishing:"Bu girdi yayından kaldırmak istediğinizden emin misiniz?",onDeleteWithUnsavedChanges:"Bu oturumda kaydedilmiş değişikliklerin yanı sıra geçerli oturumdaki kaydedilmemiş değişikliklerinizi silmek istediğinize emin misiniz?",onDeletePublishedEntry:"Bu yayınlanmış girdiyi silmek istediğinize emin misiniz?",onDeleteUnpublishedChangesWithUnsavedChanges:"Bu girdide yayınlanmamış tüm değişiklikleri ve geçerli oturumdaki kaydedilmemiş değişikliklerinizi siler. Hala silmek istiyor musun?",onDeleteUnpublishedChanges:"Bu girdide yayınlanmamış tüm değişiklikler silinecek. Hala silmek istiyor musun?",loadingEntry:"Girdiler yükleniyor...",confirmLoadBackup:"Bu girdi için yerel bir yedekleme kurtarıldı, kullanmak ister misiniz?"},editorToolbar:{publishing:"Yayınlanıyor...",publish:"Yayınla",published:"Yayınlanan",unpublish:"Yayından Kaldır",duplicate:"Yayını Kopyala",unpublishing:"Yayından kaldırılıyor...",publishAndCreateNew:"Yayınla ve yeni oluştur",publishAndDuplicate:"Yayınla ve kopya oluştur",deleteUnpublishedChanges:"Yayımlanmamış değişiklikleri sil",deleteUnpublishedEntry:"Yayımlanmamış girdiyi sil",deletePublishedEntry:"Yayınlanan girdiyi sil",deleteEntry:"Girdiyi sil",saving:"Kaydediliyor...",save:"Kayıt Et",deleting:"Siliniyor...",updating:"Güncelleniyor...",setStatus:"Durumu ayarla",backCollection:"%{collectionLabel} koleksiyonunda yazılı",unsavedChanges:"Kaydedilmemiş Değişiklikler",changesSaved:"Değişiklikler kaydedildi",draft:"Taslak",inReview:"İncelemede",ready:"Hazır",publishNow:"Şimdi yayınla",deployPreviewPendingButtonLabel:"Önizlemeyi Denetle",deployPreviewButtonLabel:"Önizlemeyi Görüntüle",deployButtonLabel:"Canlı Görüntüle"},editorWidgets:{markdown:{richText:"Zengin Metin",markdown:"Markdown"},image:{choose:"Bir resim seçin",chooseDifferent:"Farklı bir resim seçin",remove:"Resmi kaldır"},file:{choose:"Bir dosya seçin",chooseDifferent:"Farklı bir dosya seçin",remove:"Dosyayı kaldır"},unknownControl:{noControl:"'%{widget}' Widget için kontrol yok."},unknownPreview:{noPreview:"'%{widget}' Widget için önizleme yok."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Taslak"},mediaLibrary:{onDelete:"Seçilen medyayı silmek istediğinize emin misiniz?"},mediaLibraryModal:{loading:"Yükleniyor...",noResults:"Sonuç yok.",noAssetsFound:"Hiçbir dosya bulunamadı.",noImagesFound:"Resim bulunamadı.",private:"Özel ",images:"Görüntüler",mediaAssets:"Medya dosyaları",search:"Ara...",uploading:"Yükleniyor...",upload:"Yeni yükle",deleting:"Siliniyor...",deleteSelected:"Silme seçildi",chooseSelected:"Seç"}},ui:{errorBoundary:{title:"Hata",details:"Bir hata oluştu - lütfen ",reportIt:"onu rapor et.",detailsHeading:"Ayrıntılar",recoveredEntry:{heading:"Kurtarılan belge",warning:"Lütfen gitmeden önce bunu bir yere kopyalayın / yapıştırın!",copyButtonLabel:"Panoya kopyala"}},settingsDropdown:{logOut:"Çıkış Yap"},toast:{onFailToLoadEntries:"Girdi yüklenemedi: %{details}",onFailToLoadDeployPreview:"Önizleme yüklenemedi: %{details}",onFailToPersist:"Girdi devam ettirilemedi: %{details}",onFailToDelete:"Girdi silinemedi: %{details}",onFailToUpdateStatus:"Durum güncellenemedi: %{details}",missingRequiredField:"Gerekli bir alan eksik. Lütfen kaydetmeden önce tamamlayın.",entrySaved:"Girdi kaydedildi",entryPublished:"Girdi yayınlandı",entryUnpublished:"Girdi yayınlanmamış",onFailToPublishEntry:"Yayınlanamadı: %{details}",onFailToUnpublishEntry:"Girdi yayından kaldırılamadı: %{details}",entryUpdated:"Girdi durumu güncellendi",onDeleteUnpublishedChanges:"Yayımlanmamış değişiklikler silindi",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"İş Akışı Girdileri Yükleniyor",workflowHeading:"Editoryal İş Akışı",newPost:"Yeni Mesaj",description:"%{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayına hazır. |||| %{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayınlanmaya hazır. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} tarafından %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author} tarafından",deleteChanges:"Değişiklikleri sil",deleteNewEntry:"Yeni girdiyi sil",publishChanges:"Değişiklikleri yayınla",publishNewEntry:"Yeni girdi yayınla"},workflowList:{onDeleteEntry:"Bu girdiyi silmek istediğinize emin misiniz?",onPublishingNotReadyEntry:'Yalnızca "Hazır" durumu olan öğeler yayınlanabilir. Lütfen yayınlamayı etkinleştirmek için kartı "Hazır" sütununa sürükleyin.',onPublishEntry:"Bu girdiyi yayınlamak istediğinize emin misiniz?",draftHeader:"Taslaklar",inReviewHeader:"İncelemede",readyHeader:"Hazır",currentEntries:"%{smart_count} girdi |||| %{smart_count} girdiler"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={app:{header:{content:"Зміст",workflow:"Робочий процес",media:"Медіа",quickAdd:"Додати"},app:{errorHeader:"Помилка завантаження конфігурації",configErrors:"Помилка конфігурації",checkConfigYml:"Перевірте config.yml файл.",loadingConfig:"Завантаження конфігурації...",waitingBackend:"Очікування серверу..."},notFoundPage:{header:"Сторінку не знайдено "}},collection:{sidebar:{collections:"Колекції",searchAll:"Пошук"},collectionTop:{viewAs:"Змінити вигляд",newButton:"Створити %{collectionLabel}"},entries:{loadingEntries:"Завантаження записів",cachingEntries:"Кешування записів",longerLoading:"Це може зайняти декілька хвилинок"}},editor:{editorControl:{field:{optional:"необов’язково"}},editorControlPane:{widget:{required:"%{fieldLabel} є обов'язковим.",regexPattern:"%{fieldLabel} не задовільняє умові: %{pattern}.",processing:"обробляється %{fieldLabel}.",range:"значення %{fieldLabel} повинне бути від %{minValue} до %{maxValue}.",min:"значення %{fieldLabel} має бути від %{minValue}.",max:"значення %{fieldLabel} має бути %{maxValue} та менше."}},editor:{onLeavePage:"Ви дійсно бажаєте залишити сторінку?",onUpdatingWithUnsavedChanges:"Присутні незбережені зміни, будь ласка збережіть перед зміною статусу.",onPublishingNotReady:'Будь ласка, встановіть статус "Готово" перед публікацією.',onPublishingWithUnsavedChanges:"Присутні незбережені зміни, будь ласка збережіть їх перед публікацією.",onPublishing:"Ви дійсно бажаєте опублікувати запис?",onDeleteWithUnsavedChanges:"Ви дійсно бажаєте видалити опублікований запис, як і всі незбережені зміни під час поточної сесії?",onDeletePublishedEntry:"Ви дійсно бажаєте видалити опублікований запис?",onDeleteUnpublishedChangesWithUnsavedChanges:"Видаляться всі неопубліковані зміни до цього запису, а також всі незбережені зміни під час поточної сесії. Бажаєте продовжити?",onDeleteUnpublishedChanges:"Всі незбережені зміни до цього запису буде видалено. Бажаєте продовжити?",loadingEntry:"Завантаження...",confirmLoadBackup:"Відновлено резервну копію, бажаєте її використати?"},editorToolbar:{publishing:"Публікація...",publish:"Опублікувати",published:"Опубліковано",publishAndCreateNew:"Опублікувати і створити нову",deleteUnpublishedChanges:"Видалити неопубліковані зміни",deleteUnpublishedEntry:"Видалити неопубліковану сторінку",deletePublishedEntry:"Видалити опубліковану сторінку",deleteEntry:"Видалити",saving:"Збереження...",save:"Зберегти",deleting:"Видалення...",updating:"Оновлення...",setStatus:"Змінити стан",backCollection:" Робота над %{collectionLabel} колекцією",unsavedChanges:"Незбережені зміни",changesSaved:"Зміни збережено",draft:"В роботі",inReview:"На розгляді",ready:"Готово",publishNow:"Опублікувати",deployPreviewPendingButtonLabel:"Перевірити оновлення",deployPreviewButtonLabel:"Попередній перегляд",deployButtonLabel:"Переглянути наживо"},editorWidgets:{image:{choose:"Виберіть зображення",chooseDifferent:"Виберіть інше зображення",remove:"Видалити зображення"},file:{choose:"Виберіть файл",chooseDifferent:"Виберіть інший файл",remove:"Видалити файл"},unknownControl:{noControl:"Відсутній модуль для '%{widget}'."},unknownPreview:{noPreview:"Відсутній перегляд для '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"В роботі"},mediaLibrary:{onDelete:"Ви дійсно бажаєте видалити обрані матеріали?"},mediaLibraryModal:{loading:"Завантаження...",noResults:"Результати відсутні.",noAssetsFound:"Матеріали відсутні.",noImagesFound:"Зображення відсутні.",private:"Private ",images:"Зображення",mediaAssets:"Медіа матеріали",search:"Пошук...",uploading:"Завантаження...",upload:"Завантажити",deleting:"Видалення...",deleteSelected:"Видалити обране",chooseSelected:"Додати обране"}},ui:{errorBoundary:{title:"Помилка",details:"Відбулась помилка - будь ласка ",reportIt:"надішліть нам деталі.",detailsHeading:"Деталі",recoveredEntry:{heading:"Відновлено документ",warning:"Будь ласка, збережіть це десь перед тим як піти!",copyButtonLabel:"Скопіювати в буфер"}},settingsDropdown:{logOut:"Вихід"},toast:{onFailToLoadEntries:"Помилка завантаження: %{details}",onFailToLoadDeployPreview:"Помилка завантаження перегляду: %{details}",onFailToPersist:"Помилка перезапису: %{details}",onFailToDelete:"Помилка видалення: %{details}",onFailToUpdateStatus:"Помилка оновлення статусу: %{details}",missingRequiredField:"Йой, здається пропущено обов'язкове поле. Будь ласка, заповніть перед збереженням.",entrySaved:"Збережено",entryPublished:"Опубліковано",onFailToPublishEntry:"Помилка публікації: %{details}",entryUpdated:"Статус оновлено",onDeleteUnpublishedChanges:"Видалено неопубліковані зміни",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Завантаження редакційних матеріалів",workflowHeading:"Редакція",newPost:"Новий запис",description:"%{smart_count} записів очікують розгляду, %{readyCount} готові до публікації. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} від %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"від %{author}",deleteChanges:"Видалити зміни",deleteNewEntry:"Видалити новий запис",publishChanges:"Опублікувати всі зміни",publishNewEntry:"Опублікувати новий запис"},workflowList:{onDeleteEntry:"Ви дійсно бажаєте видалити запис?",onPublishingNotReadyEntry:'Тільки елементи з статусом "Готово" можуть бути опубліковані. Будь ласка перемістіть картку в колонку "Готово" для публікації.',onPublishEntry:"Дійсно бажаєте опублікувати запис?",draftHeader:"В роботі",inReviewHeader:"На розгляді",readyHeader:"Готово",currentEntries:"%{smart_count} запис |||| %{smart_count} записів"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Đăng nhập",loggingIn:"Đang đăng nhập...",loginWithNetlifyIdentity:"Đăng nhập bằng Netlify Identity",loginWithBitbucket:"Đăng nhập bằng Bitbucket",loginWithGitHub:"Đăng nhập bằng GitHub",loginWithGitLab:"Đăng nhập bằng GitLab",errors:{email:"Hãy nhập email của bạn.",password:"Hãy nhập mật khẩu của bạn.",identitySettings:"Không thể truy cập thiêt lập danh tính. Hãy chắc chắn rằng bạn đã bật dịch vụ Identity và Git Gateway khi sử dụng git-gateway."}},app:{header:{content:"Nội dung",workflow:"Biên tập",media:"Tập tin",quickAdd:"Tạo nhanh"},app:{errorHeader:"Xảy ra lỗi khi tải cấu hình CMS",configErrors:"Lỗi cấu hình",checkConfigYml:"Kiểm tra lại file config.yml của bạn.",loadingConfig:"Đang tải cấu hình...",waitingBackend:"Đang chờ backend..."},notFoundPage:{header:"Không tìm thấy"}},collection:{sidebar:{collections:"Bộ sưu tập",allCollections:"Tất cả bộ sưu tập",searchAll:"Tìm kiếm tất cả",searchIn:"Tìm kiếm trong"},collectionTop:{sortBy:"Sắp xếp theo",viewAs:"View as",newButton:"%{collectionLabel} mới",ascending:"Tăng dần",descending:"Giảm dần",searchResults:'Kết quả tìm kiếm cho "%{searchTerm}"',searchResultsInCollection:'Kết quả tìm kiếm cho "%{searchTerm}" trong %{collection}',filterBy:"Lọc theo"},entries:{loadingEntries:"Đang tải...",cachingEntries:"Đang lưu...",longerLoading:"Sẽ mất vài phút",noEntries:"Không có mục nào"},defaultFields:{author:{label:"Tác giả"},updatedOn:{label:"Ngày cập nhật"}}},editor:{editorControl:{field:{optional:"không bắt buộc"}},editorControlPane:{widget:{required:"%{fieldLabel} bắt buộc nhập.",regexPattern:"%{fieldLabel} không khớp với mẫu: %{pattern}.",processing:"%{fieldLabel} đang xử lý.",range:"%{fieldLabel} phải nằm trong khoảng từ %{minValue} đến %{maxValue}.",min:"%{fieldLabel} phải ít nhất %{minValue}.",max:"%{fieldLabel} tối đa %{maxValue} hoặc ít hơn.",rangeCount:"%{fieldLabel} phải nằm trong khoảng từ %{minCount} đến %{maxCount} mục.",rangeCountExact:"%{fieldLabel} phải có %{count} mục.",minCount:"%{fieldLabel} phải có ít nhất %{minCount} mục.",maxCount:"%{fieldLabel} phải có tối đa %{maxCount} mục hoặc ít hơn.",invalidPath:"Đường dẫn '%{path}' không hợp lệ",pathExists:"Đường dẫn '%{path}' đã tồn tại"}},editor:{onLeavePage:"Bạn có chắc rằng bạn muốn rời khỏi trang này?",onUpdatingWithUnsavedChanges:"Bạn chưa lưu những thay đổi, hãy lưu trước khi thay đổi trạng thái.",onPublishingNotReady:'Hãy thay đổi trạng thái thành "Sẵn sàng" trước khi công bố.',onPublishingWithUnsavedChanges:"Bạn có thay đổi chưa lưu, hãy lưu trước khi công bố.",onPublishing:"Bạn có chắc rằng bạn muốn công bố mục này?",onUnpublishing:"Bạn có chắc rằng bạn muốn ngừng công bố mục này?",onDeleteWithUnsavedChanges:"Bạn có chắc rằng bạn muốn xoá mục đã được công bố này, cũng như là những thay đổi chưa lưu của bạn trong phiên làm việc này?",onDeletePublishedEntry:"Bạn có chắc rằng bạn muốn xoá mục đã được công bố này?",onDeleteUnpublishedChangesWithUnsavedChanges:"Điều này sẽ xoá tất cả những thay đổi chưa được lưu trong mục này, cũng như là những thay đổi chưa được lưu của bạn trong phiên làm việc này. Bạn vẫn muốn xoá chứ?",onDeleteUnpublishedChanges:"Tất cả những thay đổi chưa được lưu trong mục này sẽ bị xoá. Bạn vẫn muốn xoá chứ?",loadingEntry:"Đang tải...",confirmLoadBackup:"Một bản sao lưu trên máy đã được phục hồi cho mục này, bạn có muốn tải lên không?"},editorToolbar:{publishing:"Đang công bố...",publish:"Công bố",published:"Đã công bố",unpublish:"Ngừng công bố",duplicate:"Sao chép",unpublishing:"Đang ngừng công bố...",publishAndCreateNew:"Công bố và tạo mới",publishAndDuplicate:"Công bố và sao chép",deleteUnpublishedChanges:"Xoá thay đổi chưa công bố này",deleteUnpublishedEntry:"Xoá mục chưa được công bố này",deletePublishedEntry:"Xoá mục đã được công bố này",deleteEntry:"Xoá mục này",saving:"Đang lưu...",save:"Lưu",deleting:"Đang xoá...",updating:"Đang cập nhật...",setStatus:"Đặt trạng thái",backCollection:" Đang viết trong bộ sưu tập %{collectionLabel}",unsavedChanges:"Thay đổi chưa được lưu",changesSaved:"Thay đổi đã được lưu",draft:"Bản nháp",inReview:"Đang xét duyệt",ready:"Sẵn sàng",publishNow:"Công bố ngay",deployPreviewPendingButtonLabel:"Kiểm tra Xem trước",deployPreviewButtonLabel:"Xem trước",deployButtonLabel:"Xem bản hoàn chỉnh"},editorWidgets:{markdown:{richText:"Văn bản định dạng",markdown:"Markdown"},image:{choose:"Chọn một hình",chooseDifferent:"Chọn hình khác",remove:"Gỡ bỏ hình"},file:{choose:"Chọn một tập tin",chooseDifferent:"Chọn tập tin khác",remove:"Gỡ bỏ tập tin"},unknownControl:{noControl:"Không tìm thấy control cho widget '%{widget}'."},unknownPreview:{noPreview:"Không tìm thấy preview cho widget '%{widget}'."},headingOptions:{headingOne:"Tiêu đề cấp 1",headingTwo:"Tiêu đề cấp 2",headingThree:"Tiêu đề cấp 3",headingFour:"Tiêu đề cấp 4",headingFive:"Tiêu đề cấp 5",headingSix:"Tiêu đề cấp 6"},datetime:{now:"Ngay lúc này"}}},mediaLibrary:{mediaLibraryCard:{draft:"Bản nháp"},mediaLibrary:{onDelete:"Bạn có chắc rằng bạn muốn xoá tập tin này?",fileTooLarge:"Tập tin quá lớn.\nCấu hình không cho phép những tập tin lớn hơn %{size} kB."},mediaLibraryModal:{loading:"Đang tải...",noResults:"Không có kết quả.",noAssetsFound:"Không tìm thấy tập tin nào.",noImagesFound:"Không tìm thấy hình nào.",private:"Riêng tư ",images:"Hình ảnh",mediaAssets:"Tập tin",search:"Tìm kiếm...",uploading:"Đang tải lên...",upload:"Tải lên",download:"Tải về",deleting:"Đang xoá...",deleteSelected:"Xoá những cái đã chọn",chooseSelected:"Lấy những cái đã chọn"}},ui:{default:{goBackToSite:"Quay về trang web"},errorBoundary:{title:"Lỗi",details:"Đã xảy ra lỗi - xin hãy ",reportIt:"tạo một issue trên GitHub.",detailsHeading:"Chi tiết",privacyWarning:"Tạo một issue với nội dung lỗi và dữ liệu debug được nhập sẵn.\nHãy xác nhận những thông tin này là đúng và gỡ bỏ dữ liệu nhạy cảm nếu cần thiết.",recoveredEntry:{heading:"Tài liệu đã được phục hồi",warning:"Hãy sao chép/dán nội dung này ở đâu đó trước khi chuyển sang trang khác!",copyButtonLabel:"Sao chép vào vùng nhớ"}},settingsDropdown:{logOut:"Đăng xuất"},toast:{onFailToLoadEntries:"Không thể tải mục: %{details}",onFailToLoadDeployPreview:"Không thể tải xem trước: %{details}",onFailToPersist:"Không thể giữ lại mục: %{details}",onFailToDelete:"Không thể xoá mục: %{details}",onFailToUpdateStatus:"Không thể cập nhật trạng thái: %{details}",missingRequiredField:"Bạn còn thiếu vài thông tin bắt buộc. Hãy hoàn thành trước khi lưu.",entrySaved:"Mục đã được lưu",entryPublished:"Mục đã được công bố",entryUnpublished:"Mục đã ngừng công bố",onFailToPublishEntry:"Không thể công bố: %{details}",onFailToUnpublishEntry:"Không thể ngừng công bố mục: %{details}",entryUpdated:"Trạng thái của mục đã được cập nhật",onDeleteUnpublishedChanges:"Những thay đổi chưa được công bố đã được xoá",onFailToAuth:"%{details}",onLoggedOut:"Bạn đã đăng xuất, hãy sao lưu dữ liệu và đăng nhập lại",onBackendDown:"Dịch vụ backend đang gặp trục trặc. Hãy xem {details} để biết thêm thông tin"}},workflow:{workflow:{loading:"Đang tải bài viết",workflowHeading:"Quy trình biên tập",newPost:"Bài mới",description:"%{smart_count} bài đang chờ duyệt, %{readyCount} bài đã sẵn sàng để công bố. |||| %{smart_count} bài đang chờ duyệt, %{readyCount} bài đã sẵn sàng để công bố. ",dateFormat:"D MMMM"},workflowCard:{lastChange:"%{date} bởi %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"bởi %{author}",deleteChanges:"Xoá thay đổi",deleteNewEntry:"Xoá bài mới",publishChanges:"Công bố thay đổi",publishNewEntry:"Công bố bài mới"},workflowList:{onDeleteEntry:"Bạn có chắc rằng bạn muốn xoá bài này?",onPublishingNotReadyEntry:'Chỉ những bài với trạng thái "Sẵn sàng" mới có thể được công bố. Hãy kéo thẻ vào cột "Sẵn sàng" để cho phép công bố.',onPublishEntry:"Bạn có chắc rằng bạn muốn công khai bài này?",draftHeader:"Bản nháp",inReviewHeader:"Đang xét duyệt",readyHeader:"Sẵn sàng",currentEntries:"%{smart_count} bài |||| %{smart_count} bài"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"登入",loggingIn:"正在登入...",loginWithNetlifyIdentity:"使用你的 Netlify 帳號來進行登入",loginWithBitbucket:"使用你的 Bitbucket 帳號來進行登入",loginWithGitHub:"使用你的 GitHub 帳號來進行登入",loginWithGitLab:"使用你的 GitLab 帳號來進行登入",errors:{email:"請確認你已經輸入你的電子郵件。",password:"請輸入你的密碼。",identitySettings:"無法連接認證系統! ˇ當使用 git-gateway 作為後端資料庫時,請確認您已開啟認證服務及 Git Gateway。"}},app:{header:{content:"內容",workflow:"作業流程",media:"媒體",quickAdd:"快速新增"},app:{errorHeader:"載入 CMS 設定時發生錯誤",configErrors:"設定錯誤",checkConfigYml:"請確認你的 config.yml 設定檔的內容是否正確",loadingConfig:"正在載入設定...",waitingBackend:"正在等待後端資料連接..."},notFoundPage:{header:"找不到頁面"}},collection:{sidebar:{collections:"集合",searchAll:"尋找所有集合"},collectionTop:{viewAs:"瀏覽方式",newButton:"新增 %{collectionLabel}"},entries:{loadingEntries:"載入內容",cachingEntries:"快取內容",longerLoading:"這可能需要幾分鐘的時間"}},editor:{editorControl:{field:{optional:"可选的"}},editorControlPane:{widget:{required:"%{fieldLabel} 是必須的。",regexPattern:"%{fieldLabel} 並不符合 %{pattern} 的型態",processing:"%{fieldLabel} 正在處理",range:"%{fieldLabel} 必須介於 %{minValue} 和 %{maxValue} 之間",min:"%{fieldLabel} 必須至少為 %{minValue}",max:"%{fieldLabel} 必須小於或等於 %{maxValue}"}},editor:{onLeavePage:"您確定要離開這頁嗎?",onUpdatingWithUnsavedChanges:"您有未儲存的變更,在更新狀態前請先進行儲存。",onPublishingNotReady:"在發布前,請先將狀態設定為:預備發布。",onPublishingWithUnsavedChanges:"您有未儲存的變更,在發布前請先進行儲存。",onPublishing:"你確定要發表此內容嗎?",onUnpublishing:"你確定要取消發表此內容嗎?",onDeleteWithUnsavedChanges:"Are you sure you want to delete this published entry, as well as your unsaved changes from the current session?",onDeletePublishedEntry:"Are you sure you want to delete this published entry?",onDeleteUnpublishedChangesWithUnsavedChanges:"This will delete all unpublished changes to this entry, as well as your unsaved changes from the current session. Do you still want to delete?",onDeleteUnpublishedChanges:"All unpublished changes to this entry will be deleted. Do you still want to delete?",loadingEntry:"載入內容中...",confirmLoadBackup:"A local backup was recovered for this entry, would you like to use it?"},editorToolbar:{publishing:"發布中...",publish:"發布",published:"已發布",unpublish:"取消發布",duplicate:"建立新內容",unpublishing:"取消發布中...",publishAndCreateNew:"發布並建立內容",publishAndDuplicate:"發布並複製內容",deleteUnpublishedChanges:"刪除未發布的變更",deleteUnpublishedEntry:"刪除未發布的內容",deletePublishedEntry:"刪除已發布的內容",deleteEntry:"刪除內容",saving:"儲存中...",save:"儲存",deleting:"刪除中...",updating:"更新中...",setStatus:"設定狀態",backCollection:"在集合 %{collectionLabel} 新增內容",unsavedChanges:"未儲存變更",changesSaved:"已儲存變更",draft:"草稿",inReview:"正在審核",ready:"預備發布",publishNow:"立即發布",deployPreviewPendingButtonLabel:"點擊來進行預覽",deployPreviewButtonLabel:"進行預覽",deployButtonLabel:"觀看已發布的內容"},editorWidgets:{image:{choose:"选择一张图片",chooseDifferent:"选择其他图片",remove:"移除图片"},file:{choose:"选择一个文件",chooseDifferent:"选择其他文件",remove:"删除文件"},unknownControl:{noControl:"無法控制元件: '%{widget}'."},unknownPreview:{noPreview:"無法預覽元件: '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"草稿"},mediaLibrary:{onDelete:"你確定要刪除已選擇的媒體嗎?"},mediaLibraryModal:{loading:"載入中...",noResults:"沒有結果",noAssetsFound:"沒有發現媒體資產。",noImagesFound:"沒有發現影像。",private:"私人",images:"影像",mediaAssets:"媒體資產",search:"搜尋中...",uploading:"上傳中...",upload:"上傳新內容",deleting:"刪除中...",deleteSelected:"刪除已選擇的項目",chooseSelected:"選擇已選擇的項目"}},ui:{errorBoundary:{title:"錯誤",details:"發生錯誤!請 ",reportIt:"回報錯誤",detailsHeading:"細節",recoveredEntry:{heading:"已恢復的內容",warning:"在你離開本頁前,請將此處的內容複製貼上到其他地方來進行備份!",copyButtonLabel:"複製到剪貼簿"}},settingsDropdown:{logOut:"登出"},toast:{onFailToLoadEntries:"無法載入內容: %{details}",onFailToLoadDeployPreview:"無法預覽內容: %{details}",onFailToPersist:"無法暫存內容: %{details}",onFailToDelete:"無法刪除內容: %{details}",onFailToUpdateStatus:"無法更新狀態: %{details}",missingRequiredField:"糟了!你漏填了一個必須填入的欄位,在儲存前請先填完所有內容",entrySaved:"已儲存內容",entryPublished:"已發布內容",entryUnpublished:"已取消發布內容",onFailToPublishEntry:"無法發布: %{details}",onFailToUnpublishEntry:"無法取消發布: %{details}",entryUpdated:"內容狀態已更新",onDeleteUnpublishedChanges:"已刪除未發布的變更",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"正在載入編輯流程的內容",workflowHeading:"編輯作業流程",newPost:"建立新的內容",description:"%{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。 |||| %{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"刪除變更",deleteNewEntry:"刪除新內容",publishChanges:"發布變更",publishNewEntry:"發布新內容"},workflowList:{onDeleteEntry:"你確定要刪除這個項目嗎?",onPublishingNotReadyEntry:"只有狀態為 預備發布 的內容可以被發布,請將本內容的狀態設定為 預備發布 來進行發布前的準備",onPublishEntry:"你確定要發表這篇內容嗎?",draftHeader:"草稿",inReviewHeader:"正在預覽",readyHeader:"準備完成",currentEntries:"%{smart_count} 篇內容 |||| %{smart_count} 篇內容"}}};t.default=r},function(e,t,n){var r;
+/*!
+ * jQuery JavaScript Library v3.5.1
+ * https://jquery.com/
+ *
+ * Includes Sizzle.js
+ * https://sizzlejs.com/
+ *
+ * Copyright JS Foundation and other contributors
+ * Released under the MIT license
+ * https://jquery.org/license
+ *
+ * Date: 2020-05-04T22:49Z
+ */!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},u=o.push,c=o.indexOf,d={},f=d.toString,p=d.hasOwnProperty,h=p.toString,m=h.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},y=function(e){return null!=e&&e===e.window},b=n.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||b).createElement("script");if(o.text=e,t)for(r in _)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[f.call(e)]||"object":typeof e}var k=function(e,t){return new k.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}k.fn=k.prototype={jquery:"3.5.1",constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},k.extend=k.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(k.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||k.isPlainObject(n)?n:{},i=!1,a[t]=k.extend(u,o,r)):void 0!==r&&(a[t]=r));return a},k.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e))&&(!(t=a(e))||"function"==typeof(n=p.call(t,"constructor")&&t.constructor)&&h.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(E(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?k.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(E(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return l(a)},guid:1,support:g}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=o[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var S=
+/*!
+ * Sizzle CSS Selector Engine v2.3.5
+ * https://sizzlejs.com/
+ *
+ * Copyright JS Foundation and other contributors
+ * Released under the MIT license
+ * https://js.foundation/
+ *
+ * Date: 2020-03-14
+ */
+function(e){var t,n,r,i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,_="sizzle"+1*new Date,w=e.document,x=0,k=0,E=le(),S=le(),O=le(),T=le(),C=function(e,t){return e===t&&(d=!0),0},A={}.hasOwnProperty,P=[],R=P.pop,M=P.push,I=P.push,j=P.slice,D=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",F="(?:\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",B="\\["+N+"*("+F+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+N+"*\\]",z=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",U=new RegExp(N+"+","g"),q=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g"),H=new RegExp("^"+N+"*,"+N+"*"),W=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),V=new RegExp(N+"|>"),$=new RegExp(z),G=new RegExp("^"+F+"$"),K={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){f()},ae=_e((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{I.apply(P=j.call(w.childNodes),w.childNodes),P[w.childNodes.length].nodeType}catch(e){I={apply:P.length?function(e,t){M.apply(e,j.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,u,c,d,h,v,y=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&(f(t),t=t||p,m)){if(11!==w&&(d=Z.exec(e)))if(o=d[1]){if(9===w){if(!(u=t.getElementById(o)))return r;if(u.id===o)return r.push(u),r}else if(y&&(u=y.getElementById(o))&&b(t,u)&&u.id===o)return r.push(u),r}else{if(d[2])return I.apply(r,t.getElementsByTagName(e)),r;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return I.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!T[e+" "]&&(!g||!g.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===w&&(V.test(e)||W.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=_)),s=(h=a(e)).length;s--;)h[s]=(c?"#"+c:":scope")+" "+be(h[s]);v=h.join(",")}try{return I.apply(r,y.querySelectorAll(v)),r}catch(t){T(e,!0)}finally{c===_&&t.removeAttribute("id")}}}return l(e.replace(q,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ue(e){return e[_]=!0,e}function ce(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ue((function(t){return t=+t,ue((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},f=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!=p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,m=!o(p),w!=p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ce((function(e){return h.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(p.getElementsByClassName),n.getById=ce((function(e){return h.appendChild(e).id=_,!p.getElementsByName||!p.getElementsByName(_).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=J.test(p.querySelectorAll))&&(ce((function(e){var t;h.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+N+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+N+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+N+"*name"+N+"*="+N+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+N+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=J.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",z)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(h.compareDocumentPosition),b=t||J.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},C=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==p||e.ownerDocument==w&&b(w,e)?-1:t==p||t.ownerDocument==w&&b(w,t)?1:c?D(c,e)-D(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==p?-1:t==p?1:i?-1:o?1:c?D(c,e)-D(c,t):0;if(i===o)return fe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?fe(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(f(e),n.matchesSelector&&m&&!T[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){T(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=p&&f(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=p&&f(e);var i=r.attrHandle[t.toLowerCase()],o=i&&A.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(C),d){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ue,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&$.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+N+")"+e+"("+N+"|$)"))&&E(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(U," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,f,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(b=(p=(u=(c=(d=(f=g)[_]||(f[_]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===x&&u[1])&&u[2],f=p&&g.childNodes[p];f=++p&&f&&f[m]||(b=p=0)||h.pop();)if(1===f.nodeType&&++b&&f===t){c[e]=[x,p,b];break}}else if(y&&(b=p=(u=(c=(d=(f=t)[_]||(f[_]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===x&&u[1]),!1===b)for(;(f=++p&&f&&f[m]||(b=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&((c=(d=f[_]||(f[_]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[x,b]),f!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[_]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ue((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=D(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ue((function(e){var t=[],n=[],r=s(e.replace(q,"$1"));return r[_]?ue((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:ue((function(e){return function(t){return se(e,t).length>0}})),contains:ue((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:ue((function(e){return G.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function _e(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=k++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var u,c,d,f=[x,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(d=t[_]||(t[_]={}))[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=c[o])&&u[0]===x&&u[1]===s)return f[2]=u[2];if(c[o]=f,f[2]=e(t,n,l))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xe(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function ke(e,t,n,r,i,o){return r&&!r[_]&&(r=ke(r)),i&&!i[_]&&(i=ke(i,o)),ue((function(o,a,s,l){var u,c,d,f=[],p=[],h=a.length,m=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!o&&t?m:xe(m,f,e,s,l),v=n?i||(o?e:h||r)?[]:a:g;if(n&&n(g,v,s,l),r)for(u=xe(v,p),r(u,[],s,l),c=u.length;c--;)(d=u[c])&&(v[p[c]]=!(g[p[c]]=d));if(o){if(i||e){if(i){for(u=[],c=v.length;c--;)(d=v[c])&&u.push(g[c]=d);i(null,v=[],u,l)}for(c=v.length;c--;)(d=v[c])&&(u=i?D(o,d):f[c])>-1&&(o[u]=!(a[u]=d))}}else v=xe(v===a?v.splice(h,v.length):v),i?i(null,a,v,l):I.apply(a,v)}))}function Ee(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,c=_e((function(e){return e===t}),s,!0),d=_e((function(e){return D(t,e)>-1}),s,!0),f=[function(e,n,r){var i=!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):d(e,n,r));return t=null,i}];l<o;l++)if(n=r.relative[e[l].type])f=[_e(we(f),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[_]){for(i=++l;i<o&&!r.relative[e[i].type];i++);return ke(l>1&&we(f),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(q,"$1"),n,l<i&&Ee(e.slice(l,i)),i<o&&Ee(e=e.slice(i)),i<o&&be(e))}f.push(n)}return we(f)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=se.tokenize=function(e,t){var n,i,o,a,s,l,u,c=S[e+" "];if(c)return t?0:c.slice(0);for(s=e,l=[],u=r.preFilter;s;){for(a in n&&!(i=H.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),n=!1,(i=W.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(q," ")}),s=s.slice(n.length)),r.filter)!(i=K[a].exec(s))||u[a]&&!(i=u[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):S(e,l).slice(0)},s=se.compile=function(e,t){var n,i=[],o=[],s=O[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Ee(t[n]))[_]?i.push(s):o.push(s);(s=O(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,l,c){var d,h,g,v=0,y="0",b=o&&[],_=[],w=u,k=o||i&&r.find.TAG("*",c),E=x+=null==w?1:Math.random()||.1,S=k.length;for(c&&(u=a==p||a||c);y!==S&&null!=(d=k[y]);y++){if(i&&d){for(h=0,a||d.ownerDocument==p||(f(d),s=!m);g=e[h++];)if(g(d,a||p,s)){l.push(d);break}c&&(x=E)}n&&((d=!g&&d)&&v--,o&&b.push(d))}if(v+=y,n&&y!==v){for(h=0;g=t[h++];)g(b,_,a,s);if(o){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=R.call(l));_=xe(_)}I.apply(l,_),c&&!o&&_.length>0&&v+t.length>1&&se.uniqueSort(l)}return c&&(x=E,u=w),b};return n?ue(o):o}(o,i))).selector=e}return s},l=se.select=function(e,t,n,i){var o,l,u,c,d,f="function"==typeof e&&e,p=!i&&a(e=f.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=K.needsContext.test(e)?0:l.length;o--&&(u=l[o],!r.relative[c=u.type]);)if((d=r.find[c])&&(i=d(u.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(o,1),!(e=i.length&&be(l)))return I.apply(n,i),n;break}}return(f||s(e,p))(i,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=_.split("").sort(C).join("")===_,n.detectDuplicates=!!d,f(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||de(L,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(n);k.find=S,k.expr=S.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=S.uniqueSort,k.text=S.getText,k.isXMLDoc=S.isXML,k.contains=S.contains,k.escapeSelector=S.escape;var O=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&k(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},C=k.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function R(e,t,n){return v(t)?k.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?k.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?k.grep(e,(function(e){return c.call(t,e)>-1!==n})):k.filter(t,e,n)}k.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?k.find.matchesSelector(r,e)?[r]:[]:k.find.matches(e,k.grep(t,(function(e){return 1===e.nodeType})))},k.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(k(e).filter((function(){for(t=0;t<r;t++)if(k.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)k.find(e,i[t],n);return r>1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(R(this,e||[],!1))},not:function(e){return this.pushStack(R(this,e||[],!0))},is:function(e){return!!R(this,"string"==typeof e&&C.test(e)?k(e):e||[],!1).length}});var M,I=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||M,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:I.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),P.test(r[1])&&k.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,M=k(b);var j=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&k(e);if(!C.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?c.call(k(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return O(e,"parentNode")},parentsUntil:function(e,t,n){return O(e,"parentNode",n)},next:function(e){return L(e,"nextSibling")},prev:function(e){return L(e,"previousSibling")},nextAll:function(e){return O(e,"nextSibling")},prevAll:function(e){return O(e,"previousSibling")},nextUntil:function(e,t,n){return O(e,"nextSibling",n)},prevUntil:function(e,t,n){return O(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},(function(e,t){k.fn[e]=function(n,r){var i=k.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=k.filter(r,i)),this.length>1&&(D[e]||k.uniqueSort(i),j.test(e)&&i.reverse()),this.pushStack(i)}}));var N=/[^\x20\t\r\n\f]+/g;function F(e){return e}function B(e){throw e}function z(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(N)||[],(function(e,n){t[n]=!0})),t}(e):k.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){k.each(n,(function(n,r){v(r)?e.unique&&u.has(r)||o.push(r):r&&r.length&&"string"!==x(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return k.each(arguments,(function(e,t){for(var n;(n=k.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?k.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return k.Deferred((function(n){k.each(t,(function(t,r){var i=v(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,i){var o=0;function a(e,t,r,i){return function(){var s=this,l=arguments,u=function(){var n,u;if(!(e<o)){if((n=r.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");u=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(u)?i?u.call(n,a(o,t,F,i),a(o,t,B,i)):(o++,u.call(n,a(o,t,F,i),a(o,t,B,i),a(o,t,F,t.notifyWith))):(r!==F&&(s=void 0,l=[n]),(i||t.resolveWith)(s,l))}},c=i?u:function(){try{u()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,c.stackTrace),e+1>=o&&(r!==B&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?c():(k.Deferred.getStackHook&&(c.stackTrace=k.Deferred.getStackHook()),n.setTimeout(c))}}return k.Deferred((function(n){t[0][3].add(a(0,n,v(i)?i:F,n.notifyWith)),t[1][3].add(a(0,n,v(e)?e:F)),t[2][3].add(a(0,n,v(r)?r:B))})).promise()},promise:function(e){return null!=e?k.extend(e,i):i}},o={};return k.each(t,(function(e,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=k.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(z(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();for(;n--;)z(i[n],a(n),o.reject);return o.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&U.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){n.setTimeout((function(){throw e}))};var q=k.Deferred();function H(){b.removeEventListener("DOMContentLoaded",H),n.removeEventListener("load",H),k.ready()}k.fn.ready=function(e){return q.then(e).catch((function(e){k.readyException(e)})),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||q.resolveWith(b,[k]))}}),k.ready.then=q.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(k.ready):(b.addEventListener("DOMContentLoaded",H),n.addEventListener("load",H));var W=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===x(n))for(s in i=!0,n)W(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(k(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},V=/^-ms-/,$=/-([a-z])/g;function G(e,t){return t.toUpperCase()}function K(e){return e.replace(V,"ms-").replace($,G)}var Y=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Q(){this.expando=k.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Y(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[K(t)]=n;else for(r in t)i[K(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(K):(t=K(t))in r?[t]:t.match(N)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||k.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var X=new Q,J=new Q,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Z.test(e)?JSON.parse(e):e)}(n)}catch(e){}J.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return J.hasData(e)||X.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return X.access(e,t,n)},_removeData:function(e,t){X.remove(e,t)}}),k.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=J.get(o),1===o.nodeType&&!X.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=K(r.slice(5)),te(o,r,i[r]));X.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){J.set(this,e)})):W(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=J.get(o,e))||void 0!==(n=te(o,e))?n:void 0;this.each((function(){J.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){J.remove(this,e)}))}}),k.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=X.get(e,t),n&&(!r||Array.isArray(n)?r=X.access(e,t,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),r=n.length,i=n.shift(),o=k._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){k.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return X.get(e,n)||X.access(e,n,{empty:k.Callbacks("once memory").add((function(){X.remove(e,[t+"queue",n])}))})}}),k.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?k.queue(this[0],e):void 0===t?this:this.each((function(){var n=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&k.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){k.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=k.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=X.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],oe=b.documentElement,ae=function(e){return k.contains(e.ownerDocument,e)},se={composed:!0};oe.getRootNode&&(ae=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(se)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===k.css(e,"display")};function ue(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return k.css(e,t,"")},l=s(),u=n&&n[3]||(k.cssNumber[t]?"":"px"),c=e.nodeType&&(k.cssNumber[t]||"px"!==u&&+l)&&re.exec(k.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)k.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,k.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}var ce={};function de(e){var t,n=e.ownerDocument,r=e.nodeName,i=ce[r];return i||(t=n.body.appendChild(n.createElement(r)),i=k.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ce[r]=i,i)}function fe(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=X.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&le(r)&&(i[o]=de(r))):"none"!==n&&(i[o]="none",X.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}k.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){le(this)?k(this).show():k(this).hide()}))}});var pe,he,me=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i;pe=b.createDocumentFragment().appendChild(b.createElement("div")),(he=b.createElement("input")).setAttribute("type","radio"),he.setAttribute("checked","checked"),he.setAttribute("name","t"),pe.appendChild(he),g.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",g.option=!!pe.lastChild;var ye={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function _e(e,t){for(var n=0,r=e.length;n<r;n++)X.set(e[n],"globalEval",!t||X.get(t[n],"globalEval"))}ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,g.option||(ye.optgroup=ye.option=[1,"<select multiple='multiple'>","</select>"]);var we=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,l,u,c,d=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===x(o))k.merge(f,o.nodeType?[o]:o);else if(we.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(ge.exec(o)||["",""])[1].toLowerCase(),l=ye[s]||ye._default,a.innerHTML=l[1]+k.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;k.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(o));for(d.textContent="",p=0;o=f[p++];)if(r&&k.inArray(o,r)>-1)i&&i.push(o);else if(u=ae(o),a=be(d.appendChild(o),"script"),u&&_e(a),n)for(c=0;o=a[c++];)ve.test(o.type||"")&&n.push(o);return d}var ke=/^key/,Ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function Oe(){return!0}function Te(){return!1}function Ce(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Te;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each((function(){k.event.add(this,t,i,r,n)}))}function Pe(e,t,n){n?(X.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=X.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),X.set(this,t,o),r=n(this,t),this[t](),o!==(i=X.get(this,t))||r?X.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(X.set(this,t,{value:k.event.trigger(k.extend(o[0],k.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===X.get(e,t)&&k.event.add(e,t,Oe)}k.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,d,f,p,h,m,g=X.get(e);if(Y(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(oe,i),n.guid||(n.guid=k.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(N)||[""]).length;u--;)p=m=(s=Se.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=k.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=k.event.special[p]||{},c=k.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,c):f.push(c),k.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,u,c,d,f,p,h,m,g=X.hasData(e)&&X.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(N)||[""]).length;u--;)if(p=m=(s=Se.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=k.event.special[p]||{},f=l[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)c=f[o],!i&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||k.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)k.event.remove(e,p+t[u],n,r,!0);k.isEmptyObject(l)&&X.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=k.event.fix(e),u=(X.get(this,"events")||Object.create(null))[l.type]||[],c=k.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=k.event.handlers.call(this,l,u),t=0;(i=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((k.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?k(i,this).index(u)>-1:k.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&A(t,"input")&&Pe(t,"click",Oe),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&A(t,"input")&&Pe(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&A(t,"input")&&X.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Oe:Te,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Oe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Oe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Oe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&ke.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ee.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},(function(e,t){k.event.special[e]={setup:function(){return Pe(this,e,Ce),!1},trigger:function(){return Pe(this,e),!0},delegateType:t}})),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||k.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),k.fn.extend({on:function(e,t,n,r){return Ae(this,e,t,n,r)},one:function(e,t,n,r){return Ae(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,k(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each((function(){k.event.remove(this,e,n,t)}))}});var Re=/<script|<style|<link/i,Me=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Le(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ne(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(X.hasData(e)&&(s=X.get(e).events))for(i in X.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)k.event.add(t,i,s[i][n]);J.hasData(e)&&(o=J.access(e),a=k.extend({},o),J.set(t,a))}}function Fe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Be(e,t,n,r){t=l(t);var i,o,a,s,u,c,d=0,f=e.length,p=f-1,h=t[0],m=v(h);if(m||f>1&&"string"==typeof h&&!g.checkClone&&Me.test(h))return e.each((function(i){var o=e.eq(i);m&&(t[0]=h.call(this,i,o.html())),Be(o,t,n,r)}));if(f&&(o=(i=xe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=k.map(be(i,"script"),De)).length;d<f;d++)u=i,d!==p&&(u=k.clone(u,!0,!0),s&&k.merge(a,be(u,"script"))),n.call(e[d],u,d);if(s)for(c=a[a.length-1].ownerDocument,k.map(a,Le),d=0;d<s;d++)u=a[d],ve.test(u.type||"")&&!X.access(u,"globalEval")&&k.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?k._evalUrl&&!u.noModule&&k._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):w(u.textContent.replace(Ie,""),u,c))}return e}function ze(e,t,n){for(var r,i=t?k.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||k.cleanData(be(r)),r.parentNode&&(n&&ae(r)&&_e(be(r,"script")),r.parentNode.removeChild(r));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),l=ae(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=be(s),r=0,i=(o=be(e)).length;r<i;r++)Fe(o[r],a[r]);if(t)if(n)for(o=o||be(e),a=a||be(s),r=0,i=o.length;r<i;r++)Ne(o[r],a[r]);else Ne(e,s);return(a=be(s,"script")).length>0&&_e(a,!l&&be(e,"script")),s},cleanData:function(e){for(var t,n,r,i=k.event.special,o=0;void 0!==(n=e[o]);o++)if(Y(n)){if(t=n[X.expando]){if(t.events)for(r in t.events)i[r]?k.event.remove(n,r):k.removeEvent(n,r,t.handle);n[X.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),k.fn.extend({detach:function(e){return ze(this,e,!0)},remove:function(e){return ze(this,e)},text:function(e){return W(this,(function(e){return void 0===e?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Be(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)}))},prepend:function(){return Be(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return k.clone(this,e,t)}))},html:function(e){return W(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Re.test(e)&&!ye[(ge.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Be(this,arguments,(function(t){var n=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(be(this)),n&&n.replaceChild(t,this))}),e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){k.fn[e]=function(e){for(var n,r=[],i=k(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),k(i[a])[t](n),u.apply(r,n.get());return this.pushStack(r)}}));var Ue=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),qe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},He=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},We=new RegExp(ie.join("|"),"i");function Ve(e,t,n){var r,i,o,a,s=e.style;return(n=n||qe(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ae(e)||(a=k.style(e,t)),!g.pixelBoxStyles()&&Ue.test(a)&&We.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(u).appendChild(c);var e=n.getComputedStyle(c);r="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",a=36===t(e.right),i=36===t(e.width),c.style.position="absolute",o=12===t(c.offsetWidth/3),oe.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var r,i,o,a,s,l,u=b.createElement("div"),c=b.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===c.style.backgroundClip,k.extend(g,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,r,i;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),r=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",r.style.height="9px",oe.appendChild(e).appendChild(t).appendChild(r),i=n.getComputedStyle(t),s=parseInt(i.height)>3,oe.removeChild(e)),s}}))}();var Ge=["Webkit","Moz","ms"],Ke=b.createElement("div").style,Ye={};function Qe(e){var t=k.cssProps[e]||Ye[e];return t||(e in Ke?e:Ye[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ge.length;n--;)if((e=Ge[n]+t)in Ke)return e}(e)||e)}var Xe=/^(none|table(?!-c[ea]).+)/,Je=/^--/,Ze={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function nt(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=k.css(e,n+ie[a],!0,i)),r?("content"===n&&(l-=k.css(e,"padding"+ie[a],!0,i)),"margin"!==n&&(l-=k.css(e,"border"+ie[a]+"Width",!0,i))):(l+=k.css(e,"padding"+ie[a],!0,i),"padding"!==n?l+=k.css(e,"border"+ie[a]+"Width",!0,i):s+=k.css(e,"border"+ie[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function rt(e,t,n){var r=qe(e),i=(!g.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,r),o=i,a=Ve(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ue.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===k.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===k.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+nt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function it(e,t,n,r,i){return new it.prototype.init(e,t,n,r,i)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=K(t),l=Je.test(t),u=e.style;if(l||(t=Qe(s)),a=k.cssHooks[t]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];"string"===(o=typeof n)&&(i=re.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(k.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,o,a,s=K(t);return Je.test(t)||(t=Qe(s)),(a=k.cssHooks[t]||k.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ve(e,t,r)),"normal"===i&&t in et&&(i=et[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),k.each(["height","width"],(function(e,t){k.cssHooks[t]={get:function(e,n,r){if(n)return!Xe.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,r):He(e,Ze,(function(){return rt(e,t,r)}))},set:function(e,n,r){var i,o=qe(e),a=!g.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===k.css(e,"boxSizing",!1,o),l=r?nt(e,t,r,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-nt(e,t,"border",!1,o)-.5)),l&&(i=re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),tt(0,n,l)}}})),k.cssHooks.marginLeft=$e(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-He(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(e,t){k.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ie[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(k.cssHooks[e+t].set=tt)})),k.fn.extend({css:function(e,t){return W(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=qe(e),i=t.length;a<i;a++)o[t[a]]=k.css(e,t[a],!1,r);return o}return void 0!==n?k.style(e,t,n):k.css(e,t)}),e,t,arguments.length>1)}}),k.Tween=it,it.prototype={constructor:it,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):it.propHooks._default.set(this),this}},it.prototype.init.prototype=it.prototype,it.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[Qe(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},it.propHooks.scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=it.prototype.init,k.fx.step={};var ot,at,st=/^(?:toggle|show|hide)$/,lt=/queueHooks$/;function ut(){at&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ut):n.setTimeout(ut,k.fx.interval),k.fx.tick())}function ct(){return n.setTimeout((function(){ot=void 0})),ot=Date.now()}function dt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ie[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ft(e,t,n){for(var r,i=(pt.tweeners[t]||[]).concat(pt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function pt(e,t,n){var r,i,o=0,a=pt.prefilters.length,s=k.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=ot||ct(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(a||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:t,originalOptions:n,startTime:ot||ct(),duration:n.duration,tweens:[],createTween:function(t,n){var r=k.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=K(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=k.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,u.opts.specialEasing);o<a;o++)if(r=pt.prefilters[o].call(u,e,c,u.opts))return v(r.stop)&&(k._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return k.map(c,ft,u),v(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),k.fx.timer(k.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}k.Animation=k.extend(pt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(N);for(var n,r=0,i=e.length;r<i;r++)n=e[r],pt.tweeners[n]=pt.tweeners[n]||[],pt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,l,u,c,d="width"in t||"height"in t,f=this,p={},h=e.style,m=e.nodeType&&le(e),g=X.get(e,"fxshow");for(r in n.queue||(null==(a=k._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always((function(){f.always((function(){a.unqueued--,k.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],st.test(i)){if(delete t[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}p[r]=g&&g[r]||k.style(e,r)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(u=g&&g.display)&&(u=X.get(e,"display")),"none"===(c=k.css(e,"display"))&&(u?c=u:(fe([e],!0),u=e.style.display||u,c=k.css(e,"display"),fe([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===k.css(e,"float")&&(l||(f.done((function(){h.display=u})),null==u&&(c=h.display,u="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=X.access(e,"fxshow",{display:u}),o&&(g.hidden=!m),m&&fe([e],!0),f.done((function(){for(r in m||fe([e]),X.remove(e,"fxshow"),p)k.style(e,r,p[r])}))),l=ft(m?g[r]:0,r,f),r in g||(g[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?pt.prefilters.unshift(e):pt.prefilters.push(e)}}),k.speed=function(e,t,n){var r=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return k.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in k.fx.speeds?r.duration=k.fx.speeds[r.duration]:r.duration=k.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&k.dequeue(this,r.queue)},r},k.fn.extend({fadeTo:function(e,t,n,r){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=k.isEmptyObject(e),o=k.speed(t,n,r),a=function(){var t=pt(this,k.extend({},e),o);(i||X.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=k.timers,a=X.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&lt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||k.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=X.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=k.timers,a=r?r.length:0;for(n.finish=!0,k.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),k.each(["toggle","show","hide"],(function(e,t){var n=k.fn[t];k.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(dt(t,!0),e,r,i)}})),k.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){k.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(ot=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),ot=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){at||(at=!0,ut())},k.fx.stop=function(){at=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var ht,mt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return W(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){k.removeAttr(this,e)}))}}),k.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?k.prop(e,t,n):(1===o&&k.isXMLDoc(e)||(i=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?ht:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=k.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(N);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),ht={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||k.find.attr;mt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=mt[a],mt[a]=i,i=null!=n(e,t,r)?a:null,mt[a]=o),i}}));var gt=/^(?:input|select|textarea|button)$/i,vt=/^(?:a|area)$/i;function yt(e){return(e.match(N)||[]).join(" ")}function bt(e){return e.getAttribute&&e.getAttribute("class")||""}function _t(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(N)||[]}k.fn.extend({prop:function(e,t){return W(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[k.propFix[e]||e]}))}}),k.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(e)||(t=k.propFix[t]||t,i=k.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||vt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,l=0;if(v(e))return this.each((function(t){k(this).addClass(e.call(this,t,bt(this)))}));if((t=_t(e)).length)for(;n=this[l++];)if(i=bt(n),r=1===n.nodeType&&" "+yt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=yt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,l=0;if(v(e))return this.each((function(t){k(this).removeClass(e.call(this,t,bt(this)))}));if(!arguments.length)return this.attr("class","");if((t=_t(e)).length)for(;n=this[l++];)if(i=bt(n),r=1===n.nodeType&&" "+yt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=yt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):v(e)?this.each((function(n){k(this).toggleClass(e.call(this,n,bt(this),t),t)})):this.each((function(){var t,i,o,a;if(r)for(i=0,o=k(this),a=_t(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=bt(this))&&X.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":X.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+yt(bt(n))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;k.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=v(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,k(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=k.map(i,(function(e){return null==e?"":e+""}))),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=k.valHooks[i.type]||k.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(wt,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:yt(k.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=k(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=k.makeArray(t),a=i.length;a--;)((r=i[a]).selected=k.inArray(k.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},g.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in n;var xt=/^(?:focusinfocus|focusoutblur)$/,kt=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,r,i){var o,a,s,l,u,c,d,f,h=[r||b],m=p.call(e,"type")?e.type:e,g=p.call(e,"namespace")?e.namespace.split("."):[];if(a=f=s=r=r||b,3!==r.nodeType&&8!==r.nodeType&&!xt.test(m+k.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(e=e[k.expando]?e:new k.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:k.makeArray(t,[e]),d=k.event.special[m]||{},i||!d.trigger||!1!==d.trigger.apply(r,t))){if(!i&&!d.noBubble&&!y(r)){for(l=d.delegateType||m,xt.test(l+m)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(r.ownerDocument||b)&&h.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=h[o++])&&!e.isPropagationStopped();)f=a,e.type=o>1?l:d.bindType||m,(c=(X.get(a,"events")||Object.create(null))[e.type]&&X.get(a,"handle"))&&c.apply(a,t),(c=u&&a[u])&&c.apply&&Y(a)&&(e.result=c.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),t)||!Y(r)||u&&v(r[m])&&!y(r)&&((s=r[u])&&(r[u]=null),k.event.triggered=m,e.isPropagationStopped()&&f.addEventListener(m,kt),r[m](),e.isPropagationStopped()&&f.removeEventListener(m,kt),k.event.triggered=void 0,s&&(r[u]=s)),e.result}},simulate:function(e,t,n){var r=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(r,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each((function(){k.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),g.focusin||k.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){k.event.simulate(t,e.target,k.event.fix(e))};k.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=X.access(r,t);i||r.addEventListener(e,n,!0),X.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=X.access(r,t)-1;i?X.access(r,t,i):(r.removeEventListener(e,n,!0),X.remove(r,t))}}}));var Et=n.location,St={guid:Date.now()},Ot=/\?/;k.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+e),t};var Tt=/\[\]$/,Ct=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Pt=/^(?:input|select|textarea|keygen)/i;function Rt(e,t,n,r){var i;if(Array.isArray(t))k.each(t,(function(t,i){n||Tt.test(e)?r(e,i):Rt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==x(t))r(e,t);else for(i in t)Rt(e+"["+i+"]",t[i],n,r)}k.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,(function(){i(this.name,this.value)}));else for(n in e)Rt(n,e[n],t,i);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Pt.test(this.nodeName)&&!At.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,(function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}})):{name:t.name,value:n.replace(Ct,"\r\n")}})).get()}});var Mt=/%20/g,It=/#.*$/,jt=/([?&])_=[^&]*/,Dt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Nt=/^\/\//,Ft={},Bt={},zt="*/".concat("*"),Ut=b.createElement("a");function qt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(N)||[];if(v(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Ht(e,t,n,r){var i={},o=e===Bt;function a(s){var l;return i[s]=!0,k.each(e[s]||[],(function(e,s){var u=s(t,n,r);return"string"!=typeof u||o||i[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)})),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Wt(e,t){var n,r,i=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&k.extend(!0,e,r),e}Ut.href=Et.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Wt(Wt(e,k.ajaxSettings),t):Wt(k.ajaxSettings,e)},ajaxPrefilter:qt(Ft),ajaxTransport:qt(Bt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,l,u,c,d,f,p=k.ajaxSetup({},t),h=p.context||p,m=p.context&&(h.nodeType||h.jquery)?k(h):k.event,g=k.Deferred(),v=k.Callbacks("once memory"),y=p.statusCode||{},_={},w={},x="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Dt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==u&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)E.always(e[E.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||x;return r&&r.abort(t),S(0,t),this}};if(g.promise(E),p.url=((e||p.url||Et.href)+"").replace(Nt,Et.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(N)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Ut.protocol+"//"+Ut.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=k.param(p.data,p.traditional)),Ht(Ft,p,t,E),u)return E;for(d in(c=k.event&&p.global)&&0==k.active++&&k.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Lt.test(p.type),i=p.url.replace(It,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Mt,"+")):(f=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Ot.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(jt,"$1"),f=(Ot.test(i)?"&":"?")+"_="+St.guid+++f),p.url=i+f),p.ifModified&&(k.lastModified[i]&&E.setRequestHeader("If-Modified-Since",k.lastModified[i]),k.etag[i]&&E.setRequestHeader("If-None-Match",k.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&E.setRequestHeader("Content-Type",p.contentType),E.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+zt+"; q=0.01":""):p.accepts["*"]),p.headers)E.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(h,E,p)||u))return E.abort();if(x="abort",v.add(p.complete),E.done(p.success),E.fail(p.error),r=Ht(Bt,p,t,E)){if(E.readyState=1,c&&m.trigger("ajaxSend",[E,p]),u)return E;p.async&&p.timeout>0&&(s=n.setTimeout((function(){E.abort("timeout")}),p.timeout));try{u=!1,r.send(_,S)}catch(e){if(u)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,a,l){var d,f,b,_,w,x=t;u||(u=!0,s&&n.clearTimeout(s),r=void 0,o=l||"",E.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(_=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,E,a)),!d&&k.inArray("script",p.dataTypes)>-1&&(p.converters["text script"]=function(){}),_=function(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,_,E,d),d?(p.ifModified&&((w=E.getResponseHeader("Last-Modified"))&&(k.lastModified[i]=w),(w=E.getResponseHeader("etag"))&&(k.etag[i]=w)),204===e||"HEAD"===p.type?x="nocontent":304===e?x="notmodified":(x=_.state,f=_.data,d=!(b=_.error))):(b=x,!e&&x||(x="error",e<0&&(e=0))),E.status=e,E.statusText=(t||x)+"",d?g.resolveWith(h,[f,x,E]):g.rejectWith(h,[E,x,b]),E.statusCode(y),y=void 0,c&&m.trigger(d?"ajaxSuccess":"ajaxError",[E,p,d?f:b]),v.fireWith(h,[E,x]),c&&(m.trigger("ajaxComplete",[E,p]),--k.active||k.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],(function(e,t){k[t]=function(e,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:i,data:n,success:r},k.isPlainObject(e)&&e))}})),k.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),k._evalUrl=function(e,t,n){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,n)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){k(this).wrapInner(e.call(this,t))})):this.each((function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){k(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},$t=k.ajaxSettings.xhr();g.cors=!!$t&&"withCredentials"in $t,g.ajax=$t=!!$t,k.ajaxTransport((function(e){var t,r;if(g.cors||$t&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Vt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),k.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),k.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Gt,Kt=[],Yt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||k.expando+"_"+St.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",(function(e,t,r){var i,o,a,s=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Yt,"$1"+i):!1!==e.jsonp&&(e.url+=(Ot.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||k.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always((function(){void 0===o?k(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(i)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),g.createHTMLDocument=((Gt=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Gt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),o=!n&&[],(i=P.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=yt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&k.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?k("<div>").append(k.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,(function(t){return e===t.elem})).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u=k.css(e,"position"),c=k(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=k.css(e,"top"),l=k.css(e,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),v(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),c.css(d))}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){k.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||oe}))}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;k.fn[e]=function(r){return W(this,(function(e,r,i){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),k.each(["top","left"],(function(e,t){k.cssHooks[t]=$e(g.pixelPosition,(function(e,n){if(n)return n=Ve(e,t),Ue.test(n)?k(e).position()[t]+"px":n}))})),k.each({Height:"height",Width:"width"},(function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){k.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return W(this,(function(t,n,i){var o;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?k.css(t,n,s):k.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){k.fn[t]=function(e){return this.on(t,e)}})),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){k.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Qt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||k.guid++,i},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=A,k.isFunction=v,k.isWindow=y,k.camelCase=K,k.type=x,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(Qt,"")},void 0===(r=function(){return k}.apply(t,[]))||(e.exports=r);var Xt=n.jQuery,Jt=n.$;return k.noConflict=function(e){return n.$===k&&(n.$=Jt),e&&n.jQuery===k&&(n.jQuery=Xt),k},void 0===i&&(n.jQuery=n.$=k),k}))},function(e,t,n){"use strict";n.r(t);var r=n(409),i=n.n(r);!function(e,t){if("undefined"==typeof document)return t;e=e||"";var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e)),n.appendChild(r)}('\n.uploadcare-tab-effects--crops{display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around;max-width:100%}\n.uploadcare-tab-effects--effect-button{-ms-flex-negative:1;flex-shrink:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;padding:0;width:45px;height:45px;border-color:transparent;background:transparent;color:#212121;fill:#212121}.uploadcare-tab-effects--effect-button:active,.uploadcare-tab-effects--effect-button:focus,.uploadcare-tab-effects--effect-button:hover{fill:#0969ee;color:#0969ee}.uploadcare-tab-effects--effect-button:focus,.uploadcare-tab-effects--effect-button:hover{border-color:transparent;background:transparent}.uploadcare-tab-effects--effect-button[aria-disabled=true]{border-color:transparent!important;background:transparent!important;color:#d4d2d2!important;fill:#d4d2d2!important}.uploadcare-tab-effects--effect-button:before{content:"";display:block;-ms-flex-order:1;order:1;margin:1px 0;width:6px;height:6px;background:transparent;border-radius:50%}.uploadcare-tab-effects--effect-button_applied:before{background:#157cfc}@media (min-width:760px){.uploadcare-tab-effects--effect-button:focus,.uploadcare-tab-effects--effect-button:hover{position:relative;overflow:visible}.uploadcare-tab-effects--effect-button:focus:after,.uploadcare-tab-effects--effect-button:hover:after{content:attr(aria-label);display:block;position:absolute;top:0;left:50%;width:auto;height:auto;background:#e3e1e1;color:#212121;-webkit-transform:translateX(-50%) translateY(-100%);transform:translateX(-50%) translateY(-100%);padding:12px;border-radius:6px;line-height:1;min-width:100%}}\n.uploadcare-tab-effects--icon{height:32px}\n.uploadcare-tab-effects--effects{display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around;max-width:100%}\n.uploadcare-tab-effects--additions{-ms-flex-positive:1;flex-grow:1}\n\n\n.uploadcare-tab-effects--range{-ms-flex-positive:1;flex-grow:1}input[type=range].uploadcare-tab-effects--range__input{box-sizing:border-box;margin:0;padding:0;width:100%;height:40px;line-height:1}input[type=range].uploadcare-tab-effects--range__input:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}input[type=range].uploadcare-tab-effects--range__input::-moz-range-track{background:#d4d2d2}input[type=range].uploadcare-tab-effects--range__input::-moz-range-progress{background:#157cfc}input[type=range].uploadcare-tab-effects--range__input::-moz-range-thumb{border:none;background:#212121;box-shadow:none}input[type=range].uploadcare-tab-effects--range__input::-moz-range-thumb:focus,input[type=range].uploadcare-tab-effects--range__input::-moz-range-thumb:hover{background:#000}input[type=range].uploadcare-tab-effects--range__input::-moz-range-thumb:active{background:#000}input[type=range].uploadcare-tab-effects--range__input::-ms-track{background:#d4d2d2}input[type=range].uploadcare-tab-effects--range__input::-ms-fill-lower{background:#157cfc}input[type=range].uploadcare-tab-effects--range__input::-ms-thumb{background:#212121}input[type=range].uploadcare-tab-effects--range__input::-ms-thumb:active,input[type=range].uploadcare-tab-effects--range__input:focus::-ms-thumb{background:#000}');var o=Object.freeze({be:{effects:{captions:{blur:"Размыццё",crop:"Абрэзка",enhance:"Паляпшэнне",flip:"Адлюстраваць па вертыкалі",grayscale:"Адценні шэрага",invert:"Інвертаваць",mirror:"Адлюстраваць па гарызанталі",rotate:"Павярнуць",sharp:"Выразнасць"},apply:"Ужыць"}},en:{effects:{captions:{blur:"Blur",crop:"Crop",enhance:"Enhance",flip:"Flip",grayscale:"Grayscale",invert:"Invert",mirror:"Mirror",rotate:"Rotate",sharp:"Sharpen"},apply:"Apply"}},fr:{effects:{captions:{blur:"Flouter",crop:"Recadrer",enhance:"Effets",flip:"Retourner",grayscale:"Noir et blanc",invert:"Inverser",mirror:"Mirroir",rotate:"Tourner",sharp:"Netteté"},apply:"Appliquer"}},it:{effects:{captions:{blur:"Sfoca",crop:"Ritaglia",enhance:"Accentua",flip:"Capovolgi",grayscale:"Bianconero",invert:"Inverti",mirror:"Specchia",rotate:"Ruota",sharp:"Nitidezza"},apply:"Applica"}},ja:{effects:{captions:{blur:"ぼかし",crop:"トリミング",enhance:"補正",flip:"反転",grayscale:"グレースケール",invert:"階調反転",mirror:"ミラー",rotate:"回転",sharp:"シャープ"},apply:"適用"}},nl:{effects:{captions:{blur:"Vervagen",crop:"Bijknippen",enhance:"Verbeteren",flip:"Omkeren",grayscale:"Zwart-wit",invert:"Inverteren",mirror:"Spiegelen",rotate:"Roteren",sharp:"Verscherpen"},apply:"Toepassen"}},ru:{effects:{captions:{blur:"Размытие",crop:"Обрезка",enhance:"Улучшение",flip:"Отразить по вертикали",grayscale:"Оттенки серого",invert:"Инвертировать",mirror:"Отразить по горизонтали",rotate:"Повернуть",sharp:"Резкость"},apply:"Применить"}},vi:{effects:{captions:{blur:"Mờ",crop:"Cắt",enhance:"Tinh chỉnh",flip:"Lật",grayscale:"Xám",invert:"Âm bản",mirror:"Gương",rotate:"Xoay",sharp:"Làm nét"},apply:"Áp dụng"}}}),a=["crop","rotate","enhance","sharp","grayscale"],s="en",l="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},u=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},f=function(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)},p=function(e){return Object.keys(o).indexOf(e)>-1},h=function(e){return(new DOMParser).parseFromString(e,"text/html").body.firstChild};var m={blur:["number",10],enhance:["number",50],flip:["boolean"],grayscale:["boolean"],invert:["boolean"],mirror:["boolean"],rotate:["number"],sharp:["number",5]},g={blur:/-\/blur\/(([0-9]+)\/|)/i,crop:/-\/crop\/([0-9]+)x([0-9]+)(\/(center|([0-9]+),([0-9]+)))?\/(-\/resize\/([0-9]+)x([0-9]+)\/)?/i,enhance:/-\/enhance\/(([0-9]+)\/|)/i,flip:/-\/flip\//i,grayscale:/-\/grayscale\//i,invert:/-\/invert\//i,mirror:/-\/mirror\//i,rotate:/-\/rotate\/(([0-9]+)\/)/i,sharp:/-\/sharp\/(([0-9]+)\/|)/i};var v={view:"preview",image:{},appliedEffects:{blur:0,crop:null,enhance:0,flip:!1,grayscale:!1,invert:!1,mirror:!1,rotate:0,sharp:0},otherModifiers:""},y=function(e){var t=e.originalSize,n=e.coords,r=n.width,i=n.height,o=n.center,a=n.left,s=n.top,l="";t?r===t[0]&&i===t[1]||(l+="-/crop/"+r+"x"+i+"/"+a+","+s+"/"):(l+="-/crop/"+r+"x"+i+"/",o?l+="center/":void 0!==a&&void 0!==s&&(l+=a+","+s+"/"));return e.resizeTo?l+="-/resize/"+e.resizeTo.join("x")+"/":l+="-/preview/",l},b=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="";for(var i in e)if(e[i])switch(l(e[i])){case"boolean":if(!n&&~["flip","mirror"].indexOf(i))break;r+="-/"+i+"/";break;case"number":if(!n&&"rotate"===i)break;r+="-/"+i+"/"+e[i]+"/";break;case"object":"crop"===i&&t&&(r+=y(e[i]))}return r=r?e.crop&&t?r:"-/preview/"+r:""},_=[0,270,180,90],w=["crop","rotate","mirror","flip","blur","sharp","enhance","grayscale","invert"],x=function(e,t){var n=d(t,2),r=n[0],i=n[1],o=e.downscale&&(r>e.preferedSize[0]||i>e.preferedSize[1]),a=e.upscale&&(r<e.preferedSize[0]||i<e.preferedSize[1]);return o||a?e.preferedSize:null},k=function(e){var t=function(e){var t=[];if("string"==typeof e&&"all"===e)return w;var n=(t="string"==typeof e?e.replace(/\s/g,"").split(","):Array.isArray(e)?e:a).indexOf("crop");return~n&&0!==n&&(t=["crop"].concat(f(t.slice(0,n)),f(t.slice(n+1)))),t}(e.effects),n=function(e,t){return e||!~t.indexOf("crop")?e:[{downscale:!1,notLess:!1,preferedSize:void 0,upscale:!1}]}(e.crop,t);return c({},e,{crop:n},{effects:t},{locale:e.locale?e.locale:s})},E=function(e,t){var n=t.effects,r=t.crop,i=function(e){var t=v.appliedEffects,n={};return e.forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n}(n),o=function(e,t,n){if(!e)return{effects:{},otherModifiers:""};var r={},i=e.replace(/-\/preview\//g,"");return t.forEach((function(t){if(g[t]){var o=e.match(g[t]);if(o){var a=void 0;if("crop"===t){var s=o[7]&&[o[8],o[9]],l=parseInt(o[1]),u=parseInt(o[2]),c=n.findIndex((function(e){if(void 0===e.preferedSize)return!0;var t=d(e.preferedSize,2),n=t[0],r=t[1],i=l===n&&u===r,o=(n/r).toPrecision(2)===(l/u).toPrecision(2);return i||o}));a={resizeTo:s,index:c>=0?c:null,coords:{width:l,height:u,center:"center"===o[4],left:void 0===o[5]?void 0:parseInt(o[5]),top:void 0===o[6]?void 0:parseInt(o[6])}}}else"boolean"===m[t][0]&&(a=!0),"number"===m[t][0]&&(a=void 0===o[2]?m[t][1]:parseInt(o[2]));r[t]=a,i=i.replace(o[0],"")}}})),{effects:r,otherModifiers:i}}(e.cdnUrlModifiers,n,r);return function(e){var t=e,n={view:[],imageLoad:[],appliedEffects:[],image:[]},r=function(e,t){return n[t].push(e),function(){n[t]=n[t].filter((function(t){return t!==e}))}};return{getState:function(){return t},setView:function(e){t=c({},t,{view:e}),n.view.forEach((function(e){return e()}))},setImageLoad:function(e){t=c({},t,{imageLoad:e}),n.imageLoad.forEach((function(e){return e()}))},setAppliedEffect:function(e){var r=c({},t.appliedEffects,e);t=c({},t,{appliedEffects:r}),n.appliedEffects.forEach((function(e){return e()}))},rebuildImage:function(){var e=t,r=e.appliedEffects,i=e.image,o=b(r)+t.otherModifiers,a=function(e){if(e){var t=e.coords,n=e.resizeTo,r={width:t.width,height:t.height,left:t.left,top:t.top};return n&&(r.sw=n[0],r.sh=n[1]),r}return null}(r.crop);t.image=c({},i,{cdnUrl:i.originalUrl+(o||""),cdnUrlModifiers:o,crop:a}),n.image.forEach((function(e){return e()}))},subscribeToView:function(e){return r(e,"view")},subscribeToImageLoad:function(e){return r(e,"imageLoad")},subscribeToImage:function(e){return r(e,"image")},subscribeToAppliedEffects:function(e){return r(e,"appliedEffects")}}}(c({},v,{image:e},{appliedEffects:c({},i,o.effects)},{otherModifiers:o.otherModifiers}))},S=function(){var e=void 0,t=function(){e=h('<div class="uploadcare--tab__content uploadcare--preview__content uploadcare--preview__content_crop"></div>\n')};return{getElement:function(){return e||t(),e},appendChild:function(t){e&&e.appendChild(t)}}},O={"crop-button":"uploadcare-tab-effects--crop-button","crop-button__icon":"uploadcare-tab-effects--crop-button__icon",cropButton:"uploadcare-tab-effects--crop-button",cropButton__icon:"uploadcare-tab-effects--crop-button__icon"},T=function(e){var t=void 0,n=e.size,r=e.title,i=e.onClick,o={applied:e.applied||!1,disabled:e.disabled||!1},a=function(){var e;t=h('<div role="button" tabindex="0" class="uploadcare--button uploadcare--button_icon uploadcare--crop-sizes__item '+(e={title:r,cn:O}).cn["crop-button"]+'" data-caption="'+e.title+'">\n <div class="uploadcare--crop-sizes__icon '+e.cn["crop-button__icon"]+'"></div>\n</div>\n'),s(),o.applied&&t.classList.add("uploadcare--crop-sizes__item_current"),t.addEventListener("click",l)},s=function(){var e=t.querySelector("."+O["crop-button__icon"]),r=n.width,i=n.height;r&&i?(e.style.width=r,e.style.height=i):(e.innerHTML='\n<svg width="32" height="32" role="presentation" class="uploadcare--icon">\n <use xlink:href="#uploadcare--icon-crop-free"/>\n</svg>\n ',e.classList.add("uploadcare--crop-sizes__icon_free"))},l=function(){!o.disabled&&i&&i()};return{getElement:function(){return t||a(),t},toggleApplied:function(e){t&&o.applied!==e&&(o.applied=e,t.classList[e?"add":"remove"]("uploadcare--crop-sizes__item_current"))},toggleDisabled:function(e){t&&o.disabled!==e&&(o.disabled=e,t.setAttribute("aria-disabled",e),t.setAttribute("tabindex",e?"-1":"0"))}}},C={crops:"uploadcare-tab-effects--crops"},A=function(e){var t=void 0,n=[],r=e.crops,i=e.onCropClick,o={currentCrop:e.currentCrop||0},a=function(){t=h('<div class="'+{cn:C}.cn.crops+'"></div>\n'),r.forEach((function(e){var t=e.index,r=e.size,a=e.title;n[t]=new T({size:r,title:a,applied:o.currentCrop===t,onClick:function(){o.currentCrop!==t&&(s(t),i(e))}})})),n.forEach((function(e){return t.appendChild(e.getElement())}))},s=function(e){n&&(o.currentCrop=e,n.forEach((function(t,n){return t.toggleApplied(n===e)})))};return{getElement:function(){return t||a(),t},toggleDisabled:function(e){n&&n.forEach((function(t){return t.toggleDisabled(e)}))},updateApplied:s}},P={"effect-button":"uploadcare-tab-effects--effect-button","effect-button_applied":"uploadcare-tab-effects--effect-button_applied",effectButton:"uploadcare-tab-effects--effect-button",effectButton_applied:"uploadcare-tab-effects--effect-button_applied"},R="uploadcare-tab-effects--icon",M=Object.freeze({blur:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <defs>\n <filter id="filter-blur" width="200%" height="200%" x="-50%" y="-50%" filterUnits="objectBoundingBox">\n <feGaussianBlur stdDeviation="3" in="SourceGraphic">\n </feGaussianBlur></filter>\n </defs>\n <circle cx="16" cy="16" r="8" filter="url(#filter-blur)"></circle>\n</svg>\n'},crop:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M21,23 L10.9999602,23 C9.8967381,23 9,22.0989187 9,21.0000398 L9,11 L5,11 L5,9 L9,9 L9,5 L11,5 C11,5 11.0034766,21 10.9999602,21 L27,21 L27,23 L23,23 L23,27 L21,27 L21,23 Z M13,11 L13,9 L21.0046024,9 C22.1100735,9 23,9.89939484 23,11.0081317 L23,19.1279297 L21,19.1279297 L21,11.0081317 C21,11.00117 13,11 13,11 Z"></path>\n</svg>\n'},enhance:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M4.29289322,24.0082521 L16.3137085,11.9874369 C16.7042328,11.5969126 17.3373978,11.5969126 17.7279221,11.9874369 L20.5563492,14.815864 C20.9468735,15.2063883 20.9468735,15.8395533 20.5563492,16.2300776 L8.53553391,28.2508928 C8.14500961,28.6414171 7.51184464,28.6414171 7.12132034,28.2508928 L4.29289322,25.4224657 C3.90236893,25.0319414 3.90236893,24.3987764 4.29289322,24.0082521 Z M14.7175144,16.4120581 L16.131728,17.8262716 L18.4350288,15.5229708 L17.0208153,14.1087572 L14.7175144,16.4120581 L14.7175144,16.4120581 Z M16.3411081,7.13592111 L13.8054564,6.33578644 L16.3411081,5.53565177 L17.1412428,3 L17.9413775,5.53565177 L20.4770292,6.33578644 L17.9413775,7.13592111 L17.1412428,9.67157288 L16.3411081,7.13592111 Z M24.5356518,13.8304648 L22,13.0303301 L24.5356518,12.2301954 L25.3357864,9.69454365 L26.1359211,12.2301954 L28.6715729,13.0303301 L26.1359211,13.8304648 L25.3357864,16.3661165 L24.5356518,13.8304648 Z M9.53565177,10.8304648 L7,10.0303301 L9.53565177,9.23019541 L10.3357864,6.69454365 L11.1359211,9.23019541 L13.6715729,10.0303301 L11.1359211,10.8304648 L10.3357864,13.3661165 L9.53565177,10.8304648 Z M22.5356518,21.8304648 L20,21.0303301 L22.5356518,20.2301954 L23.3357864,17.6945436 L24.1359211,20.2301954 L26.6715729,21.0303301 L24.1359211,21.8304648 L23.3357864,24.3661165 L22.5356518,21.8304648 Z"></path>\n</svg>\n'},flip:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M15.3492086,13.7592566 L8.34920863,7.7592566 C7.64431003,7.15505781 8.07159372,6 9,6 L23,6 C23.9284063,6 24.35569,7.15505781 23.6507914,7.7592566 L16.6507914,13.7592566 C16.2763016,14.0802478 15.7236984,14.0802478 15.3492086,13.7592566 Z M15.3492086,18.2407434 C15.7236984,17.9197522 16.2763016,17.9197522 16.6507914,18.2407434 L23.6507914,24.2407434 C24.35569,24.8449422 23.9284063,26 23,26 L9,26 C8.07159372,26 7.64431003,24.8449422 8.34920863,24.2407434 L15.3492086,18.2407434 Z M11.7032574,24 L20.2967426,24 L16,20.3170778 L11.7032574,24 Z M27,15 L27,17 L25,17 L25,15 L27,15 Z M23,15 L23,17 L21,17 L21,15 L23,15 Z M19,15 L19,17 L17,17 L17,15 L19,15 Z M15,15 L15,17 L13,17 L13,15 L15,15 Z M11,15 L11,17 L9,17 L9,15 L11,15 Z M7,15 L7,17 L5,17 L5,15 L7,15 Z"></path>\n</svg>\n'},grayscale:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M19.3596223,12.0563396 L21.926451,14.6231683 C21.8411716,15.2691808 21.6833431,15.8923164 21.4614188,16.484122 L17.1233611,12.1460643 C16.660957,12.2457748 16.2168493,12.3946804 15.7967877,12.5870314 L20.8981472,17.688391 C20.6220708,18.1749895 20.2993732,18.6316689 19.936127,19.0523568 L14.3668527,13.4830825 C14.0447797,13.7487243 13.7487243,14.0447797 13.4830825,14.3668527 L19.0523568,19.936127 C18.6316689,20.2993732 18.1749895,20.6220708 17.688391,20.8981472 L12.5870314,15.7967877 C12.3946804,16.2168493 12.2457748,16.660957 12.1460643,17.1233611 L16.484122,21.4614188 C15.8923164,21.6833431 15.2691808,21.8411716 14.6231683,21.926451 L12.0563396,19.3596223 C12.4769606,22.5431547 15.2015668,25 18.5,25 C22.0898509,25 25,22.0898509 25,18.5 C25,15.2015668 22.5431547,12.4769606 19.3596223,12.0563396 Z M10.5324038,21.4675962 C7.30134737,20.2636648 5,17.1505866 5,13.5 C5,8.80557963 8.80557963,5 13.5,5 C17.1505866,5 20.2636648,7.30134737 21.4675962,10.5324038 C24.6986526,11.7363352 27,14.8494134 27,18.5 C27,23.1944204 23.1944204,27 18.5,27 C14.8494134,27 11.7363352,24.6986526 10.5324038,21.4675962 L10.5324038,21.4675962 Z"></path>\n</svg>\n'},invert:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" xmlns:xlink="http://www.w3.org/1999/xlink">\n <path d="M5,6.99180311 C5,5.89386312 5.90087297,5 6.99180311,5 L25.0081969,5 C26.1061369,5 27,5.90087297 27,6.99180311 L27,25.0081969 C27,26.1061369 26.099127,27 25.0081969,27 L6.99180311,27 C5.89386312,27 5,26.099127 5,25.0081969 L5,6.99180311 Z M25,7 L7,7 L7,25 L12.071629,19.928371 C13.0769868,20.9337288 14.4658757,21.5555556 16,21.5555556 C19.0682486,21.5555556 21.5555556,19.0682486 21.5555556,16 C21.5555556,14.4658757 20.9337288,13.0769868 19.928371,12.071629 L25,7 L25,7 Z M12.071629,19.928371 C11.0662712,18.9230132 10.4444444,17.5341243 10.4444444,16 C10.4444444,12.9317514 12.9317514,10.4444444 16,10.4444444 C17.5341243,10.4444444 18.9230132,11.0662712 19.928371,12.071629 L12.071629,19.928371 L12.071629,19.928371 Z"></path>\n</svg>\n'},mirror:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M13.7592566,16.6507914 L7.7592566,23.6507914 C7.15505781,24.35569 6,23.9284063 6,23 L6,9 C6,8.07159372 7.15505781,7.64431003 7.7592566,8.34920863 L13.7592566,15.3492086 C14.0802478,15.7236984 14.0802478,16.2763016 13.7592566,16.6507914 Z M18.2407434,16.6507914 C17.9197522,16.2763016 17.9197522,15.7236984 18.2407434,15.3492086 L24.2407434,8.34920863 C24.8449422,7.64431003 26,8.07159372 26,9 L26,23 C26,23.9284063 24.8449422,24.35569 24.2407434,23.6507914 L18.2407434,16.6507914 Z M24,20.2967426 L24,11.7032574 L20.3170778,16 L24,20.2967426 Z M15,5 L17,5 L17,7 L15,7 L15,5 Z M15,9 L17,9 L17,11 L15,11 L15,9 Z M15,13 L17,13 L17,15 L15,15 L15,13 Z M15,17 L17,17 L17,19 L15,19 L15,17 Z M15,21 L17,21 L17,23 L15,23 L15,21 Z M15,25 L17,25 L17,27 L15,27 L15,25 Z"></path>\n</svg>\n'},rotate:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M22.8449302,10.1550698 L22.8449302,10.1550698 C21.1616077,8.18356972 18.6836184,7 16,7 C11.0294373,7 7,11.0294373 7,16 C7,20.9705627 11.0294373,25 16,25 C18.6610655,25 21.131472,23.8397191 22.8318195,21.8591349 L24.3493086,23.1619115 C22.2729281,25.5805032 19.2506133,27 16,27 C9.92486775,27 5,22.0751322 5,16 C5,9.92486775 9.92486775,5 16,5 C19.224943,5 22.2084802,6.39983031 24.2627348,8.73726518 L27,6 L27,11.9970707 C27,12.5509732 26.5621186,13 25.9970707,13 L20,13 L22.8449302,10.1550698 Z M15,14 L17,14 C17.5522847,14 18,14.4477153 18,15 L18,17 C18,17.5522847 17.5522847,18 17,18 L15,18 C14.4477153,18 14,17.5522847 14,17 L14,15 C14,14.4477153 14.4477153,14 15,14 Z"></path>\n</svg>\n'},sharp:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <polygon points="16 6 25 26 7 26"></polygon>\n</svg>\n'}}),I=function(e){var t=e.name;if(!M[t])throw new Error('Icon with name "'+t+"\" doesn't exist.");var n=void 0,r=function(){(n=h(M[t]())).setAttribute("class",n.getAttribute("class")+" "+R)};return{getElement:function(){return n||r(),n}}},j=function(e){var t=void 0,n=e.effect,r=e.title,i=e.onClick,o={applied:e.applied||!1,disabled:e.disabled||!1},a=function(){var e,i=new I({name:n});(t=h('<div role="button" tabindex="0" class="uploadcare--button uploadcare--button_icon '+(e={title:r,cn:P}).cn["effect-button"]+'" aria-label="'+e.title+'"></div>\n')).appendChild(i.getElement()),o.applied&&t.classList.add(P["effect-button_applied"]),t.addEventListener("click",s),t.addEventListener("keypress",(function(e){"Enter"===e.code&&(t.dispatchEvent(new Event("click")),e.preventDefault(),e.stopPropagation())}))},s=function(){!o.disabled&&i&&i()};return{getElement:function(){return t||a(),t},getEffect:function(){return n},toggleApplied:function(e){t&&o.applied!==e&&(o.applied=e,t.classList[e?"add":"remove"](P["effect-button_applied"]))},toggleDisabled:function(e){t&&o.disabled!==e&&(o.disabled=e,t.setAttribute("aria-disabled",e),t.setAttribute("tabindex",e?-1:0))}}},D={effects:"uploadcare-tab-effects--effects"},L=function(e){var t=void 0,n=[],r=e.effects,i=e.titles,o=e.onEffectClick,a={appliedEffects:e.appliedEffects},s=function(){t=h('<div class="'+{cn:D}.cn.effects+'"></div>\n'),r.forEach((function(e){var t=i[e];n.push(new j({effect:e,title:t,applied:!!a.appliedEffects[e],onClick:function(){return o(e)}}))})),n.forEach((function(e){return t.appendChild(e.getElement())}))};return{getElement:function(){return t||s(),t},toggleDisabled:function(e){n&&n.forEach((function(t){return t.toggleDisabled(e)}))},updateApplied:function(e){n&&(a.appliedEffects=e,n.forEach((function(t){return t.toggleApplied(!!e[t.getEffect()])})))}}},N={additions:"uploadcare-tab-effects--additions",done:"uploadcare-tab-effects--done",cancel:"uploadcare-tab-effects--cancel"},F=function(e){var t=void 0,n=void 0,r=void 0,i=void 0,o=e.locale,a=e.onDone,s=e.onCancel,l=function(){var e;t=h('<div class="uploadcare--footer uploadcare--tab__footer">\n <div class="uploadcare--footer__additions '+(e={cn:N,locale:o}).cn.additions+'"></div>\n\n <button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back '+e.cn.cancel+'">\n '+e.locale.cancel+'\n </button>\n\n <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done '+e.cn.done+'">\n '+e.locale.done+"\n </button>\n</div>\n"),n=t.querySelector("."+N.additions),r=t.querySelector("."+N.done),i=t.querySelector("."+N.cancel),r.addEventListener("click",a),i.addEventListener("click",s)};return{getElement:function(){return t||l(),t},empty:function(){if(t)for(;n.firstChild;)n.removeChild(n.firstChild)},appendChild:function(e){t&&n.appendChild(e)},toggleDisabled:function(e){r&&(r.disabled=e)},updateDoneTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;r.innerText=e||o.done}}},B={title:"uploadcare-tab-effects--title"},z=function(e){var t=void 0,n=void 0,r=e.title,i=function(){var e;t=h('<div class="uploadcare--tab__header">\n <div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title '+(e={title:r,cn:B}).cn.title+'">\n '+e.title+"\n </div>\n</div>\n"),n=t.querySelector("."+B.title)};return{getElement:function(){return t||i(),t},updateTitle:function(e){n&&(n.innerText=e)}}},U={image:"uploadcare-tab-effects--image","image-container":"uploadcare-tab-effects--image-container",imageContainer:"uploadcare-tab-effects--image-container"},q=function(e){var t=void 0,n=void 0,r=e.imageUrl,i=e.onUpdate,o=e.onLoad,a=e.onFail,s=function(){var e;t=h('<div class="uploadcare--media '+(e={cn:U,imageUrl:r}).cn["image-container"]+'">\n <img src="'+e.imageUrl+'" alt="" class="uploadcare--media__image uploadcare--preview__image '+e.cn.image+'">\n</div>\n'),(n=t.querySelector("."+U.image)).addEventListener("load",(function(){return o()})),n.addEventListener("error",(function(){n.complete&&a()})),n.addEventListener("abort",(function(){return a()}))};return{getElement:function(){return t||s(),t},getImg:function(){return n},updateImageUrl:function(e){n.src===e&&n.removeAttribute("src"),n.src=e,i()}}},H={range:"uploadcare-tab-effects--range",range__input:"uploadcare-tab-effects--range__input"},W=function(e){var t=void 0,n=e.min,r=void 0===n?0:n,i=e.max,o=void 0===i?100:i,a=e.step,s=void 0===a?1:a,l=e.value,u=void 0===l?50:l,c=e.onChange,d=function(){var e;(t=h('<div class="'+(e={cn:H,min:r,max:o,step:s,value:u}).cn.range+'">\n <input type="range" class="'+e.cn.range__input+'" min="'+e.min+'" max="'+e.max+'" step="'+e.step+'" value="'+e.value+'">\n</div>\n')).addEventListener("change",(function(e){return c(e.target.value)}))};return{getElement:function(){return t||d(),t}}},V={enhance:[0,100],sharp:[0,20],blur:[0,100,5]},$=function(e){var t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,l=e.uc,c=e.store,d=e.settings,f=e.onDone,p=e.onFail,m={cropWidget:null,currentCrop:0},g=l.locale.t,v=l.crop.CropWidget,y="-/preview/1162x693/-/setfill/ffffff/-/format/jpeg/-/progressive/yes/",w=function(){var e=c.getState(),s=e.view,l=e.appliedEffects,u=e.image;t=h("<div></div>\n"),n=new z({title:k(s)}),i=new F({locale:{done:g("dialog.tabs.preview.done"),cancel:g("dialog.tabs.preview.image.change")},onDone:T,onCancel:C}),r=new S;var f=u.cdnUrl+y;d.previewUrlCallback&&(f=d.previewUrlCallback(f,u)),o=new q({imageUrl:f,onUpdate:function(){return c.setImageLoad("start")},onLoad:function(){return c.setImageLoad("load")},onFail:function(){return c.setImageLoad("fail")}}),t.appendChild(n.getElement()),t.appendChild(r.getElement()),t.appendChild(i.getElement()),r.appendChild(o.getElement());var p=d.effects,m=p.reduce((function(e,t){return e[t]=E(t),e}),{});a=new L({effects:p,titles:m,appliedEffects:l,onEffectClick:P}),i.appendChild(a.getElement()),c.subscribeToAppliedEffects(M),c.subscribeToView(I),c.subscribeToImage(j),c.subscribeToImageLoad(D)},k=function(e){return"preview"===e?g("dialog.tabs.preview.image.title"):E(e)},E=function(e){return g("effects.captions."+e)},O=function(){m.cropWidget&&m.cropWidget.__api&&(m.cropWidget.__api.release(),m.cropWidget.__api.destroy(),o.getImg().removeAttribute("style"))},T=function(e){var t=c.getState().view;"preview"===t?f():(e.stopPropagation(),"crop"===t&&U(),c.setView("preview"))},C=function(e){var t=c.getState(),n=t.view,r=t.appliedEffects,i=d.crop;if("preview"!==n){e.stopPropagation();var o=0;if("crop"===n)o=i.some((function(e){return!e.preferedSize}))?null:r[n],O();c.setAppliedEffect(u({},n,o)),c.setView("preview")}},P=function(e){var t,n,r=c.getState().appliedEffects;"rotate"!==e?"boolean"!=typeof r[e]?"crop"!==e&&"number"!=typeof r[e]||c.setView(e):c.setAppliedEffect(u({},e,!r[e])):c.setAppliedEffect({rotate:(t=r.rotate,n=_.indexOf(t),~n&&n!==_.length-1?_[n+1]:_[0])})},R=function(e){var t=c.getState().view;c.setAppliedEffect(u({},t,parseInt(e)))},M=function(){c.rebuildImage();var e=c.getState().appliedEffects;a.updateApplied(e)},I=function(){var e=c.getState(),t=e.view,r=e.appliedEffects,s=e.image;if(n.updateTitle(k(t)),"preview"===t?i.updateDoneTitle():i.updateDoneTitle(g("effects.apply")),i.empty(),"preview"!==t){if("crop"===t){N();var l=s.originalUrl+(b([{crop:null}],!1,!1)||"")+y;return d.previewUrlCallback&&(l=d.previewUrlCallback(l,s)),void o.updateImageUrl(l)}if(V[t]){var f=r[t];0===f&&(f=V[t][1]/2,c.setAppliedEffect(u({},t,f)));var p=new W({min:V[t][0],max:V[t][1],step:V[t][2],value:f,onChange:R});i.appendChild(p.getElement())}}else i.appendChild(a.getElement())},j=function(){var e=c.getState().image,t=e.cdnUrl+y;d.previewUrlCallback&&(t=d.previewUrlCallback(t,e)),o.updateImageUrl(t)},D=function(){var e=c.getState(),t=e.view;switch(e.imageLoad){case"start":i.toggleDisabled(!0),"preview"===t&&a.toggleDisabled(!0),"crop"===t&&s.toggleDisabled(!0);break;case"load":i.toggleDisabled(!1),"preview"===t?a.toggleDisabled(!1):"crop"===t&&(B(),s.toggleDisabled(!1));break;case"fail":p()}},N=function(){var e=d.crop,t=c.getState().appliedEffects.crop;m.currentCrop=t&&void 0!==t.index?t.index:0,s=new A({crops:e.map((function(e,t){var n=H(e);return{index:t,settings:e,title:n.description,size:{width:n.width,height:n.height}}})),currentCrop:m.currentCrop,onCropClick:function(e){m.currentCrop=e.index,m.cropWidget&&m.cropWidget.setCrop(e.settings)}}),i.appendChild(s.getElement())},B=function(){var e=d.crop,t=c.getState(),n=t.appliedEffects,r=t.image,i=n.crop,a=r.originalImageInfo,s=[a.width,a.height];m.cropWidget=new v(l.jQuery(o.getImg()),s,e[m.currentCrop]),i&&i.coords&&m.cropWidget.setSelection(i.coords)},U=function(){var e=m.cropWidget,t=e.crop,n=e.originalSize,r=m.cropWidget.getSelection();O(),c.setAppliedEffect({crop:{originalSize:n,coords:r,resizeTo:x(t,[r.width,r.height]),settings:t,index:m.currentCrop}})},H=function(e){var t=e.preferedSize,n=g("dialog.tabs.preview.crop.free"),r=void 0,i=void 0;if(t){var o=l.utils.gcd(t[0],t[1]),a=l.utils.fitSize(t,[30,30],!0);n=t[0]/o+":"+t[1]/o,r=Math.max(20,a[0])+"px",i=Math.max(12,a[1])+"px"}return{description:n,width:r,height:i}};return{getElement:function(){return t||w(),t}}};function G(e,t){function n(e,t,r,i,o){n.__super__.constructor.call(this,e,t,r,i,o)}return function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(n,e),n.prototype.__setState=function(e,r){var i=this;if("image"===e){if(r.info){var a=function(e){var t=window["UPLOADCARE_"+e.toUpperCase()];return void 0===t?null:t}("effects");void 0===this.settings.effects&&a&&(this.settings.effects=a);var l=k(this.settings),u=E(r.info,l);!function(e,t,n){var r=t.crop,i=e.getState().image;if(r&&!r.some((function(e){return!e.preferedSize}))&&i.isImage&&!i.cdnUrlModifiers&&!i.crop){var o=i.originalImageInfo,a=n.utils.fitSize(r[0].preferedSize,[o.width,o.height],!0),s={originalSize:[o.width,o.height],settings:r[0],resizeTo:x(r[0],a),coords:{left:Math.round((o.width-a[0])/2),top:Math.round((o.height-a[1])/2),width:a[0],height:a[1]}};e.setAppliedEffect({crop:s}),e.rebuildImage()}}(u,l,t);var d=l.locale;t.locale.translations=function(e,t){var n=c({},e),r=p(t),i=o[s],a=function(e){return n.hasOwnProperty(e)};for(var l in n)if(a(l)){if(!a(t)){var u=n[t];n[t]=c({},u,i);continue}r||p(l)?n[l]=c({},n[l],o[l]):n[l]=c({},n[l],i)}return n}(t.locale.translations,d),t.locale.rebuild();var f=new $({uc:t,store:u,settings:l,onDone:function(){var e=i.file.then((function(e){var t=u.getState().image,n=t.cdnUrl,r=t.cdnUrlModifiers,i=t.crop;return c({},e,{cdnUrl:n,cdnUrlModifiers:r,crop:i})}));i.dialogApi.fileColl.replace(i.file,e)},onFail:function(){i.file=null,i.__setState("error",{error:"loadImage"})}}),h=this.container[0];h.innerHTML="",Array.prototype.slice.call(f.getElement().children).forEach((function(e){return h.appendChild(e)})),u.setImageLoad("start")}}else n.__super__.__setState.call(this,e,r)},n.prototype.initImage=function(){},n}t.default=function(e,t,n,r,o){i.a.plugin((function(i){return r.multiple?new i.widget.tabs.PreviewTabMultiple(e,t,n,r,o):new(G(i.widget.tabs.PreviewTab,i))(e,t,n,r,o)}))}},function(e,t,n){"use strict";n.r(t);var r=n(6),i=n(74),o=n(64),a=n(303),s=n(41),l=n(28),u=n(117),c=n(9),d=n(94),f="pointermove",p="pointerdown",h="pointerup",m="pointerover",g="pointerout",v="pointerenter",y="pointerleave",b="pointercancel",_=n(148),w=n(146),x=["","unavailable","touch","pen","mouse"];function k(e){this.pointerMap[e.pointerId.toString()]=e;var t=this.prepareEvent_(e);this.dispatcher.down(t,e)}function E(e){var t=this.prepareEvent_(e);this.dispatcher.move(t,e)}function S(e){var t=this.prepareEvent_(e);this.dispatcher.up(t,e),this.cleanup(e.pointerId)}function O(e){var t=this.prepareEvent_(e);this.dispatcher.leaveOut(t,e)}function T(e){var t=this.prepareEvent_(e);this.dispatcher.enterOver(t,e)}function C(e){var t=this.prepareEvent_(e);this.dispatcher.cancel(t,e),this.cleanup(e.pointerId)}function A(e){var t=this.dispatcher.makeEvent("lostpointercapture",e,e);this.dispatcher.dispatchEvent(t)}function P(e){var t=this.dispatcher.makeEvent("gotpointercapture",e,e);this.dispatcher.dispatchEvent(t)}var R=function(e){function t(t){var n={MSPointerDown:k,MSPointerMove:E,MSPointerUp:S,MSPointerOut:O,MSPointerOver:T,MSPointerCancel:C,MSGotPointerCapture:P,MSLostPointerCapture:A};e.call(this,t,n),this.pointerMap=t.pointerMap}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.prepareEvent_=function(e){var t=e;return"number"==typeof e.pointerType&&((t=this.dispatcher.cloneEvent(e,e)).pointerType=x[e.pointerType]),t},t.prototype.cleanup=function(e){delete this.pointerMap[e.toString()]},t}(w.a);function M(e){this.dispatcher.fireNativeEvent(e)}function I(e){this.dispatcher.fireNativeEvent(e)}function j(e){this.dispatcher.fireNativeEvent(e)}function D(e){this.dispatcher.fireNativeEvent(e)}function L(e){this.dispatcher.fireNativeEvent(e)}function N(e){this.dispatcher.fireNativeEvent(e)}function F(e){this.dispatcher.fireNativeEvent(e)}function B(e){this.dispatcher.fireNativeEvent(e)}var z=function(e){function t(t){var n={pointerdown:M,pointermove:I,pointerup:j,pointerout:D,pointerover:L,pointercancel:N,gotpointercapture:B,lostpointercapture:F};e.call(this,t,n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(w.a),U=n(50),q=!1,H=function(e){function t(t,n,r){e.call(this,t),this.originalEvent=n;var i=r||{};this.buttons=function(e){var t;if(e.buttons||q)t=e.buttons;else switch(e.which){case 1:t=1;break;case 2:t=4;break;case 3:t=2;break;default:t=0}return t}(i),this.pressure=function(e,t){var n=0;n=e.pressure?e.pressure:t?.5:0;return n}(i,this.buttons),this.bubbles="bubbles"in i&&i.bubbles,this.cancelable="cancelable"in i&&i.cancelable,this.view="view"in i?i.view:null,this.detail="detail"in i?i.detail:null,this.screenX="screenX"in i?i.screenX:0,this.screenY="screenY"in i?i.screenY:0,this.clientX="clientX"in i?i.clientX:0,this.clientY="clientY"in i?i.clientY:0,this.ctrlKey="ctrlKey"in i&&i.ctrlKey,this.altKey="altKey"in i&&i.altKey,this.shiftKey="shiftKey"in i&&i.shiftKey,this.metaKey="metaKey"in i&&i.metaKey,this.button="button"in i?i.button:0,this.relatedTarget="relatedTarget"in i?i.relatedTarget:null,this.pointerId="pointerId"in i?i.pointerId:0,this.width="width"in i?i.width:0,this.height="height"in i?i.height:0,this.tiltX="tiltX"in i?i.tiltX:0,this.tiltY="tiltY"in i?i.tiltY:0,this.pointerType="pointerType"in i?i.pointerType:"",this.hwTimestamp="hwTimestamp"in i?i.hwTimestamp:0,this.isPrimary="isPrimary"in i&&i.isPrimary,n.preventDefault&&(this.preventDefault=function(){n.preventDefault()})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(U.a);!function(){try{var e=new MouseEvent("click",{buttons:1});q=1===e.buttons}catch(e){}}();var W=H,V=n(26);function $(e){this.vacuumTouches_(e),this.setPrimaryTouch_(e.changedTouches[0]),this.dedupSynthMouse_(e),this.clickCount_++,this.processTouches_(e,this.overDown_)}function G(e){this.processTouches_(e,this.moveOverOut_)}function K(e){this.dedupSynthMouse_(e),this.processTouches_(e,this.upOut_)}function Y(e){this.processTouches_(e,this.cancelOut_)}var Q=function(e){function t(t,n){var r={touchstart:$,touchmove:G,touchend:K,touchcancel:Y};e.call(this,t,r),this.pointerMap=t.pointerMap,this.mouseSource=n,this.firstTouchId_=void 0,this.clickCount_=0,this.resetId_,this.dedupTimeout_=2500}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.isPrimaryTouch_=function(e){return this.firstTouchId_===e.identifier},t.prototype.setPrimaryTouch_=function(e){var t=Object.keys(this.pointerMap).length;(0===t||1===t&&_.a.toString()in this.pointerMap)&&(this.firstTouchId_=e.identifier,this.cancelResetClickCount_())},t.prototype.removePrimaryPointer_=function(e){e.isPrimary&&(this.firstTouchId_=void 0,this.resetClickCount_())},t.prototype.resetClickCount_=function(){this.resetId_=setTimeout(this.resetClickCountHandler_.bind(this),200)},t.prototype.resetClickCountHandler_=function(){this.clickCount_=0,this.resetId_=void 0},t.prototype.cancelResetClickCount_=function(){void 0!==this.resetId_&&clearTimeout(this.resetId_)},t.prototype.touchToPointer_=function(e,t){var n=this.dispatcher.cloneEvent(e,t);return n.pointerId=t.identifier+2,n.bubbles=!0,n.cancelable=!0,n.detail=this.clickCount_,n.button=0,n.buttons=1,n.width=t.radiusX||0,n.height=t.radiusY||0,n.pressure=t.force||.5,n.isPrimary=this.isPrimaryTouch_(t),n.pointerType="touch",n.clientX=t.clientX,n.clientY=t.clientY,n.screenX=t.screenX,n.screenY=t.screenY,n},t.prototype.processTouches_=function(e,t){var n=Array.prototype.slice.call(e.changedTouches),r=n.length;function i(){e.preventDefault()}for(var o=0;o<r;++o){var a=this.touchToPointer_(e,n[o]);a.preventDefault=i,t.call(this,e,a)}},t.prototype.findTouch_=function(e,t){for(var n=e.length,r=0;r<n;r++){if(e[r].identifier===t)return!0}return!1},t.prototype.vacuumTouches_=function(e){var t=e.touches,n=Object.keys(this.pointerMap),r=n.length;if(r>=t.length){for(var i=[],o=0;o<r;++o){var a=Number(n[o]),s=this.pointerMap[a];a==_.a||this.findTouch_(t,a-2)||i.push(s.out)}for(var l=0;l<i.length;++l)this.cancelOut_(e,i[l])}},t.prototype.overDown_=function(e,t){this.pointerMap[t.pointerId]={target:t.target,out:t,outTarget:t.target},this.dispatcher.over(t,e),this.dispatcher.enter(t,e),this.dispatcher.down(t,e)},t.prototype.moveOverOut_=function(e,t){var n=t,r=this.pointerMap[n.pointerId];if(r){var i=r.out,o=r.outTarget;this.dispatcher.move(n,e),i&&o!==n.target&&(i.relatedTarget=n.target,n.relatedTarget=o,i.target=o,n.target?(this.dispatcher.leaveOut(i,e),this.dispatcher.enterOver(n,e)):(n.target=o,n.relatedTarget=null,this.cancelOut_(e,n))),r.out=n,r.outTarget=n.target}},t.prototype.upOut_=function(e,t){this.dispatcher.up(t,e),this.dispatcher.out(t,e),this.dispatcher.leave(t,e),this.cleanUpPointer_(t)},t.prototype.cancelOut_=function(e,t){this.dispatcher.cancel(t,e),this.dispatcher.out(t,e),this.dispatcher.leave(t,e),this.cleanUpPointer_(t)},t.prototype.cleanUpPointer_=function(e){delete this.pointerMap[e.pointerId],this.removePrimaryPointer_(e)},t.prototype.dedupSynthMouse_=function(e){var t=this.mouseSource.lastTouches,n=e.changedTouches[0];if(this.isPrimaryTouch_(n)){var r=[n.clientX,n.clientY];t.push(r),setTimeout((function(){Object(V.h)(t,r)}),this.dedupTimeout_)}},t}(w.a),X=[["bubbles",!1],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]],J=function(e){function t(t){e.call(this),this.element_=t,this.pointerMap={},this.eventMap_={},this.eventSourceList_=[],this.registerSources()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.registerSources=function(){if(s.f)this.registerSource("native",new z(this));else if(s.e)this.registerSource("ms",new R(this));else{var e=new _.c(this);this.registerSource("mouse",e),s.h&&this.registerSource("touch",new Q(this,e))}this.register_()},t.prototype.registerSource=function(e,t){var n=t,r=n.getEvents();r&&(r.forEach(function(e){var t=n.getHandlerForEvent(e);t&&(this.eventMap_[e]=t.bind(n))}.bind(this)),this.eventSourceList_.push(n))},t.prototype.register_=function(){for(var e=this.eventSourceList_.length,t=0;t<e;t++){var n=this.eventSourceList_[t];this.addEvents_(n.getEvents())}},t.prototype.unregister_=function(){for(var e=this.eventSourceList_.length,t=0;t<e;t++){var n=this.eventSourceList_[t];this.removeEvents_(n.getEvents())}},t.prototype.eventHandler_=function(e){var t=e.type,n=this.eventMap_[t];n&&n(e)},t.prototype.addEvents_=function(e){e.forEach(function(e){Object(c.a)(this.element_,e,this.eventHandler_,this)}.bind(this))},t.prototype.removeEvents_=function(e){e.forEach(function(e){Object(c.c)(this.element_,e,this.eventHandler_,this)}.bind(this))},t.prototype.cloneEvent=function(e,t){for(var n={},r=0,i=X.length;r<i;r++){var o=X[r][0];n[o]=e[o]||t[o]||X[r][1]}return n},t.prototype.down=function(e,t){this.fireEvent(p,e,t)},t.prototype.move=function(e,t){this.fireEvent(f,e,t)},t.prototype.up=function(e,t){this.fireEvent(h,e,t)},t.prototype.enter=function(e,t){e.bubbles=!1,this.fireEvent(v,e,t)},t.prototype.leave=function(e,t){e.bubbles=!1,this.fireEvent(y,e,t)},t.prototype.over=function(e,t){e.bubbles=!0,this.fireEvent(m,e,t)},t.prototype.out=function(e,t){e.bubbles=!0,this.fireEvent(g,e,t)},t.prototype.cancel=function(e,t){this.fireEvent(b,e,t)},t.prototype.leaveOut=function(e,t){this.out(e,t),this.contains_(e.target,e.relatedTarget)||this.leave(e,t)},t.prototype.enterOver=function(e,t){this.over(e,t),this.contains_(e.target,e.relatedTarget)||this.enter(e,t)},t.prototype.contains_=function(e,t){return!(!e||!t)&&e.contains(t)},t.prototype.makeEvent=function(e,t,n){return new W(e,n,t)},t.prototype.fireEvent=function(e,t,n){var r=this.makeEvent(e,t,n);this.dispatchEvent(r)},t.prototype.fireNativeEvent=function(e){var t=this.makeEvent(e.type,e,e);this.dispatchEvent(t)},t.prototype.wrapMouseEvent=function(e,t){return this.makeEvent(e,Object(_.d)(t,this),t)},t.prototype.disposeInternal=function(){this.unregister_(),e.prototype.disposeInternal.call(this)},t}(d.a),Z=function(e){function t(t,n){e.call(this),this.map_=t,this.clickTimeoutId_,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=n?n*s.b:s.b,this.down_=null;var r=this.map_.getViewport();this.activePointers_=0,this.trackedTouches_={},this.pointerEventHandler_=new J(r),this.documentPointerEventHandler_=null,this.pointerdownListenerKey_=Object(c.a)(this.pointerEventHandler_,p,this.handlePointerDown_,this),this.relayedListenerKey_=Object(c.a)(this.pointerEventHandler_,f,this.relayEvent_,this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.emulateClick_=function(e){var t=new u.a(l.a.CLICK,this.map_,e);this.dispatchEvent(t),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,t=new u.a(l.a.DBLCLICK,this.map_,e),this.dispatchEvent(t)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var t=new u.a(l.a.SINGLECLICK,this.map_,e);this.dispatchEvent(t)}.bind(this),250)},t.prototype.updateActivePointers_=function(e){var t=e;t.type==l.a.POINTERUP||t.type==l.a.POINTERCANCEL?delete this.trackedTouches_[t.pointerId]:t.type==l.a.POINTERDOWN&&(this.trackedTouches_[t.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length},t.prototype.handlePointerUp_=function(e){this.updateActivePointers_(e);var t=new u.a(l.a.POINTERUP,this.map_,e);this.dispatchEvent(t),t.propagationStopped||this.dragging_||!this.isMouseActionButton_(e)||this.emulateClick_(this.down_),0===this.activePointers_&&(this.dragListenerKeys_.forEach(c.e),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null,this.documentPointerEventHandler_.dispose(),this.documentPointerEventHandler_=null)},t.prototype.isMouseActionButton_=function(e){return 0===e.button},t.prototype.handlePointerDown_=function(e){this.updateActivePointers_(e);var t=new u.a(l.a.POINTERDOWN,this.map_,e);this.dispatchEvent(t),this.down_=e,0===this.dragListenerKeys_.length&&(this.documentPointerEventHandler_=new J(document),this.dragListenerKeys_.push(Object(c.a)(this.documentPointerEventHandler_,l.a.POINTERMOVE,this.handlePointerMove_,this),Object(c.a)(this.documentPointerEventHandler_,l.a.POINTERUP,this.handlePointerUp_,this),Object(c.a)(this.pointerEventHandler_,l.a.POINTERCANCEL,this.handlePointerUp_,this)))},t.prototype.handlePointerMove_=function(e){if(this.isMoving_(e)){this.dragging_=!0;var t=new u.a(l.a.POINTERDRAG,this.map_,e,this.dragging_);this.dispatchEvent(t)}e.preventDefault()},t.prototype.relayEvent_=function(e){var t=!(!this.down_||!this.isMoving_(e));this.dispatchEvent(new u.a(e.type,this.map_,e,t))},t.prototype.isMoving_=function(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_},t.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(c.e)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.pointerdownListenerKey_&&(Object(c.e)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(c.e),this.dragListenerKeys_.length=0,this.documentPointerEventHandler_&&(this.documentPointerEventHandler_.dispose(),this.documentPointerEventHandler_=null),this.pointerEventHandler_&&(this.pointerEventHandler_.dispose(),this.pointerEventHandler_=null),e.prototype.disposeInternal.call(this)},t}(d.a),ee=n(206),te="postrender",ne="movestart",re="moveend",ie="layergroup",oe="size",ae="target",se="view",le=n(86),ue=n(35),ce=n(113),de=n(17),fe=n(14),pe=n(27),he=n(22),me=function(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}};me.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Object(he.b)(this.queuedElements_)},me.prototype.dequeue=function(){var e=this.elements_,t=this.priorities_,n=e[0];1==e.length?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));var r=this.keyFunction_(n);return delete this.queuedElements_[r],n},me.prototype.enqueue=function(e){Object(pe.a)(!(this.keyFunction_(e)in this.queuedElements_),31);var t=this.priorityFunction_(e);return t!=1/0&&(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},me.prototype.getCount=function(){return this.elements_.length},me.prototype.getLeftChildIndex_=function(e){return 2*e+1},me.prototype.getRightChildIndex_=function(e){return 2*e+2},me.prototype.getParentIndex_=function(e){return e-1>>1},me.prototype.heapify_=function(){var e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)},me.prototype.isEmpty=function(){return 0===this.elements_.length},me.prototype.isKeyQueued=function(e){return e in this.queuedElements_},me.prototype.isQueued=function(e){return this.isKeyQueued(this.keyFunction_(e))},me.prototype.siftUp_=function(e){for(var t=this.elements_,n=this.priorities_,r=t.length,i=t[e],o=n[e],a=e;e<r>>1;){var s=this.getLeftChildIndex_(e),l=this.getRightChildIndex_(e),u=l<r&&n[l]<n[s]?l:s;t[e]=t[u],n[e]=n[u],e=u}t[e]=i,n[e]=o,this.siftDown_(a,e)},me.prototype.siftDown_=function(e,t){for(var n=this.elements_,r=this.priorities_,i=n[t],o=r[t];t>e;){var a=this.getParentIndex_(t);if(!(r[a]>o))break;n[t]=n[a],r[t]=r[a],t=a}n[t]=i,r[t]=o},me.prototype.reprioritize=function(){var e,t,n,r=this.priorityFunction_,i=this.elements_,o=this.priorities_,a=0,s=i.length;for(t=0;t<s;++t)(n=r(e=i[t]))==1/0?delete this.queuedElements_[this.keyFunction_(e)]:(o[a]=n,i[a++]=e);i.length=a,o.length=a,this.heapify_()};var ge=function(e){function t(t,n){e.call(this,(function(e){return t.apply(null,e)}),(function(e){return e[0].getKey()})),this.tileChangeCallback_=n,this.tilesLoading_=0,this.tilesLoadingKeys_={}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.enqueue=function(t){var n=e.prototype.enqueue.call(this,t);if(n){var r=t[0];Object(c.a)(r,fe.a.CHANGE,this.handleTileChange,this)}return n},t.prototype.getTilesLoading=function(){return this.tilesLoading_},t.prototype.handleTileChange=function(e){var t=e.target,n=t.getState();if(n===de.a.LOADED||n===de.a.ERROR||n===de.a.EMPTY||n===de.a.ABORT){Object(c.c)(t,fe.a.CHANGE,this.handleTileChange,this);var r=t.getKey();r in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[r],--this.tilesLoading_),this.tileChangeCallback_()}},t.prototype.loadMoreTiles=function(e,t){for(var n,r,i,o=0,a=!1;this.tilesLoading_<e&&o<t&&this.getCount()>0;)i=(r=this.dequeue()[0]).getKey(),(n=r.getState())===de.a.ABORT?a=!0:n!==de.a.IDLE||i in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[i]=!0,++this.tilesLoading_,++o,r.load());0===o&&a&&this.tileChangeCallback_()},t}(me),ve=n(411),ye=n(29),be=n(34),_e=n(3),we=n(31),xe=n(296),ke=n(95),Ee="layers",Se=function(e){function t(t){var n=t||{},r=Object(he.a)({},n);delete r.layers;var o=n.layers;e.call(this,r),this.layersListenerKeys_=[],this.listenerKeys_={},Object(c.a)(this,Object(ue.b)(Ee),this.handleLayersChanged_,this),o?Array.isArray(o)?o=new i.a(o.slice(),{unique:!0}):Object(pe.a)("function"==typeof o.getArray,43):o=new i.a(void 0,{unique:!0}),this.setLayers(o)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.handleLayerChange_=function(){this.changed()},t.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(c.e),this.layersListenerKeys_.length=0;var e=this.getLayers();for(var t in this.layersListenerKeys_.push(Object(c.a)(e,o.a.ADD,this.handleLayersAdd_,this),Object(c.a)(e,o.a.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[t].forEach(c.e);Object(he.b)(this.listenerKeys_);for(var n=e.getArray(),i=0,a=n.length;i<a;i++){var s=n[i];this.listenerKeys_[Object(r.c)(s)]=[Object(c.a)(s,ce.a.PROPERTYCHANGE,this.handleLayerChange_,this),Object(c.a)(s,fe.a.CHANGE,this.handleLayerChange_,this)]}this.changed()},t.prototype.handleLayersAdd_=function(e){var t=e.element;this.listenerKeys_[Object(r.c)(t)]=[Object(c.a)(t,ce.a.PROPERTYCHANGE,this.handleLayerChange_,this),Object(c.a)(t,fe.a.CHANGE,this.handleLayerChange_,this)],this.changed()},t.prototype.handleLayersRemove_=function(e){var t=e.element,n=Object(r.c)(t);this.listenerKeys_[n].forEach(c.e),delete this.listenerKeys_[n],this.changed()},t.prototype.getLayers=function(){return this.get(Ee)},t.prototype.setLayers=function(e){this.set(Ee,e)},t.prototype.getLayersArray=function(e){var t=void 0!==e?e:[];return this.getLayers().forEach((function(e){e.getLayersArray(t)})),t},t.prototype.getLayerStatesArray=function(e){var t=void 0!==e?e:[],n=t.length;this.getLayers().forEach((function(e){e.getLayerStatesArray(t)}));for(var r=this.getLayerState(),i=n,o=t.length;i<o;i++){var a=t[i];a.opacity*=r.opacity,a.visible=a.visible&&r.visible,a.maxResolution=Math.min(a.maxResolution,r.maxResolution),a.minResolution=Math.max(a.minResolution,r.minResolution),void 0!==r.extent&&(void 0!==a.extent?a.extent=Object(_e.B)(a.extent,r.extent):a.extent=r.extent)}return t},t.prototype.getSourceState=function(){return ke.a.READY},t}(xe.a),Oe=n(91),Te=n(19);var Ce=function(e){function t(t){e.call(this);var n=function(e){var t=null;void 0!==e.keyboardEventTarget&&(t="string"==typeof e.keyboardEventTarget?document.getElementById(e.keyboardEventTarget):e.keyboardEventTarget);var n,r,o,a={},s=e.layers&&"function"==typeof e.layers.getLayers?e.layers:new Se({layers:e.layers});a[ie]=s,a[ae]=e.target,a[se]=void 0!==e.view?e.view:new ve.default,void 0!==e.controls&&(Array.isArray(e.controls)?n=new i.a(e.controls.slice()):(Object(pe.a)("function"==typeof e.controls.getArray,47),n=e.controls));void 0!==e.interactions&&(Array.isArray(e.interactions)?r=new i.a(e.interactions.slice()):(Object(pe.a)("function"==typeof e.interactions.getArray,48),r=e.interactions));void 0!==e.overlays?Array.isArray(e.overlays)?o=new i.a(e.overlays.slice()):(Object(pe.a)("function"==typeof e.overlays.getArray,49),o=e.overlays):o=new i.a;return{controls:n,interactions:r,keyboardEventTarget:t,overlays:o,values:a}}(t);this.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,this.loadTilesWhileAnimating_=void 0!==t.loadTilesWhileAnimating&&t.loadTilesWhileAnimating,this.loadTilesWhileInteracting_=void 0!==t.loadTilesWhileInteracting&&t.loadTilesWhileInteracting,this.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:s.b,this.animationDelayKey_,this.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_.call(this,Date.now())}.bind(this),this.coordinateToPixelTransform_=Object(Te.c)(),this.pixelToCoordinateTransform_=Object(Te.c)(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+(s.h?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.viewport_.style.msTouchAction="none",this.viewport_.style.touchAction="none",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent";for(var r=[fe.a.CLICK,fe.a.DBLCLICK,fe.a.MOUSEDOWN,fe.a.TOUCHSTART,fe.a.MSPOINTERDOWN,l.a.POINTERDOWN,fe.a.MOUSEWHEEL,fe.a.WHEEL],a=0,u=r.length;a<u;++a)Object(c.a)(this.overlayContainerStopEvent_,r[a],U.b);for(var d in this.viewport_.appendChild(this.overlayContainerStopEvent_),this.mapBrowserEventHandler_=new Z(this,t.moveTolerance),l.a)Object(c.a)(this.mapBrowserEventHandler_,l.a[d],this.handleMapBrowserEvent,this);this.keyboardEventTarget_=n.keyboardEventTarget,this.keyHandlerKeys_=null,Object(c.a)(this.viewport_,fe.a.CONTEXTMENU,this.handleBrowserEvent,this),Object(c.a)(this.viewport_,fe.a.WHEEL,this.handleBrowserEvent,this),Object(c.a)(this.viewport_,fe.a.MOUSEWHEEL,this.handleBrowserEvent,this),this.controls=n.controls||new i.a,this.interactions=n.interactions||new i.a,this.overlays_=n.overlays,this.overlayIdIndex_={},this.renderer_=this.createRenderer(),this.handleResize_,this.focus_=null,this.postRenderFunctions_=[],this.tileQueue_=new ge(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.skippedFeatureUids_={},Object(c.a)(this,Object(ue.b)(ie),this.handleLayerGroupChanged_,this),Object(c.a)(this,Object(ue.b)(se),this.handleViewChanged_,this),Object(c.a)(this,Object(ue.b)(oe),this.handleSizeChanged_,this),Object(c.a)(this,Object(ue.b)(ae),this.handleTargetChanged_,this),this.setProperties(n.values),this.controls.forEach(function(e){e.setMap(this)}.bind(this)),Object(c.a)(this.controls,o.a.ADD,(function(e){e.element.setMap(this)}),this),Object(c.a)(this.controls,o.a.REMOVE,(function(e){e.element.setMap(null)}),this),this.interactions.forEach(function(e){e.setMap(this)}.bind(this)),Object(c.a)(this.interactions,o.a.ADD,(function(e){e.element.setMap(this)}),this),Object(c.a)(this.interactions,o.a.REMOVE,(function(e){e.element.setMap(null)}),this),this.overlays_.forEach(this.addOverlayInternal_.bind(this)),Object(c.a)(this.overlays_,o.a.ADD,(function(e){this.addOverlayInternal_(e.element)}),this),Object(c.a)(this.overlays_,o.a.REMOVE,(function(e){var t=e.element.getId();void 0!==t&&delete this.overlayIdIndex_[t.toString()],e.element.setMap(null)}),this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},t.prototype.addControl=function(e){this.getControls().push(e)},t.prototype.addInteraction=function(e){this.getInteractions().push(e)},t.prototype.addLayer=function(e){this.getLayerGroup().getLayers().push(e)},t.prototype.addOverlay=function(e){this.getOverlays().push(e)},t.prototype.addOverlayInternal_=function(e){var t=e.getId();void 0!==t&&(this.overlayIdIndex_[t.toString()]=e),e.setMap(this)},t.prototype.disposeInternal=function(){this.mapBrowserEventHandler_.dispose(),Object(c.c)(this.viewport_,fe.a.CONTEXTMENU,this.handleBrowserEvent,this),Object(c.c)(this.viewport_,fe.a.WHEEL,this.handleBrowserEvent,this),Object(c.c)(this.viewport_,fe.a.MOUSEWHEEL,this.handleBrowserEvent,this),void 0!==this.handleResize_&&(removeEventListener(fe.a.RESIZE,this.handleResize_,!1),this.handleResize_=void 0),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0),this.setTarget(null),e.prototype.disposeInternal.call(this)},t.prototype.forEachFeatureAtPixel=function(e,t,n){if(this.frameState_){var r=this.getCoordinateFromPixel(e),i=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance*this.frameState_.pixelRatio:0,o=void 0!==n.layerFilter?n.layerFilter:we.b;return this.renderer_.forEachFeatureAtCoordinate(r,this.frameState_,i,t,null,o,null)}},t.prototype.getFeaturesAtPixel=function(e,t){var n=null;return this.forEachFeatureAtPixel(e,(function(e){n||(n=[]),n.push(e)}),t),n},t.prototype.forEachLayerAtPixel=function(e,t,n){if(this.frameState_){var r=n||{},i=void 0!==r.hitTolerance?n.hitTolerance*this.frameState_.pixelRatio:0,o=r.layerFilter||we.b;return this.renderer_.forEachLayerAtPixel(e,this.frameState_,i,t,null,o,null)}},t.prototype.hasFeatureAtPixel=function(e,t){if(!this.frameState_)return!1;var n=this.getCoordinateFromPixel(e),r=void 0!==(t=void 0!==t?t:{}).layerFilter?t.layerFilter:we.b,i=void 0!==t.hitTolerance?t.hitTolerance*this.frameState_.pixelRatio:0;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,i,r,null)},t.prototype.getEventCoordinate=function(e){return this.getCoordinateFromPixel(this.getEventPixel(e))},t.prototype.getEventPixel=function(e){var t=this.viewport_.getBoundingClientRect(),n="changedTouches"in e?e.changedTouches[0]:e;return[n.clientX-t.left,n.clientY-t.top]},t.prototype.getTarget=function(){return this.get(ae)},t.prototype.getTargetElement=function(){var e=this.getTarget();return void 0!==e?"string"==typeof e?document.getElementById(e):e:null},t.prototype.getCoordinateFromPixel=function(e){var t=this.frameState_;return t?Object(Te.a)(t.pixelToCoordinateTransform,e.slice()):null},t.prototype.getControls=function(){return this.controls},t.prototype.getOverlays=function(){return this.overlays_},t.prototype.getOverlayById=function(e){var t=this.overlayIdIndex_[e.toString()];return void 0!==t?t:null},t.prototype.getInteractions=function(){return this.interactions},t.prototype.getLayerGroup=function(){return this.get(ie)},t.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},t.prototype.getPixelFromCoordinate=function(e){var t=this.frameState_;return t?Object(Te.a)(t.coordinateToPixelTransform,e.slice(0,2)):null},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.getSize=function(){return this.get(oe)},t.prototype.getView=function(){return this.get(se)},t.prototype.getViewport=function(){return this.viewport_},t.prototype.getOverlayContainer=function(){return this.overlayContainer_},t.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},t.prototype.getTilePriority=function(e,t,n,r){var i=this.frameState_;if(!i||!(t in i.wantedTiles))return 1/0;if(!i.wantedTiles[t][e.getKey()])return 1/0;var o=n[0]-i.focus[0],a=n[1]-i.focus[1];return 65536*Math.log(r)+Math.sqrt(o*o+a*a)/r},t.prototype.handleBrowserEvent=function(e,t){var n=t||e.type,r=new a.a(n,this,e);this.handleMapBrowserEvent(r)},t.prototype.handleMapBrowserEvent=function(e){if(this.frameState_){this.focus_=e.coordinate,e.frameState=this.frameState_;var t=this.getInteractions().getArray();if(!1!==this.dispatchEvent(e))for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.getActive())if(!r.handleEvent(e))break}}},t.prototype.handlePostRender=function(){var e=this.frameState_,t=this.tileQueue_;if(!t.isEmpty()){var n=this.maxTilesLoading_,r=n;if(e){var i=e.viewHints;i[ye.a.ANIMATING]&&(n=this.loadTilesWhileAnimating_?8:0,r=2),i[ye.a.INTERACTING]&&(n=this.loadTilesWhileInteracting_?8:0,r=2)}t.getTilesLoading()<n&&(t.reprioritize(),t.loadMoreTiles(n,r))}!e||!this.hasListener(le.a.RENDERCOMPLETE)||e.animate||this.tileQueue_.getTilesLoading()||function e(t){for(var n=0,r=t.length;n<r;++n){var i=t[n];if("function"==typeof i.getLayers)return e(i.getLayers().getArray());var o=i.getSource();if(o&&o.loading)return!0}return!1}(this.getLayers().getArray())||this.renderer_.dispatchRenderEvent(le.a.RENDERCOMPLETE,e);for(var o=this.postRenderFunctions_,a=0,s=o.length;a<s;++a)o[a](this,e);o.length=0},t.prototype.handleSizeChanged_=function(){this.render()},t.prototype.handleTargetChanged_=function(){var e;if(this.getTarget()&&(e=this.getTargetElement()),this.keyHandlerKeys_){for(var t=0,n=this.keyHandlerKeys_.length;t<n;++t)Object(c.e)(this.keyHandlerKeys_[t]);this.keyHandlerKeys_=null}if(e){e.appendChild(this.viewport_);var r=this.keyboardEventTarget_?this.keyboardEventTarget_:e;this.keyHandlerKeys_=[Object(c.a)(r,fe.a.KEYDOWN,this.handleBrowserEvent,this),Object(c.a)(r,fe.a.KEYPRESS,this.handleBrowserEvent,this)],this.handleResize_||(this.handleResize_=this.updateSize.bind(this),window.addEventListener(fe.a.RESIZE,this.handleResize_,!1))}else this.renderer_.removeLayerRenderers(),Object(be.c)(this.viewport_),void 0!==this.handleResize_&&(removeEventListener(fe.a.RESIZE,this.handleResize_,!1),this.handleResize_=void 0);this.updateSize()},t.prototype.handleTileChange_=function(){this.render()},t.prototype.handleViewPropertyChanged_=function(){this.render()},t.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(Object(c.e)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Object(c.e)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var e=this.getView();e&&(this.viewport_.setAttribute("data-view",Object(r.c)(e)),this.viewPropertyListenerKey_=Object(c.a)(e,ce.a.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Object(c.a)(e,fe.a.CHANGE,this.handleViewPropertyChanged_,this)),this.render()},t.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(c.e),this.layerGroupPropertyListenerKeys_=null);var e=this.getLayerGroup();e&&(this.layerGroupPropertyListenerKeys_=[Object(c.a)(e,ce.a.PROPERTYCHANGE,this.render,this),Object(c.a)(e,fe.a.CHANGE,this.render,this)]),this.render()},t.prototype.isRendered=function(){return!!this.frameState_},t.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},t.prototype.render=function(){void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},t.prototype.removeControl=function(e){return this.getControls().remove(e)},t.prototype.removeInteraction=function(e){return this.getInteractions().remove(e)},t.prototype.removeLayer=function(e){return this.getLayerGroup().getLayers().remove(e)},t.prototype.removeOverlay=function(e){return this.getOverlays().remove(e)},t.prototype.renderFrame_=function(e){var t,n=this.getSize(),i=this.getView(),o=Object(_e.j)(),a=this.frameState_,s=null;if(void 0!==n&&Object(Oe.a)(n)&&i&&i.isDef()){for(var l=i.getHints(this.frameState_?this.frameState_.viewHints:void 0),u=this.getLayerGroup().getLayerStatesArray(),c={},d=0,f=u.length;d<f;++d)c[Object(r.c)(u[d].layer)]=u[d];t=i.getState(this.pixelRatio_),s={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,extent:o,focus:this.focus_?this.focus_:t.center,index:this.frameIndex_++,layerStates:c,layerStatesArray:u,pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:n,skippedFeatureUids:this.skippedFeatureUids_,tileQueue:this.tileQueue_,time:e,usedTiles:{},viewState:t,viewHints:l,wantedTiles:{}}}if(s&&(s.extent=Object(_e.z)(t.center,t.resolution,t.rotation,s.size,o)),this.frameState_=s,this.renderer_.renderFrame(s),s){if(s.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,s.postRenderFunctions),a)(!this.previousExtent_||!Object(_e.H)(this.previousExtent_)&&!Object(_e.p)(s.extent,this.previousExtent_))&&(this.dispatchEvent(new ee.a(ne,this,a)),this.previousExtent_=Object(_e.l)(this.previousExtent_));this.previousExtent_&&!s.viewHints[ye.a.ANIMATING]&&!s.viewHints[ye.a.INTERACTING]&&!Object(_e.p)(s.extent,this.previousExtent_)&&(this.dispatchEvent(new ee.a(re,this,s)),Object(_e.d)(s.extent,this.previousExtent_))}this.dispatchEvent(new ee.a(te,this,s)),setTimeout(this.handlePostRender.bind(this),0)},t.prototype.setLayerGroup=function(e){this.set(ie,e)},t.prototype.setSize=function(e){this.set(oe,e)},t.prototype.setTarget=function(e){this.set(ae,e)},t.prototype.setView=function(e){this.set(se,e)},t.prototype.skipFeature=function(e){this.skippedFeatureUids_[Object(r.c)(e)]=!0,this.render()},t.prototype.updateSize=function(){var e=this.getTargetElement();if(e){var t=getComputedStyle(e);this.setSize([e.offsetWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)-parseFloat(t.borderRightWidth),e.offsetHeight-parseFloat(t.borderTopWidth)-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)-parseFloat(t.borderBottomWidth)])}else this.setSize(void 0)},t.prototype.unskipFeature=function(e){delete this.skippedFeatureUids_[Object(r.c)(e)],this.render()},t}(ue.a);var Ae=function(e){function t(t){e.call(this),this.element=t.element?t.element:null,this.target_=null,this.map_=null,this.listenerKeys=[],this.render=t.render?t.render:we.c,t.target&&this.setTarget(t.target)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.disposeInternal=function(){Object(be.c)(this.element),e.prototype.disposeInternal.call(this)},t.prototype.getMap=function(){return this.map_},t.prototype.setMap=function(e){this.map_&&Object(be.c)(this.element);for(var t=0,n=this.listenerKeys.length;t<n;++t)Object(c.e)(this.listenerKeys[t]);(this.listenerKeys.length=0,this.map_=e,this.map_)&&((this.target_?this.target_:e.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==we.c&&this.listenerKeys.push(Object(c.a)(e,te,this.render,this)),e.render())},t.prototype.setTarget=function(e){this.target_="string"==typeof e?document.getElementById(e):e},t}(ue.a),Pe=n(58),Re=n(108);function Me(e){this.updateElement_(e.frameState)}var Ie=function(e){function t(t){var n=t||{};e.call(this,{element:document.createElement("div"),render:n.render||Me,target:n.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===n.collapsed||n.collapsed,this.overrideCollapsible_=void 0!==n.collapsible,this.collapsible_=void 0===n.collapsible||n.collapsible,this.collapsible_||(this.collapsed_=!1);var r=void 0!==n.className?n.className:"ol-attribution",i=void 0!==n.tipLabel?n.tipLabel:"Attributions",o=void 0!==n.collapseLabel?n.collapseLabel:"»";"string"==typeof o?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=o):this.collapseLabel_=o;var a=void 0!==n.label?n.label:"i";"string"==typeof a?(this.label_=document.createElement("span"),this.label_.textContent=a):this.label_=a;var s=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,l=document.createElement("button");l.setAttribute("type","button"),l.title=i,l.appendChild(s),Object(c.a)(l,fe.a.CLICK,this.handleClick_,this);var u=r+" "+Pe.d+" "+Pe.b+(this.collapsed_&&this.collapsible_?" "+Pe.a:"")+(this.collapsible_?"":" ol-uncollapsible"),d=this.element;d.className=u,d.appendChild(this.ulElement_),d.appendChild(l),this.renderedAttributions_=[],this.renderedVisible_=!0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.collectSourceAttributions_=function(e){for(var t={},n=[],r=e.layerStatesArray,i=e.viewState.resolution,o=0,a=r.length;o<a;++o){var s=r[o];if(Object(Re.b)(s,i)){var l=s.layer.getSource();if(l){var u=l.getAttributions();if(u){var c=u(e);if(c)if(this.overrideCollapsible_||!1!==l.getAttributionsCollapsible()||this.setCollapsible(!1),Array.isArray(c))for(var d=0,f=c.length;d<f;++d)c[d]in t||(n.push(c[d]),t[c[d]]=!0);else c in t||(n.push(c),t[c]=!0)}}}}return n},t.prototype.updateElement_=function(e){if(e){var t=this.collectSourceAttributions_(e),n=t.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!Object(V.b)(t,this.renderedAttributions_)){Object(be.b)(this.ulElement_);for(var r=0,i=t.length;r<i;++r){var o=document.createElement("li");o.innerHTML=t[r],this.ulElement_.appendChild(o)}this.renderedAttributions_=t}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},t.prototype.handleClick_=function(e){e.preventDefault(),this.handleToggle_()},t.prototype.handleToggle_=function(){this.element.classList.toggle(Pe.a),this.collapsed_?Object(be.d)(this.collapseLabel_,this.label_):Object(be.d)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_},t.prototype.getCollapsible=function(){return this.collapsible_},t.prototype.setCollapsible=function(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),!e&&this.collapsed_&&this.handleToggle_())},t.prototype.setCollapsed=function(e){this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()},t.prototype.getCollapsed=function(){return this.collapsed_},t}(Ae),je=n(54);function De(e){var t=e.frameState;if(t){var n=t.viewState.rotation;if(n!=this.rotation_){var r="rotate("+n+"rad)";if(this.autoHide_){var i=this.element.classList.contains(Pe.c);i||0!==n?i&&0!==n&&this.element.classList.remove(Pe.c):this.element.classList.add(Pe.c)}this.label_.style.msTransform=r,this.label_.style.webkitTransform=r,this.label_.style.transform=r}this.rotation_=n}}var Le=function(e){function t(t){var n=t||{};e.call(this,{element:document.createElement("div"),render:n.render||De,target:n.target});var r=void 0!==n.className?n.className:"ol-rotate",i=void 0!==n.label?n.label:"⇧";this.label_=null,"string"==typeof i?(this.label_=document.createElement("span"),this.label_.className="ol-compass",this.label_.textContent=i):(this.label_=i,this.label_.classList.add("ol-compass"));var o=n.tipLabel?n.tipLabel:"Reset rotation",a=document.createElement("button");a.className=r+"-reset",a.setAttribute("type","button"),a.title=o,a.appendChild(this.label_),Object(c.a)(a,fe.a.CLICK,this.handleClick_,this);var s=r+" "+Pe.d+" "+Pe.b,l=this.element;l.className=s,l.appendChild(a),this.callResetNorth_=n.resetNorth?n.resetNorth:void 0,this.duration_=void 0!==n.duration?n.duration:250,this.autoHide_=void 0===n.autoHide||n.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(Pe.c)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.handleClick_=function(e){e.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},t.prototype.resetNorth_=function(){var e=this.getMap().getView();e&&void 0!==e.getRotation()&&(this.duration_>0?e.animate({rotation:0,duration:this.duration_,easing:je.b}):e.setRotation(0))},t}(Ae),Ne=function(e){function t(t){var n=t||{};e.call(this,{element:document.createElement("div"),target:n.target});var r=void 0!==n.className?n.className:"ol-zoom",i=void 0!==n.delta?n.delta:1,o=void 0!==n.zoomInLabel?n.zoomInLabel:"+",a=void 0!==n.zoomOutLabel?n.zoomOutLabel:"−",s=void 0!==n.zoomInTipLabel?n.zoomInTipLabel:"Zoom in",l=void 0!==n.zoomOutTipLabel?n.zoomOutTipLabel:"Zoom out",u=document.createElement("button");u.className=r+"-in",u.setAttribute("type","button"),u.title=s,u.appendChild("string"==typeof o?document.createTextNode(o):o),Object(c.a)(u,fe.a.CLICK,this.handleClick_.bind(this,i));var d=document.createElement("button");d.className=r+"-out",d.setAttribute("type","button"),d.title=l,d.appendChild("string"==typeof a?document.createTextNode(a):a),Object(c.a)(d,fe.a.CLICK,this.handleClick_.bind(this,-i));var f=r+" "+Pe.d+" "+Pe.b,p=this.element;p.className=f,p.appendChild(u),p.appendChild(d),this.duration_=void 0!==n.duration?n.duration:250}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.handleClick_=function(e,t){t.preventDefault(),this.zoomByDelta_(e)},t.prototype.zoomByDelta_=function(e){var t=this.getMap().getView();if(t){var n=t.getResolution();if(n){var r=t.constrainResolution(n,e);this.duration_>0?(t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:r,duration:this.duration_,easing:je.b})):t.setResolution(r)}}},t}(Ae);var Fe=function(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0};Fe.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},Fe.prototype.update=function(e,t){this.points_.push(e,t,Date.now())},Fe.prototype.end=function(){if(this.points_.length<6)return!1;var e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]<e)return!1;for(var n=t-3;n>0&&this.points_[n+2]>e;)n-=3;var r=this.points_[t+2]-this.points_[n+2];if(r<1e3/60)return!1;var i=this.points_[t]-this.points_[n],o=this.points_[t+1]-this.points_[n+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/r,this.initialVelocity_>this.minVelocity_},Fe.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},Fe.prototype.getAngle=function(){return this.angle_};var Be=Fe,ze=n(47);function Ue(e){var t=!1;if(e.type==l.a.DBLCLICK){var n=e.originalEvent,r=e.map,i=e.coordinate,o=n.shiftKey?-this.delta_:this.delta_,a=r.getView();Object(ze.f)(a,o,i,this.duration_),e.preventDefault(),t=!0}return!t}var qe=function(e){function t(t){e.call(this,{handleEvent:Ue});var n=t||{};this.delta_=n.delta?n.delta:1,this.duration_=void 0!==n.duration?n.duration:250}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(ze.a),He=n(79),We=n(36),Ve=n(68),$e=function(e){function t(t){e.call(this,{stopDown:we.a});var n=t||{};this.kinetic_=n.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1,this.condition_=n.condition?n.condition:We.f,this.noKinetic_=!1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.handleDragEvent=function(e){this.panning_||(this.panning_=!0,this.getMap().getView().setHint(ye.a.INTERACTING,1));var t=this.targetPointers,n=Object(Ve.a)(t);if(t.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var r=this.lastCentroid[0]-n[0],i=n[1]-this.lastCentroid[1],o=e.map.getView(),a=[r,i];Object(He.d)(a,o.getResolution()),Object(He.c)(a,o.getRotation()),Object(He.a)(a,o.getCenter()),a=o.constrainCenter(a),o.setCenter(a)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=t.length},t.prototype.handleUpEvent=function(e){var t=e.map,n=t.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var r=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),o=n.getCenter(),a=t.getPixelFromCoordinate(o),s=t.getCoordinateFromPixel([a[0]-r*Math.cos(i),a[1]-r*Math.sin(i)]);n.animate({center:n.constrainCenter(s),duration:500,easing:je.b})}return this.panning_&&(this.panning_=!1,n.setHint(ye.a.INTERACTING,-1)),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>0&&this.condition_(e)){var t=e.map.getView();return this.lastCentroid=null,t.getAnimating()&&t.setCenter(e.frameState.viewState.center),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},t}(Ve.b),Ge=n(115),Ke=function(e){function t(t){var n=t||{};e.call(this,{stopDown:we.a}),this.condition_=n.condition?n.condition:We.a,this.lastAngle_=void 0,this.duration_=void 0!==n.duration?n.duration:250}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.handleDragEvent=function(e){if(Object(We.e)(e)){var t=e.map,n=t.getView();if(n.getConstraints().rotation!==Ge.c){var r=t.getSize(),i=e.pixel,o=Math.atan2(r[1]/2-i[1],i[0]-r[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_,s=n.getRotation();Object(ze.d)(n,s-a)}this.lastAngle_=o}}},t.prototype.handleUpEvent=function(e){if(!Object(We.e)(e))return!0;var t=e.map.getView();t.setHint(ye.a.INTERACTING,-1);var n=t.getRotation();return Object(ze.c)(t,n,void 0,this.duration_),!1},t.prototype.handleDownEvent=function(e){return!!Object(We.e)(e)&&(!(!Object(We.d)(e)||!this.condition_(e))&&(e.map.getView().setHint(ye.a.INTERACTING,1),this.lastAngle_=void 0,!0))},t}(Ve.b),Ye=n(201),Qe=n(80),Xe=function(e){function t(t){e.call(this),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.disposeInternal=function(){this.setMap(null)},t.prototype.render_=function(){var e=this.startPixel_,t=this.endPixel_,n=this.element_.style;n.left=Math.min(e[0],t[0])+"px",n.top=Math.min(e[1],t[1])+"px",n.width=Math.abs(t[0]-e[0])+"px",n.height=Math.abs(t[1]-e[1])+"px"},t.prototype.setMap=function(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var t=this.element_.style;t.left=t.top=t.width=t.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},t.prototype.setPixels=function(e,t){this.startPixel_=e,this.endPixel_=t,this.createOrUpdateGeometry(),this.render_()},t.prototype.createOrUpdateGeometry=function(){var e=this.startPixel_,t=this.endPixel_,n=[e,[e[0],t[1]],t,[t[0],e[1]]].map(this.map_.getCoordinateFromPixel,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new Qe.a([n])},t.prototype.getGeometry=function(){return this.geometry_},t}(Ye.a),Je="boxstart",Ze="boxdrag",et="boxend",tt=function(e){function t(t,n,r){e.call(this,t),this.coordinate=n,this.mapBrowserEvent=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(U.a);function nt(){var e=this.getMap(),t=e.getView(),n=e.getSize(),r=this.getGeometry().getExtent();if(this.out_){var i=t.calculateExtent(n),o=Object(_e.n)([e.getPixelFromCoordinate(Object(_e.v)(r)),e.getPixelFromCoordinate(Object(_e.D)(r))]),a=t.getResolutionForExtent(o,n);Object(_e.J)(i,1/a),r=i}var s=t.constrainResolution(t.getResolutionForExtent(r,n)),l=Object(_e.x)(r);l=t.constrainCenter(l),t.animate({resolution:s,center:l,duration:this.duration_,easing:je.b})}var rt=function(e){function t(t){var n=t||{},r=n.condition?n.condition:We.g;e.call(this,{condition:r,className:n.className||"ol-dragzoom",onBoxEnd:nt}),this.duration_=void 0!==n.duration?n.duration:200,this.out_=void 0!==n.out&&n.out}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(function(e){function t(t){e.call(this);var n=t||{};this.box_=new Xe(n.className||"ol-dragbox"),this.minArea_=void 0!==n.minArea?n.minArea:64,this.onBoxEnd_=n.onBoxEnd?n.onBoxEnd:we.c,this.startPixel_=null,this.condition_=n.condition?n.condition:We.b,this.boxEndCondition_=n.boxEndCondition?n.boxEndCondition:this.defaultBoxEndCondition}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.defaultBoxEndCondition=function(e,t,n){var r=n[0]-t[0],i=n[1]-t[1];return r*r+i*i>=this.minArea_},t.prototype.getGeometry=function(){return this.box_.getGeometry()},t.prototype.handleDragEvent=function(e){Object(We.e)(e)&&(this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new tt(Ze,e.coordinate,e)))},t.prototype.handleUpEvent=function(e){return!Object(We.e)(e)||(this.box_.setMap(null),this.boxEndCondition_(e,this.startPixel_,e.pixel)&&(this.onBoxEnd_(e),this.dispatchEvent(new tt(et,e.coordinate,e))),!1)},t.prototype.handleDownEvent=function(e){return!!Object(We.e)(e)&&(!(!Object(We.d)(e)||!this.condition_(e))&&(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new tt(Je,e.coordinate,e)),!0))},t}(Ve.b)),it=37,ot=38,at=39,st=40;function lt(e){var t=!1;if(e.type==fe.a.KEYDOWN){var n=e.originalEvent.keyCode;if(this.condition_(e)&&(n==st||n==it||n==at||n==ot)){var r=e.map.getView(),i=r.getResolution()*this.pixelDelta_,o=0,a=0;n==st?a=-i:n==it?o=-i:n==at?o=i:a=i;var s=[o,a];Object(He.c)(s,r.getRotation()),Object(ze.b)(r,s,this.duration_),e.preventDefault(),t=!0}}return!t}var ut=function(e){function t(t){e.call(this,{handleEvent:lt});var n=t||{};this.defaultCondition_=function(e){return Object(We.f)(e)&&Object(We.h)(e)},this.condition_=void 0!==n.condition?n.condition:this.defaultCondition_,this.duration_=void 0!==n.duration?n.duration:100,this.pixelDelta_=void 0!==n.pixelDelta?n.pixelDelta:128}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(ze.a);function ct(e){var t=!1;if(e.type==fe.a.KEYDOWN||e.type==fe.a.KEYPRESS){var n=e.originalEvent.charCode;if(this.condition_(e)&&(n=="+".charCodeAt(0)||n=="-".charCodeAt(0))){var r=e.map,i=n=="+".charCodeAt(0)?this.delta_:-this.delta_,o=r.getView();Object(ze.f)(o,i,void 0,this.duration_),e.preventDefault(),t=!0}}return!t}var dt=function(e){function t(t){e.call(this,{handleEvent:ct});var n=t||{};this.condition_=n.condition?n.condition:We.h,this.delta_=n.delta?n.delta:1,this.duration_=void 0!==n.duration?n.duration:100}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(ze.a),ft=n(15),pt="trackpad",ht="wheel",mt=function(e){function t(t){var n=t||{};e.call(this,n),this.delta_=0,this.duration_=void 0!==n.duration?n.duration:250,this.timeout_=void 0!==n.timeout?n.timeout:80,this.useAnchor_=void 0===n.useAnchor||n.useAnchor,this.constrainResolution_=n.constrainResolution||!1,this.condition_=n.condition?n.condition:We.b,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.trackpadDeltaPerZoom_=300,this.trackpadZoomBuffer_=1.5}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.decrementInteractingHint_=function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().setHint(ye.a.INTERACTING,-1)},t.prototype.handleEvent=function(e){if(!this.condition_(e))return!0;var t=e.type;if(t!==fe.a.WHEEL&&t!==fe.a.MOUSEWHEEL)return!0;e.preventDefault();var n,r=e.map,i=e.originalEvent;if(this.useAnchor_&&(this.lastAnchor_=e.coordinate),e.type==fe.a.WHEEL?(n=i.deltaY,s.c&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(n/=s.b),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(n*=40)):e.type==fe.a.MOUSEWHEEL&&(n=-i.wheelDeltaY,s.g&&(n/=3)),0===n)return!1;var o=Date.now();if(void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(n)<4?pt:ht),this.mode_===pt){var a=r.getView();this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):a.setHint(ye.a.INTERACTING,1),this.trackpadTimeoutId_=setTimeout(this.decrementInteractingHint_.bind(this),this.trackpadEventGap_);var l=a.getResolution()*Math.pow(2,n/this.trackpadDeltaPerZoom_),u=a.getMinResolution(),c=a.getMaxResolution(),d=0;if(l<u?(l=Math.max(l,u/this.trackpadZoomBuffer_),d=1):l>c&&(l=Math.min(l,c*this.trackpadZoomBuffer_),d=-1),this.lastAnchor_){var f=a.calculateCenterZoom(l,this.lastAnchor_);a.setCenter(a.constrainCenter(f))}return a.setResolution(l),0===d&&this.constrainResolution_&&a.animate({resolution:a.constrainResolution(l,n>0?-1:1),easing:je.b,anchor:this.lastAnchor_,duration:this.duration_}),d>0?a.animate({resolution:u,easing:je.b,anchor:this.lastAnchor_,duration:500}):d<0&&a.animate({resolution:c,easing:je.b,anchor:this.lastAnchor_,duration:500}),this.startTime_=o,!1}this.delta_+=n;var p=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,r),p),!1},t.prototype.handleWheelZoom_=function(e){var t=e.getView();t.getAnimating()&&t.cancelAnimations();var n=Object(ft.a)(this.delta_,-1,1);Object(ze.f)(t,-n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.delta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},t.prototype.setMouseAnchor=function(e){this.useAnchor_=e,e||(this.lastAnchor_=null)},t}(ze.a),gt=function(e){function t(t){var n=t||{},r=n;r.stopDown||(r.stopDown=we.a),e.call(this,r),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==n.threshold?n.threshold:.3,this.duration_=void 0!==n.duration?n.duration:250}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.handleDragEvent=function(e){var t=0,n=this.targetPointers[0],r=this.targetPointers[1],i=Math.atan2(r.clientY-n.clientY,r.clientX-n.clientX);if(void 0!==this.lastAngle_){var o=i-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),t=o}this.lastAngle_=i;var a=e.map,s=a.getView();if(s.getConstraints().rotation!==Ge.c){var l=a.getViewport().getBoundingClientRect(),u=Object(Ve.a)(this.targetPointers);if(u[0]-=l.left,u[1]-=l.top,this.anchor_=a.getCoordinateFromPixel(u),this.rotating_){var c=s.getRotation();a.render(),Object(ze.d)(s,c+t,this.anchor_)}}},t.prototype.handleUpEvent=function(e){if(this.targetPointers.length<2){var t=e.map.getView();if(t.setHint(ye.a.INTERACTING,-1),this.rotating_){var n=t.getRotation();Object(ze.c)(t,n,this.anchor_,this.duration_)}return!1}return!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>=2){var t=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||t.getView().setHint(ye.a.INTERACTING,1),!0}return!1},t}(Ve.b),vt=function(e){function t(t){var n=t||{},r=n;r.stopDown||(r.stopDown=we.a),e.call(this,r),this.constrainResolution_=n.constrainResolution||!1,this.anchor_=null,this.duration_=void 0!==n.duration?n.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.handleDragEvent=function(e){var t=1,n=this.targetPointers[0],r=this.targetPointers[1],i=n.clientX-r.clientX,o=n.clientY-r.clientY,a=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(t=this.lastDistance_/a),this.lastDistance_=a;var s=e.map,l=s.getView(),u=l.getResolution(),c=l.getMaxResolution(),d=l.getMinResolution(),f=u*t;f>c?(t=c/u,f=c):f<d&&(t=d/u,f=d),1!=t&&(this.lastScaleDelta_=t);var p=s.getViewport().getBoundingClientRect(),h=Object(Ve.a)(this.targetPointers);h[0]-=p.left,h[1]-=p.top,this.anchor_=s.getCoordinateFromPixel(h),s.render(),Object(ze.g)(l,f,this.anchor_)},t.prototype.handleUpEvent=function(e){if(this.targetPointers.length<2){var t=e.map.getView();t.setHint(ye.a.INTERACTING,-1);var n=t.getResolution();if(this.constrainResolution_||n<t.getMinResolution()||n>t.getMaxResolution()){var r=this.lastScaleDelta_-1;Object(ze.e)(t,n,this.anchor_,this.duration_,r)}return!1}return!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>=2){var t=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||t.getView().setHint(ye.a.INTERACTING,1),!0}return!1},t}(Ve.b);var yt=n(88),bt=function(e){function t(t,n,r,i){e.call(this),this.extent=t,this.pixelRatio_=r,this.resolution=n,this.state=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.changed=function(){this.dispatchEvent(fe.a.CHANGE)},t.prototype.getExtent=function(){return this.extent},t.prototype.getImage=function(){return Object(r.b)()},t.prototype.getPixelRatio=function(){return this.pixelRatio_},t.prototype.getResolution=function(){return this.resolution},t.prototype.getState=function(){return this.state},t.prototype.load=function(){Object(r.b)()},t}(d.a),_t=n(52),wt=function(e){function t(t,n,r,i,o){var a=void 0!==o?_t.a.IDLE:_t.a.LOADED;e.call(this,t,n,r,a),this.loader_=void 0!==o?o:null,this.canvas_=i,this.error_=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getError=function(){return this.error_},t.prototype.handleLoad_=function(e){e?(this.error_=e,this.state=_t.a.ERROR):this.state=_t.a.LOADED,this.changed()},t.prototype.load=function(){this.state==_t.a.IDLE&&(this.state=_t.a.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))},t.prototype.getImage=function(){return this.canvas_},t}(bt),xt=n(85),kt=n(301),Et=function(e){function t(t,n,r,i,o){e.call(this,t),this.vectorContext=n,this.frameState=r,this.context=i,this.glContext=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(U.a),St=n(12),Ot=n(87),Tt=n(10),Ct=n(62),At=n(78),Pt=function(){};Pt.prototype.drawCustom=function(e,t,n){},Pt.prototype.drawGeometry=function(e){},Pt.prototype.setStyle=function(e){},Pt.prototype.drawCircle=function(e,t){},Pt.prototype.drawFeature=function(e,t){},Pt.prototype.drawGeometryCollection=function(e,t){},Pt.prototype.drawLineString=function(e,t){},Pt.prototype.drawMultiLineString=function(e,t){},Pt.prototype.drawMultiPoint=function(e,t){},Pt.prototype.drawMultiPolygon=function(e,t){},Pt.prototype.drawPoint=function(e,t){},Pt.prototype.drawPolygon=function(e,t){},Pt.prototype.drawText=function(e,t){},Pt.prototype.setFillStrokeStyle=function(e,t){},Pt.prototype.setImageStyle=function(e,t){},Pt.prototype.setTextStyle=function(e,t){};var Rt=Pt,Mt=function(e){function t(t,n,r,i,o){e.call(this),this.context_=t,this.pixelRatio_=n,this.extent_=r,this.transform_=i,this.viewRotation_=o,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=0,this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=0,this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=Object(Te.c)()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.drawImages_=function(e,t,n,r){if(this.image_){var i=Object(At.c)(e,t,n,2,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.tmpLocalTransform_,s=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=s*this.imageOpacity_);var l=this.imageRotation_;this.imageRotateWithView_&&(l+=this.viewRotation_);for(var u=0,c=i.length;u<c;u+=2){var d=i[u]-this.imageAnchorX_,f=i[u+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_){var p=d+this.imageAnchorX_,h=f+this.imageAnchorY_;Object(Te.b)(a,p,h,this.imageScale_,this.imageScale_,l,-p,-h),o.setTransform.apply(o,a)}o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,d,f,this.imageWidth_,this.imageHeight_)}0===l&&1==this.imageScale_||o.setTransform(1,0,0,1,0,0),1!=this.imageOpacity_&&(o.globalAlpha=s)}},t.prototype.drawText_=function(e,t,n,r){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var i=Object(At.c)(e,t,n,r,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.textRotation_;for(this.textRotateWithView_&&(a+=this.viewRotation_);t<n;t+=r){var s=i[t]+this.textOffsetX_,l=i[t+1]+this.textOffsetY_;if(0!==a||1!=this.textScale_){var u=Object(Te.b)(this.tmpLocalTransform_,s,l,this.textScale_,this.textScale_,a,-s,-l);o.setTransform.apply(o,u)}this.textStrokeState_&&o.strokeText(this.text_,s,l),this.textFillState_&&o.fillText(this.text_,s,l)}0===a&&1==this.textScale_||o.setTransform(1,0,0,1,0,0)}},t.prototype.moveToLineTo_=function(e,t,n,r,i){var o=this.context_,a=Object(At.c)(e,t,n,r,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;i&&(s-=2);for(var l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return i&&o.closePath(),n},t.prototype.drawRings_=function(e,t,n,r){for(var i=0,o=n.length;i<o;++i)t=this.moveToLineTo_(e,t,n[i],r,!0);return t},t.prototype.drawCircle=function(e){if(Object(_e.F)(this.extent_,e.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=Object(Ct.b)(e,this.transform_,this.pixelCoordinates_),n=t[2]-t[0],r=t[3]-t[1],i=Math.sqrt(n*n+r*r),o=this.context_;o.beginPath(),o.arc(t[0],t[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(e.getCenter(),0,2,2)}},t.prototype.setStyle=function(e){this.setFillStrokeStyle(e.getFill(),e.getStroke()),this.setImageStyle(e.getImage()),this.setTextStyle(e.getText())},t.prototype.drawGeometry=function(e){switch(e.getType()){case Tt.a.POINT:this.drawPoint(e);break;case Tt.a.LINE_STRING:this.drawLineString(e);break;case Tt.a.POLYGON:this.drawPolygon(e);break;case Tt.a.MULTI_POINT:this.drawMultiPoint(e);break;case Tt.a.MULTI_LINE_STRING:this.drawMultiLineString(e);break;case Tt.a.MULTI_POLYGON:this.drawMultiPolygon(e);break;case Tt.a.GEOMETRY_COLLECTION:this.drawGeometryCollection(e);break;case Tt.a.CIRCLE:this.drawCircle(e)}},t.prototype.drawFeature=function(e,t){var n=t.getGeometryFunction()(e);n&&Object(_e.F)(this.extent_,n.getExtent())&&(this.setStyle(t),this.drawGeometry(n))},t.prototype.drawGeometryCollection=function(e){for(var t=e.getGeometriesArray(),n=0,r=t.length;n<r;++n)this.drawGeometry(t[n])},t.prototype.drawPoint=function(e){var t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)},t.prototype.drawMultiPoint=function(e){var t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)},t.prototype.drawLineString=function(e){if(Object(_e.F)(this.extent_,e.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var t=this.context_,n=e.getFlatCoordinates();t.beginPath(),this.moveToLineTo_(n,0,n.length,e.getStride(),!1),t.stroke()}if(""!==this.text_){var r=e.getFlatMidpoint();this.drawText_(r,0,2,2)}}},t.prototype.drawMultiLineString=function(e){var t=e.getExtent();if(Object(_e.F)(this.extent_,t)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var n=this.context_,r=e.getFlatCoordinates(),i=0,o=e.getEnds(),a=e.getStride();n.beginPath();for(var s=0,l=o.length;s<l;++s)i=this.moveToLineTo_(r,i,o[s],a,!1);n.stroke()}if(""!==this.text_){var u=e.getFlatMidpoints();this.drawText_(u,0,u.length,2)}}},t.prototype.drawPolygon=function(e){if(Object(_e.F)(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=this.context_;t.beginPath(),this.drawRings_(e.getOrientedFlatCoordinates(),0,e.getEnds(),e.getStride()),this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){var n=e.getFlatInteriorPoint();this.drawText_(n,0,2,2)}}},t.prototype.drawMultiPolygon=function(e){if(Object(_e.F)(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=this.context_,n=e.getOrientedFlatCoordinates(),r=0,i=e.getEndss(),o=e.getStride();t.beginPath();for(var a=0,s=i.length;a<s;++a){var l=i[a];r=this.drawRings_(n,r,l,o)}this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){var u=e.getFlatInteriorPoints();this.drawText_(u,0,u.length,2)}}},t.prototype.setContextFillState_=function(e){var t=this.context_,n=this.contextFillState_;n?n.fillStyle!=e.fillStyle&&(n.fillStyle=t.fillStyle=e.fillStyle):(t.fillStyle=e.fillStyle,this.contextFillState_={fillStyle:e.fillStyle})},t.prototype.setContextStrokeState_=function(e){var t=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=e.lineCap&&(n.lineCap=t.lineCap=e.lineCap),s.a&&(Object(V.b)(n.lineDash,e.lineDash)||t.setLineDash(n.lineDash=e.lineDash),n.lineDashOffset!=e.lineDashOffset&&(n.lineDashOffset=t.lineDashOffset=e.lineDashOffset)),n.lineJoin!=e.lineJoin&&(n.lineJoin=t.lineJoin=e.lineJoin),n.lineWidth!=e.lineWidth&&(n.lineWidth=t.lineWidth=e.lineWidth),n.miterLimit!=e.miterLimit&&(n.miterLimit=t.miterLimit=e.miterLimit),n.strokeStyle!=e.strokeStyle&&(n.strokeStyle=t.strokeStyle=e.strokeStyle)):(t.lineCap=e.lineCap,s.a&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.lineWidth=e.lineWidth,t.miterLimit=e.miterLimit,t.strokeStyle=e.strokeStyle,this.contextStrokeState_={lineCap:e.lineCap,lineDash:e.lineDash,lineDashOffset:e.lineDashOffset,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})},t.prototype.setContextTextState_=function(e){var t=this.context_,n=this.contextTextState_,r=e.textAlign?e.textAlign:St.l;n?(n.font!=e.font&&(n.font=t.font=e.font),n.textAlign!=r&&(n.textAlign=t.textAlign=r),n.textBaseline!=e.textBaseline&&(n.textBaseline=t.textBaseline=e.textBaseline)):(t.font=e.font,t.textAlign=r,t.textBaseline=e.textBaseline,this.contextTextState_={font:e.font,textAlign:r,textBaseline:e.textBaseline})},t.prototype.setFillStrokeStyle=function(e,t){if(e){var n=e.getColor();this.fillState_={fillStyle:Object(Ot.a)(n||St.b)}}else this.fillState_=null;if(t){var r=t.getColor(),i=t.getLineCap(),o=t.getLineDash(),a=t.getLineDashOffset(),s=t.getLineJoin(),l=t.getWidth(),u=t.getMiterLimit();this.strokeState_={lineCap:void 0!==i?i:St.d,lineDash:o||St.e,lineDashOffset:a||St.f,lineJoin:void 0!==s?s:St.g,lineWidth:this.pixelRatio_*(void 0!==l?l:St.h),miterLimit:void 0!==u?u:St.i,strokeStyle:Object(Ot.a)(r||St.k)}}else this.strokeState_=null},t.prototype.setImageStyle=function(e){if(e){var t=e.getAnchor(),n=e.getImage(1),r=e.getOrigin(),i=e.getSize();this.imageAnchorX_=t[0],this.imageAnchorY_=t[1],this.imageHeight_=i[1],this.image_=n,this.imageOpacity_=e.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=e.getRotateWithView(),this.imageRotation_=e.getRotation(),this.imageScale_=e.getScale()*this.pixelRatio_,this.imageWidth_=i[0]}else this.image_=null},t.prototype.setTextStyle=function(e){if(e){var t=e.getFill();if(t){var n=t.getColor();this.textFillState_={fillStyle:Object(Ot.a)(n||St.b)}}else this.textFillState_=null;var r=e.getStroke();if(r){var i=r.getColor(),o=r.getLineCap(),a=r.getLineDash(),s=r.getLineDashOffset(),l=r.getLineJoin(),u=r.getWidth(),c=r.getMiterLimit();this.textStrokeState_={lineCap:void 0!==o?o:St.d,lineDash:a||St.e,lineDashOffset:s||St.f,lineJoin:void 0!==l?l:St.g,lineWidth:void 0!==u?u:St.h,miterLimit:void 0!==c?c:St.i,strokeStyle:Object(Ot.a)(i||St.k)}}else this.textStrokeState_=null;var d=e.getFont(),f=e.getOffsetX(),p=e.getOffsetY(),h=e.getRotateWithView(),m=e.getRotation(),g=e.getScale(),v=e.getText(),y=e.getTextAlign(),b=e.getTextBaseline();this.textState_={font:void 0!==d?d:St.c,textAlign:void 0!==y?y:St.l,textBaseline:void 0!==b?b:St.m},this.text_=void 0!==v?v:"",this.textOffsetX_=void 0!==f?this.pixelRatio_*f:0,this.textOffsetY_=void 0!==p?this.pixelRatio_*p:0,this.textRotateWithView_=void 0!==h&&h,this.textRotation_=void 0!==m?m:0,this.textScale_=this.pixelRatio_*(void 0!==g?g:1)}else this.text_=""},t}(Rt),It=n(97),jt=function(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32};function Dt(e,t,n){return t+":"+e+":"+(n?Object(It.a)(n):"null")}jt.prototype.clear=function(){this.cache_={},this.cacheSize_=0},jt.prototype.expire=function(){if(this.cacheSize_>this.maxCacheSize_){var e=0;for(var t in this.cache_){var n=this.cache_[t];0!=(3&e++)||n.hasListener()||(delete this.cache_[t],--this.cacheSize_)}}},jt.prototype.get=function(e,t,n){var r=Dt(e,t,n);return r in this.cache_?this.cache_[r]:null},jt.prototype.set=function(e,t,n,r){var i=Dt(e,t,n);this.cache_[i]=r,++this.cacheSize_},jt.prototype.setSize=function(e){this.maxCacheSize_=e,this.expire()};var Lt=new jt,Nt=function(e){function t(t){e.call(this),this.map_=t,this.layerRenderers_={},this.layerRendererListeners_={},this.layerRendererConstructors_=[]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.dispatchRenderEvent=function(e,t){Object(r.b)()},t.prototype.registerLayerRenderers=function(e){this.layerRendererConstructors_.push.apply(this.layerRendererConstructors_,e)},t.prototype.calculateMatrices2D=function(e){var t=e.viewState,n=e.coordinateToPixelTransform,r=e.pixelToCoordinateTransform;Object(Te.b)(n,e.size[0]/2,e.size[1]/2,1/t.resolution,-1/t.resolution,-t.rotation,-t.center[0],-t.center[1]),Object(Te.d)(Object(Te.g)(r,n))},t.prototype.removeLayerRenderers=function(){for(var e in this.layerRenderers_)this.removeLayerRendererByKey_(e).dispose()},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,i,o,a,s){var l,u=t.viewState,c=u.resolution;function d(e,n){var a=t.layerStates[Object(r.c)(n)].managed;if(!(Object(r.c)(e)in t.skippedFeatureUids)||a)return i.call(o,e,a?n:null)}var f=u.projection,p=e;if(f.canWrapX()){var h=f.getExtent(),m=Object(_e.E)(h),g=e[0];if(g<h[0]||g>h[2])p=[g+m*Math.ceil((h[0]-g)/m),e[1]]}var v,y=t.layerStatesArray;for(v=y.length-1;v>=0;--v){var b=y[v],_=b.layer;if(Object(Re.b)(b,c)&&a.call(s,_)){var w=this.getLayerRenderer(_),x=_.getSource();if(x&&(l=w.forEachFeatureAtCoordinate(x.getWrapX()?p:e,t,n,d)),l)return l}}},t.prototype.forEachLayerAtPixel=function(e,t,n,i,o,a,s){return Object(r.b)()},t.prototype.hasFeatureAtCoordinate=function(e,t,n,r,i){return void 0!==this.forEachFeatureAtCoordinate(e,t,n,we.b,this,r,i)},t.prototype.getLayerRenderer=function(e){var t=Object(r.c)(e);if(t in this.layerRenderers_)return this.layerRenderers_[t];for(var n,i=0,o=this.layerRendererConstructors_.length;i<o;++i){var a=this.layerRendererConstructors_[i];if(a.handles(e)){n=a.create(this,e);break}}if(!n)throw new Error("Unable to create renderer for layer: "+e.getType());return this.layerRenderers_[t]=n,this.layerRendererListeners_[t]=Object(c.a)(n,fe.a.CHANGE,this.handleLayerRendererChange_,this),n},t.prototype.getLayerRendererByKey=function(e){return this.layerRenderers_[e]},t.prototype.getLayerRenderers=function(){return this.layerRenderers_},t.prototype.getMap=function(){return this.map_},t.prototype.handleLayerRendererChange_=function(){this.map_.render()},t.prototype.removeLayerRendererByKey_=function(e){var t=this.layerRenderers_[e];return delete this.layerRenderers_[e],Object(c.e)(this.layerRendererListeners_[e]),delete this.layerRendererListeners_[e],t},t.prototype.removeUnusedLayerRenderers_=function(e,t){for(var n in this.layerRenderers_)t&&n in t.layerStates||this.removeLayerRendererByKey_(n).dispose()},t.prototype.renderFrame=function(e){Object(r.b)()},t.prototype.scheduleExpireIconCache=function(e){e.postRenderFunctions.push(Ft)},t.prototype.scheduleRemoveUnusedLayerRenderers=function(e){for(var t in this.layerRenderers_)if(!(t in e.layerStates))return void e.postRenderFunctions.push(this.removeUnusedLayerRenderers_.bind(this))},t}(Ye.a);function Ft(e,t){Lt.expire()}function Bt(e,t){return e.zIndex-t.zIndex}var zt=[],Ut=function(e){function t(t){e.call(this,t);var n=t.getViewport();this.context_=Object(be.a)(),this.canvas_=this.context_.canvas,this.canvas_.style.width="100%",this.canvas_.style.height="100%",this.canvas_.style.display="block",this.canvas_.className=Pe.d,n.insertBefore(this.canvas_,n.childNodes[0]||null),this.renderedVisible_=!0,this.transform_=Object(Te.c)()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.dispatchRenderEvent=function(e,t){var n=this.getMap(),r=this.context_;if(n.hasListener(e)){var i=t.extent,o=t.pixelRatio,a=t.viewState.rotation,s=this.getTransform(t),l=new Mt(r,o,i,s,a),u=new Et(e,l,t,r,null);n.dispatchEvent(u)}},t.prototype.getTransform=function(e){var t=e.viewState,n=this.canvas_.width/2,r=this.canvas_.height/2,i=e.pixelRatio/t.resolution,o=-i,a=-t.rotation,s=-t.center[0],l=-t.center[1];return Object(Te.b)(this.transform_,n,r,i,o,a,s,l)},t.prototype.renderFrame=function(e){if(e){var t=this.context_,n=e.pixelRatio,r=Math.round(e.size[0]*n),i=Math.round(e.size[1]*n);this.canvas_.width!=r||this.canvas_.height!=i?(this.canvas_.width=r,this.canvas_.height=i):t.clearRect(0,0,r,i);var o=e.viewState.rotation;this.calculateMatrices2D(e),this.dispatchRenderEvent(le.a.PRECOMPOSE,e);var a=e.layerStatesArray;Object(V.j)(a,Bt),o&&(t.save(),Object(St.s)(t,o,r/2,i/2));var s,l,u=e.viewState.resolution;for(s=0,l=a.length;s<l;++s){var c=a[s],d=c.layer,f=this.getLayerRenderer(d);Object(Re.b)(c,u)&&c.sourceState==ke.a.READY&&(f.prepareFrame(e,c)&&f.composeFrame(e,c,t))}o&&t.restore(),this.dispatchRenderEvent(le.a.POSTCOMPOSE,e),this.renderedVisible_||(this.canvas_.style.display="",this.renderedVisible_=!0),this.scheduleRemoveUnusedLayerRenderers(e),this.scheduleExpireIconCache(e)}else this.renderedVisible_&&(this.canvas_.style.display="none",this.renderedVisible_=!1)},t.prototype.forEachLayerAtPixel=function(e,t,n,r,i,o,a){var s,l,u=t.viewState.resolution,c=t.layerStatesArray,d=c.length,f=Object(Te.a)(t.pixelToCoordinateTransform,e.slice());for(l=d-1;l>=0;--l){var p=c[l],h=p.layer;if(Object(Re.b)(p,u)&&o.call(a,h))if(s=this.getLayerRenderer(h).forEachLayerAtCoordinate(f,t,n,r,i))return s}},t.prototype.registerLayerRenderers=function(t){e.prototype.registerLayerRenderers.call(this,t);for(var n=0,r=t.length;n<r;++n){var i=t[n];Object(V.d)(zt,i)||zt.push(i)}},t}(Nt),qt=function(e){function t(t){e.call(this,t),this.renderedResolution,this.transform_=Object(Te.c)()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clip=function(e,t,n){var r=t.pixelRatio,i=t.size[0]*r,o=t.size[1]*r,a=t.viewState.rotation,s=Object(_e.C)(n),l=Object(_e.D)(n),u=Object(_e.w)(n),c=Object(_e.v)(n);Object(Te.a)(t.coordinateToPixelTransform,s),Object(Te.a)(t.coordinateToPixelTransform,l),Object(Te.a)(t.coordinateToPixelTransform,u),Object(Te.a)(t.coordinateToPixelTransform,c),e.save(),Object(St.s)(e,-a,i/2,o/2),e.beginPath(),e.moveTo(s[0]*r,s[1]*r),e.lineTo(l[0]*r,l[1]*r),e.lineTo(u[0]*r,u[1]*r),e.lineTo(c[0]*r,c[1]*r),e.clip(),Object(St.s)(e,a,i/2,o/2)},t.prototype.dispatchComposeEvent_=function(e,t,n,r){var i=this.getLayer();if(i.hasListener(e)){var o=n.size[0]*n.pixelRatio,a=n.size[1]*n.pixelRatio,s=n.viewState.rotation;Object(St.s)(t,-s,o/2,a/2);var l=void 0!==r?r:this.getTransform(n,0),u=new Mt(t,n.pixelRatio,n.extent,l,n.viewState.rotation),c=new Et(e,u,n,t,null);i.dispatchEvent(c),Object(St.s)(t,s,o/2,a/2)}},t.prototype.forEachLayerAtCoordinate=function(e,t,n,r,i){return this.forEachFeatureAtCoordinate(e,t,n,we.b)?r.call(i,this.getLayer(),null):void 0},t.prototype.postCompose=function(e,t,n,r){this.dispatchComposeEvent_(le.a.POSTCOMPOSE,e,t,r)},t.prototype.preCompose=function(e,t,n){this.dispatchComposeEvent_(le.a.PRECOMPOSE,e,t,n)},t.prototype.dispatchRenderEvent=function(e,t,n){this.dispatchComposeEvent_(le.a.RENDER,e,t,n)},t.prototype.getTransform=function(e,t){var n=e.viewState,r=e.pixelRatio,i=r*e.size[0]/2,o=r*e.size[1]/2,a=r/n.resolution,s=-a,l=-n.rotation,u=-n.center[0]+t,c=-n.center[1];return Object(Te.b)(this.transform_,i,o,a,s,l,u,c)},t.prototype.composeFrame=function(e,t,n){Object(r.b)()},t.prototype.prepareFrame=function(e,t){return Object(r.b)()},t}(function(e){function t(t){e.call(this),this.layer_=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.createLoadedTileFinder=function(e,t,n){return function(r,i){return e.forEachLoadedTile(t,r,i,(function(e){n[r]||(n[r]={}),n[r][e.tileCoord.toString()]=e}))}},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r){},t.prototype.getLayer=function(){return this.layer_},t.prototype.handleImageChange_=function(e){e.target.getState()===_t.a.LOADED&&this.renderIfReadyAndVisible()},t.prototype.hasFeatureAtCoordinate=function(e,t){return!1},t.prototype.loadImage=function(e){var t=e.getState();return t!=_t.a.LOADED&&t!=_t.a.ERROR&&Object(c.a)(e,fe.a.CHANGE,this.handleImageChange_,this),t==_t.a.IDLE&&(e.load(),t=e.getState()),t==_t.a.LOADED},t.prototype.renderIfReadyAndVisible=function(){var e=this.getLayer();e.getVisible()&&e.getSourceState()==ke.a.READY&&this.changed()},t.prototype.scheduleExpireCache=function(e,t){if(t.canExpireCache()){var n=function(e,t,n){var i=Object(r.c)(e);i in n.usedTiles&&e.expireCache(n.viewState.projection,n.usedTiles[i])}.bind(null,t);e.postRenderFunctions.push(n)}},t.prototype.updateUsedTiles=function(e,t,n,i){var o=Object(r.c)(t),a=n.toString();o in e?a in e[o]?e[o][a].extend(i):e[o][a]=i:(e[o]={},e[o][a]=i)},t.prototype.manageTilePyramid=function(e,t,n,i,o,a,s,l,u,c){var d=Object(r.c)(t);d in e.wantedTiles||(e.wantedTiles[d]={});var f,p,h,m,g,v,y=e.wantedTiles[d],b=e.tileQueue;for(v=n.getMinZoom();v<=s;++v)for(p=n.getTileRangeForExtentAndZ(a,v,p),h=n.getResolution(v),m=p.minX;m<=p.maxX;++m)for(g=p.minY;g<=p.maxY;++g)s-v<=l?((f=t.getTile(v,m,g,i,o)).getState()==de.a.IDLE&&(y[f.getKey()]=!0,b.isKeyQueued(f.getKey())||b.enqueue([f,d,n.getTileCoordCenter(f.tileCoord),h])),void 0!==u&&u.call(c,f)):t.useTile(v,m,g,o)},t}(n(295).a)),Ht=function(e){function t(t){e.call(this,t),this.coordinateToCanvasPixelTransform=Object(Te.c)(),this.hitCanvasContext_=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.composeFrame=function(e,t,n){this.preCompose(n,e);var r=this.getImage();if(r){var i=t.extent,o=void 0!==i&&!Object(_e.g)(i,e.extent)&&Object(_e.F)(i,e.extent);o&&this.clip(n,e,i);var a=this.getImageTransform(),s=n.globalAlpha;n.globalAlpha=t.opacity;var l=a[4],u=a[5],c=r.width*a[0],d=r.height*a[3];c>=.5&&d>=.5&&n.drawImage(r,0,0,+r.width,+r.height,Math.round(l),Math.round(u),Math.round(c),Math.round(d)),n.globalAlpha=s,o&&n.restore()}this.postCompose(n,e,t)},t.prototype.getImage=function(){return Object(r.b)()},t.prototype.getImageTransform=function(){return Object(r.b)()},t.prototype.forEachLayerAtCoordinate=function(e,t,n,r,i){if(this.getImage()){var o=Object(Te.a)(this.coordinateToCanvasPixelTransform,e.slice());Object(He.d)(o,t.viewState.resolution/this.renderedResolution),this.hitCanvasContext_||(this.hitCanvasContext_=Object(be.a)(1,1)),this.hitCanvasContext_.clearRect(0,0,1,1),this.hitCanvasContext_.drawImage(this.getImage(),o[0],o[1],1,1,0,0,1,1);var a=this.hitCanvasContext_.getImageData(0,0,1,1).data;return a[3]>0?r.call(i,this.getLayer(),a):void 0}},t}(qt),Wt=function(e){function t(n){if(e.call(this,n),this.image_=null,this.imageTransform_=Object(Te.c)(),this.skippedFeatures_=[],this.vectorRenderer_=null,n.getType()===xt.a.VECTOR)for(var r=0,i=zt.length;r<i;++r){var o=zt[r];if(o!==t&&o.handles(n)){this.vectorRenderer_=new o(n);break}}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.disposeInternal=function(){this.vectorRenderer_&&this.vectorRenderer_.dispose(),e.prototype.disposeInternal.call(this)},t.prototype.getImage=function(){return this.image_?this.image_.getImage():null},t.prototype.getImageTransform=function(){return this.imageTransform_},t.prototype.prepareFrame=function(e,t){var n,r=e.pixelRatio,i=e.size,o=e.viewState,a=o.center,s=o.resolution,l=this.getLayer().getSource(),u=e.viewHints,c=this.vectorRenderer_,d=e.extent;if(c||void 0===t.extent||(d=Object(_e.B)(d,t.extent)),!u[ye.a.ANIMATING]&&!u[ye.a.INTERACTING]&&!Object(_e.H)(d)){var f=o.projection;if(!yt.a){var p=l.getProjection();p&&(f=p)}var h=this.skippedFeatures_;if(c){var m=c.context,g=Object(he.a)({},e,{size:[Object(_e.E)(d)/s,Object(_e.A)(d)/s],viewState:Object(he.a)({},e.viewState,{rotation:0})}),v=Object.keys(g.skippedFeatureUids).sort();n=new wt(d,s,r,m.canvas,(function(e){!c.prepareFrame(g,t)||!c.replayGroupChanged&&Object(V.b)(h,v)||(m.canvas.width=g.size[0]*r,m.canvas.height=g.size[1]*r,c.compose(m,g,t),h=v,e())}))}else n=l.getImage(d,s,r,f);n&&this.loadImage(n)&&(this.image_=n,this.skippedFeatures_=h)}if(this.image_){var y=(n=this.image_).getExtent(),b=n.getResolution(),_=n.getPixelRatio(),w=r*b/(s*_),x=Object(Te.b)(this.imageTransform_,r*i[0]/2,r*i[1]/2,w,w,0,_*(y[0]-a[0])/b,_*(a[1]-y[3])/b);Object(Te.b)(this.coordinateToCanvasPixelTransform,r*i[0]/2-x[4],r*i[1]/2-x[5],r/s,-r/s,0,-a[0],-a[1]),this.renderedResolution=b*r/_}return!!this.image_},t.prototype.forEachFeatureAtCoordinate=function(t,n,r,i){return this.vectorRenderer_?this.vectorRenderer_.forEachFeatureAtCoordinate(t,n,r,i):e.prototype.forEachFeatureAtCoordinate.call(this,t,n,r,i)},t}(Ht);Wt.handles=function(e){return e.getType()===xt.a.IMAGE||e.getType()===xt.a.VECTOR&&e.getRenderMode()===kt.a.IMAGE},Wt.create=function(e,t){return new Wt(t)};var Vt=Wt,$t=n(177),Gt=function(e){function t(t,n){e.call(this,t),this.context=n?null:Object(be.a)(),this.oversampling_,this.renderedExtent_=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=Object(_e.j)(),this.tmpTileRange_=new $t.b(0,0,0,0),this.imageTransform_=Object(Te.c)(),this.zDirection=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.isDrawableTile_=function(e){var t=this.getLayer(),n=e.getState(),r=t.getUseInterimTilesOnError();return n==de.a.LOADED||n==de.a.EMPTY||n==de.a.ERROR&&!r},t.prototype.getTile=function(e,t,n,r,i){var o=this.getLayer(),a=o.getSource().getTile(e,t,n,r,i);return a.getState()==de.a.ERROR&&(o.getUseInterimTilesOnError()?o.getPreload()>0&&(this.newTiles_=!0):a.setState(de.a.LOADED)),this.isDrawableTile_(a)||(a=a.getInterimTile()),a},t.prototype.prepareFrame=function(e,t){var n=e.pixelRatio,i=e.size,o=e.viewState,a=o.projection,s=o.resolution,l=o.center,u=this.getLayer(),c=u.getSource(),d=c.getRevision(),f=c.getTileGridForProjection(a),p=f.getZForResolution(s,this.zDirection),h=f.getResolution(p),m=Math.round(s/h)||1,g=e.extent;if(void 0!==t.extent&&(g=Object(_e.B)(g,t.extent)),Object(_e.H)(g))return!1;var v=f.getTileRangeForExtentAndZ(g,p),y=f.getTileRangeExtent(p,v),b=c.getTilePixelRatio(n),_={};_[p]={};var w,x,k,E=this.createLoadedTileFinder(c,a,_),S=e.viewHints,O=S[ye.a.ANIMATING]||S[ye.a.INTERACTING],T=this.tmpExtent,C=this.tmpTileRange_;for(this.newTiles_=!1,x=v.minX;x<=v.maxX;++x)for(k=v.minY;k<=v.maxY;++k)if(!(Date.now()-e.time>16&&O)){if(w=this.getTile(p,x,k,n,a),this.isDrawableTile_(w)){var A=Object(r.c)(this);if(w.getState()==de.a.LOADED){_[p][w.tileCoord.toString()]=w;var P=w.inTransition(A);this.newTiles_||!P&&-1!==this.renderedTiles.indexOf(w)||(this.newTiles_=!0)}if(1===w.getAlpha(A,e.time))continue}var R=f.getTileCoordChildTileRange(w.tileCoord,C,T),M=!1;R&&(M=E(p+1,R)),M||f.forEachTileCoordParentTileRange(w.tileCoord,E,null,C,T)}var I=h*n/b*m;if(!(this.renderedResolution&&Date.now()-e.time>16&&O)&&(this.newTiles_||!this.renderedExtent_||!Object(_e.g)(this.renderedExtent_,g)||this.renderedRevision!=d||m!=this.oversampling_||!O&&I!=this.renderedResolution)){var j=this.context;if(j){var D=c.getTilePixelSize(p,n,a),L=Math.round(v.getWidth()*D[0]/m),N=Math.round(v.getHeight()*D[1]/m),F=j.canvas;F.width!=L||F.height!=N?(this.oversampling_=m,F.width=L,F.height=N):((this.renderedExtent_&&!Object(_e.p)(y,this.renderedExtent_)||this.renderedRevision!=d)&&j.clearRect(0,0,L,N),m=this.oversampling_)}this.renderedTiles.length=0;var B,z,U,q,H,W,V,$,G,K,Y=Object.keys(_).map(Number);for(Y.sort((function(e,t){return e===p?1:t===p?-1:e>t?1:e<t?-1:0})),q=0,H=Y.length;q<H;++q)for(var Q in U=Y[q],z=c.getTilePixelSize(U,n,a),B=f.getResolution(U)/h,V=b*c.getGutterForProjection(a),$=_[U])w=$[Q],x=((W=f.getTileCoordExtent(w.getTileCoord(),T))[0]-y[0])/h*b/m,k=(y[3]-W[3])/h*b/m,G=z[0]*B/m,K=z[1]*B/m,this.drawTileImage(w,e,t,x,k,G,K,V,p===U),this.renderedTiles.push(w);this.renderedRevision=d,this.renderedResolution=h*n/b*m,this.renderedExtent_=y}var X=this.renderedResolution/s,J=Object(Te.b)(this.imageTransform_,n*i[0]/2,n*i[1]/2,X,X,0,(this.renderedExtent_[0]-l[0])/this.renderedResolution*n,(l[1]-this.renderedExtent_[3])/this.renderedResolution*n);return Object(Te.b)(this.coordinateToCanvasPixelTransform,n*i[0]/2-J[4],n*i[1]/2-J[5],n/s,-n/s,0,-l[0],-l[1]),this.updateUsedTiles(e.usedTiles,c,p,v),this.manageTilePyramid(e,c,f,n,a,g,p,u.getPreload()),this.scheduleExpireCache(e,c),this.renderedTiles.length>0},t.prototype.drawTileImage=function(e,t,n,i,o,a,s,l,u){var c=this.getTileImage(e);if(c){var d=Object(r.c)(this),f=u?e.getAlpha(d,t.time):1,p=this.getLayer().getSource();1!==f||p.getOpaque(t.viewState.projection)||this.context.clearRect(i,o,a,s);var h=f!==this.context.globalAlpha;h&&(this.context.save(),this.context.globalAlpha=f),this.context.drawImage(c,l,l,c.width-2*l,c.height-2*l,i,o,a,s),h&&this.context.restore(),1!==f?t.animate=!0:u&&e.endTransition(d)}},t.prototype.getImage=function(){var e=this.context;return e?e.canvas:null},t.prototype.getImageTransform=function(){return this.imageTransform_},t.prototype.getTileImage=function(e){return e.getImage()},t}(Ht);Gt.handles=function(e){return e.getType()===xt.a.TILE},Gt.create=function(e,t){return new Gt(t)},Gt.prototype.getLayer;var Kt=Gt,Yt=n(203),Qt=n.n(Yt),Xt=function(){};Xt.prototype.getReplay=function(e,t){return Object(r.b)()},Xt.prototype.isEmpty=function(){return Object(r.b)()},Xt.prototype.addDeclutter=function(e){return Object(r.b)()};var Jt=Xt,Zt="Circle",en="Default",tn="Image",nn="LineString",rn="Polygon",on="Text",an=n(55),sn=n(73),ln=n(302);function un(e,t,n,r,i,o,a,s){for(var l,u,c,d=[],f=e[t]>e[n-r],p=i.length,h=e[t],m=e[t+1],g=e[t+=r],v=e[t+1],y=0,b=Math.sqrt(Math.pow(g-h,2)+Math.pow(v-m,2)),_="",w=0,x=0;x<p;++x){u=f?p-x-1:x;var k=i.charAt(u),E=o(_=f?k+_:_+k)-w;w+=E;for(var S=a+E/2;t<n-r&&y+b<S;)h=g,m=v,g=e[t+=r],v=e[t+1],y+=b,b=Math.sqrt(Math.pow(g-h,2)+Math.pow(v-m,2));var O=S-y,T=Math.atan2(v-m,g-h);if(f&&(T+=T>0?-Math.PI:Math.PI),void 0!==c){var C=T-c;if(C+=C>Math.PI?-2*Math.PI:C<-Math.PI?2*Math.PI:0,Math.abs(C)>s)return null}var A=O/b,P=Object(ft.c)(h,g,A),R=Object(ft.c)(m,v,A);c==T?(f&&(l[0]=P,l[1]=R,l[2]=E/2),l[4]=_):(w=E,l=[P,R,E/2,T,_=k],f?d.unshift(l):d.push(l),c=T),a+=E}return d}var cn={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},dn=[cn.FILL],fn=[cn.STROKE],pn=[cn.BEGIN_PATH],hn=[cn.CLOSE_PATH],mn=cn,gn=[rn,Zt,nn,tn,on,en],vn={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},yn=Object(_e.j)(),bn=Object(Te.c)(),_n=function(e){function t(t,n,r,i,o,a){e.call(this),this.declutterTree=a,this.tolerance=t,this.maxExtent=n,this.overlaps=o,this.pixelRatio=i,this.maxLineWidth=0,this.resolution=r,this.alignFill_,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.coordinateCache_={},this.renderedTransform_=Object(Te.c)(),this.hitDetectionInstructions=[],this.pixelCoordinates_=null,this.state={},this.viewRotation_=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.replayTextBackground_=function(e,t,n,r,i,o,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,t),o&&(this.alignFill_=o[2],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())},t.prototype.replayImage_=function(e,t,n,r,i,o,a,s,l,u,c,d,f,p,h,m,g,v){var y=g||v;t-=i*=f,n-=o*=f;var b,_,w,x,k=h+u>r.width?r.width-u:h,E=s+c>r.height?r.height-c:s,S=m[3]+k*f+m[1],O=m[0]+E*f+m[2],T=t-m[3],C=n-m[0];(y||0!==d)&&(b=[T,C],_=[T+S,C],w=[T+S,C+O],x=[T,C+O]);var A=null;if(0!==d){var P=t+i,R=n+o;A=Object(Te.b)(bn,P,R,1,1,d,-P,-R),Object(_e.l)(yn),Object(_e.r)(yn,Object(Te.a)(bn,b)),Object(_e.r)(yn,Object(Te.a)(bn,_)),Object(_e.r)(yn,Object(Te.a)(bn,w)),Object(_e.r)(yn,Object(Te.a)(bn,x))}else Object(_e.k)(T,C,T+S,C+O,yn);var M=e.canvas,I=v?v[2]*f/2:0,j=yn[0]-I<=M.width&&yn[2]+I>=0&&yn[1]-I<=M.height&&yn[3]+I>=0;if(p&&(t=Math.round(t),n=Math.round(n)),a){if(!j&&1==a[4])return;Object(_e.q)(a,yn);var D=j?[e,A?A.slice(0):null,l,r,u,c,k,E,t,n,f]:null;D&&y&&D.push(g,v,b,_,w,x),a.push(D)}else j&&(y&&this.replayTextBackground_(e,b,_,w,x,g,v),Object(St.n)(e,A,l,r,u,c,k,E,t,n,f))},t.prototype.applyPixelRatio=function(e){var t=this.pixelRatio;return 1==t?e:e.map((function(e){return e*t}))},t.prototype.appendFlatCoordinates=function(e,t,n,r,i,o){var a=this.coordinates.length,s=this.getBufferedMaxExtent();o&&(t+=r);var l,u,c,d=[e[t],e[t+1]],f=[NaN,NaN],p=!0;for(l=t+r;l<n;l+=r)f[0]=e[l],f[1]=e[l+1],(c=Object(_e.i)(s,f))!==u?(p&&(this.coordinates[a++]=d[0],this.coordinates[a++]=d[1]),this.coordinates[a++]=f[0],this.coordinates[a++]=f[1],p=!1):c===an.a.INTERSECTING?(this.coordinates[a++]=f[0],this.coordinates[a++]=f[1],p=!1):p=!0,d[0]=f[0],d[1]=f[1],u=c;return(i&&p||l===t+r)&&(this.coordinates[a++]=d[0],this.coordinates[a++]=d[1]),a},t.prototype.drawCustomCoordinates_=function(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o],l=this.appendFlatCoordinates(e,t,s,r,!1,!1);i.push(l),t=s}return t},t.prototype.drawCustom=function(e,t,n){this.beginGeometry(e,t);var r,i,o,a,s,l=e.getType(),u=e.getStride(),c=this.coordinates.length;if(l==Tt.a.MULTI_POLYGON){r=(e=e).getOrientedFlatCoordinates(),a=[];var d=e.getEndss();s=0;for(var f=0,p=d.length;f<p;++f){var h=[];s=this.drawCustomCoordinates_(r,s,d[f],u,h),a.push(h)}this.instructions.push([mn.CUSTOM,c,a,e,n,sn.c])}else l==Tt.a.POLYGON||l==Tt.a.MULTI_LINE_STRING?(o=[],r=l==Tt.a.POLYGON?e.getOrientedFlatCoordinates():e.getFlatCoordinates(),s=this.drawCustomCoordinates_(r,0,e.getEnds(),u,o),this.instructions.push([mn.CUSTOM,c,o,e,n,sn.b])):l==Tt.a.LINE_STRING||l==Tt.a.MULTI_POINT?(r=e.getFlatCoordinates(),i=this.appendFlatCoordinates(r,0,r.length,u,!1,!1),this.instructions.push([mn.CUSTOM,c,i,e,n,sn.a])):l==Tt.a.POINT&&(r=e.getFlatCoordinates(),this.coordinates.push(r[0],r[1]),i=this.coordinates.length,this.instructions.push([mn.CUSTOM,c,i,e,n]));this.endGeometry(e,t)},t.prototype.beginGeometry=function(e,t){this.beginGeometryInstruction1_=[mn.BEGIN_GEOMETRY,t,0],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[mn.BEGIN_GEOMETRY,t,0],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},t.prototype.finish=function(){},t.prototype.fill_=function(e){if(this.alignFill_){var t=Object(Te.a)(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;e.translate(t[0]%n,t[1]%n),e.rotate(this.viewRotation_)}e.fill(),this.alignFill_&&e.setTransform.apply(e,St.r)},t.prototype.setStrokeStyle_=function(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],s.a&&(e.lineDashOffset=t[7],e.setLineDash(t[6]))},t.prototype.renderDeclutter_=function(e,t){if(e&&e.length>5){var n=e[4];if(1==n||n==e.length-5){var r={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3],value:t};if(!this.declutterTree.collides(r)){this.declutterTree.insert(r);for(var i=5,o=e.length;i<o;++i){var a=e[i];a&&(a.length>11&&this.replayTextBackground_(a[0],a[13],a[14],a[15],a[16],a[11],a[12]),St.n.apply(void 0,a))}}e.length=5,Object(_e.l)(e)}}},t.prototype.replay_=function(e,t,n,i,o,a,s){var l;this.pixelCoordinates_&&Object(V.b)(t,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=Object(At.c)(this.coordinates,0,this.coordinates.length,2,t,this.pixelCoordinates_),Object(Te.g)(this.renderedTransform_,t));for(var u,c,d,f,p,h,m,g,v,y,b,_,w=!Object(he.d)(n),x=0,k=i.length,E=0,S=0,O=0,T=null,C=null,A=this.coordinateCache_,P=this.viewRotation_,R={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:P},M=this.instructions!=i||this.overlaps?0:200;x<k;){var I=i[x];switch(I[0]){case mn.BEGIN_GEOMETRY:y=I[1],w&&n[Object(r.c)(y)]||!y.getGeometry()?x=I[2]:void 0===s||Object(_e.F)(s,y.getGeometry().getExtent())?++x:x=I[2]+1;break;case mn.BEGIN_PATH:S>M&&(this.fill_(e),S=0),O>M&&(e.stroke(),O=0),S||O||(e.beginPath(),f=p=NaN),++x;break;case mn.CIRCLE:var j=l[E=I[1]],D=l[E+1],L=l[E+2]-j,N=l[E+3]-D,F=Math.sqrt(L*L+N*N);e.moveTo(j+F,D),e.arc(j,D,F,0,2*Math.PI,!0),++x;break;case mn.CLOSE_PATH:e.closePath(),++x;break;case mn.CUSTOM:E=I[1],u=I[2];var B=I[3],z=I[4],U=6==I.length?I[5]:void 0;R.geometry=B,R.feature=y,x in A||(A[x]=[]);var q=A[x];U?U(l,E,u,2,q):(q[0]=l[E],q[1]=l[E+1],q.length=2),z(q,R),++x;break;case mn.DRAW_IMAGE:E=I[1],u=I[2],v=I[3],c=I[4],d=I[5],g=a?null:I[6];var H=I[7],W=I[8],$=I[9],G=I[10],K=I[11],Y=I[12],Q=I[13],X=I[14],J=void 0,Z=void 0,ee=void 0;for(I.length>16?(J=I[15],Z=I[16],ee=I[17]):(J=St.j,Z=ee=!1),K&&(Y+=P);E<u;E+=2)this.replayImage_(e,l[E],l[E+1],v,c,d,g,H,W,$,G,Y,Q,o,X,J,Z?T:null,ee?C:null);this.renderDeclutter_(g,y),++x;break;case mn.DRAW_CHARS:var te=I[1],ne=I[2],re=I[3];g=a?null:I[4];var ie=I[5],oe=I[6],ae=I[7],se=I[8],le=I[9],ue=I[10],ce=I[11],de=I[12],fe=I[13],pe=I[14],me=Object(ln.a)(l,te,ne,2),ge=se(de);if(ie||ge<=me){var ve=this.textStates[fe].textAlign,ye=un(l,te,ne,2,de,se,(me-ge)*vn[ve],ae);if(ye){var be=void 0,we=void 0,xe=void 0,ke=void 0,Ee=void 0;if(ue)for(be=0,we=ye.length;be<we;++be)xe=(Ee=ye[be])[4],ke=this.getImage(xe,fe,"",ue),c=Ee[2]+ce,d=re*ke.height+2*(.5-re)*ce-le,this.replayImage_(e,Ee[0],Ee[1],ke,c,d,g,ke.height,1,0,0,Ee[3],pe,!1,ke.width,St.j,null,null);if(oe)for(be=0,we=ye.length;be<we;++be)xe=(Ee=ye[be])[4],ke=this.getImage(xe,fe,oe,""),c=Ee[2],d=re*ke.height-le,this.replayImage_(e,Ee[0],Ee[1],ke,c,d,g,ke.height,1,0,0,Ee[3],pe,!1,ke.width,St.j,null,null)}}this.renderDeclutter_(g,y),++x;break;case mn.END_GEOMETRY:if(void 0!==a){var Se=a(y=I[1]);if(Se)return Se}++x;break;case mn.FILL:M?S++:this.fill_(e),++x;break;case mn.MOVE_TO_LINE_TO:for(E=I[1],u=I[2],b=l[E],m=(_=l[E+1])+.5|0,(h=b+.5|0)===f&&m===p||(e.moveTo(b,_),f=h,p=m),E+=2;E<u;E+=2)h=(b=l[E])+.5|0,m=(_=l[E+1])+.5|0,E!=u-2&&h===f&&m===p||(e.lineTo(b,_),f=h,p=m);++x;break;case mn.SET_FILL_STYLE:T=I,this.alignFill_=I[2],S&&(this.fill_(e),S=0,O&&(e.stroke(),O=0)),e.fillStyle=I[1],++x;break;case mn.SET_STROKE_STYLE:C=I,O&&(e.stroke(),O=0),this.setStrokeStyle_(e,I),++x;break;case mn.STROKE:M?O++:e.stroke(),++x;break;default:++x}}S&&this.fill_(e),O&&e.stroke()},t.prototype.replay=function(e,t,n,r,i){this.viewRotation_=n,this.replay_(e,t,r,this.instructions,i,void 0,void 0)},t.prototype.replayHitDetection=function(e,t,n,r,i,o){return this.viewRotation_=n,this.replay_(e,t,r,this.hitDetectionInstructions,!0,i,o)},t.prototype.reverseHitDetectionInstructions=function(){var e,t=this.hitDetectionInstructions;t.reverse();var n,r,i=t.length,o=-1;for(e=0;e<i;++e)(r=(n=t[e])[0])==mn.END_GEOMETRY?o=e:r==mn.BEGIN_GEOMETRY&&(n[2]=e,Object(V.i)(this.hitDetectionInstructions,o,e),o=-1)},t.prototype.setFillStrokeStyle=function(e,t){var n=this.state;if(e){var r=e.getColor();n.fillStyle=Object(Ot.a)(r||St.b)}else n.fillStyle=void 0;if(t){var i=t.getColor();n.strokeStyle=Object(Ot.a)(i||St.k);var o=t.getLineCap();n.lineCap=void 0!==o?o:St.d;var a=t.getLineDash();n.lineDash=a?a.slice():St.e;var s=t.getLineDashOffset();n.lineDashOffset=s||St.f;var l=t.getLineJoin();n.lineJoin=void 0!==l?l:St.g;var u=t.getWidth();n.lineWidth=void 0!==u?u:St.h;var c=t.getMiterLimit();n.miterLimit=void 0!==c?c:St.i,n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},t.prototype.createFill=function(e,t){var n=e.fillStyle,r=[mn.SET_FILL_STYLE,n];return"string"!=typeof n&&r.push(!0),r},t.prototype.applyStroke=function(e){this.instructions.push(this.createStroke(e))},t.prototype.createStroke=function(e){return[mn.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio]},t.prototype.updateFillStyle=function(e,t,n){var r=e.fillStyle;"string"==typeof r&&e.currentFillStyle==r||(void 0!==r&&this.instructions.push(t.call(this,e,n)),e.currentFillStyle=r)},t.prototype.updateStrokeStyle=function(e,t){var n=e.strokeStyle,r=e.lineCap,i=e.lineDash,o=e.lineDashOffset,a=e.lineJoin,s=e.lineWidth,l=e.miterLimit;(e.currentStrokeStyle!=n||e.currentLineCap!=r||i!=e.currentLineDash&&!Object(V.b)(e.currentLineDash,i)||e.currentLineDashOffset!=o||e.currentLineJoin!=a||e.currentLineWidth!=s||e.currentMiterLimit!=l)&&(void 0!==n&&t.call(this,e),e.currentStrokeStyle=n,e.currentLineCap=r,e.currentLineDash=i,e.currentLineDashOffset=o,e.currentLineJoin=a,e.currentLineWidth=s,e.currentMiterLimit=l)},t.prototype.endGeometry=function(e,t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var n=[mn.END_GEOMETRY,t];this.instructions.push(n),this.hitDetectionInstructions.push(n)},t.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(_e.d)(this.maxExtent),this.maxLineWidth>0)){var e=this.resolution*(this.maxLineWidth+1)/2;Object(_e.c)(this.bufferedMaxExtent_,e,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},t}(Rt),wn=function(e){function t(t,n,r,i,o,a){e.call(this,t,n,r,i,o,a),this.declutterGroup_=null,this.hitDetectionImage_=null,this.image_=null,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.drawCoordinates_=function(e,t,n,r){return this.appendFlatCoordinates(e,t,n,r,!1,!1)},t.prototype.drawPoint=function(e,t){if(this.image_){this.beginGeometry(e,t);var n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.drawCoordinates_(n,0,n.length,r);this.instructions.push([mn.DRAW_IMAGE,i,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([mn.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(e,t)}},t.prototype.drawMultiPoint=function(e,t){if(this.image_){this.beginGeometry(e,t);var n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.drawCoordinates_(n,0,n.length,r);this.instructions.push([mn.DRAW_IMAGE,i,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([mn.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(e,t)}},t.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0},t.prototype.setImageStyle=function(e,t){var n=e.getAnchor(),r=e.getSize(),i=e.getHitDetectionImage(1),o=e.getImage(1),a=e.getOrigin();this.anchorX_=n[0],this.anchorY_=n[1],this.declutterGroup_=t,this.hitDetectionImage_=i,this.image_=o,this.height_=r[1],this.opacity_=e.getOpacity(),this.originX_=a[0],this.originY_=a[1],this.rotateWithView_=e.getRotateWithView(),this.rotation_=e.getRotation(),this.scale_=e.getScale(),this.width_=r[0]},t}(_n),xn=function(e){function t(t,n,r,i,o,a){e.call(this,t,n,r,i,o,a)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.drawFlatCoordinates_=function(e,t,n,r){var i=this.coordinates.length,o=this.appendFlatCoordinates(e,t,n,r,!1,!1),a=[mn.MOVE_TO_LINE_TO,i,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),n},t.prototype.drawLineString=function(e,t){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([mn.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],pn);var o=e.getFlatCoordinates(),a=e.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(fn),this.endGeometry(e,t)}},t.prototype.drawMultiLineString=function(e,t){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([mn.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],pn);for(var o=e.getEnds(),a=e.getFlatCoordinates(),s=e.getStride(),l=0,u=0,c=o.length;u<c;++u)l=this.drawFlatCoordinates_(a,l,o[u],s);this.hitDetectionInstructions.push(fn),this.endGeometry(e,t)}},t.prototype.finish=function(){var e=this.state;null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(fn),this.reverseHitDetectionInstructions(),this.state=null},t.prototype.applyStroke=function(t){null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(fn),t.lastStroke=this.coordinates.length),t.lastStroke=0,e.prototype.applyStroke.call(this,t),this.instructions.push(pn)},t}(_n),kn=n(96),En=function(e){function t(t,n,r,i,o,a){e.call(this,t,n,r,i,o,a)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.drawFlatCoordinatess_=function(e,t,n,r){var i=this.state,o=void 0!==i.fillStyle,a=null!=i.strokeStyle,s=n.length;this.instructions.push(pn),this.hitDetectionInstructions.push(pn);for(var l=0;l<s;++l){var u=n[l],c=this.coordinates.length,d=this.appendFlatCoordinates(e,t,u,r,!0,!a),f=[mn.MOVE_TO_LINE_TO,c,d];this.instructions.push(f),this.hitDetectionInstructions.push(f),a&&(this.instructions.push(hn),this.hitDetectionInstructions.push(hn)),t=u}return o&&(this.instructions.push(dn),this.hitDetectionInstructions.push(dn)),a&&(this.instructions.push(fn),this.hitDetectionInstructions.push(fn)),t},t.prototype.drawCircle=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(e),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([mn.SET_FILL_STYLE,Object(It.a)(St.b)]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([mn.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=e.getFlatCoordinates(),a=e.getStride(),s=this.coordinates.length;this.appendFlatCoordinates(o,0,o.length,a,!1,!1);var l=[mn.CIRCLE,s];this.instructions.push(pn,l),this.hitDetectionInstructions.push(pn,l),this.hitDetectionInstructions.push(dn),void 0!==n.fillStyle&&this.instructions.push(dn),void 0!==n.strokeStyle&&(this.instructions.push(fn),this.hitDetectionInstructions.push(fn)),this.endGeometry(e,t)}},t.prototype.drawPolygon=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(e),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([mn.SET_FILL_STYLE,Object(It.a)(St.b)]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([mn.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=e.getEnds(),a=e.getOrientedFlatCoordinates(),s=e.getStride();this.drawFlatCoordinatess_(a,0,o,s),this.endGeometry(e,t)}},t.prototype.drawMultiPolygon=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(e),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([mn.SET_FILL_STYLE,Object(It.a)(St.b)]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([mn.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);for(var o=e.getEndss(),a=e.getOrientedFlatCoordinates(),s=e.getStride(),l=0,u=0,c=o.length;u<c;++u)l=this.drawFlatCoordinatess_(a,l,o[u],s);this.endGeometry(e,t)}},t.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var e=this.tolerance;if(0!==e)for(var t=this.coordinates,n=0,r=t.length;n<r;++n)t[n]=Object(kn.e)(t[n],e)},t.prototype.setFillStrokeStyles_=function(e){var t=this.state;void 0!==t.fillStyle&&this.updateFillStyle(t,this.createFill,e),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)},t}(_n);function Sn(e,t,n,r,i){var o,a,s,l,u,c,d,f,p,h=n,m=n,g=0,v=0,y=n;for(o=n;o<r;o+=i){var b=t[o],_=t[o+1];void 0!==l&&(f=b-l,p=_-u,s=Math.sqrt(f*f+p*p),void 0!==c&&(v+=a,Math.acos((c*f+d*p)/(a*s))>e&&(v>g&&(g=v,h=y,m=o),v=0,y=o-i)),a=s,c=f,d=p),l=b,u=_}return(v+=s)>g?[y,o]:[h,m]}var On="line";var Tn={Circle:En,Default:_n,Image:wn,LineString:xn,Polygon:En,Text:function(e){function t(t,n,r,i,o,a){e.call(this,t,n,r,i,o,a),this.declutterGroup_,this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.widths_={},St.o.prune()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.drawText=function(e,t){var n=this.textFillState_,r=this.textStrokeState_,i=this.textState_;if(""!==this.text_&&i&&(n||r)){var o,a,s=this.coordinates.length,l=e.getType(),u=null,c=2,d=2;if(i.placement===On){if(!Object(_e.F)(this.getBufferedMaxExtent(),e.getExtent()))return;var f;if(u=e.getFlatCoordinates(),d=e.getStride(),l==Tt.a.LINE_STRING)f=[u.length];else if(l==Tt.a.MULTI_LINE_STRING)f=e.getEnds();else if(l==Tt.a.POLYGON)f=e.getEnds().slice(0,1);else if(l==Tt.a.MULTI_POLYGON){var p=e.getEndss();for(f=[],o=0,a=p.length;o<a;++o)f.push(p[o][0])}this.beginGeometry(e,t);for(var h,m=i.textAlign,g=0,v=0,y=f.length;v<y;++v){if(null==m){var b=Sn(i.maxAngle,u,g,f[v],d);g=b[0],h=b[1]}else h=f[v];for(o=g;o<h;o+=d)this.coordinates.push(u[o],u[o+1]);c=this.coordinates.length,g=f[v],this.drawChars_(s,c,this.declutterGroup_),s=c}this.endGeometry(e,t)}else{var _=this.getImage(this.text_,this.textKey_,this.fillKey_,this.strokeKey_),w=_.width/this.pixelRatio;switch(l){case Tt.a.POINT:case Tt.a.MULTI_POINT:c=(u=e.getFlatCoordinates()).length;break;case Tt.a.LINE_STRING:u=e.getFlatMidpoint();break;case Tt.a.CIRCLE:u=e.getCenter();break;case Tt.a.MULTI_LINE_STRING:c=(u=e.getFlatMidpoints()).length;break;case Tt.a.POLYGON:if(u=e.getFlatInteriorPoint(),!i.overflow&&u[2]/this.resolution<w)return;d=3;break;case Tt.a.MULTI_POLYGON:var x=e.getFlatInteriorPoints();for(u=[],o=0,a=x.length;o<a;o+=3)(i.overflow||x[o+2]/this.resolution>=w)&&u.push(x[o],x[o+1]);if(0==(c=u.length))return}c=this.appendFlatCoordinates(u,0,c,d,!1,!1),(i.backgroundFill||i.backgroundStroke)&&(this.setFillStrokeStyle(i.backgroundFill,i.backgroundStroke),i.backgroundFill&&(this.updateFillStyle(this.state,this.createFill,e),this.hitDetectionInstructions.push(this.createFill(this.state,e))),i.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(e,t),this.drawTextImage_(_,s,c),this.endGeometry(e,t)}}},t.prototype.getImage=function(e,t,n,r){var i,o=r+t+e+n+this.pixelRatio;if(!St.o.containsKey(o)){var a=r?this.strokeStates[r]||this.textStrokeState_:null,l=n?this.fillStates[n]||this.textFillState_:null,u=this.textStates[t]||this.textState_,c=this.pixelRatio,d=u.scale*c,f=vn[u.textAlign||St.l],p=r&&a.lineWidth?a.lineWidth:0,h=e.split("\n"),m=h.length,g=[],v=function(e,t,n){for(var r=t.length,i=0,o=0;o<r;++o){var a=Object(St.q)(e,t[o]);i=Math.max(i,a),n.push(a)}return i}(u.font,h,g),y=Object(St.p)(u.font),b=y*m,_=v+p,w=Object(be.a)(Math.ceil(_*d),Math.ceil((b+p)*d));i=w.canvas,St.o.set(o,i),1!=d&&w.scale(d,d),w.font=u.font,r&&(w.strokeStyle=a.strokeStyle,w.lineWidth=p,w.lineCap=a.lineCap,w.lineJoin=a.lineJoin,w.miterLimit=a.miterLimit,s.a&&a.lineDash.length&&(w.setLineDash(a.lineDash),w.lineDashOffset=a.lineDashOffset)),n&&(w.fillStyle=l.fillStyle),w.textBaseline="middle",w.textAlign="center";var x,k=.5-f,E=f*i.width/d+k*p;if(r)for(x=0;x<m;++x)w.strokeText(h[x],E+k*g[x],.5*(p+y)+x*y);if(n)for(x=0;x<m;++x)w.fillText(h[x],E+k*g[x],.5*(p+y)+x*y)}return St.o.get(o)},t.prototype.drawTextImage_=function(e,t,n){var r=this.textState_,i=this.textStrokeState_,o=this.pixelRatio,a=vn[r.textAlign||St.l],s=vn[r.textBaseline],l=i&&i.lineWidth?i.lineWidth:0,u=a*e.width/o+2*(.5-a)*l,c=s*e.height/o+2*(.5-s)*l;this.instructions.push([mn.DRAW_IMAGE,t,n,e,(u-this.textOffsetX_)*o,(c-this.textOffsetY_)*o,this.declutterGroup_,e.height,1,0,0,this.textRotateWithView_,this.textRotation_,1,e.width,r.padding==St.j?St.j:r.padding.map((function(e){return e*o})),!!r.backgroundFill,!!r.backgroundStroke]),this.hitDetectionInstructions.push([mn.DRAW_IMAGE,t,n,e,(u-this.textOffsetX_)*o,(c-this.textOffsetY_)*o,this.declutterGroup_,e.height,1,0,0,this.textRotateWithView_,this.textRotation_,1/o,e.width,r.padding,!!r.backgroundFill,!!r.backgroundStroke])},t.prototype.drawChars_=function(e,t,n){var r=this.textStrokeState_,i=this.textState_,o=this.textFillState_,a=this.strokeKey_;r&&(a in this.strokeStates||(this.strokeStates[a]={strokeStyle:r.strokeStyle,lineCap:r.lineCap,lineDashOffset:r.lineDashOffset,lineWidth:r.lineWidth,lineJoin:r.lineJoin,miterLimit:r.miterLimit,lineDash:r.lineDash}));var s=this.textKey_;this.textKey_ in this.textStates||(this.textStates[this.textKey_]={font:i.font,textAlign:i.textAlign||St.l,scale:i.scale});var l=this.fillKey_;o&&(l in this.fillStates||(this.fillStates[l]={fillStyle:o.fillStyle}));var u=this.pixelRatio,c=vn[i.textBaseline],d=this.textOffsetY_*u,f=this.text_,p=i.font,h=i.scale,m=r?r.lineWidth*h/2:0,g=this.widths_[p];g||(this.widths_[p]=g={}),this.instructions.push([mn.DRAW_CHARS,e,t,c,n,i.overflow,l,i.maxAngle,function(e){var t=g[e];return t||(t=g[e]=Object(St.q)(p,e)),t*h*u},d,a,m*u,f,s,1]),this.hitDetectionInstructions.push([mn.DRAW_CHARS,e,t,c,n,i.overflow,l,i.maxAngle,function(e){var t=g[e];return t||(t=g[e]=Object(St.q)(p,e)),t*h},d,a,m,f,s,1/u])},t.prototype.setTextStyle=function(e,t){var n,i,o;if(e){this.declutterGroup_=t;var a=e.getFill();a?((i=this.textFillState_)||(i=this.textFillState_={}),i.fillStyle=Object(Ot.a)(a.getColor()||St.b)):i=this.textFillState_=null;var s=e.getStroke();if(s){(o=this.textStrokeState_)||(o=this.textStrokeState_={});var l=s.getLineDash(),u=s.getLineDashOffset(),c=s.getWidth(),d=s.getMiterLimit();o.lineCap=s.getLineCap()||St.d,o.lineDash=l?l.slice():St.e,o.lineDashOffset=void 0===u?St.f:u,o.lineJoin=s.getLineJoin()||St.g,o.lineWidth=void 0===c?St.h:c,o.miterLimit=void 0===d?St.i:d,o.strokeStyle=Object(Ot.a)(s.getColor()||St.k)}else o=this.textStrokeState_=null;n=this.textState_;var f=e.getFont()||St.c;Object(St.a)(f);var p=e.getScale();n.overflow=e.getOverflow(),n.font=f,n.maxAngle=e.getMaxAngle(),n.placement=e.getPlacement(),n.textAlign=e.getTextAlign(),n.textBaseline=e.getTextBaseline()||St.m,n.backgroundFill=e.getBackgroundFill(),n.backgroundStroke=e.getBackgroundStroke(),n.padding=e.getPadding()||St.j,n.scale=void 0===p?1:p;var h=e.getOffsetX(),m=e.getOffsetY(),g=e.getRotateWithView(),v=e.getRotation();this.text_=e.getText()||"",this.textOffsetX_=void 0===h?0:h,this.textOffsetY_=void 0===m?0:m,this.textRotateWithView_=void 0!==g&&g,this.textRotation_=void 0===v?0:v,this.strokeKey_=o?("string"==typeof o.strokeStyle?o.strokeStyle:Object(r.c)(o.strokeStyle))+o.lineCap+o.lineDashOffset+"|"+o.lineWidth+o.lineJoin+o.miterLimit+"["+o.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?"),this.fillKey_=i?"string"==typeof i.fillStyle?i.fillStyle:"|"+Object(r.c)(i.fillStyle):""}else this.text_=""},t}(_n)},Cn=function(e){function t(t,n,r,i,o,a,s){e.call(this),this.declutterTree_=a,this.declutterGroup_=null,this.tolerance_=t,this.maxExtent_=n,this.overlaps_=o,this.pixelRatio_=i,this.resolution_=r,this.renderBuffer_=s,this.replaysByZIndex_={},this.hitDetectionContext_=Object(be.a)(1,1),this.hitDetectionTransform_=Object(Te.c)()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.addDeclutter=function(e){var t=null;return this.declutterTree_&&(e?(t=this.declutterGroup_)[4]++:(t=this.declutterGroup_=Object(_e.j)()).push(1)),t},t.prototype.clip=function(e,t){var n=this.getClipCoords(t);e.beginPath(),e.moveTo(n[0],n[1]),e.lineTo(n[2],n[3]),e.lineTo(n[4],n[5]),e.lineTo(n[6],n[7]),e.clip()},t.prototype.hasReplays=function(e){for(var t in this.replaysByZIndex_)for(var n=this.replaysByZIndex_[t],r=0,i=e.length;r<i;++r)if(e[r]in n)return!0;return!1},t.prototype.finish=function(){for(var e in this.replaysByZIndex_){var t=this.replaysByZIndex_[e];for(var n in t)t[n].finish()}},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i,o,a){var s,l=2*(r=Math.round(r))+1,u=Object(Te.b)(this.hitDetectionTransform_,r+.5,r+.5,1/t,-1/t,-n,-e[0],-e[1]),c=this.hitDetectionContext_;c.canvas.width!==l||c.canvas.height!==l?(c.canvas.width=l,c.canvas.height=l):c.clearRect(0,0,l,l),void 0!==this.renderBuffer_&&(s=Object(_e.j)(),Object(_e.r)(s,e),Object(_e.c)(s,t*(this.renderBuffer_+r),s));var d,f,p=function(e){if(void 0!==An[e])return An[e];for(var t=2*e+1,n=new Array(t),r=0;r<t;r++)n[r]=new Array(t);var i=e,o=0,a=0;for(;i>=o;)Pn(n,e+i,e+o),Pn(n,e+o,e+i),Pn(n,e-o,e+i),Pn(n,e-i,e+o),Pn(n,e-i,e-o),Pn(n,e-o,e-i),Pn(n,e+o,e-i),Pn(n,e+i,e-o),o++,2*((a+=1+2*o)-i)+1>0&&(a+=1-2*(i-=1));return An[e]=n,n}(r);function h(e){for(var t=c.getImageData(0,0,l,l).data,n=0;n<l;n++)for(var r=0;r<l;r++)if(p[n][r]&&t[4*(r*l+n)+3]>0){var i=void 0;return(!d||f!=tn&&f!=on||-1!==d.indexOf(e))&&(i=o(e)),i||void c.clearRect(0,0,l,l)}}this.declutterTree_&&(d=this.declutterTree_.all().map((function(e){return e.value})));var m,g,v,y,b,_=Object.keys(this.replaysByZIndex_).map(Number);for(_.sort(V.g),m=_.length-1;m>=0;--m){var w=_[m].toString();for(v=this.replaysByZIndex_[w],g=gn.length-1;g>=0;--g)if(void 0!==(y=v[f=gn[g]]))if(!a||f!=tn&&f!=on){if(b=y.replayHitDetection(c,u,n,i,h,s))return b}else{var x=a[w];x?x.push(y,u.slice(0)):a[w]=[y,u.slice(0)]}}},t.prototype.getClipCoords=function(e){var t=this.maxExtent_,n=t[0],r=t[1],i=t[2],o=t[3],a=[n,r,n,o,i,o,i,r];return Object(At.c)(a,0,8,2,e,a),a},t.prototype.getReplay=function(e,t){var n=void 0!==e?e.toString():"0",r=this.replaysByZIndex_[n];void 0===r&&(r={},this.replaysByZIndex_[n]=r);var i=r[t];void 0===i&&(i=new(0,Tn[t])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_,this.overlaps_,this.declutterTree_),r[t]=i);return i},t.prototype.getReplays=function(){return this.replaysByZIndex_},t.prototype.isEmpty=function(){return Object(he.d)(this.replaysByZIndex_)},t.prototype.replay=function(e,t,n,r,i,o,a){var s=Object.keys(this.replaysByZIndex_).map(Number);s.sort(V.g),e.save(),this.clip(e,t);var l,u,c,d,f,p,h=o||gn;for(l=0,u=s.length;l<u;++l){var m=s[l].toString();for(f=this.replaysByZIndex_[m],c=0,d=h.length;c<d;++c){var g=h[c];if(p=f[g],void 0!==p)if(!a||g!=tn&&g!=on)p.replay(e,t,n,r,i);else{var v=a[m];v?v.push(p,t.slice(0)):a[m]=[p,t.slice(0)]}}}e.restore()},t}(Jt),An={0:[[!0]]};function Pn(e,t,n){var r,i=Math.floor(e.length/2);if(t>=i)for(r=i;r<t;r++)e[r][n]=!0;else if(t<i)for(r=t+1;r<i;r++)e[r][n]=!0}var Rn=Cn,Mn={Point:function(e,t,n,r){var i=n.getImage();if(i){if(i.getImageState()!=_t.a.LOADED)return;var o=e.getReplay(n.getZIndex(),tn);o.setImageStyle(i,e.addDeclutter(!1)),o.drawPoint(t,r)}var a=n.getText();if(a){var s=e.getReplay(n.getZIndex(),on);s.setTextStyle(a,e.addDeclutter(!!i)),s.drawText(t,r)}},LineString:function(e,t,n,r){var i=n.getStroke();if(i){var o=e.getReplay(n.getZIndex(),nn);o.setFillStrokeStyle(null,i),o.drawLineString(t,r)}var a=n.getText();if(a){var s=e.getReplay(n.getZIndex(),on);s.setTextStyle(a,e.addDeclutter(!1)),s.drawText(t,r)}},Polygon:function(e,t,n,r){var i=n.getFill(),o=n.getStroke();if(i||o){var a=e.getReplay(n.getZIndex(),rn);a.setFillStrokeStyle(i,o),a.drawPolygon(t,r)}var s=n.getText();if(s){var l=e.getReplay(n.getZIndex(),on);l.setTextStyle(s,e.addDeclutter(!1)),l.drawText(t,r)}},MultiPoint:function(e,t,n,r){var i=n.getImage();if(i){if(i.getImageState()!=_t.a.LOADED)return;var o=e.getReplay(n.getZIndex(),tn);o.setImageStyle(i,e.addDeclutter(!1)),o.drawMultiPoint(t,r)}var a=n.getText();if(a){var s=e.getReplay(n.getZIndex(),on);s.setTextStyle(a,e.addDeclutter(!!i)),s.drawText(t,r)}},MultiLineString:function(e,t,n,r){var i=n.getStroke();if(i){var o=e.getReplay(n.getZIndex(),nn);o.setFillStrokeStyle(null,i),o.drawMultiLineString(t,r)}var a=n.getText();if(a){var s=e.getReplay(n.getZIndex(),on);s.setTextStyle(a,e.addDeclutter(!1)),s.drawText(t,r)}},MultiPolygon:function(e,t,n,r){var i=n.getFill(),o=n.getStroke();if(o||i){var a=e.getReplay(n.getZIndex(),rn);a.setFillStrokeStyle(i,o),a.drawMultiPolygon(t,r)}var s=n.getText();if(s){var l=e.getReplay(n.getZIndex(),on);l.setTextStyle(s,e.addDeclutter(!1)),l.drawText(t,r)}},GeometryCollection:function(e,t,n,r){var i,o,a=t.getGeometriesArray();for(i=0,o=a.length;i<o;++i){(0,Mn[a[i].getType()])(e,a[i],n,r)}},Circle:function(e,t,n,r){var i=n.getFill(),o=n.getStroke();if(i||o){var a=e.getReplay(n.getZIndex(),Zt);a.setFillStrokeStyle(i,o),a.drawCircle(t,r)}var s=n.getText();if(s){var l=e.getReplay(n.getZIndex(),on);l.setTextStyle(s,e.addDeclutter(!1)),l.drawText(t,r)}}};function In(e,t){return parseInt(Object(r.c)(e),10)-parseInt(Object(r.c)(t),10)}function jn(e,t){var n=Dn(e,t);return n*n}function Dn(e,t){return.5*e/t}function Ln(e,t,n,r,i,o){var a=!1,s=n.getImage();if(s){var l=s.getImageState();l==_t.a.LOADED||l==_t.a.ERROR?s.unlistenImageChange(i,o):(l==_t.a.IDLE&&s.load(),l=s.getImageState(),s.listenImageChange(i,o),a=!0)}return function(e,t,n,r){var i=n.getGeometryFunction()(t);if(!i)return;var o=i.getSimplifiedGeometry(r);if(n.getRenderer())!function e(t,n,r,i){if(n.getType()==Tt.a.GEOMETRY_COLLECTION){for(var o=n.getGeometries(),a=0,s=o.length;a<s;++a)e(t,o[a],r,i);return}t.getReplay(r.getZIndex(),en).drawCustom(n,i,r.getRenderer())}(e,o,n,t);else{(0,Mn[o.getType()])(e,o,n,t)}}(e,t,n,r),a}var Nn=function(e){function t(t){e.call(this,t),this.declutterTree_=t.getDeclutter()?Qt()(9,void 0):null,this.dirty_=!1,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=Object(_e.j)(),this.renderedRenderOrder_=null,this.replayGroup_=null,this.replayGroupChanged=!0,this.context=Object(be.a)(),Object(c.a)(St.o,fe.a.CLEAR,this.handleFontsChanged_,this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.disposeInternal=function(){Object(c.c)(St.o,fe.a.CLEAR,this.handleFontsChanged_,this),e.prototype.disposeInternal.call(this)},t.prototype.compose=function(e,t,n){var r=t.extent,i=t.pixelRatio,o=n.managed?t.skippedFeatureUids:{},a=t.viewState,s=a.projection,l=a.rotation,u=s.getExtent(),c=this.getLayer().getSource(),d=this.getTransform(t,0),f=n.extent,p=void 0!==f;p&&this.clip(e,t,f);var h=this.replayGroup_;if(h&&!h.isEmpty()){this.declutterTree_&&this.declutterTree_.clear();var m,g=this.getLayer(),v=0,y=0,b=1!==n.opacity,_=g.hasListener(le.a.RENDER);if(b||_){var w=e.canvas.width,x=e.canvas.height;if(l){var k=Math.round(Math.sqrt(w*w+x*x));v=(k-w)/2,y=(k-x)/2,w=x=k}this.context.canvas.width=w,this.context.canvas.height=x,m=this.context}else m=e;var E=m.globalAlpha;b||(m.globalAlpha=n.opacity),m!=e&&m.translate(v,y);var S=t.viewHints,O=!(S[ye.a.ANIMATING]||S[ye.a.INTERACTING]),T=t.size[0]*i,C=t.size[1]*i;if(Object(St.s)(m,-l,T/2,C/2),h.replay(m,d,l,o,O),c.getWrapX()&&s.canWrapX()&&!Object(_e.g)(u,r)){for(var A,P=r[0],R=Object(_e.E)(u),M=0;P<u[0];)A=R*--M,d=this.getTransform(t,A),h.replay(m,d,l,o,O),P+=R;for(M=0,P=r[2];P>u[2];)A=R*++M,d=this.getTransform(t,A),h.replay(m,d,l,o,O),P-=R}if(Object(St.s)(m,l,T/2,C/2),_&&this.dispatchRenderEvent(m,t,d),m!=e){if(b){var I=e.globalAlpha;e.globalAlpha=n.opacity,e.drawImage(m.canvas,-v,-y),e.globalAlpha=I}else e.drawImage(m.canvas,-v,-y);m.translate(-v,-y)}b||(m.globalAlpha=E)}p&&e.restore()},t.prototype.composeFrame=function(e,t,n){var r=this.getTransform(e,0);this.preCompose(n,e,r),this.compose(n,e,t),this.postCompose(n,e,t,r)},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,i,o){if(this.replayGroup_){var a=t.viewState.resolution,s=t.viewState.rotation,l=this.getLayer(),u={};return this.replayGroup_.forEachFeatureAtCoordinate(e,a,s,n,{},(function(e){var t=Object(r.c)(e);if(!(t in u))return u[t]=!0,i.call(o,e,l)}),null)}},t.prototype.handleFontsChanged_=function(e){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},t.prototype.handleStyleImageChange_=function(e){this.renderIfReadyAndVisible()},t.prototype.prepareFrame=function(e,t){var n=this.getLayer(),r=n.getSource(),i=e.viewHints[ye.a.ANIMATING],o=e.viewHints[ye.a.INTERACTING],a=n.getUpdateWhileAnimating(),s=n.getUpdateWhileInteracting();if(!this.dirty_&&!a&&i||!s&&o)return!0;var l=e.extent,u=e.viewState,c=u.projection,d=u.resolution,f=e.pixelRatio,p=n.getRevision(),h=n.getRenderBuffer(),m=n.getRenderOrder();void 0===m&&(m=In);var g=Object(_e.c)(l,h*d),v=u.projection.getExtent();if(r.getWrapX()&&u.projection.canWrapX()&&!Object(_e.g)(v,e.extent)){var y=Object(_e.E)(v),b=Math.max(Object(_e.E)(g)/2,y);g[0]=v[0]-b,g[2]=v[2]+b}if(!this.dirty_&&this.renderedResolution_==d&&this.renderedRevision_==p&&this.renderedRenderOrder_==m&&Object(_e.g)(this.renderedExtent_,g))return this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var _=new Rn(Dn(d,f),g,d,f,r.getOverlaps(),this.declutterTree_,n.getRenderBuffer());r.loadFeatures(g,d,c);var w=function(e){var t,r=e.getStyleFunction()||n.getStyleFunction();if(r&&(t=r(e,d)),t){var i=this.renderFeature(e,d,f,t,_);this.dirty_=this.dirty_||i}}.bind(this);if(m){var x=[];r.forEachFeatureInExtent(g,(function(e){x.push(e)})),x.sort(m);for(var k=0,E=x.length;k<E;++k)w(x[k])}else r.forEachFeatureInExtent(g,w);return _.finish(),this.renderedResolution_=d,this.renderedRevision_=p,this.renderedRenderOrder_=m,this.renderedExtent_=g,this.replayGroup_=_,this.replayGroupChanged=!0,!0},t.prototype.renderFeature=function(e,t,n,r,i){if(!r)return!1;var o=!1;if(Array.isArray(r))for(var a=0,s=r.length;a<s;++a)o=Ln(i,e,r[a],jn(t,n),this.handleStyleImageChange_,this)||o;else o=Ln(i,e,r,jn(t,n),this.handleStyleImageChange_,this);return o},t}(qt);Nn.handles=function(e){return e.getType()===xt.a.VECTOR},Nn.create=function(e,t){return new Nn(t)};var Fn=Nn,Bn="image",zn="vector",Un=n(30),qn=n(56),Hn={image:[rn,Zt,nn,tn,on],hybrid:[rn,nn]},Wn={image:[en],hybrid:[tn,on,en],vector:gn},Vn=function(e){function t(t){e.call(this,t,!0),this.declutterTree_=t.getDeclutter()?Qt()(9,void 0):null,this.dirty_=!1,this.renderedLayerRevision_,this.tmpTransform_=Object(Te.c)();var n=t.getRenderMode();this.zDirection=n===zn?1:0,n!==zn&&(this.context=Object(be.a)()),Object(c.a)(St.o,fe.a.CLEAR,this.handleFontsChanged_,this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.disposeInternal=function(){Object(c.c)(St.o,fe.a.CLEAR,this.handleFontsChanged_,this),e.prototype.disposeInternal.call(this)},t.prototype.getTile=function(t,n,r,i,o){var a=e.prototype.getTile.call(this,t,n,r,i,o);return a.getState()===de.a.LOADED&&(this.createReplayGroup_(a,i,o),this.context&&this.renderTileImage_(a,i,o)),a},t.prototype.getTileImage=function(e){var t=this.getLayer();return e.getImage(t)},t.prototype.prepareFrame=function(t,n){var r=this.getLayer().getRevision();return this.renderedLayerRevision_!=r&&(this.renderedTiles.length=0),this.renderedLayerRevision_=r,e.prototype.prepareFrame.call(this,t,n)},t.prototype.createReplayGroup_=function(e,t,n){var r=this,i=this.getLayer(),o=i.getRevision(),a=i.getRenderOrder()||null,s=e.getReplayState(i);if(s.dirty||s.renderedRevision!=o||s.renderedRenderOrder!=a){for(var l=i.getSource(),u=l.getTileGrid(),c=l.getTileGridForProjection(n).getResolution(e.tileCoord[0]),d=e.extent,f=function(o,f){var p=e.getTile(e.tileKeys[o]);if(p.getState()==de.a.LOADED){var h=p.tileCoord,m=u.getTileCoordExtent(h),g=Object(_e.B)(d,m),v=Object(_e.p)(m,g)?null:Object(_e.c)(g,i.getRenderBuffer()*c,r.tmpExtent),y=p.getProjection(),b=!1;Object(Un.c)(n,y)||(b=!0,p.setProjection(n)),s.dirty=!1;var _=new Rn(0,g,c,t,l.getOverlaps(),r.declutterTree_,i.getRenderBuffer()),w=jn(c,t),x=function(e){var t,n=e.getStyleFunction()||i.getStyleFunction();if(n&&(t=n(e,c)),t){var r=this.renderFeature(e,w,t,_);this.dirty_=this.dirty_||r,s.dirty=s.dirty||r}},k=p.getFeatures();a&&a!==s.renderedRenderOrder&&k.sort(a);for(var E=0,S=k.length;E<S;++E){var O=k[E];b&&(y.getUnits()==qn.b.TILE_PIXELS&&(y.setWorldExtent(m),y.setExtent(p.getExtent())),O.getGeometry().transform(y,n)),v&&!Object(_e.F)(v,O.getGeometry().getExtent())||x.call(r,O)}_.finish(),p.setReplayGroup(i,e.tileCoord.toString(),_)}},p=0,h=e.tileKeys.length;p<h;++p)f(p);s.renderedRevision=o,s.renderedRenderOrder=a}},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,i,o){var a=t.viewState.resolution,s=t.viewState.rotation;n=null==n?0:n;var l,u,c,d,f=this.getLayer(),p={},h=this.renderedTiles;for(c=0,d=h.length;c<d;++c){var m=h[c];if(l=Object(_e.c)(m.extent,n*a,l),Object(_e.f)(l,e))for(var g=0,v=m.tileKeys.length;g<v;++g){var y=m.getTile(m.tileKeys[g]);if(y.getState()==de.a.LOADED){var b=y.getReplayGroup(f,m.tileCoord.toString());u=u||b.forEachFeatureAtCoordinate(e,a,s,n,{},(function(e){var t=Object(r.c)(e);if(!(t in p))return p[t]=!0,i.call(o,e,f)}),null)}}}return u},t.prototype.getReplayTransform_=function(e,t){var n=this.getLayer().getSource().getTileGrid(),r=e.tileCoord,i=n.getResolution(r[0]),o=t.viewState,a=t.pixelRatio,s=o.resolution/a,l=n.getTileCoordExtent(r,this.tmpExtent),u=o.center,c=Object(_e.C)(l),d=t.size,f=Math.round(a*d[0]/2),p=Math.round(a*d[1]/2);return Object(Te.b)(this.tmpTransform_,f,p,i/s,i/s,o.rotation,(c[0]-u[0])/i,(u[1]-c[1])/i)},t.prototype.handleFontsChanged_=function(e){var t=this.getLayer();t.getVisible()&&void 0!==this.renderedLayerRevision_&&t.changed()},t.prototype.handleStyleImageChange_=function(e){this.renderIfReadyAndVisible()},t.prototype.postCompose=function(t,n,r){var i=this.getLayer(),o=i.getRenderMode();if(o!=Bn){var a,s,l=i.getDeclutter()?{}:null,u=i.getSource(),c=Wn[o],d=n.pixelRatio,f=n.viewState.rotation,p=n.size;f&&(a=Math.round(d*p[0]/2),s=Math.round(d*p[1]/2),Object(St.s)(t,-f,a,s)),l&&this.declutterTree_.clear();for(var h=n.viewHints,m=!(h[ye.a.ANIMATING]||h[ye.a.INTERACTING]),g=this.renderedTiles,v=u.getTileGridForProjection(n.viewState.projection),y=[],b=[],_=g.length-1;_>=0;--_){var w=g[_];if(w.getState()!=de.a.ABORT)for(var x=w.tileCoord,k=v.getTileCoordExtent(x,this.tmpExtent)[0]-w.extent[0],E=void 0,S=0,O=w.tileKeys.length;S<O;++S){var T=w.getTile(w.tileKeys[S]);if(T.getState()==de.a.LOADED){var C=T.getReplayGroup(i,x.toString());if(C&&C.hasReplays(c)){E||(E=this.getTransform(n,k));var A=T.tileCoord[0],P=C.getClipCoords(E);t.save(),t.globalAlpha=r.opacity;for(var R=0,M=y.length;R<M;++R){var I=y[R];A<b[R]&&(t.beginPath(),t.moveTo(P[0],P[1]),t.lineTo(P[2],P[3]),t.lineTo(P[4],P[5]),t.lineTo(P[6],P[7]),t.moveTo(I[6],I[7]),t.lineTo(I[4],I[5]),t.lineTo(I[2],I[3]),t.lineTo(I[0],I[1]),t.clip())}C.replay(t,E,f,{},m,c,l),t.restore(),y.push(P),b.push(A)}}}}l&&function(e,t,n,r){for(var i=Object.keys(e).map(Number).sort(V.g),o={},a=0,s=i.length;a<s;++a)for(var l=e[i[a].toString()],u=0,c=l.length;u<c;){var d=l[u++],f=l[u++];d.replay(t,f,n,o,r)}}(l,t,f,m),f&&Object(St.s)(t,f,a,s)}e.prototype.postCompose.call(this,t,n,r)},t.prototype.renderFeature=function(e,t,n,r){if(!n)return!1;var i=!1;if(Array.isArray(n))for(var o=0,a=n.length;o<a;++o)i=Ln(r,e,n[o],t,this.handleStyleImageChange_,this)||i;else i=Ln(r,e,n,t,this.handleStyleImageChange_,this);return i},t.prototype.renderTileImage_=function(e,t,n){var r=this.getLayer(),i=e.getReplayState(r),o=r.getRevision(),a=Hn[r.getRenderMode()];if(a&&i.renderedTileRevision!==o){i.renderedTileRevision=o;var s=e.wrappedTileCoord,l=s[0],u=r.getSource(),c=u.getTileGridForProjection(n),d=c.getResolution(l),f=e.getContext(r),p=u.getTilePixelSize(l,t,n);f.canvas.width=p[0],f.canvas.height=p[1];for(var h=c.getTileCoordExtent(s,this.tmpExtent),m=0,g=e.tileKeys.length;m<g;++m){var v=e.getTile(e.tileKeys[m]);if(v.getState()==de.a.LOADED){var y=t/d,b=Object(Te.e)(this.tmpTransform_);Object(Te.f)(b,y,-y),Object(Te.h)(b,-h[0],-h[3]),v.getReplayGroup(r,e.tileCoord.toString()).replay(f,b,0,{},!0,a)}}}},t}(Kt);Vn.handles=function(e){return e.getType()===xt.a.VECTOR_TILE},Vn.create=function(e,t){return new Vn(t)};var $n=Vn,Gn=function(e){function t(t){(t=Object(he.a)({},t)).controls||(t.controls=function(e){var t=e||{},n=new i.a;return(void 0===t.zoom||t.zoom)&&n.push(new Ne(t.zoomOptions)),(void 0===t.rotate||t.rotate)&&n.push(new Le(t.rotateOptions)),(void 0===t.attribution||t.attribution)&&n.push(new Ie(t.attributionOptions)),n}()),t.interactions||(t.interactions=function(e){var t=e||{},n=new i.a,r=new Be(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&n.push(new Ke),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&n.push(new qe({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&n.push(new $e({condition:t.onFocusOnly?We.c:void 0,kinetic:r})),(void 0===t.pinchRotate||t.pinchRotate)&&n.push(new gt),(void 0===t.pinchZoom||t.pinchZoom)&&n.push(new vt({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(n.push(new ut),n.push(new dt({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&n.push(new mt({condition:t.onFocusOnly?We.c:void 0,constrainResolution:t.constrainResolution,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&n.push(new rt({duration:t.zoomDuration})),n}()),e.call(this,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.createRenderer=function(){var e=new Ut(this);return e.registerLayerRenderers([Vt,Kt,Fn,$n]),e},t}(Ce);t.default=Gn},function(e,t,n){"use strict";n.r(t),n.d(t,"SortableContainer",(function(){return ve})),n.d(t,"sortableContainer",(function(){return ve})),n.d(t,"SortableElement",(function(){return _e})),n.d(t,"sortableElement",(function(){return _e})),n.d(t,"SortableHandle",(function(){return le})),n.d(t,"sortableHandle",(function(){return le})),n.d(t,"arrayMove",(function(){return T}));var r=n(32);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(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 s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function f(e){return(f="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)}var p=n(25);function h(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?Object(p.a)(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(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&&g(e,t)}var y=n(1),b=n(2),_=n.n(b),w=n(49),x=n(38),k=n.n(x);function E(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))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.")}()}var S=function(){function e(){u(this,e),s(this,"refs",{})}return d(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find((function(t){return t.node.sortableInfo.index==e.active.index}))}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(O)}}]),e}();function O(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function T(e,t,n){return(e=e.slice()).splice(n<0?e.length+n:n,0,e.splice(t,1)[0]),e}function C(e,t){return Object.keys(e).reduce((function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n}),{})}var A={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},P=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function R(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}function M(e,t){e.style["".concat(P,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function I(e,t){e.style["".concat(P,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function j(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function D(e,t,n){return Math.max(e,Math.min(n,t))}function L(e){return"px"===e.substr(-2)?parseFloat(e):0}function N(e){var t=window.getComputedStyle(e);return{bottom:L(t.marginBottom),left:L(t.marginLeft),right:L(t.marginRight),top:L(t.marginTop)}}function F(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function B(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function z(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function U(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:q(e.parentNode,t,r)}}function H(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}function W(e){var t=e.lockOffset,n=e.width,r=e.height,i=t,o=t,a="px";if("string"==typeof t){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);k()(null!==s,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),i=parseFloat(t),o=parseFloat(t),a=s[1]}return k()(isFinite(i)&&isFinite(o),"lockOffset value should be a finite. Given %s",t),"%"===a&&(i=i*n/100,o=o*r/100),{x:i,y:o}}function V(e){var t=e.height,n=e.width,r=e.lockOffset,i=Array.isArray(r)?r:[r,r];k()(2===i.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var o=a(i,2),s=o[0],l=o[1];return[W({height:t,lockOffset:s,width:n}),W({height:t,lockOffset:l,width:n})]}function $(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find((function(e){return n.test(t[e])}))}(e)?e:$(e.parentNode):null}function G(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:L(t.gridColumnGap),y:L(t.gridRowGap)}:{x:0,y:0}}var K=27,Y=32,Q=37,X=38,J=39,Z=40,ee="A",te="BUTTON",ne="CANVAS",re="INPUT",ie="OPTION",oe="TEXTAREA",ae="SELECT";function se(e){var t="input, textarea, select, canvas, [contenteditable]",n=e.querySelectorAll(t),r=e.cloneNode(!0);return E(r.querySelectorAll(t)).forEach((function(e,t){("file"!==e.type&&(e.value=n[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===ne&&n[t].width>0&&n[t].height>0)&&e.getContext("2d").drawImage(n[t],0,0)})),r}function le(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return u(this,n),h(this,m(n).apply(this,arguments))}return v(n,t),d(n,[{key:"componentDidMount",value:function(){Object(w.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return k()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=i.withRef?"wrappedInstance":null;return Object(y.createElement)(e,Object(r.a)({ref:t},this.props))}}]),n}(y.Component),s(t,"displayName",F("sortableHandle",e)),n}function ue(e){return null!=e.sortableHandle}var ce=function(){function e(t,n){u(this,e),this.container=t,this.onScrollCallback=n}return d(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,i=e.maxTranslate,o=e.width,a=e.height,s={x:0,y:0},l={x:1,y:1},u=10,c=10,d=this.container,f=d.scrollTop,p=d.scrollLeft,h=d.scrollHeight,m=d.scrollWidth,g=0===f,v=h-f-d.clientHeight==0,y=0===p,b=m-p-d.clientWidth==0;n.y>=i.y-a/2&&!v?(s.y=1,l.y=c*Math.abs((i.y-a/2-n.y)/a)):n.x>=i.x-o/2&&!b?(s.x=1,l.x=u*Math.abs((i.x-o/2-n.x)/o)):n.y<=r.y+a/2&&!g?(s.y=-1,l.y=c*Math.abs((n.y-a/2-r.y)/a)):n.x<=r.x+o/2&&!y&&(s.x=-1,l.x=u*Math.abs((n.x-o/2-r.x)/o)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===s.x&&0===s.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:l.x*s.x,top:l.y*s.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}();var de={axis:_.a.oneOf(["x","y","xy"]),contentWindow:_.a.any,disableAutoscroll:_.a.bool,distance:_.a.number,getContainer:_.a.func,getHelperDimensions:_.a.func,helperClass:_.a.string,helperContainer:_.a.oneOfType([_.a.func,"undefined"==typeof HTMLElement?_.a.any:_.a.instanceOf(HTMLElement)]),hideSortableGhost:_.a.bool,keyboardSortingTransitionDuration:_.a.number,lockAxis:_.a.string,lockOffset:_.a.oneOfType([_.a.number,_.a.string,_.a.arrayOf(_.a.oneOfType([_.a.number,_.a.string]))]),lockToContainerEdges:_.a.bool,onSortEnd:_.a.func,onSortMove:_.a.func,onSortOver:_.a.func,onSortStart:_.a.func,pressDelay:_.a.number,pressThreshold:_.a.number,keyCodes:_.a.shape({lift:_.a.arrayOf(_.a.number),drop:_.a.arrayOf(_.a.number),cancel:_.a.arrayOf(_.a.number),up:_.a.arrayOf(_.a.number),down:_.a.arrayOf(_.a.number)}),shouldCancelStart:_.a.func,transitionDuration:_.a.number,updateBeforeSortStart:_.a.func,useDragHandle:_.a.bool,useWindowAsScrollContainer:_.a.bool},fe={lift:[Y],drop:[Y],cancel:[K],up:[X,Q],down:[Z,J]},pe={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:fe,shouldCancelStart:function(e){return-1!==[re,oe,ae,ie,te].indexOf(e.target.tagName)||!!j(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},he=Object.keys(de);function me(e){k()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function ge(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}function ve(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;return u(this,n),t=h(this,m(n).call(this,e)),s(Object(p.a)(Object(p.a)(t)),"state",{}),s(Object(p.a)(Object(p.a)(t)),"handleStart",(function(e){var n=t.props,r=n.distance,i=n.shouldCancelStart;if(2!==e.button&&!i(e)){t.touched=!0,t.position=z(e);var o=j(e.target,(function(e){return null!=e.sortableInfo}));if(o&&o.sortableInfo&&t.nodeIsChild(o)&&!t.state.sorting){var a=t.props.useDragHandle,s=o.sortableInfo,l=s.index,u=s.collection;if(s.disabled)return;if(a&&!j(e.target,ue))return;t.manager.active={collection:u,index:l},U(e)||e.target.tagName!==ee||e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout((function(){return t.handlePress(e)}),t.props.pressDelay))}}})),s(Object(p.a)(Object(p.a)(t)),"nodeIsChild",(function(e){return e.sortableInfo.manager===t.manager})),s(Object(p.a)(Object(p.a)(t)),"handleMove",(function(e){var n=t.props,r=n.distance,i=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var o=z(e),a={x:t.position.x-o.x,y:t.position.y-o.y},s=Math.abs(a.x)+Math.abs(a.y);t.delta=a,r||i&&!(s>=i)?r&&s>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}})),s(Object(p.a)(Object(p.a)(t)),"handleEnd",(function(){t.touched=!1,t.cancel()})),s(Object(p.a)(Object(p.a)(t)),"cancel",(function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)})),s(Object(p.a)(Object(p.a)(t)),"handlePress",(function(e){try{var n=t.manager.getActive(),r=function(){if(n){var r=function(){var n=p.sortableInfo.index,r=N(p),i=G(t.container),c=t.scrollContainer.getBoundingClientRect(),g=a({index:n,node:p,collection:h});if(t.node=p,t.margin=r,t.gridGap=i,t.width=g.width,t.height=g.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=p.getBoundingClientRect(),t.containerBoundingRect=c,t.index=n,t.newIndex=n,t.axis={x:o.indexOf("x")>=0,y:o.indexOf("y")>=0},t.offsetEdge=q(p,t.container),t.initialOffset=z(m?l({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild(se(p)),R(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-r.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-r.top,"px"),width:"".concat(t.width,"px")}),m&&t.helper.focus(),u&&(t.sortableGhost=p,R(p,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},m){var v=f?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,y=v.top,b=v.left,_=v.width,w=y+v.height,x=b+_;t.axis.x&&(t.minTranslate.x=b-t.boundingClientRect.left,t.maxTranslate.x=x-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=y-t.boundingClientRect.top,t.maxTranslate.y=w-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(f?0:c.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(f?t.contentWindow.innerWidth:c.left+c.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(f?0:c.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(f?t.contentWindow.innerHeight:c.top+c.height)-t.boundingClientRect.top-t.height/2);s&&s.split(" ").forEach((function(e){return t.helper.classList.add(e)})),t.listenerNode=e.touches?p:t.contentWindow,m?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(A.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),A.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}))),t.setState({sorting:!0,sortingIndex:n}),d&&d({node:p,index:n,collection:h,isKeySorting:m,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),m&&t.keyMove(0)},i=t.props,o=i.axis,a=i.getHelperDimensions,s=i.helperClass,u=i.hideSortableGhost,c=i.updateBeforeSortStart,d=i.onSortStart,f=i.useWindowAsScrollContainer,p=n.node,h=n.collection,m=t.manager.isKeySorting,g=function(){if("function"==typeof c){t._awaitingUpdateBeforeSortStart=!0;var n=ge((function(){var t=p.sortableInfo.index;return Promise.resolve(c({collection:h,index:t,node:p,isKeySorting:m},e)).then((function(){}))}),(function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n}));if(n&&n.then)return n.then((function(){}))}}();return g&&g.then?g.then(r):r()}}();return Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),s(Object(p.a)(Object(p.a)(t)),"handleSortMove",(function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)})),s(Object(p.a)(Object(p.a)(t)),"handleSortEnd",(function(e){var n=t.props,r=n.hideSortableGhost,i=n.onSortEnd,o=t.manager,a=o.active.collection,s=o.isKeySorting,l=t.manager.getOrderedRefs();t.listenerNode&&(s?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(A.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),A.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})))),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&R(t.sortableGhost,{opacity:"",visibility:""});for(var u=0,c=l.length;u<c;u++){var d=l[u],f=d.node;d.edgeOffset=null,d.boundingClientRect=null,M(f,null),I(f,null),d.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof i&&i({collection:a,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:s,nodes:l},e),t.touched=!1})),s(Object(p.a)(Object(p.a)(t)),"autoscroll",(function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var r=l({},t.translate),i=0,o=0;return t.axis.x&&(r.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),i=t.translate.x-r.x),t.axis.y&&(r.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),o=t.translate.y-r.y),t.translate=r,M(t.helper,t.translate),t.scrollContainer.scrollLeft+=i,void(t.scrollContainer.scrollTop+=o)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}})),s(Object(p.a)(Object(p.a)(t)),"onAutoScroll",(function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()})),s(Object(p.a)(Object(p.a)(t)),"handleKeyDown",(function(e){var n=e.keyCode,r=t.props,i=r.shouldCancelStart,o=r.keyCodes,a=l({},fe,void 0===o?{}:o);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||a.lift.includes(n)&&!i(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),a.lift.includes(n)&&!t.manager.active?t.keyLift(e):a.drop.includes(n)&&t.manager.active?t.keyDrop(e):a.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):a.up.includes(n)?t.keyMove(-1):a.down.includes(n)&&t.keyMove(1))})),s(Object(p.a)(Object(p.a)(t)),"keyLift",(function(e){var n=e.target,r=j(n,(function(e){return null!=e.sortableInfo})).sortableInfo,i=r.index,o=r.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:i,collection:o},t.handlePress(e)})),s(Object(p.a)(Object(p.a)(t)),"keyMove",(function(e){var n=t.manager.getOrderedRefs(),r=n[n.length-1].node.sortableInfo.index,i=t.newIndex+e,o=t.newIndex;if(!(i<0||i>r)){t.prevIndex=o,t.newIndex=i;var a=H(t.newIndex,t.prevIndex,t.index),s=n.find((function(e){return e.node.sortableInfo.index===a})),l=s.node,u=t.containerScrollDelta,c=s.boundingClientRect||B(l,u),d=s.translate||{x:0,y:0},f=c.top+d.y-u.top,p=c.left+d.x-u.left,h=o<i,m=h&&t.axis.x?l.offsetWidth-t.width:0,g=h&&t.axis.y?l.offsetHeight-t.height:0;t.handleSortMove({pageX:p+m,pageY:f+g,ignoreTransition:0===e})}})),s(Object(p.a)(Object(p.a)(t)),"keyDrop",(function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()})),s(Object(p.a)(Object(p.a)(t)),"handleKeyEnd",(function(e){t.manager.active&&t.keyDrop(e)})),s(Object(p.a)(Object(p.a)(t)),"isValidSortingTarget",(function(e){var n=t.props.useDragHandle,r=e.target,i=j(r,(function(e){return null!=e.sortableInfo}));return i&&i.sortableInfo&&!i.sortableInfo.disabled&&(n?ue(r):r.sortableInfo)})),me(e),t.manager=new S,t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return v(n,t),d(n,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then((function(n){e.container=n,e.document=e.container.ownerDocument||document;var r=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof r?r():r,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:$(e.container)||e.container,e.autoScroller=new ce(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach((function(t){return A[t].forEach((function(n){return e.container.addEventListener(n,e.events[t],!1)}))})),e.container.addEventListener("keydown",e.handleKeyDown)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach((function(t){return A[t].forEach((function(n){return e.container.removeEventListener(n,e.events[t])}))})),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockOffset,i=t.lockToContainerEdges,o=t.transitionDuration,s=t.keyboardSortingTransitionDuration,l=void 0===s?o:s,u=this.manager.isKeySorting,c=e.ignoreTransition,d=z(e),f={x:d.x-this.initialOffset.x,y:d.y-this.initialOffset.y};if(f.y-=window.pageYOffset-this.initialWindowScroll.top,f.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=f,i){var p=a(V({height:this.height,lockOffset:r,width:this.width}),2),h=p[0],m=p[1],g={x:this.width/2-h.x,y:this.height/2-h.y},v={x:this.width/2-m.x,y:this.height/2-m.y};f.x=D(this.minTranslate.x+g.x,this.maxTranslate.x-v.x,f.x),f.y=D(this.minTranslate.y+g.y,this.maxTranslate.y-v.y,f.y)}"x"===n?f.y=0:"y"===n&&(f.x=0),u&&l&&!c&&I(this.helper,l),M(this.helper,f)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=e.onSortOver,i=this.containerScrollDelta,o=this.windowScrollDelta,a=this.manager.getOrderedRefs(),s=this.offsetEdge.left+this.translate.x+i.left,l=this.offsetEdge.top+this.translate.y+i.top,u=this.manager.isKeySorting,c=this.newIndex;this.newIndex=null;for(var d=0,f=a.length;d<f;d++){var p=a[d].node,h=p.sortableInfo.index,m=p.offsetWidth,g=p.offsetHeight,v={height:this.height>g?g/2:this.height/2,width:this.width>m?m/2:this.width/2},y=u&&h>this.index&&h<=c,b=u&&h<this.index&&h>=c,_={x:0,y:0},w=a[d].edgeOffset;w||(w=q(p,this.container),a[d].edgeOffset=w,u&&(a[d].boundingClientRect=B(p,i)));var x=d<a.length-1&&a[d+1],k=d>0&&a[d-1];x&&!x.edgeOffset&&(x.edgeOffset=q(x.node,this.container),u&&(x.boundingClientRect=B(x.node,i))),h!==this.index?(t&&I(p,t),this.axis.x?this.axis.y?b||h<this.index&&(s+o.left-v.width<=w.left&&l+o.top<=w.top+v.height||l+o.top+v.height<=w.top)?(_.x=this.width+this.marginOffset.x,w.left+_.x>this.containerBoundingRect.width-v.width&&x&&(_.x=x.edgeOffset.left-w.left,_.y=x.edgeOffset.top-w.top),null===this.newIndex&&(this.newIndex=h)):(y||h>this.index&&(s+o.left+v.width>=w.left&&l+o.top+v.height>=w.top||l+o.top+v.height>=w.top+g))&&(_.x=-(this.width+this.marginOffset.x),w.left+_.x<this.containerBoundingRect.left+v.width&&k&&(_.x=k.edgeOffset.left-w.left,_.y=k.edgeOffset.top-w.top),this.newIndex=h):y||h>this.index&&s+o.left+v.width>=w.left?(_.x=-(this.width+this.marginOffset.x),this.newIndex=h):(b||h<this.index&&s+o.left<=w.left+v.width)&&(_.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=h)):this.axis.y&&(y||h>this.index&&l+o.top+v.height>=w.top?(_.y=-(this.height+this.marginOffset.y),this.newIndex=h):(b||h<this.index&&l+o.top<=w.top+v.height)&&(_.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=h))),M(p,_),a[d].translate=_):n&&(this.sortableGhost=p,R(p,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),u&&(this.newIndex=c);var E=u?this.prevIndex:c;r&&this.newIndex!==E&&r({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:E,isKeySorting:u,nodes:a,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return k()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.refs.wrappedInstance}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?Object(w.findDOMNode)(this):e(i.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=i.withRef?"wrappedInstance":null;return Object(y.createElement)(e,Object(r.a)({ref:t},C(this.props,he)))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(y.Component),s(t,"displayName",F("sortableList",e)),s(t,"defaultProps",pe),s(t,"propTypes",de),s(t,"childContextTypes",{manager:_.a.object.isRequired}),n}var ye={index:_.a.number.isRequired,collection:_.a.oneOfType([_.a.number,_.a.string]),disabled:_.a.bool},be=Object.keys(ye);function _e(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return u(this,n),h(this,m(n).apply(this,arguments))}return v(n,t),d(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index,i=Object(w.findDOMNode)(this);i.sortableInfo={collection:t,disabled:n,index:r,manager:this.context.manager},this.node=i,this.ref={node:i},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return k()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=i.withRef?"wrappedInstance":null;return Object(y.createElement)(e,Object(r.a)({ref:t},C(this.props,be)))}}]),n}(y.Component),s(t,"displayName",F("sortableElement",e)),s(t,"contextTypes",{manager:_.a.object.isRequired}),s(t,"propTypes",ye),s(t,"defaultProps",{collection:0}),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"ATTRIBUTION",(function(){return Y}));var r=n(88),i=n(6),o=n(17),a=n(54),s=n(94),l=n(14),u=function(e){function t(t,n,r){e.call(this);var i=r||{};this.tileCoord=t,this.state=n,this.interimTile=null,this.key="",this.transition_=void 0===i.transition?250:i.transition,this.transitionStarts_={}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.changed=function(){this.dispatchEvent(l.a.CHANGE)},t.prototype.getKey=function(){return this.key+"/"+this.tileCoord},t.prototype.getInterimTile=function(){if(!this.interimTile)return this;var e=this.interimTile;do{if(e.getState()==o.a.LOADED)return e;e=e.interimTile}while(e);return this},t.prototype.refreshInterimChain=function(){if(this.interimTile){var e=this.interimTile,t=this;do{if(e.getState()==o.a.LOADED){e.interimTile=null;break}e.getState()==o.a.LOADING?t=e:e.getState()==o.a.IDLE?t.interimTile=e.interimTile:t=e,e=t.interimTile}while(e)}},t.prototype.getTileCoord=function(){return this.tileCoord},t.prototype.getState=function(){return this.state},t.prototype.setState=function(e){this.state=e,this.changed()},t.prototype.load=function(){},t.prototype.getAlpha=function(e,t){if(!this.transition_)return 1;var n=this.transitionStarts_[e];if(n){if(-1===n)return 1}else n=t,this.transitionStarts_[e]=n;var r=t-n+1e3/60;return r>=this.transition_?1:Object(a.a)(r/this.transition_)},t.prototype.inTransition=function(e){return!!this.transition_&&-1!==this.transitionStarts_[e]},t.prototype.endTransition=function(e){this.transition_&&(this.transitionStarts_[e]=-1)},t}(s.a),c=n(34),d=n(9);function f(){var e=Object(c.a)(1,1);return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),e.canvas}var p=function(e){function t(t,n,r,i,o,a){e.call(this,t,n,a),this.crossOrigin_=i,this.src_=r,this.image_=new Image,null!==i&&(this.image_.crossOrigin=i),this.imageListenerKeys_=null,this.tileLoadFunction_=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.disposeInternal=function(){this.state==o.a.LOADING&&(this.unlistenImage_(),this.image_=f()),this.interimTile&&this.interimTile.dispose(),this.state=o.a.ABORT,this.changed(),e.prototype.disposeInternal.call(this)},t.prototype.getImage=function(){return this.image_},t.prototype.getKey=function(){return this.src_},t.prototype.handleImageError_=function(){this.state=o.a.ERROR,this.unlistenImage_(),this.image_=f(),this.changed()},t.prototype.handleImageLoad_=function(){var e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=o.a.LOADED:this.state=o.a.EMPTY,this.unlistenImage_(),this.changed()},t.prototype.load=function(){this.state==o.a.ERROR&&(this.state=o.a.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==o.a.IDLE&&(this.state=o.a.LOADING,this.changed(),this.imageListenerKeys_=[Object(d.b)(this.image_,l.a.ERROR,this.handleImageError_,this),Object(d.b)(this.image_,l.a.LOAD,this.handleImageLoad_,this)],this.tileLoadFunction_(this,this.src_))},t.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(d.e),this.imageListenerKeys_=null},t}(u);function h(e,t,n,r){return void 0!==r?(r[0]=e,r[1]=t,r[2]=n,r):[e,t,n]}function m(e,t,n){return e+"/"+t+"/"+n}function g(e){return m(e[0],e[1],e[2])}var v=function(e){function t(t){e.call(this,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.expireCache=function(e){for(;this.canExpireCache();){var t=this.peekLast(),n=t.tileCoord[0].toString();if(n in e&&e[n].contains(t.tileCoord))break;this.pop().dispose()}},t.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var e=function(e){return e.split("/").map(Number)}(this.peekFirstKey())[0];this.forEach((function(t){t.tileCoord[0]!==e&&(this.remove(g(t.tileCoord)),t.dispose())}),this)}},t}(n(300).a),y=n(30),b=n(3),_=n(15);function w(e,t,n,r){var i=n-e,o=r-t,a=Math.sqrt(i*i+o*o);return[Math.round(n+i/a),Math.round(r+o/a)]}var x=function(e,t,n,r,i){this.sourceProj_=e,this.targetProj_=t;var o={},a=Object(y.f)(this.targetProj_,this.sourceProj_);this.transformInv_=function(e){var t=e[0]+"/"+e[1];return o[t]||(o[t]=a(e)),o[t]},this.maxSourceExtent_=r,this.errorThresholdSquared_=i*i,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&Object(b.E)(r)==Object(b.E)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(b.E)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(b.E)(this.targetProj_.getExtent()):null;var s=Object(b.C)(n),l=Object(b.D)(n),u=Object(b.w)(n),c=Object(b.v)(n),d=this.transformInv_(s),f=this.transformInv_(l),p=this.transformInv_(u),h=this.transformInv_(c);if(this.addQuad_(s,l,u,c,d,f,p,h,10),this.wrapsXInSource_){var m=1/0;this.triangles_.forEach((function(e,t,n){m=Math.min(m,e.source[0][0],e.source[1][0],e.source[2][0])})),this.triangles_.forEach(function(e){if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-m>this.sourceWorldWidth_/2){var t=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];t[0][0]-m>this.sourceWorldWidth_/2&&(t[0][0]-=this.sourceWorldWidth_),t[1][0]-m>this.sourceWorldWidth_/2&&(t[1][0]-=this.sourceWorldWidth_),t[2][0]-m>this.sourceWorldWidth_/2&&(t[2][0]-=this.sourceWorldWidth_);var n=Math.min(t[0][0],t[1][0],t[2][0]);Math.max(t[0][0],t[1][0],t[2][0])-n<this.sourceWorldWidth_/2&&(e.source=t)}}.bind(this))}o={}};x.prototype.addTriangle_=function(e,t,n,r,i,o){this.triangles_.push({source:[r,i,o],target:[e,t,n]})},x.prototype.addQuad_=function(e,t,n,r,i,o,a,s,l){var u=Object(b.b)([i,o,a,s]),c=this.sourceWorldWidth_?Object(b.E)(u)/this.sourceWorldWidth_:null,d=this.sourceWorldWidth_,f=this.sourceProj_.canWrapX()&&c>.5&&c<1,p=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var h=Object(b.b)([e,t,n,r]);p=Object(b.E)(h)/this.targetWorldWidth_>.25||p}!f&&this.sourceProj_.isGlobal()&&c&&(p=c>.25||p)}if(p||!this.maxSourceExtent_||Object(b.F)(u,this.maxSourceExtent_)){if(!(p||isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1]))){if(!(l>0))return;p=!0}if(l>0){if(!p){var m,g=[(e[0]+n[0])/2,(e[1]+n[1])/2],v=this.transformInv_(g);if(f)m=(Object(_.d)(i[0],d)+Object(_.d)(a[0],d))/2-Object(_.d)(v[0],d);else m=(i[0]+a[0])/2-v[0];var y=(i[1]+a[1])/2-v[1];p=m*m+y*y>this.errorThresholdSquared_}if(p){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){var w=[(t[0]+n[0])/2,(t[1]+n[1])/2],x=this.transformInv_(w),k=[(r[0]+e[0])/2,(r[1]+e[1])/2],E=this.transformInv_(k);this.addQuad_(e,t,w,k,i,o,x,E,l-1),this.addQuad_(k,w,n,r,E,x,a,s,l-1)}else{var S=[(e[0]+t[0])/2,(e[1]+t[1])/2],O=this.transformInv_(S),T=[(n[0]+r[0])/2,(n[1]+r[1])/2],C=this.transformInv_(T);this.addQuad_(e,S,T,r,i,O,C,s,l-1),this.addQuad_(S,t,n,T,O,o,a,C,l-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(e,n,r,i,a,s),this.addTriangle_(e,t,n,i,o,a)}},x.prototype.calculateSourceExtent=function(){var e=Object(b.j)();return this.triangles_.forEach((function(t,n,r){var i=t.source;Object(b.r)(e,i[0]),Object(b.r)(e,i[1]),Object(b.r)(e,i[2])})),e},x.prototype.getTriangles=function(){return this.triangles_};var k=x,E=function(e){function t(t,n,i,a,s,l,u,c,d,f,p){e.call(this,s,o.a.IDLE),this.renderEdges_=void 0!==p&&p,this.pixelRatio_=u,this.gutter_=c,this.canvas_=null,this.sourceTileGrid_=n,this.targetTileGrid_=a,this.wrappedTileCoord_=l||s,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;var h=a.getTileCoordExtent(this.wrappedTileCoord_),m=this.targetTileGrid_.getExtent(),g=this.sourceTileGrid_.getExtent(),v=m?Object(b.B)(h,m):h;if(0!==Object(b.u)(v)){var w=t.getExtent();w&&(g=g?Object(b.B)(g,w):w);var x=a.getResolution(this.wrappedTileCoord_[0]),E=function(e,t,n,r){var i=Object(y.g)(n,t,e),o=Object(y.e)(t,r,n),a=t.getMetersPerUnit();void 0!==a&&(o*=a);var s=e.getMetersPerUnit();void 0!==s&&(o/=s);var l=e.getExtent();if(!l||Object(b.f)(l,i)){var u=Object(y.e)(e,o,i)/o;isFinite(u)&&u>0&&(o/=u)}return o}(t,i,Object(b.x)(v),x);if(!isFinite(E)||E<=0)this.state=o.a.EMPTY;else{var S=void 0!==f?f:r.b;if(this.triangulation_=new k(t,i,v,g,E*S),0!==this.triangulation_.getTriangles().length){this.sourceZ_=n.getZForResolution(E);var O=this.triangulation_.calculateSourceExtent();if(g&&(t.canWrapX()?(O[1]=Object(_.a)(O[1],g[1],g[3]),O[3]=Object(_.a)(O[3],g[1],g[3])):O=Object(b.B)(O,g)),Object(b.u)(O)){for(var T=n.getTileRangeForExtentAndZ(O,this.sourceZ_),C=T.minX;C<=T.maxX;C++)for(var A=T.minY;A<=T.maxY;A++){var P=d(this.sourceZ_,C,A,u);P&&this.sourceTiles_.push(P)}0===this.sourceTiles_.length&&(this.state=o.a.EMPTY)}else this.state=o.a.EMPTY}else this.state=o.a.EMPTY}}else this.state=o.a.EMPTY}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.disposeInternal=function(){this.state==o.a.LOADING&&this.unlistenSources_(),e.prototype.disposeInternal.call(this)},t.prototype.getImage=function(){return this.canvas_},t.prototype.reproject_=function(){var e=[];if(this.sourceTiles_.forEach(function(t,n,r){t&&t.getState()==o.a.LOADED&&e.push({extent:this.sourceTileGrid_.getTileCoordExtent(t.tileCoord),image:t.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===e.length)this.state=o.a.ERROR;else{var t=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(t),r="number"==typeof n?n:n[0],i="number"==typeof n?n:n[1],a=this.targetTileGrid_.getResolution(t),s=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(e,t,n,r,i,o,a,s,l,u,d){var f=Object(c.a)(Math.round(n*e),Math.round(n*t));if(0===l.length)return f.canvas;f.scale(n,n);var p=Object(b.j)();l.forEach((function(e,t,n){Object(b.q)(p,e.extent)}));var h=Object(b.E)(p),m=Object(b.A)(p),g=Object(c.a)(Math.round(n*h/r),Math.round(n*m/r)),v=n/r;l.forEach((function(e,t,n){var r=e.extent[0]-p[0],i=-(e.extent[3]-p[3]),o=Object(b.E)(e.extent),a=Object(b.A)(e.extent);g.drawImage(e.image,u,u,e.image.width-2*u,e.image.height-2*u,r*v,i*v,o*v,a*v)}));var y=Object(b.C)(a);return s.getTriangles().forEach((function(e,t,i){var a=e.source,s=e.target,l=a[0][0],u=a[0][1],c=a[1][0],d=a[1][1],h=a[2][0],m=a[2][1],v=(s[0][0]-y[0])/o,b=-(s[0][1]-y[1])/o,x=(s[1][0]-y[0])/o,k=-(s[1][1]-y[1])/o,E=(s[2][0]-y[0])/o,S=-(s[2][1]-y[1])/o,O=l,T=u;l=0,u=0;var C=[[c-=O,d-=T,0,0,x-v],[h-=O,m-=T,0,0,E-v],[0,0,c,d,k-b],[0,0,h,m,S-b]],A=Object(_.e)(C);if(A){f.save(),f.beginPath();var P=(v+x+E)/3,R=(b+k+S)/3,M=w(P,R,v,b),I=w(P,R,x,k),j=w(P,R,E,S);f.moveTo(I[0],I[1]),f.lineTo(M[0],M[1]),f.lineTo(j[0],j[1]),f.clip(),f.transform(A[0],A[2],A[1],A[3],v,b),f.translate(p[0]-O,p[3]-T),f.scale(r/n,-r/n),f.drawImage(g.canvas,0,0),f.restore()}})),d&&(f.save(),f.strokeStyle="black",f.lineWidth=1,s.getTriangles().forEach((function(e,t,n){var r=e.target,i=(r[0][0]-y[0])/o,a=-(r[0][1]-y[1])/o,s=(r[1][0]-y[0])/o,l=-(r[1][1]-y[1])/o,u=(r[2][0]-y[0])/o,c=-(r[2][1]-y[1])/o;f.beginPath(),f.moveTo(s,l),f.lineTo(i,a),f.lineTo(u,c),f.closePath(),f.stroke()})),f.restore()),f.canvas}(r,i,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),a,l,this.triangulation_,e,this.gutter_,this.renderEdges_),this.state=o.a.LOADED}this.changed()},t.prototype.load=function(){if(this.state==o.a.IDLE){this.state=o.a.LOADING,this.changed();var e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(t,n,r){var i=t.getState();if(i==o.a.IDLE||i==o.a.LOADING){e++;var a=Object(d.a)(t,l.a.CHANGE,(function(n){var r=t.getState();r!=o.a.LOADED&&r!=o.a.ERROR&&r!=o.a.EMPTY||(Object(d.e)(a),0===--e&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(a)}}.bind(this)),this.sourceTiles_.forEach((function(e,t,n){e.getState()==o.a.IDLE&&e.load()})),0===e&&setTimeout(this.reproject_.bind(this),0)}},t.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(d.e),this.sourcesListenerKeys_=null},t}(u),S=n(27);function O(e,t){var n=/\{z\}/g,r=/\{x\}/g,i=/\{y\}/g,o=/\{-y\}/g;return function(a,s,l){return a?e.replace(n,a[0].toString()).replace(r,a[1].toString()).replace(i,(function(){return(-a[2]-1).toString()})).replace(o,(function(){var e=a[0],n=t.getFullTileRange(e);return Object(S.a)(n,55),(n.getHeight()+a[2]).toString()})):void 0}}function T(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=O(e[i],t);return function(e){if(1===e.length)return e[0];return function(t,n,r){if(t){var i=function(e){return(e[1]<<e[0])+e[2]}(t),o=Object(_.d)(i,e.length);return e[o](t,n,r)}}}(r)}function C(e,t,n){}var A=n(50),P=n(91),R=n(305),M=n(175),I=n(176),j=n(56),D=n(177),L=n(26),N=[0,0,0],F=function(e){var t;if(this.minZoom=void 0!==e.minZoom?e.minZoom:0,this.resolutions_=e.resolutions,Object(S.a)(Object(L.e)(this.resolutions_,(function(e,t){return t-e}),!0),17),!e.origins)for(var n=0,r=this.resolutions_.length-1;n<r;++n)if(t){if(this.resolutions_[n]/this.resolutions_[n+1]!==t){t=void 0;break}}else t=this.resolutions_[n]/this.resolutions_[n+1];this.zoomFactor_=t,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==e.origin?e.origin:null,this.origins_=null,void 0!==e.origins&&(this.origins_=e.origins,Object(S.a)(this.origins_.length==this.resolutions_.length,20));var i=e.extent;void 0===i||this.origin_||this.origins_||(this.origin_=Object(b.C)(i)),Object(S.a)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==e.tileSizes&&(this.tileSizes_=e.tileSizes,Object(S.a)(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==e.tileSize?e.tileSize:this.tileSizes_?null:M.b,Object(S.a)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==i?i:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],void 0!==e.sizes?this.fullTileRanges_=e.sizes.map((function(e,t){return new D.b(Math.min(0,e[0]),Math.max(e[0]-1,-1),Math.min(0,e[1]),Math.max(e[1]-1,-1))}),this):i&&this.calculateTileRanges_(i)};F.prototype.forEachTileCoord=function(e,t,n){for(var r=this.getTileRangeForExtentAndZ(e,t),i=r.minX,o=r.maxX;i<=o;++i)for(var a=r.minY,s=r.maxY;a<=s;++a)n([t,i,a])},F.prototype.forEachTileCoordParentTileRange=function(e,t,n,r,i){var o,a,s,l=null,u=e[0]-1;for(2===this.zoomFactor_?(a=e[1],s=e[2]):l=this.getTileCoordExtent(e,i);u>=this.minZoom;){if(2===this.zoomFactor_?(a=Math.floor(a/2),s=Math.floor(s/2),o=Object(D.a)(a,a,s,s,r)):o=this.getTileRangeForExtentAndZ(l,u,r),t.call(n,u,o))return!0;--u}return!1},F.prototype.getExtent=function(){return this.extent_},F.prototype.getMaxZoom=function(){return this.maxZoom},F.prototype.getMinZoom=function(){return this.minZoom},F.prototype.getOrigin=function(e){return this.origin_?this.origin_:this.origins_[e]},F.prototype.getResolution=function(e){return this.resolutions_[e]},F.prototype.getResolutions=function(){return this.resolutions_},F.prototype.getTileCoordChildTileRange=function(e,t,n){if(e[0]<this.maxZoom){if(2===this.zoomFactor_){var r=2*e[1],i=2*e[2];return Object(D.a)(r,r+1,i,i+1,t)}var o=this.getTileCoordExtent(e,n);return this.getTileRangeForExtentAndZ(o,e[0]+1,t)}return null},F.prototype.getTileRangeExtent=function(e,t,n){var r=this.getOrigin(e),i=this.getResolution(e),o=Object(P.c)(this.getTileSize(e),this.tmpSize_),a=r[0]+t.minX*o[0]*i,s=r[0]+(t.maxX+1)*o[0]*i,l=r[1]+t.minY*o[1]*i,u=r[1]+(t.maxY+1)*o[1]*i;return Object(b.k)(a,l,s,u,n)},F.prototype.getTileRangeForExtentAndZ=function(e,t,n){var r=N;this.getTileCoordForXYAndZ_(e[0],e[1],t,!1,r);var i=r[1],o=r[2];return this.getTileCoordForXYAndZ_(e[2],e[3],t,!0,r),Object(D.a)(i,r[1],o,r[2],n)},F.prototype.getTileCoordCenter=function(e){var t=this.getOrigin(e[0]),n=this.getResolution(e[0]),r=Object(P.c)(this.getTileSize(e[0]),this.tmpSize_);return[t[0]+(e[1]+.5)*r[0]*n,t[1]+(e[2]+.5)*r[1]*n]},F.prototype.getTileCoordExtent=function(e,t){var n=this.getOrigin(e[0]),r=this.getResolution(e[0]),i=Object(P.c)(this.getTileSize(e[0]),this.tmpSize_),o=n[0]+e[1]*i[0]*r,a=n[1]+e[2]*i[1]*r,s=o+i[0]*r,l=a+i[1]*r;return Object(b.k)(o,a,s,l,t)},F.prototype.getTileCoordForCoordAndResolution=function(e,t,n){return this.getTileCoordForXYAndResolution_(e[0],e[1],t,!1,n)},F.prototype.getTileCoordForXYAndResolution_=function(e,t,n,r,i){var o=this.getZForResolution(n),a=n/this.getResolution(o),s=this.getOrigin(o),l=Object(P.c)(this.getTileSize(o),this.tmpSize_),u=r?.5:0,c=r?0:.5,d=Math.floor((e-s[0])/n+u),f=Math.floor((t-s[1])/n+c),p=a*d/l[0],m=a*f/l[1];return r?(p=Math.ceil(p)-1,m=Math.ceil(m)-1):(p=Math.floor(p),m=Math.floor(m)),h(o,p,m,i)},F.prototype.getTileCoordForXYAndZ_=function(e,t,n,r,i){var o=this.getOrigin(n),a=this.getResolution(n),s=Object(P.c)(this.getTileSize(n),this.tmpSize_),l=r?.5:0,u=r?0:.5,c=Math.floor((e-o[0])/a+l),d=Math.floor((t-o[1])/a+u),f=c/s[0],p=d/s[1];return r?(f=Math.ceil(f)-1,p=Math.ceil(p)-1):(f=Math.floor(f),p=Math.floor(p)),h(n,f,p,i)},F.prototype.getTileCoordForCoordAndZ=function(e,t,n){return this.getTileCoordForXYAndZ_(e[0],e[1],t,!1,n)},F.prototype.getTileCoordResolution=function(e){return this.resolutions_[e[0]]},F.prototype.getTileSize=function(e){return this.tileSize_?this.tileSize_:this.tileSizes_[e]},F.prototype.getFullTileRange=function(e){return this.fullTileRanges_?this.fullTileRanges_[e]:null},F.prototype.getZForResolution=function(e,t){var n=Object(L.f)(this.resolutions_,e,t||0);return Object(_.a)(n,this.minZoom,this.maxZoom)},F.prototype.calculateTileRanges_=function(e){for(var t=this.resolutions_.length,n=new Array(t),r=this.minZoom;r<t;++r)n[r]=this.getTileRangeForExtentAndZ(e,r);this.fullTileRanges_=n};var B=F;function z(e){var t=e.getDefaultTileGrid();return t||(t=function(e,t,n,r){return function(e,t,n,r){var i=void 0!==r?r:I.a.TOP_LEFT,o=U(e,t,n);return new B({extent:e,origin:Object(b.y)(e,i),resolutions:o,tileSize:n})}(q(e),t,n,r)}(e),e.setDefaultTileGrid(t)),t}function U(e,t,n){for(var r=void 0!==t?t:M.a,i=Object(b.A)(e),o=Object(b.E)(e),a=Object(P.c)(void 0!==n?n:M.b),s=Math.max(o/a[0],i/a[1]),l=r+1,u=new Array(l),c=0;c<l;++c)u[c]=s/Math.pow(2,c);return u}function q(e){var t=(e=Object(y.d)(e)).getExtent();if(!t){var n=180*y.a[j.b.DEGREES]/e.getMetersPerUnit();t=Object(b.k)(-n,-n,n,n)}return t}var H=function(e){function t(t){e.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX}),this.opaque_=void 0!==t.opaque&&t.opaque,this.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null,this.tileCache=new v(t.cacheSize),this.tmpSize=[0,0],this.key_=t.key||"",this.tileOptions={transition:t.transition}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},t.prototype.expireCache=function(e,t){var n=this.getTileCacheForProjection(e);n&&n.expireCache(t)},t.prototype.forEachLoadedTile=function(e,t,n,r){var i=this.getTileCacheForProjection(e);if(!i)return!1;for(var a,s,l,u=!0,c=n.minX;c<=n.maxX;++c)for(var d=n.minY;d<=n.maxY;++d)s=m(t,c,d),l=!1,i.containsKey(s)&&(l=(a=i.get(s)).getState()===o.a.LOADED)&&(l=!1!==r(a)),l||(u=!1);return u},t.prototype.getGutterForProjection=function(e){return 0},t.prototype.getKey=function(){return this.key_},t.prototype.setKey=function(e){this.key_!==e&&(this.key_=e,this.changed())},t.prototype.getOpaque=function(e){return this.opaque_},t.prototype.getResolutions=function(){return this.tileGrid.getResolutions()},t.prototype.getTile=function(e,t,n,r,o){return Object(i.b)()},t.prototype.getTileGrid=function(){return this.tileGrid},t.prototype.getTileGridForProjection=function(e){return this.tileGrid?this.tileGrid:z(e)},t.prototype.getTileCacheForProjection=function(e){var t=this.getProjection();return t&&!Object(y.c)(t,e)?null:this.tileCache},t.prototype.getTilePixelRatio=function(e){return this.tilePixelRatio_},t.prototype.getTilePixelSize=function(e,t,n){var r=this.getTileGridForProjection(n),i=this.getTilePixelRatio(t),o=Object(P.c)(r.getTileSize(e),this.tmpSize);return 1==i?o:Object(P.b)(o,i,this.tmpSize)},t.prototype.getTileCoordForTileUrlFunction=function(e,t){var n=void 0!==t?t:this.getProjection(),r=this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(e=function(e,t,n){var r=t[0],i=e.getTileCoordCenter(t),o=q(n);if(Object(b.f)(o,i))return t;var a=Object(b.E)(o),s=Math.ceil((o[0]-i[0])/a);return i[0]+=a*s,e.getTileCoordForCoordAndZ(i,r)}(r,e,n)),function(e,t){var n=e[0],r=e[1],i=e[2];if(t.getMinZoom()>n||n>t.getMaxZoom())return!1;var o,a=t.getExtent();return!(o=a?t.getTileRangeForExtentAndZ(a,n):t.getFullTileRange(n))||o.containsXY(r,i)}(e,r)?e:null},t.prototype.refresh=function(){this.tileCache.clear(),this.changed()},t.prototype.useTile=function(e,t,n,r){},t}(R.a),W=function(e){function t(t,n){e.call(this,t),this.tile=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(A.a),V="tileloadstart",$="tileloadend",G="tileloaderror";function K(e,t){e.getImage().src=t}var Y='&#169; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.',Q=function(e){function t(t){var n,r=t||{};n=void 0!==r.attributions?r.attributions:[Y];var i=void 0!==r.crossOrigin?r.crossOrigin:"anonymous",o=void 0!==r.url?r.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";e.call(this,{attributions:n,cacheSize:r.cacheSize,crossOrigin:i,opaque:void 0===r.opaque||r.opaque,maxZoom:void 0!==r.maxZoom?r.maxZoom:19,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileLoadFunction:r.tileLoadFunction,url:o,wrapX:r.wrapX,attributionsCollapsible:!1})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(function(e){function t(t){var n=t||{},r=void 0!==n.projection?n.projection:"EPSG:3857",i=void 0!==n.tileGrid?n.tileGrid:function(e){var t=e||{},n=t.extent||Object(y.d)("EPSG:3857").getExtent(),r={extent:n,minZoom:t.minZoom,tileSize:t.tileSize,resolutions:U(n,t.maxZoom,t.tileSize)};return new B(r)}({extent:q(r),maxZoom:n.maxZoom,minZoom:n.minZoom,tileSize:n.tileSize});e.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,opaque:n.opaque,projection:r,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:i,tileLoadFunction:n.tileLoadFunction,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:n.tileUrlFunction,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,attributionsCollapsible:n.attributionsCollapsible})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(function(e){function t(t){e.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:K,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,key:t.key,attributionsCollapsible:t.attributionsCollapsible}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.tileClass=void 0!==t.tileClass?t.tileClass:p,this.tileCacheForProjection={},this.tileGridForProjection={},this.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.canExpireCache=function(){if(!r.a)return e.prototype.canExpireCache.call(this);if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},t.prototype.expireCache=function(t,n){if(r.a){var i=this.getTileCacheForProjection(t);for(var o in this.tileCache.expireCache(this.tileCache==i?n:{}),this.tileCacheForProjection){var a=this.tileCacheForProjection[o];a.expireCache(a==i?n:{})}}else e.prototype.expireCache.call(this,t,n)},t.prototype.getGutterForProjection=function(e){return r.a&&this.getProjection()&&e&&!Object(y.c)(this.getProjection(),e)?0:this.getGutter()},t.prototype.getGutter=function(){return 0},t.prototype.getOpaque=function(t){return!(r.a&&this.getProjection()&&t&&!Object(y.c)(this.getProjection(),t))&&e.prototype.getOpaque.call(this,t)},t.prototype.getTileGridForProjection=function(t){if(!r.a)return e.prototype.getTileGridForProjection.call(this,t);var n=this.getProjection();if(!this.tileGrid||n&&!Object(y.c)(n,t)){var o=Object(i.c)(t);return o in this.tileGridForProjection||(this.tileGridForProjection[o]=z(t)),this.tileGridForProjection[o]}return this.tileGrid},t.prototype.getTileCacheForProjection=function(t){if(!r.a)return e.prototype.getTileCacheForProjection.call(this,t);var n=this.getProjection();if(!n||Object(y.c)(n,t))return this.tileCache;var o=Object(i.c)(t);return o in this.tileCacheForProjection||(this.tileCacheForProjection[o]=new v(this.tileCache.highWaterMark)),this.tileCacheForProjection[o]},t.prototype.createTile_=function(e,t,n,r,i,a){var s=[e,t,n],u=this.getTileCoordForTileUrlFunction(s,i),c=u?this.tileUrlFunction(u,r,i):void 0,f=new this.tileClass(s,void 0!==c?o.a.IDLE:o.a.EMPTY,void 0!==c?c:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return f.key=a,Object(d.a)(f,l.a.CHANGE,this.handleTileChange,this),f},t.prototype.getTile=function(e,t,n,i,o){var a=this.getProjection();if(r.a&&a&&o&&!Object(y.c)(a,o)){var s,l=this.getTileCacheForProjection(o),u=[e,t,n],c=g(u);l.containsKey(c)&&(s=l.get(c));var d=this.getKey();if(s&&s.key==d)return s;var f=this.getTileGridForProjection(a),p=this.getTileGridForProjection(o),h=this.getTileCoordForTileUrlFunction(u,o),m=new E(a,f,o,p,u,h,this.getTilePixelRatio(i),this.getGutter(),function(e,t,n,r){return this.getTileInternal(e,t,n,r,a)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_);return m.key=d,s?(m.interimTile=s,m.refreshInterimChain(),l.replace(c,m)):l.set(c,m),m}return this.getTileInternal(e,t,n,i,a||o)},t.prototype.getTileInternal=function(e,t,n,r,i){var a=null,s=m(e,t,n),l=this.getKey();if(this.tileCache.containsKey(s)){if((a=this.tileCache.get(s)).key!=l){var u=a;a=this.createTile_(e,t,n,r,i,l),u.getState()==o.a.IDLE?a.interimTile=u.interimTile:a.interimTile=u,a.refreshInterimChain(),this.tileCache.replace(s,a)}}else a=this.createTile_(e,t,n,r,i,l),this.tileCache.set(s,a);return a},t.prototype.setRenderReprojectionEdges=function(e){if(r.a&&this.renderReprojectionEdges_!=e){for(var t in this.renderReprojectionEdges_=e,this.tileCacheForProjection)this.tileCacheForProjection[t].clear();this.changed()}},t.prototype.setTileGridForProjection=function(e,t){if(r.a){var n=Object(y.d)(e);if(n){var o=Object(i.c)(n);o in this.tileGridForProjection||(this.tileGridForProjection[o]=t)}}},t}(function(e){function t(t){e.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX,transition:t.transition,key:t.key,attributionsCollapsible:t.attributionsCollapsible}),this.generateTileUrlFunction_=!t.tileUrlFunction,this.tileLoadFunction=t.tileLoadFunction,this.tileUrlFunction=t.tileUrlFunction?t.tileUrlFunction.bind(this):C,this.urls=null,t.urls?this.setUrls(t.urls):t.url&&this.setUrl(t.url),t.tileUrlFunction&&this.setTileUrlFunction(t.tileUrlFunction,this.key_),this.tileLoadingKeys_={}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},t.prototype.getTileUrlFunction=function(){return this.tileUrlFunction},t.prototype.getUrls=function(){return this.urls},t.prototype.handleTileChange=function(e){var t,n=e.target,r=Object(i.c)(n),a=n.getState();a==o.a.LOADING?(this.tileLoadingKeys_[r]=!0,t=V):r in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[r],t=a==o.a.ERROR?G:a==o.a.LOADED||a==o.a.ABORT?$:void 0),null!=t&&this.dispatchEvent(new W(t,n))},t.prototype.setTileLoadFunction=function(e){this.tileCache.clear(),this.tileLoadFunction=e,this.changed()},t.prototype.setTileUrlFunction=function(e,t){this.tileUrlFunction=e,this.tileCache.pruneExceptNewestZ(),void 0!==t?this.setKey(t):this.changed()},t.prototype.setUrl=function(e){var t=this.urls=function(e){var t=[],n=/\{([a-z])-([a-z])\}/.exec(e);if(n){var r,i=n[1].charCodeAt(0),o=n[2].charCodeAt(0);for(r=i;r<=o;++r)t.push(e.replace(n[0],String.fromCharCode(r)));return t}if(n=n=/\{(\d+)-(\d+)\}/.exec(e)){for(var a=parseInt(n[2],10),s=parseInt(n[1],10);s<=a;s++)t.push(e.replace(n[0],s.toString()));return t}return t.push(e),t}(e);this.setUrls(t)},t.prototype.setUrls=function(e){this.urls=e;var t=e.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(T(e,this.tileGrid),t):this.setKey(t)},t.prototype.useTile=function(e,t,n){var r=m(e,t,n);this.tileCache.containsKey(r)&&this.tileCache.get(r)},t}(H))));t.default=Q},function(e,t,n){"use strict";n.r(t);var r=n(27),i=n(178),o=n(22),a=n(6),s=n(30),l=function(){this.dataProjection=null,this.defaultFeatureProjection=null};l.prototype.getReadOptions=function(e,t){var n;return t&&(n={dataProjection:t.dataProjection?t.dataProjection:this.readProjection(e),featureProjection:t.featureProjection}),this.adaptOptions(n)},l.prototype.adaptOptions=function(e){return Object(o.a)({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},e)},l.prototype.getLastExtent=function(){return null},l.prototype.getType=function(){return Object(a.b)()},l.prototype.readFeature=function(e,t){return Object(a.b)()},l.prototype.readFeatures=function(e,t){return Object(a.b)()},l.prototype.readGeometry=function(e,t){return Object(a.b)()},l.prototype.readProjection=function(e){return Object(a.b)()},l.prototype.writeFeature=function(e,t){return Object(a.b)()},l.prototype.writeFeatures=function(e,t){return Object(a.b)()},l.prototype.writeGeometry=function(e,t){return Object(a.b)()};var u=l;function c(e,t,n){var r,i=n?Object(s.d)(n.featureProjection):null,o=n?Object(s.d)(n.dataProjection):null;if(r=i&&o&&!Object(s.c)(i,o)?Array.isArray(e)?Object(s.h)(e,o,i):(t?e.clone():e).transform(t?i:o,t?o:i):e,t&&n&&void 0!==n.decimals&&!Array.isArray(r)){var a=Math.pow(10,n.decimals);r===e&&(r=e.clone()),r.applyTransform((function(e){for(var t=0,n=e.length;t<n;++t)e[t]=Math.round(e[t]*a)/a;return e}))}return r}var d=n(149);function f(e){if("string"==typeof e){var t=JSON.parse(e);return t||null}return null!==e?e:null}var p=function(e){function t(){e.call(this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getType=function(){return d.a.JSON},t.prototype.readFeature=function(e,t){return this.readFeatureFromObject(f(e),this.getReadOptions(e,t))},t.prototype.readFeatures=function(e,t){return this.readFeaturesFromObject(f(e),this.getReadOptions(e,t))},t.prototype.readFeatureFromObject=function(e,t){return Object(a.b)()},t.prototype.readFeaturesFromObject=function(e,t){return Object(a.b)()},t.prototype.readGeometry=function(e,t){return this.readGeometryFromObject(f(e),this.getReadOptions(e,t))},t.prototype.readGeometryFromObject=function(e,t){return Object(a.b)()},t.prototype.readProjection=function(e){return this.readProjectionFromObject(f(e))},t.prototype.readProjectionFromObject=function(e){return Object(a.b)()},t.prototype.writeFeature=function(e,t){return JSON.stringify(this.writeFeatureObject(e,t))},t.prototype.writeFeatureObject=function(e,t){return Object(a.b)()},t.prototype.writeFeatures=function(e,t){return JSON.stringify(this.writeFeaturesObject(e,t))},t.prototype.writeFeaturesObject=function(e,t){return Object(a.b)()},t.prototype.writeGeometry=function(e,t){return JSON.stringify(this.writeGeometryObject(e,t))},t.prototype.writeGeometryObject=function(e,t){return Object(a.b)()},t}(u),h=n(9),m=n(14),g=n(3),v=n(298),y=n(10);function b(e){for(var t=[],n=0,r=e.length;n<r;++n)t.push(e[n].clone());return t}var _=function(e){function t(t){e.call(this),this.geometries_=t||null,this.listenGeometriesChange_()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.unlistenGeometriesChange_=function(){if(this.geometries_)for(var e=0,t=this.geometries_.length;e<t;++e)Object(h.c)(this.geometries_[e],m.a.CHANGE,this.changed,this)},t.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var e=0,t=this.geometries_.length;e<t;++e)Object(h.a)(this.geometries_[e],m.a.CHANGE,this.changed,this)},t.prototype.clone=function(){var e=new t(null);return e.setGeometries(this.geometries_),e},t.prototype.closestPointXY=function(e,t,n,r){if(r<Object(g.e)(this.getExtent(),e,t))return r;for(var i=this.geometries_,o=0,a=i.length;o<a;++o)r=i[o].closestPointXY(e,t,n,r);return r},t.prototype.containsXY=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)if(n[r].containsXY(e,t))return!0;return!1},t.prototype.computeExtent=function(e){Object(g.l)(e);for(var t=this.geometries_,n=0,r=t.length;n<r;++n)Object(g.q)(e,t[n].getExtent());return e},t.prototype.getGeometries=function(){return b(this.geometries_)},t.prototype.getGeometriesArray=function(){return this.geometries_},t.prototype.getSimplifiedGeometry=function(e){if(this.simplifiedGeometryRevision!=this.getRevision()&&(Object(o.b)(this.simplifiedGeometryCache),this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<this.simplifiedGeometryMaxMinSquaredTolerance)return this;var n=e.toString();if(this.simplifiedGeometryCache.hasOwnProperty(n))return this.simplifiedGeometryCache[n];for(var r=[],i=this.geometries_,a=!1,s=0,l=i.length;s<l;++s){var u=i[s],c=u.getSimplifiedGeometry(e);r.push(c),c!==u&&(a=!0)}if(a){var d=new t(null);return d.setGeometriesArray(r),this.simplifiedGeometryCache[n]=d,d}return this.simplifiedGeometryMaxMinSquaredTolerance=e,this},t.prototype.getType=function(){return y.a.GEOMETRY_COLLECTION},t.prototype.intersectsExtent=function(e){for(var t=this.geometries_,n=0,r=t.length;n<r;++n)if(t[n].intersectsExtent(e))return!0;return!1},t.prototype.isEmpty=function(){return 0===this.geometries_.length},t.prototype.rotate=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)n[r].rotate(e,t);this.changed()},t.prototype.scale=function(e,t,n){var r=n;r||(r=Object(g.x)(this.getExtent()));for(var i=this.geometries_,o=0,a=i.length;o<a;++o)i[o].scale(e,t,r);this.changed()},t.prototype.setGeometries=function(e){this.setGeometriesArray(b(e))},t.prototype.setGeometriesArray=function(e){this.unlistenGeometriesChange_(),this.geometries_=e,this.listenGeometriesChange_(),this.changed()},t.prototype.applyTransform=function(e){for(var t=this.geometries_,n=0,r=t.length;n<r;++n)t[n].applyTransform(e);this.changed()},t.prototype.translate=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)n[r].translate(e,t);this.changed()},t.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),e.prototype.disposeInternal.call(this)},t}(v.a),w=n(128),x=n(304),k=n(204),E=n(306),S=n(114),O=n(80),T=function(e){function t(t){var n=t||{};e.call(this),this.dataProjection=Object(s.d)(n.dataProjection?n.dataProjection:"EPSG:4326"),n.featureProjection&&(this.defaultFeatureProjection=Object(s.d)(n.featureProjection)),this.geometryName_=n.geometryName,this.extractGeometryName_=n.extractGeometryName}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.readFeatureFromObject=function(e,t){var n=null,r=C((n="Feature"===e.type?e:{type:"Feature",geometry:e,properties:null}).geometry,t),o=new i.a;return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in n!==void 0&&o.setGeometryName(n.geometry_name),o.setGeometry(r),"id"in n&&o.setId(n.id),n.properties&&o.setProperties(n.properties),o},t.prototype.readFeaturesFromObject=function(e,t){var n=null;if("FeatureCollection"===e.type){n=[];for(var r=e.features,i=0,o=r.length;i<o;++i)n.push(this.readFeatureFromObject(r[i],t))}else n=[this.readFeatureFromObject(e,t)];return n},t.prototype.readGeometryFromObject=function(e,t){return C(e,t)},t.prototype.readProjectionFromObject=function(e){var t,n=e.crs;return n?"name"==n.type?t=Object(s.d)(n.properties.name):Object(r.a)(!1,36):t=this.dataProjection,t},t.prototype.writeFeatureObject=function(e,t){t=this.adaptOptions(t);var n={type:"Feature",geometry:null,properties:null},r=e.getId();void 0!==r&&(n.id=r);var i=e.getGeometry();i&&(n.geometry=A(i,t));var a=e.getProperties();return delete a[e.getGeometryName()],Object(o.d)(a)||(n.properties=a),n},t.prototype.writeFeaturesObject=function(e,t){t=this.adaptOptions(t);for(var n=[],r=0,i=e.length;r<i;++r)n.push(this.writeFeatureObject(e[r],t));return{type:"FeatureCollection",features:n}},t.prototype.writeGeometryObject=function(e,t){return A(e,this.adaptOptions(t))},t}(p);function C(e,t){if(!e)return null;var n;switch(e.type){case y.a.POINT:n=function(e){return new S.a(e.coordinates)}(e);break;case y.a.LINE_STRING:n=function(e){return new w.a(e.coordinates)}(e);break;case y.a.POLYGON:n=function(e){return new O.a(e.coordinates)}(e);break;case y.a.MULTI_POINT:n=function(e){return new k.a(e.coordinates)}(e);break;case y.a.MULTI_LINE_STRING:n=function(e){return new x.a(e.coordinates)}(e);break;case y.a.MULTI_POLYGON:n=function(e){return new E.a(e.coordinates)}(e);break;case y.a.GEOMETRY_COLLECTION:n=function(e,t){var n=e.geometries.map((function(e){return C(e,t)}));return new _(n)}(e);break;default:throw new Error("Unsupported GeoJSON type: "+e.type)}return c(n,!1,t)}function A(e,t){var n,r=(e=c(e,!0,t)).getType();switch(r){case y.a.POINT:n=function(e,t){return{type:"Point",coordinates:e.getCoordinates()}}(e);break;case y.a.LINE_STRING:n=function(e,t){return{type:"LineString",coordinates:e.getCoordinates()}}(e);break;case y.a.POLYGON:n=function(e,t){var n;t&&(n=t.rightHanded);return{type:"Polygon",coordinates:e.getCoordinates(n)}}(e,t);break;case y.a.MULTI_POINT:n=function(e,t){return{type:"MultiPoint",coordinates:e.getCoordinates()}}(e);break;case y.a.MULTI_LINE_STRING:n=function(e,t){return{type:"MultiLineString",coordinates:e.getCoordinates()}}(e);break;case y.a.MULTI_POLYGON:n=function(e,t){var n;t&&(n=t.rightHanded);return{type:"MultiPolygon",coordinates:e.getCoordinates(n)}}(e,t);break;case y.a.GEOMETRY_COLLECTION:n=function(e,t){return{type:"GeometryCollection",geometries:e.getGeometriesArray().map((function(e){var n=Object(o.a)({},t);return delete n.featureProjection,A(e,n)}))}}(e,t);break;case y.a.CIRCLE:n={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+r)}return n}t.default=T},function(e,t,n){"use strict";n.r(t),n.d(t,"HeuristicFragmentMatcher",(function(){return H})),n.d(t,"InMemoryCache",(function(){return ue})),n.d(t,"IntrospectionFragmentMatcher",(function(){return W})),n.d(t,"ObjectCache",(function(){return J})),n.d(t,"StoreReader",(function(){return K})),n.d(t,"StoreWriter",(function(){return ne})),n.d(t,"WriteError",(function(){return ee})),n.d(t,"assertIdValue",(function(){return X})),n.d(t,"defaultDataIdFromObject",(function(){return ae})),n.d(t,"defaultNormalizedCacheFactory",(function(){return Z})),n.d(t,"enhanceErrorWithDocument",(function(){return te}));var r=n(7),i=n(13);function o(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:a(e)}]}}function a(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return null;if(Array.isArray(e))return a(e[0]);var t=[];return Object.keys(e).forEach((function(n){var r={kind:"Field",name:{kind:"Name",value:n},selectionSet:a(e[n])||void 0};t.push(r)})),{kind:"SelectionSet",selections:t}}var s,l={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},u=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(i.k)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(i.k)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t,n,r=e.id,i=e.data;if(void 0!==r){var s=null;try{s=this.read({rootId:r,optimistic:!1,query:l})}catch(e){}var u=s&&s.__typename||"__ClientData",c=Object.assign({__typename:u},i);this.writeFragment({id:r,fragment:(t=c,n=u,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:n||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:a(t)}]}),data:c})}else this.writeQuery({query:o(i),data:i})},e}();s||(s={});var c=n(132),d=null,f={},p=1,h=Array,m=h["@wry/context:Slot"]||function(){var e=function(){function e(){this.id=["slot",p++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=d;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===f)break;return e!==d&&(d.slots[this.id]=t),!0}return d&&(d.slots[this.id]=f),!1},e.prototype.getValue=function(){if(this.hasValue())return d.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=d;d={parent:a,slots:o};try{return t.apply(r,n)}finally{d=a}},e.bind=function(e){var t=d;return function(){var n=d;try{return d=t,e.apply(this,arguments)}finally{d=n}}},e.noContext=function(e,t,n){if(!d)return e.apply(n,t);var r=d;try{return d=null,e.apply(n,t)}finally{d=r}},e}();try{Object.defineProperty(h,"@wry/context:Slot",{value:h["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();m.bind,m.noContext;function g(){}var v=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=g),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getEntry(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),y=new m,b=[],_=[];function w(e,t){if(!e)throw new Error(t||"assertion failure")}function x(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var k=function(){function e(t,n){this.fn=t,this.args=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(w(!this.recomputing,"already recomputing"),function(e){var t=y.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),S(e)?C(t,e):A(t,e),t}(this)||!R(this))return S(this)?function(e){var t=M(e);y.withValue(e,E,[e]),function(e){if("function"==typeof e.subscribe)try{j(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){if(e.dirty=!1,S(e))return;T(e)}(e);return t.forEach(R),x(e.value)}(this):x(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,O(this),j(this))},e.prototype.dispose=function(){var e=this;M(this).forEach(R),j(this),this.parents.forEach((function(t){t.setDirty(),I(t,e)}))},e.count=0,e}();function E(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function S(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function O(e){e.parents.forEach((function(t){return C(t,e)}))}function T(e){e.parents.forEach((function(t){return A(t,e)}))}function C(e,t){if(w(e.childValues.has(t)),w(S(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=_.pop()||new Set;e.dirtyChildren.add(t),O(e)}function A(e,t){w(e.childValues.has(t)),w(!S(t));var n,r,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,function(e){return e.slice(0)}(t.value)):(n=o,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),P(e,t),S(e)||T(e)}function P(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(_.length<100&&_.push(n),e.dirtyChildren=null))}function R(e){return 0===e.parents.size&&"function"==typeof e.reportOrphan&&!0===e.reportOrphan()}function M(e){var t=b;return e.childValues.size>0&&(t=[],e.childValues.forEach((function(n,r){I(e,r),t.push(r)}))),w(null===e.dirtyChildren),t}function I(e,t){t.parents.delete(e),e.childValues.delete(t),P(e,t)}function j(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var D=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return e.forEach((function(e){return t=t.getChildTrie(e)})),t.data||(t.data=Object.create(null))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness)),r},e}();var L=new D("function"==typeof WeakMap);function N(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return L.lookupArray(e)}var F=new Set;function B(e,t){void 0===t&&(t=Object.create(null));var n=new v(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=!!t.disposable,i=t.makeCacheKey||N;function o(){if(!r||y.hasValue()){var o=i.apply(null,arguments);if(void 0===o)return e.apply(null,arguments);var a=Array.prototype.slice.call(arguments),s=n.get(o);s?s.args=a:(s=new k(e,a),n.set(o,s),s.subscribe=t.subscribe,r&&(s.reportOrphan=function(){return n.delete(o)}));var l=s.recompute();return n.set(o,s),F.add(n),y.hasValue()||(F.forEach((function(e){return e.clean()})),F.clear()),r?void 0:l}}return o.dirty=function(){var e=i.apply(null,arguments),t=void 0!==e&&n.get(e);t&&t.setDirty()},o}var z=n(20),U=!1;function q(){var e=!U;return Object(i.y)()||(U=!0),e}var H=function(){function e(){}return e.prototype.ensureReady=function(){return Promise.resolve()},e.prototype.canBypassInit=function(){return!0},e.prototype.match=function(e,t,n){var r=n.store.get(e.id),i="ROOT_QUERY"===e.id;if(!r)return i;var o=r.__typename,a=void 0===o?i&&"Query":o;return a&&a===t||(q(),"heuristic")},e}(),W=function(){function e(e){e&&e.introspectionQueryResultData?(this.possibleTypesMap=this.parseIntrospectionResult(e.introspectionQueryResultData),this.isReady=!0):this.isReady=!1,this.match=this.match.bind(this)}return e.prototype.match=function(e,t,n){Object(z.b)(this.isReady,1);var r=n.store.get(e.id),i="ROOT_QUERY"===e.id;if(!r)return i;var o=r.__typename,a=void 0===o?i&&"Query":o;if(Object(z.b)(a,2),a===t)return!0;var s=this.possibleTypesMap[t];return!!(a&&s&&s.indexOf(a)>-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t},e}(),V=Object.prototype.hasOwnProperty,$=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=B((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){V.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(n){t.set(n,e[n])})),Object.keys(this.data).forEach((function(n){V.call(e,n)||t.delete(n)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},e}();function G(e){return new $(e)}var K=function(){function e(e){var t=this,n=void 0===e?{}:e,r=n.cacheKeyRoot,o=void 0===r?new D(i.e):r,a=n.freezeResults,s=void 0!==a&&a,l=this.executeStoreQuery,u=this.executeSelectionSet,c=this.executeSubSelectedArray;this.freezeResults=s,this.executeStoreQuery=B((function(e){return l.call(t,e)}),{makeCacheKey:function(e){var t=e.query,n=e.rootValue,r=e.contextValue,i=e.variableValues,a=e.fragmentMatcher;if(r.store instanceof $)return o.lookup(r.store,t,a,JSON.stringify(i),n.id)}}),this.executeSelectionSet=B((function(e){return u.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,n=e.rootValue,r=e.execContext;if(r.contextValue.store instanceof $)return o.lookup(r.contextValue.store,t,r.fragmentMatcher,JSON.stringify(r.variableValues),n.id)}}),this.executeSubSelectedArray=B((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.field,n=e.array,r=e.execContext;if(r.contextValue.store instanceof $)return o.lookup(r.contextValue.store,t,n,JSON.stringify(r.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(Object(r.a)(Object(r.a)({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.variables,o=e.previousResult,a=e.returnPartialData,s=void 0===a||a,l=e.rootId,u=void 0===l?"ROOT_QUERY":l,d=e.fragmentMatcherFunction,f=e.config,p=Object(i.o)(n);r=Object(i.c)({},Object(i.h)(p),r);var h={store:t,dataIdFromObject:f&&f.dataIdFromObject,cacheRedirects:f&&f.cacheRedirects||{}},m=this.executeStoreQuery({query:n,rootValue:{type:"id",id:u,generated:!0,typename:"Query"},contextValue:h,variableValues:r,fragmentMatcher:d}),g=m.missing&&m.missing.length>0;return g&&!s&&m.missing.forEach((function(e){if(!e.tolerable)throw new z.a(8)})),o&&Object(c.a)(o,m.result)&&(m.result=o),{result:m.result,complete:!g}},e.prototype.executeStoreQuery=function(e){var t=e.query,n=e.rootValue,r=e.contextValue,o=e.variableValues,a=e.fragmentMatcher,s=void 0===a?Q:a,l=Object(i.l)(t),u=Object(i.j)(t),c={query:t,fragmentMap:Object(i.g)(u),contextValue:r,variableValues:o,fragmentMatcher:s};return this.executeSelectionSet({selectionSet:l.selectionSet,rootValue:n,execContext:c})},e.prototype.executeSelectionSet=function(e){var t=this,n=e.selectionSet,o=e.rootValue,a=e.execContext,s=a.fragmentMap,l=a.contextValue,u=a.variableValues,c={result:null},d=[],f=l.store.get(o.id),p=f&&f.__typename||"ROOT_QUERY"===o.id&&"Query"||void 0;function h(e){var t;return e.missing&&(c.missing=c.missing||[],(t=c.missing).push.apply(t,e.missing)),e.result}return n.selections.forEach((function(e){var n;if(Object(i.F)(e,u))if(Object(i.t)(e)){var c=h(t.executeField(f,p,e,a));void 0!==c&&d.push(((n={})[Object(i.E)(e)]=c,n))}else{var m=void 0;if(Object(i.v)(e))m=e;else if(!(m=s[e.name.value]))throw new z.a(9);var g=m.typeCondition&&m.typeCondition.name.value,v=!g||a.fragmentMatcher(o,g,l);if(v){var y=t.executeSelectionSet({selectionSet:m.selectionSet,rootValue:o,execContext:a});"heuristic"===v&&y.missing&&(y=Object(r.a)(Object(r.a)({},y),{missing:y.missing.map((function(e){return Object(r.a)(Object(r.a)({},e),{tolerable:!0})}))})),d.push(h(y))}}})),c.result=Object(i.B)(d),this.freezeResults,c},e.prototype.executeField=function(e,t,n,r){var o=r.variableValues,a=r.contextValue,s=function(e,t,n,r,o,a){a.resultKey;var s=a.directives,l=n;(r||s)&&(l=Object(i.p)(l,r,s));var u=void 0;if(e&&void 0===(u=e[l])&&o.cacheRedirects&&"string"==typeof t){var c=o.cacheRedirects[t];if(c){var d=c[n];d&&(u=d(e,r,{getCacheKey:function(e){var t=o.dataIdFromObject(e);return t&&Object(i.H)({id:t,typename:e.__typename})}}))}}if(void 0===u)return{result:u,missing:[{object:e,fieldName:l,tolerable:!1}]};Object(i.w)(u)&&(u=u.json);return{result:u}}(e,t,n.name.value,Object(i.b)(n,o),a,{resultKey:Object(i.E)(n),directives:Object(i.i)(n,o)});return Array.isArray(s.result)?this.combineExecResults(s,this.executeSubSelectedArray({field:n,array:s.result,execContext:r})):n.selectionSet?null==s.result?s:this.combineExecResults(s,this.executeSelectionSet({selectionSet:n.selectionSet,rootValue:s.result,execContext:r})):(Y(n,s.result),this.freezeResults,s)},e.prototype.combineExecResults=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.forEach((function(t){t.missing&&(e=e||[]).push.apply(e,t.missing)})),{result:t.pop().result,missing:e}},e.prototype.executeSubSelectedArray=function(e){var t,n=this,r=e.field,i=e.array,o=e.execContext;function a(e){return e.missing&&(t=t||[]).push.apply(t,e.missing),e.result}return i=i.map((function(e){return null===e?null:Array.isArray(e)?a(n.executeSubSelectedArray({field:r,array:e,execContext:o})):r.selectionSet?a(n.executeSelectionSet({selectionSet:r.selectionSet,rootValue:e,execContext:o})):(Y(r,e),e)})),this.freezeResults,{result:i,missing:t}},e}();function Y(e,t){if(!e.selectionSet&&Object(i.u)(t))throw new z.a(10)}function Q(){return!0}function X(e){Object(z.b)(Object(i.u)(e),11)}var J=function(){function e(e){void 0===e&&(e=Object.create(null)),this.data=e}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){this.data[e]=t},e.prototype.delete=function(e){this.data[e]=void 0},e.prototype.clear=function(){this.data=Object.create(null)},e.prototype.replace=function(e){this.data=e||Object.create(null)},e}();function Z(e){return new J(e)}var ee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="WriteError",t}return Object(r.c)(t,e),t}(Error);function te(e,t){var n=new ee("Error writing result to store for query:\n "+JSON.stringify(t));return n.message+="\n"+e.message,n.stack=e.stack,n}var ne=function(){function e(){}return e.prototype.writeQueryToStore=function(e){var t=e.query,n=e.result,r=e.store,i=void 0===r?G():r,o=e.variables,a=e.dataIdFromObject,s=e.fragmentMatcherFunction;return this.writeResultToStore({dataId:"ROOT_QUERY",result:n,document:t,store:i,variables:o,dataIdFromObject:a,fragmentMatcherFunction:s})},e.prototype.writeResultToStore=function(e){var t=e.dataId,n=e.result,r=e.document,o=e.store,a=void 0===o?G():o,s=e.variables,l=e.dataIdFromObject,u=e.fragmentMatcherFunction,c=Object(i.m)(r);try{return this.writeSelectionSetToStore({result:n,dataId:t,selectionSet:c.selectionSet,context:{store:a,processedData:{},variables:Object(i.c)({},Object(i.h)(c),s),dataIdFromObject:l,fragmentMap:Object(i.g)(Object(i.j)(r)),fragmentMatcherFunction:u}})}catch(e){throw te(e,r)}},e.prototype.writeSelectionSetToStore=function(e){var t=this,n=e.result,r=e.dataId,o=e.selectionSet,a=e.context,s=a.variables,l=a.store,u=a.fragmentMap;return o.selections.forEach((function(e){var o;if(Object(i.F)(e,s))if(Object(i.t)(e)){var l=Object(i.E)(e),c=n[l];if(void 0!==c)t.writeFieldToStore({dataId:r,value:c,field:e,context:a});else{var d=!1,f=!1;e.directives&&e.directives.length&&(d=e.directives.some((function(e){return e.name&&"defer"===e.name.value})),f=e.directives.some((function(e){return e.name&&"client"===e.name.value}))),!d&&!f&&a.fragmentMatcherFunction}}else{var p=void 0;Object(i.v)(e)?p=e:(p=(u||{})[e.name.value],Object(z.b)(p,3));var h=!0;if(a.fragmentMatcherFunction&&p.typeCondition){var m=r||"self",g=Object(i.H)({id:m,typename:void 0}),v={store:new J((o={},o[m]=n,o)),cacheRedirects:{}},y=a.fragmentMatcherFunction(g,p.typeCondition.name.value,v);Object(i.x)(),h=!!y}h&&t.writeSelectionSetToStore({result:n,selectionSet:p.selectionSet,dataId:r,context:a})}})),l},e.prototype.writeFieldToStore=function(e){var t,n,o,a=e.field,s=e.value,l=e.dataId,u=e.context,d=u.variables,f=u.dataIdFromObject,p=u.store,h=Object(i.G)(a,d);if(a.selectionSet&&null!==s)if(Array.isArray(s)){var m=l+"."+h;n=this.processArrayValue(s,m,a.selectionSet,u)}else{var g=l+"."+h,v=!0;if(re(g)||(g="$"+g),f){var y=f(s);Object(z.b)(!y||!re(y),4),(y||"number"==typeof y&&0===y)&&(g=y,v=!1)}ie(g,a,u.processedData)||this.writeSelectionSetToStore({dataId:g,result:s,selectionSet:a.selectionSet,context:u});var b=s.__typename;n=Object(i.H)({id:g,typename:b},v);var _=(o=p.get(l))&&o[h];if(_!==n&&Object(i.u)(_)){var w=void 0!==_.typename,x=void 0!==b,k=w&&x&&_.typename!==b;Object(z.b)(!v||_.generated||k,5),Object(z.b)(!w||x,6),_.generated&&(k?v||p.delete(_.id):function e(t,n,o){if(t===n)return!1;var a=o.get(t),s=o.get(n),l=!1;Object.keys(a).forEach((function(t){var n=a[t],r=s[t];Object(i.u)(n)&&re(n.id)&&Object(i.u)(r)&&!Object(c.a)(n,r)&&e(n.id,r.id,o)&&(l=!0)})),o.delete(t);var u=Object(r.a)(Object(r.a)({},a),s);if(Object(c.a)(u,s))return l;return o.set(n,u),!0}(_.id,n.id,p))}}else n=null!=s&&"object"==typeof s?{type:"json",json:s}:s;(o=p.get(l))&&Object(c.a)(n,o[h])||p.set(l,Object(r.a)(Object(r.a)({},o),((t={})[h]=n,t)))},e.prototype.processArrayValue=function(e,t,n,r){var o=this;return e.map((function(e,a){if(null===e)return null;var s=t+"."+a;if(Array.isArray(e))return o.processArrayValue(e,s,n,r);var l=!0;if(r.dataIdFromObject){var u=r.dataIdFromObject(e);u&&(s=u,l=!1)}return ie(s,n,r.processedData)||o.writeSelectionSetToStore({dataId:s,result:e,selectionSet:n,context:r}),Object(i.H)({id:s,typename:e.__typename},l)}))},e}();function re(e){return"$"===e[0]}function ie(e,t,n){if(!n)return!1;if(n[e]){if(n[e].indexOf(t)>=0)return!0;n[e].push(t)}else n[e]=[t];return!1}var oe={fragmentMatcher:new H,dataIdFromObject:ae,addTypename:!0,resultCaching:!0,freezeResults:!1};function ae(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null}var se=Object.prototype.hasOwnProperty,le=function(e){function t(t,n,r){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=n,i.transaction=r,i}return Object(r.c)(t,e),t.prototype.toObject=function(){return Object(r.a)(Object(r.a)({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return se.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(J),ue=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;n.watches=new Set,n.typenameDocumentCache=new Map,n.cacheKeyRoot=new D(i.e),n.silenceBroadcast=!1,n.config=Object(r.a)(Object(r.a)({},oe),t),n.config.customResolvers&&(n.config.cacheRedirects=n.config.customResolvers),n.config.cacheResolvers&&(n.config.cacheRedirects=n.config.cacheResolvers),n.addTypename=!!n.config.addTypename,n.data=n.config.resultCaching?new $:new J,n.optimisticData=n.data,n.storeWriter=new ne,n.storeReader=new K({cacheKeyRoot:n.cacheKeyRoot,freezeResults:t.freezeResults});var o=n,a=o.maybeBroadcastWatch;return n.maybeBroadcastWatch=B((function(e){return a.call(n,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return o.data instanceof $?o.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),n}return Object(r.c)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:n,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:n}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:n,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new z.a(7)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],n=0,r=this.optimisticData;r instanceof le;)r.optimisticId===e?++n:t.push(r),r=r.parent;if(n>0){for(this.optimisticData=r;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var n=this.data,r=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new le(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=r,this.data=n}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(i.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(u)},function(e,t,n){"use strict";n.r(t),n.d(t,"YAML",(function(){return fe}));var r=n(0),i=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){return Object(r.j)(this,n),t.call(this,r.e.BLANK_LINE)}return Object(r.i)(n,[{key:"parse",value:function(e,t){return this.context=e,this.range=new r.d(t,t+1),t+1}},{key:"includesTrailingLines",get:function(){return!0}}]),n}(r.b),o=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e,i){var o;return Object(r.j)(this,n),(o=t.call(this,e,i)).node=null,o}return Object(r.i)(n,[{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,o=e.src,a=e.atLineStart,s=e.lineStart;a||this.type!==r.e.SEQ_ITEM||(this.error=new r.n(this,"Sequence items must not have preceding content on the same line"));for(var l=a?t-s:e.indent,u=r.b.endOfWhiteSpace(o,t+1),c=o[u],d="#"===c,f=[],p=null;"\n"===c||"#"===c;){if("#"===c){var h=r.b.endOfLine(o,u+1);f.push(new r.d(u,h)),u=h}else{a=!0,s=u+1,"\n"===o[r.b.endOfWhiteSpace(o,s)]&&0===f.length&&(s=(p=new i).parse({src:o},s)),u=r.b.endOfIndent(o,s)}c=o[u]}if(r.b.nextNodeIsIndented(c,u-(s+l),this.type!==r.e.SEQ_ITEM)?this.node=n({atLineStart:a,inCollection:!1,indent:l,lineStart:s,parent:this},u):c&&s>t+1&&(u=s-1),this.node){if(p){var m=e.parent.items||e.parent.contents;m&&m.push(p)}f.length&&Array.prototype.push.apply(this.props,f),u=this.node.range.end}else if(d){var g=f[0];this.props.push(g),u=g.end}else u=r.b.endOfLine(o,t+1);var v=this.node?this.node.valueRange.end:u;return this.valueRange=new r.d(t,v),u}},{key:"setOrigRanges",value:function(e,t){return t=Object(r.s)(Object(r.t)(n.prototype),"setOrigRanges",this).call(this,e,t),this.node?this.node.setOrigRanges(e,t):t}},{key:"toString",value:function(){var e=this.context.src,t=this.node,n=this.range,i=this.value;if(null!=i)return i;var o=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return r.b.addStringTerminator(e,n.end,o)}},{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}}]),n}(r.b),a=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){return Object(r.j)(this,n),t.call(this,r.e.COMMENT)}return Object(r.i)(n,[{key:"parse",value:function(e,t){this.context=e;var n=this.parseComment(t);return this.range=new r.d(t,n),n}}]),n}(r.b);function s(e){for(var t=e;t instanceof o;)t=t.node;if(!(t instanceof l))return null;for(var n=t.items.length,i=-1,a=n-1;a>=0;--a){var s=t.items[a];if(s.type===r.e.COMMENT){var u=s.context,c=u.indent,d=u.lineStart;if(c>0&&s.range.start>=d+c)break;i=a}else{if(s.type!==r.e.BLANK_LINE)break;i=a}}if(-1===i)return null;for(var f=t.items.splice(i,n-i),p=f[0].range.start;t.range.end=p,t.valueRange&&t.valueRange.end>p&&(t.valueRange.end=p),t!==e;)t=t.context.parent;return f}var l=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e){var i;Object(r.j)(this,n),i=t.call(this,e.type===r.e.SEQ_ITEM?r.e.SEQ:r.e.MAP);for(var o=e.props.length-1;o>=0;--o)if(e.props[o].start<e.context.lineStart){i.props=e.props.slice(0,o+1),e.props=e.props.slice(o+1);var a=e.props[0]||e.valueRange;e.range.start=a.start;break}i.items=[e];var l=s(e);return l&&Array.prototype.push.apply(i.items,l),i}return Object(r.i)(n,null,[{key:"nextContentHasIndent",value:function(e,t,i){var o=r.b.endOfLine(e,t)+1,a=e[t=r.b.endOfWhiteSpace(e,o)];return!!a&&(t>=o+i||("#"===a||"\n"===a)&&n.nextContentHasIndent(e,t,i))}}]),Object(r.i)(n,[{key:"parse",value:function(e,t){this.context=e;var o=e.parseNode,l=e.src,u=r.b.startOfLine(l,t),c=this.items[0];c.context.parent=this,this.valueRange=r.d.copy(c.valueRange);for(var d=c.range.start-c.context.lineStart,f=t,p=l[f=r.b.normalizeOffset(l,f)],h=r.b.endOfWhiteSpace(l,u)===f,m=!1;p;){for(;"\n"===p||"#"===p;){if(h&&"\n"===p&&!m){var g=new i;if(f=g.parse({src:l},f),this.valueRange.end=f,f>=l.length){p=null;break}this.items.push(g),f-=1}else if("#"===p){if(f<u+d&&!n.nextContentHasIndent(l,f,d))return f;var v=new a;if(f=v.parse({indent:d,lineStart:u,src:l},f),this.items.push(v),this.valueRange.end=f,f>=l.length){p=null;break}}if(u=f+1,f=r.b.endOfIndent(l,u),r.b.atBlank(l,f)){var y=r.b.endOfWhiteSpace(l,f),b=l[y];b&&"\n"!==b&&"#"!==b||(f=y)}p=l[f],h=!0}if(!p)break;if(f!==u+d&&(h||":"!==p)){if(f<u+d){u>t&&(f=u);break}if(!this.error){this.error=new r.f(this,"All collection items must start at the same column")}}if(c.type===r.e.SEQ_ITEM){if("-"!==p){u>t&&(f=u);break}}else if("-"===p&&!this.error){var _=l[f+1];if(!_||"\n"===_||"\t"===_||" "===_){this.error=new r.f(this,"A collection cannot be both a mapping and a sequence")}}var w=o({atLineStart:h,inCollection:!0,indent:d,lineStart:u,parent:this},f);if(!w)return f;if(this.items.push(w),this.valueRange.end=w.valueRange.end,p=l[f=r.b.normalizeOffset(l,w.range.end)],h=!1,m=w.includesTrailingLines,p){for(var x=f-1,k=l[x];" "===k||"\t"===k;)k=l[--x];"\n"===k&&(u=x+1,h=!0)}var E=s(w);E&&Array.prototype.push.apply(this.items,E)}return f}},{key:"setOrigRanges",value:function(e,t){return t=Object(r.s)(Object(r.t)(n.prototype),"setOrigRanges",this).call(this,e,t),this.items.forEach((function(n){t=n.setOrigRanges(e,t)})),t}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,i=this.value;if(null!=i)return i;for(var o=e.slice(n.start,t[0].range.start)+String(t[0]),a=1;a<t.length;++a){var s=t[a],l=s.context,u=l.atLineStart,c=l.indent;if(u)for(var d=0;d<c;++d)o+=" ";o+=String(s)}return r.b.addStringTerminator(e,n.end,o)}},{key:"includesTrailingLines",get:function(){return this.items.length>0}}]),n}(r.b),u=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){var e;return Object(r.j)(this,n),(e=t.call(this,r.e.DIRECTIVE)).name=null,e}return Object(r.i)(n,[{key:"parseName",value:function(e){for(var t=this.context.src,n=e,r=t[n];r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}},{key:"parseParameters",value:function(e){for(var t=this.context.src,n=e,i=t[n];i&&"\n"!==i&&"#"!==i;)i=t[n+=1];return this.valueRange=new r.d(e,n),n}},{key:"parse",value:function(e,t){this.context=e;var n=this.parseName(t+1);return n=this.parseParameters(n),n=this.parseComment(n),this.range=new r.d(t,n),n}},{key:"parameters",get:function(){var e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}}]),n}(r.b),c=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){var e;return Object(r.j)(this,n),(e=t.call(this,r.e.DOCUMENT)).directives=null,e.contents=null,e.directivesEndMarker=null,e.documentEndMarker=null,e}return Object(r.i)(n,null,[{key:"startCommentOrEndBlankLine",value:function(e,t){var n=r.b.endOfWhiteSpace(e,t),i=e[n];return"#"===i||"\n"===i?n:t}}]),Object(r.i)(n,[{key:"parseDirectives",value:function(e){var t=this.context.src;this.directives=[];for(var o=!0,s=!1,l=e;!r.b.atDocumentBoundary(t,l,r.a.DIRECTIVES_END);)switch(t[l=n.startCommentOrEndBlankLine(t,l)]){case"\n":if(o){var c=new i;(l=c.parse({src:t},l))<t.length&&this.directives.push(c)}else l+=1,o=!0;break;case"#":var d=new a;l=d.parse({src:t},l),this.directives.push(d),o=!1;break;case"%":var f=new u;l=f.parse({parent:this,src:t},l),this.directives.push(f),s=!0,o=!1;break;default:return s?this.error=new r.n(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l}return t[l]?(this.directivesEndMarker=new r.d(l,l+3),l+3):(s?this.error=new r.n(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l)}},{key:"parseContents",value:function(e){var t=this.context,o=t.parseNode,l=t.src;this.contents||(this.contents=[]);for(var u=e;"-"===l[u-1];)u-=1;var c=r.b.endOfWhiteSpace(l,e),d=u===e;for(this.valueRange=new r.d(c);!r.b.atDocumentBoundary(l,c,r.a.DOCUMENT_END);){switch(l[c]){case"\n":if(d){var f=new i;(c=f.parse({src:l},c))<l.length&&this.contents.push(f)}else c+=1,d=!0;u=c;break;case"#":var p=new a;c=p.parse({src:l},c),this.contents.push(p),d=!1;break;default:var h=r.b.endOfIndent(l,c),m=o({atLineStart:d,indent:-1,inFlow:!1,inCollection:!1,lineStart:u,parent:this},h);if(!m)return this.valueRange.end=h;this.contents.push(m),c=m.range.end,d=!1;var g=s(m);g&&Array.prototype.push.apply(this.contents,g)}c=n.startCommentOrEndBlankLine(l,c)}if(this.valueRange.end=c,l[c]&&(this.documentEndMarker=new r.d(c,c+3),l[c+=3])){if("#"===l[c=r.b.endOfWhiteSpace(l,c)]){var v=new a;c=v.parse({src:l},c),this.contents.push(v)}switch(l[c]){case"\n":c+=1;break;case void 0:break;default:this.error=new r.f(this,"Document end marker line cannot have a non-comment suffix")}}return c}},{key:"parse",value:function(e,t){e.root=this,this.context=e;var n=65279===e.src.charCodeAt(t)?t+1:t;return n=this.parseDirectives(n),n=this.parseContents(n)}},{key:"setOrigRanges",value:function(e,t){return t=Object(r.s)(Object(r.t)(n.prototype),"setOrigRanges",this).call(this,e,t),this.directives.forEach((function(n){t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((function(n){t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}},{key:"toString",value:function(){var e=this.contents,t=this.directives,n=this.value;if(null!=n)return n;var i=t.join("");return e.length>0&&((t.length>0||e[0].type===r.e.COMMENT)&&(i+="---\n"),i+=e.join("")),"\n"!==i[i.length-1]&&(i+="\n"),i}}]),n}(r.b),d=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){return Object(r.j)(this,n),t.apply(this,arguments)}return Object(r.i)(n,[{key:"parse",value:function(e,t){this.context=e;var n=e.src,i=r.b.endOfIdentifier(n,t+1);return this.valueRange=new r.d(t+1,i),i=r.b.endOfWhiteSpace(n,i),i=this.parseComment(i)}}]),n}(r.b),f="CLIP",p="KEEP",h="STRIP",m=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e,i){var o;return Object(r.j)(this,n),(o=t.call(this,e,i)).blockIndent=null,o.chomping=f,o.header=null,o}return Object(r.i)(n,[{key:"parseBlockHeader",value:function(e){for(var t=this.context.src,n=e+1,i="";;){var o=t[n];switch(o){case"-":this.chomping=h;break;case"+":this.chomping=p;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":i+=o;break;default:return this.blockIndent=Number(i)||null,this.header=new r.d(e,n),n}n+=1}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,n=t.indent,i=t.src,o=!!this.blockIndent,a=e,s=e,l=1,u=i[a];"\n"===u&&(a+=1,!r.b.atDocumentBoundary(i,a));u=i[a]){var c=r.b.endOfBlockIndent(i,n,a);if(null===c)break;var d=i[c],f=c-(a+n);if(this.blockIndent){if(d&&"\n"!==d&&f<this.blockIndent){if("#"===i[c])break;if(!this.error){var h="Block scalars must not be less indented than their ".concat(o?"explicit indentation indicator":"first line");this.error=new r.n(this,h)}}}else if("\n"!==i[c]){if(f<l){this.error=new r.n(this,"Block scalars with more-indented leading empty lines must use an explicit indentation indicator")}this.blockIndent=f}else f>l&&(l=f);a="\n"===i[c]?c:s=r.b.endOfLine(i,c)}return this.chomping!==p&&(a=i[s]?s+1:s),this.valueRange=new r.d(e+1,a),a}},{key:"parse",value:function(e,t){this.context=e;var n=e.src,i=this.parseBlockHeader(t);return i=r.b.endOfWhiteSpace(n,i),i=this.parseComment(i),i=this.parseBlockValue(i)}},{key:"setOrigRanges",value:function(e,t){return t=Object(r.s)(Object(r.t)(n.prototype),"setOrigRanges",this).call(this,e,t),this.header?this.header.setOrigRange(e,t):t}},{key:"includesTrailingLines",get:function(){return this.chomping===p}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end,i=this.context,o=i.indent,a=i.src;if(this.valueRange.isEmpty())return"";for(var s=null,l=a[n-1];"\n"===l||"\t"===l||" "===l;){if((n-=1)<=t){if(this.chomping===p)break;return""}"\n"===l&&(s=n),l=a[n-1]}var u=n+1;s&&(this.chomping===p?(u=s,n=this.valueRange.end):n=s);for(var c=o+this.blockIndent,d=this.type===r.e.BLOCK_FOLDED,f=!0,m="",g="",v=!1,y=t;y<n;++y){for(var b=0;b<c&&" "===a[y];++b)y+=1;var _=a[y];if("\n"===_)"\n"===g?m+="\n":g="\n";else{var w=r.b.endOfLine(a,y),x=a.slice(y,w);y=w,d&&(" "===_||"\t"===_)&&y<u?(" "===g?g="\n":v||f||"\n"!==g||(g="\n\n"),m+=g+x,g=w<n&&a[w]||"",v=!0):(m+=g+x,g=d&&y<u?" ":"\n",v=!1),f&&""!==x&&(f=!1)}}return this.chomping===h?m:m+"\n"}}]),n}(r.b),g=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e,i){var o;return Object(r.j)(this,n),(o=t.call(this,e,i)).items=null,o}return Object(r.i)(n,[{key:"prevNodeIsJsonLike",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items.length,t=this.items[e-1];return!!t&&(t.jsonLike||t.type===r.e.COMMENT&&this.prevNodeIsJsonLike(e-1))}},{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,o=e.src,s=e.indent,l=e.lineStart,u=o[t];this.items=[{char:u,offset:t}];var c=r.b.endOfWhiteSpace(o,t+1);for(u=o[c];u&&"]"!==u&&"}"!==u;){switch(u){case"\n":if(l=c+1,"\n"===o[r.b.endOfWhiteSpace(o,l)]){var d=new i;l=d.parse({src:o},l),this.items.push(d)}if((c=r.b.endOfIndent(o,l))<=l+s&&(u=o[c],c<l+s||"]"!==u&&"}"!==u)){this.error=new r.n(this,"Insufficient indentation in flow collection")}break;case",":this.items.push({char:u,offset:c}),c+=1;break;case"#":var f=new a;c=f.parse({src:o},c),this.items.push(f);break;case"?":case":":var p=o[c+1];if("\n"===p||"\t"===p||" "===p||","===p||":"===u&&this.prevNodeIsJsonLike()){this.items.push({char:u,offset:c}),c+=1;break}default:var h=n({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:l,parent:this},c);if(!h)return this.valueRange=new r.d(t,c),c;this.items.push(h),c=r.b.normalizeOffset(o,h.range.end)}u=o[c=r.b.endOfWhiteSpace(o,c)]}return this.valueRange=new r.d(t,c+1),u&&(this.items.push({char:u,offset:c}),c=r.b.endOfWhiteSpace(o,c+1),c=this.parseComment(c)),c}},{key:"setOrigRanges",value:function(e,t){return t=Object(r.s)(Object(r.t)(n.prototype),"setOrigRanges",this).call(this,e,t),this.items.forEach((function(n){if(n instanceof r.b)t=n.setOrigRanges(e,t);else if(0===e.length)n.origOffset=n.offset;else{for(var i=t;i<e.length&&!(e[i]>n.offset);)++i;n.origOffset=n.offset+i,t=i}})),t}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,i=this.value;if(null!=i)return i;var o=t.filter((function(e){return e instanceof r.b})),a="",s=n.start;return o.forEach((function(t){var n=e.slice(s,t.range.start);s=t.range.end,"\n"===(a+=n+String(t))[a.length-1]&&"\n"!==e[s-1]&&"\n"===e[s]&&(s+=1)})),a+=e.slice(s,n.end),r.b.addStringTerminator(e,n.end,a)}}]),n}(r.b),v=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){return Object(r.j)(this,n),t.apply(this,arguments)}return Object(r.i)(n,[{key:"parseCharCode",value:function(e,t,n){var i=this.context.src,o=i.substr(e,t),a=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(a)?(n.push(new r.f(this,"Invalid escape sequence ".concat(i.substr(e-2,t+2)))),i.substr(e-2,t+2)):String.fromCodePoint(a)}},{key:"parse",value:function(e,t){this.context=e;var i=e.src,o=n.endOfQuote(i,t+1);return this.valueRange=new r.d(t,o),o=r.b.endOfWhiteSpace(i,o),o=this.parseComment(o)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,i=t.end,o=this.context,a=o.indent,s=o.src;'"'!==s[i-1]&&e.push(new r.f(this,'Missing closing "quote'));for(var l="",u=n+1;u<i-1;++u){var c=s[u];if("\n"===c){r.b.atDocumentBoundary(s,u+1)&&e.push(new r.n(this,"Document boundary indicators are not allowed within string values"));var d=r.b.foldNewline(s,u,a);l+=d.fold,u=d.offset,d.error&&e.push(new r.n(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===c)switch(s[u+=1]){case"0":l+="\0";break;case"a":l+="";break;case"b":l+="\b";break;case"e":l+="";break;case"f":l+="\f";break;case"n":l+="\n";break;case"r":l+="\r";break;case"t":l+="\t";break;case"v":l+="\v";break;case"N":l+="…";break;case"_":l+=" ";break;case"L":l+="\u2028";break;case"P":l+="\u2029";break;case" ":l+=" ";break;case'"':l+='"';break;case"/":l+="/";break;case"\\":l+="\\";break;case"\t":l+="\t";break;case"x":l+=this.parseCharCode(u+1,2,e),u+=2;break;case"u":l+=this.parseCharCode(u+1,4,e),u+=4;break;case"U":l+=this.parseCharCode(u+1,8,e),u+=8;break;case"\n":for(;" "===s[u+1]||"\t"===s[u+1];)u+=1;break;default:e.push(new r.f(this,"Invalid escape sequence ".concat(s.substr(u-1,2)))),l+="\\"+s[u]}else if(" "===c||"\t"===c){for(var f=u,p=s[u+1];" "===p||"\t"===p;)p=s[(u+=1)+1];"\n"!==p&&(l+=u>f?s.slice(f,u+1):c)}else l+=c}return e.length>0?{errors:e,str:l}:l}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}}]),n}(r.b),y=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){return Object(r.j)(this,n),t.apply(this,arguments)}return Object(r.i)(n,[{key:"parse",value:function(e,t){this.context=e;var i=e.src,o=n.endOfQuote(i,t+1);return this.valueRange=new r.d(t,o),o=r.b.endOfWhiteSpace(i,o),o=this.parseComment(o)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,i=t.end,o=this.context,a=o.indent,s=o.src;"'"!==s[i-1]&&e.push(new r.f(this,"Missing closing 'quote"));for(var l="",u=n+1;u<i-1;++u){var c=s[u];if("\n"===c){r.b.atDocumentBoundary(s,u+1)&&e.push(new r.n(this,"Document boundary indicators are not allowed within string values"));var d=r.b.foldNewline(s,u,a);l+=d.fold,u=d.offset,d.error&&e.push(new r.n(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===c)l+=c,"'"!==s[u+=1]&&e.push(new r.f(this,"Unescaped single quote? This should not happen."));else if(" "===c||"\t"===c){for(var f=u,p=s[u+1];" "===p||"\t"===p;)p=s[(u+=1)+1];"\n"!==p&&(l+=u>f?s.slice(f,u+1):c)}else l+=c}return e.length>0?{errors:e,str:l}:l}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}}]),n}(r.b);function b(e,t){switch(e){case r.e.ALIAS:return new d(e,t);case r.e.BLOCK_FOLDED:case r.e.BLOCK_LITERAL:return new m(e,t);case r.e.FLOW_MAP:case r.e.FLOW_SEQ:return new g(e,t);case r.e.MAP_KEY:case r.e.MAP_VALUE:case r.e.SEQ_ITEM:return new o(e,t);case r.e.COMMENT:case r.e.PLAIN:return new r.c(e,t);case r.e.QUOTE_DOUBLE:return new v(e,t);case r.e.QUOTE_SINGLE:return new y(e,t);default:return null}}var _=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.atLineStart,a=i.inCollection,s=i.inFlow,u=i.indent,c=i.lineStart,d=i.parent;Object(r.j)(this,e),Object(r.l)(this,"parseNode",(function(n,i){if(r.b.atDocumentBoundary(t.src,i))return null;var o=new e(t,n),a=o.parseProps(i),s=a.props,u=a.type,c=a.valueStart,d=b(u,s),f=d.parse(o,c);if(d.range=new r.d(i,f),f<=i&&(d.error=new Error("Node#parse consumed no characters"),d.error.parseEnd=f,d.error.source=d,d.range.end=i+1),o.nodeStartsCollection(d)){d.error||o.atLineStart||o.parent.type!==r.e.DOCUMENT||(d.error=new r.f(d,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var p=new l(d);return f=p.parse(new e(o),f),p.range=new r.d(i,f),p}return d})),this.atLineStart=null!=o?o:n.atLineStart||!1,this.inCollection=null!=a?a:n.inCollection||!1,this.inFlow=null!=s?s:n.inFlow||!1,this.indent=null!=u?u:n.indent,this.lineStart=null!=c?c:n.lineStart,this.parent=null!=d?d:n.parent||{},this.root=n.root,this.src=n.src}return Object(r.i)(e,null,[{key:"parseType",value:function(e,t,n){switch(e[t]){case"*":return r.e.ALIAS;case">":return r.e.BLOCK_FOLDED;case"|":return r.e.BLOCK_LITERAL;case"{":return r.e.FLOW_MAP;case"[":return r.e.FLOW_SEQ;case"?":return!n&&r.b.atBlank(e,t+1,!0)?r.e.MAP_KEY:r.e.PLAIN;case":":return!n&&r.b.atBlank(e,t+1,!0)?r.e.MAP_VALUE:r.e.PLAIN;case"-":return!n&&r.b.atBlank(e,t+1,!0)?r.e.SEQ_ITEM:r.e.PLAIN;case'"':return r.e.QUOTE_DOUBLE;case"'":return r.e.QUOTE_SINGLE;default:return r.e.PLAIN}}}]),Object(r.i)(e,[{key:"nodeStartsCollection",value:function(e){var t=this.inCollection,n=this.inFlow,i=this.src;if(t||n)return!1;if(e instanceof o)return!0;var a=e.range.end;return"\n"!==i[a]&&"\n"!==i[a-1]&&":"===i[a=r.b.endOfWhiteSpace(i,a)]}},{key:"parseProps",value:function(t){for(var n=this.inFlow,i=this.parent,o=this.src,a=[],s=!1,l=o[t=this.atLineStart?r.b.endOfIndent(o,t):r.b.endOfWhiteSpace(o,t)];l===r.a.ANCHOR||l===r.a.COMMENT||l===r.a.TAG||"\n"===l;){if("\n"===l){var u=t+1,c=r.b.endOfIndent(o,u),d=c-(u+this.indent),f=i.type===r.e.SEQ_ITEM&&i.context.atLineStart;if(!r.b.nextNodeIsIndented(o[c],d,!f))break;this.atLineStart=!0,this.lineStart=u,s=!1,t=c}else if(l===r.a.COMMENT){var p=r.b.endOfLine(o,t+1);a.push(new r.d(t,p)),t=p}else{var h=r.b.endOfIdentifier(o,t+1);l===r.a.TAG&&","===o[h]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(o.slice(t+1,h+13))&&(h=r.b.endOfIdentifier(o,h+5)),a.push(new r.d(t,h)),s=!0,t=r.b.endOfWhiteSpace(o,h)}l=o[t]}return s&&":"===l&&r.b.atBlank(o,t+1,!0)&&(t-=1),{props:a,type:e.parseType(o,t,n),valueStart:t}}}]),e}();function w(e){var t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,(function(e,n){return e.length>1&&t.push(n),"\n"})));var n=[],r=0;do{var i=new c,o=new _({src:e});r=i.parse(o,r),n.push(i)}while(r<e.length);return n.setOrigRanges=function(){if(0===t.length)return!1;for(var e=1;e<t.length;++e)t[e]-=e;for(var r=0,i=0;i<n.length;++i)r=n[i].setOrigRanges(t,r);return t.splice(0,t.length),!0},n.toString=function(){return n.join("...\n")},n}var x=n(8),k=n(66);var E={createNode:function(e,t,n){var i=new x.k(e);if(t instanceof Map){var o,a=Object(r.g)(t);try{for(a.s();!(o=a.n()).done;){var s=Object(r.o)(o.value,2),l=s[0],u=s[1];i.items.push(e.createPair(l,u,n))}}catch(e){a.e(e)}finally{a.f()}}else if(t&&"object"===Object(r.h)(t))for(var c=0,d=Object.keys(t);c<d.length;c++){var f=d[c];i.items.push(e.createPair(f,t[f],n))}return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i},default:!0,nodeClass:x.k,tag:"tag:yaml.org,2002:map",resolve:x.n};var S={createNode:function(e,t,n){var i=new x.g(e);if(t&&t[Symbol.iterator]){var o,a=Object(r.g)(t);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=e.createNode(s,n.wrapScalars,null,n);i.items.push(l)}}catch(e){a.e(e)}finally{a.f()}}return i},default:!0,nodeClass:x.g,tag:"tag:yaml.org,2002:seq",resolve:x.o},O={identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:x.q,stringify:function(e,t,n,r){return t=Object.assign({actualString:!0},t),Object(x.j)(e,t,n,r)},options:x.v},T=[E,S,O],C=function(e){return"bigint"==typeof e||Number.isInteger(e)},A=function(e,t,n){return x.p.asBigInt?BigInt(e):parseInt(t,n)};function P(e,t,n){var r=e.value;return C(r)&&r>=0?n+r.toString(t):Object(x.r)(e)}var R={identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new x.f(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:x.t,stringify:function(){return x.t.nullStr}},M={identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function(e){return"t"===e[0]||"T"===e[0]},options:x.h,stringify:function(e){return e.value?x.h.trueStr:x.h.falseStr}},I={identify:function(e){return C(e)&&e>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function(e,t){return A(e,t,8)},options:x.p,stringify:function(e){return P(e,8,"0o")}},j={identify:C,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function(e){return A(e,e,10)},options:x.p,stringify:x.r},D={identify:function(e){return C(e)&&e>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function(e,t){return A(e,t,16)},options:x.p,stringify:function(e){return P(e,16,"0x")}},L={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:x.r},N={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:function(e){return parseFloat(e)},stringify:function(e){var t=e.value;return Number(t).toExponential()}},F={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve:function(e,t,n){var r=t||n,i=new x.f(parseFloat(e));return r&&"0"===r[r.length-1]&&(i.minFractionDigits=r.length),i},stringify:x.r},B=T.concat([R,M,I,j,D,L,N,F]),z=function(e){return"bigint"==typeof e||Number.isInteger(e)},U=function(e){var t=e.value;return JSON.stringify(t)},q=[E,S,{identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:x.q,stringify:U},{identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new x.f(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function(){return null},stringify:U},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:function(e){return"true"===e},stringify:U},{identify:z,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function(e){return x.p.asBigInt?BigInt(e):parseInt(e,10)},stringify:function(e){var t=e.value;return z(t)?t.toString():JSON.stringify(t)}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function(e){return parseFloat(e)},stringify:U}];q.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var H=function(e){return e.value?x.h.trueStr:x.h.falseStr},W=function(e){return"bigint"==typeof e||Number.isInteger(e)};function V(e,t,n){var r=t.replace(/_/g,"");if(x.p.asBigInt){switch(n){case 2:r="0b".concat(r);break;case 8:r="0o".concat(r);break;case 16:r="0x".concat(r)}var i=BigInt(r);return"-"===e?BigInt(-1)*i:i}var o=parseInt(r,n);return"-"===e?-1*o:o}function $(e,t,n){var r=e.value;if(W(r)){var i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return Object(x.r)(e)}var G=T.concat([{identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new x.f(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:x.t,stringify:function(){return x.t.nullStr}},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function(){return!0},options:x.h,stringify:H},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function(){return!1},options:x.h,stringify:H},{identify:W,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:function(e,t,n){return V(t,n,2)},stringify:function(e){return $(e,2,"0b")}},{identify:W,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:function(e,t,n){return V(t,n,8)},stringify:function(e){return $(e,8,"0")}},{identify:W,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:function(e,t,n){return V(t,n,10)},stringify:x.r},{identify:W,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:function(e,t,n){return V(t,n,16)},stringify:function(e){return $(e,16,"0x")}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:x.r},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function(e){return parseFloat(e.replace(/_/g,""))},stringify:function(e){var t=e.value;return Number(t).toExponential()}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function(e,t){var n=new x.f(parseFloat(e.replace(/_/g,"")));if(t){var r=t.replace(/_/g,"");"0"===r[r.length-1]&&(n.minFractionDigits=r.length)}return n},stringify:x.r}],k.b,k.e,k.f,k.g,k.d,k.c,k.h),K={core:B,failsafe:T,json:q,yaml11:G},Y={binary:k.b,bool:M,float:F,floatExp:N,floatNaN:L,floatTime:k.c,int:j,intHex:D,intOct:I,intTime:k.d,map:E,null:R,omap:k.e,pairs:k.f,seq:S,set:k.g,timestamp:k.h};function Q(e,t,n){if(e instanceof x.d)return e;var i=n.defaultPrefix,o=n.onTagObj,a=n.prevObjects,s=n.schema,l=n.wrapScalars;t&&t.startsWith("!!")&&(t=i+t.slice(2));var u=function(e,t,n){if(t){var r=n.filter((function(e){return e.tag===t})),i=r.find((function(e){return!e.format}))||r[0];if(!i)throw new Error("Tag ".concat(t," not found"));return i}return n.find((function(t){return(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format}))}(e,t,s.tags);if(!u){if("function"==typeof e.toJSON&&(e=e.toJSON()),"object"!==Object(r.h)(e))return l?new x.f(e):e;u=e instanceof Map?E:e[Symbol.iterator]?S:E}o&&(o(u),delete n.onTagObj);var c={};if(e&&"object"===Object(r.h)(e)&&a){var d=a.get(e);if(d){var f=new x.a(d);return n.aliasNodes.push(f),f}c.value=e,a.set(e,c)}return c.node=u.createNode?u.createNode(n.schema,e,n):l?new x.f(e):e,t&&c.node instanceof x.d&&(c.node.tag=t),c.node}var X=function(e,t){return e.key<t.key?-1:e.key>t.key?1:0},J=function(){function e(t){var n=t.customTags,i=t.merge,o=t.schema,a=t.sortMapEntries,s=t.tags;Object(r.j)(this,e),this.merge=!!i,this.name=o,this.sortMapEntries=!0===a?X:a||null,!n&&s&&Object(k.a)("tags","customTags"),this.tags=function(e,t,n,i){var o=e[i.replace(/\W/g,"")];if(!o){var a=Object.keys(e).map((function(e){return JSON.stringify(e)})).join(", ");throw new Error('Unknown schema "'.concat(i,'"; use one of ').concat(a))}if(Array.isArray(n)){var s,l=Object(r.g)(n);try{for(l.s();!(s=l.n()).done;){var u=s.value;o=o.concat(u)}}catch(e){l.e(e)}finally{l.f()}}else"function"==typeof n&&(o=n(o.slice()));for(var c=0;c<o.length;++c){var d=o[c];if("string"==typeof d){var f=t[d];if(!f){var p=Object.keys(t).map((function(e){return JSON.stringify(e)})).join(", ");throw new Error('Unknown custom tag "'.concat(d,'"; use one of ').concat(p))}o[c]=f}}return o}(K,Y,n||s,o)}return Object(r.i)(e,[{key:"createNode",value:function(t,n,r,i){var o={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:n};return Q(t,r,i?Object.assign(i,o):o)}},{key:"createPair",value:function(e,t,n){n||(n={wrapScalars:!0});var r=this.createNode(e,n.wrapScalars,null,n),i=this.createNode(t,n.wrapScalars,null,n);return new x.e(r,i)}}]),e}();Object(r.l)(J,"defaultPrefix",r.k),Object(r.l)(J,"defaultTags",r.u);var Z={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},ee={get binary(){return x.i},set binary(e){Object.assign(x.i,e)},get bool(){return x.h},set bool(e){Object.assign(x.h,e)},get int(){return x.p},set int(e){Object.assign(x.p,e)},get null(){return x.t},set null(e){Object.assign(x.t,e)},get str(){return x.v},set str(e){Object.assign(x.v,e)}},te={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:r.k},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:r.k}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:r.k}]}};function ne(e,t){if("1.0"===(e.version||e.options.version)){var n=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(n)return"!"+n[1];var r=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return r?"!".concat(r[1],"/").concat(r[2]):"!".concat(t.replace(/^tag:/,""))}var i=e.tagPrefixes.find((function(e){return 0===t.indexOf(e.prefix)}));if(!i){var o=e.getDefaults().tagPrefixes;i=o&&o.find((function(e){return 0===t.indexOf(e.prefix)}))}if(!i)return"!"===t[0]?t:"!<".concat(t,">");var a=t.substr(i.prefix.length).replace(/[!,[\]{}]/g,(function(e){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e]}));return i.handle+a}function re(e,t,n,i){var o,a=t.doc,s=a.anchors,l=a.schema;if(!(e instanceof x.d)){var u={aliasNodes:[],onTagObj:function(e){return o=e},prevObjects:new Map};e=l.createNode(e,!0,null,u);var c,d=Object(r.g)(u.aliasNodes);try{for(d.s();!(c=d.n()).done;){var f=c.value;f.source=f.source.node;var p=s.getName(f.source);p||(p=s.newName(),s.map[p]=f.source)}}catch(e){d.e(e)}finally{d.f()}}if(e instanceof x.e)return e.toString(t,n,i);o||(o=function(e,t){if(t instanceof x.a)return x.a;if(t.tag){var n=e.filter((function(e){return e.tag===t.tag}));if(n.length>0)return n.find((function(e){return e.format===t.format}))||n[0]}var i,o;if(t instanceof x.f){o=t.value;var a=e.filter((function(e){return e.identify&&e.identify(o)||e.class&&o instanceof e.class}));i=a.find((function(e){return e.format===t.format}))||a.find((function(e){return!e.format}))}else o=t,i=e.find((function(e){return e.nodeClass&&o instanceof e.nodeClass}));if(!i){var s=o&&o.constructor?o.constructor.name:Object(r.h)(o);throw new Error("Tag not resolved for ".concat(s," value"))}return i}(l.tags,e));var h=function(e,t,n){var r=n.anchors,i=n.doc,o=[],a=i.anchors.getName(e);return a&&(r[a]=e,o.push("&".concat(a))),e.tag?o.push(ne(i,e.tag)):t.default||o.push(ne(i,t.tag)),o.join(" ")}(e,o,t);h.length>0&&(t.indentAtStart=(t.indentAtStart||0)+h.length+1);var m="function"==typeof o.stringify?o.stringify(e,t,n,i):e instanceof x.f?Object(x.j)(e,t,n,i):e.toString(t,n,i);return h?e instanceof x.f||"{"===m[0]||"["===m[0]?"".concat(h," ").concat(m):"".concat(h,"\n").concat(t.indent).concat(m):m}var ie=function(){function e(t){Object(r.j)(this,e),Object(r.l)(this,"map",{}),this.prefix=t}return Object(r.i)(e,null,[{key:"validAnchorNode",value:function(e){return e instanceof x.f||e instanceof x.g||e instanceof x.k}}]),Object(r.i)(e,[{key:"createAlias",value:function(e,t){return this.setAnchor(e,t),new x.a(e)}},{key:"createMergePair",value:function(){for(var e=this,t=new x.c,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.value.items=r.map((function(t){if(t instanceof x.a){if(t.source instanceof x.k)return t}else if(t instanceof x.k)return e.createAlias(t);throw new Error("Merge sources must be Map nodes or their Aliases")})),t}},{key:"getName",value:function(e){var t=this.map;return Object.keys(t).find((function(n){return t[n]===e}))}},{key:"getNames",value:function(){return Object.keys(this.map)}},{key:"getNode",value:function(e){return this.map[e]}},{key:"newName",value:function(e){e||(e=this.prefix);for(var t=Object.keys(this.map),n=1;;++n){var r="".concat(e).concat(n);if(!t.includes(r))return r}}},{key:"resolveNodes",value:function(){var e=this.map,t=this._cstAliases;Object.keys(e).forEach((function(t){e[t]=e[t].resolved})),t.forEach((function(e){e.source=e.source.resolved})),delete this._cstAliases}},{key:"setAnchor",value:function(t,n){if(null!=t&&!e.validAnchorNode(t))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");var r=this.map,i=t&&Object.keys(r).find((function(e){return r[e]===t}));if(i){if(!n)return i;i!==n&&(delete r[i],r[n]=t)}else{if(!n){if(!t)return null;n=this.newName()}r[n]=t}return n}}]),e}(),oe=function(e){return Object.keys(function e(t,n){if(t&&"object"===Object(r.h)(t)){var i=t.tag;t instanceof x.b?(i&&(n[i]=!0),t.items.forEach((function(t){return e(t,n)}))):t instanceof x.e?(e(t.key,n),e(t.value,n)):t instanceof x.f&&i&&(n[i]=!0)}return n}(e,{}))};function ae(e,t){var n=e.tagPrefixes,i=Object(r.o)(t.parameters,2),o=i[0],a=i[1];if(!o||!a){throw new r.n(t,"Insufficient parameters given for %TAG directive")}if(n.some((function(e){return e.handle===o}))){throw new r.n(t,"The %TAG directive must only be given at most once per handle in the same document.")}return{handle:o,prefix:a}}function se(e,t){var n=Object(r.o)(t.parameters,1)[0];if("YAML:1.0"===t.name&&(n="1.0"),!n){throw new r.n(t,"Insufficient parameters given for %YAML directive")}if(!te[n]){var i=e.version||e.options.version,o="Document will be parsed as YAML ".concat(i," rather than YAML ").concat(n);e.warnings.push(new r.m(t,o))}return n}function le(e){if(e instanceof x.b)return!0;throw new Error("Expected a YAML collection as document contents")}var ue=function(){function e(t){Object(r.j)(this,e),this.anchors=new ie(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return Object(r.i)(e,[{key:"add",value:function(e){return le(this.contents),this.contents.add(e)}},{key:"addIn",value:function(e,t){le(this.contents),this.contents.addIn(e,t)}},{key:"delete",value:function(e){return le(this.contents),this.contents.delete(e)}},{key:"deleteIn",value:function(e){return Object(x.l)(e)?null!=this.contents&&(this.contents=null,!0):(le(this.contents),this.contents.deleteIn(e))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(e,t){return this.contents instanceof x.b?this.contents.get(e,t):void 0}},{key:"getIn",value:function(e,t){return Object(x.l)(e)?!t&&this.contents instanceof x.f?this.contents.value:this.contents:this.contents instanceof x.b?this.contents.getIn(e,t):void 0}},{key:"has",value:function(e){return this.contents instanceof x.b&&this.contents.has(e)}},{key:"hasIn",value:function(e){return Object(x.l)(e)?void 0!==this.contents:this.contents instanceof x.b&&this.contents.hasIn(e)}},{key:"set",value:function(e,t){le(this.contents),this.contents.set(e,t)}},{key:"setIn",value:function(e,t){Object(x.l)(e)?this.contents=t:(le(this.contents),this.contents.setIn(e,t))}},{key:"setSchema",value:function(e,t){if(e||t||!this.schema){"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);var n=Object.assign({},this.getDefaults(),this.options);this.schema=new J(n)}}},{key:"parse",value:function(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");var n=e.directives,i=void 0===n?[]:n,o=e.contents,a=void 0===o?[]:o,s=e.directivesEndMarker,l=e.error,u=e.valueRange;if(l&&(l.source||(l.source=this),this.errors.push(l)),function(e,t,n){var i,o=[],a=!1,s=Object(r.g)(t);try{for(s.s();!(i=s.n()).done;){var l=i.value,u=l.comment,c=l.name;switch(c){case"TAG":try{e.tagPrefixes.push(ae(e,l))}catch(t){e.errors.push(t)}a=!0;break;case"YAML":case"YAML:1.0":if(e.version){e.errors.push(new r.n(l,"The %YAML directive must only be given at most once per document."))}try{e.version=se(e,l)}catch(t){e.errors.push(t)}a=!0;break;default:if(c){var d="YAML only supports %TAG and %YAML directives, and not %".concat(c);e.warnings.push(new r.m(l,d))}}u&&o.push(u)}}catch(e){s.e(e)}finally{s.f()}if(n&&!a&&"1.1"===(e.version||n.version||e.options.version)){e.tagPrefixes=n.tagPrefixes.map((function(e){return{handle:e.handle,prefix:e.prefix}})),e.version=n.version}e.commentBefore=o.join("\n")||null}(this,i,t),s&&(this.directivesEndMarker=!0),this.range=u?[u.start,u.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(e,t){var n,i={before:[],after:[]},o=void 0,a=!1,s=Object(r.g)(t);try{for(s.s();!(n=s.n()).done;){var l=n.value;if(l.valueRange){if(void 0!==o){e.errors.push(new r.f(l,"Document contains trailing content not separated by a ... or --- line"));break}var u=Object(x.u)(e,l);a&&(u.spaceBefore=!0,a=!1),o=u}else if(null!==l.comment){(void 0===o?i.before:i.after).push(l.comment)}else l.type===r.e.BLANK_LINE&&(a=!0,void 0===o&&i.before.length>0&&!e.commentBefore&&(e.commentBefore=i.before.join("\n"),i.before=[]))}}catch(e){s.e(e)}finally{s.f()}if(e.contents=o||null,o){var c=i.before.join("\n");if(c){var d=o instanceof x.b&&o.items[0]?o.items[0]:o;d.commentBefore=d.commentBefore?"".concat(c,"\n").concat(d.commentBefore):c}e.comment=i.after.join("\n")||null}else e.comment=i.before.concat(i.after).join("\n")||null}(this,a),this.anchors.resolveNodes(),this.options.prettyErrors){var c,d=Object(r.g)(this.errors);try{for(d.s();!(c=d.n()).done;){var f=c.value;f instanceof r.p&&f.makePretty()}}catch(e){d.e(e)}finally{d.f()}var p,h=Object(r.g)(this.warnings);try{for(h.s();!(p=h.n()).done;){var m=p.value;m instanceof r.p&&m.makePretty()}}catch(e){h.e(e)}finally{h.f()}}return this}},{key:"listNonDefaultTags",value:function(){return oe(this.contents).filter((function(e){return 0!==e.indexOf(J.defaultPrefix)}))}},{key:"setTagPrefix",value:function(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){var n=this.tagPrefixes.find((function(t){return t.handle===e}));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((function(t){return t.handle!==e}))}},{key:"toJSON",value:function(e,t){var n=this,i=this.options,o=i.keepBlobsInJSON,a=i.mapAsMap,s=i.maxAliasCount,l=o&&("string"!=typeof e||!(this.contents instanceof x.f)),u={doc:this,indentStep:" ",keep:l,mapAsMap:l&&!!a,maxAliasCount:s,stringify:re},c=Object.keys(this.anchors.map);c.length>0&&(u.anchors=new Map(c.map((function(e){return[n.anchors.map[e],{alias:[],aliasCount:0,count:1}]}))));var d=Object(x.w)(this.contents,e,u);if("function"==typeof t&&u.anchors){var f,p=Object(r.g)(u.anchors.values());try{for(p.s();!(f=p.n()).done;){var h=f.value,m=h.count;t(h.res,m)}}catch(e){p.e(e)}finally{p.f()}}return d}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");var e=this.options.indent;if(!Number.isInteger(e)||e<=0){var t=JSON.stringify(e);throw new Error('"indent" option must be a positive integer, not '.concat(t))}this.setSchema();var n=[],r=!1;if(this.version){var i="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?i="%YAML:1.0":"1.1"===this.version&&(i="%YAML 1.1")),n.push(i),r=!0}var o=this.listNonDefaultTags();this.tagPrefixes.forEach((function(e){var t=e.handle,i=e.prefix;o.some((function(e){return 0===e.indexOf(i)}))&&(n.push("%TAG ".concat(t," ").concat(i)),r=!0)})),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&(!r&&this.directivesEndMarker||n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));var a={anchors:{},doc:this,indent:"",indentStep:" ".repeat(e),stringify:re},s=!1,l=null;if(this.contents){this.contents instanceof x.d&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),a.forceBlockIndent=!!this.comment,l=this.contents.comment);var u=l?null:function(){return s=!0},c=re(this.contents,a,(function(){return l=null}),u);n.push(Object(x.m)(c,"",l))}else void 0!==this.contents&&n.push(re(this.contents,a));return this.comment&&(s&&!l||""===n[n.length-1]||n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join("\n")+"\n"}}]),e}();Object(r.l)(ue,"defaults",te);var ce=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e){return Object(r.j)(this,n),t.call(this,Object.assign({},Z,e))}return n}(ue);function de(e,t){var n=w(e),i=new ce(t).parse(n[0]);if(n.length>1){i.errors.unshift(new r.n(n[1],"Source contains multiple documents; please use YAML.parseAllDocuments()"))}return i}var fe={createNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;void 0===n&&"string"==typeof t&&(n=t,t=!0);var r=Object.assign({},ue.defaults[Z.version],Z),i=new J(r);return i.createNode(e,t,n)},defaultOptions:Z,Document:ce,parse:function(e,t){var n=de(e,t);if(n.warnings.forEach((function(e){return Object(k.i)(e)})),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){var n,i,o=[],a=Object(r.g)(w(e));try{for(a.s();!(i=a.n()).done;){var s=i.value,l=new ce(t);l.parse(s,n),o.push(l),n=l}}catch(e){a.e(e)}finally{a.f()}return o},parseCST:w,parseDocument:de,scalarOptions:ee,stringify:function(e,t){var n=new ce(t);return n.contents=e,String(n)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"NetlifyCms",(function(){return h}));var r=n(143),i=n.n(r),o=n(1),a=n.n(o),s=n(130),l=n(673),u=n.n(l),c=n(674),d=n.n(c);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}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}s.NetlifyCmsApp.registerMediaLibrary(u.a),s.NetlifyCmsApp.registerMediaLibrary(d.a),window.CMS_MANUAL_INIT?console.log("`window.CMS_MANUAL_INIT` flag set, skipping automatic initialization."):s.NetlifyCmsApp.init(),"undefined"!=typeof window&&(window.CMS=s.NetlifyCmsApp,window.initCMS=s.NetlifyCmsApp.init,window.createClass=window.createClass||i.a,window.h=window.h||a.a.createElement,console.log("netlify-cms 2.10.56"));const h=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},s.NetlifyCmsApp);t.default=s.NetlifyCmsApp},function(e,t,n){"use strict";n.r(t);var r=n(85),i=n(108),o="preload",a="useInterimTilesOnError",s=n(22),l=function(e){function t(t){var n=t||{},i=Object(s.a)({},n);delete i.preload,delete i.useInterimTilesOnError,e.call(this,i),this.setPreload(void 0!==n.preload?n.preload:0),this.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),this.type=r.a.TILE}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getPreload=function(){return this.get(o)},t.prototype.setPreload=function(e){this.set(o,e)},t.prototype.getUseInterimTilesOnError=function(){return this.get(a)},t.prototype.setUseInterimTilesOnError=function(e){this.set(a,e)},t}(i.a);l.prototype.getSource;t.default=l},function(e,t,n){"use strict";n.r(t),n.d(t,"HttpLink",(function(){return f})),n.d(t,"createHttpLink",(function(){return d}));var r=n(7),i=n(99),o=n(65),a=n(667),s=n(20),l={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},u=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},c=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=new s.a(2);throw r.parseError=e,r}return n},d=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,d=e.fetch,f=e.includeExtensions,p=e.useGETForQueries,h=Object(r.e)(e,["uri","fetch","includeExtensions","useGETForQueries"]);!function(e){if(!e&&"undefined"==typeof fetch){throw"undefined"==typeof window&&"node-fetch",new s.a(1)}}(d),d||(d=fetch);var m={http:{includeExtensions:f},options:h.fetchOptions,credentials:h.credentials,headers:h.headers};return new i.a((function(e){var t=function(e,t){var n=e.getContext().uri;return n||("function"==typeof t?t(e):t||"/graphql")}(e,n),s=e.getContext(),f={};if(s.clientAwareness){var h=s.clientAwareness,g=h.name,v=h.version;g&&(f["apollographql-client-name"]=g),v&&(f["apollographql-client-version"]=v)}var y,b=Object(r.a)({},f,s.headers),_={http:s.http,options:s.fetchOptions,credentials:s.credentials,headers:b},w=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o=Object(r.a)({},t.options,{headers:t.headers,credentials:t.credentials}),s=t.http;n.forEach((function(e){o=Object(r.a)({},o,e.options,{headers:Object(r.a)({},o.headers,e.headers)}),e.credentials&&(o.credentials=e.credentials),s=Object(r.a)({},s,e.http)}));var l=e.operationName,u=e.extensions,c=e.variables,d=e.query,f={operationName:l,variables:c};return s.includeExtensions&&(f.extensions=u),s.includeQuery&&(f.query=Object(a.print)(d)),{options:o,body:f}}(e,l,m,_),x=w.options,k=w.body;if(!x.signal){var E=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),S=E.controller,O=E.signal;(y=S)&&(x.signal=O)}if(p&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(x.method="GET"),"GET"===x.method){var T=function(e,t){var n=[],r=function(e,t){n.push(e+"="+encodeURIComponent(t))};"query"in t&&r("query",t.query);t.operationName&&r("operationName",t.operationName);if(t.variables){var i=void 0;try{i=c(t.variables)}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=c(t.extensions)}catch(e){return{parseError:e}}r("extensions",o)}var a="",s=e,l=e.indexOf("#");-1!==l&&(a=e.substr(l),s=e.substr(0,l));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+n.join("&")+a}}(t,k),C=T.newURI,A=T.parseError;if(A)return Object(i.c)(A);t=C}else try{x.body=c(k)}catch(A){return Object(i.c)(A)}return new o.a((function(n){var r;return d(t,x).then((function(t){return e.setContext({response:t}),t})).then((r=e,function(e){return e.text().then((function(t){try{return JSON.parse(t)}catch(r){var n=r;return n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,Promise.reject(n)}})).then((function(t){return e.status>=300&&u(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||t.hasOwnProperty("data")||t.hasOwnProperty("errors")||u(e,t,"Server response was missing for query '"+(Array.isArray(r)?r.map((function(e){return e.operationName})):r.operationName)+"'."),t}))})).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){y&&y.abort()}}))}))};var f=function(e){function t(t){return e.call(this,d(t).request)||this}return Object(r.c)(t,e),t}(i.a)}]).NetlifyCms}));
+//# sourceMappingURL=netlify-cms.js.map \ No newline at end of file