@para-ui/core 3.0.30 → 3.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Form/index.js +1 -1
- package/FormItem/index.js +1 -1
- package/Menu/index.js +31 -27
- package/README.md +827 -813
- package/Selector/index.js +4 -2
- package/Styles/form.scss +5 -5
- package/Styles/index.scss +37 -37
- package/Styles/normalize.scss +348 -348
- package/Styles/scrollbar.scss +223 -223
- package/Styles/theme.scss +74 -74
- package/Table/index.js +12 -4
- package/Test/index.d.ts +3 -0
- package/Test/index.js +9 -0
- package/Timeline/index.js +1 -1
- package/_verture/{index-131f8fe5.js → index-f0434861.js} +0 -0
- package/index.d.ts +4 -2
- package/index.js +3 -2
- package/package.json +168 -167
- package/umd/AutoBox.js +43 -0
- package/umd/AutoTips.js +15 -0
- package/umd/Breadcrumbs.js +42 -0
- package/umd/Button.js +43 -0
- package/umd/ButtonGroup.js +43 -0
- package/umd/Carousel.js +6 -0
- package/umd/Cascader.js +43 -0
- package/umd/Checkbox.js +42 -0
- package/umd/CheckboxGroup.js +42 -0
- package/umd/Collapse.js +43 -0
- package/umd/CollapseBox.js +1 -0
- package/umd/CollapseLayout.js +29 -0
- package/umd/ColorPicker.js +1 -0
- package/umd/ComboSelect.js +42 -0
- package/umd/Container.js +1 -0
- package/umd/DatePicker.js +42 -0
- package/umd/Desktop.js +42 -0
- package/umd/Drawer.js +43 -0
- package/umd/Dropdown.js +15 -0
- package/umd/Empty.js +15 -0
- package/umd/Form.js +42 -0
- package/umd/FormItem.js +42 -0
- package/umd/FunctionModal.js +42 -0
- package/umd/GlobalContext.js +1 -0
- package/umd/Help.js +42 -0
- package/umd/HelperText.js +1 -0
- package/umd/InputLang.js +42 -0
- package/umd/InputNumber.js +42 -0
- package/umd/Label.js +42 -0
- package/umd/Loading.js +29 -0
- package/umd/Menu.js +29 -0
- package/umd/Message.js +30 -0
- package/umd/Modal.js +42 -0
- package/umd/MultiBox.js +42 -0
- package/umd/Notification.js +43 -0
- package/umd/OperateBtn.js +42 -0
- package/umd/PageHeader.js +42 -0
- package/umd/Pagination.js +42 -0
- package/umd/ParauiProvider.js +15 -0
- package/umd/PasswordRules.js +29 -0
- package/umd/PopConfirm.js +42 -0
- package/umd/Popover.js +15 -0
- package/umd/Progress.js +35 -0
- package/umd/Querying.js +15 -0
- package/umd/Radio.js +42 -0
- package/umd/RadioGroup.js +42 -0
- package/umd/Search.js +42 -0
- package/umd/Select.js +42 -0
- package/umd/SelectInput.js +42 -0
- package/umd/Selector.js +42 -0
- package/umd/SelectorPicker.js +42 -0
- package/umd/SingleBox.js +42 -0
- package/umd/Slider.js +15 -0
- package/umd/Split.js +1 -0
- package/umd/Status.js +1 -0
- package/umd/Stepper.js +42 -0
- package/umd/Switch.js +42 -0
- package/umd/Table.js +42 -0
- package/umd/Tabs.js +42 -0
- package/umd/Tag.js +43 -0
- package/umd/Test.js +1 -0
- package/umd/TextEditor.js +205 -0
- package/umd/TextField.js +42 -0
- package/umd/TimePicker.js +42 -0
- package/umd/Timeline.js +1 -0
- package/umd/Title.js +1 -0
- package/umd/ToggleButton.js +43 -0
- package/umd/Tooltip.js +15 -0
- package/umd/Transfer.js +49 -0
- package/umd/Tree.js +42 -0
- package/umd/Upload.js +56 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","react-dom","@paraview/lib"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("react-dom"),require("@paraview/lib")):e.ParaUI=t(e.react,e["react-dom"],e["@paraview/lib"])}(self,(function(e,t,n){return function(){var r={97435:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(85893);
|
|
2
|
+
/*! *****************************************************************************
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
+
***************************************************************************** */!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('@charset "UTF-8";\n/**\n* @author Hanz\n* @date 2021/8/25 下午3:16\n* @description icons scss\n*/\n.paraui-icon {\n width: 1em;\n height: 1em;\n fill: currentColor;\n display: inline-block;\n user-select: none;\n flex-shrink: 0;\n}\n.paraui-icon-primary {\n color: #3666d6;\n}\n.paraui-icon-secondary {\n color: #3666d6;\n}\n.paraui-icon-thirdary {\n color: #3666d6;\n}\n.paraui-icon-small {\n font-size: 16px;\n}\n.paraui-icon-medium {\n font-size: 18px;\n}\n.paraui-icon-large {\n font-size: 20px;\n}');var o=function(e){var t,n,o=e.path,i=e.className,a=e.color,u=void 0===a?"primary":a,s=e.size,c=void 0===s?"small":s,l=e.dataName,f=void 0===l?"":l,p=e.style,d=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["path","className","color","size","dataName","style"]);return(0,r.jsx)("svg",Object.assign({className:(n="paraui-icon",n+=" svg-icon",i&&(n+=" "+i),"primary"!==u&&"secondary"!==u&&"thirdary"!==u||(n+=" paraui-icon-"+u),c&&(n+=" paraui-icon-"+c),n),viewBox:"0 0 1024 1024","data-name":f,style:(t=Object.assign({},p),u&&"primary"!==u&&"secondary"!==u&&"thirdary"!==u&&(t.color=u),t)},d,{children:o}))}},94184:function(e,t){var n;
|
|
16
|
+
/*!
|
|
17
|
+
Copyright (c) 2018 Jed Watson.
|
|
18
|
+
Licensed under the MIT License (MIT), see
|
|
19
|
+
http://jedwatson.github.io/classnames
|
|
20
|
+
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var u in n)r.call(n,u)&&n[u]&&e.push(u)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},86010:function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}n.d(t,{Z:function(){return o}})},22989:function(e,t,n){(t=n(23645)(!1)).push([e.id,':root,\n:host {\n --w-e-textarea-bg-color: #fff;\n --w-e-textarea-color: #333;\n --w-e-textarea-border-color: #ccc;\n --w-e-textarea-slight-border-color: #e8e8e8;\n --w-e-textarea-slight-color: #d4d4d4;\n --w-e-textarea-slight-bg-color: #f5f2f0;\n --w-e-textarea-selected-border-color: #B4D5FF;\n --w-e-textarea-handler-bg-color: #4290f7;\n --w-e-toolbar-color: #595959;\n --w-e-toolbar-bg-color: #fff;\n --w-e-toolbar-active-color: #333;\n --w-e-toolbar-active-bg-color: #f1f1f1;\n --w-e-toolbar-disabled-color: #999;\n --w-e-toolbar-border-color: #e8e8e8;\n --w-e-modal-button-bg-color: #fafafa;\n --w-e-modal-button-border-color: #d9d9d9;\n}\n\n.w-e-text-container *,.w-e-toolbar *{box-sizing:border-box;margin:0;outline:none;padding:0}.w-e-text-container blockquote,.w-e-text-container li,.w-e-text-container p,.w-e-text-container td,.w-e-text-container th,.w-e-toolbar *{line-height:1.5}.w-e-text-container{background-color:var(--w-e-textarea-bg-color);color:var(--w-e-textarea-color);height:100%;position:relative}.w-e-text-container .w-e-scroll{-webkit-overflow-scrolling:touch;height:100%}.w-e-text-container [data-slate-editor]{word-wrap:break-word;border-top:1px solid transparent;min-height:100%;outline:0;padding:0 10px;white-space:pre-wrap}.w-e-text-container [data-slate-editor] p{margin:15px 0}.w-e-text-container [data-slate-editor] h1,.w-e-text-container [data-slate-editor] h2,.w-e-text-container [data-slate-editor] h3,.w-e-text-container [data-slate-editor] h4,.w-e-text-container [data-slate-editor] h5{margin:20px 0}.w-e-text-container [data-slate-editor] img{cursor:default;display:inline!important;max-width:100%;min-height:20px;min-width:20px}.w-e-text-container [data-slate-editor] span{text-indent:0}.w-e-text-container [data-slate-editor] [data-selected=true]{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-placeholder{font-style:italic;left:10px;top:17px;width:90%}.w-e-max-length-info,.w-e-text-placeholder{color:var(--w-e-textarea-slight-color);pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.w-e-max-length-info{bottom:.5em;right:1em}.w-e-bar{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-color);font-size:14px;padding:0 5px}.w-e-bar svg{fill:var(--w-e-toolbar-color);height:14px;width:14px}.w-e-bar-show{display:flex}.w-e-bar-hidden{display:none}.w-e-hover-bar{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 5px #0000001f;position:absolute}.w-e-toolbar{flex-wrap:wrap;position:relative}.w-e-bar-divider{background-color:var(--w-e-toolbar-border-color);display:inline-flex;height:40px;margin:0 5px;width:1px}.w-e-bar-item{display:flex;height:40px;padding:4px;position:relative;text-align:center}.w-e-bar-item,.w-e-bar-item button{align-items:center;justify-content:center}.w-e-bar-item button{background:transparent;border:none;color:var(--w-e-toolbar-color);cursor:pointer;display:inline-flex;height:32px;overflow:hidden;padding:0 8px;white-space:nowrap}.w-e-bar-item button:hover{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item button .title{margin-left:5px}.w-e-bar-item .active{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item .disabled{color:var(--w-e-toolbar-disabled-color);cursor:not-allowed}.w-e-bar-item .disabled svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-menu-tooltip-v5:before{background-color:var(--w-e-toolbar-active-color);border-radius:5px;color:var(--w-e-toolbar-bg-color);content:attr(data-tooltip);font-size:.75em;opacity:0;padding:5px 10px;position:absolute;text-align:center;top:40px;transition:opacity .6s;visibility:hidden;white-space:pre;z-index:1}.w-e-menu-tooltip-v5:after{border:5px solid transparent;border-bottom:5px solid var(--w-e-toolbar-active-color);content:"";opacity:0;position:absolute;top:30px;transition:opacity .6s;visibility:hidden}.w-e-menu-tooltip-v5:hover:after,.w-e-menu-tooltip-v5:hover:before{opacity:1;visibility:visible}.w-e-menu-tooltip-v5.tooltip-right:before{left:100%;top:10px}.w-e-menu-tooltip-v5.tooltip-right:after{border-bottom-color:transparent;border-left-color:transparent;border-right-color:var(--w-e-toolbar-active-color);border-top-color:transparent;left:100%;margin-left:-10px;top:16px}.w-e-bar-item-group .w-e-bar-item-menus-container{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;display:none;left:0;margin-top:40px;position:absolute;top:0;z-index:1}.w-e-bar-item-group:hover .w-e-bar-item-menus-container{display:block}.w-e-select-list{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;left:0;margin-top:40px;max-height:350px;min-width:100px;overflow-y:auto;position:absolute;top:0;z-index:1}.w-e-select-list ul{line-height:1;list-style:none}.w-e-select-list ul .selected{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li{cursor:pointer;padding:7px 0 7px 25px;position:relative;text-align:left;white-space:nowrap}.w-e-select-list ul li:hover{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li svg{left:0;margin-left:5px;margin-top:-7px;position:absolute;top:50%}.w-e-bar-bottom .w-e-select-list{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-drop-panel{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;margin-top:40px;min-width:200px;padding:10px;position:absolute;top:0;z-index:1}.w-e-bar-bottom .w-e-drop-panel{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-modal{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;color:var(--w-e-toolbar-color);font-size:14px;min-height:40px;min-width:100px;padding:20px 15px 0;position:absolute;text-align:left;z-index:1}.w-e-modal .btn-close{cursor:pointer;line-height:1;padding:5px;position:absolute;right:8px;top:7px}.w-e-modal .btn-close svg{fill:var(--w-e-toolbar-color);height:10px;width:10px}.w-e-modal .babel-container{display:block;margin-bottom:15px}.w-e-modal .babel-container span{display:block;margin-bottom:10px}.w-e-modal .button-container{margin-bottom:15px}.w-e-modal button{background-color:var(--w-e-modal-button-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);cursor:pointer;font-weight:400;height:32px;padding:4.5px 15px;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.w-e-modal input[type=number],.w-e-modal input[type=text],.w-e-modal textarea{font-feature-settings:"tnum";background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);font-variant:tabular-nums;padding:4.5px 11px;transition:all .3s;width:100%}.w-e-modal textarea{min-height:60px}body .w-e-modal,body .w-e-modal *{box-sizing:border-box}.w-e-progress-bar{background-color:var(--w-e-textarea-handler-bg-color);height:1px;position:absolute;transition:width .3s;width:0}.w-e-full-screen-container{bottom:0!important;display:flex!important;flex-direction:column!important;height:100%!important;left:0!important;margin:0!important;padding:0!important;position:fixed;right:0!important;top:0!important;width:100%!important}.w-e-full-screen-container [data-w-e-textarea=true]{flex:1!important}\n.w-e-text-container [data-slate-editor] code{background-color:var(--w-e-textarea-slight-bg-color);border-radius:3px;font-family:monospace;padding:3px}.w-e-panel-content-color{list-style:none;text-align:left;width:230px}.w-e-panel-content-color li{border:1px solid var(--w-e-toolbar-bg-color);border-radius:3px 3px;cursor:pointer;display:inline-block;padding:2px}.w-e-panel-content-color li:hover{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color li .color-block{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px 3px;height:17px;width:17px}.w-e-panel-content-color .active{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color .clear{line-height:1.5;margin-bottom:5px;width:100%}.w-e-panel-content-color .clear svg{height:16px;margin-bottom:-4px;width:16px}.w-e-text-container [data-slate-editor] blockquote{background-color:var(--w-e-textarea-slight-bg-color);border-left:8px solid var(--w-e-textarea-selected-border-color);display:block;font-size:100%;line-height:1.5;margin:10px 0;padding:10px}.w-e-panel-content-emotion{font-size:20px;list-style:none;text-align:left;width:300px}.w-e-panel-content-emotion li{border-radius:3px 3px;cursor:pointer;display:inline-block;padding:0 5px}.w-e-panel-content-emotion li:hover{background-color:var(--w-e-textarea-slight-bg-color)}.w-e-textarea-divider{border-radius:3px;margin:20px auto;padding:20px}.w-e-textarea-divider hr{background-color:var(--w-e-textarea-border-color);border:0;display:block;height:1px}.w-e-text-container [data-slate-editor] pre>code{background-color:var(--w-e-textarea-slight-bg-color);border:1px solid var(--w-e-textarea-slight-border-color);border-radius:4px 4px;display:block;font-size:14px;padding:10px;text-indent:0}.w-e-text-container [data-slate-editor] .w-e-image-container{display:inline-block;margin:0 3px}.w-e-text-container [data-slate-editor] .w-e-image-container:hover{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-container [data-slate-editor] .w-e-selected-image-container{overflow:hidden;position:relative}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .w-e-image-dragger{background-color:var(--w-e-textarea-handler-bg-color);height:7px;position:absolute;width:7px}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-top{cursor:nwse-resize;left:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-top{cursor:nesw-resize;right:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-bottom{bottom:0;cursor:nesw-resize;left:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-bottom{bottom:0;cursor:nwse-resize;right:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container:hover{box-shadow:none}.w-e-text-container [contenteditable=false] .w-e-image-container:hover{box-shadow:none}\n\n.w-e-text-container [data-slate-editor] .table-container{border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin-top:10px;overflow-x:auto;padding:10px;width:100%}.w-e-text-container [data-slate-editor] table{border-collapse:collapse}.w-e-text-container [data-slate-editor] table td,.w-e-text-container [data-slate-editor] table th{border:1px solid var(--w-e-textarea-border-color);line-height:1.5;min-width:30px;padding:3px 5px;text-align:left}.w-e-text-container [data-slate-editor] table th{background-color:var(--w-e-textarea-slight-bg-color);font-weight:700;text-align:center}.w-e-panel-content-table{background-color:var(--w-e-toolbar-bg-color)}.w-e-panel-content-table table{border-collapse:collapse}.w-e-panel-content-table td{border:1px solid var(--w-e-toolbar-border-color);cursor:pointer;height:15px;padding:3px 5px;width:20px}.w-e-panel-content-table td.active{background-color:var(--w-e-toolbar-active-bg-color)}\n.w-e-textarea-video-container{background-image:linear-gradient(45deg,#eee 25%,transparent 0,transparent 75%,#eee 0,#eee),linear-gradient(45deg,#eee 25%,#fff 0,#fff 75%,#eee 0,#eee);background-position:0 0,10px 10px;background-size:20px 20px;border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin:10px auto 0;padding:10px 0;text-align:center}\n\n.w-e-text-container [data-slate-editor] pre>code{word-wrap:normal;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;-webkit-hyphens:none;hyphens:none;line-height:1.5;margin:.5em 0;overflow:auto;padding:1em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;text-align:left;text-shadow:0 1px #fff;white-space:pre;word-break:normal;word-spacing:normal}.w-e-text-container [data-slate-editor] pre>code .token.cdata,.w-e-text-container [data-slate-editor] pre>code .token.comment,.w-e-text-container [data-slate-editor] pre>code .token.doctype,.w-e-text-container [data-slate-editor] pre>code .token.prolog{color:#708090}.w-e-text-container [data-slate-editor] pre>code .token.punctuation{color:#999}.w-e-text-container [data-slate-editor] pre>code .token.namespace{opacity:.7}.w-e-text-container [data-slate-editor] pre>code .token.boolean,.w-e-text-container [data-slate-editor] pre>code .token.constant,.w-e-text-container [data-slate-editor] pre>code .token.deleted,.w-e-text-container [data-slate-editor] pre>code .token.number,.w-e-text-container [data-slate-editor] pre>code .token.property,.w-e-text-container [data-slate-editor] pre>code .token.symbol,.w-e-text-container [data-slate-editor] pre>code .token.tag{color:#905}.w-e-text-container [data-slate-editor] pre>code .token.attr-name,.w-e-text-container [data-slate-editor] pre>code .token.builtin,.w-e-text-container [data-slate-editor] pre>code .token.char,.w-e-text-container [data-slate-editor] pre>code .token.inserted,.w-e-text-container [data-slate-editor] pre>code .token.selector,.w-e-text-container [data-slate-editor] pre>code .token.string{color:#690}.w-e-text-container [data-slate-editor] pre>code .language-css .token.string,.w-e-text-container [data-slate-editor] pre>code .style .token.string,.w-e-text-container [data-slate-editor] pre>code .token.entity,.w-e-text-container [data-slate-editor] pre>code .token.operator,.w-e-text-container [data-slate-editor] pre>code .token.url{color:#9a6e3a}.w-e-text-container [data-slate-editor] pre>code .token.atrule,.w-e-text-container [data-slate-editor] pre>code .token.attr-value,.w-e-text-container [data-slate-editor] pre>code .token.keyword{color:#07a}.w-e-text-container [data-slate-editor] pre>code .token.class-name,.w-e-text-container [data-slate-editor] pre>code .token.function{color:#dd4a68}.w-e-text-container [data-slate-editor] pre>code .token.important,.w-e-text-container [data-slate-editor] pre>code .token.regex,.w-e-text-container [data-slate-editor] pre>code .token.variable{color:#e90}.w-e-text-container [data-slate-editor] pre>code .token.bold,.w-e-text-container [data-slate-editor] pre>code .token.important{font-weight:700}.w-e-text-container [data-slate-editor] pre>code .token.italic{font-style:italic}.w-e-text-container [data-slate-editor] pre>code .token.entity{cursor:help}',""]),e.exports=t},7381:function(e,t,n){(t=n(23645)(!1)).push([e.id,".paraui-v3-help{display:inline-block;font-size:16px;color:rgba(46,55,67,.7)}.paraui-v3-help:hover{color:#3666d6}.paraui-v3-help svg{font-size:inherit;color:inherit}",""]),e.exports=t},19916:function(e,t,n){(t=n(23645)(!1)).push([e.id,".paraui-v3-helper-text{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:400;padding-left:12px;line-height:20px;color:rgba(46,55,67,.7)}.paraui-v3-helper-text.paraui-v3-helper-text-error{color:#eb6054}",""]),e.exports=t},84928:function(e,t,n){(t=n(23645)(!1)).push([e.id,".paraui-v3-label{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;color:rgba(46,55,67,.7);margin-bottom:8px;display:inline-block;line-height:1.43;word-break:break-all}.paraui-v3-label>.label-required{margin-left:2px;color:#eb6054}.paraui-v3-label>.paraui-v3-help{vertical-align:top;margin-left:4px}.paraui-v3-label>.paraui-v3-help svg{color:rgba(46,55,67,.4);vertical-align:top;position:relative;top:2px}.paraui-v3-label.paraui-v3-label-line.paraui-v3-label-tooltip{border-bottom:1px dashed rgba(46,55,67,.4);padding-bottom:2px}",""]),e.exports=t},6273:function(e,t,n){(t=n(23645)(!1)).push([e.id,".paraui-v3-text-editor .text-editor-content{border:1px solid rgba(171,176,185,.4);z-index:100;border-radius:4px}.paraui-v3-text-editor .text-editor-content>div:nth-child(1){border-bottom:1px solid rgba(171,176,185,.4)}.paraui-v3-text-editor .text-editor-content div[contenteditable=false]{background-color:rgba(171,176,185,.12)}.paraui-v3-text-editor .text-editor-content div[contenteditable=false]:hover{border-color:rgba(171,176,185,.4);cursor:not-allowed}",""]),e.exports=t},9929:function(e,t,n){(t=n(23645)(!1)).push([e.id,'.paraui-v3-tooltip{color:#fff;font-size:14px;line-height:1.5715;position:absolute;z-index:1500;display:block;width:max-content;visibility:visible}.paraui-v3-tooltip .component-tooltip-content{position:relative}.paraui-v3-tooltip.component-tooltip-hidden{display:none}.paraui-v3-tooltip.paraui-v3-tooltip-hide-arrow .component-tooltip-arrow{display:none}.paraui-v3-tooltip .component-tooltip-inner{min-width:30px;min-height:32px;padding:5px 12px;color:#fff;text-align:left;text-decoration:none;word-wrap:break-word;background-color:rgba(46,55,67,.7);border-radius:4px;line-height:22px}.paraui-v3-tooltip .component-tooltip-arrow{position:absolute;z-index:2;display:block;width:22px;height:22px;overflow:hidden;background:rgba(0,0,0,0);pointer-events:none}.paraui-v3-tooltip .component-tooltip-arrow-content{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:11.3137085px;height:11.3137085px;margin:auto;content:"";border-radius:0 0 2px;pointer-events:none;background:rgba(46,55,67,.7)}.paraui-v3-tooltip .component-tooltip-arrow-content::before{position:absolute;top:-11.3137085px;left:-11.3137085px;width:33.9411255px;height:33.9411255px;background-repeat:no-repeat;background-position:-10px -10px;content:"";clip-path:path("M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z")}.paraui-v3-tooltip.component-tooltip-placement-top .component-tooltip-arrow,.paraui-v3-tooltip.component-tooltip-placement-topLeft .component-tooltip-arrow,.paraui-v3-tooltip.component-tooltip-placement-topRight .component-tooltip-arrow{bottom:0;transform:translateY(100%)}.paraui-v3-tooltip.component-tooltip-placement-top .component-tooltip-arrow-content,.paraui-v3-tooltip.component-tooltip-placement-topLeft .component-tooltip-arrow-content,.paraui-v3-tooltip.component-tooltip-placement-topRight .component-tooltip-arrow-content{box-shadow:3px 3px 7px rgba(0,0,0,.07);transform:translateY(-11px) rotate(45deg)}.paraui-v3-tooltip.component-tooltip-placement-top .component-tooltip-arrow{left:50%;transform:translateY(100%) translateX(-50%)}.paraui-v3-tooltip.component-tooltip-placement-topLeft .component-tooltip-arrow{left:13px}.paraui-v3-tooltip.component-tooltip-placement-topRight .component-tooltip-arrow{right:13px}.paraui-v3-tooltip.component-tooltip-placement-right .component-tooltip-arrow,.paraui-v3-tooltip.component-tooltip-placement-rightTop .component-tooltip-arrow,.paraui-v3-tooltip.component-tooltip-placement-rightBottom .component-tooltip-arrow{left:0;transform:translateX(-100%)}.paraui-v3-tooltip.component-tooltip-placement-right .component-tooltip-arrow-content,.paraui-v3-tooltip.component-tooltip-placement-rightTop .component-tooltip-arrow-content,.paraui-v3-tooltip.component-tooltip-placement-rightBottom .component-tooltip-arrow-content{box-shadow:-3px 3px 7px rgba(0,0,0,.07);transform:translateX(11px) rotate(135deg)}.paraui-v3-tooltip.component-tooltip-placement-right .component-tooltip-arrow{top:50%;transform:translateX(-100%) translateY(-50%)}.paraui-v3-tooltip.component-tooltip-placement-rightTop .component-tooltip-arrow{top:5px}.paraui-v3-tooltip.component-tooltip-placement-rightBottom .component-tooltip-arrow{bottom:5px}.paraui-v3-tooltip.component-tooltip-placement-left .component-tooltip-arrow,.paraui-v3-tooltip.component-tooltip-placement-leftTop .component-tooltip-arrow,.paraui-v3-tooltip.component-tooltip-placement-leftBottom .component-tooltip-arrow{right:0;transform:translateX(100%)}.paraui-v3-tooltip.component-tooltip-placement-left .component-tooltip-arrow-content,.paraui-v3-tooltip.component-tooltip-placement-leftTop .component-tooltip-arrow-content,.paraui-v3-tooltip.component-tooltip-placement-leftBottom .component-tooltip-arrow-content{box-shadow:3px -3px 7px rgba(0,0,0,.07);transform:translateX(-11px) rotate(315deg)}.paraui-v3-tooltip.component-tooltip-placement-left .component-tooltip-arrow{top:50%;transform:translateX(100%) translateY(-50%)}.paraui-v3-tooltip.component-tooltip-placement-leftTop .component-tooltip-arrow{top:5px}.paraui-v3-tooltip.component-tooltip-placement-leftBottom .component-tooltip-arrow{bottom:5px}.paraui-v3-tooltip.component-tooltip-placement-bottom .component-tooltip-arrow,.paraui-v3-tooltip.component-tooltip-placement-bottomLeft .component-tooltip-arrow,.paraui-v3-tooltip.component-tooltip-placement-bottomRight .component-tooltip-arrow{top:0;transform:translateY(-100%)}.paraui-v3-tooltip.component-tooltip-placement-bottom .component-tooltip-arrow-content,.paraui-v3-tooltip.component-tooltip-placement-bottomLeft .component-tooltip-arrow-content,.paraui-v3-tooltip.component-tooltip-placement-bottomRight .component-tooltip-arrow-content{box-shadow:-3px -3px 7px rgba(0,0,0,.07);transform:translateY(11px) rotate(225deg)}.paraui-v3-tooltip.component-tooltip-placement-bottom .component-tooltip-arrow{left:50%;transform:translateY(-100%) translateX(-50%)}.paraui-v3-tooltip.component-tooltip-placement-bottomLeft .component-tooltip-arrow{left:13px}.paraui-v3-tooltip.component-tooltip-placement-bottomRight .component-tooltip-arrow{right:13px}.component-tooltip-zoom-big-fast-enter,.component-tooltip-zoom-big-fast-appear{animation-duration:.1s;animation-fill-mode:both;animation-play-state:paused}.component-tooltip-zoom-big-fast-leave{animation-duration:.1s;animation-fill-mode:both;animation-play-state:paused}.component-tooltip-zoom-big-fast-enter.component-tooltip-zoom-big-fast-enter-active,.component-tooltip-zoom-big-fast-appear.component-tooltip-zoom-big-fast-appear-active{animation-name:componentTooltipZoomBigIn;animation-play-state:running}.component-tooltip-zoom-big-fast-leave.component-tooltip-zoom-big-fast-leave-active{animation-name:componentTooltipZoomBigOut;animation-play-state:running;pointer-events:none}.component-tooltip-zoom-big-fast-enter,.component-tooltip-zoom-big-fast-appear{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(0.08, 0.82, 0.17, 1)}.component-tooltip-zoom-big-fast-enter-prepare,.component-tooltip-zoom-big-fast-appear-prepare{transform:none}.component-tooltip-zoom-big-fast-leave{animation-timing-function:cubic-bezier(0.78, 0.14, 0.15, 0.86)}@keyframes componentTooltipZoomBigIn{0%{transform:scale(0.8);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes componentTooltipZoomBigOut{0%{transform:scale(1)}100%{transform:scale(0.8);opacity:0}}',""]),e.exports=t},23645:function(e){"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 o=(a=r,u=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u),"/*# ".concat(s," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,u,s;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 o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var u=0;u<e.length;u++){var s=[].concat(e[u]);r&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},73382:function(e,t,n){"use strict";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 o(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){a(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){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},i(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 u;n.d(t,{E3:function(){return ie},zy:function(){return ae}});var s={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function c(){if(void 0!==u)return u;u="";var e=document.createElement("p").style;for(var t in s)t+"Transform"in e&&(u=t);return u}function l(){return c()?"".concat(c(),"TransitionProperty"):"transitionProperty"}function f(){return c()?"".concat(c(),"Transform"):"transform"}function p(e,t){var n=l();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function d(e,t){var n=f();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var h,v=/matrix\((.*)\)/,g=/matrix3d\((.*)\)/;function y(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function m(e,t,n){var r=n;if("object"!==i(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):h(e,t);for(var o in t)t.hasOwnProperty(o)&&m(e,o,t[o])}function b(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function w(e){return b(e)}function x(e){return b(e,!0)}function E(e){var t=function(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=w(r),t.top+=x(r),t}function S(e){return null!=e&&e==e.window}function C(e){return S(e)?e.document:9===e.nodeType?e:e.ownerDocument}var D=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),O=/^(top|right|bottom|left)$/,A="currentStyle",k="runtimeStyle",_="left";function T(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function B(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function P(e,t,n){"static"===m(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=T("left",n),a=T("top",n),u=B(i),s=B(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var c,f="",d=E(e);("left"in t||"top"in t)&&(f=(c=e).style.transitionProperty||c.style[l()]||"",p(e,"none")),"left"in t&&(e.style[u]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[s]="",e.style[a]="".concat(o,"px")),y(e);var h=E(e),v={};for(var g in t)if(t.hasOwnProperty(g)){var b=T(g,n),w="left"===g?r:o,x=d[g]-h[g];v[b]=b===g?w+x:w-x}m(e,v),y(e),("left"in t||"top"in t)&&p(e,f);var S={};for(var C in t)if(t.hasOwnProperty(C)){var D=T(C,n),O=t[C]-d[C];S[D]=C===D?v[D]+O:v[D]-O}m(e,S)}function j(e,t){var n=E(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(f());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(f());if(r&&"none"!==r){var o,i=r.match(v);i?((o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,d(e,"matrix(".concat(o.join(","),")"))):((o=r.match(g)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,d(e,"matrix3d(".concat(o.join(","),")")))}else d(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function F(e,t){for(var n=0;n<e.length;n++)t(e[n])}function N(e){return"border-box"===h(e,"boxSizing")}"undefined"!=typeof window&&(h=window.getComputedStyle?function(e,t,n){var r=n,o="",i=C(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e[A]&&e[A][t];if(D.test(n)&&!O.test(t)){var r=e.style,o=r[_],i=e[k][_];e[k][_]=e[A][_],r[_]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[_]=o,e[k][_]=i}return""===n?"auto":n});var L=["margin","border","padding"];function I(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}function R(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o])for(i=0;i<n.length;i++){var u=void 0;u="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(h(e,u))||0}return a}var M={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function z(e,t,n){var r=n;if(S(e))return"width"===t?M.viewportWidth(e):M.viewportHeight(e);if(9===e.nodeType)return"width"===t?M.docWidth(e):M.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=N(e),u=0;(null==i||i<=0)&&(i=void 0,(null==(u=h(e,t))||Number(u)<0)&&(u=e.style[t]||0),u=Math.floor(parseFloat(u))||0),void 0===r&&(r=a?1:-1);var s=void 0!==i||a,c=i||u;return-1===r?s?c-R(e,["border","padding"],o):u:s?1===r?c:c+(2===r?-R(e,["border"],o):R(e,["margin"],o)):u+R(e,L.slice(r),o)}F(["Width","Height"],(function(e){M["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],M["viewport".concat(e)](n))},M["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var H={position:"absolute",visibility:"hidden",display:"block"};function $(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=z.apply(void 0,t):I(o,H,(function(){r=z.apply(void 0,t)})),r}function V(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}F(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);M["outer".concat(t)]=function(t,n){return t&&$(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];M[e]=function(t,r){var o=r;return void 0!==o?t?(N(t)&&(o+=R(t,["padding","border"],n)),m(t,e,o)):void 0:t&&$(t,e,-1)}}));var U={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:C,offset:function(e,t,n){if(void 0===t)return E(e);!function(e,t,n){if(n.ignoreShake){var r=E(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),u=t.top.toFixed(0);if(o===a&&i===u)return}n.useCssRight||n.useCssBottom?P(e,t,n):n.useCssTransform&&f()in document.body.style?j(e,t):P(e,t,n)}(e,t,n||{})},isWindow:S,each:F,css:m,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:V,getWindowScrollLeft:function(e){return w(e)},getWindowScrollTop:function(e){return x(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)U.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};V(U,M);var Z=U.getParent;function W(e){if(U.isWindow(e)||9===e.nodeType)return null;var t,n=U.getDocument(e).body,r=U.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:Z(e);for(t=Z(e);t&&t!==n&&9!==t.nodeType;t=Z(t))if("static"!==(r=U.css(t,"position")))return t;return null}var G=U.getParent;function q(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=W(e),o=U.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,u=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===u||"visible"===U.css(r,"overflow")){if(r===a||r===u)break}else{var s=U.offset(r);s.left+=r.clientLeft,s.top+=r.clientTop,n.top=Math.max(n.top,s.top),n.right=Math.min(n.right,s.left+r.clientWidth),n.bottom=Math.min(n.bottom,s.top+r.clientHeight),n.left=Math.max(n.left,s.left)}r=W(r)}var c=null;U.isWindow(e)||9===e.nodeType||(c=e.style.position,"absolute"===U.css(e,"position")&&(e.style.position="fixed"));var l=U.getWindowScrollLeft(i),f=U.getWindowScrollTop(i),p=U.viewportWidth(i),d=U.viewportHeight(i),h=u.scrollWidth,v=u.scrollHeight,g=window.getComputedStyle(a);if("hidden"===g.overflowX&&(h=i.innerWidth),"hidden"===g.overflowY&&(v=i.innerHeight),e.style&&(e.style.position=c),t||function(e){if(U.isWindow(e)||9===e.nodeType)return!1;var t=U.getDocument(e),n=t.body,r=null;for(r=G(e);r&&r!==n&&r!==t;r=G(r))if("fixed"===U.css(r,"position"))return!0;return!1}(e))n.left=Math.max(n.left,l),n.top=Math.max(n.top,f),n.right=Math.min(n.right,l+p),n.bottom=Math.min(n.bottom,f+d);else{var y=Math.max(h,l+p);n.right=Math.min(n.right,y);var m=Math.max(v,f+d);n.bottom=Math.min(n.bottom,m)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function K(e){var t,n,r;if(U.isWindow(e)||9===e.nodeType){var o=U.getWindow(e);t={left:U.getWindowScrollLeft(o),top:U.getWindowScrollTop(o)},n=U.viewportWidth(o),r=U.viewportHeight(o)}else t=U.offset(e),n=U.outerWidth(e),r=U.outerHeight(e);return t.width=n,t.height=r,t}function Y(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,u=e.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:u}}function X(e,t,n,r,o){var i=Y(t,n[1]),a=Y(e,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-u[0]+r[0]-o[0]),top:Math.round(e.top-u[1]+r[1]-o[1])}}function J(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Q(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function ee(e,t,n){var r=[];return U.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function te(e,t){return e[t]=-e[t],e}function ne(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function re(e,t){e[0]=ne(e[0],t.width),e[1]=ne(e[1],t.height)}function oe(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,s=n.source||e;i=[].concat(i),a=[].concat(a);var c={},l=0,f=q(s,!(!(u=u||{})||!u.alwaysByViewport)),p=K(s);re(i,p),re(a,t);var d=X(p,t,o,i,a),h=U.merge(p,d);if(f&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&J(d,p,f)){var v=ee(o,/[lr]/gi,{l:"r",r:"l"}),g=te(i,0),y=te(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(X(p,t,v,g,y),p,f)||(l=1,o=v,i=g,a=y)}if(u.adjustY&&Q(d,p,f)){var m=ee(o,/[tb]/gi,{t:"b",b:"t"}),b=te(i,1),w=te(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(X(p,t,m,b,w),p,f)||(l=1,o=m,i=b,a=w)}l&&(d=X(p,t,o,i,a),U.mix(h,d));var x=J(d,p,f),E=Q(d,p,f);if(x||E){var S=o;x&&(S=ee(o,/[lr]/gi,{l:"r",r:"l"})),E&&(S=ee(o,/[tb]/gi,{t:"b",b:"t"})),o=S,i=n.offset||[0,0],a=n.targetOffset||[0,0]}c.adjustX=u.adjustX&&x,c.adjustY=u.adjustY&&E,(c.adjustX||c.adjustY)&&(h=function(e,t,n,r){var o=U.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),U.mix(o,i)}(d,p,f,c))}return h.width!==p.width&&U.css(s,"width",U.width(s)+h.width-p.width),h.height!==p.height&&U.css(s,"height",U.height(s)+h.height-p.height),U.offset(s,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:c}}function ie(e,t,n){var r=n.target||t,o=K(r),i=!function(e,t){var n=q(e,t),r=K(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return oe(e,o,n,i)}function ae(e,t,n){var r,i,a=U.getDocument(e),u=a.defaultView||a.parentWindow,s=U.getWindowScrollLeft(u),c=U.getWindowScrollTop(u),l=U.viewportWidth(u),f=U.viewportHeight(u),p={left:r="pageX"in t?t.pageX:s+t.clientX,top:i="pageY"in t?t.pageY:c+t.clientY,width:0,height:0},d=r>=0&&r<=s+l&&i>=0&&i<=c+f,h=[n.points[0],"cc"];return oe(e,p,o(o({},n),{},{points:h}),d)}ie.__getOffsetParent=W,ie.__getVisibleRectForElement=q},18552:function(e,t,n){var r=n(10852)(n(55639),"DataView");e.exports=r},1989:function(e,t,n){var r=n(51789),o=n(80401),i=n(57667),a=n(21327),u=n(81866);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},38407:function(e,t,n){var r=n(27040),o=n(14125),i=n(82117),a=n(67518),u=n(54705);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},57071:function(e,t,n){var r=n(10852)(n(55639),"Map");e.exports=r},83369:function(e,t,n){var r=n(24785),o=n(11285),i=n(96e3),a=n(49916),u=n(95265);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},53818:function(e,t,n){var r=n(10852)(n(55639),"Promise");e.exports=r},58525:function(e,t,n){var r=n(10852)(n(55639),"Set");e.exports=r},88668:function(e,t,n){var r=n(83369),o=n(90619),i=n(72385);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=o,a.prototype.has=i,e.exports=a},46384:function(e,t,n){var r=n(38407),o=n(37465),i=n(63779),a=n(67599),u=n(44758),s=n(34309);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=u,c.prototype.set=s,e.exports=c},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},11149:function(e,t,n){var r=n(55639).Uint8Array;e.exports=r},70577:function(e,t,n){var r=n(10852)(n(55639),"WeakMap");e.exports=r},34963:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},14636:function(e,t,n){var r=n(22545),o=n(35694),i=n(1469),a=n(44144),u=n(65776),s=n(36719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&s(e),d=n||l||f||p,h=d?r(e.length,String):[],v=h.length;for(var g in e)!t&&!c.call(e,g)||d&&("length"==g||f&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||u(g,v))||h.push(g);return h}},62488:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},82908:function(e){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}},18470:function(e,t,n){var r=n(77813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},68866:function(e,t,n){var r=n(62488),o=n(1469);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),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)?o(e):i(e)}},9454:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},90939:function(e,t,n){var r=n(2492),o=n(37005);e.exports=function e(t,n,i,a,u){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,u))}},2492:function(e,t,n){var r=n(46384),o=n(67114),i=n(18351),a=n(16096),u=n(64160),s=n(1469),c=n(44144),l=n(36719),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,g,y){var m=s(e),b=s(t),w=m?p:u(e),x=b?p:u(t),E=(w=w==f?d:w)==d,S=(x=x==f?d:x)==d,C=w==x;if(C&&c(e)){if(!c(t))return!1;m=!0,E=!1}if(C&&!E)return y||(y=new r),m||l(e)?o(e,t,n,v,g,y):i(e,t,w,n,v,g,y);if(!(1&n)){var D=E&&h.call(e,"__wrapped__"),O=S&&h.call(t,"__wrapped__");if(D||O){var A=D?e.value():e,k=O?t.value():t;return y||(y=new r),g(A,k,n,v,y)}}return!!C&&(y||(y=new r),a(e,t,n,v,g,y))}},28458:function(e,t,n){var r=n(23560),o=n(15346),i=n(13218),a=n(80346),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:u).test(a(e))}},38749:function(e,t,n){var r=n(44239),o=n(41780),i=n(37005),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 i(e)&&o(e.length)&&!!a[r(e)]}},280:function(e,t,n){var r=n(25726),o=n(86916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},22545:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},7518:function(e){e.exports=function(e){return function(t){return e(t)}}},74757:function(e){e.exports=function(e,t){return e.has(t)}},14429:function(e,t,n){var r=n(55639)["__core-js_shared__"];e.exports=r},67114:function(e,t,n){var r=n(88668),o=n(82908),i=n(74757);e.exports=function(e,t,n,a,u,s){var c=1&n,l=e.length,f=t.length;if(l!=f&&!(c&&f>l))return!1;var p=s.get(e),d=s.get(t);if(p&&d)return p==t&&d==e;var h=-1,v=!0,g=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++h<l;){var y=e[h],m=t[h];if(a)var b=c?a(m,y,h,t,e,s):a(y,m,h,e,t,s);if(void 0!==b){if(b)continue;v=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(y===e||u(y,e,n,a,s)))return g.push(t)}))){v=!1;break}}else if(y!==m&&!u(y,m,n,a,s)){v=!1;break}}return s.delete(e),s.delete(t),v}},18351:function(e,t,n){var r=n(62705),o=n(11149),i=n(77813),a=n(67114),u=n(68776),s=n(21814),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=u;case"[object Set]":var h=1&r;if(d||(d=s),e.size!=t.size&&!h)return!1;var v=p.get(e);if(v)return v==t;r|=2,p.set(e,t);var g=a(d(e),d(t),r,c,f,p);return p.delete(e),g;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},16096:function(e,t,n){var r=n(58234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,u){var s=1&n,c=r(e),l=c.length;if(l!=r(t).length&&!s)return!1;for(var f=l;f--;){var p=c[f];if(!(s?p in t:o.call(t,p)))return!1}var d=u.get(e),h=u.get(t);if(d&&h)return d==t&&h==e;var v=!0;u.set(e,t),u.set(t,e);for(var g=s;++f<l;){var y=e[p=c[f]],m=t[p];if(i)var b=s?i(m,y,p,t,e,u):i(y,m,p,e,t,u);if(!(void 0===b?y===m||a(y,m,n,i,u):b)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(v=!1)}return u.delete(e),u.delete(t),v}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},58234:function(e,t,n){var r=n(68866),o=n(99551),i=n(3674);e.exports=function(e){return r(e,i,o)}},45050:function(e,t,n){var r=n(37019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},10852:function(e,t,n){var r=n(28458),o=n(47801);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[u]=n:delete e[u]),o}},99551:function(e,t,n){var r=n(34963),o=n(70479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=u},64160:function(e,t,n){var r=n(18552),o=n(57071),i=n(53818),a=n(58525),u=n(70577),s=n(44239),c=n(80346),l="[object Map]",f="[object Promise]",p="[object Set]",d="[object WeakMap]",h="[object DataView]",v=c(r),g=c(o),y=c(i),m=c(a),b=c(u),w=s;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=l||i&&w(i.resolve())!=f||a&&w(new a)!=p||u&&w(new u)!=d)&&(w=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case v:return h;case g:return l;case y:return f;case m:return p;case b:return d}return t}),e.exports=w},47801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},51789:function(e,t,n){var r=n(94536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},80401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:function(e,t,n){var r=n(94536),o=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 o.call(t,e)?t[e]:void 0}},21327:function(e,t,n){var r=n(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},81866:function(e,t,n){var r=n(94536);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}},65776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},37019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15346:function(e,t,n){var r,o=n(14429),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},25726:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},27040:function(e){e.exports=function(){this.__data__=[],this.size=0}},14125:function(e,t,n){var r=n(18470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},82117:function(e,t,n){var r=n(18470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},67518:function(e,t,n){var r=n(18470);e.exports=function(e){return r(this.__data__,e)>-1}},54705:function(e,t,n){var r=n(18470);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},24785:function(e,t,n){var r=n(1989),o=n(38407),i=n(57071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},11285:function(e,t,n){var r=n(45050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).get(e)}},49916:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).has(e)}},95265:function(e,t,n){var r=n(45050);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},68776:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},94536:function(e,t,n){var r=n(10852)(Object,"create");e.exports=r},86916:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},31167:function(e,t,n){e=n.nmd(e);var r=n(31957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,u=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},90619:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:function(e){e.exports=function(e){return this.__data__.has(e)}},21814:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},37465:function(e,t,n){var r=n(38407);e.exports=function(){this.__data__=new r,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,n){var r=n(38407),o=n(57071),i=n(83369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35694:function(e,t,n){var r=n(9454),o=n(37005),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!u.call(e,"callee")};e.exports=s},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,n){var r=n(23560),o=n(41780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},44144:function(e,t,n){e=n.nmd(e);var r=n(55639),o=n(95062),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,u=a&&a.exports===i?r.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;e.exports=s},18446:function(e,t,n){var r=n(90939);e.exports=function(e,t){return r(e,t)}},23560:function(e,t,n){var r=n(44239),o=n(13218);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},36719:function(e,t,n){var r=n(38749),o=n(7518),i=n(31167),a=i&&i.isTypedArray,u=a?o(a):r;e.exports=u},3674:function(e,t,n){var r=n(14636),o=n(280),i=n(98612);e.exports=function(e){return i(e)?r(e):o(e)}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},27418:function(e){"use strict";
|
|
21
|
+
/*
|
|
22
|
+
object-assign
|
|
23
|
+
(c) Sindre Sorhus
|
|
24
|
+
@license MIT
|
|
25
|
+
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(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,i){for(var a,u,s=o(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))n.call(a,l)&&(s[l]=a[l]);if(t){u=t(a);for(var f=0;f<u.length;f++)r.call(a,u[f])&&(s[u[f]]=a[u[f]])}}return s}},96920:function(e,t,n){"use strict";var r=n(93324),o=n(71002),i=n(8156),a=n.n(i),u=n(42550),s=n(5110),c=n(73382),l=n(64019),f=n(18446),p=n.n(f),d=n(27888),h=n(84807);function v(e){return"function"!=typeof e?null:e()}function g(e){return"object"===(0,o.Z)(e)&&e?e:null}var y=function(e,t){var n=e.children,o=e.disabled,i=e.target,f=e.align,y=e.onAlign,m=e.monitorWindowResize,b=e.monitorBufferTime,w=void 0===b?0:b,x=a().useRef({}),E=a().useRef(),S=a().Children.only(n),C=a().useRef({});C.current.disabled=o,C.current.target=i,C.current.align=f,C.current.onAlign=y;var D=(0,h.Z)((function(){var e=C.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign;if(!t&&n){var i,a=E.current,u=v(n),l=g(n);x.current.element=u,x.current.point=l,x.current.align=r;var f=document.activeElement;return u&&(0,s.Z)(u)?i=(0,c.E3)(a,u,r):l&&(i=(0,c.zy)(a,l,r)),(0,d.vg)(f,a),o&&i&&o(a,i),!0}return!1}),w),O=(0,r.Z)(D,2),A=O[0],k=O[1],_=a().useRef({cancel:function(){}}),T=a().useRef({cancel:function(){}});a().useEffect((function(){var e=v(i),t=g(i);E.current!==T.current.element&&(T.current.cancel(),T.current.element=E.current,T.current.cancel=(0,d.ri)(E.current,A)),x.current.element===e&&(0,d.CF)(x.current.point,t)&&p()(x.current.align,f)||(A(),_.current.element!==e&&(_.current.cancel(),_.current.element=e,_.current.cancel=(0,d.ri)(e,A)))})),a().useEffect((function(){o?k():A()}),[o]);var B=a().useRef(null);return a().useEffect((function(){m?B.current||(B.current=(0,l.Z)(window,"resize",A)):B.current&&(B.current.remove(),B.current=null)}),[m]),a().useEffect((function(){return function(){_.current.cancel(),T.current.cancel(),B.current&&B.current.remove(),k()}}),[]),a().useImperativeHandle(t,(function(){return{forceAlign:function(){return A(!0)}}})),a().isValidElement(S)&&(S=a().cloneElement(S,{ref:(0,u.sQ)(S.ref,E)})),S},m=a().forwardRef(y);m.displayName="Align",t.Z=m},84807:function(e,t,n){"use strict";var r=n(8156),o=n.n(r);t.Z=function(e,t){var n=o().useRef(!1),r=o().useRef(null);function i(){window.clearTimeout(r.current)}return[function o(a){if(i(),n.current&&!0!==a)r.current=window.setTimeout((function(){n.current=!1,o()}),t);else{if(!1===e())return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}},34350:function(e,t,n){"use strict";var r=n(96920);t.Z=r.Z},27888:function(e,t,n){"use strict";n.d(t,{CF:function(){return a},ri:function(){return s},vg:function(){return u}});var r=n(93324),o=n(91033),i=n(94999);function a(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&(e.clientX===t.clientX&&e.clientY===t.clientY))}function u(e,t){e!==document.activeElement&&(0,i.Z)(t,e)&&"function"==typeof e.focus&&e.focus()}function s(e,t){var n=null,i=null;var a=new o.default((function(e){var o=(0,r.Z)(e,1)[0].target;if(document.documentElement.contains(o)){var a=o.getBoundingClientRect(),u=a.width,s=a.height,c=Math.floor(u),l=Math.floor(s);n===c&&i===l||Promise.resolve().then((function(){t({width:c,height:l})})),n=c,i=l}}));return e&&a.observe(e),function(){a.disconnect()}}},15407:function(e,t,n){"use strict";var r=n(4942),o=n(1413),i=n(93324),a=n(71002),u=n(8156),s=n(34203),c=n(42550),l=n(94184),f=n.n(l),p=n(94159),d=n(21279),h=n(72215),v=n(44154),g=n(10179);t.Z=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,a.Z)(e)&&(t=e.transitionSupport);var l=u.forwardRef((function(e,t){var a=e.visible,l=void 0===a||a,y=e.removeOnLeave,m=void 0===y||y,b=e.forceRender,w=e.children,x=e.motionName,E=e.leavedClassName,S=e.eventProps,C=n(e),D=(0,u.useRef)(),O=(0,u.useRef)();var A=(0,h.Z)(C,l,(function(){try{return(0,s.Z)(D.current||O.current)}catch(e){return null}}),e),k=(0,i.Z)(A,4),_=k[0],T=k[1],B=k[2],P=k[3],j=u.useRef(P);P&&(j.current=!0);var F=(0,u.useRef)(t);F.current=t;var N,L=u.useCallback((function(e){D.current=e,(0,c.mH)(F.current,e)}),[]),I=(0,o.Z)((0,o.Z)({},S),{},{visible:l});if(w)if(_!==d.ib&&n(e)){var R,M;T===d.yH?M="prepare":(0,g.zh)(T)?M="active":T===d.$D&&(M="start"),N=w((0,o.Z)((0,o.Z)({},I),{},{className:f()((0,p.mL)(x,_),(R={},(0,r.Z)(R,(0,p.mL)(x,"".concat(_,"-").concat(M)),M),(0,r.Z)(R,x,"string"==typeof x),R)),style:B}),L)}else N=P?w((0,o.Z)({},I),L):!m&&j.current?w((0,o.Z)((0,o.Z)({},I),{},{className:E}),L):b?w((0,o.Z)((0,o.Z)({},I),{},{style:{display:"none"}}),L):null;else N=null;return u.createElement(v.Z,{ref:O},N)}));return l.displayName="CSSMotion",l}(p.Cq)},84173:function(e,t,n){"use strict";var r=n(87462),o=n(45987),i=n(1413),a=n(15671),u=n(43144),s=n(60136),c=n(29388),l=n(8156),f=n(15407),p=n(94159),d=n(52378),h=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Z,n=function(e){(0,s.Z)(f,e);var n=(0,c.Z)(f);function f(){var e;return(0,a.Z)(this,f),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,i.Z)((0,i.Z)({},e),{},{status:d.Td})}))}}))},e}return(0,u.Z)(f,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,i=this.props,a=i.component,u=i.children,s=i.onVisibleChanged,c=(0,o.Z)(i,["component","children","onVisibleChanged"]),f=a||l.Fragment,p={};return h.forEach((function(e){p[e]=c[e],delete c[e]})),delete c.keys,l.createElement(f,c,n.map((function(n){var i=n.status,a=(0,o.Z)(n,["status"]),c=i===d.zM||i===d.ff;return l.createElement(t,(0,r.Z)({},p,{key:a.key,visible:c,eventProps:a,onVisibleChanged:function(t){null==s||s(t,{key:a.key}),t||e.removeKey(a.key)}}),u)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=(0,d.l4)(n);return{keyEntities:(0,d.uz)(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==d.Td||e.status!==d.p4}))}}}]),f}(l.Component);n.defaultProps={component:"div"}}(p.Cq)},44154:function(e,t,n){"use strict";var r=n(15671),o=n(43144),i=n(60136),a=n(29388),u=n(8156),s=function(e){(0,i.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component);t.Z=s},68377:function(e,t,n){"use strict";var r=n(8156),o=n(94159);t.Z=function(e){var t=(0,r.useRef)(),n=(0,r.useRef)(e);n.current=e;var i=r.useCallback((function(e){n.current(e)}),[]);function a(e){e&&(e.removeEventListener(o.SG,i),e.removeEventListener(o.nI,i))}return r.useEffect((function(){return function(){a(t.current)}}),[]),[function(e){t.current&&t.current!==e&&a(t.current),e&&e!==t.current&&(e.addEventListener(o.SG,i),e.addEventListener(o.nI,i),t.current=e)},a]}},10586:function(e,t,n){"use strict";var r=n(8156),o=(0,n(98924).Z)()?r.useLayoutEffect:r.useEffect;t.Z=o},54194:function(e,t,n){"use strict";var r=n(8156),o=n(75164);t.Z=function(){var e=r.useRef(null);function t(){o.Z.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=(0,o.Z)((function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)}));e.current=a},t]}},56740:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(93324),o=n(8156);function i(e){var t=(0,o.useRef)(!1),n=(0,o.useState)(e),i=(0,r.Z)(n,2),a=i[0],u=i[1];return(0,o.useEffect)((function(){return function(){t.current=!0}}),[]),[a,function(e){t.current||u(e)}]}},72215:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(1413),o=n(4942),i=n(93324),a=n(8156),u=n(21279),s=n(56740),c=n(10586),l=n(10179),f=n(68377);function p(e,t,n,p){var d=p.motionEnter,h=void 0===d||d,v=p.motionAppear,g=void 0===v||v,y=p.motionLeave,m=void 0===y||y,b=p.motionDeadline,w=p.motionLeaveImmediately,x=p.onAppearPrepare,E=p.onEnterPrepare,S=p.onLeavePrepare,C=p.onAppearStart,D=p.onEnterStart,O=p.onLeaveStart,A=p.onAppearActive,k=p.onEnterActive,_=p.onLeaveActive,T=p.onAppearEnd,B=p.onEnterEnd,P=p.onLeaveEnd,j=p.onVisibleChanged,F=(0,s.Z)(),N=(0,i.Z)(F,2),L=N[0],I=N[1],R=(0,s.Z)(u.ib),M=(0,i.Z)(R,2),z=M[0],H=M[1],$=(0,s.Z)(null),V=(0,i.Z)($,2),U=V[0],Z=V[1],W=(0,a.useRef)(!1),G=(0,a.useRef)(null),q=(0,a.useRef)(!1),K=(0,a.useRef)(null);function Y(){return n()||K.current}var X=(0,a.useRef)(!1);function J(e){var t,n=Y();e&&!e.deadline&&e.target!==n||(z===u.LO&&X.current?t=null==T?void 0:T(n,e):z===u.Df&&X.current?t=null==B?void 0:B(n,e):z===u.jf&&X.current&&(t=null==P?void 0:P(n,e)),!1===t||q.current||(H(u.ib),Z(null)))}var Q=(0,f.Z)(J),ee=(0,i.Z)(Q,1)[0],te=a.useMemo((function(){var e,t,n;switch(z){case"appear":return e={},(0,o.Z)(e,u.yH,x),(0,o.Z)(e,u.$D,C),(0,o.Z)(e,u.fh,A),e;case"enter":return t={},(0,o.Z)(t,u.yH,E),(0,o.Z)(t,u.$D,D),(0,o.Z)(t,u.fh,k),t;case"leave":return n={},(0,o.Z)(n,u.yH,S),(0,o.Z)(n,u.$D,O),(0,o.Z)(n,u.fh,_),n;default:return{}}}),[z]),ne=(0,l.ZP)(z,(function(e){if(e===u.yH){var t=te[u.yH];return t?t(Y()):l.I5}var n;ie in te&&Z((null===(n=te[ie])||void 0===n?void 0:n.call(te,Y(),null))||null);return ie===u.fh&&(ee(Y()),b>0&&(clearTimeout(G.current),G.current=setTimeout((function(){J({deadline:!0})}),b))),l.eF})),re=(0,i.Z)(ne,2),oe=re[0],ie=re[1],ae=(0,l.zh)(ie);X.current=ae,(0,c.Z)((function(){I(t);var n,r=W.current;(W.current=!0,e)&&(!r&&t&&g&&(n=u.LO),r&&t&&h&&(n=u.Df),(r&&!t&&m||!r&&w&&!t&&m)&&(n=u.jf),n&&(H(n),oe()))}),[t]),(0,a.useEffect)((function(){(z===u.LO&&!g||z===u.Df&&!h||z===u.jf&&!m)&&H(u.ib)}),[g,h,m]),(0,a.useEffect)((function(){return function(){clearTimeout(G.current),q.current=!0}}),[]),(0,a.useEffect)((function(){void 0!==L&&z===u.ib&&(null==j||j(L))}),[L,z]);var ue=U;return te[u.yH]&&ie===u.$D&&(ue=(0,r.Z)({transition:"none"},ue)),[z,ie,ue,null!=L?L:t]}},10179:function(e,t,n){"use strict";n.d(t,{I5:function(){return c},eF:function(){return l},zh:function(){return f}});var r=n(93324),o=n(8156),i=n(21279),a=n(10586),u=n(54194),s=[i.yH,i.$D,i.fh,i.cD],c=!1,l=!0;function f(e){return e===i.fh||e===i.cD}t.ZP=function(e,t){var n=o.useState(i.EQ),l=(0,r.Z)(n,2),f=l[0],p=l[1],d=(0,u.Z)(),h=(0,r.Z)(d,2),v=h[0],g=h[1];return(0,a.Z)((function(){if(f!==i.EQ&&f!==i.cD){var e=s.indexOf(f),n=s[e+1],r=t(f);r===c?p(n):v((function(e){function t(){e.isCanceled()||p(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,f]),o.useEffect((function(){return function(){g()}}),[]),[function(){p(i.yH)},f]}},93587:function(e,t,n){"use strict";var r=n(15407);n(84173);t.Z=r.Z},21279:function(e,t,n){"use strict";n.d(t,{$D:function(){return c},Df:function(){return i},EQ:function(){return u},LO:function(){return o},cD:function(){return f},fh:function(){return l},ib:function(){return r},jf:function(){return a},yH:function(){return s}});var r="none",o="appear",i="enter",a="leave",u="none",s="prepare",c="start",l="active",f="end"},52378:function(e,t,n){"use strict";n.d(t,{Td:function(){return s},ff:function(){return a},l4:function(){return l},p4:function(){return u},uz:function(){return f},zM:function(){return i}});var r=n(1413),o=n(71002),i="add",a="keep",u="remove",s="removed";function c(e){var t;return t=e&&"object"===(0,o.Z)(e)&&"key"in e?e:{key:e},(0,r.Z)((0,r.Z)({},t),{},{key:String(t.key)})}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(c)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,s=t.length,c=l(e),f=l(t);c.forEach((function(e){for(var t=!1,c=o;c<s;c+=1){var l=f[c];if(l.key===e.key){o<c&&(n=n.concat(f.slice(o,c).map((function(e){return(0,r.Z)((0,r.Z)({},e),{},{status:i})}))),o=c),n.push((0,r.Z)((0,r.Z)({},l),{},{status:a})),o+=1,t=!0;break}}t||n.push((0,r.Z)((0,r.Z)({},e),{},{status:u}))})),o<s&&(n=n.concat(f.slice(o).map((function(e){return(0,r.Z)((0,r.Z)({},e),{},{status:i})}))));var p={};n.forEach((function(e){var t=e.key;p[t]=(p[t]||0)+1}));var d=Object.keys(p).filter((function(e){return p[e]>1}));return d.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==u}))).forEach((function(t){t.key===e&&(t.status=a)}))})),n}},94159:function(e,t,n){"use strict";n.d(t,{Cq:function(){return g},SG:function(){return m},mL:function(){return b},nI:function(){return y}});var r=n(71002),o=n(98924);function i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var a,u,s,c=(a=(0,o.Z)(),u="undefined"!=typeof window?window:{},s={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")},a&&("AnimationEvent"in u||delete s.animationend.animation,"TransitionEvent"in u||delete s.transitionend.transition),s),l={};if((0,o.Z)()){var f=document.createElement("div");l=f.style}var p={};function d(e){if(p[e])return p[e];var t=c[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in l)return p[e]=t[i],p[e]}return""}var h=d("animationend"),v=d("transitionend"),g=!(!h||!v),y=h||"animationend",m=v||"transitionend";function b(e,t){return e?"object"===(0,r.Z)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}},79483:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(87462),o=n(71002),i=n(1413),a=n(45987),u=n(8156),s=n(29314),c={adjustX:1,adjustY:1},l=[0,0],f={left:{points:["cr","cl"],overflow:c,offset:[-4,0],targetOffset:l},right:{points:["cl","cr"],overflow:c,offset:[4,0],targetOffset:l},top:{points:["bc","tc"],overflow:c,offset:[0,-4],targetOffset:l},bottom:{points:["tc","bc"],overflow:c,offset:[0,4],targetOffset:l},topLeft:{points:["bl","tl"],overflow:c,offset:[0,-4],targetOffset:l},leftTop:{points:["tr","tl"],overflow:c,offset:[-4,0],targetOffset:l},topRight:{points:["br","tr"],overflow:c,offset:[0,-4],targetOffset:l},rightTop:{points:["tl","tr"],overflow:c,offset:[4,0],targetOffset:l},bottomRight:{points:["tr","br"],overflow:c,offset:[0,4],targetOffset:l},rightBottom:{points:["bl","br"],overflow:c,offset:[4,0],targetOffset:l},bottomLeft:{points:["tl","bl"],overflow:c,offset:[0,4],targetOffset:l},leftBottom:{points:["br","bl"],overflow:c,offset:[-4,0],targetOffset:l}},p=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle;return u.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t)},d=function(e,t){var n=e.overlayClassName,c=e.trigger,l=void 0===c?["hover"]:c,d=e.mouseEnterDelay,h=void 0===d?0:d,v=e.mouseLeaveDelay,g=void 0===v?.1:v,y=e.overlayStyle,m=e.prefixCls,b=void 0===m?"rc-tooltip":m,w=e.children,x=e.onVisibleChange,E=e.afterVisibleChange,S=e.transitionName,C=e.animation,D=e.motion,O=e.placement,A=void 0===O?"right":O,k=e.align,_=void 0===k?{}:k,T=e.destroyTooltipOnHide,B=void 0!==T&&T,P=e.defaultVisible,j=e.getTooltipContainer,F=e.overlayInnerStyle,N=(0,a.Z)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),L=(0,u.useRef)(null);(0,u.useImperativeHandle)(t,(function(){return L.current}));var I=(0,i.Z)({},N);"visible"in e&&(I.popupVisible=e.visible);var R=!1,M=!1;if("boolean"==typeof B)R=B;else if(B&&"object"===(0,o.Z)(B)){var z=B.keepParent;R=!0===z,M=!1===z}return u.createElement(s.Z,(0,r.Z)({popupClassName:n,prefixCls:b,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,o=e.id;return[u.createElement("div",{className:"".concat(b,"-arrow"),key:"arrow"},n),u.createElement(p,{key:"content",prefixCls:b,id:o,overlay:r,overlayInnerStyle:F})]},action:l,builtinPlacements:f,popupPlacement:A,ref:L,popupAlign:_,getPopupContainer:j,onPopupVisibleChange:x,afterPopupVisibleChange:E,popupTransitionName:S,popupAnimation:C,popupMotion:D,defaultPopupVisible:P,destroyPopupOnHide:R,autoDestroy:M,mouseLeaveDelay:g,popupStyle:y,mouseEnterDelay:h},I),w)},h=(0,u.forwardRef)(d)},24375:function(e,t){"use strict";t.Ct=void 0;var n={adjustX:1,adjustY:1},r=[0,0],o={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:r}};t.Ct=o},39235:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(1413),i=n(8156),a=n(94184),u=n.n(a),s=n(93587),c=n(66486);function l(e){var t=e.prefixCls,n=e.visible,a=e.zIndex,l=e.mask,f=e.maskMotion,p=e.maskAnimation,d=e.maskTransitionName;if(!l)return null;var h={};return(f||d||p)&&(h=(0,o.Z)({motionAppear:!0},(0,c.g)({motion:f,prefixCls:t,transitionName:d,animation:p}))),i.createElement(s.Z,(0,r.Z)({},h,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return i.createElement("div",{style:{zIndex:a},className:u()("".concat(t,"-mask"),n)})}))}},62714:function(e,t,n){"use strict";var r=n(87462),o=n(1413),i=n(8156),a=n(93587),u=n(94184),s=n.n(u),c=i.forwardRef((function(e,t){var n=e.prefixCls,u=e.visible,c=e.zIndex,l=e.children,f=e.mobile,p=(f=void 0===f?{}:f).popupClassName,d=f.popupStyle,h=f.popupMotion,v=void 0===h?{}:h,g=f.popupRender,y=e.onClick,m=i.useRef();i.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var b=(0,o.Z)({zIndex:c},d),w=l;return i.Children.count(l)>1&&(w=i.createElement("div",{className:"".concat(n,"-content")},l)),g&&(w=g(w)),i.createElement(a.Z,(0,r.Z)({visible:u,ref:m,removeOnLeave:!0},v),(function(e,t){var r=e.className,a=e.style,u=s()(n,p,r);return i.createElement("div",{ref:t,className:u,onClick:y,style:(0,o.Z)((0,o.Z)({},a),b)},w)}))}));c.displayName="MobilePopupInner",t.Z=c},78279:function(e,t,n){"use strict";var r=n(87462),o=n(1413),i=n(93324),a=n(8156),u=n(34350),s=n(8410),c=n(93587),l=n(94184),f=n.n(l),p=n(35825),d=n(66486),h=n(58901),v=a.forwardRef((function(e,t){var n=e.visible,l=e.prefixCls,v=e.className,g=e.style,y=e.children,m=e.zIndex,b=e.stretch,w=e.destroyPopupOnHide,x=e.forceRender,E=e.align,S=e.point,C=e.getRootDomNode,D=e.getClassNameFromAlign,O=e.onAlign,A=e.onMouseEnter,k=e.onMouseLeave,_=e.onMouseDown,T=e.onTouchStart,B=e.onClick,P=(0,a.useRef)(),j=(0,a.useRef)(),F=(0,a.useState)(),N=(0,i.Z)(F,2),L=N[0],I=N[1],R=(0,h.Z)(b),M=(0,i.Z)(R,2),z=M[0],H=M[1];var $=(0,p.Z)(n,(function(){b&&H(C())})),V=(0,i.Z)($,2),U=V[0],Z=V[1],W=(0,a.useState)(0),G=(0,i.Z)(W,2),q=G[0],K=G[1],Y=(0,a.useRef)();function X(){var e;null===(e=P.current)||void 0===e||e.forceAlign()}function J(e,t){var n=D(t);L!==n&&I(n),K((function(e){return e+1})),"align"===U&&(null==O||O(e,t))}(0,s.Z)((function(){"alignPre"===U&&K(0)}),[U]),(0,s.Z)((function(){"align"===U&&(q<3?X():Z((function(){var e;null===(e=Y.current)||void 0===e||e.call(Y)})))}),[q]);var Q=(0,o.Z)({},(0,d.g)(e));function ee(){return new Promise((function(e){Y.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=Q[e];Q[e]=function(e,n){return Z(),null==t?void 0:t(e,n)}})),a.useEffect((function(){Q.motionName||"motion"!==U||Z()}),[Q.motionName,U]),a.useImperativeHandle(t,(function(){return{forceAlign:X,getElement:function(){return j.current}}}));var te=(0,o.Z)((0,o.Z)({},z),{},{zIndex:m,opacity:"motion"!==U&&"stable"!==U&&n?0:void 0,pointerEvents:n||"stable"===U?void 0:"none"},g),ne=!0;null==E||!E.points||"align"!==U&&"stable"!==U||(ne=!1);var re=y;return a.Children.count(y)>1&&(re=a.createElement("div",{className:"".concat(l,"-content")},y)),a.createElement(c.Z,(0,r.Z)({visible:n,ref:j,leavedClassName:"".concat(l,"-hidden")},Q,{onAppearPrepare:ee,onEnterPrepare:ee,removeOnLeave:w,forceRender:x}),(function(e,t){var n=e.className,r=e.style,i=f()(l,v,L,n);return a.createElement(u.Z,{target:S||C,key:"popup",ref:P,monitorWindowResize:!0,disabled:ne,align:E,onAlign:J},a.createElement("div",{ref:t,className:i,onMouseEnter:A,onMouseLeave:k,onMouseDownCapture:_,onTouchStartCapture:T,onClick:B,style:(0,o.Z)((0,o.Z)({},r),te)},re))}))}));v.displayName="PopupInner",t.Z=v},16036:function(e,t,n){"use strict";var r=n(87462),o=n(1413),i=n(93324),a=n(45987),u=n(8156),s=n(31131),c=n(39235),l=n(78279),f=n(62714),p=["visible","mobile"],d=u.forwardRef((function(e,t){var n=e.visible,d=e.mobile,h=(0,a.Z)(e,p),v=(0,u.useState)(n),g=(0,i.Z)(v,2),y=g[0],m=g[1],b=(0,u.useState)(!1),w=(0,i.Z)(b,2),x=w[0],E=w[1],S=(0,o.Z)((0,o.Z)({},h),{},{visible:y});(0,u.useEffect)((function(){m(n),n&&d&&E((0,s.Z)())}),[n,d]);var C=x?u.createElement(f.Z,(0,r.Z)({},S,{mobile:d,ref:t})):u.createElement(l.Z,(0,r.Z)({},S,{ref:t}));return u.createElement("div",null,u.createElement(c.Z,S),C)}));d.displayName="Popup",t.Z=d},58901:function(e,t,n){"use strict";var r=n(93324),o=n(8156);t.Z=function(e){var t=o.useState({width:0,height:0}),n=(0,r.Z)(t,2),i=n[0],a=n[1];return[o.useMemo((function(){var t={};if(e){var n=i.width,r=i.height;-1!==e.indexOf("height")&&r?t.height=r:-1!==e.indexOf("minHeight")&&r&&(t.minHeight=r),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,i]),function(e){var t=e.offsetWidth,n=e.offsetHeight,r=e.getBoundingClientRect(),o=r.width,i=r.height;Math.abs(t-o)<1&&Math.abs(n-i)<1&&(t=o,n=i),a({width:t,height:n})}]}},35825:function(e,t,n){"use strict";var r=n(74165),o=n(15861),i=n(93324),a=n(8156),u=n(75164),s=n(30470),c=["measure","alignPre","align",null,"motion"];t.Z=function(e,t){var n=(0,s.Z)(null),l=(0,i.Z)(n,2),f=l[0],p=l[1],d=(0,a.useRef)();function h(e){p(e,!0)}function v(){u.Z.cancel(d.current)}return(0,a.useEffect)((function(){h("measure")}),[e]),(0,a.useEffect)((function(){if("measure"===f)t();f&&(d.current=(0,u.Z)((0,o.Z)((0,r.Z)().mark((function e(){var t,n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=c.indexOf(f),(n=c[t+1])&&-1!==t&&h(n);case 3:case"end":return e.stop()}}),e)})))))}),[f]),(0,a.useEffect)((function(){return function(){v()}}),[]),[f,function(e){v(),d.current=(0,u.Z)((function(){h((function(e){switch(f){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}},53405:function(e,t,n){"use strict";var r=n(8156),o=r.createContext(null);t.Z=o},29314:function(e,t,n){"use strict";var r=n(1413),o=n(87462),i=n(15671),a=n(43144),u=n(97326),s=n(60136),c=n(29388),l=n(4942),f=n(8156),p=n(47111),d=n.n(p),h=n(75164),v=n(94999),g=n(34203),y=n(42550),m=n(64019),b=n(59015),w=n(94184),x=n.n(w),E=n(14787),S=n(16036),C=n(53405);function D(){}function O(){return""}function A(e){return e?e.ownerDocument:window.document}var k,_,T=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];t.Z=(k=b.Z,_=function(e){(0,s.Z)(n,e);var t=(0,c.Z)(n);function n(e){var r,a;return(0,i.Z)(this,n),r=t.call(this,e),(0,l.Z)((0,u.Z)(r),"popupRef",f.createRef()),(0,l.Z)((0,u.Z)(r),"triggerRef",f.createRef()),(0,l.Z)((0,u.Z)(r),"portalContainer",void 0),(0,l.Z)((0,u.Z)(r),"attachId",void 0),(0,l.Z)((0,u.Z)(r),"clickOutsideHandler",void 0),(0,l.Z)((0,u.Z)(r),"touchOutsideHandler",void 0),(0,l.Z)((0,u.Z)(r),"contextMenuOutsideHandler1",void 0),(0,l.Z)((0,u.Z)(r),"contextMenuOutsideHandler2",void 0),(0,l.Z)((0,u.Z)(r),"mouseDownTimeout",void 0),(0,l.Z)((0,u.Z)(r),"focusTime",void 0),(0,l.Z)((0,u.Z)(r),"preClickTime",void 0),(0,l.Z)((0,u.Z)(r),"preTouchTime",void 0),(0,l.Z)((0,u.Z)(r),"delayTimer",void 0),(0,l.Z)((0,u.Z)(r),"hasPopupMouseDown",void 0),(0,l.Z)((0,u.Z)(r),"onMouseEnter",(function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)})),(0,l.Z)((0,u.Z)(r),"onMouseMove",(function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)})),(0,l.Z)((0,u.Z)(r),"onMouseLeave",(function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.Z)((0,u.Z)(r),"onPopupMouseEnter",(function(){r.clearDelayTimer()})),(0,l.Z)((0,u.Z)(r),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,v.Z)(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.Z)((0,u.Z)(r),"onFocus",(function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))})),(0,l.Z)((0,u.Z)(r),"onMouseDown",(function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()})),(0,l.Z)((0,u.Z)(r),"onTouchStart",(function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()})),(0,l.Z)((0,u.Z)(r),"onBlur",(function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)})),(0,l.Z)((0,u.Z)(r),"onContextMenu",(function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)})),(0,l.Z)((0,u.Z)(r),"onContextMenuClose",(function(){r.isContextMenuToShow()&&r.close()})),(0,l.Z)((0,u.Z)(r),"onClick",(function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)})),(0,l.Z)((0,u.Z)(r),"onPopupMouseDown",(function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)})),(0,l.Z)((0,u.Z)(r),"onDocumentClick",(function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(0,v.Z)(n,t)&&!r.isContextMenuOnly()||(0,v.Z)(o,t)||r.hasPopupMouseDown||r.close()}})),(0,l.Z)((0,u.Z)(r),"getRootDomNode",(function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=(0,g.Z)(r.triggerRef.current);if(t)return t}catch(e){}return d().findDOMNode((0,u.Z)(r))})),(0,l.Z)((0,u.Z)(r),"getPopupClassNameFromAlign",(function(e){var t=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,u=n.alignPoint,s=n.getPopupClassNameFromAlign;return o&&i&&t.push((0,E.b)(i,a,e,u)),s&&t.push(s(e)),t.join(" ")})),(0,l.Z)((0,u.Z)(r),"getComponent",(function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,u=e.popupMotion,s=e.popupAnimation,c=e.popupTransitionName,l=e.popupStyle,p=e.mask,d=e.maskAnimation,h=e.maskTransitionName,v=e.maskMotion,g=e.zIndex,y=e.popup,m=e.stretch,b=e.alignPoint,w=e.mobile,x=e.forceRender,E=e.onPopupClick,C=r.state,D=C.popupVisible,O=C.point,A=r.getPopupAlign(),k={};return r.isMouseEnterToShow()&&(k.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(k.onMouseLeave=r.onPopupMouseLeave),k.onMouseDown=r.onPopupMouseDown,k.onTouchStart=r.onPopupMouseDown,f.createElement(S.Z,(0,o.Z)({prefixCls:t,destroyPopupOnHide:n,visible:D,point:b&&O,className:i,align:A,onAlign:a,animation:s,getClassNameFromAlign:r.getPopupClassNameFromAlign},k,{stretch:m,getRootDomNode:r.getRootDomNode,style:l,mask:p,zIndex:g,transitionName:c,maskAnimation:d,maskTransitionName:h,maskMotion:v,ref:r.popupRef,motion:u,mobile:w,forceRender:x,onClick:E}),"function"==typeof y?y():y)})),(0,l.Z)((0,u.Z)(r),"attachParent",(function(e){h.Z.cancel(r.attachId);var t,n=r.props,o=n.getPopupContainer,i=n.getDocument,a=r.getRootDomNode();o?(a||0===o.length)&&(t=o(a)):t=i(r.getRootDomNode()).body,t?t.appendChild(e):r.attachId=(0,h.Z)((function(){r.attachParent(e)}))})),(0,l.Z)((0,u.Z)(r),"getContainer",(function(){if(!r.portalContainer){var e=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",r.portalContainer=e}return r.attachParent(r.portalContainer),r.portalContainer})),(0,l.Z)((0,u.Z)(r),"setPoint",(function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,l.Z)((0,u.Z)(r),"handlePortalUpdate",(function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)})),(0,l.Z)((0,u.Z)(r),"triggerContextValue",{onPopupMouseDown:r.onPopupMouseDown}),a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:a,popupVisible:a},T.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,m.Z)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,m.Z)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,m.Z)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,m.Z)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),h.Z.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?(0,E.V)(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,i=t.alignPoint,a=t.className,u=t.autoDestroy,s=f.Children.only(n),c={key:"trigger"};this.isContextMenuToShow()?c.onContextMenu=this.onContextMenu:c.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(c.onClick=this.onClick,c.onMouseDown=this.onMouseDown,c.onTouchStart=this.onTouchStart):(c.onClick=this.createTwoChains("onClick"),c.onMouseDown=this.createTwoChains("onMouseDown"),c.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(c.onMouseEnter=this.onMouseEnter,i&&(c.onMouseMove=this.onMouseMove)):c.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?c.onMouseLeave=this.onMouseLeave:c.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(c.onFocus=this.onFocus,c.onBlur=this.onBlur):(c.onFocus=this.createTwoChains("onFocus"),c.onBlur=this.createTwoChains("onBlur"));var l=x()(s&&s.props&&s.props.className,a);l&&(c.className=l);var p=(0,r.Z)({},c);(0,y.Yr)(s)&&(p.ref=(0,y.sQ)(this.triggerRef,s.ref));var d,h=f.cloneElement(s,p);return(e||this.popupRef.current||o)&&(d=f.createElement(k,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&u&&(d=null),f.createElement(C.Z.Provider,{value:this.triggerContextValue},h,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(f.Component),(0,l.Z)(_,"contextType",C.Z),(0,l.Z)(_,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:O,getDocument:A,onPopupVisibleChange:D,afterPopupVisibleChange:D,onPopupAlign:D,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),_)},14787:function(e,t,n){"use strict";n.d(t,{V:function(){return i},b:function(){return a}});var r=n(1413);function o(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function i(e,t,n){var o=e[t]||{};return(0,r.Z)((0,r.Z)({},o),n)}function a(e,t,n,r){for(var i=n.points,a=Object.keys(e),u=0;u<a.length;u+=1){var s=a[u];if(o(e[s].points,i,r))return"".concat(t,"-placement-").concat(s)}return""}},66486:function(e,t,n){"use strict";function r(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}n.d(t,{g:function(){return r}})},64019:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(47111),o=n.n(r);function i(e,t,n,r){var i=o().unstable_batchedUpdates?function(e){o().unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,i,r)}}}},98924:function(e,t,n){"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{Z:function(){return r}})},94999:function(e,t,n){"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{Z:function(){return r}})},34203:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(47111),o=n.n(r);function i(e){return e instanceof HTMLElement?e:o().findDOMNode(e)}},5110:function(e,t){"use strict";t.Z=function(e){if(!e)return!1;if(e instanceof HTMLElement&&e.offsetParent)return!0;if(e instanceof SVGGraphicsElement&&e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e instanceof HTMLElement&&e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}return!1}},59015:function(e,t,n){"use strict";var r=n(8156),o=n(47111),i=n.n(o),a=n(98924),u=(0,r.forwardRef)((function(e,t){var n=e.didUpdate,o=e.getContainer,u=e.children,s=(0,r.useRef)(),c=(0,r.useRef)();(0,r.useImperativeHandle)(t,(function(){return{}}));var l=(0,r.useRef)(!1);return!l.current&&(0,a.Z)()&&(c.current=o(),s.current=c.current.parentNode,l.current=!0),(0,r.useEffect)((function(){null==n||n(e)})),(0,r.useEffect)((function(){return null===c.current.parentNode&&null!==s.current&&s.current.appendChild(c.current),function(){var e,t;null===(e=c.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(c.current)}}),[]),c.current?i().createPortal(u,c.current):null}));t.Z=u},8410:function(e,t,n){"use strict";var r=n(8156),o=(0,n(98924).Z)()?r.useLayoutEffect:r.useEffect;t.Z=o},56982:function(e,t,n){"use strict";n(8156)},30470:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(93324),o=n(8156);function i(e){var t=o.useRef(!1),n=o.useState(e),i=(0,r.Z)(n,2),a=i[0],u=i[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||u(e)}]}},31131:function(e,t){"use strict";t.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}},75164:function(e,t){"use strict";var n=function(e){return+setTimeout(e,16)},r=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(n=function(e){return window.requestAnimationFrame(e)},r=function(e){return window.cancelAnimationFrame(e)});var o=0,i=new Map;function a(e){i.delete(e)}var u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=o+=1;function u(t){if(0===t)a(r),e();else{var o=n((function(){u(t-1)}));i.set(r,o)}}return u(t),r};u.cancel=function(e){var t=i.get(e);return a(t),r(t)},t.Z=u},42550:function(e,t,n){"use strict";n.d(t,{Yr:function(){return u},mH:function(){return i},sQ:function(){return a}});var r=n(71002),o=n(59864);n(56982);function i(e,t){"function"==typeof e?e(t):"object"===(0,r.Z)(e)&&e&&"current"in e&&(e.current=t)}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){i(t,e)}))}}function u(e){var t,n,r=(0,o.isMemo)(e)?e.type.type:e.type;return!("function"==typeof r&&!(null===(t=r.prototype)||void 0===t?void 0:t.render))&&!("function"==typeof e&&!(null===(n=e.prototype)||void 0===n?void 0:n.render))}},69921:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,m=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;
|
|
26
|
+
/** @license React v16.13.1
|
|
27
|
+
* react-is.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case i:case u:case a:case d:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case v:case s:return e;default:return t}}case o:return t}}}function E(e){return x(e)===f}t.isMemo=function(e){return x(e)===v}},59864:function(e,t,n){"use strict";e.exports=n(69921)},75251:function(e,t,n){"use strict";
|
|
34
|
+
/** @license React v17.0.2
|
|
35
|
+
* react-jsx-runtime.production.min.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/n(27418);var r=n(8156),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)u.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:l,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},85893:function(e,t,n){"use strict";e.exports=n(75251)},91033:function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var u=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function u(){a(i)}function s(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(u,t);o=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},p=m(0,0,0,0);function d(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function v(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=f(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=d(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,u=d(r.width),s=d(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==t&&(u-=h(r,"left","right")+i),Math.round(s+a)!==n&&(s-=h(r,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var c=Math.round(u+i)-t,l=Math.round(s+a)-n;1!==Math.abs(c)&&(u-=c),1!==Math.abs(l)&&(s-=l)}return m(o.left,o.top,u,s)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return o?g(e)?function(e){var t=e.getBBox();return m(0,0,t.width,t.height)}(e):v(e):p}function m(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=m(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(e,t){var n,r,o,i,a,u,s,c=(r=(n=t).x,o=n.y,i=n.width,a=n.height,u="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(u.prototype),l(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);l(this,{target:e,contentRect:c})},x=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new w(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),E="undefined"!=typeof WeakMap?new WeakMap:new r,S=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new x(t,n,this);E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){S.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}}));var C=void 0!==i.ResizeObserver?i.ResizeObserver:S;t.default=C},98005:function(e,t,n){var r=n(93379),o=n(22989);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},62195:function(e,t,n){var r=n(93379),o=n(7381);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},2026:function(e,t,n){var r=n(93379),o=n(19916);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},80666:function(e,t,n){var r=n(93379),o=n(84928);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},96354:function(e,t,n){var r=n(93379),o=n(6273);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},42560:function(e,t,n){var r=n(93379),o=n(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},93379:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function u(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],s=t.base?i[0]+t.base:i[0],c=n[s]||0,l="".concat(s," ").concat(c);n[s]=c+1;var f=u(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:g(p,t),references:1}),r.push(l)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function p(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,v=0;function g(e,t){var n,r,o;if(t.singleton){var i=v++;n=h||(h=c(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=c(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=u(n[r]);a[o].references--}for(var i=s(e,t),c=0;c<n.length;c++){var l=u(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},37464:function(e,t,n){"use strict";n.d(t,{W:function(){return r},Z:function(){return o}});var r="paraui-v3",o="component"},79389:function(e,t,n){"use strict";n.d(t,{default:function(){return d}});var r=n(8156),o=n.n(r),i=n(77918),a=n(85893),u=n(97435),s=function(e){return(0,a.jsx)(u.l,Object.assign({dataName:"Help",path:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"M512 128a384 384 0 1 1-384 384 384 384 0 0 1 384-384m0-64a448 448 0 1 0 448 448 448 448 0 0 0-448-448z","p-id":"11281"}),(0,a.jsx)("path",{d:"M533.76 654.08H465.92v-19.2a140.8 140.8 0 0 1 64-128A135.04 135.04 0 0 0 598.4 403.2 79.36 79.36 0 0 0 518.4 320Q430.72 320 408.32 429.44l-72.32-18.56A168.32 168.32 0 0 1 528.64 256a144 144 0 0 1 152.32 138.88A167.68 167.68 0 0 1 588.8 544a108.8 108.8 0 0 0-55.04 96zM458.24 704h82.56v88.96H458.24z","p-id":"11282"})]})},e))},c=n(86010),l=n(37464);n(62195);function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var d=function(e){var t=e.title,n=void 0===t?"":t,r=e.children,a=e.arrow,u=void 0===a||a,d=e.className,h=e.placement,v=void 0===h?"top":h,g=p(e,["title","children","arrow","className","placement"]);return o().createElement(i.default,f({title:n,arrow:u,placement:v},g),o().createElement("span",{className:(0,c.Z)(l.W+"-help",d)},r||o().createElement(s,null)))}},18799:function(e,t,n){"use strict";var r=n(8156),o=n.n(r),i=n(37464);n(2026);t.default=function(e){var t=e.className,n=e.style,r=e.error,a=void 0!==r&&r,u=e.hideErrorDom,s=void 0!==u&&u,c=e.helperText;if(null===s)return null;if(!a&&s)return null;var l;return o().createElement("p",{className:(l="".concat(i.W,"-helper-text"),t&&(l+=" "+t),a&&(l+=" ".concat(i.W,"-helper-text-error")),l),style:n},c)}},50134:function(e,t,n){"use strict";var r=n(8156),o=n.n(r),i=n(79389),a=n(37464);n(80666);t.default=function(e){var t=e.className,n=e.helpClassName,r=e.style,u=e.label,s=e.labelSign,c=e.required,l=void 0!==c&&c,f=e.tooltip,p=e.tooltipType,d=void 0===p?"icon":p,h=e.placement,v=e.arrow,g=e.tooltipIcon,y=function(){var e=a.W+"-label";return d&&(e+=" ".concat(a.W,"-label-").concat(d)),f&&(e+=" ".concat(a.W,"-label-tooltip")),t&&(e+=" "+t),e};return o().createElement(o().Fragment,null,"icon"===d&&o().createElement("label",{className:y(),style:r},o().createElement(o().Fragment,null,u),l&&o().createElement("span",{className:"label-required"},"*"),s&&o().createElement("span",null,s),f&&o().createElement(i.default,{title:f,placement:h,arrow:v,className:n},g)),"line"===d&&o().createElement(i.default,{title:f||"",placement:h,arrow:v,className:n},o().createElement("label",{className:y(),style:r},o().createElement(o().Fragment,null,u),l&&o().createElement("span",{className:"label-required"},"*"),s&&o().createElement("span",null,s))))}},77918:function(e,t,n){"use strict";n.d(t,{default:function(){return D}});var r=n(8156),o=n.n(r),i=n(79483),a=n(24375),u=n(86010),s=n(37464);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 l(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){c(e,t,n[t])}))}return e}function f(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(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}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var p={adjustX:1,adjustY:1},d={adjustX:0,adjustY:0},h=[0,0];function v(e){return"boolean"==typeof e?e?p:d:l({},d,e)}function g(e){var t=e.arrowWidth,n=void 0===t?4:t,r=e.horizontalArrowShift,o=void 0===r?16:r,i=e.verticalArrowShift,u=void 0===i?8:i,s=e.autoAdjustOverflow,c=e.arrowPointAtCenter,p={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tc"],offset:[-(o+n),-8]},leftTop:{points:["tr","cl"],offset:[-8,-(u+n)]},topRight:{points:["br","tc"],offset:[o+n,-8]},rightTop:{points:["tl","cr"],offset:[8,-(u+n)]},bottomRight:{points:["tr","bc"],offset:[o+n,8]},rightBottom:{points:["bl","cr"],offset:[8,u+n]},bottomLeft:{points:["tl","bc"],offset:[-(o+n),8]},leftBottom:{points:["br","cl"],offset:[-8,u+n]}};return Object.keys(p).forEach((function(e){var t,n;p[e]=c?f(l({},p[e]),{overflow:v(s),targetOffset:h}):f(l({},a.Ct[e]),{offset:(t=e,n=m(t),{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}},{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}}[n]).offset,overflow:v(s)}),p[e].ignoreShake=!0})),p}function y(e){var t=o().isValidElement(e)?e:o().createElement("span",null,e);if("button"===t.type&&t.props.disabled){var n=function(e,t){var n={},r=l({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}}(t.props.style,["position","left","right","top","bottom","float","display","zIndex"]),r=n.picked,i=n.omitted,a=f(l({display:"inline-block"},r),{cursor:"not-allowed",width:t.props.block?"100%":null}),c=f(l({},i),{pointerEvents:"none"}),p=o().cloneElement(t,{style:c,className:null});return o().createElement("span",{style:a,className:(0,u.Z)(t.props.className,"".concat(s.Z,"-tooltip-disabled-compatible-wrapper"))},p)}return t}function m(e){return{"bottom-end":"bottomRight","bottom-start":"bottomLeft","left-end":"leftBottom","left-start":"leftTop","right-end":"rightBottom","right-start":"rightTop","top-end":"topRight","top-start":"topLeft"}[e]||e}n(42560);function b(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 w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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},x.apply(this,arguments)}function E(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(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.")}()}var C=o().forwardRef((function(e,t){var n,r=S(o().useState(e.defaultVisible),2),a=r[0],c=r[1],l=o().useRef(),f=o().useRef(),p=S(o().useState([0,0]),2),d=p[0],h=p[1];o().useEffect((function(){var t;("visible"in e||"open"in e)&&c(!!(null!==(t=e.visible)&&void 0!==t?t:e.open))}),[null!==(n=e.visible)&&void 0!==n?n:e.open]);var v=function(){var t=e.title;return!t&&0!==t},b=function(){var t=e.builtinPlacements,n=e.arrowPointAtCenter,r=e.autoAdjustOverflow;return t||g({arrowPointAtCenter:n,autoAdjustOverflow:r})},C=e.prefixCls,D=void 0===C?"".concat(s.Z,"-tooltip"):C,O=e.getPopupContainer,A=e.overlayClassName,k=e.overlayInnerStyle,_=e.overlayStyle,T=e.children,B=e.title,P=e.placement,j=e.isPopover,F=e.followCursor,N=e.maxWidth,L=E(e,["prefixCls","getPopupContainer","overlayClassName","overlayInnerStyle","overlayStyle","children","title","placement","isPopover","followCursor","maxWidth"]),I=a;"visible"in e||"open"in e||!v()||(I=!1);var R=(0,u.Z)(!j&&"".concat(s.W,"-tooltip"),A,!e.arrow&&"".concat(s.W,"-tooltip-hide-arrow")),M=function(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){w(e,t,n[t])}))}return e}({},_);return N&&(M.maxWidth=N),o().createElement(i.Z,x({},L,{prefixCls:D,placement:F?"top":m(P),overlayClassName:R,getTooltipContainer:O,ref:t||f,builtinPlacements:b(),overlay:B,visible:I,align:{targetOffset:d},onVisibleChange:function(t){var n;("visible"in e||"open"in e||c(!v()&&t),v())||(null===(n=e.onVisibleChange)||void 0===n||n.call(e,t))},onPopupAlign:function(e,t){var n=b(),r=Object.keys(n).find((function(e){return n[e].points[0]===t.points[0]&&n[e].points[1]===t.points[1]}));if(r){var o=e.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayStyle:M,overlayInnerStyle:k,arrowContent:e.arrow?o().createElement("span",{className:"".concat(s.Z,"-tooltip-arrow-content")}):null,motion:{motionName:"".concat(s.Z,"-tooltip-zoom-big-fast"),motionDeadline:1e3}}),F?o().createElement("div",{style:{display:"inline-block"},ref:l,onMouseMove:function(e){if(l.current){var t,n,r,o,i=(null===(t=null===(n=f.current)||void 0===n||null===(r=n.popupRef)||void 0===r||null===(o=r.current)||void 0===o?void 0:o.getElement())||void 0===t?void 0:t.offsetHeight)||0,a=0===i?60:30,u=l.current.getBoundingClientRect(),s=u.x,c=u.y,p=u.width,d=e.clientX-(s+p/2),v=e.clientY-c+i+a;setTimeout((function(){h([-d,-v])}))}}},y(T)):y(T))}));C.displayName="Tooltip",C.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,arrow:!0,defaultVisible:!1,followCursor:!1};var D=C},58543:function(e){"use strict";e.exports=n},8156:function(t){"use strict";t.exports=e},47111:function(e){"use strict";e.exports=t},30907:function(e,t,n){"use strict";function r(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}n.d(t,{Z:function(){return r}})},83878:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},97326: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,{Z:function(){return r}})},15861:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,s,"next",e)}function s(e){r(a,o,i,u,s,"throw",e)}u(void 0)}))}}n.d(t,{Z:function(){return o}})},15671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},43144:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67343);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.Z)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29388:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(61120),o=n(78814),i=n(82963);function a(e){var t=(0,o.Z)();return function(){var n,o=(0,r.Z)(e);if(t){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.Z)(this,n)}}},4942:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67343);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},87462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():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},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},61120:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},60136:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(89611);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},78814:function(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},31902:function(e,t,n){"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}n.d(t,{Z:function(){return r}})},25267:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},1413:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4942);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 i(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){(0,r.Z)(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}},45987:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63366);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},63366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},82963:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(71002),o=n(97326);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},74165:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(71002);function o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
42
|
+
o=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),u=new A(r||[]);return i(a,"_invoke",{value:S(e,n,u)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var d={};function h(){}function v(){}function g(){}var y={};l(y,u,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(k([])));b&&b!==t&&n.call(b,u)&&(y=b);var w=g.prototype=h.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(i,a,u,s){var c=p(e[i],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==(0,r.Z)(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,u,s)}),(function(e){o("throw",e,u,s)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,s)}))}s(c.arg)}var a;i(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function S(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=C(a,n);if(u){if(u===d)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=p(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=p(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function k(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return v.prototype=g,i(w,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:v,configurable:!0}),v.displayName=l(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),l(w,c,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=k,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}},89611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},93324:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(83878),o=n(31902),i=n(40181),a=n(25267);function u(e,t){return(0,r.Z)(e)||(0,o.Z)(e,t)||(0,i.Z)(e,t)||(0,a.Z)()}},35512:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(71002);function o(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},67343:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(71002),o=n(35512);function i(e){var t=(0,o.Z)(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},71002: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},r(e)}n.d(t,{Z:function(){return r}})},40181:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30907);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(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)?(0,r.Z)(e,t):void 0}}}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,loaded:!1,exports:{}};return r[e](n,n.exports,i),n.loaded=!0,n.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},i.nc=void 0;var a={};return function(){"use strict";i.r(a),i.d(a,{default:function(){return Vge}});var e=i(8156),t=i.n(e),n=i(50134),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function o(e){var t={exports:{}};return e(t,t.exports),t.exports}var u,s,c=function(e){return e&&e.Math==Math&&e},l=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof r&&r)||function(){return this}()||Function("return this")(),f=Function.prototype,p=f.apply,d=f.bind,h=f.call,v="object"==typeof Reflect&&Reflect.apply||(d?h.bind(p):function(){return h.apply(p,arguments)}),g=Function.prototype,y=g.bind,m=g.call,b=y&&y.bind(m),w=y?function(e){return e&&b(m,e)}:function(e){return e&&function(){return m.apply(e,arguments)}},x=function(e){return"function"==typeof e},E=function(e){try{return!!e()}catch(e){return!0}},S=!E((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=Function.prototype.call,D=C.bind?C.bind(C):function(){return C.apply(C,arguments)},O={}.propertyIsEnumerable,A=Object.getOwnPropertyDescriptor,k=A&&!O.call({1:2},1)?function(e){var t=A(this,e);return!!t&&t.enumerable}:O,_={f:k},T=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B=w({}.toString),P=w("".slice),j=function(e){return P(B(e),8,-1)},F=l.Object,N=w("".split),L=E((function(){return!F("z").propertyIsEnumerable(0)}))?function(e){return"String"==j(e)?N(e,""):F(e)}:F,I=l.TypeError,R=function(e){if(null==e)throw I("Can't call method on "+e);return e},M=function(e){return L(R(e))},z=function(e){return"object"==typeof e?null!==e:x(e)},H={},$=function(e){return x(e)?e:void 0},V=function(e,t){return arguments.length<2?$(H[e])||$(l[e]):H[e]&&H[e][t]||l[e]&&l[e][t]},U=w({}.isPrototypeOf),Z=V("navigator","userAgent")||"",W=l.process,G=l.Deno,q=W&&W.versions||G&&G.version,K=q&&q.v8;K&&(s=(u=K.split("."))[0]>0&&u[0]<4?1:+(u[0]+u[1])),!s&&Z&&(!(u=Z.match(/Edge\/(\d+)/))||u[1]>=74)&&(u=Z.match(/Chrome\/(\d+)/))&&(s=+u[1]);var Y,X=s,J=!!Object.getOwnPropertySymbols&&!E((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&X&&X<41})),Q=J&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ee=l.Object,te=Q?function(e){return"symbol"==typeof e}:function(e){var t=V("Symbol");return x(t)&&U(t.prototype,ee(e))},ne=l.String,re=function(e){try{return ne(e)}catch(e){return"Object"}},oe=l.TypeError,ie=function(e){if(x(e))return e;throw oe(re(e)+" is not a function")},ae=function(e,t){var n=e[t];return null==n?void 0:ie(n)},ue=l.TypeError,se=Object.defineProperty,ce=l["__core-js_shared__"]||function(e,t){try{se(l,e,{value:t,configurable:!0,writable:!0})}catch(n){l[e]=t}return t}("__core-js_shared__",{}),le=o((function(e){(e.exports=function(e,t){return ce[e]||(ce[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),fe=l.Object,pe=function(e){return fe(R(e))},de=w({}.hasOwnProperty),he=Object.hasOwn||function(e,t){return de(pe(e),t)},ve=0,ge=Math.random(),ye=w(1..toString),me=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ye(++ve+ge,36)},be=le("wks"),we=l.Symbol,xe=we&&we.for,Ee=Q?we:we&&we.withoutSetter||me,Se=function(e){if(!he(be,e)||!J&&"string"!=typeof be[e]){var t="Symbol."+e;J&&he(we,e)?be[e]=we[e]:be[e]=Q&&xe?xe(t):Ee(t)}return be[e]},Ce=l.TypeError,De=Se("toPrimitive"),Oe=function(e){var t=function(e,t){if(!z(e)||te(e))return e;var n,r=ae(e,De);if(r){if(void 0===t&&(t="default"),n=D(r,e,t),!z(n)||te(n))return n;throw Ce("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&x(n=e.toString)&&!z(r=D(n,e)))return r;if(x(n=e.valueOf)&&!z(r=D(n,e)))return r;if("string"!==t&&x(n=e.toString)&&!z(r=D(n,e)))return r;throw ue("Can't convert object to primitive value")}(e,t)}(e,"string");return te(t)?t:t+""},Ae=l.document,ke=z(Ae)&&z(Ae.createElement),_e=function(e){return ke?Ae.createElement(e):{}},Te=!S&&!E((function(){return 7!=Object.defineProperty(_e("div"),"a",{get:function(){return 7}}).a})),Be=Object.getOwnPropertyDescriptor,Pe=S?Be:function(e,t){if(e=M(e),t=Oe(t),Te)try{return Be(e,t)}catch(e){}if(he(e,t))return T(!D(_.f,e,t),e[t])},je={f:Pe},Fe=/#|\.prototype\./,Ne=function(e,t){var n=Ie[Le(e)];return n==Me||n!=Re&&(x(t)?E(t):!!t)},Le=Ne.normalize=function(e){return String(e).replace(Fe,".").toLowerCase()},Ie=Ne.data={},Re=Ne.NATIVE="N",Me=Ne.POLYFILL="P",ze=Ne,He=w(w.bind),$e=function(e,t){return ie(e),void 0===t?e:He?He(e,t):function(){return e.apply(t,arguments)}},Ve=l.String,Ue=l.TypeError,Ze=function(e){if(z(e))return e;throw Ue(Ve(e)+" is not an object")},We=l.TypeError,Ge=Object.defineProperty,qe=S?Ge:function(e,t,n){if(Ze(e),t=Oe(t),Ze(n),Te)try{return Ge(e,t,n)}catch(e){}if("get"in n||"set"in n)throw We("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ke={f:qe},Ye=S?function(e,t,n){return Ke.f(e,t,T(1,n))}:function(e,t,n){return e[t]=n,e},Xe=je.f,Je=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return v(e,this,arguments)};return t.prototype=e.prototype,t},Qe=function(e,t){var n,r,o,i,a,u,s,c,f=e.target,p=e.global,d=e.stat,h=e.proto,v=p?l:d?l[f]:(l[f]||{}).prototype,g=p?H:H[f]||Ye(H,f,{})[f],y=g.prototype;for(o in t)n=!ze(p?o:f+(d?".":"#")+o,e.forced)&&v&&he(v,o),a=g[o],n&&(u=e.noTargetGet?(c=Xe(v,o))&&c.value:v[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?$e(i,l):e.wrap&&n?Je(i):h&&x(i)?w(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Ye(s,"sham",!0),Ye(g,o,s),h&&(he(H,r=f+"Prototype")||Ye(H,r,{}),Ye(H[r],o,i),e.real&&y&&!y[o]&&Ye(y,o,i)))},et=le("keys"),tt=function(e){return et[e]||(et[e]=me(e))},nt=!E((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),rt=tt("IE_PROTO"),ot=l.Object,it=ot.prototype,at=nt?ot.getPrototypeOf:function(e){var t=pe(e);if(he(t,rt))return t[rt];var n=t.constructor;return x(n)&&t instanceof n?n.prototype:t instanceof ot?it:null},ut=l.String,st=l.TypeError,ct=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=w(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ze(n),function(e){if("object"==typeof e||x(e))return e;throw st("Can't set "+ut(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),lt=Math.ceil,ft=Math.floor,pt=function(e){var t=+e;return t!=t||0===t?0:(t>0?ft:lt)(t)},dt=Math.max,ht=Math.min,vt=function(e,t){var n=pt(e);return n<0?dt(n+t,0):ht(n,t)},gt=Math.min,yt=function(e){return(t=e.length)>0?gt(pt(t),9007199254740991):0;var t},mt=function(e){return function(t,n,r){var o,i=M(t),a=yt(i),u=vt(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},bt={includes:mt(!0),indexOf:mt(!1)},wt={},xt=bt.indexOf,Et=w([].push),St=function(e,t){var n,r=M(e),o=0,i=[];for(n in r)!he(wt,n)&&he(r,n)&&Et(i,n);for(;t.length>o;)he(r,n=t[o++])&&(~xt(i,n)||Et(i,n));return i},Ct=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dt=Ct.concat("length","prototype"),Ot=Object.getOwnPropertyNames||function(e){return St(e,Dt)},At={f:Ot},kt={f:Object.getOwnPropertySymbols},_t=w([].concat),Tt=V("Reflect","ownKeys")||function(e){var t=At.f(Ze(e)),n=kt.f;return n?_t(t,n(e)):t},Bt=Object.keys||function(e){return St(e,Ct)},Pt=S?Object.defineProperties:function(e,t){Ze(e);for(var n,r=M(t),o=Bt(t),i=o.length,a=0;i>a;)Ke.f(e,n=o[a++],r[n]);return e},jt=V("document","documentElement"),Ft=tt("IE_PROTO"),Nt=function(){},Lt=function(e){return"<script>"+e+"<\/script>"},It=function(e){e.write(Lt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Rt=function(){try{Y=new ActiveXObject("htmlfile")}catch(e){}var e,t;Rt="undefined"!=typeof document?document.domain&&Y?It(Y):((t=_e("iframe")).style.display="none",jt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Lt("document.F=Object")),e.close(),e.F):It(Y);for(var n=Ct.length;n--;)delete Rt.prototype[Ct[n]];return Rt()};wt[Ft]=!0;var Mt=Object.create||function(e,t){var n;return null!==e?(Nt.prototype=Ze(e),n=new Nt,Nt.prototype=null,n[Ft]=e):n=Rt(),void 0===t?n:Pt(n,t)},zt=function(e,t,n){var r=Oe(t);r in e?Ke.f(e,r,T(0,n)):e[r]=n},Ht=l.Array,$t=Math.max,Vt=function(e,t,n){for(var r=yt(e),o=vt(t,r),i=vt(void 0===n?r:n,r),a=Ht($t(i-o,0)),u=0;o<i;o++,u++)zt(a,u,e[o]);return a.length=u,a},Ut=w("".replace),Zt=w("".split),Wt=w([].join),Gt=String(Error("zxcasd").stack),qt=/\n\s*at [^:]*:[^\n]*/,Kt=qt.test(Gt),Yt=/@[^\n]*\n/.test(Gt)&&!/zxcasd/.test(Gt),Xt=function(e,t){if("string"!=typeof e)return e;if(Kt)for(;t--;)e=Ut(e,qt,"");else if(Yt)return Wt(Vt(Zt(e,"\n"),t),"\n");return e},Jt=function(e,t){z(t)&&"cause"in t&&Ye(e,"cause",t.cause)},Qt={},en=Se("iterator"),tn=Array.prototype,nn={};nn[Se("toStringTag")]="z";var rn="[object z]"===String(nn),on=Se("toStringTag"),an=l.Object,un="Arguments"==j(function(){return arguments}()),sn=rn?j:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=an(e),on))?n:un?j(t):"Object"==(r=j(t))&&x(t.callee)?"Arguments":r},cn=Se("iterator"),ln=function(e){if(null!=e)return ae(e,cn)||ae(e,"@@iterator")||Qt[sn(e)]},fn=l.TypeError,pn=function(e,t,n){var r,o;Ze(e);try{if(!(r=ae(e,"return"))){if("throw"===t)throw n;return n}r=D(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ze(r),n},dn=l.TypeError,hn=function(e,t){this.stopped=e,this.result=t},vn=hn.prototype,gn=function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),h=$e(t,l),v=function(e){return r&&pn(r,"normal",e),new hn(!0,e)},g=function(e){return f?(Ze(e),d?h(e[0],e[1],v):h(e[0],e[1])):d?h(e,v):h(e)};if(p)r=e;else{if(!(o=ln(e)))throw dn(re(e)+" is not iterable");if(function(e){return void 0!==e&&(Qt.Array===e||tn[en]===e)}(o)){for(i=0,a=yt(e);a>i;i++)if((u=g(e[i]))&&U(vn,u))return u;return new hn(!1)}r=function(e,t){var n=arguments.length<2?ln(e):t;if(ie(n))return Ze(D(n,e));throw fn(re(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=D(s,r)).done;){try{u=g(c.value)}catch(e){pn(r,"throw",e)}if("object"==typeof u&&u&&U(vn,u))return u}return new hn(!1)},yn=l.String,mn=function(e){if("Symbol"===sn(e))throw TypeError("Cannot convert a Symbol value to a string");return yn(e)},bn=function(e,t){return void 0===e?arguments.length<2?"":t:mn(e)},wn=!E((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",T(1,7)),7!==e.stack)})),xn=Se("toStringTag"),En=l.Error,Sn=[].push,Cn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=U(Dn,this);ct?n=ct(new En(void 0),o?at(this):Dn):(n=o?this:Mt(Dn),Ye(n,xn,"Error")),Ye(n,"message",bn(t,"")),wn&&Ye(n,"stack",Xt(n.stack,1)),Jt(n,r);var i=[];return gn(e,Sn,{that:i}),Ye(n,"errors",i),n};ct?ct(Cn,En):function(e,t){for(var n=Tt(t),r=Ke.f,o=je.f,i=0;i<n.length;i++){var a=n[i];he(e,a)||r(e,a,o(t,a))}}(Cn,En);var Dn=Cn.prototype=Mt(En.prototype,{constructor:T(1,Cn),message:T(1,""),name:T(1,"AggregateError")});Qe({global:!0},{AggregateError:Cn});var On=w(Function.toString);x(ce.inspectSource)||(ce.inspectSource=function(e){return On(e)});var An,kn,_n,Tn=ce.inspectSource,Bn=l.WeakMap,Pn=x(Bn)&&/native code/.test(Tn(Bn)),jn=l.TypeError,Fn=l.WeakMap;if(Pn||ce.state){var Nn=ce.state||(ce.state=new Fn),Ln=w(Nn.get),In=w(Nn.has),Rn=w(Nn.set);An=function(e,t){if(In(Nn,e))throw new jn("Object already initialized");return t.facade=e,Rn(Nn,e,t),t},kn=function(e){return Ln(Nn,e)||{}},_n=function(e){return In(Nn,e)}}else{var Mn=tt("state");wt[Mn]=!0,An=function(e,t){if(he(e,Mn))throw new jn("Object already initialized");return t.facade=e,Ye(e,Mn,t),t},kn=function(e){return he(e,Mn)?e[Mn]:{}},_n=function(e){return he(e,Mn)}}var zn,Hn,$n,Vn={set:An,get:kn,has:_n,enforce:function(e){return _n(e)?kn(e):An(e,{})},getterFor:function(e){return function(t){var n;if(!z(t)||(n=kn(t)).type!==e)throw jn("Incompatible receiver, "+e+" required");return n}}},Un=Function.prototype,Zn=S&&Object.getOwnPropertyDescriptor,Wn=he(Un,"name"),Gn={EXISTS:Wn,PROPER:Wn&&"something"===function(){}.name,CONFIGURABLE:Wn&&(!S||S&&Zn(Un,"name").configurable)},qn=function(e,t,n,r){r&&r.enumerable?e[t]=n:Ye(e,t,n)},Kn=Se("iterator"),Yn=!1;[].keys&&("next"in($n=[].keys())?(Hn=at(at($n)))!==Object.prototype&&(zn=Hn):Yn=!0);var Xn=null==zn||E((function(){var e={};return zn[Kn].call(e)!==e}));zn=Xn?{}:Mt(zn),x(zn[Kn])||qn(zn,Kn,(function(){return this}));var Jn={IteratorPrototype:zn,BUGGY_SAFARI_ITERATORS:Yn},Qn=rn?{}.toString:function(){return"[object "+sn(this)+"]"},er=Ke.f,tr=Se("toStringTag"),nr=function(e,t,n,r){if(e){var o=n?e:e.prototype;he(o,tr)||er(o,tr,{configurable:!0,value:t}),r&&!rn&&Ye(o,"toString",Qn)}},rr=Jn.IteratorPrototype,or=function(){return this},ir=Gn.PROPER,ar=Jn.BUGGY_SAFARI_ITERATORS,ur=Se("iterator"),sr=function(){return this},cr=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Mt(rr,{next:T(1,n)}),nr(e,o,!1,!0),Qt[o]=or}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!ar&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",p=!1,d=e.prototype,h=d[ur]||d["@@iterator"]||o&&d[o],v=!ar&&h||l(o),g="Array"==t&&d.entries||h;if(g&&(u=at(g.call(new e)))!==Object.prototype&&u.next&&(nr(u,f,!0,!0),Qt[f]=sr),ir&&"values"==o&&h&&"values"!==h.name&&(p=!0,v=function(){return D(h,this)}),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(ar||p||!(c in d))&&qn(d,c,s[c]);else Qe({target:t,proto:!0,forced:ar||p},s);return a&&d[ur]!==v&&qn(d,ur,v,{name:o}),Qt[t]=v,s},lr=Vn.set,fr=Vn.getterFor("Array Iterator");cr(Array,"Array",(function(e,t){lr(this,{type:"Array Iterator",target:M(e),index:0,kind:t})}),(function(){var e=fr(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),Qt.Arguments=Qt.Array;var pr=w("".charAt),dr=w("".charCodeAt),hr=w("".slice),vr=function(e){return function(t,n){var r,o,i=mn(R(t)),a=pt(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=dr(i,a))<55296||r>56319||a+1===u||(o=dr(i,a+1))<56320||o>57343?e?pr(i,a):r:e?hr(i,a,a+2):o-56320+(r-55296<<10)+65536}},gr=(vr(!1),vr(!0)),yr=Vn.set,mr=Vn.getterFor("String Iterator");cr(String,"String",(function(e){yr(this,{type:"String Iterator",string:mn(e),index:0})}),(function(){var e,t=mr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=gr(n,r),t.index+=e.length,{value:e,done:!1})}));var br=H.AggregateError,wr=Se("toStringTag");for(var xr in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Er=l[xr],Sr=Er&&Er.prototype;Sr&&sn(Sr)!==wr&&Ye(Sr,wr,xr),Qt[xr]=Qt.Array}var Cr,Dr,Or=br,Ar=function(e){return e&&e.Math==Math&&e},kr=Ar("object"==typeof globalThis&&globalThis)||Ar("object"==typeof window&&window)||Ar("object"==typeof self&&self)||Ar("object"==typeof r&&r)||function(){return this}()||Function("return this")(),_r=function(e){try{return!!e()}catch(e){return!0}},Tr=!_r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Br=Function.prototype.call,Pr=Br.bind?Br.bind(Br):function(){return Br.apply(Br,arguments)},jr={}.propertyIsEnumerable,Fr=Object.getOwnPropertyDescriptor,Nr=Fr&&!jr.call({1:2},1)?function(e){var t=Fr(this,e);return!!t&&t.enumerable}:jr,Lr={f:Nr},Ir=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Rr=Function.prototype,Mr=Rr.bind,zr=Rr.call,Hr=Mr&&Mr.bind(zr),$r=Mr?function(e){return e&&Hr(zr,e)}:function(e){return e&&function(){return zr.apply(e,arguments)}},Vr=$r({}.toString),Ur=$r("".slice),Zr=function(e){return Ur(Vr(e),8,-1)},Wr=kr.Object,Gr=$r("".split),qr=_r((function(){return!Wr("z").propertyIsEnumerable(0)}))?function(e){return"String"==Zr(e)?Gr(e,""):Wr(e)}:Wr,Kr=kr.TypeError,Yr=function(e){if(null==e)throw Kr("Can't call method on "+e);return e},Xr=function(e){return qr(Yr(e))},Jr=function(e){return"function"==typeof e},Qr=function(e){return"object"==typeof e?null!==e:Jr(e)},eo=function(e){return Jr(e)?e:void 0},to=function(e,t){return arguments.length<2?eo(kr[e]):kr[e]&&kr[e][t]},no=$r({}.isPrototypeOf),ro=to("navigator","userAgent")||"",oo=kr.process,io=kr.Deno,ao=oo&&oo.versions||io&&io.version,uo=ao&&ao.v8;uo&&(Dr=(Cr=uo.split("."))[0]>0&&Cr[0]<4?1:+(Cr[0]+Cr[1])),!Dr&&ro&&(!(Cr=ro.match(/Edge\/(\d+)/))||Cr[1]>=74)&&(Cr=ro.match(/Chrome\/(\d+)/))&&(Dr=+Cr[1]);var so=Dr,co=!!Object.getOwnPropertySymbols&&!_r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&so&&so<41})),lo=co&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,fo=kr.Object,po=lo?function(e){return"symbol"==typeof e}:function(e){var t=to("Symbol");return Jr(t)&&no(t.prototype,fo(e))},ho=kr.String,vo=function(e){try{return ho(e)}catch(e){return"Object"}},go=kr.TypeError,yo=function(e){if(Jr(e))return e;throw go(vo(e)+" is not a function")},mo=function(e,t){var n=e[t];return null==n?void 0:yo(n)},bo=kr.TypeError,wo=Object.defineProperty,xo=function(e,t){try{wo(kr,e,{value:t,configurable:!0,writable:!0})}catch(n){kr[e]=t}return t},Eo=kr["__core-js_shared__"]||xo("__core-js_shared__",{}),So=o((function(e){(e.exports=function(e,t){return Eo[e]||(Eo[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Co=kr.Object,Do=function(e){return Co(Yr(e))},Oo=$r({}.hasOwnProperty),Ao=Object.hasOwn||function(e,t){return Oo(Do(e),t)},ko=0,_o=Math.random(),To=$r(1..toString),Bo=function(e){return"Symbol("+(void 0===e?"":e)+")_"+To(++ko+_o,36)},Po=So("wks"),jo=kr.Symbol,Fo=jo&&jo.for,No=lo?jo:jo&&jo.withoutSetter||Bo,Lo=function(e){if(!Ao(Po,e)||!co&&"string"!=typeof Po[e]){var t="Symbol."+e;co&&Ao(jo,e)?Po[e]=jo[e]:Po[e]=lo&&Fo?Fo(t):No(t)}return Po[e]},Io=kr.TypeError,Ro=Lo("toPrimitive"),Mo=function(e){var t=function(e,t){if(!Qr(e)||po(e))return e;var n,r=mo(e,Ro);if(r){if(void 0===t&&(t="default"),n=Pr(r,e,t),!Qr(n)||po(n))return n;throw Io("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Jr(n=e.toString)&&!Qr(r=Pr(n,e)))return r;if(Jr(n=e.valueOf)&&!Qr(r=Pr(n,e)))return r;if("string"!==t&&Jr(n=e.toString)&&!Qr(r=Pr(n,e)))return r;throw bo("Can't convert object to primitive value")}(e,t)}(e,"string");return po(t)?t:t+""},zo=kr.document,Ho=Qr(zo)&&Qr(zo.createElement),$o=function(e){return Ho?zo.createElement(e):{}},Vo=!Tr&&!_r((function(){return 7!=Object.defineProperty($o("div"),"a",{get:function(){return 7}}).a})),Uo=Object.getOwnPropertyDescriptor,Zo=Tr?Uo:function(e,t){if(e=Xr(e),t=Mo(t),Vo)try{return Uo(e,t)}catch(e){}if(Ao(e,t))return Ir(!Pr(Lr.f,e,t),e[t])},Wo={f:Zo},Go=kr.String,qo=kr.TypeError,Ko=function(e){if(Qr(e))return e;throw qo(Go(e)+" is not an object")},Yo=kr.TypeError,Xo=Object.defineProperty,Jo=Tr?Xo:function(e,t,n){if(Ko(e),t=Mo(t),Ko(n),Vo)try{return Xo(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Yo("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Qo={f:Jo},ei=Tr?function(e,t,n){return Qo.f(e,t,Ir(1,n))}:function(e,t,n){return e[t]=n,e},ti=$r(Function.toString);Jr(Eo.inspectSource)||(Eo.inspectSource=function(e){return ti(e)});var ni,ri,oi,ii=Eo.inspectSource,ai=kr.WeakMap,ui=Jr(ai)&&/native code/.test(ii(ai)),si=So("keys"),ci=function(e){return si[e]||(si[e]=Bo(e))},li={},fi=kr.TypeError,pi=kr.WeakMap;if(ui||Eo.state){var di=Eo.state||(Eo.state=new pi),hi=$r(di.get),vi=$r(di.has),gi=$r(di.set);ni=function(e,t){if(vi(di,e))throw new fi("Object already initialized");return t.facade=e,gi(di,e,t),t},ri=function(e){return hi(di,e)||{}},oi=function(e){return vi(di,e)}}else{var yi=ci("state");li[yi]=!0,ni=function(e,t){if(Ao(e,yi))throw new fi("Object already initialized");return t.facade=e,ei(e,yi,t),t},ri=function(e){return Ao(e,yi)?e[yi]:{}},oi=function(e){return Ao(e,yi)}}var mi={set:ni,get:ri,has:oi,enforce:function(e){return oi(e)?ri(e):ni(e,{})},getterFor:function(e){return function(t){var n;if(!Qr(t)||(n=ri(t)).type!==e)throw fi("Incompatible receiver, "+e+" required");return n}}},bi=Function.prototype,wi=Tr&&Object.getOwnPropertyDescriptor,xi=Ao(bi,"name"),Ei={EXISTS:xi,PROPER:xi&&"something"===function(){}.name,CONFIGURABLE:xi&&(!Tr||Tr&&wi(bi,"name").configurable)},Si=o((function(e){var t=Ei.CONFIGURABLE,n=mi.get,r=mi.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Jr(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ao(i,"name")||t&&i.name!==f)&&ei(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==kr?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:ei(e,n,i)):c?e[n]=i:xo(n,i)})(Function.prototype,"toString",(function(){return Jr(this)&&n(this).source||ii(this)}))})),Ci=Math.ceil,Di=Math.floor,Oi=function(e){var t=+e;return t!=t||0===t?0:(t>0?Di:Ci)(t)},Ai=Math.max,ki=Math.min,_i=function(e,t){var n=Oi(e);return n<0?Ai(n+t,0):ki(n,t)},Ti=Math.min,Bi=function(e){return e>0?Ti(Oi(e),9007199254740991):0},Pi=function(e){return Bi(e.length)},ji=function(e){return function(t,n,r){var o,i=Xr(t),a=Pi(i),u=_i(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Fi=(ji(!0),ji(!1)),Ni=$r([].push),Li=function(e,t){var n,r=Xr(e),o=0,i=[];for(n in r)!Ao(li,n)&&Ao(r,n)&&Ni(i,n);for(;t.length>o;)Ao(r,n=t[o++])&&(~Fi(i,n)||Ni(i,n));return i},Ii=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ri=Ii.concat("length","prototype"),Mi=Object.getOwnPropertyNames||function(e){return Li(e,Ri)},zi={f:Mi},Hi={f:Object.getOwnPropertySymbols},$i=$r([].concat),Vi=to("Reflect","ownKeys")||function(e){var t=zi.f(Ko(e)),n=Hi.f;return n?$i(t,n(e)):t},Ui=function(e,t){for(var n=Vi(t),r=Qo.f,o=Wo.f,i=0;i<n.length;i++){var a=n[i];Ao(e,a)||r(e,a,o(t,a))}},Zi=/#|\.prototype\./,Wi=function(e,t){var n=qi[Gi(e)];return n==Yi||n!=Ki&&(Jr(t)?_r(t):!!t)},Gi=Wi.normalize=function(e){return String(e).replace(Zi,".").toLowerCase()},qi=Wi.data={},Ki=Wi.NATIVE="N",Yi=Wi.POLYFILL="P",Xi=Wi,Ji=Wo.f,Qi=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?kr:c?kr[u]||xo(u,{}):(kr[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Ji(n,r))&&a.value:n[r],!Xi(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ui(i,o)}(e.sham||o&&o.sham)&&ei(i,"sham",!0),Si(n,r,i,e)}},ea={};ea[Lo("toStringTag")]="z";var ta,na="[object z]"===String(ea),ra=Lo("toStringTag"),oa=kr.Object,ia="Arguments"==Zr(function(){return arguments}()),aa=na?Zr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=oa(e),ra))?n:ia?Zr(t):"Object"==(r=Zr(t))&&Jr(t.callee)?"Arguments":r},ua=kr.String,sa=function(e){if("Symbol"===aa(e))throw TypeError("Cannot convert a Symbol value to a string");return ua(e)},ca=function(){var e=Ko(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},la=kr.RegExp,fa=_r((function(){var e=la("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),pa=fa||_r((function(){return!la("a","y").sticky})),da=fa||_r((function(){var e=la("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),ha={BROKEN_CARET:da,MISSED_STICKY:pa,UNSUPPORTED_Y:fa},va=Object.keys||function(e){return Li(e,Ii)},ga=Tr?Object.defineProperties:function(e,t){Ko(e);for(var n,r=Xr(t),o=va(t),i=o.length,a=0;i>a;)Qo.f(e,n=o[a++],r[n]);return e},ya=to("document","documentElement"),ma=ci("IE_PROTO"),ba=function(){},wa=function(e){return"<script>"+e+"<\/script>"},xa=function(e){e.write(wa("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ea=function(){try{ta=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ea="undefined"!=typeof document?document.domain&&ta?xa(ta):((t=$o("iframe")).style.display="none",ya.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(wa("document.F=Object")),e.close(),e.F):xa(ta);for(var n=Ii.length;n--;)delete Ea.prototype[Ii[n]];return Ea()};li[ma]=!0;var Sa,Ca,Da=Object.create||function(e,t){var n;return null!==e?(ba.prototype=Ko(e),n=new ba,ba.prototype=null,n[ma]=e):n=Ea(),void 0===t?n:ga(n,t)},Oa=kr.RegExp,Aa=_r((function(){var e=Oa(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ka=kr.RegExp,_a=_r((function(){var e=ka("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ta=mi.get,Ba=So("native-string-replace",String.prototype.replace),Pa=RegExp.prototype.exec,ja=Pa,Fa=$r("".charAt),Na=$r("".indexOf),La=$r("".replace),Ia=$r("".slice),Ra=(Ca=/b*/g,Pr(Pa,Sa=/a/,"a"),Pr(Pa,Ca,"a"),0!==Sa.lastIndex||0!==Ca.lastIndex),Ma=ha.BROKEN_CARET,za=void 0!==/()??/.exec("")[1];(Ra||za||Ma||Aa||_a)&&(ja=function(e){var t,n,r,o,i,a,u,s=this,c=Ta(s),l=sa(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=Pr(ja,f,l),s.lastIndex=f.lastIndex,t;var p=c.groups,d=Ma&&s.sticky,h=Pr(ca,s),v=s.source,g=0,y=l;if(d&&(h=La(h,"y",""),-1===Na(h,"g")&&(h+="g"),y=Ia(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Fa(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),za&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Ra&&(r=s.lastIndex),o=Pr(Pa,d?n:s,y),d?o?(o.input=Ia(o.input,g),o[0]=Ia(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ra&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),za&&o&&o.length>1&&Pr(Ba,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=Da(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Ha=ja;Qi({target:"RegExp",proto:!0,forced:/./.exec!==Ha},{exec:Ha});Lo("species");var $a=RegExp.prototype,Va=$r("".charAt),Ua=$r("".charCodeAt),Za=$r("".slice),Wa=function(e){return function(t,n){var r,o,i=sa(Yr(t)),a=Oi(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Ua(i,a))<55296||r>56319||a+1===u||(o=Ua(i,a+1))<56320||o>57343?e?Va(i,a):r:e?Za(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ga={codeAt:Wa(!1),charAt:Wa(!0)},qa=Ga.charAt,Ka=function(e,t,n){return t+(n?qa(e,t).length:1)},Ya=kr.TypeError,Xa=function(e,t){var n=e.exec;if(Jr(n)){var r=Pr(n,e,t);return null!==r&&Ko(r),r}if("RegExp"===Zr(e))return Pr(Ha,e,t);throw Ya("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=Lo(e),i=!_r((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!_r((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a){var u=$r(/./[o]),s=function(e,t,n){return[function(t){var n=Yr(this),r=null==t?void 0:mo(t,e);return r?Pr(r,t,n):new RegExp(t)[e](sa(n))},function(e){var r=Ko(this),o=sa(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Xa(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=Xa(r,o));){var l=sa(u[0]);s[c]=l,""===l&&(r.lastIndex=Ka(o,Bi(r.lastIndex),a)),c++}return 0===c?null:s}]}(o,""[e],(function(e,t,n,r,o){var a=$r(e),s=t.exec;return s===Ha||s===$a.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Si(String.prototype,e,s[0]),Si($a,o,s[1])}}("match"),Qi({global:!0},{globalThis:kr});var Ja=!_r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Qa=ci("IE_PROTO"),eu=kr.Object,tu=eu.prototype,nu=Ja?eu.getPrototypeOf:function(e){var t=Do(e);if(Ao(t,Qa))return t[Qa];var n=t.constructor;return Jr(n)&&t instanceof n?n.prototype:t instanceof eu?tu:null},ru=kr.String,ou=kr.TypeError,iu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=$r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ko(n),function(e){if("object"==typeof e||Jr(e))return e;throw ou("Can't set "+ru(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),au=kr.Array,uu=Math.max,su=$r("".replace),cu=$r("".split),lu=$r([].join),fu=String(Error("zxcasd").stack),pu=/\n\s*at [^:]*:[^\n]*/,du=pu.test(fu),hu=/@[^\n]*\n/.test(fu)&&!/zxcasd/.test(fu),vu=function(e,t){if("string"!=typeof e)return e;if(du)for(;t--;)e=su(e,pu,"");else if(hu)return lu(function(e,t,n){for(var r,o,i,a,u=Pi(e),s=_i(t,u),c=_i(u,u),l=au(uu(c-s,0)),f=0;s<c;s++,f++)r=l,o=f,i=e[s],void 0,(a=Mo(o))in r?Qo.f(r,a,Ir(0,i)):r[a]=i;return l.length=f,l}(cu(e,"\n"),t),"\n");return e},gu=function(e,t){Qr(t)&&"cause"in t&&ei(e,"cause",t.cause)},yu=$r($r.bind),mu=function(e,t){return yo(e),void 0===t?e:yu?yu(e,t):function(){return e.apply(t,arguments)}},bu={},wu=Lo("iterator"),xu=Array.prototype,Eu=Lo("iterator"),Su=function(e){if(null!=e)return mo(e,Eu)||mo(e,"@@iterator")||bu[aa(e)]},Cu=kr.TypeError,Du=function(e,t,n){var r,o;Ko(e);try{if(!(r=mo(e,"return"))){if("throw"===t)throw n;return n}r=Pr(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ko(r),n},Ou=kr.TypeError,Au=function(e,t){this.stopped=e,this.result=t},ku=Au.prototype,_u=function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),h=mu(t,l),v=function(e){return r&&Du(r,"normal",e),new Au(!0,e)},g=function(e){return f?(Ko(e),d?h(e[0],e[1],v):h(e[0],e[1])):d?h(e,v):h(e)};if(p)r=e;else{if(!(o=Su(e)))throw Ou(vo(e)+" is not iterable");if(function(e){return void 0!==e&&(bu.Array===e||xu[wu]===e)}(o)){for(i=0,a=Pi(e);a>i;i++)if((u=g(e[i]))&&no(ku,u))return u;return new Au(!1)}r=function(e,t){var n=arguments.length<2?Su(e):t;if(yo(n))return Ko(Pr(n,e));throw Cu(vo(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=Pr(s,r)).done;){try{u=g(c.value)}catch(e){Du(r,"throw",e)}if("object"==typeof u&&u&&no(ku,u))return u}return new Au(!1)},Tu=function(e,t){return void 0===e?arguments.length<2?"":t:sa(e)},Bu=!_r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ir(1,7)),7!==e.stack)})),Pu=Lo("toStringTag"),ju=kr.Error,Fu=[].push,Nu=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=no(Lu,this);iu?n=iu(new ju(void 0),o?nu(this):Lu):(n=o?this:Da(Lu),ei(n,Pu,"Error")),ei(n,"message",Tu(t,"")),Bu&&ei(n,"stack",vu(n.stack,1)),gu(n,r);var i=[];return _u(e,Fu,{that:i}),ei(n,"errors",i),n};iu?iu(Nu,ju):Ui(Nu,ju);var Lu=Nu.prototype=Da(ju.prototype,{constructor:Ir(1,Nu),message:Ir(1,""),name:Ir(1,"AggregateError")});Qi({global:!0},{AggregateError:Nu});var Iu=Lo("unscopables"),Ru=Array.prototype;null==Ru[Iu]&&Qo.f(Ru,Iu,{configurable:!0,value:Da(null)});var Mu,zu,Hu,$u=function(e){Ru[Iu][e]=!0},Vu=Lo("iterator"),Uu=!1;[].keys&&("next"in(Hu=[].keys())?(zu=nu(nu(Hu)))!==Object.prototype&&(Mu=zu):Uu=!0);var Zu=null==Mu||_r((function(){var e={};return Mu[Vu].call(e)!==e}));Zu&&(Mu={}),Jr(Mu[Vu])||Si(Mu,Vu,(function(){return this}));var Wu={IteratorPrototype:Mu,BUGGY_SAFARI_ITERATORS:Uu},Gu=Qo.f,qu=Lo("toStringTag"),Ku=function(e,t,n){e&&!Ao(e=n?e:e.prototype,qu)&&Gu(e,qu,{configurable:!0,value:t})},Yu=Wu.IteratorPrototype,Xu=function(){return this},Ju=Ei.PROPER,Qu=Ei.CONFIGURABLE,es=Wu.IteratorPrototype,ts=Wu.BUGGY_SAFARI_ITERATORS,ns=Lo("iterator"),rs=function(){return this},os=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Da(Yu,{next:Ir(1,n)}),Ku(e,o,!1),bu[o]=Xu}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!ts&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",p=!1,d=e.prototype,h=d[ns]||d["@@iterator"]||o&&d[o],v=!ts&&h||l(o),g="Array"==t&&d.entries||h;if(g&&(u=nu(g.call(new e)))!==Object.prototype&&u.next&&(nu(u)!==es&&(iu?iu(u,es):Jr(u[ns])||Si(u,ns,rs)),Ku(u,f,!0)),Ju&&"values"==o&&h&&"values"!==h.name&&(Qu?ei(d,"name","values"):(p=!0,v=function(){return Pr(h,this)})),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(ts||p||!(c in d))&&Si(d,c,s[c]);else Qi({target:t,proto:!0,forced:ts||p},s);return d[ns]!==v&&Si(d,ns,v,{name:o}),bu[t]=v,s},is=mi.set,as=mi.getterFor("Array Iterator"),us=os(Array,"Array",(function(e,t){is(this,{type:"Array Iterator",target:Xr(e),index:0,kind:t})}),(function(){var e=as(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");bu.Arguments=bu.Array,$u("keys"),$u("values"),$u("entries");var ss=Ga.charAt,cs=mi.set,ls=mi.getterFor("String Iterator");os(String,"String",(function(e){cs(this,{type:"String Iterator",string:sa(e),index:0})}),(function(){var e,t=ls(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ss(n,r),t.index+=e.length,{value:e,done:!1})}));var fs,ps={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ds=$o("span").classList,hs=ds&&ds.constructor&&ds.constructor.prototype,vs=hs===Object.prototype?void 0:hs,gs=Lo("iterator"),ys=Lo("toStringTag"),ms=us.values,bs=function(e,t){if(e){if(e[gs]!==ms)try{ei(e,gs,ms)}catch(t){e[gs]=ms}if(e[ys]||ei(e,ys,t),ps[t])for(var n in us)if(e[n]!==us[n])try{ei(e,n,us[n])}catch(t){e[n]=us[n]}}};for(var ws in ps)bs(kr[ws]&&kr[ws].prototype,ws);function xs(){"undefined"==typeof globalThis&&(window.globalThis=window)}function Es(){void 0===Or&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}bs(vs,"DOMTokenList"),void 0===i.g?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),xs(),Es()):i.g&&(null===(fs=i.g.navigator)||void 0===fs?void 0:fs.userAgent.match("QQBrowser"))&&(xs(),Es());var Ss=Array.isArray||function(e){return"Array"==j(e)},Cs=function(){},Ds=[],Os=V("Reflect","construct"),As=/^\s*(?:class|function)\b/,ks=w(As.exec),_s=!As.exec(Cs),Ts=function(e){if(!x(e))return!1;try{return Os(Cs,Ds,e),!0}catch(e){return!1}},Bs=!Os||E((function(){var e;return Ts(Ts.call)||!Ts(Object)||!Ts((function(){e=!0}))||e}))?function(e){if(!x(e))return!1;switch(sn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return _s||!!ks(As,Tn(e))}:Ts,Ps=Se("species"),js=l.Array,Fs=function(e,t){return new(function(e){var t;return Ss(e)&&(t=e.constructor,(Bs(t)&&(t===js||Ss(t.prototype))||z(t)&&null===(t=t[Ps]))&&(t=void 0)),void 0===t?js:t}(e))(0===t?0:t)},Ns=Se("species"),Ls=Se("isConcatSpreadable"),Is=l.TypeError,Rs=X>=51||!E((function(){var e=[];return e[Ls]=!1,e.concat()[0]!==e})),Ms=("concat",X>=51||!E((function(){var e=[];return(e.constructor={})[Ns]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),zs=function(e){if(!z(e))return!1;var t=e[Ls];return void 0!==t?!!t:Ss(e)};Qe({target:"Array",proto:!0,forced:!Rs||!Ms},{concat:function(e){var t,n,r,o,i,a=pe(this),u=Fs(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(zs(i=-1===t?a:arguments[t])){if(s+(o=yt(i))>9007199254740991)throw Is("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&zt(u,s,i[n])}else{if(s>=9007199254740991)throw Is("Maximum allowed index exceeded");zt(u,s++,i)}return u.length=s,u}});var Hs=At.f,$s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Vs={f:function(e){return $s&&"Window"==j(e)?function(e){try{return Hs(e)}catch(e){return Vt($s)}}(e):Hs(M(e))}},Us=w([].slice),Zs={f:Se},Ws=Ke.f,Gs=function(e){var t=H.Symbol||(H.Symbol={});he(t,e)||Ws(t,e,{value:Zs.f(e)})},qs=w([].push),Ks=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var p,d,h=pe(s),v=L(h),g=$e(c,l),y=yt(v),m=0,b=f||Fs,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(d=g(p=v[m],m,h),e))if(t)w[m]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:qs(w,p)}else switch(e){case 4:return!1;case 7:qs(w,p)}return i?-1:r||o?o:w}},Ys=[Ks(0),Ks(1),Ks(2),Ks(3),Ks(4),Ks(5),Ks(6),Ks(7)][0],Xs=tt("hidden"),Js=Se("toPrimitive"),Qs=Vn.set,ec=Vn.getterFor("Symbol"),tc=Object.prototype,nc=l.Symbol,rc=nc&&nc.prototype,oc=l.TypeError,ic=l.QObject,ac=V("JSON","stringify"),uc=je.f,sc=Ke.f,cc=Vs.f,lc=_.f,fc=w([].push),pc=le("symbols"),dc=le("op-symbols"),hc=le("string-to-symbol-registry"),vc=le("symbol-to-string-registry"),gc=le("wks"),yc=!ic||!ic.prototype||!ic.prototype.findChild,mc=S&&E((function(){return 7!=Mt(sc({},"a",{get:function(){return sc(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=uc(tc,t);r&&delete tc[t],sc(e,t,n),r&&e!==tc&&sc(tc,t,r)}:sc,bc=function(e,t){var n=pc[e]=Mt(rc);return Qs(n,{type:"Symbol",tag:e,description:t}),S||(n.description=t),n},wc=function(e,t,n){e===tc&&wc(dc,t,n),Ze(e);var r=Oe(t);return Ze(n),he(pc,r)?(n.enumerable?(he(e,Xs)&&e[Xs][r]&&(e[Xs][r]=!1),n=Mt(n,{enumerable:T(0,!1)})):(he(e,Xs)||sc(e,Xs,T(1,{})),e[Xs][r]=!0),mc(e,r,n)):sc(e,r,n)},xc=function(e,t){Ze(e);var n=M(t),r=Bt(n).concat(Dc(n));return Ys(r,(function(t){S&&!D(Ec,n,t)||wc(e,t,n[t])})),e},Ec=function(e){var t=Oe(e),n=D(lc,this,t);return!(this===tc&&he(pc,t)&&!he(dc,t))&&(!(n||!he(this,t)||!he(pc,t)||he(this,Xs)&&this[Xs][t])||n)},Sc=function(e,t){var n=M(e),r=Oe(t);if(n!==tc||!he(pc,r)||he(dc,r)){var o=uc(n,r);return!o||!he(pc,r)||he(n,Xs)&&n[Xs][r]||(o.enumerable=!0),o}},Cc=function(e){var t=cc(M(e)),n=[];return Ys(t,(function(e){he(pc,e)||he(wt,e)||fc(n,e)})),n},Dc=function(e){var t=e===tc,n=cc(t?dc:M(e)),r=[];return Ys(n,(function(e){!he(pc,e)||t&&!he(tc,e)||fc(r,pc[e])})),r};if(J||(rc=(nc=function(){if(U(rc,this))throw oc("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?mn(arguments[0]):void 0,t=me(e),n=function(e){this===tc&&D(n,dc,e),he(this,Xs)&&he(this[Xs],t)&&(this[Xs][t]=!1),mc(this,t,T(1,e))};return S&&yc&&mc(tc,t,{configurable:!0,set:n}),bc(t,e)}).prototype,qn(rc,"toString",(function(){return ec(this).tag})),qn(nc,"withoutSetter",(function(e){return bc(me(e),e)})),_.f=Ec,Ke.f=wc,je.f=Sc,At.f=Vs.f=Cc,kt.f=Dc,Zs.f=function(e){return bc(Se(e),e)},S&&sc(rc,"description",{configurable:!0,get:function(){return ec(this).description}})),Qe({global:!0,wrap:!0,forced:!J,sham:!J},{Symbol:nc}),Ys(Bt(gc),(function(e){Gs(e)})),Qe({target:"Symbol",stat:!0,forced:!J},{for:function(e){var t=mn(e);if(he(hc,t))return hc[t];var n=nc(t);return hc[t]=n,vc[n]=t,n},keyFor:function(e){if(!te(e))throw oc(e+" is not a symbol");if(he(vc,e))return vc[e]},useSetter:function(){yc=!0},useSimple:function(){yc=!1}}),Qe({target:"Object",stat:!0,forced:!J,sham:!S},{create:function(e,t){return void 0===t?Mt(e):xc(Mt(e),t)},defineProperty:wc,defineProperties:xc,getOwnPropertyDescriptor:Sc}),Qe({target:"Object",stat:!0,forced:!J},{getOwnPropertyNames:Cc,getOwnPropertySymbols:Dc}),Qe({target:"Object",stat:!0,forced:E((function(){kt.f(1)}))},{getOwnPropertySymbols:function(e){return kt.f(pe(e))}}),ac){var Oc=!J||E((function(){var e=nc();return"[null]"!=ac([e])||"{}"!=ac({a:e})||"{}"!=ac(Object(e))}));Qe({target:"JSON",stat:!0,forced:Oc},{stringify:function(e,t,n){var r=Us(arguments),o=t;if((z(t)||void 0!==e)&&!te(e))return Ss(t)||(t=function(e,t){if(x(o)&&(t=D(o,this,e,t)),!te(t))return t}),r[1]=t,v(ac,null,r)}})}if(!rc[Js]){var Ac=rc.valueOf;qn(rc,Js,(function(e){return D(Ac,this)}))}nr(nc,"Symbol"),wt[Xs]=!0,Gs("asyncIterator"),Gs("hasInstance"),Gs("isConcatSpreadable"),Gs("iterator"),Gs("match"),Gs("matchAll"),Gs("replace"),Gs("search"),Gs("species"),Gs("split"),Gs("toPrimitive"),Gs("toStringTag"),Gs("unscopables"),nr(l.JSON,"JSON",!0);var kc=H.Symbol;Gs("asyncDispose"),Gs("dispose"),Gs("matcher"),Gs("metadata"),Gs("observable"),Gs("patternMatch"),Gs("replaceAll");var _c=kc,Tc=Zs.f("iterator"),Bc=o((function(e){function t(n){return"function"==typeof _c&&"symbol"==typeof Tc?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof _c&&e.constructor===_c&&e!==_c.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Pc=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Bc),jc=Wo.f,Fc=_r((function(){jc(1)}));if(Qi({target:"Object",stat:!0,forced:!Tr||Fc,sham:!Tr},{getOwnPropertyDescriptor:function(e,t){return jc(Xr(e),t)}}),"object"===(void 0===i.g?"undefined":Pc(i.g))){var Nc=Object.getOwnPropertyDescriptor(i.g,"window");i.g.window&&!Nc.set||(i.g.window=i.g,i.g.requestAnimationFrame=function(){},i.g.navigator={userAgent:""},i.g.location={hostname:"0.0.0.0",port:0,protocol:"http:"},i.g.btoa=function(){},i.g.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=i.g.document&&null==i.g.document.getElementsByTagName&&(i.g.document.getElementsByTagName=function(){return[]})}
|
|
43
|
+
/*!
|
|
44
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
47
|
+
* Released under the MIT License.
|
|
48
|
+
*/function Lc(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ic(e){var t,n;return!1!==Lc(e)&&(void 0===(t=e.constructor)||!1!==Lc(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Rc(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Mc(e){return!!e&&!!e[Sl]}function zc(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Cl}(e)||Array.isArray(e)||!!e[El]||!!e.constructor[El]||Zc(e)||Wc(e))}function Hc(e,t,n){void 0===n&&(n=!1),0===$c(e)?(n?Object.keys:Dl)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function $c(e){var t=e[Sl];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Zc(e)?2:Wc(e)?3:0}function Vc(e,t){return 2===$c(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Uc(e,t,n){var r=$c(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Zc(e){return ml&&e instanceof Map}function Wc(e){return bl&&e instanceof Set}function Gc(e){return e.o||e.t}function qc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Ol(e);delete t[Sl];for(var n=Dl(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Kc(e,t){return void 0===t&&(t=!1),Xc(e)||Mc(e)||!zc(e)||($c(e)>1&&(e.set=e.add=e.clear=e.delete=Yc),Object.freeze(e),t&&Hc(e,(function(e,t){return Kc(t,!0)}),!0)),e}function Yc(){Rc(2)}function Xc(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Jc(e){var t=Al[e];return t||Rc(18,e),t}function Qc(){return gl}function el(e,t){t&&(Jc("Patches"),e.u=[],e.s=[],e.v=t)}function tl(e){nl(e),e.p.forEach(ol),e.p=null}function nl(e){e===gl&&(gl=e.l)}function rl(e){return gl={p:[],l:gl,h:e,m:!0,_:0}}function ol(e){var t=e[Sl];0===t.i||1===t.i?t.j():t.O=!0}function il(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Jc("ES5").S(t,e,r),r?(n[Sl].P&&(tl(t),Rc(4)),zc(e)&&(e=al(t,e),t.l||sl(t,e)),t.u&&Jc("Patches").M(n[Sl],e,t.u,t.s)):e=al(t,n,[]),tl(t),t.u&&t.v(t.u,t.s),e!==xl?e:void 0}function al(e,t,n){if(Xc(t))return t;var r=t[Sl];if(!r)return Hc(t,(function(o,i){return ul(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return sl(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=qc(r.k):r.o;Hc(3===r.i?new Set(o):o,(function(t,i){return ul(e,r,o,t,i,n)})),sl(e,o,!1),n&&e.u&&Jc("Patches").R(r,n,e.u,e.s)}return r.o}function ul(e,t,n,r,o,i){if(Mc(o)){var a=al(e,o,i&&t&&3!==t.i&&!Vc(t.D,r)?i.concat(r):void 0);if(Uc(n,r,a),!Mc(a))return;e.m=!1}if(zc(o)&&!Xc(o)){if(!e.h.F&&e._<1)return;al(e,o),t&&t.A.l||sl(e,o)}}function sl(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Kc(t,n)}function cl(e,t){var n=e[Sl];return(n?Gc(n):e)[t]}function ll(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function fl(e){e.P||(e.P=!0,e.l&&fl(e.l))}function pl(e){e.o||(e.o=qc(e.t))}function dl(e,t,n){var r=Zc(t)?Jc("MapSet").N(t,n):Wc(t)?Jc("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Qc(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=kl;n&&(o=[r],i=_l);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):Jc("ES5").J(t,n);return(n?n.A:Qc()).p.push(r),r}function hl(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return qc(e)}var vl,gl,yl="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ml="undefined"!=typeof Map,bl="undefined"!=typeof Set,wl="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,xl=yl?Symbol.for("immer-nothing"):((vl={})["immer-nothing"]=!0,vl),El=yl?Symbol.for("immer-draftable"):"__$immer_draftable",Sl=yl?Symbol.for("immer-state"):"__$immer_state",Cl=""+Object.prototype.constructor,Dl="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Ol=Object.getOwnPropertyDescriptors||function(e){var t={};return Dl(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Al={},kl={get:function(e,t){if(t===Sl)return e;var n=Gc(e);if(!Vc(n,t))return function(e,t,n){var r,o=ll(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!zc(r)?r:r===cl(e.t,t)?(pl(e),e.o[t]=dl(e.A.h,r,e)):r},has:function(e,t){return t in Gc(e)},ownKeys:function(e){return Reflect.ownKeys(Gc(e))},set:function(e,t,n){var r=ll(Gc(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=cl(Gc(e),t),i=null==o?void 0:o[Sl];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||Vc(e.t,t)))return!0;pl(e),fl(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==cl(e.t,t)||t in e.t?(e.D[t]=!1,pl(e),fl(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Gc(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Rc(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Rc(12)}},_l={};Hc(kl,(function(e,t){_l[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),_l.deleteProperty=function(e,t){return kl.deleteProperty.call(this,e[0],t)},_l.set=function(e,t,n){return kl.set.call(this,e[0],t,n,e[0])};var Tl=function(){function e(e){var t=this;this.g=wl,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&Rc(6),void 0!==r&&"function"!=typeof r&&Rc(7),zc(e)){var u=rl(t),s=dl(t,e,void 0),c=!0;try{a=n(s),c=!1}finally{c?tl(u):nl(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return el(u,r),il(e,u)}),(function(e){throw tl(u),e})):(el(u,r),il(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===xl)return;return void 0===a&&(a=e),t.F&&Kc(a,!0),a}Rc(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){zc(e)||Rc(8),Mc(e)&&(e=function(e){return Mc(e)||Rc(22,e),function e(t){if(!zc(t))return t;var n,r=t[Sl],o=$c(t);if(r){if(!r.P&&(r.i<4||!Jc("ES5").K(r)))return r.t;r.I=!0,n=hl(t,o),r.I=!1}else n=hl(t,o);return Hc(n,(function(t,o){r&&function(e,t){return 2===$c(e)?e.get(t):e[t]}(r.t,t)===o||Uc(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=rl(this),n=dl(this,e,void 0);return n[Sl].C=!0,nl(t),n},t.finishDraft=function(e,t){var n=(e&&e[Sl]).A;return el(n,t),il(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!wl&&Rc(20),this.g=e},t.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}}n>-1&&(t=t.slice(n+1));var o=Jc("Patches").$;return Mc(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Bl=new Tl,Pl=Bl.produce;Bl.produceWithPatches.bind(Bl),Bl.setAutoFreeze.bind(Bl),Bl.setUseProxies.bind(Bl),Bl.applyPatches.bind(Bl);var jl=Bl.createDraft.bind(Bl),Fl=Bl.finishDraft.bind(Bl);function Nl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ll=new WeakMap,Il=new WeakMap,Rl=new WeakMap,Ml=new WeakMap,zl=new WeakMap,Hl=new WeakMap;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 Vl(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){Nl(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}var Ul=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Lf.levels(t);case"insert_node":var{node:n,path:r}=e,o=Lf.levels(r),i=Xf.isText(n)?[]:Array.from(Pf.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...o,...i];case"merge_node":var{path:a}=e;return[...Lf.ancestors(a),Lf.previous(a)];case"move_node":var{path:u,newPath:s}=e;if(Lf.equals(u,s))return[];var c=[],l=[];for(var f of Lf.ancestors(u)){var p=Lf.transform(f,e);c.push(p)}for(var d of Lf.ancestors(s)){var h=Lf.transform(d,e);l.push(h)}var v=l[l.length-1],g=s[s.length-1],y=v.concat(g);return[...c,...l,y];case"remove_node":var{path:m}=e;return[...Lf.ancestors(m)];case"split_node":var{path:b}=e;return[...Lf.levels(b),Lf.next(b)];default:return[]}};function Zl(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Wl,Gl=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?Ql(e):e,o=Wl.None,i=Wl.None,a=0,u=null;for(var s of r){var c=s.codePointAt(0);if(!c)break;var l=pf(s,c);if([o,i]=n?[i,l]:[l,o],df(o,Wl.ZWJ)&&df(i,Wl.ExtPict)&&!yf(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(df(o,Wl.RI)&&df(i,Wl.RI)&&!(u=null!==u?!u:!!n||bf(e.substring(0,e.length-a))))break;if(o!==Wl.None&&i!==Wl.None&&vf(o,i))break;a+=s.length}return a||1},ql=/\s/,Kl=/[\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]/,Yl=/['\u2018\u2019]/,Xl=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},Jl=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(ql.test(t))return!1;if(Yl.test(t)){var o=Gl(n,r),[i,a]=Xl(n,o,r);if(e(i,a,r))return!0}return!Kl.test(t)},Ql=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(tf(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(ef(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},ef=e=>e>=55296&&e<=56319,tf=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Wl||(Wl={}));var nf=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,rf=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,of=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,af=/^[\u1100-\u115F\uA960-\uA97C]$/,uf=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,sf=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,cf=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,lf=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,ff=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,pf=(e,t)=>{var n=Wl.Any;return-1!==e.search(nf)&&(n|=Wl.Extend),8205===t&&(n|=Wl.ZWJ),t>=127462&&t<=127487&&(n|=Wl.RI),-1!==e.search(rf)&&(n|=Wl.Prepend),-1!==e.search(of)&&(n|=Wl.SpacingMark),-1!==e.search(af)&&(n|=Wl.L),-1!==e.search(uf)&&(n|=Wl.V),-1!==e.search(sf)&&(n|=Wl.T),-1!==e.search(cf)&&(n|=Wl.LV),-1!==e.search(lf)&&(n|=Wl.LVT),-1!==e.search(ff)&&(n|=Wl.ExtPict),n};function df(e,t){return 0!=(e&t)}var hf=[[Wl.L,Wl.L|Wl.V|Wl.LV|Wl.LVT],[Wl.LV|Wl.V,Wl.V|Wl.T],[Wl.LVT|Wl.T,Wl.T],[Wl.Any,Wl.Extend|Wl.ZWJ],[Wl.Any,Wl.SpacingMark],[Wl.Prepend,Wl.Any],[Wl.ZWJ,Wl.ExtPict],[Wl.RI,Wl.RI]];function vf(e,t){return-1===hf.findIndex((n=>df(e,n[0])&&df(t,n[1])))}var gf=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,yf=e=>-1!==e.search(gf),mf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,bf=e=>{var t=e.match(mf);return null!==t&&t[0].length/2%2==1},wf=e=>Ic(e)&&Pf.isNodeList(e.children)&&!Af.isEditor(e),xf={isAncestor:e=>Ic(e)&&Pf.isNodeList(e.children),isElement:wf,isElementList:e=>Array.isArray(e)&&e.every((e=>xf.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return wf(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Ef=["text"],Sf=["text"];function Cf(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 Df(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cf(Object(n),!0).forEach((function(t){Nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Of=new WeakMap,Af={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=Af.path(e,o),u="lowest"===r;for(var[s,c]of Af.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!Xf.isText(s)&&!Lf.equals(a,c))return[s,c]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Af.point(e,t,{edge:"end"}),focus:Af.end(e,[])},{distance:i=1}=r,a=0;for(var u of Af.positions(e,Df(Df({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Af.start(e,[]),focus:Af.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of Af.positions(e,Df(Df({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Af.start(e,t),Af.end(e,t)],end:(e,t)=>Af.point(e,t,{edge:"end"}),first(e,t){var n=Af.path(e,t,{edge:"start"});return Af.node(e,n)},fragment(e,t){var n=Af.range(e,t);return Pf.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>Af.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>Xf.isText(t)||Af.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>Xf.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>xf.isElement(t)&&!e.isInline(t),isEditor(e){if(!Ic(e))return!1;var t=Of.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||Ic(e.marks))&&(null===e.selection||Uf.isRange(e.selection))&&Pf.isNodeList(e.children)&&Nf.isOperationList(e.operations);return Of.set(e,n),n},isEnd(e,t,n){var r=Af.end(e,n);return zf.equals(t,r)},isEdge:(e,t,n)=>Af.isStart(e,t,n)||Af.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Xf.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>xf.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Rl.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Af.start(e,n);return zf.equals(t,r)},isVoid:(e,t)=>xf.isElement(t)&&e.isVoid(t),last(e,t){var n=Af.path(e,t,{edge:"end"});return Af.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Af.path(e,t,n);return[Pf.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=Af.path(e,n);for(var[s,c]of Pf.levels(e,u))if(i(s,c)&&(a.push([s,c]),!o&&Af.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(Uf.isExpanded(n)){var[r]=Af.nodes(e,{match:Xf.isText});if(r){var[o]=r;return Zl(o,Ef)}return{}}var{anchor:i}=n,{path:a}=i,[u]=Af.leaf(e,a);if(0===i.offset){var s=Af.previous(e,{at:a,match:Xf.isText}),c=Af.above(e,{match:t=>Af.isBlock(e,t)});if(s&&c){var[l,f]=s,[,p]=c;Lf.isAncestor(p,f)&&(u=l)}}return Zl(u,Sf)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Af.after(e,i,{voids:r});if(a){var[,u]=Af.last(e,[]),s=[a.path,u];if(Lf.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Lf.isPath(i)){var[c]=Af.parent(e,i);o=e=>c.children.includes(e)}else o=()=>!0;var[l]=Af.nodes(e,{at:s,match:o,mode:n,voids:r});return l}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Af.path(e,t,n);return[Pf.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,c;if(kf.isSpan(n))s=n[0],c=n[1];else{var l=Af.path(e,n,{edge:"start"}),f=Af.path(e,n,{edge:"end"});s=i?f:l,c=i?l:f}var p,d=Pf.nodes(e,{reverse:i,from:s,to:c,pass:t=>{var[n]=t;return!a&&Af.isVoid(e,n)}}),h=[];for(var[v,g]of d){var y=p&&0===Lf.compare(g,p[1]);if("highest"!==r||!y)if(u(v,g))if("lowest"===r&&y)p=[v,g];else{var m="lowest"===r?p:[v,g];m&&(o?h.push(m):yield m),p=[v,g]}else if(o&&!y&&Xf.isText(v))return}"lowest"===r&&p&&(o?h.push(p):yield p),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>Ll.get(e)||[];if(Af.isNormalizing(e)){if(n){var o=Array.from(Pf.nodes(e),(e=>{var[,t]=e;return t}));Ll.set(e,o)}0!==r(e).length&&Af.withoutNormalizing(e,(()=>{for(var t of r(e))if(Pf.has(e,t)){var n=Af.node(e,t),[o,i]=n;xf.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=r(e).pop();if(Pf.has(e,s)){var c=Af.node(e,s);e.normalizeNode(c)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Af.path(e,t,n),o=Lf.parent(r);return Af.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Lf.isPath(t))if("start"===o){var[,i]=Pf.first(e,t);t=i}else if("end"===o){var[,a]=Pf.last(e,t);t=a}return Uf.isRange(t)&&(t="start"===o?Uf.start(t):"end"===o?Uf.end(t):Lf.common(t.anchor.path,t.focus.path)),zf.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Pf.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Af.pathRefs(e).delete(o),o.current=null,t}};return Af.pathRefs(e).add(o),o},pathRefs(e){var t=Ml.get(e);return t||(t=new Set,Ml.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Lf.isPath(t)){var o;if("end"===r){var[,i]=Pf.last(e,t);o=i}else{var[,a]=Pf.first(e,t);o=a}var u=Pf.get(e,o);if(!Xf.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if(Uf.isRange(t)){var[s,c]=Uf.edges(t);return"start"===r?s:c}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Af.pointRefs(e).delete(o),o.current=null,t}};return Af.pointRefs(e).add(o),o},pointRefs(e){var t=zl.get(e);return t||(t=new Set,zl.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=Af.range(e,n),[u,s]=Uf.edges(a),c=o?s:u,l=!1,f="",p=0,d=0,h=0;for(var[v,g]of Af.nodes(e,{at:n,reverse:o,voids:i})){if(xf.isElement(v)){if(!i&&e.isVoid(v)){yield Af.start(e,g);continue}if(e.isInline(v))continue;if(Af.hasInlines(e,v)){var y=Lf.isAncestor(g,s.path)?s:Af.end(e,g),m=Lf.isAncestor(g,u.path)?u:Af.start(e,g);f=Af.string(e,{anchor:m,focus:y},{voids:i}),l=!0}}if(Xf.isText(v)){var b=Lf.equals(g,c.path);for(b?(d=o?c.offset:v.text.length-c.offset,h=c.offset):(d=v.text.length,h=o?d:0),(b||l||"offset"===r)&&(yield{path:g,offset:h},l=!1);;){if(0===p){if(""===f)break;p=w(f,r,o),f=Xl(f,p,o)[1]}if(h=o?h-p:h+p,(d-=p)<0){p=-d;break}p=0,yield{path:g,offset:h}}}}}function w(e,t,n){return"character"===t?Gl(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=Gl(e,t),[i,a]=Xl(e,o,t);if(Jl(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Af.before(e,i,{voids:r});if(a){var[,u]=Af.first(e,[]),s=[a.path,u];if(Lf.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Lf.isPath(i)){var[c]=Af.parent(e,i);o=e=>c.children.includes(e)}else o=()=>!0;var[l]=Af.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return l}}},range:(e,t,n)=>Uf.isRange(t)&&!n?t:{anchor:Af.start(e,t),focus:Af.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Af.rangeRefs(e).delete(o),o.current=null,t}};return Af.rangeRefs(e).add(o),o},rangeRefs(e){var t=Hl.get(e);return t||(t=new Set,Hl.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Rl.set(e,t)},start:(e,t)=>Af.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=Af.range(e,t),[i,a]=Uf.edges(o),u="";for(var[s,c]of Af.nodes(e,{at:o,match:Xf.isText,voids:r})){var l=s.text;Lf.equals(c,a.path)&&(l=l.slice(0,a.offset)),Lf.equals(c,i.path)&&(l=l.slice(i.offset)),u+=l}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=Uf.edges(t);if(0!==o.offset||0!==i.offset||Uf.isCollapsed(t))return t;var a=Af.above(e,{at:i,match:t=>Af.isBlock(e,t)}),u=a?a[1]:[],s={anchor:Af.start(e,[]),focus:i},c=!0;for(var[l,f]of Af.nodes(e,{at:s,match:Xf.isText,reverse:!0,voids:r}))if(c)c=!1;else if(""!==l.text||Lf.isBefore(f,u)){i={path:f,offset:l.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Af.above(e,Df(Df({},t),{},{match:t=>Af.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Af.isNormalizing(e);Af.setNormalizing(e,!1);try{t()}finally{Af.setNormalizing(e,n)}Af.normalize(e)}},kf={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Lf.isPath)},_f=["children"],Tf=["text"],Bf=new WeakMap,Pf={ancestor(e,t){var n=Pf.get(e,t);if(Xf.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Lf.ancestors(t,n)){var o=[Pf.ancestor(e,r),r];yield o}},child(e,t){if(Xf.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=Pf.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Pf.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=Lf.common(t,n);return[Pf.get(e,r),r]},descendant(e,t){var n=Pf.get(e,t);if(Af.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Pf.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Pf.nodes(e,t))xf.isElement(n)&&(yield[n,r])},extractProps:e=>xf.isAncestor(e)?Zl(e,_f):Zl(e,Tf),first(e,t){for(var n=t.slice(),r=Pf.get(e,n);r&&!Xf.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Xf.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Pl({children:e.children},(e=>{var[n,r]=Uf.edges(t),o=Pf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Uf.includes(t,n)}});for(var[,i]of o){if(!Uf.includes(t,i)){var a=Pf.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(Lf.equals(i,r.path)){var s=Pf.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(Lf.equals(i,n.path)){var c=Pf.leaf(e,i);c.text=c.text.slice(n.offset)}}Af.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Xf.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Xf.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Xf.isText(e)||xf.isElement(e)||Af.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Bf.get(e);if(void 0!==t)return t;var n=e.every((e=>Pf.isNode(e)));return Bf.set(e,n),n},last(e,t){for(var n=t.slice(),r=Pf.get(e,n);r&&!Xf.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Pf.get(e,t);if(!Xf.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Lf.levels(t,n)){var o=Pf.get(e,r);yield[o,r]}},matches:(e,t)=>xf.isElement(e)&&xf.isElementProps(t)&&xf.matches(e,t)||Xf.isText(e)&&Xf.isTextProps(t)&&Xf.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?Lf.isBefore(u,i):Lf.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||Xf.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var c=Lf.next(u);if(Pf.has(e,c)){u=c,s=Pf.get(e,u);continue}}r&&0!==u[u.length-1]?(u=Lf.previous(u),s=Pf.get(e,u)):(u=Lf.parent(u),s=Pf.get(e,u),a.add(s))}else{a.add(s);var l=r?s.children.length-1:0;Lf.isAncestor(u,o)&&(l=o[u.length]),u=u.concat(l),s=Pf.get(e,u)}},parent(e,t){var n=Lf.parent(t),r=Pf.get(e,n);if(Xf.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>Xf.isText(e)?e.text:e.children.map(Pf.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Pf.nodes(e,t))Xf.isText(n)&&(yield[n,r])}};function jf(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 Ff(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jf(Object(n),!0).forEach((function(t){Nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nf={isNodeOperation:e=>Nf.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Ic(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Lf.isPath(e.path)&&Pf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Lf.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Lf.isPath(e.path)&&Ic(e.properties);case"move_node":return Lf.isPath(e.path)&&Lf.isPath(e.newPath);case"set_node":return Lf.isPath(e.path)&&Ic(e.properties)&&Ic(e.newProperties);case"set_selection":return null===e.properties&&Uf.isRange(e.newProperties)||null===e.newProperties&&Uf.isRange(e.properties)||Ic(e.properties)&&Ic(e.newProperties);case"split_node":return Lf.isPath(e.path)&&"number"==typeof e.position&&Ic(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Nf.isOperation(e))),isSelectionOperation:e=>Nf.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Nf.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Ff(Ff({},e),{},{type:"remove_node"});case"insert_text":return Ff(Ff({},e),{},{type:"remove_text"});case"merge_node":return Ff(Ff({},e),{},{type:"split_node",path:Lf.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Lf.equals(t,n))return e;if(Lf.isSibling(n,t))return Ff(Ff({},e),{},{path:t,newPath:n});var r=Lf.transform(n,e),o=Lf.transform(Lf.next(n),e);return Ff(Ff({},e),{},{path:r,newPath:o});case"remove_node":return Ff(Ff({},e),{},{type:"insert_node"});case"remove_text":return Ff(Ff({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Ff(Ff({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return Ff(Ff({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Ff(Ff({},e),{},{type:"merge_node",path:Lf.next(e.path)})}}},Lf={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Lf.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Lf.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Lf.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Lf.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Lf.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Lf.compare(e,t),isBefore:(e,t)=>-1===Lf.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Lf.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Lf.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Lf.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Lf.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Lf.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Lf.isAncestor(t,e)&&!Lf.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Pl(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(Lf.equals(i,r)||Lf.endsBefore(i,r)||Lf.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Lf.equals(a,r)||Lf.isAncestor(a,r))return null;Lf.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;Lf.equals(u,r)||Lf.endsBefore(u,r)?r[u.length-1]-=1:Lf.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:c,position:l}=t;if(Lf.equals(c,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Lf.endsBefore(c,r)?r[c.length-1]+=1:Lf.isAncestor(c,r)&&e[c.length]>=l&&(r[c.length-1]+=1,r[c.length]-=l);break;case"move_node":var{path:f,newPath:p}=t;if(Lf.equals(f,p))return;if(Lf.isAncestor(f,r)||Lf.equals(f,r)){var d=p.slice();return Lf.endsBefore(f,p)&&f.length<p.length&&(d[f.length-1]-=1),d.concat(r.slice(f.length))}Lf.isSibling(f,p)&&(Lf.isAncestor(p,r)||Lf.equals(p,r))?Lf.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Lf.endsBefore(p,r)||Lf.equals(p,r)||Lf.isAncestor(p,r)?(Lf.endsBefore(f,r)&&(r[f.length-1]-=1),r[p.length-1]+=1):Lf.endsBefore(f,r)&&(Lf.equals(p,r)&&(r[p.length-1]+=1),r[f.length-1]-=1)}}}))}},If={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Lf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Rf(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 Mf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rf(Object(n),!0).forEach((function(t){Nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zf={compare(e,t){var n=Lf.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===zf.compare(e,t),isBefore:(e,t)=>-1===zf.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Lf.equals(e.path,t.path),isPoint:e=>Ic(e)&&"number"==typeof e.offset&&Lf.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Pl(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=Lf.transform(o,t,n);break;case"insert_text":Lf.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Lf.equals(t.path,o)&&(e.offset+=t.position),e.path=Lf.transform(o,t,n);break;case"remove_text":Lf.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Lf.equals(t.path,o)||Lf.isAncestor(t.path,o))return null;e.path=Lf.transform(o,t,n);break;case"split_node":if(Lf.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=Lf.transform(o,t,Mf(Mf({},n),{},{affinity:"forward"})))}else e.path=Lf.transform(o,t,n)}}))}},Hf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=zf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},$f=["anchor","focus"];function Vf(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}var Uf={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Uf.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Uf.edges(e);return t},equals:(e,t)=>zf.equals(e.anchor,t.anchor)&&zf.equals(e.focus,t.focus),includes(e,t){if(Uf.isRange(t)){if(Uf.includes(e,t.anchor)||Uf.includes(e,t.focus))return!0;var[n,r]=Uf.edges(e),[o,i]=Uf.edges(t);return zf.isBefore(n,o)&&zf.isAfter(r,i)}var[a,u]=Uf.edges(e),s=!1,c=!1;return zf.isPoint(t)?(s=zf.compare(t,a)>=0,c=zf.compare(t,u)<=0):(s=Lf.compare(t,a.path)>=0,c=Lf.compare(t,u.path)<=0),s&&c},intersection(e,t){var n=Zl(e,$f),[r,o]=Uf.edges(e),[i,a]=Uf.edges(t),u=zf.isBefore(r,i)?i:r,s=zf.isBefore(o,a)?o:a;return zf.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vf(Object(n),!0).forEach((function(t){Nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return zf.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return zf.equals(t,n)},isExpanded:e=>!Uf.isCollapsed(e),isForward:e=>!Uf.isBackward(e),isRange:e=>Ic(e)&&zf.isPoint(e.anchor)&&zf.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Uf.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Pl(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=Uf.isCollapsed(e);Uf.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?Uf.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=zf.transform(e.anchor,t,{affinity:r}),s=zf.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},Zf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Uf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Wf=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Ic(r)&&Ic(o)){if(!Wf(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Gf=["text"],qf=["anchor","focus"];function Kf(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 Yf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kf(Object(n),!0).forEach((function(t){Nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xf={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return Zl(e,Gf)}return Wf(r?o(e):e,r?o(t):t)},isText:e=>Ic(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>Xf.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Yf({},e)];for(var r of t){var o=Zl(r,qf),[i,a]=Uf.edges(r),u=[],s=0;for(var c of n){var{length:l}=c.text,f=s;if(s+=l,i.offset<=f&&a.offset>=s)Object.assign(c,o),u.push(c);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&0!==f)u.push(c);else{var p=c,d=void 0,h=void 0;if(a.offset<s){var v=a.offset-f;h=Yf(Yf({},p),{},{text:p.text.slice(v)}),p=Yf(Yf({},p),{},{text:p.text.slice(0,v)})}if(i.offset>f){var g=i.offset-f;d=Yf(Yf({},p),{},{text:p.text.slice(0,g)}),p=Yf(Yf({},p),{},{text:p.text.slice(g)})}Object.assign(p,o),d&&u.push(d),u.push(p),h&&u.push(h)}}n=u}return n}};function Jf(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 Qf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jf(Object(n),!0).forEach((function(t){Nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ep={transform(e,t){e.children=jl(e.children);var n=e.selection&&jl(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Pf.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of Uf.points(t))t[s]=zf.transform(u,n);break;case"insert_text":var{path:c,offset:l,text:f}=n;if(0===f.length)break;var p=Pf.leaf(e,c),d=p.text.slice(0,l),h=p.text.slice(l);if(p.text=d+f+h,t)for(var[v,g]of Uf.points(t))t[g]=zf.transform(v,n);break;case"merge_node":var{path:y}=n,m=Pf.get(e,y),b=Lf.previous(y),w=Pf.get(e,b),x=Pf.parent(e,y),E=y[y.length-1];if(Xf.isText(m)&&Xf.isText(w))w.text+=m.text;else{if(Xf.isText(m)||Xf.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(w));w.children.push(...m.children)}if(x.children.splice(E,1),t)for(var[S,C]of Uf.points(t))t[C]=zf.transform(S,n);break;case"move_node":var{path:D,newPath:O}=n;if(Lf.isAncestor(D,O))throw new Error("Cannot move a path [".concat(D,"] to new path [").concat(O,"] because the destination is inside itself."));var A=Pf.get(e,D),k=Pf.parent(e,D),_=D[D.length-1];k.children.splice(_,1);var T=Lf.transform(D,n),B=Pf.get(e,Lf.parent(T)),P=T[T.length-1];if(B.children.splice(P,0,A),t)for(var[j,F]of Uf.points(t))t[F]=zf.transform(j,n);break;case"remove_node":var{path:N}=n,L=N[N.length-1];if(Pf.parent(e,N).children.splice(L,1),t)for(var[I,R]of Uf.points(t)){var M=zf.transform(I,n);if(null!=t&&null!=M)t[R]=M;else{var z=void 0,H=void 0;for(var[$,V]of Pf.texts(e)){if(-1!==Lf.compare(V,N)){H=[$,V];break}z=[$,V]}var U=!1;z&&H&&(U=Lf.equals(H[1],N)?!Lf.hasPrevious(H[1]):Lf.common(z[1],N).length<Lf.common(H[1],N).length),z&&!U?(I.path=z[1],I.offset=z[0].text.length):H?(I.path=H[1],I.offset=0):t=null}}break;case"remove_text":var{path:Z,offset:W,text:G}=n;if(0===G.length)break;var q=Pf.leaf(e,Z),K=q.text.slice(0,W),Y=q.text.slice(W+G.length);if(q.text=K+Y,t)for(var[X,J]of Uf.points(t))t[J]=zf.transform(X,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=Pf.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!Uf.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=Qf({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:ce,position:le,properties:fe}=n;if(0===ce.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ce,"] because the root node cannot be split."));var pe,de=Pf.get(e,ce),he=Pf.parent(e,ce),ve=ce[ce.length-1];if(Xf.isText(de)){var ge=de.text.slice(0,le),ye=de.text.slice(le);de.text=ge,pe=Qf(Qf({},fe),{},{text:ye})}else{var me=de.children.slice(0,le),be=de.children.slice(le);de.children=me,pe=Qf(Qf({},fe),{},{children:be})}if(he.children.splice(ve+1,0,pe),t)for(var[we,xe]of Uf.points(t))t[xe]=zf.transform(we,n)}return t})(e,n,t)}finally{e.children=Fl(e.children),e.selection=n?Mc(n)?Fl(n):n:null}}},tp=["text"],np=["children"];function rp(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 op(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rp(Object(n),!0).forEach((function(t){Nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ip={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Af.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Pf.isNode(t)&&(t=[t]),0!==t.length){var[c]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Af.end(e,[]):[0],s=!0),null==s&&(s=!1),Uf.isRange(a))if(r||(a=Af.unhangRange(e,a)),Uf.isCollapsed(a))a=a.anchor;else{var[,l]=Uf.edges(a),f=Af.pointRef(e,l);vp.delete(e,{at:a}),a=f.unref()}if(zf.isPoint(a)){null==u&&(u=Xf.isText(c)?e=>Xf.isText(e):e.isInline(c)?t=>Xf.isText(t)||Af.isInline(e,t):t=>Af.isBlock(e,t));var[p]=Af.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!p)return;var[,d]=p,h=Af.pathRef(e,d),v=Af.isEnd(e,a,d);vp.splitNodes(e,{at:a,match:u,mode:i,voids:o});var g=h.unref();a=v?Lf.next(g):g}var y=Lf.parent(a),m=a[a.length-1];if(o||!Af.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b}),a=Lf.next(a)}if(a=Lf.previous(a),s){var x=Af.end(e,a);x&&vp.select(e,x)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Af.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Lf.isPath(n)?sp(e,n):t=>Af.isBlock(e,t)),n){var a=Af.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return Af.pathRef(e,n)}));for(var s of u){var c=s.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var l=Af.node(e,Lf.parent(c)),[f,p]=l,d=c[c.length-1],{length:h}=f.children;if(1===h){var v=Lf.next(p);vp.moveNodes(e,{at:c,to:v,voids:o}),vp.removeNodes(e,{at:p,voids:o})}else if(0===d)vp.moveNodes(e,{at:c,to:p,voids:o});else if(d===h-1){var g=Lf.next(p);vp.moveNodes(e,{at:c,to:g,voids:o})}else{var y=Lf.next(c),m=Lf.next(p);vp.splitNodes(e,{at:y,voids:o}),vp.moveNodes(e,{at:c,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Af.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(Lf.isPath(r)){var[u]=Af.parent(e,r);n=e=>u.children.includes(e)}else n=t=>Af.isBlock(e,t);if(!o&&Uf.isRange(r)&&(r=Af.unhangRange(e,r)),Uf.isRange(r))if(Uf.isCollapsed(r))r=r.anchor;else{var[,s]=Uf.edges(r),c=Af.pointRef(e,s);vp.delete(e,{at:r}),r=c.unref(),null==t.at&&vp.select(e,r)}var[l]=Af.nodes(e,{at:r,match:n,voids:i,mode:a}),f=Af.previous(e,{at:r,match:n,voids:i,mode:a});if(l&&f){var[p,d]=l,[h,v]=f;if(0!==d.length&&0!==v.length){var g,y,m=Lf.next(v),b=Lf.common(d,v),w=Lf.isSibling(d,v),x=Array.from(Af.levels(e,{at:d}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),E=Af.above(e,{at:d,mode:"highest",match:t=>x.includes(t)&&ap(e,t)}),S=E&&Af.pathRef(e,E[1]);if(Xf.isText(p)&&Xf.isText(h)){var C=Zl(p,tp);y=h.text.length,g=C}else{if(!xf.isElement(p)||!xf.isElement(h))throw new Error("Cannot merge the node at path [".concat(d,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(p)," ").concat(JSON.stringify(h)));C=Zl(p,np),y=h.children.length,g=C}w||vp.moveNodes(e,{at:d,to:m,voids:i}),S&&vp.removeNodes(e,{at:S.current,voids:i}),xf.isElement(h)&&Af.isEmpty(e,h)||Xf.isText(h)&&""===h.text&&0!==v[v.length-1]?vp.removeNodes(e,{at:v,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:g}),S&&S.unref()}}}}))},moveNodes(e,t){Af.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Lf.isPath(r)?sp(e,r):t=>Af.isBlock(e,t));var u=Af.pathRef(e,n),s=Af.nodes(e,{at:r,match:a,mode:o,voids:i}),c=Array.from(s,(t=>{var[,n]=t;return Af.pathRef(e,n)}));for(var l of c){var f=l.unref(),p=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:p}),u.current&&Lf.isSibling(p,f)&&Lf.isAfter(p,f)&&(u.current=Lf.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Af.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Lf.isPath(i)?sp(e,i):t=>Af.isBlock(e,t)),!n&&Uf.isRange(i)&&(i=Af.unhangRange(e,i));var u=Af.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return Af.pathRef(e,n)}));for(var c of s){var l=c.unref();if(l){var[f]=Af.node(e,l);e.apply({type:"remove_node",path:l,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Af.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(null==r&&(r=Lf.isPath(o)?sp(e,o):t=>Af.isBlock(e,t)),!i&&Uf.isRange(o)&&(o=Af.unhangRange(e,o)),u&&Uf.isRange(o)){if(Uf.isCollapsed(o)&&Af.leaf(e,o.anchor)[0].text.length>0)return;var c=Af.rangeRef(e,o,{affinity:"inward"}),[l,f]=Uf.edges(o),p="lowest"===a?"lowest":"highest",d=Af.isEnd(e,f,f.path);vp.splitNodes(e,{at:f,match:r,mode:p,voids:s,always:!d});var h=Af.isStart(e,l,l.path);vp.splitNodes(e,{at:l,match:r,mode:p,voids:s,always:!h}),o=c.unref(),null==n.at&&vp.select(e,o)}for(var[v,g]of Af.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==g.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==v[w]&&(b=!0,v.hasOwnProperty(w)&&(y[w]=v[w]),null!=t[w]&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:g,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Af.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>Af.isBlock(e,t)),Uf.isRange(i)&&(i=up(e,i)),Lf.isPath(i)){var s=i,c=Af.point(e,s),[l]=Af.parent(e,s);o=e=>e===l,a=c.path.length-s.length+1,i=c,u=!0}if(i){var f=Af.pointRef(e,i,{affinity:"backward"}),[p]=Af.nodes(e,{at:i,match:o,mode:n,voids:r});if(p){var d=Af.void(e,{at:i,mode:"highest"});if(!r&&d){var[h,v]=d;if(xf.isElement(h)&&e.isInline(h)){var g=Af.after(e,v);if(!g){var y=Lf.next(v);vp.insertNodes(e,{text:""},{at:y,voids:r}),g=Af.point(e,y)}i=g,u=!0}a=i.path.length-v.length+1,u=!0}var m=Af.pointRef(e,i),b=i.path.length-a,[,w]=p,x=i.path.slice(0,b),E=0===a?i.offset:i.path[b]+0;for(var[S,C]of Af.levels(e,{at:x,reverse:!0,voids:r})){var D=!1;if(C.length<w.length||0===C.length||!r&&Af.isVoid(e,S))break;var O=f.current,A=Af.isEnd(e,O,C);if(u||!f||!Af.isEdge(e,O,C)){D=!0;var k=Pf.extractProps(S);e.apply({type:"split_node",path:C,position:E,properties:k})}E=C[C.length-1]+(D||A?1:0)}if(null==t.at){var _=m.current||Af.end(e,[]);vp.select(e,_)}f.unref(),m.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;vp.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Af.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Lf.isPath(i)?sp(e,i):t=>Af.isBlock(e,t)),Lf.isPath(i)&&(i=Af.range(e,i));var u=Uf.isRange(i)?Af.rangeRef(e,i):null,s=Af.nodes(e,{at:i,match:a,mode:n,voids:o}),c=Array.from(s,(t=>{var[,n]=t;return Af.pathRef(e,n)})).reverse(),l=function(t){var n=t.unref(),[i]=Af.node(e,n),a=Af.range(e,n);r&&u&&(a=Uf.intersection(u.current,a)),vp.liftNodes(e,{at:a,match:e=>xf.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of c)l(f);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Af.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=Lf.isPath(u)?sp(e,u):e.isInline(t)?t=>Af.isInline(e,t)||Xf.isText(t):t=>Af.isBlock(e,t)),o&&Uf.isRange(u)){var[s,c]=Uf.edges(u),l=Af.rangeRef(e,u,{affinity:"inward"});vp.splitNodes(e,{at:c,match:a,voids:i}),vp.splitNodes(e,{at:s,match:a,voids:i}),u=l.unref(),null==n.at&&vp.select(e,u)}var f=Array.from(Af.nodes(e,{at:u,match:e.isInline(t)?t=>Af.isBlock(e,t):e=>Af.isEditor(e),mode:"lowest",voids:i}));for(var[,p]of f){var d=Uf.isRange(u)?Uf.intersection(u,Af.range(e,p)):u;if(d){var h=Array.from(Af.nodes(e,{at:d,match:a,mode:r,voids:i}));if(h.length>0){var v=function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=Lf.equals(o,a)?Lf.parent(o):Lf.common(o,a),s=Af.range(e,o,a),c=Af.node(e,u),[l]=c,f=u.length+1,p=Lf.next(a.slice(0,f)),d=op(op({},t),{},{children:[]});vp.insertNodes(e,d,{at:p,voids:i}),vp.moveNodes(e,{at:s,match:e=>xf.isAncestor(l)&&l.children.includes(e),to:p.concat(0),voids:i})}();if("continue"===v)continue}}}}}))}},ap=(e,t)=>{if(xf.isElement(t)){var n=t;return!!Af.isVoid(e,t)||1===n.children.length&&ap(e,n.children[0])}return!Af.isEditor(t)},up=(e,t)=>{if(Uf.isCollapsed(t))return t.anchor;var[,n]=Uf.edges(t),r=Af.pointRef(e,n);return vp.delete(e,{at:t}),r.unref()},sp=(e,t)=>{var[n]=Af.node(e,t);return e=>e===n};function cp(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 lp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cp(Object(n),!0).forEach((function(t){Nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fp={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)vp.select(e,r.anchor);else if("focus"===n)vp.select(e,r.focus);else if("start"===n){var[o]=Uf.edges(r);vp.select(e,o)}else if("end"===n){var[,i]=Uf.edges(r);vp.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=Uf.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Uf.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,c={distance:r,unit:o},l={};if(null==a||"anchor"===a){var f=i?Af.before(e,u,c):Af.after(e,u,c);f&&(l.anchor=f)}if(null==a||"focus"===a){var p=i?Af.before(e,s,c):Af.after(e,s,c);p&&(l.focus=p)}vp.setSelection(e,l)}},select(e,t){var{selection:n}=e;if(t=Af.range(e,t),n)vp.setSelection(e,t);else{if(!Uf.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=Uf.isBackward(r)?"focus":"anchor"),"end"===o&&(o=Uf.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;vp.setSelection(e,{["anchor"===o?"anchor":"focus"]:lp(lp({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!zf.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!zf.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},pp={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Af.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(Uf.isRange(a)&&Uf.isCollapsed(a)&&(a=a.anchor),zf.isPoint(a)){var s=Af.void(e,{at:a,mode:"highest"});if(!i&&s){var[,c]=s;a=c}else{var l={unit:r,distance:o};a={anchor:a,focus:n?Af.before(e,a,l)||Af.start(e,[]):Af.after(e,a,l)||Af.end(e,[])},u=!0}}if(Lf.isPath(a))vp.removeNodes(e,{at:a,voids:i});else if(!Uf.isCollapsed(a)){if(!u){var[,f]=Uf.edges(a),p=Af.end(e,[]);zf.equals(f,p)||(a=Af.unhangRange(e,a,{voids:i}))}var[d,h]=Uf.edges(a),v=Af.above(e,{match:t=>Af.isBlock(e,t),at:d,voids:i}),g=Af.above(e,{match:t=>Af.isBlock(e,t),at:h,voids:i}),y=v&&g&&!Lf.equals(v[1],g[1]),m=Lf.equals(d.path,h.path),b=i?null:Af.void(e,{at:d,mode:"highest"}),w=i?null:Af.void(e,{at:h,mode:"highest"});if(b){var x=Af.before(e,d);x&&v&&Lf.isAncestor(v[1],x.path)&&(d=x)}if(w){var E=Af.after(e,h);E&&g&&Lf.isAncestor(g[1],E.path)&&(h=E)}var S,C=[];for(var D of Af.nodes(e,{at:a,voids:i})){var[O,A]=D;S&&0===Lf.compare(A,S)||(!i&&Af.isVoid(e,O)||!Lf.isCommon(A,d.path)&&!Lf.isCommon(A,h.path))&&(C.push(D),S=A)}var k=Array.from(C,(t=>{var[,n]=t;return Af.pathRef(e,n)})),_=Af.pointRef(e,d),T=Af.pointRef(e,h);if(!m&&!b){var B=_.current,[P]=Af.leaf(e,B),{path:j}=B,{offset:F}=d,N=P.text.slice(F);N.length>0&&e.apply({type:"remove_text",path:j,offset:F,text:N})}for(var L of k){var I=L.unref();vp.removeNodes(e,{at:I,voids:i})}if(!w){var R=T.current,[M]=Af.leaf(e,R),{path:z}=R,H=m?d.offset:0,$=M.text.slice(H,h.offset);$.length>0&&e.apply({type:"remove_text",path:z,offset:H,text:$})}!m&&y&&T.current&&_.current&&vp.mergeNodes(e,{at:T.current,hanging:!0,voids:i});var V=n?_.unref()||T.unref():T.unref()||_.unref();null==t.at&&V&&vp.select(e,V)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Af.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Uf.isRange(i))if(r||(i=Af.unhangRange(e,i)),Uf.isCollapsed(i))i=i.anchor;else{var[,a]=Uf.edges(i);if(!o&&Af.void(e,{at:a}))return;var u=Af.pointRef(e,a);vp.delete(e,{at:i}),i=u.unref()}else Lf.isPath(i)&&(i=Af.start(e,i));if(o||!Af.void(e,{at:i})){var s=Af.above(e,{at:i,match:t=>Af.isInline(e,t),mode:"highest",voids:o});if(s){var[,c]=s;Af.isEnd(e,i,c)?i=Af.after(e,c):Af.isStart(e,i,c)&&(i=Af.before(e,c))}var l=Af.above(e,{match:t=>Af.isBlock(e,t),at:i,voids:o}),[,f]=l,p=Af.isStart(e,i,f),d=Af.isEnd(e,i,f),h=p&&d,v=!p||p&&d,g=!d,[,y]=Pf.first({children:t},[]),[,m]=Pf.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(v&&Lf.isAncestor(r,y)&&xf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||g&&Lf.isAncestor(r,m)&&xf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var x of Pf.nodes({children:t},{pass:w}))w(x)&&b.push(x);var E=[],S=[],C=[],D=!0,O=!1;for(var[A]of b)xf.isElement(A)&&!e.isInline(A)?(D=!1,O=!0,S.push(A)):D?E.push(A):C.push(A);var[k]=Af.nodes(e,{at:i,match:t=>Xf.isText(t)||Af.isInline(e,t),mode:"highest",voids:o}),[,_]=k,T=Af.isStart(e,i,_),B=Af.isEnd(e,i,_),P=Af.pathRef(e,d?Lf.next(f):f),j=Af.pathRef(e,B?Lf.next(_):_),F=Af.pathRef(e,f);vp.splitNodes(e,{at:i,match:t=>O?Af.isBlock(e,t):Xf.isText(t)||Af.isInline(e,t),mode:O?"lowest":"highest",voids:o});var N=Af.pathRef(e,!T||T&&B?Lf.next(_):_);if(vp.insertNodes(e,E,{at:N.current,match:t=>Xf.isText(t)||Af.isInline(e,t),mode:"highest",voids:o}),h&&S.length&&vp.delete(e,{at:F.unref(),voids:o}),vp.insertNodes(e,S,{at:P.current,match:t=>Af.isBlock(e,t),mode:"lowest",voids:o}),vp.insertNodes(e,C,{at:j.current,match:t=>Xf.isText(t)||Af.isInline(e,t),mode:"highest",voids:o}),!n.at){var L;L=C.length>0?Lf.previous(j.current):S.length>0?Lf.previous(P.current):Lf.previous(N.current);var I=Af.end(e,L);vp.select(e,I)}N.unref(),P.unref(),j.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Af.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Lf.isPath(o)&&(o=Af.range(e,o)),Uf.isRange(o))if(Uf.isCollapsed(o))o=o.anchor;else{var i=Uf.end(o);if(!r&&Af.void(e,{at:i}))return;var a=Af.pointRef(e,i);vp.delete(e,{at:o,voids:r}),o=a.unref(),vp.setSelection(e,{anchor:o,focus:o})}if(r||!Af.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}}))}};function dp(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 hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dp(Object(n),!0).forEach((function(t){Nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vp=hp(hp(hp(hp({},ep),ip),fp),pp),gp="[object Map]",yp="[object Set]",mp=/^\[object .+?Constructor\]$/,bp=/^(?:0|[1-9]\d*)$/,wp="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",xp="\\ud83c[\\udffb-\\udfff]",Ep="[^\\ud800-\\udfff]",Sp="(?:\\ud83c[\\udde6-\\uddff]){2}",Cp="[\\ud800-\\udbff][\\udc00-\\udfff]",Dp="(?:"+wp+"|"+xp+")?",Op="[\\ufe0e\\ufe0f]?"+Dp+"(?:\\u200d(?:"+[Ep,Sp,Cp].join("|")+")[\\ufe0e\\ufe0f]?"+Dp+")*",Ap="(?:"+[Ep+wp+"?",wp,Sp,Cp,"[\\ud800-\\udfff]"].join("|")+")",kp=RegExp(xp+"(?="+xp+")|"+Ap+Op,"g"),_p=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Tp="object"==typeof r&&r&&r.Object===Object&&r,Bp="object"==typeof self&&self&&self.Object===Object&&self,Pp=Tp||Bp||Function("return this")();function jp(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Fp(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Np,Lp,Ip=Function.prototype,Rp=Object.prototype,Mp=Pp["__core-js_shared__"],zp=function(){var e=/[^.]+$/.exec(Mp&&Mp.keys&&Mp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Hp=Ip.toString,$p=Rp.hasOwnProperty,Vp=Rp.toString,Up=RegExp("^"+Hp.call($p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zp=Pp.Symbol,Wp=Zp?Zp.iterator:void 0,Gp=Rp.propertyIsEnumerable,qp=(Np=Object.keys,Lp=Object,function(e){return Np(Lp(e))}),Kp=id(Pp,"DataView"),Yp=id(Pp,"Map"),Xp=id(Pp,"Promise"),Jp=id(Pp,"Set"),Qp=id(Pp,"WeakMap"),ed=sd(Kp),td=sd(Yp),nd=sd(Xp),rd=sd(Jp),od=sd(Qp);function id(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!pd(e)||function(e){return!!zp&&zp in e}(e))return!1;var t=fd(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Up:mp;return t.test(sd(e))}(n)?n:void 0}var ad=function(e){return Vp.call(e)};function ud(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||bp.test(e))&&e>-1&&e%1==0&&e<t}function sd(e){if(null!=e){try{return Hp.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(Kp&&"[object DataView]"!=ad(new Kp(new ArrayBuffer(1)))||Yp&&ad(new Yp)!=gp||Xp&&"[object Promise]"!=ad(Xp.resolve())||Jp&&ad(new Jp)!=yp||Qp&&"[object WeakMap]"!=ad(new Qp))&&(ad=function(e){var t=Vp.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?sd(n):void 0;if(r)switch(r){case ed:return"[object DataView]";case td:return gp;case nd:return"[object Promise]";case rd:return yp;case od:return"[object WeakMap]"}return t});var cd=Array.isArray;function ld(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!fd(e)}function fd(e){var t=pd(e)?Vp.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function pd(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function dd(e){return!!e&&"object"==typeof e}function hd(e){return e?function(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n]);return o}(t,(function(t){return e[t]}))}(e,function(e){return ld(e)?function(e,t){var n=cd(e)||function(e){return function(e){return dd(e)&&ld(e)}(e)&&$p.call(e,"callee")&&(!Gp.call(e,"callee")||"[object Arguments]"==Vp.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!$p.call(e,i)||o&&("length"==i||ud(i,r))||n.push(i);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Rp))return qp(e);var t,n,r=[];for(var o in Object(e))$p.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}(e)):[]}var vd=function(e){if(!e)return[];if(ld(e))return function(e){return"string"==typeof e||!cd(e)&&dd(e)&&"[object String]"==Vp.call(e)}(e)?function(e){return function(e){return _p.test(e)}(e)?function(e){return e.match(kp)||[]}(e):function(e){return e.split("")}(e)}(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);if(Wp&&e[Wp])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Wp]());var t=ad(e);return(t==gp?jp:t==yp?Fp:hd)(e)};function gd(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function yd(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:gd(t[n])&&gd(e[n])&&Object.keys(t[n]).length>0&&yd(e[n],t[n])}))}var md={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function bd(){var e="undefined"!=typeof document?document:{};return yd(e,md),e}var wd={document:md,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function xd(){var e="undefined"!=typeof window?window:{};return yd(e,wd),e}function Ed(e){return Ed=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ed(e)}function Sd(e,t){return Sd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Sd(e,t)}function Cd(){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 Dd(e,t,n){return Dd=Cd()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Sd(o,n.prototype),o},Dd.apply(null,arguments)}function Od(e){var t="function"==typeof Map?new Map:void 0;return Od=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;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,n)}function n(){return Dd(e,arguments,Ed(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Sd(n,e)},Od(e)}var Ad=function(e){var t,n;function r(t){var n,r,o;return r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call.apply(e,[this].concat(t))||this),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Od(Array));function kd(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,kd(e)):t.push(e)})),t}function _d(e,t){return Array.prototype.filter.call(e,t)}function Td(e,t){var n=xd(),r=bd(),o=[];if(!t&&e instanceof Ad)return e;if(!e)return new Ad(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof Ad)return e;o=e}return new Ad(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function Bd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=kd(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function Pd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=kd(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function jd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=kd(t.map((function(e){return e.split(" ")})));return _d(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function Fd(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Nd(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Ld(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Id(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function Rd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),Td(t).is(o))i.apply(t,n);else for(var r=Td(t).parents(),a=0;a<r.length;a+=1)Td(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var c,l=r.split(" "),f=0;f<this.length;f+=1){var p=this[f];if(o)for(c=0;c<l.length;c+=1){var d=l[c];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[d]||(p.dom7LiveListeners[d]=[]),p.dom7LiveListeners[d].push({listener:i,proxyListener:u}),p.addEventListener(d,u,a)}else for(c=0;c<l.length;c+=1){var h=l[c];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[h]||(p.dom7Listeners[h]=[]),p.dom7Listeners[h].push({listener:i,proxyListener:s}),p.addEventListener(h,s,a)}}return this}function Md(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var c=u[s],l=0;l<this.length;l+=1){var f=this[l],p=void 0;if(!o&&f.dom7Listeners?p=f.dom7Listeners[c]:o&&f.dom7LiveListeners&&(p=f.dom7LiveListeners[c]),p&&p.length)for(var d=p.length-1;d>=0;d-=1){var h=p[d];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(c,h.proxyListener,a),p.splice(d,1)):i||(f.removeEventListener(c,h.proxyListener,a),p.splice(d,1))}}return this}function zd(){var e=xd();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Hd(){var e=xd();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function $d(){if(this.length>0){var e=xd(),t=bd(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Vd(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Ud(){for(var e=xd(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function Zd(e,t){var n,r=xd();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Wd(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function Gd(e){return Td(_d(this,e))}function qd(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Kd(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function Yd(e){var t,n,r=xd(),o=bd(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=Td(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof Ad){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function Xd(){for(var e,t=bd(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof Ad)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function Jd(e){var t,n,r=bd();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof Ad)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function Qd(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?Td(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Td(t)}function eh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Td(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Td(t)}function th(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return Td(t)}function nh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!Td(r[o]).is(e)||t.push(r[o]);return Td(t)}function rh(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function oh(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}Td.fn=Ad.prototype;var ih="resize scroll".split(" ");function ah(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)ih.indexOf(e)<0&&(e in this[o]?this[o][e]():Td(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var uh=ah("click"),sh=ah("focus"),ch=/^(?:0|[1-9]\d*)$/;function lh(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var fh=Object.prototype,ph=fh.hasOwnProperty,dh=fh.toString,hh=fh.propertyIsEnumerable,vh=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var gh,yh=(gh=function(e,t){return e&&mh(e,t,Eh)},function(e,t){if(null==e)return e;if(!xh(e))return gh(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),mh=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var u=i[++r];if(!1===t(o[u],u,o))break}return e};function bh(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||ch.test(e))&&e>-1&&e%1==0&&e<t}var wh=Array.isArray;function xh(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?dh.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function Eh(e){return xh(e)?function(e,t){var n=wh(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&xh(e)}(e)&&ph.call(e,"callee")&&(!hh.call(e,"callee")||"[object Arguments]"==dh.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!ph.call(e,i)||o&&("length"==i||bh(i,r))||n.push(i);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||fh))return vh(e);var t,n,r=[];for(var o in Object(e))ph.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function Sh(e){return e}var Ch=function(e,t){return(wh(e)?lh:yh)(e,"function"==typeof t?t:Sh)};let Dh=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var Oh=/^\s+|\s+$/g,Ah=/^[-+]0x[0-9a-f]+$/i,kh=/^0b[01]+$/i,_h=/^0o[0-7]+$/i,Th=parseInt,Bh="object"==typeof r&&r&&r.Object===Object&&r,Ph="object"==typeof self&&self&&self.Object===Object&&self,jh=Bh||Ph||Function("return this")(),Fh=Object.prototype.toString,Nh=Math.max,Lh=Math.min,Ih=function(){return jh.Date.now()};function Rh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Mh(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Fh.call(e)}(e))return NaN;if(Rh(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Rh(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Oh,"");var n=kh.test(e);return n||_h.test(e)?Th(e.slice(2),n?2:8):Ah.test(e)?NaN:+e}var zh=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Rh(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),function(e,t,n){var r,o,i,a,u,s,c=0,l=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){return c=e,u=setTimeout(g,t),l?d(e):a}function v(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-c>=i}function g(){var e=Ih();if(v(e))return y(e);u=setTimeout(g,function(e){var n=t-(e-s);return f?Lh(n,i-(e-c)):n}(e))}function y(e){return u=void 0,p&&r?d(e):(r=o=void 0,a)}function m(){var e=Ih(),n=v(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(g,t),d(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=Mh(t)||0,Rh(n)&&(l=!!n.leading,i=(f="maxWait"in n)?Nh(Mh(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),m.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Ih())},m}(e,t,{leading:r,maxWait:t,trailing:o})};const Hh={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function $h(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const Vh=Array.isArray;function Uh(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function Zh(e){return void 0===e}function Wh(e){return void 0!==e}const Gh=$h("",{},[],void 0,void 0);function qh(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function Kh(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const Yh=["create","update","remove","destroy","pre","post"];function Xh(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:Hh;for(const t of Yh)for(const r of e){const e=r[t];void 0!==e&&n[t].push(e)}function o(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function i(e,t){var o,a;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;Wh(t)&&(t(e),s=e.data)}const c=e.children,l=e.sel;if("!"===l)Zh(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==l){const o=l.indexOf("#"),f=l.indexOf(".",o),p=o>0?o:l.length,d=f>0?f:l.length,h=-1!==o||-1!==f?l.slice(0,Math.min(p,d)):l,v=e.elm=Wh(s)&&Wh(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(p<d&&v.setAttribute("id",l.slice(p+1,d)),f>0&&v.setAttribute("class",l.slice(d+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](Gh,e);if(Vh(c))for(u=0;u<c.length;++u){const e=c[u];null!=e&&r.appendChild(v,i(e,t))}else Uh(e.text)&&r.appendChild(v,r.createTextNode(e.text));const g=e.data.hook;Wh(g)&&(null===(a=g.create)||void 0===a||a.call(g,Gh,e),g.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function a(e,t,n,o,a,u){for(;o<=a;++o){const a=n[o];null!=a&&r.insertBefore(e,i(a,u),t)}}function u(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&u(n)}}}function s(e,t,i,a){for(var s,c;i<=a;++i){let a,l;const f=t[i];if(null!=f)if(Wh(f.sel)){u(f),a=n.remove.length+1,l=o(f.elm,a);for(let e=0;e<n.remove.length;++e)n.remove[e](f,l);const e=null===(c=null===(s=null==f?void 0:f.data)||void 0===s?void 0:s.hook)||void 0===c?void 0:c.remove;Wh(e)?e(f,l):l()}else r.removeChild(e,f.elm)}}function c(e,t,o){var u,l,f,p,d;const h=null===(u=t.data)||void 0===u?void 0:u.hook;null===(l=null==h?void 0:h.prepatch)||void 0===l||l.call(h,e,t);const v=t.elm=e.elm,g=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(p=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===p||p.call(f,e,t)}Zh(t.text)?Wh(g)&&Wh(y)?g!==y&&function(e,t,n,o){let u,l,f,p,d=0,h=0,v=t.length-1,g=t[0],y=t[v],m=n.length-1,b=n[0],w=n[m];for(;d<=v&&h<=m;)null==g?g=t[++d]:null==y?y=t[--v]:null==b?b=n[++h]:null==w?w=n[--m]:qh(g,b)?(c(g,b,o),g=t[++d],b=n[++h]):qh(y,w)?(c(y,w,o),y=t[--v],w=n[--m]):qh(g,w)?(c(g,w,o),r.insertBefore(e,g.elm,r.nextSibling(y.elm)),g=t[++d],w=n[--m]):qh(y,b)?(c(y,b,o),r.insertBefore(e,y.elm,g.elm),y=t[--v],b=n[++h]):(void 0===u&&(u=Kh(t,d,v)),l=u[b.key],Zh(l)?r.insertBefore(e,i(b,o),g.elm):(f=t[l],f.sel!==b.sel?r.insertBefore(e,i(b,o),g.elm):(c(f,b,o),t[l]=void 0,r.insertBefore(e,f.elm,g.elm))),b=n[++h]);(d<=v||h<=m)&&(d>v?(p=null==n[m+1]?null:n[m+1].elm,a(e,p,n,h,m,o)):s(e,t,d,v))}(v,g,y,o):Wh(y)?(Wh(e.text)&&r.setTextContent(v,""),a(v,null,y,0,y.length-1,o)):Wh(g)?s(v,g,0,g.length-1):Wh(e.text)&&r.setTextContent(v,""):e.text!==t.text&&(Wh(g)&&s(v,g,0,g.length-1),r.setTextContent(v,t.text)),null===(d=null==h?void 0:h.postpatch)||void 0===d||d.call(h,e,t)}}return function(e,t){let o,a,u;const l=[];for(o=0;o<n.pre.length;++o)n.pre[o]();for(function(e){return void 0!==e.sel}(e)||(e=function(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return $h(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),qh(e,t)?c(e,t,l):(a=e.elm,u=r.parentNode(a),i(t,l),null!==u&&(r.insertBefore(u,t.elm,r.nextSibling(a)),s(u,[e],0,0))),o=0;o<l.length;++o)l[o].data.hook.insert(l[o]);for(o=0;o<n.post.length;++o)n.post[o]();return t}}function Jh(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let e=0;e<t.length;++e){const n=t[e].data;void 0!==n&&Jh(n,t[e].children,t[e].sel)}}function Qh(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),Vh(n)?r=n:Uh(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(Vh(t)?r=t:Uh(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)Uh(r[i])&&(r[i]=$h(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||Jh(a,r,e),$h(e,a,r,o,void 0)}function ev(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const tv={create:ev,update:ev};function nv(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const rv={create:nv,update:nv},ov=/[A-Z]/g;function iv(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(ov,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(ov,"-$&").toLowerCase(),i[r]))}const av={create:iv,update:iv};function uv(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==typeof e)for(let r=0;r<e.length;r++)uv(e[r],t,n)}function sv(e,t){const n=e.type,r=t.data.on;r&&r[n]&&uv(r[n],t,e)}function cv(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){sv(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const lv={create:cv,update:cv,destroy:cv};function fv(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const pv={create:fv,update:fv},dv="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let hv=!1;function vv(e,t,n){!function(e){dv((function(){dv(e)}))}((function(){e[t]=n}))}function gv(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||vv(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const yv={pre:function(){hv=!1},create:gv,update:gv,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;hv||(e.elm.offsetLeft,hv=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const c=getComputedStyle(o)["transition-property"].split(", ");for(;i<c.length;++i)-1!==s.indexOf(c[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function mv(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?mv(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push($h(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function bv(e,t,...n){const r=mv(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?Qh(e,t,r[0].text):Qh(e,t,r)}bv||(bv={});var wv,xv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ev=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sv="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cv="["+Sv+"]",Dv="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Ov="\\d+",Av="[a-z\\xdf-\\xf6\\xf8-\\xff]",kv="[^\\ud800-\\udfff"+Sv+Ov+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_v="\\ud83c[\\udffb-\\udfff]",Tv="[^\\ud800-\\udfff]",Bv="(?:\\ud83c[\\udde6-\\uddff]){2}",Pv="[\\ud800-\\udbff][\\udc00-\\udfff]",jv="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Fv="(?:"+Av+"|"+kv+")",Nv="(?:"+jv+"|"+kv+")",Lv="(?:"+Dv+"|"+_v+")?",Iv="[\\ufe0e\\ufe0f]?"+Lv+"(?:\\u200d(?:"+[Tv,Bv,Pv].join("|")+")[\\ufe0e\\ufe0f]?"+Lv+")*",Rv="(?:"+["[\\u2700-\\u27bf]",Bv,Pv].join("|")+")"+Iv,Mv="(?:"+[Tv+Dv+"?",Dv,Bv,Pv,"[\\ud800-\\udfff]"].join("|")+")",zv=RegExp("['’]","g"),Hv=RegExp(Dv,"g"),$v=RegExp(_v+"(?="+_v+")|"+Mv+Iv,"g"),Vv=RegExp([jv+"?"+Av+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Cv,jv,"$"].join("|")+")",Nv+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Cv,jv+Fv,"$"].join("|")+")",jv+"?"+Fv+"+(?:['’](?:d|ll|m|re|s|t|ve))?",jv+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Ov,Rv].join("|"),"g"),Uv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Zv=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wv="object"==typeof r&&r&&r.Object===Object&&r,Gv="object"==typeof self&&self&&self.Object===Object&&self,qv=Wv||Gv||Function("return this")(),Kv=(wv={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==wv?void 0:wv[e]});function Yv(e){return Uv.test(e)}var Xv=Object.prototype.toString,Jv=qv.Symbol,Qv=Jv?Jv.prototype:void 0,eg=Qv?Qv.toString:void 0;function tg(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Xv.call(e)}(e))return eg?eg.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}for(var ng,rg=(ng=function(e,t,n){return t=t.toLowerCase(),e+(n?og(tg(t).toLowerCase()):t)},function(e){return function(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=tg(e),void 0===t?function(e){return Zv.test(e)}(e)?function(e){return e.match(Vv)||[]}(e):function(e){return e.match(xv)||[]}(e):e.match(t)||[]}(function(e){return(e=tg(e))&&e.replace(Ev,Kv).replace(Hv,"")}(e).replace(zv,"")),ng,"")}),og=("toUpperCase",function(e){var t=Yv(e=tg(e))?function(e){return Yv(e)?function(e){return e.match($v)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,n=t?t[0]:e.charAt(0),r=t?function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}(t,1).join(""):e.slice(1);return n.toUpperCase()+r}),ig=rg,ag="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),ug={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},sg={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ag?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},cg={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},lg=1;lg<20;lg++)cg["f"+lg]=111+lg;function fg(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in ug)r[ug[a]]=!1;var u=!0,s=!1,c=void 0;try{for(var l,f=o[Symbol.iterator]();!(u=(l=f.next()).done);u=!0){var p=l.value,d=p.endsWith("?")&&p.length>1;d&&(p=p.slice(0,-1));var h=dg(p),v=ug[h];if(p.length>1&&!v&&!sg[p]&&!cg[h])throw new TypeError('Unknown modifier: "'+p+'"');1!==i&&v||(n?r.key=h:r.which=pg(p)),v&&(r[v]=!d||null)}}catch(e){s=!0,c=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw c}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)}))};return null==n?o:o(n)}function pg(e){return e=dg(e),cg[e]||e.toUpperCase().charCodeAt(0)}function dg(e){return e=e.toLowerCase(),sg[e]||e}var hg=fg,vg=function(e,t){return fg(e,{byKey:!0},t)},gg=/^\s+|\s+$/g,yg=/^[-+]0x[0-9a-f]+$/i,mg=/^0b[01]+$/i,bg=/^0o[0-7]+$/i,wg=parseInt,xg="object"==typeof r&&r&&r.Object===Object&&r,Eg="object"==typeof self&&self&&self.Object===Object&&self,Sg=xg||Eg||Function("return this")(),Cg=Object.prototype.toString,Dg=Math.max,Og=Math.min,Ag=function(){return Sg.Date.now()};function kg(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Cg.call(e)}(e))return NaN;if(kg(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=kg(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(gg,"");var n=mg.test(e);return n||bg.test(e)?wg(e.slice(2),n?2:8):yg.test(e)?NaN:+e}var Tg,Bg=function(e,t,n){var r,o,i,a,u,s,c=0,l=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){return c=e,u=setTimeout(g,t),l?d(e):a}function v(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-c>=i}function g(){var e=Ag();if(v(e))return y(e);u=setTimeout(g,function(e){var n=t-(e-s);return f?Og(n,i-(e-c)):n}(e))}function y(e){return u=void 0,p&&r?d(e):(r=o=void 0,a)}function m(){var e=Ag(),n=v(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(g,t),d(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=_g(t)||0,kg(n)&&(l=!!n.leading,i=(f="maxWait"in n)?Dg(_g(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),m.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Ag())},m},Pg=o((function(e,t){var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",u="[object Date]",s="[object Function]",c="[object GeneratorFunction]",l="[object Map]",f="[object Number]",p="[object Object]",d="[object Promise]",h="[object RegExp]",v="[object Set]",g="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",x="[object Float32Array]",E="[object Float64Array]",S="[object Int8Array]",C="[object Int16Array]",D="[object Int32Array]",O="[object Uint8Array]",A="[object Uint8ClampedArray]",k="[object Uint16Array]",_="[object Uint32Array]",T=/\w*$/,B=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,j={};j[i]=j["[object Array]"]=j[b]=j[w]=j[a]=j[u]=j[x]=j[E]=j[S]=j[C]=j[D]=j[l]=j[f]=j[p]=j[h]=j[v]=j[g]=j[y]=j[O]=j[A]=j[k]=j[_]=!0,j["[object Error]"]=j[s]=j[m]=!1;var F="object"==typeof r&&r&&r.Object===Object&&r,N="object"==typeof self&&self&&self.Object===Object&&self,L=F||N||Function("return this")(),I=t&&!t.nodeType&&t,R=I&&e&&!e.nodeType&&e,M=R&&R.exports===I;function z(e,t){return e.set(t[0],t[1]),e}function H(e,t){return e.add(t),e}function $(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function V(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function U(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Z(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var G=Array.prototype,q=Function.prototype,K=Object.prototype,Y=L["__core-js_shared__"],X=function(){var e=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=q.toString,Q=K.hasOwnProperty,ee=K.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=M?L.Buffer:void 0,re=L.Symbol,oe=L.Uint8Array,ie=Z(Object.getPrototypeOf,Object),ae=Object.create,ue=K.propertyIsEnumerable,se=G.splice,ce=Object.getOwnPropertySymbols,le=ne?ne.isBuffer:void 0,fe=Z(Object.keys,Object),pe=Ne(L,"DataView"),de=Ne(L,"Map"),he=Ne(L,"Promise"),ve=Ne(L,"Set"),ge=Ne(L,"WeakMap"),ye=Ne(Object,"create"),me=ze(pe),be=ze(de),we=ze(he),xe=ze(ve),Ee=ze(ge),Se=re?re.prototype:void 0,Ce=Se?Se.valueOf:void 0;function De(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){this.__data__=new Oe(e)}function _e(e,t,n){var r=e[t];Q.call(e,t)&&He(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Te(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n;return-1}function Be(e,t,n,r,o,d,m){var B;if(r&&(B=d?r(e,o,d,m):r(e)),void 0!==B)return B;if(!We(e))return e;var P=$e(e);if(P){if(B=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Q.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,B)}else{var F=Ie(e),N=F==s||F==c;if(Ue(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(F==p||F==i||N&&!d){if(V(e))return d?e:{};if(B=function(e){return"function"!=typeof e.constructor||Me(e)?{}:We(t=ie(e))?ae(t):{};var t}(N?{}:e),!t)return function(e,t){return je(e,Le(e),t)}(e,function(e,t){return e&&je(t,Ge(t),e)}(B,e))}else{if(!j[F])return d?e:{};B=function(e,t,n,r){var o=e.constructor;switch(t){case b:return Pe(e);case a:case u:return new o(+e);case w:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case x:case E:case S:case C:case D:case O:case A:case k:case _:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){return $(t?n(U(e),!0):U(e),z,new e.constructor)}(e,r,n);case f:case g:return new o(e);case h:return function(e){var t=new e.constructor(e.source,T.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return function(e,t,n){return $(t?n(W(e),!0):W(e),H,new e.constructor)}(e,r,n);case y:return function(e){return Ce?Object(Ce.call(e)):{}}(e)}}(e,F,Be,t)}}m||(m=new ke);var L=m.get(e);if(L)return L;if(m.set(e,B),!P)var I=n?function(e){return function(e,t,n){var r=t(e);return $e(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ge,Le)}(e):Ge(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n););}(I||e,(function(o,i){I&&(o=e[i=o]),_e(B,i,Be(o,t,n,r,i,e,m))})),B}function Pe(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function je(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;_e(n,a,void 0===u?e[a]:u)}return n}function Fe(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ne(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!We(e)||function(e){return!!X&&X in e}(e))&&(Ze(e)||V(e)?te:B).test(ze(e))}(n)?n:void 0}De.prototype.clear=function(){this.__data__=ye?ye(null):{}},De.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},De.prototype.get=function(e){var t=this.__data__;if(ye){var r=t[e];return r===n?void 0:r}return Q.call(t,e)?t[e]:void 0},De.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},De.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?n:t,this},Oe.prototype.clear=function(){this.__data__=[]},Oe.prototype.delete=function(e){var t=this.__data__,n=Te(t,e);return!(n<0||(n==t.length-1?t.pop():se.call(t,n,1),0))},Oe.prototype.get=function(e){var t=this.__data__,n=Te(t,e);return n<0?void 0:t[n][1]},Oe.prototype.has=function(e){return Te(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var n=this.__data__,r=Te(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new De,map:new(de||Oe),string:new De}},Ae.prototype.delete=function(e){return Fe(this,e).delete(e)},Ae.prototype.get=function(e){return Fe(this,e).get(e)},Ae.prototype.has=function(e){return Fe(this,e).has(e)},Ae.prototype.set=function(e,t){return Fe(this,e).set(e,t),this},ke.prototype.clear=function(){this.__data__=new Oe},ke.prototype.delete=function(e){return this.__data__.delete(e)},ke.prototype.get=function(e){return this.__data__.get(e)},ke.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Oe){var r=n.__data__;if(!de||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ae(r)}return n.set(e,t),this};var Le=ce?Z(ce,Object):function(){return[]},Ie=function(e){return ee.call(e)};function Re(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function Me(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||K)}function ze(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function He(e,t){return e===t||e!=e&&t!=t}(pe&&Ie(new pe(new ArrayBuffer(1)))!=w||de&&Ie(new de)!=l||he&&Ie(he.resolve())!=d||ve&&Ie(new ve)!=v||ge&&Ie(new ge)!=m)&&(Ie=function(e){var t=ee.call(e),n=t==p?e.constructor:void 0,r=n?ze(n):void 0;if(r)switch(r){case me:return w;case be:return l;case we:return d;case xe:return v;case Ee:return m}return t});var $e=Array.isArray;function Ve(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!Ze(e)}var Ue=le||function(){return!1};function Ze(e){var t=We(e)?ee.call(e):"";return t==s||t==c}function We(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ge(e){return Ve(e)?function(e,t){var n=$e(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ve(e)}(e)&&Q.call(e,"callee")&&(!ue.call(e,"callee")||ee.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!Q.call(e,a)||o&&("length"==a||Re(a,r))||n.push(a);return n}(e):function(e){if(!Me(e))return fe(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Be(e,!0,!0)}}));function jg(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Fg=0;function Ng(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})))),r}
|
|
49
|
+
/**
|
|
50
|
+
* Takes a string with placeholder variables like `%{smart_count} file selected`
|
|
51
|
+
* and replaces it with values from options `{smart_count: 5}`
|
|
52
|
+
*
|
|
53
|
+
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
|
|
54
|
+
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
|
|
55
|
+
*
|
|
56
|
+
* @param {string} phrase that needs interpolation, with placeholders
|
|
57
|
+
* @param {object} options with values that will be used to replace placeholders
|
|
58
|
+
* @returns {any[]} interpolated
|
|
59
|
+
*/function Lg(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,"$$$$")),r=Ng(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var Ig=(Tg=function(e){return"__private_"+Fg+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,Tg,{value:Rg}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(jg(this,Tg)[Tg],this):jg(this,Tg)[Tg](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count)return Lg(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return Lg(n,t)}});function Rg(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var Mg=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e};let{urlAlphabet:zg}={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},Hg=e=>crypto.getRandomValues(new Uint8Array(e)),$g=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var Vg={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>$g(e,t,Hg),customRandom:$g,urlAlphabet:zg,random:Hg},Ug=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function Zg(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Zg.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var Wg=/[\/\+\.]/,Gg=0;var qg=function(e){return"__private_"+Gg+++"_"+e}("publish");class Kg{constructor(){Object.defineProperty(this,qg,{value:Yg}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,qg)[qg](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Yg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}Kg.VERSION="2.0.3";var Xg=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},Jg={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Qg(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var ey=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218};function ty(e){return e<10?`0${e}`:e.toString()}var ny=function(){const e=new Date;return`${ty(e.getHours())}:${ty(e.getMinutes())}:${ty(e.getSeconds())}`},ry={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${ny()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${ny()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${ny()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${ny()}]`,...t)}}},oy={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},iy=Vg;let ay,uy;function sy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var cy=0;function ly(e){return"__private_"+cy+++"_"+e}const{nanoid:fy}=iy,{justErrorsLogger:py,debugLogger:dy}=ry;class hy extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class vy extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var gy=ly("plugins"),yy=ly("storeUnsubscribe"),my=ly("emitter"),by=ly("preProcessors"),wy=ly("uploaders"),xy=ly("postProcessors"),Ey=ly("checkRestrictions"),Sy=ly("checkMinNumberOfFiles"),Cy=ly("checkRequiredMetaFieldsOnFile"),Dy=ly("checkRequiredMetaFields"),Oy=ly("showOrLogErrorAndThrow"),Ay=ly("assertNewUploadAllowed"),ky=ly("checkAndCreateFileStateObject"),_y=ly("startIfAutoProceed"),Ty=ly("addListeners"),By=ly("updateOnlineStatus"),Py=ly("createUpload"),jy=ly("getUpload"),Fy=ly("removeUpload"),Ny=ly("runUpload");ay=Symbol.for("uppy test: getPlugins"),uy=Symbol.for("uppy test: createUpload");class Ly{constructor(e){Object.defineProperty(this,Ny,{value:Ky}),Object.defineProperty(this,Fy,{value:qy}),Object.defineProperty(this,jy,{value:Gy}),Object.defineProperty(this,Py,{value:Wy}),Object.defineProperty(this,Ty,{value:Zy}),Object.defineProperty(this,_y,{value:Uy}),Object.defineProperty(this,ky,{value:Vy}),Object.defineProperty(this,Ay,{value:$y}),Object.defineProperty(this,Oy,{value:Hy}),Object.defineProperty(this,Dy,{value:zy}),Object.defineProperty(this,Cy,{value:My}),Object.defineProperty(this,Sy,{value:Ry}),Object.defineProperty(this,Ey,{value:Iy}),Object.defineProperty(this,gy,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,yy,{writable:!0,value:void 0}),Object.defineProperty(this,my,{writable:!0,value:Mg()}),Object.defineProperty(this,by,{writable:!0,value:new Set}),Object.defineProperty(this,wy,{writable:!0,value:new Set}),Object.defineProperty(this,xy,{writable:!0,value:new Set}),Object.defineProperty(this,By,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=oy;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new Kg,logger:py,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=dy),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=zh(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:ey(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),sy(this,yy)[yy]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),sy(this,Ty)[Ty]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];sy(this,my)[my].emit(e,...n)}on(e,t){return sy(this,my)[my].on(e,t),this}once(e,t){return sy(this,my)[my].once(e,t),this}off(e,t){return sy(this,my)[my].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new Ig([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){sy(this,by)[by].add(e)}removePreProcessor(e){return sy(this,by)[by].delete(e)}addPostProcessor(e){sy(this,xy)[xy].add(e)}removePostProcessor(e){return sy(this,xy)[xy].delete(e)}addUploader(e){sy(this,wy)[wy].add(e)}removeUploader(e){return sy(this,wy)[wy].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),u=r.filter((e=>e.progress.uploadStarted)),s=r.filter((e=>e.isPaused)),c=r.filter((e=>e.progress.uploadComplete)),l=r.filter((e=>e.error)),f=o.filter((e=>!e.isPaused)),p=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:c,erroredFiles:l,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:p,isUploadStarted:u.length>0,isAllComplete:100===t&&c.length===r.length&&0===p.length,isAllErrored:!!n&&l.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return sy(this,Ey)[Ey](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){sy(this,Ay)[Ay](e);const{files:t}=this.getState();let n=sy(this,ky)[ky](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),sy(this,_y)[_y](),n.id}addFiles(e){sy(this,Ay)[Ay]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=sy(this,ky)[ky](t,e[o]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&sy(this,_y)[_y](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach((e=>{n[e]&&(a[e]=n[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const c=Object.keys(a);c.forEach((e=>{this.emit("file-removed",a[e],t)})),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=sy(this,Py)[Py](t,{forceAllowNewUpload:!0});return sy(this,Ny)[Ny](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=sy(this,Py)[Py]([e],{forceAllowNewUpload:!0});return sy(this,Ny)[Ny](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),n.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in sy(this,gy)[gy]?sy(this,gy)[gy][n.type].push(n):sy(this,gy)[gy][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(sy(this,gy)[gy])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[ay](e){return sy(this,gy)[gy][e]}iteratePlugins(e){Object.values(sy(this,gy)[gy]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=sy(this,gy)[gy][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),sy(this,yy)[yy](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",sy(this,By)[By]),window.removeEventListener("offline",sy(this,By)[By]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?sy(this,Ny)[Ny](e):(sy(this,Fy)[Fy](e),Promise.reject(new Error("Nonexistent upload")))}[uy](){return sy(this,Py)[Py](...arguments)}addResultData(e,t){if(!sy(this,jy)[jy](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=sy(this,gy)[gy].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{sy(this,Sy)[Sy](t),sy(this,Dy)[Dy](t)})).catch((e=>{sy(this,Oy)[Oy](e)})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=sy(this,Py)[Py](r);return sy(this,Ny)[Ny](o)})).catch((e=>{sy(this,Oy)[Oy](e,{showInformer:!1})})))}}function Iy(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new hy(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some((t=>t.indexOf("/")>-1?!!e.type&&function(e,t){function n(t){var n=function(e,t,n){var r=new Zg(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,Wg);return n&&n.length>=2}return t?n(t.split(";")[0]):n}(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=a.join(", ");throw new hy(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>o)throw new hy(this.i18n("exceedsSize",{size:Ug(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new hy(this.i18n("exceedsSize",{size:Ug(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new hy(this.i18n("inferiorSize",{size:Ug(r)}))}function Ry(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new hy(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function My(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new hy(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),sy(this,Oy)[Oy](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function zy(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return sy(this,Cy)[Cy](t)}));if(t.length)throw new vy(t,`${this.i18n("missingRequiredMetaField")}`)}function Hy(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function $y(e){const{allowNewUpload:t}=this.getState();!1===t&&sy(this,Oy)[Oy](new hy(this.i18n("noMoreFilesAllowed")),{file:e})}function Vy(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Xg(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Jg?Jg[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),o=Xg(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${Qg(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${Qg(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new hy(this.i18n("noDuplicates",{fileName:r}));sy(this,Oy)[Oy](e,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let c={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const l=this.opts.onBeforeFileAdded(c,e);!1===l?sy(this,Oy)[Oy](new hy("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof l&&null!==l&&(c=l);try{const t=Object.keys(e).map((t=>e[t]));sy(this,Ey)[Ey](c,t)}catch(e){sy(this,Oy)[Oy](e,{file:c})}return c}function Uy(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function Zy(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),sy(this,Oy)[Oy](e,{throwErr:!1})}else sy(this,Oy)[Oy](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:sy(this,xy)[xy].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("preprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("postprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&sy(this,Cy)[Cy](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",sy(this,By)[By]),window.addEventListener("offline",sy(this,By)[By]),setTimeout(sy(this,By)[By],3e3))}function Wy(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=fy();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function Gy(e){const{currentUploads:t}=this.getState();return t[e]}function qy(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Ky(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...sy(this,by)[by],...sy(this,wy)[wy],...sy(this,xy)[xy]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit("error",t),sy(this,Fy)[Fy](e),t}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),sy(this,Fy)[Fy](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}Ly.VERSION="2.1.3";var Yy=Ly,Xy=o((function(e,t){var n,r,o,i,a,u,s,c,l={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return g(e,u,o,i,null)}function g(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function x(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!E.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(E)}function E(){for(var e;E.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,T(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),B(n,o),o.__e!=i&&w(o)))}))}function S(e,t,n,r,o,i,a,u,s,c){var p,d,h,v,m,w,x,E=r&&r.__k||f,S=E.length;for(n.__k=[],p=0;p<t.length;p++)if(null!=(v=n.__k[p]=null==(v=t[p])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?g(null,v,null,null,v):Array.isArray(v)?g(y,{children:v},null,null,null):v.__b>0?g(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(h=E[p])||h&&v.key==h.key&&v.type===h.type)E[p]=void 0;else for(d=0;d<S;d++){if((h=E[d])&&v.key==h.key&&v.type===h.type){E[d]=void 0;break}h=null}T(e,v,h=h||l,o,i,a,u,s,c),m=v.__e,(d=v.ref)&&h.ref!=d&&(x||(x=[]),h.ref&&x.push(h.ref,null,v),x.push(d,v.__c||m,v)),null!=m?(null==w&&(w=m),"function"==typeof v.type&&v.__k===h.__k?v.__d=s=C(v,s,e):s=D(e,v,h,E,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=w,p=S;p--;)null!=E[p]&&("function"==typeof n.type&&null!=E[p].__e&&E[p].__e==n.__d&&(n.__d=b(r,p+1)),F(E[p],E[p]));if(x)for(p=0;p<x.length;p++)j(x[p],x[++p],x[++p])}function C(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?C(r,t,n):D(n,r,r,o,r.__e,t));return t}function D(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function O(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function A(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||O(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||O(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?_:k,i):e.removeEventListener(t,i?_:k,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function k(e){this.l[e.type+!1](r.event?r.event(e):e)}function _(e){this.l[e.type+!0](r.event?r.event(e):e)}function T(e,t,n,o,i,a,u,s,c){var l,f,p,h,v,g,b,w,x,E,C,D=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(l=r.__b)&&l(t);try{e:if("function"==typeof D){if(w=t.props,x=(l=D.contextType)&&o[l.__c],E=l?x?x.props.value:l.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in D&&D.prototype.render?t.__c=f=new D(w,E):(t.__c=f=new m(w,E),f.constructor=D,f.render=N),x&&x.sub(f),f.props=w,f.state||(f.state={}),f.context=E,f.__n=o,p=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=D.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=d({},f.__s)),d(f.__s,D.getDerivedStateFromProps(w,f.__s))),h=f.props,v=f.state,p)null==D.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==D.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,E),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,E)||t.__v===n.__v){f.props=w,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,E),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,v,g)}))}f.context=E,f.props=w,f.state=f.__s,(l=r.__r)&&l(t),f.__d=!1,f.__v=t,f.__P=e,l=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=d(d({},o),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(g=f.getSnapshotBeforeUpdate(h,v)),C=null!=l&&l.type===y&&null==l.key?l.props.children:l,S(e,Array.isArray(C)?C:[C],t,n,o,i,a,u,s,c),f.base=t.__e,t.__h=null,f.__h.length&&u.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=P(n.__e,t,n,o,i,a,u,c);(l=r.diffed)&&l(t)}catch(e){t.__v=null,(c||null!=a)&&(t.__e=s,t.__h=!!c,a[a.indexOf(s)]=null),r.__e(e,t,n)}}function B(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function P(e,t,r,o,i,a,u,s){var c,f,p,d=r.props,v=t.props,g=t.type,y=0;if("svg"===g&&(i=!0),null!=a)for(;y<a.length;y++)if((c=a[y])&&"setAttribute"in c==!!g&&(g?c.localName===g:3===c.nodeType)){e=c,a[y]=null;break}if(null==e){if(null===g)return document.createTextNode(v);e=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,v.is&&v),a=null,s=!1}if(null===g)d===v||s&&e.data===v||(e.data=v);else{if(a=a&&n.call(e.childNodes),f=(d=r.props||l).dangerouslySetInnerHTML,p=v.dangerouslySetInnerHTML,!s){if(null!=a)for(d={},y=0;y<e.attributes.length;y++)d[e.attributes[y].name]=e.attributes[y].value;(p||f)&&(p&&(f&&p.__html==f.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||A(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||A(e,i,t[i],n[i],r)}(e,v,d,i,s),p)t.__k=[];else if(y=t.props.children,S(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==g,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in v&&void 0!==(y=v.value)&&(y!==d.value||y!==e.value||"progress"===g&&!y)&&A(e,"value",y,d.value,!1),"checked"in v&&void 0!==(y=v.checked)&&y!==e.checked&&A(e,"checked",y,d.checked,!1))}return e}function j(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function F(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||j(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&F(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function N(e,t,n){return this.constructor(e,n)}function L(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],T(t,e=(!i&&o||t).__k=v(y,null,[e]),a||l,l,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),B(u,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),x(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,E.__r=0,c=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=d({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),g(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(x)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=v,t.createRef=function(){return{current:null}},t.h=v,t.hydrate=function e(t,n){L(t,n,e)},t.isValidElement=i,t.options=r,t.render=L,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Jy=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new Ig([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function Qy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var em=0;const{render:tm}=Xy;var nm=function(e){return"__private_"+em+++"_"+e}("updateUI");class rm extends Jy{constructor(){super(...arguments),Object.defineProperty(this,nm,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n}(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return Qy(this,nm)[nm]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&(tm(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),tm(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof rm)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{if(e instanceof t)return o=e,!1}))}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=Qy(this,nm))[nm])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var om=rm;const{debugLogger:im}=ry;var am=Yy,um=Yy,sm=om,cm=Jy,lm=im;am.Uppy=um,am.UIPlugin=sm,am.BasePlugin=cm,am.debugLogger=lm;class fm extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var pm=fm,dm=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new pm(e)}))};class hm extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var vm,gm,ym,mm,bm,wm=hm;function xm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Em=0;function Sm(e){return"__private_"+Em+++"_"+e}async function Cm(e){if(401===e.status)throw new wm;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var Dm=(gm=Sm("getPostResponseFunc"),ym=Sm("getUrl"),mm=Sm("errorHandler"),bm=vm=class e{constructor(e,t){Object.defineProperty(this,mm,{value:Am}),Object.defineProperty(this,ym,{value:Om}),Object.defineProperty(this,gm,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(xm(this,ym)[ym](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>dm(xm(this,ym)[ym](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(xm(this,gm)[gm](t)).then(Cm).catch(xm(this,mm)[mm]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>dm(xm(this,ym)[ym](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(xm(this,gm)[gm](n)).then(Cm).catch(xm(this,mm)[mm](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>dm(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(xm(this,gm)[gm](n)).then(Cm).catch(xm(this,mm)[mm](r,e))}},vm.VERSION="2.0.4",vm.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${vm.VERSION}`},bm);function Om(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Am(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${xm(this,ym)[ym](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var km,_m,Tm,Bm,Pm,jm={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))};let Fm,Nm;function Lm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Im=0;function Rm(e){return"__private_"+Im+++"_"+e}var Mm,zm,Hm=(km=Rm("queued"),_m=Rm("emitter"),Tm=Rm("isOpen"),Bm=Rm("socket"),Pm=Rm("handleMessage"),Fm=Symbol.for("uppy test: getSocket"),Nm=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,km,{writable:!0,value:[]}),Object.defineProperty(this,_m,{writable:!0,value:Mg()}),Object.defineProperty(this,Tm,{writable:!0,value:!1}),Object.defineProperty(this,Bm,{writable:!0,value:void 0}),Object.defineProperty(this,Pm,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return Lm(this,Tm)[Tm]}[Fm](){return Lm(this,Bm)[Bm]}[Nm](){return Lm(this,km)[km]}open(){Lm(this,Bm)[Bm]=new WebSocket(this.opts.target),Lm(this,Bm)[Bm].onopen=()=>{for(Lm(this,Tm)[Tm]=!0;Lm(this,km)[km].length>0&&Lm(this,Tm)[Tm];){const e=Lm(this,km)[km].shift();this.send(e.action,e.payload)}},Lm(this,Bm)[Bm].onclose=()=>{Lm(this,Tm)[Tm]=!1},Lm(this,Bm)[Bm].onmessage=Lm(this,Pm)[Pm]}close(){var e;null==(e=Lm(this,Bm)[Bm])||e.close()}send(e,t){Lm(this,Tm)[Tm]?Lm(this,Bm)[Bm].send(JSON.stringify({action:e,payload:t})):Lm(this,km)[km].push({action:e,payload:t})}on(e,t){Lm(this,_m)[_m].on(e,t)}emit(e,t){Lm(this,_m)[_m].emit(e,t)}once(e,t){Lm(this,_m)[_m].once(e,t)}}),$m={RequestClient:Dm,Provider:class extends Dm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||jm}},SearchProvider:class extends Dm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:Hm},Vm=zh((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function Um(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Zm=0;function Wm(e){return"__private_"+Zm+++"_"+e}var Gm=(Mm=Wm("emitter"),zm=Wm("events"),class{constructor(e){Object.defineProperty(this,Mm,{writable:!0,value:void 0}),Object.defineProperty(this,zm,{writable:!0,value:[]}),Um(this,Mm)[Mm]=e}on(e,t){return Um(this,zm)[zm].push([e,t]),Um(this,Mm)[Mm].on(e,t)}remove(){for(const[e,t]of Um(this,zm)[zm].splice(0))Um(this,Mm)[Mm].off(e,t)}});function qm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Km=0;function Ym(e){return"__private_"+Km+++"_"+e}var Xm=Ym("aliveTimer"),Jm=Ym("isDone"),Qm=Ym("onTimedOut"),eb=Ym("timeout"),tb=class{constructor(e,t){Object.defineProperty(this,Xm,{writable:!0,value:void 0}),Object.defineProperty(this,Jm,{writable:!0,value:!1}),Object.defineProperty(this,Qm,{writable:!0,value:void 0}),Object.defineProperty(this,eb,{writable:!0,value:void 0}),qm(this,eb)[eb]=e,qm(this,Qm)[Qm]=t}progress(){qm(this,Jm)[Jm]||qm(this,eb)[eb]>0&&(clearTimeout(qm(this,Xm)[Xm]),qm(this,Xm)[Xm]=setTimeout(qm(this,Qm)[Qm],qm(this,eb)[eb]))}done(){qm(this,Jm)[Jm]||(clearTimeout(qm(this,Xm)[Xm]),qm(this,Xm)[Xm]=null,qm(this,Jm)[Jm]=!0)}};function nb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var rb=0;function ob(e){return"__private_"+rb+++"_"+e}function ib(){return new Error("Cancelled")}var ab=ob("activeRequests"),ub=ob("queuedHandlers"),sb=ob("call"),cb=ob("queueNext"),lb=ob("next"),fb=ob("queue"),pb=ob("dequeue");function db(e){nb(this,ab)[ab]+=1;let t,n=!1;try{t=e()}catch(e){throw nb(this,ab)[ab]-=1,e}return{abort:()=>{n||(n=!0,nb(this,ab)[ab]-=1,t(),nb(this,cb)[cb]())},done:()=>{n||(n=!0,nb(this,ab)[ab]-=1,nb(this,cb)[cb]())}}}function hb(){queueMicrotask((()=>nb(this,lb)[lb]()))}function vb(){if(nb(this,ab)[ab]>=this.limit)return;if(0===nb(this,ub)[ub].length)return;const e=nb(this,ub)[ub].shift(),t=nb(this,sb)[sb](e.fn);e.abort=t.abort,e.done=t.done}function gb(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{nb(this,pb)[pb](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=nb(this,ub)[ub].findIndex((e=>n.priority>e.priority));return-1===r?nb(this,ub)[ub].push(n):nb(this,ub)[ub].splice(r,0,n),n}function yb(e){const t=nb(this,ub)[ub].indexOf(e);-1!==t&&nb(this,ub)[ub].splice(t,1)}var mb,bb,wb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,pb,{value:yb}),Object.defineProperty(this,fb,{value:gb}),Object.defineProperty(this,lb,{value:vb}),Object.defineProperty(this,cb,{value:hb}),Object.defineProperty(this,sb,{value:db}),Object.defineProperty(this,ab,{writable:!0,value:0}),Object.defineProperty(this,ub,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return nb(this,ab)[ab]<this.limit?nb(this,sb)[sb](e):nb(this,fb)[fb](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise(((r,i)=>{a=n.run((()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(e){n=Promise.reject(e)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=ib()}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},xb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Eb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Sb}=iy,{Provider:Cb,RequestClient:Db,Socket:Ob}=$m,{RateLimitedQueue:Ab,internalRateLimitedQueue:kb}=wb;function _b(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),xb(e)?(n=new pm(n,e),n):(n.request=e,n)}function Tb(e){return e.data.slice(0,e.data.size,e.meta.type)}var Bb=(bb=mb=class extends Jy{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Eb;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return xb(t)&&(n=new pm(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),kb in this.opts?this.requests=this.opts[kb]:this.requests=new Ab(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=Tb(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{const t=this.getOptions(e),r=Tb(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new Gm(this.uppy);const a=new tb(r.timeout,(()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),u=Sb();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${u} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const c=r.getResponseData(i.responseText,i),l=_b(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:c};return this.uppy.emit("upload-error",e,l,f),n(l)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=_b(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)})),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{i.setRequestHeader(e,t.headers[e])})),i.send(o),()=>{a.done(),i.abort()}}));this.onFileRemove(e.id,(()=>{s.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{s.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{o[t]=e.meta[t]})),new(e.remote.providerOptions.provider?Cb:Db)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new Ob({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new Gm(this.uppy),this.onFileRemove(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),this.onRetryAll(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),u.on("progress",(t=>Vm(this,t,e))),u.on("success",(r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),u.on("error",(n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)}));const s=this.requests.run((()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close())))})).catch((t=>{this.uppy.emit("upload-error",e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new tb(this.opts.timeout,(()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));c(e),n(e)})),c=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))};u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()})),u.upload.addEventListener("progress",(t=>{s.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),u.addEventListener("load",(r=>{if(s.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit("upload-success",e,o)})),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,c(o),n(o)})),u.addEventListener("error",(()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return c(e),n(e)})),this.uppy.on("cancel-all",(()=>{s.done(),u.abort()})),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{u.setRequestHeader(e,this.opts.headers[e])})),u.send(a),e.forEach((e=>{this.uppy.emit("upload-started",e)}))}))}uploadFiles(e){const t=e.map(((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}));return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,o)))).then((()=>({successful:t,failed:n})))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[kb]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},mb.VERSION="2.0.6",bb),Pb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function jb(e){var t={exports:{}};return e(t,t.exports),t.exports}var Fb,Nb,Lb=function(e){return e&&e.Math==Math&&e},Ib=Lb("object"==typeof globalThis&&globalThis)||Lb("object"==typeof window&&window)||Lb("object"==typeof self&&self)||Lb("object"==typeof Pb&&Pb)||function(){return this}()||Function("return this")(),Rb=Object.defineProperty,Mb=function(e,t){try{Rb(Ib,e,{value:t,configurable:!0,writable:!0})}catch(n){Ib[e]=t}return t},zb=Ib["__core-js_shared__"]||Mb("__core-js_shared__",{}),Hb=jb((function(e){(e.exports=function(e,t){return zb[e]||(zb[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),$b=Function.prototype,Vb=$b.bind,Ub=$b.call,Zb=Vb&&Vb.bind(Ub),Wb=Vb?function(e){return e&&Zb(Ub,e)}:function(e){return e&&function(){return Ub.apply(e,arguments)}},Gb=Ib.TypeError,qb=function(e){if(null==e)throw Gb("Can't call method on "+e);return e},Kb=Ib.Object,Yb=function(e){return Kb(qb(e))},Xb=Wb({}.hasOwnProperty),Jb=Object.hasOwn||function(e,t){return Xb(Yb(e),t)},Qb=0,ew=Math.random(),tw=Wb(1..toString),nw=function(e){return"Symbol("+(void 0===e?"":e)+")_"+tw(++Qb+ew,36)},rw=function(e){return"function"==typeof e},ow=function(e){return rw(e)?e:void 0},iw=function(e,t){return arguments.length<2?ow(Ib[e]):Ib[e]&&Ib[e][t]},aw=iw("navigator","userAgent")||"",uw=Ib.process,sw=Ib.Deno,cw=uw&&uw.versions||sw&&sw.version,lw=cw&&cw.v8;lw&&(Nb=(Fb=lw.split("."))[0]>0&&Fb[0]<4?1:+(Fb[0]+Fb[1])),!Nb&&aw&&(!(Fb=aw.match(/Edge\/(\d+)/))||Fb[1]>=74)&&(Fb=aw.match(/Chrome\/(\d+)/))&&(Nb=+Fb[1]);var fw=Nb,pw=function(e){try{return!!e()}catch(e){return!0}},dw=!!Object.getOwnPropertySymbols&&!pw((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&fw&&fw<41})),hw=dw&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vw=Hb("wks"),gw=Ib.Symbol,yw=gw&&gw.for,mw=hw?gw:gw&&gw.withoutSetter||nw,bw=function(e){if(!Jb(vw,e)||!dw&&"string"!=typeof vw[e]){var t="Symbol."+e;dw&&Jb(gw,e)?vw[e]=gw[e]:vw[e]=hw&&yw?yw(t):mw(t)}return vw[e]},ww={};ww[bw("toStringTag")]="z";var xw="[object z]"===String(ww),Ew=!pw((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Sw=function(e){return"object"==typeof e?null!==e:rw(e)},Cw=Ib.document,Dw=Sw(Cw)&&Sw(Cw.createElement),Ow=function(e){return Dw?Cw.createElement(e):{}},Aw=!Ew&&!pw((function(){return 7!=Object.defineProperty(Ow("div"),"a",{get:function(){return 7}}).a})),kw=Ib.String,_w=Ib.TypeError,Tw=function(e){if(Sw(e))return e;throw _w(kw(e)+" is not an object")},Bw=Function.prototype.call,Pw=Bw.bind?Bw.bind(Bw):function(){return Bw.apply(Bw,arguments)},jw=Wb({}.isPrototypeOf),Fw=Ib.Object,Nw=hw?function(e){return"symbol"==typeof e}:function(e){var t=iw("Symbol");return rw(t)&&jw(t.prototype,Fw(e))},Lw=Ib.String,Iw=function(e){try{return Lw(e)}catch(e){return"Object"}},Rw=Ib.TypeError,Mw=function(e){if(rw(e))return e;throw Rw(Iw(e)+" is not a function")},zw=function(e,t){var n=e[t];return null==n?void 0:Mw(n)},Hw=Ib.TypeError,$w=Ib.TypeError,Vw=bw("toPrimitive"),Uw=function(e){var t=function(e,t){if(!Sw(e)||Nw(e))return e;var n,r=zw(e,Vw);if(r){if(void 0===t&&(t="default"),n=Pw(r,e,t),!Sw(n)||Nw(n))return n;throw $w("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&rw(n=e.toString)&&!Sw(r=Pw(n,e)))return r;if(rw(n=e.valueOf)&&!Sw(r=Pw(n,e)))return r;if("string"!==t&&rw(n=e.toString)&&!Sw(r=Pw(n,e)))return r;throw Hw("Can't convert object to primitive value")}(e,t)}(e,"string");return Nw(t)?t:t+""},Zw=Ib.TypeError,Ww=Object.defineProperty,Gw={f:Ew?Ww:function(e,t,n){if(Tw(e),t=Uw(t),Tw(n),Aw)try{return Ww(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Zw("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},qw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Kw=Ew?function(e,t,n){return Gw.f(e,t,qw(1,n))}:function(e,t,n){return e[t]=n,e},Yw=Wb(Function.toString);rw(zb.inspectSource)||(zb.inspectSource=function(e){return Yw(e)});var Xw,Jw,Qw,ex=zb.inspectSource,tx=Ib.WeakMap,nx=rw(tx)&&/native code/.test(ex(tx)),rx=Hb("keys"),ox=function(e){return rx[e]||(rx[e]=nw(e))},ix={},ax=Ib.TypeError,ux=Ib.WeakMap;if(nx||zb.state){var sx=zb.state||(zb.state=new ux),cx=Wb(sx.get),lx=Wb(sx.has),fx=Wb(sx.set);Xw=function(e,t){if(lx(sx,e))throw new ax("Object already initialized");return t.facade=e,fx(sx,e,t),t},Jw=function(e){return cx(sx,e)||{}},Qw=function(e){return lx(sx,e)}}else{var px=ox("state");ix[px]=!0,Xw=function(e,t){if(Jb(e,px))throw new ax("Object already initialized");return t.facade=e,Kw(e,px,t),t},Jw=function(e){return Jb(e,px)?e[px]:{}},Qw=function(e){return Jb(e,px)}}var dx={set:Xw,get:Jw,has:Qw,enforce:function(e){return Qw(e)?Jw(e):Xw(e,{})},getterFor:function(e){return function(t){var n;if(!Sw(t)||(n=Jw(t)).type!==e)throw ax("Incompatible receiver, "+e+" required");return n}}},hx=Function.prototype,vx=Ew&&Object.getOwnPropertyDescriptor,gx=Jb(hx,"name"),yx={EXISTS:gx,PROPER:gx&&"something"===function(){}.name,CONFIGURABLE:gx&&(!Ew||Ew&&vx(hx,"name").configurable)},mx=jb((function(e){var t=yx.CONFIGURABLE,n=dx.get,r=dx.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;rw(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Jb(i,"name")||t&&i.name!==f)&&Kw(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Ib?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:Kw(e,n,i)):c?e[n]=i:Mb(n,i)})(Function.prototype,"toString",(function(){return rw(this)&&n(this).source||ex(this)}))})),bx=Wb({}.toString),wx=Wb("".slice),xx=function(e){return wx(bx(e),8,-1)},Ex=bw("toStringTag"),Sx=Ib.Object,Cx="Arguments"==xx(function(){return arguments}()),Dx=xw?xx:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Sx(e),Ex))?n:Cx?xx(t):"Object"==(r=xx(t))&&rw(t.callee)?"Arguments":r},Ox=xw?{}.toString:function(){return"[object "+Dx(this)+"]"};xw||mx(Object.prototype,"toString",Ox,{unsafe:!0});var Ax={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},kx=Ow("span").classList,_x=kx&&kx.constructor&&kx.constructor.prototype,Tx=_x===Object.prototype?void 0:_x,Bx=Wb(Wb.bind),Px=function(e,t){return Mw(e),void 0===t?e:Bx?Bx(e,t):function(){return e.apply(t,arguments)}},jx=Ib.Object,Fx=Wb("".split),Nx=pw((function(){return!jx("z").propertyIsEnumerable(0)}))?function(e){return"String"==xx(e)?Fx(e,""):jx(e)}:jx,Lx=Math.ceil,Ix=Math.floor,Rx=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ix:Lx)(t)},Mx=Math.min,zx=function(e){return e>0?Mx(Rx(e),9007199254740991):0},Hx=function(e){return zx(e.length)},$x=Array.isArray||function(e){return"Array"==xx(e)},Vx=function(){},Ux=[],Zx=iw("Reflect","construct"),Wx=/^\s*(?:class|function)\b/,Gx=Wb(Wx.exec),qx=!Wx.exec(Vx),Kx=function(e){if(!rw(e))return!1;try{return Zx(Vx,Ux,e),!0}catch(e){return!1}},Yx=!Zx||pw((function(){var e;return Kx(Kx.call)||!Kx(Object)||!Kx((function(){e=!0}))||e}))?function(e){if(!rw(e))return!1;switch(Dx(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return qx||!!Gx(Wx,ex(e))}:Kx,Xx=bw("species"),Jx=Ib.Array,Qx=function(e,t){return new(function(e){var t;return $x(e)&&(t=e.constructor,(Yx(t)&&(t===Jx||$x(t.prototype))||Sw(t)&&null===(t=t[Xx]))&&(t=void 0)),void 0===t?Jx:t}(e))(0===t?0:t)},eE=Wb([].push),tE=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var p,d,h=Yb(s),v=Nx(h),g=Px(c,l),y=Hx(v),m=0,b=f||Qx,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(d=g(p=v[m],m,h),e))if(t)w[m]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:eE(w,p)}else switch(e){case 4:return!1;case 7:eE(w,p)}return i?-1:r||o?o:w}},nE={forEach:tE(0),map:tE(1),filter:tE(2),some:tE(3),every:tE(4),find:tE(5),findIndex:tE(6),filterReject:tE(7)},rE=function(e,t){var n=[][e];return!!n&&pw((function(){n.call(null,t||function(){throw 1},1)}))},oE=nE.forEach,iE=rE("forEach")?[].forEach:function(e){return oE(this,e,arguments.length>1?arguments[1]:void 0)},aE=function(e){if(e&&e.forEach!==iE)try{Kw(e,"forEach",iE)}catch(t){e.forEach=iE}};for(var uE in Ax)Ax[uE]&&aE(Ib[uE]&&Ib[uE].prototype);aE(Tx);var sE={}.propertyIsEnumerable,cE=Object.getOwnPropertyDescriptor,lE=cE&&!sE.call({1:2},1)?function(e){var t=cE(this,e);return!!t&&t.enumerable}:sE,fE={f:lE},pE=function(e){return Nx(qb(e))},dE=Object.getOwnPropertyDescriptor,hE={f:Ew?dE:function(e,t){if(e=pE(e),t=Uw(t),Aw)try{return dE(e,t)}catch(e){}if(Jb(e,t))return qw(!Pw(fE.f,e,t),e[t])}},vE=Math.max,gE=Math.min,yE=function(e,t){var n=Rx(e);return n<0?vE(n+t,0):gE(n,t)},mE=function(e){return function(t,n,r){var o,i=pE(t),a=Hx(i),u=yE(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},bE={includes:mE(!0),indexOf:mE(!1)},wE=bE.indexOf,xE=Wb([].push),EE=function(e,t){var n,r=pE(e),o=0,i=[];for(n in r)!Jb(ix,n)&&Jb(r,n)&&xE(i,n);for(;t.length>o;)Jb(r,n=t[o++])&&(~wE(i,n)||xE(i,n));return i},SE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],CE=SE.concat("length","prototype"),DE={f:Object.getOwnPropertyNames||function(e){return EE(e,CE)}},OE={f:Object.getOwnPropertySymbols},AE=Wb([].concat),kE=iw("Reflect","ownKeys")||function(e){var t=DE.f(Tw(e)),n=OE.f;return n?AE(t,n(e)):t},_E=function(e,t){for(var n=kE(t),r=Gw.f,o=hE.f,i=0;i<n.length;i++){var a=n[i];Jb(e,a)||r(e,a,o(t,a))}},TE=/#|\.prototype\./,BE=function(e,t){var n=jE[PE(e)];return n==NE||n!=FE&&(rw(t)?pw(t):!!t)},PE=BE.normalize=function(e){return String(e).replace(TE,".").toLowerCase()},jE=BE.data={},FE=BE.NATIVE="N",NE=BE.POLYFILL="P",LE=BE,IE=hE.f,RE=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?Ib:c?Ib[u]||Mb(u,{}):(Ib[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=IE(n,r))&&a.value:n[r],!LE(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;_E(i,o)}(e.sham||o&&o.sham)&&Kw(i,"sham",!0),mx(n,r,i,e)}},ME=Object.keys||function(e){return EE(e,SE)},zE=pw((function(){ME(1)}));
|
|
60
|
+
/*!
|
|
61
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
62
|
+
*
|
|
63
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
64
|
+
* Released under the MIT License.
|
|
65
|
+
*/function HE(e){return"[object Object]"===Object.prototype.toString.call(e)}RE({target:"Object",stat:!0,forced:zE},{keys:function(e){return ME(Yb(e))}});var $E={isHistory(e){return!1!==HE(t=e)&&(void 0===(n=t.constructor)||!1!==HE(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||Nf.isOperationList(e.redos[0]))&&(0===e.undos.length||Nf.isOperationList(e.undos[0]));var t,n,r}},VE=new WeakMap,UE=new WeakMap,ZE={isHistoryEditor:e=>$E.isHistory(e.history)&&Af.isEditor(e),isMerging:e=>UE.get(e),isSaving:e=>VE.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=ZE.isMerging(e);UE.set(e,!1),t(),UE.set(e,n)},withoutSaving(e,t){var n=ZE.isSaving(e);VE.set(e,!1),t(),VE.set(e,n)}},WE=Ib.String,GE=function(e){if("Symbol"===Dx(e))throw TypeError("Cannot convert a Symbol value to a string");return WE(e)},qE=function(){var e=Tw(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},KE=yx.PROPER,YE=RegExp.prototype,XE=YE.toString,JE=Wb(qE),QE=pw((function(){return"/a/b"!=XE.call({source:"a",flags:"b"})})),eS=KE&&"toString"!=XE.name;(QE||eS)&&mx(RegExp.prototype,"toString",(function(){var e=Tw(this),t=GE(e.source),n=e.flags;return"/"+t+"/"+GE(void 0===n&&jw(YE,e)&&!("flags"in YE)?JE(e):n)}),{unsafe:!0});var tS,nS=Ew?Object.defineProperties:function(e,t){Tw(e);for(var n,r=pE(t),o=ME(t),i=o.length,a=0;i>a;)Gw.f(e,n=o[a++],r[n]);return e},rS=iw("document","documentElement"),oS=ox("IE_PROTO"),iS=function(){},aS=function(e){return"<script>"+e+"<\/script>"},uS=function(e){e.write(aS("")),e.close();var t=e.parentWindow.Object;return e=null,t},sS=function(){try{tS=new ActiveXObject("htmlfile")}catch(e){}var e,t;sS="undefined"!=typeof document?document.domain&&tS?uS(tS):((t=Ow("iframe")).style.display="none",rS.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(aS("document.F=Object")),e.close(),e.F):uS(tS);for(var n=SE.length;n--;)delete sS.prototype[SE[n]];return sS()};ix[oS]=!0;var cS=Object.create||function(e,t){var n;return null!==e?(iS.prototype=Tw(e),n=new iS,iS.prototype=null,n[oS]=e):n=sS(),void 0===t?n:nS(n,t)},lS=bw("unscopables"),fS=Array.prototype;null==fS[lS]&&Gw.f(fS,lS,{configurable:!0,value:cS(null)});var pS=function(e){fS[lS][e]=!0},dS=bE.includes;RE({target:"Array",proto:!0},{includes:function(e){return dS(this,e,arguments.length>1?arguments[1]:void 0)}}),pS("includes");var hS=bw("match"),vS=function(e){var t;return Sw(e)&&(void 0!==(t=e[hS])?!!t:"RegExp"==xx(e))},gS=Ib.TypeError,yS=function(e){if(vS(e))throw gS("The method doesn't accept regular expressions");return e},mS=bw("match"),bS=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[mS]=!1,"/./"[e](t)}catch(e){}}return!1},wS=Wb("".indexOf);RE({target:"String",proto:!0,forced:!bS("includes")},{includes:function(e){return!!~wS(GE(qb(this)),GE(yS(e)),arguments.length>1?arguments[1]:void 0)}});var xS=/"/g,ES=Wb("".replace);RE({target:"String",proto:!0,forced:pw((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=GE(qb(this)),r="<a",(r+=' name="'+ES(GE(t),xS,""")+'"')+">"+n+"</a>";var t,n,r}});var SS=function(e,t,n){var r,o;Tw(e);try{if(!(r=zw(e,"return"))){if("throw"===t)throw n;return n}r=Pw(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Tw(r),n},CS=function(e,t,n,r){try{return r?t(Tw(n)[0],n[1]):t(n)}catch(t){SS(e,"throw",t)}},DS={},OS=bw("iterator"),AS=Array.prototype,kS=function(e){return void 0!==e&&(DS.Array===e||AS[OS]===e)},_S=function(e,t,n){var r=Uw(t);r in e?Gw.f(e,r,qw(0,n)):e[r]=n},TS=bw("iterator"),BS=function(e){if(null!=e)return zw(e,TS)||zw(e,"@@iterator")||DS[Dx(e)]},PS=Ib.TypeError,jS=function(e,t){var n=arguments.length<2?BS(e):t;if(Mw(n))return Tw(Pw(n,e));throw PS(Iw(e)+" is not iterable")},FS=Ib.Array,NS=bw("iterator"),LS=!1;try{var IS=0,RS={next:function(){return{done:!!IS++}},return:function(){LS=!0}};RS[NS]=function(){return this},Array.from(RS,(function(){throw 2}))}catch(sA){}var MS=function(e,t){if(!t&&!LS)return!1;var n=!1;try{var r={};r[NS]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},zS=!MS((function(e){Array.from(e)}));RE({target:"Array",stat:!0,forced:zS},{from:function(e){var t=Yb(e),n=Yx(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Px(o,r>2?arguments[2]:void 0));var a,u,s,c,l,f,p=BS(t),d=0;if(!p||this==FS&&kS(p))for(a=Hx(t),u=n?new this(a):FS(a);a>d;d++)f=i?o(t[d],d):t[d],_S(u,d,f);else for(l=(c=jS(t,p)).next,u=n?new this:[];!(s=Pw(l,c)).done;d++)f=i?CS(c,o,[s.value,d],!0):s.value,_S(u,d,f);return u.length=d,u}});var HS,$S,VS,US=Wb("".charAt),ZS=Wb("".charCodeAt),WS=Wb("".slice),GS=function(e){return function(t,n){var r,o,i=GE(qb(t)),a=Rx(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ZS(i,a))<55296||r>56319||a+1===u||(o=ZS(i,a+1))<56320||o>57343?e?US(i,a):r:e?WS(i,a,a+2):o-56320+(r-55296<<10)+65536}},qS={codeAt:GS(!1),charAt:GS(!0)},KS=!pw((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),YS=ox("IE_PROTO"),XS=Ib.Object,JS=XS.prototype,QS=KS?XS.getPrototypeOf:function(e){var t=Yb(e);if(Jb(t,YS))return t[YS];var n=t.constructor;return rw(n)&&t instanceof n?n.prototype:t instanceof XS?JS:null},eC=bw("iterator"),tC=!1;[].keys&&("next"in(VS=[].keys())?($S=QS(QS(VS)))!==Object.prototype&&(HS=$S):tC=!0);var nC=null==HS||pw((function(){var e={};return HS[eC].call(e)!==e}));nC&&(HS={}),rw(HS[eC])||mx(HS,eC,(function(){return this}));var rC={IteratorPrototype:HS,BUGGY_SAFARI_ITERATORS:tC},oC=Gw.f,iC=bw("toStringTag"),aC=function(e,t,n){e&&!Jb(e=n?e:e.prototype,iC)&&oC(e,iC,{configurable:!0,value:t})},uC=rC.IteratorPrototype,sC=function(){return this},cC=Ib.String,lC=Ib.TypeError,fC=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Wb(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Tw(n),function(e){if("object"==typeof e||rw(e))return e;throw lC("Can't set "+cC(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),pC=yx.PROPER,dC=yx.CONFIGURABLE,hC=rC.IteratorPrototype,vC=rC.BUGGY_SAFARI_ITERATORS,gC=bw("iterator"),yC=function(){return this},mC=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=cS(uC,{next:qw(1,n)}),aC(e,o,!1),DS[o]=sC}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!vC&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",p=!1,d=e.prototype,h=d[gC]||d["@@iterator"]||o&&d[o],v=!vC&&h||l(o),g="Array"==t&&d.entries||h;if(g&&(u=QS(g.call(new e)))!==Object.prototype&&u.next&&(QS(u)!==hC&&(fC?fC(u,hC):rw(u[gC])||mx(u,gC,yC)),aC(u,f,!0)),pC&&"values"==o&&h&&"values"!==h.name&&(dC?Kw(d,"name","values"):(p=!0,v=function(){return Pw(h,this)})),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(vC||p||!(c in d))&&mx(d,c,s[c]);else RE({target:t,proto:!0,forced:vC||p},s);return d[gC]!==v&&mx(d,gC,v,{name:o}),DS[t]=v,s},bC=qS.charAt,wC=dx.set,xC=dx.getterFor("String Iterator");mC(String,"String",(function(e){wC(this,{type:"String Iterator",string:GE(e),index:0})}),(function(){var e,t=xC(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=bC(n,r),t.index+=e.length,{value:e,done:!1})}));var EC,SC=hE.f,CC=Wb("".endsWith),DC=Wb("".slice),OC=Math.min,AC=bS("endsWith"),kC=!(AC||(EC=SC(String.prototype,"endsWith"),!EC||EC.writable));RE({target:"String",proto:!0,forced:!kC&&!AC},{endsWith:function(e){var t=GE(qb(this));yS(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:OC(zx(n),r),i=GE(e);return CC?CC(t,i,o):DC(t,o-i.length,o)===i}});var _C=Wb([].join),TC=Nx!=Object,BC=rE("join",",");RE({target:"Array",proto:!0,forced:TC||!BC},{join:function(e){return _C(pE(this),void 0===e?",":e)}});var PC=bw("species"),jC=function(e){return fw>=51||!pw((function(){var t=[];return(t.constructor={})[PC]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},FC=nE.map,NC=jC("map");RE({target:"Array",proto:!0,forced:!NC},{map:function(e){return FC(this,e,arguments.length>1?arguments[1]:void 0)}});var LC=Ib.RegExp,IC=pw((function(){var e=LC("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),RC=IC||pw((function(){return!LC("a","y").sticky})),MC={BROKEN_CARET:IC||pw((function(){var e=LC("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:RC,UNSUPPORTED_Y:IC},zC=Ib.RegExp,HC=pw((function(){var e=zC(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),$C=Ib.RegExp,VC=pw((function(){var e=$C("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),UC=dx.get,ZC=Hb("native-string-replace",String.prototype.replace),WC=RegExp.prototype.exec,GC=WC,qC=Wb("".charAt),KC=Wb("".indexOf),YC=Wb("".replace),XC=Wb("".slice),JC=function(){var e=/a/,t=/b*/g;return Pw(WC,e,"a"),Pw(WC,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),QC=MC.BROKEN_CARET,eD=void 0!==/()??/.exec("")[1];(JC||eD||QC||HC||VC)&&(GC=function(e){var t,n,r,o,i,a,u,s=this,c=UC(s),l=GE(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=Pw(GC,f,l),s.lastIndex=f.lastIndex,t;var p=c.groups,d=QC&&s.sticky,h=Pw(qE,s),v=s.source,g=0,y=l;if(d&&(h=YC(h,"y",""),-1===KC(h,"g")&&(h+="g"),y=XC(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==qC(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),eD&&(n=new RegExp("^"+v+"$(?!\\s)",h)),JC&&(r=s.lastIndex),o=Pw(WC,d?n:s,y),d?o?(o.input=XC(o.input,g),o[0]=XC(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:JC&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),eD&&o&&o.length>1&&Pw(ZC,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=cS(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var tD=GC;RE({target:"RegExp",proto:!0,forced:/./.exec!==tD},{exec:tD});var nD=Function.prototype,rD=nD.apply,oD=nD.bind,iD=nD.call,aD="object"==typeof Reflect&&Reflect.apply||(oD?iD.bind(rD):function(){return iD.apply(rD,arguments)}),uD=bw("species"),sD=RegExp.prototype,cD=function(e,t,n,r){var o=bw(e),i=!pw((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!pw((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[uD]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Wb(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Wb(e),s=t.exec;return s===tD||s===sD.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));mx(String.prototype,e,s[0]),mx(sD,o,s[1])}r&&Kw(sD[o],"sham",!0)},lD=qS.charAt,fD=function(e,t,n){return t+(n?lD(e,t).length:1)},pD=Math.floor,dD=Wb("".charAt),hD=Wb("".replace),vD=Wb("".slice),gD=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,yD=/\$([$&'`]|\d{1,2})/g,mD=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=yD;return void 0!==o&&(o=Yb(o),s=gD),hD(i,s,(function(i,s){var c;switch(dD(s,0)){case"$":return"$";case"&":return e;case"`":return vD(t,0,n);case"'":return vD(t,a);case"<":c=o[vD(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=pD(l/10);return 0===f?i:f<=u?void 0===r[f-1]?dD(s,1):r[f-1]+dD(s,1):i}c=r[l-1]}return void 0===c?"":c}))},bD=Ib.TypeError,wD=function(e,t){var n=e.exec;if(rw(n)){var r=Pw(n,e,t);return null!==r&&Tw(r),r}if("RegExp"===xx(e))return Pw(tD,e,t);throw bD("RegExp#exec called on incompatible receiver")},xD=bw("replace"),ED=Math.max,SD=Math.min,CD=Wb([].concat),DD=Wb([].push),OD=Wb("".indexOf),AD=Wb("".slice),kD="$0"==="a".replace(/./,"$0"),_D=!!/./[xD]&&""===/./[xD]("a","$0");cD("replace",(function(e,t,n){var r=_D?"$":"$0";return[function(e,n){var r=qb(this),o=null==e?void 0:zw(e,xD);return o?Pw(o,e,r,n):Pw(t,GE(r),e,n)},function(e,o){var i=Tw(this),a=GE(e);if("string"==typeof o&&-1===OD(o,r)&&-1===OD(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=rw(o);s||(o=GE(o));var c=i.global;if(c){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var p=wD(i,a);if(null===p)break;if(DD(f,p),!c)break;""===GE(p[0])&&(i.lastIndex=fD(a,zx(i.lastIndex),l))}for(var d,h="",v=0,g=0;g<f.length;g++){for(var y=GE((p=f[g])[0]),m=ED(SD(Rx(p.index),a.length),0),b=[],w=1;w<p.length;w++)DD(b,void 0===(d=p[w])?d:String(d));var x=p.groups;if(s){var E=CD([y],b,m,a);void 0!==x&&DD(E,x);var S=GE(aD(o,void 0,E))}else S=mD(y,a,m,b,x,o);m>=v&&(h+=AD(a,v,m)+S,v=m+y.length)}return h+AD(a,v)}]}),!!pw((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!kD||_D);
|
|
66
|
+
/*! *****************************************************************************
|
|
67
|
+
Copyright (c) Microsoft Corporation.
|
|
68
|
+
|
|
69
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
70
|
+
purpose with or without fee is hereby granted.
|
|
71
|
+
|
|
72
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
73
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
74
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
75
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
76
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
77
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
78
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
79
|
+
***************************************************************************** */
|
|
80
|
+
var TD=function(e,t){return TD=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},TD(e,t)};function BD(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}TD(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var PD=function(){return PD=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},PD.apply(this,arguments)};function jD(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function FD(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ND(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var LD=0,ID=function(){this.id=""+LD++},RD=dx.set,MD=dx.getterFor("Array Iterator"),zD=mC(Array,"Array",(function(e,t){RD(this,{type:"Array Iterator",target:pE(e),index:0,kind:t})}),(function(){var e=MD(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");DS.Arguments=DS.Array,pS("keys"),pS("values"),pS("entries");var HD=function(e,t,n){for(var r in t)mx(e,r,t[r],n);return e},$D=Ib.Array,VD=Math.max,UD=function(e,t,n){for(var r=Hx(e),o=yE(t,r),i=yE(void 0===n?r:n,r),a=$D(VD(i-o,0)),u=0;o<i;o++,u++)_S(a,u,e[o]);return a.length=u,a},ZD=DE.f,WD="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],GD={f:function(e){return WD&&"Window"==xx(e)?function(e){try{return ZD(e)}catch(e){return UD(WD)}}(e):ZD(pE(e))}},qD=pw((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),KD=Object.isExtensible,YD=pw((function(){KD(1)}))||qD?function(e){return!!Sw(e)&&(!qD||"ArrayBuffer"!=xx(e))&&(!KD||KD(e))}:KD,XD=!pw((function(){return Object.isExtensible(Object.preventExtensions({}))})),JD=jb((function(e){var t=Gw.f,n=!1,r=nw("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=DE.f,t=Wb([].splice),o={};o[r]=1,e(o).length&&(DE.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},RE({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:GD.f}))},fastKey:function(e,t){if(!Sw(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Jb(e,r)){if(!YD(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Jb(e,r)){if(!YD(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return XD&&n&&YD(e)&&!Jb(e,r)&&i(e),e}};ix[r]=!0})),QD=Ib.TypeError,eO=function(e,t){this.stopped=e,this.result=t},tO=eO.prototype,nO=function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),h=Px(t,l),v=function(e){return r&&SS(r,"normal",e),new eO(!0,e)},g=function(e){return f?(Tw(e),d?h(e[0],e[1],v):h(e[0],e[1])):d?h(e,v):h(e)};if(p)r=e;else{if(!(o=BS(e)))throw QD(Iw(e)+" is not iterable");if(kS(o)){for(i=0,a=Hx(e);a>i;i++)if((u=g(e[i]))&&jw(tO,u))return u;return new eO(!1)}r=jS(e,o)}for(s=r.next;!(c=Pw(s,r)).done;){try{u=g(c.value)}catch(e){SS(r,"throw",e)}if("object"==typeof u&&u&&jw(tO,u))return u}return new eO(!1)},rO=Ib.TypeError,oO=function(e,t){if(jw(t,e))return e;throw rO("Incorrect invocation")},iO=function(e,t,n){var r,o;return fC&&rw(r=t.constructor)&&r!==n&&Sw(o=r.prototype)&&o!==n.prototype&&fC(e,o),e},aO=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Ib[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=Wb(u[e]);mx(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Sw(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Sw(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Sw(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(LE(e,!rw(a)||!(o||u.forEach&&!pw((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),JD.enable();else if(LE(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=pw((function(){f.has(1)})),h=MS((function(e){new a(e)})),v=!o&&pw((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){oO(e,u);var n=iO(new a,e,s);return null!=t&&nO(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(d||v)&&(l("delete"),l("has"),r&&l("get")),(v||p)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,RE({global:!0,forced:s!=a},c),aC(s,e),o||n.setStrong(s,e,r),s},uO=JD.getWeakData,sO=dx.set,cO=dx.getterFor,lO=nE.find,fO=nE.findIndex,pO=Wb([].splice),dO=0,hO=function(e){return e.frozen||(e.frozen=new vO)},vO=function(){this.entries=[]},gO=function(e,t){return lO(e.entries,(function(e){return e[0]===t}))};vO.prototype={get:function(e){var t=gO(this,e);if(t)return t[1]},has:function(e){return!!gO(this,e)},set:function(e,t){var n=gO(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=fO(this.entries,(function(t){return t[0]===e}));return~t&&pO(this.entries,t,1),!!~t}};var yO,mO={getConstructor:function(e,t,n,r){var o=e((function(e,o){oO(e,i),sO(e,{type:t,id:dO++,frozen:void 0}),null!=o&&nO(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=cO(t),u=function(e,t,n){var r=a(e),o=uO(Tw(t),!0);return!0===o?hO(r).set(t,n):o[r.id]=n,e};return HD(i,{delete:function(e){var t=a(this);if(!Sw(e))return!1;var n=uO(e);return!0===n?hO(t).delete(e):n&&Jb(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Sw(e))return!1;var n=uO(e);return!0===n?hO(t).has(e):n&&Jb(n,t.id)}}),HD(i,n?{get:function(e){var t=a(this);if(Sw(e)){var n=uO(e);return!0===n?hO(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},bO=dx.enforce,wO=!Ib.ActiveXObject&&"ActiveXObject"in Ib,xO=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},EO=aO("WeakMap",xO,mO);if(nx&&wO){yO=mO.getConstructor(xO,"WeakMap",!0),JD.enable();var SO=EO.prototype,CO=Wb(SO.delete),DO=Wb(SO.has),OO=Wb(SO.get),AO=Wb(SO.set);HD(SO,{delete:function(e){if(Sw(e)&&!YD(e)){var t=bO(this);return t.frozen||(t.frozen=new yO),CO(this,e)||t.frozen.delete(e)}return CO(this,e)},has:function(e){if(Sw(e)&&!YD(e)){var t=bO(this);return t.frozen||(t.frozen=new yO),DO(this,e)||t.frozen.has(e)}return DO(this,e)},get:function(e){if(Sw(e)&&!YD(e)){var t=bO(this);return t.frozen||(t.frozen=new yO),DO(this,e)?OO(this,e):t.frozen.get(e)}return OO(this,e)},set:function(e,t){if(Sw(e)&&!YD(e)){var n=bO(this);n.frozen||(n.frozen=new yO),DO(this,e)?AO(this,e,t):n.frozen.set(e,t)}else AO(this,e,t);return this}})}var kO=bw("iterator"),_O=bw("toStringTag"),TO=zD.values,BO=function(e,t){if(e){if(e[kO]!==TO)try{Kw(e,kO,TO)}catch(t){e[kO]=TO}if(e[_O]||Kw(e,_O,t),Ax[t])for(var n in zD)if(e[n]!==zD[n])try{Kw(e,n,zD[n])}catch(t){e[n]=zD[n]}}};for(var PO in Ax)BO(Ib[PO]&&Ib[PO].prototype,PO);BO(Tx,"DOMTokenList");var jO=new WeakMap,FO=new WeakMap,NO=new WeakMap,LO=new WeakMap,IO=new WeakMap,RO=new WeakMap,MO=new WeakMap,zO=new WeakMap,HO=new WeakMap,$O=new WeakMap,VO=new WeakMap,UO=new WeakMap,ZO=new WeakMap,WO=new WeakMap,GO=new WeakMap,qO=new WeakMap,KO=new WeakMap,YO=new WeakMap,XO=new WeakMap,JO=new WeakMap,QO=new WeakMap,eA=new WeakMap,tA=new WeakMap,nA=new WeakMap,rA=new WeakMap,oA=nE.find,iA=!0;"find"in[]&&Array(1).find((function(){iA=!1})),RE({target:"Array",proto:!0,forced:iA},{find:function(e){return oA(this,e,arguments.length>1?arguments[1]:void 0)}}),pS("find"),RE({global:!0},{globalThis:Ib});const aA=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Zd&&(Td.fn.css=Zd),Xd&&(Td.fn.append=Xd),Bd&&(Td.fn.addClass=Bd),Pd&&(Td.fn.removeClass=Pd),jd&&(Td.fn.hasClass=jd),Rd&&(Td.fn.on=Rd),sh&&(Td.fn.focus=sh),Fd&&(Td.fn.attr=Fd),Nd&&(Td.fn.removeAttr=Nd),Vd&&(Td.fn.hide=Vd),Ud&&(Td.fn.show=Ud),$d&&(Td.fn.offset=$d),zd&&(Td.fn.width=zd),Hd&&(Td.fn.height=Hd),Qd&&(Td.fn.parent=Qd),eh&&(Td.fn.parents=eh),Yd&&(Td.fn.is=Yd),Ld&&(Td.fn.dataset=Ld),Id&&(Td.fn.val=Id),Kd&&(Td.fn.text=Kd),qd&&(Td.fn.html=qd),nh&&(Td.fn.children=nh),rh&&(Td.fn.remove=rh),th&&(Td.fn.find=th),Wd&&(Td.fn.each=Wd),oh&&(Td.fn.empty=oh);var uA,sA,cA=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},lA=function(e){return fA(e)&&1===e.nodeType},fA=function(e){var t=cA(e);return!!t&&e instanceof t.Node},pA=function(e){var t=e&&e.anchorNode&&cA(e.anchorNode);return!!t&&e instanceof t.Selection},dA=function(e){return fA(e)&&3===e.nodeType},hA=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},vA=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(fA(r=i)&&8===r.nodeType||lA(i)&&0===i.childNodes.length||lA(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},gA=function(e,t,n){return FD(vA(e,t,n),1)[0]},yA=function e(t){var n,r,o="";if(dA(t)&&t.nodeValue)return t.nodeValue;if(lA(t)){try{for(var i=jD(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o};function mA(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||mA(o,t)}}function bA(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==uA.ELEMENT_NODE?"":t.tagName.toLowerCase()}(sA=uA||(uA={}))[sA.ELEMENT_NODE=1]="ELEMENT_NODE",sA[sA.TEXT_NODE=3]="TEXT_NODE",sA[sA.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",sA[sA.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",sA[sA.COMMENT_NODE=8]="COMMENT_NODE",sA[sA.DOCUMENT_NODE=9]="DOCUMENT_NODE",sA[sA.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",sA[sA.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var wA="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),xA="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var EA="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),SA="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),CA="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),DA="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var OA=!CA&&!SA&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,AA={getWindow:function(e){var t=QO.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=JO.get(t);return n||(n=new ID,JO.set(t,n)),n},setNewKey:function(e){var t=new ID;JO.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=GO.get(r);if(null==o){if(Af.isEditor(r))return n;break}var i=WO.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=AA.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return GO.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=AA.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[AA.findPath(e,t)[0]];return Pf.get(e,n)},toDOMNode:function(e,t){var n;if(Af.isEditor(t))n=qO.get(e);else{var r=AA.findKey(e,t);n=YO.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=AA.toDOMNode(e,e);try{r=lA(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=Uf.isBackward(t),i=AA.toDOMPoint(e,n),a=Uf.isCollapsed(t)?i:AA.toDOMPoint(e,r),u=AA.getWindow(e).document.createRange(),s=FD(o?a:i,2),c=s[0],l=s[1],f=FD(o?i:a,2),p=f[0],d=f[1],h=!!(lA(c)?c:c.parentElement).getAttribute("data-slate-zero-width"),v=!!(lA(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return u.setStart(c,h?1:l),u.setEnd(p,v?1:d),u},toDOMPoint:function(e,t){var n,r,o,i=FD(Af.node(e,t.path),1)[0],a=AA.toDOMNode(e,i);Af.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var c=jD(u),l=c.next();!l.done;l=c.next()){var f=l.value,p=f.childNodes[0];if(null!=p&&null!=p.textContent){var d=p.textContent.length,h=f.getAttribute("data-slate-length"),v=s+(null==h?d:parseInt(h,10));if(t.offset<=v){o=[p,Math.min(d,Math.max(0,t.offset-s))];break}s=v}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=lA(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?KO.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=AA.toSlateNode(e,t.target),u=AA.findPath(e,a);if(Af.isVoid(e,a)){var s=o.getBoundingClientRect(),c=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,l=Af.point(e,u,{edge:c?"start":"end"}),f=c?Af.before(e,l):Af.after(e,l);if(f)return Af.range(e,f)}var p=this.getWindow(e).document;if(p.caretRangeFromPoint)i=p.caretRangeFromPoint(n,r);else{var d=p.caretPositionFromPoint(n,r);d&&((i=p.createRange()).setStart(d.offsetNode,d.offset),i.setEnd(d.offsetNode,d.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return AA.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,c=n.suppressThrow;if((pA(t)?t.anchorNode:t.startContainer)&&(pA(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=DA&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var l=AA.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:c});if(!l)return null;var f=u?l:AA.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:c});if(!f)return null;var p={anchor:l,focus:f};return Uf.isExpanded(p)&&Uf.isForward(p)&&lA(i)&&Af.void(e,{at:p.focus,mode:"highest"})&&(p=Af.unhangRange(e,p,{voids:!0})),p},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=FD(o?t:function(e){var t,n=FD(e,2),r=n[0],o=n[1];if(lA(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=FD(vA(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;lA(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=gA(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],c=u.parentNode,l=null,f=0;if(c){var p=c.closest('[data-slate-void="true"]'),d=c.closest("[data-slate-leaf]"),h=null;if(d){l=d.closest('[data-slate-node="text"]');var v=AA.getWindow(e).document.createRange();v.setStart(l,0),v.setEnd(u,s);var g=v.cloneContents();ND(ND([],FD(vd(g.querySelectorAll("[data-slate-zero-width]")))),FD(vd(g.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=g.textContent.length,h=l}else p&&((d=p.querySelector("[data-slate-leaf]"))?(l=d.closest('[data-slate-node="text"]'),f=(h=d).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(c.hasAttribute("data-slate-zero-width")||xA&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!l){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=AA.toSlateNode(e,l);return{path:AA.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Af.hasPath(e,n.path)&&Af.hasPath(e,r.path)},getNodeType:function(e){return xf.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Pf.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=Af.nodes(e,{universal:!0});try{for(var i=jD(o),a=i.next();!a.done;a=i.next()){var u=FD(a.value,1)[0];xf.isElement(u)&&r.push(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=FD(Af.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1),o=r[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=FD(Af.nodes(e,{match:function(e){return Xf.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=FD(Af.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&FD(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Af.isEnd(e,n.anchor,t)||Af.isEnd(e,n.focus,t))},getTextarea:function(e){var t=jO.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return LO.get(e)||null},getHoverbar:function(e){return RO.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=AA.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=jD(Array.from(a)),s=u.next();!s.done;s=u.next()){var c=s.value;if(3!==c.nodeType)break;c.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var l=Af.nodes(e,{match:function(t){return!(!xf.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=jD(l),p=f.next();!p.done;p=f.next()){var d=p.value;if(null!=d){var h=d[0];mA(AA.toDOMNode(e,h),(function(e,t){var n=Td(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=Af.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=jD(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(Uf.isExpanded(t))return!1;var n=AA.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=Af.node(e,t);if(null==n)return!1;var r=FD(n,1)[0].children;return 1===r.length&&""===r[0].text}},kA=1,_A={},TA={},BA=nE.filter,PA=jC("filter");RE({target:"Array",proto:!0,forced:!PA},{filter:function(e){return BA(this,e,arguments.length>1?arguments[1]:void 0)}});var jA="\t\n\v\f\r \u2028\u2029\ufeff",FA=Wb("".replace),NA="["+jA+"]",LA=RegExp("^"+NA+NA+"*"),IA=RegExp(NA+NA+"*$"),RA=function(e){return function(t){var n=GE(qb(t));return 1&e&&(n=FA(n,LA,"")),2&e&&(n=FA(n,IA,"")),n}},MA={start:RA(1),end:RA(2),trim:RA(3)},zA=yx.PROPER,HA=MA.trim;RE({target:"String",proto:!0,forced:function(e){return pw((function(){return!!jA[e]()||"
"!=="
"[e]()||zA&&jA[e].name!==e}))}("trim")},{trim:function(){return HA(this)}});var $A=[],VA={};function UA(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var ZA,WA,GA,qA,KA=Ib.Promise,YA=bw("species"),XA=function(e){var t=iw(e),n=Gw.f;Ew&&t&&!t[YA]&&n(t,YA,{configurable:!0,get:function(){return this}})},JA=Ib.TypeError,QA=bw("species"),ek=function(e,t){var n,r=Tw(e).constructor;return void 0===r||null==(n=Tw(r)[QA])?t:function(e){if(Yx(e))return e;throw JA(Iw(e)+" is not a constructor")}(n)},tk=Wb([].slice),nk=/(?:ipad|iphone|ipod).*applewebkit/i.test(aw),rk="process"==xx(Ib.process),ok=Ib.setImmediate,ik=Ib.clearImmediate,ak=Ib.process,uk=Ib.Dispatch,sk=Ib.Function,ck=Ib.MessageChannel,lk=Ib.String,fk=0,pk={};try{ZA=Ib.location}catch(sA){}var dk=function(e){if(Jb(pk,e)){var t=pk[e];delete pk[e],t()}},hk=function(e){return function(){dk(e)}},vk=function(e){dk(e.data)},gk=function(e){Ib.postMessage(lk(e),ZA.protocol+"//"+ZA.host)};ok&&ik||(ok=function(e){var t=tk(arguments,1);return pk[++fk]=function(){aD(rw(e)?e:sk(e),void 0,t)},WA(fk),fk},ik=function(e){delete pk[e]},rk?WA=function(e){ak.nextTick(hk(e))}:uk&&uk.now?WA=function(e){uk.now(hk(e))}:ck&&!nk?(qA=(GA=new ck).port2,GA.port1.onmessage=vk,WA=Px(qA.postMessage,qA)):Ib.addEventListener&&rw(Ib.postMessage)&&!Ib.importScripts&&ZA&&"file:"!==ZA.protocol&&!pw(gk)?(WA=gk,Ib.addEventListener("message",vk,!1)):WA="onreadystatechange"in Ow("script")?function(e){rS.appendChild(Ow("script")).onreadystatechange=function(){rS.removeChild(this),dk(e)}}:function(e){setTimeout(hk(e),0)});var yk,mk,bk,wk,xk,Ek,Sk,Ck,Dk={set:ok,clear:ik},Ok=/ipad|iphone|ipod/i.test(aw)&&void 0!==Ib.Pebble,Ak=/web0s(?!.*chrome)/i.test(aw),kk=hE.f,_k=Dk.set,Tk=Ib.MutationObserver||Ib.WebKitMutationObserver,Bk=Ib.document,Pk=Ib.process,jk=Ib.Promise,Fk=kk(Ib,"queueMicrotask"),Nk=Fk&&Fk.value;Nk||(yk=function(){var e,t;for(rk&&(e=Pk.domain)&&e.exit();mk;){t=mk.fn,mk=mk.next;try{t()}catch(e){throw mk?wk():bk=void 0,e}}bk=void 0,e&&e.enter()},nk||rk||Ak||!Tk||!Bk?!Ok&&jk&&jk.resolve?((Sk=jk.resolve(void 0)).constructor=jk,Ck=Px(Sk.then,Sk),wk=function(){Ck(yk)}):rk?wk=function(){Pk.nextTick(yk)}:(_k=Px(_k,Ib),wk=function(){_k(yk)}):(xk=!0,Ek=Bk.createTextNode(""),new Tk(yk).observe(Ek,{characterData:!0}),wk=function(){Ek.data=xk=!xk}));var Lk,Ik,Rk,Mk,zk=Nk||function(e){var t={fn:e,next:void 0};bk&&(bk.next=t),mk||(mk=t,wk()),bk=t},Hk=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Mw(t),this.reject=Mw(n)},$k={f:function(e){return new Hk(e)}},Vk=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Uk="object"==typeof window,Zk=Dk.set,Wk=bw("species"),Gk="Promise",qk=dx.getterFor(Gk),Kk=dx.set,Yk=dx.getterFor(Gk),Xk=KA&&KA.prototype,Jk=KA,Qk=Xk,e_=Ib.TypeError,t_=Ib.document,n_=Ib.process,r_=$k.f,o_=r_,i_=!!(t_&&t_.createEvent&&Ib.dispatchEvent),a_=rw(Ib.PromiseRejectionEvent),u_=!1,s_=LE(Gk,(function(){var e=ex(Jk),t=e!==String(Jk);if(!t&&66===fw)return!0;if(fw>=51&&/native code/.test(e))return!1;var n=new Jk((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Wk]=r,!(u_=n.then((function(){}))instanceof r)||!t&&Uk&&!a_})),c_=s_||!MS((function(e){Jk.all(e).catch((function(){}))})),l_=function(e){var t;return!(!Sw(e)||!rw(t=e.then))&&t},f_=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;zk((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,c=n[i++],l=o?c.ok:c.fail,f=c.resolve,p=c.reject,d=c.domain;try{l?(o||(2===e.rejection&&v_(e),e.rejection=1),!0===l?a=r:(d&&d.enter(),a=l(r),d&&(d.exit(),s=!0)),a===c.promise?p(e_("Promise-chain cycle")):(u=l_(a))?Pw(u,a,f,p):f(a)):p(r)}catch(e){d&&!s&&d.exit(),p(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&d_(e)}))}},p_=function(e,t,n){var r,o;i_?((r=t_.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Ib.dispatchEvent(r)):r={promise:t,reason:n},!a_&&(o=Ib["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Ib.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},d_=function(e){Pw(Zk,Ib,(function(){var t,n=e.facade,r=e.value;if(h_(e)&&(t=Vk((function(){rk?n_.emit("unhandledRejection",r,n):p_("unhandledrejection",n,r)})),e.rejection=rk||h_(e)?2:1,t.error))throw t.value}))},h_=function(e){return 1!==e.rejection&&!e.parent},v_=function(e){Pw(Zk,Ib,(function(){var t=e.facade;rk?n_.emit("rejectionHandled",t):p_("rejectionhandled",t,e.value)}))},g_=function(e,t,n){return function(r){e(t,r,n)}},y_=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,f_(e,!0))},m_=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw e_("Promise can't be resolved itself");var r=l_(t);r?zk((function(){var n={done:!1};try{Pw(r,t,g_(m_,n,e),g_(y_,n,e))}catch(t){y_(n,t,e)}})):(e.value=t,e.state=1,f_(e,!1))}catch(t){y_({done:!1},t,e)}}};if(s_&&(Qk=(Jk=function(e){oO(this,Qk),Mw(e),Pw(Lk,this);var t=qk(this);try{e(g_(m_,t),g_(y_,t))}catch(e){y_(t,e)}}).prototype,(Lk=function(e){Kk(this,{type:Gk,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=HD(Qk,{then:function(e,t){var n=Yk(this),r=n.reactions,o=r_(ek(this,Jk));return o.ok=!rw(e)||e,o.fail=rw(t)&&t,o.domain=rk?n_.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&f_(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Ik=function(){var e=new Lk,t=qk(e);this.promise=e,this.resolve=g_(m_,t),this.reject=g_(y_,t)},$k.f=r_=function(e){return e===Jk||e===Rk?new Ik(e):o_(e)},rw(KA)&&Xk!==Object.prototype)){Mk=Xk.then,u_||(mx(Xk,"then",(function(e,t){var n=this;return new Jk((function(e,t){Pw(Mk,n,e,t)})).then(e,t)}),{unsafe:!0}),mx(Xk,"catch",Qk.catch,{unsafe:!0}));try{delete Xk.constructor}catch(sA){}fC&&fC(Xk,Qk)}RE({global:!0,wrap:!0,forced:s_},{Promise:Jk}),aC(Jk,Gk,!1),XA(Gk),Rk=iw(Gk),RE({target:Gk,stat:!0,forced:s_},{reject:function(e){var t=r_(this);return Pw(t.reject,void 0,e),t.promise}}),RE({target:Gk,stat:!0,forced:s_},{resolve:function(e){return function(e,t){if(Tw(e),Sw(t)&&t.constructor===e)return t;var n=$k.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),RE({target:Gk,stat:!0,forced:c_},{all:function(e){var t=this,n=r_(t),r=n.resolve,o=n.reject,i=Vk((function(){var n=Mw(t.resolve),i=[],a=0,u=1;nO(e,(function(e){var s=a++,c=!1;u++,Pw(n,t,e).then((function(e){c||(c=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=r_(t),r=n.reject,o=Vk((function(){var o=Mw(t.resolve);nO(e,(function(e){Pw(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var b_=MC.UNSUPPORTED_Y,w_=Math.min,x_=[].push,E_=Wb(/./.exec),S_=Wb(x_),C_=Wb("".slice);function D_(e){Promise.resolve().then(e)}function O_(e,t){return xf.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=Af.isVoid(t,e),u="";a||(u=i.map((function(e){return O_(e,t)})).join(""));var s=function(e){return VA[e]||UA}(r),c=s(e,u,t),l="";if(l="string"==typeof c?c:c.html||"",a||$A.forEach((function(t){return l=t(e,l)})),"string"==typeof c)return l;var f=c.prefix,p=void 0===f?"":f,d=c.suffix,h=void 0===d?"":d;return p&&(l=p+l),h&&(l+=h),l}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(r);var o=AA.getParentsNodes(t,e).some((function(e){return"pre"===AA.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=AA.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return $A.forEach((function(t){return r=t(e,r)})),r}(e,t)}function A_(e){return"w-e-element-"+e}cD("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=GE(qb(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!vS(e))return Pw(t,r,e,o);for(var i,a,u,s=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,f=new RegExp(e.source,c+"g");(i=Pw(tD,f,r))&&!((a=f.lastIndex)>l&&(S_(s,C_(r,l,i.index)),i.length>1&&i.index<r.length&&aD(x_,s,UD(i,1)),u=i[0].length,l=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return l===r.length?!u&&E_(f,"")||S_(s,""):S_(s,C_(r,l)),s.length>o?UD(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Pw(t,this,e,n)}:t,[function(t,n){var o=qb(this),i=null==t?void 0:zw(t,e);return i?Pw(i,t,o,n):Pw(r,GE(o),t,n)},function(e,o){var i=Tw(this),a=GE(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=ek(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(b_?"g":"y"),f=new s(b_?"^(?:"+i.source+")":i,l),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===a.length)return null===wD(f,a)?[a]:[];for(var d=0,h=0,v=[];h<a.length;){f.lastIndex=b_?0:h;var g,y=wD(f,b_?C_(a,h):a);if(null===y||(g=w_(zx(f.lastIndex+(b_?h:0)),a.length))===d)h=fD(a,h,c);else{if(S_(v,C_(a,d,h)),v.length===p)return v;for(var m=1;m<=y.length-1;m++)if(S_(v,y[m]),v.length===p)return v;h=d=g}}return S_(v,C_(a,d)),v}]}),!!pw((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),b_);var k_=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},__=function(e,t,n){var r=AA.toDOMRange(e,t).getBoundingClientRect(),o=AA.toDOMRange(e,n).getBoundingClientRect();return k_(r,o)&&k_(o,r)},T_=["span","b","strong","i","em","s","strike","u","font","sub","sup"],B_=[],P_=[],j_={},F_=Gw.f,N_=DE.f,L_=dx.enforce,I_=bw("match"),R_=Ib.RegExp,M_=R_.prototype,z_=Ib.SyntaxError,H_=Wb(qE),$_=Wb(M_.exec),V_=Wb("".charAt),U_=Wb("".replace),Z_=Wb("".indexOf),W_=Wb("".slice),G_=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,q_=/a/g,K_=/a/g,Y_=new R_(q_)!==q_,X_=MC.MISSED_STICKY,J_=MC.UNSUPPORTED_Y,Q_=Ew&&(!Y_||X_||HC||VC||pw((function(){return K_[I_]=!1,R_(q_)!=q_||R_(K_)==K_||"/a/i"!=R_(q_,"i")})));if(LE("RegExp",Q_)){for(var eT=function(e,t){var n,r,o,i,a,u,s=jw(M_,this),c=vS(e),l=void 0===t,f=[],p=e;if(!s&&c&&l&&e.constructor===eT)return e;if((c||jw(M_,e))&&(e=e.source,l&&(t="flags"in p?p.flags:H_(p))),e=void 0===e?"":GE(e),t=void 0===t?"":GE(t),p=e,HC&&"dotAll"in q_&&(r=!!t&&Z_(t,"s")>-1)&&(t=U_(t,/s/g,"")),n=t,X_&&"sticky"in q_&&(o=!!t&&Z_(t,"y")>-1)&&J_&&(t=U_(t,/y/g,"")),VC&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,c=0,l="";r<=n;r++){if("\\"===(t=V_(e,r)))t+=V_(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:$_(G_,W_(e,r+1))&&(r+=2,s=!0),o+=t,c++;continue;case">"===t&&s:if(""===l||Jb(a,l))throw new z_("Invalid capture group name");a[l]=!0,i[i.length]=[l,c],s=!1,l="";continue}s?l+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=iO(R_(e,t),s?this:M_,eT),(r||o||f.length)&&(u=L_(a),r&&(u.dotAll=!0,u.raw=eT(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=V_(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+V_(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==p)try{Kw(a,"source",""===p?"(?:)":p)}catch(e){}return a},tT=function(e){e in eT||F_(eT,e,{configurable:!0,get:function(){return R_[e]},set:function(t){R_[e]=t}})},nT=N_(R_),rT=0;nT.length>rT;)tT(nT[rT++]);M_.constructor=eT,eT.prototype=M_,mx(Ib,"RegExp",eT)}XA("RegExp");var oT=new RegExp(String.fromCharCode(160),"g");function iT(e){return e.replace(oT," ")}function aT(e,t){var n=e.length;if(n){var r=e[n-1];if(Xf.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function uT(e,t,n){return{type:"paragraph",children:[{text:Td(e).text().replace(/\s+/gm," ")}]}}function sT(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==uA.ELEMENT_NODE)if(e.nodeType!==uA.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=iT(r),aT(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(aT(n,"\n")||n.push({text:"\n"}));var o=lT(Td(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in j_)if(e[0].matches(t))return j_[t];return uT}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(r){Af.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),P_.forEach((function(n){r=n(e[0],r,t)})))})),o}function cT(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=function(e){return e.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(n);var r={text:n=iT(n)};return P_.forEach((function(n){r=n(e[0],r,t)})),r}function lT(e,t){B_.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Td(r(e[0])))}));var n=bA(e);return"span"===n?e.attr("data-w-e-type")?sT(e,t):cT(e,t):"code"===n?"pre"===bA(e.parent())?sT(e,t):cT(e,t):T_.includes(n)?cT(e,t):sT(e,t)}function fT(e,t,n){var r=Td(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function pT(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=Td("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=lT(Td(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var dT=Gw.f,hT=JD.fastKey,vT=dx.set,gT=dx.getterFor,yT={getConstructor:function(e,t,n,r){var o=e((function(e,o){oO(e,i),vT(e,{type:t,index:cS(null),first:void 0,last:void 0,size:0}),Ew||(e.size=0),null!=o&&nO(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=gT(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=hT(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),Ew?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=hT(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return HD(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Ew?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),Ew?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=Px(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),HD(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),Ew&&dT(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=gT(t),i=gT(r);mC(e,t,(function(e,t){vT(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),XA(t)}};aO("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),yT);var mT=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function bT(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):vp.insertNodes(e,t,{mode:"highest"})}var wT=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=FD(Uf.edges(n),2),o=r[0],i=r[1],a=Af.void(t,{at:o.path}),u=Af.void(t,{at:i.path});if(!Uf.isCollapsed(n)||a){var s=AA.toDOMRange(t,n),c=s.cloneContents(),l=c.childNodes[0];if(c.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(l=e)})),u){var f=FD(u,1)[0],p=s.cloneRange(),d=AA.toDOMNode(t,f);p.setEndAfter(d),c=p.cloneContents()}if(a&&(l=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),dA(l)){var h=l.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(l),c.appendChild(h),l=h}var v=t.getFragment(),g=JSON.stringify(v),y=window.btoa(encodeURIComponent(g));l.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=c.ownerDocument.createElement("div");return m.appendChild(c),m.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",yA(m)),c.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);t.insertFragment(u)}else{var s=e.getData("text/plain"),c=e.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(s){var l=s.split(/\r\n|\r|\n/),f=!1;try{for(var p=jD(l),d=p.next();!d.done;d=p.next()){var h=d.value;f&&vp.splitNodes(t,{always:!0}),n(h),f=!0}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}}},t},xT=function(e){return null!=e},ET={object:!0,function:!0,undefined:!0},ST=/^\s*class[\s{/}]/,CT=Function.prototype.toString,DT=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!function(e){if(!function(e){return!!xT(e)&&hasOwnProperty.call(ET,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!ST.test(CT.call(e))},OT=function(e){return null!=e},AT=Object.keys,kT=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return AT(OT(e)?Object(e):e)},_T=function(e){if(!OT(e))throw new TypeError("Cannot use null or undefined");return e},TT=Math.max,BT=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=TT(arguments.length,2);for(e=Object(_T(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)kT(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},PT=Array.prototype.forEach,jT=Object.create,FT=function(e,t){var n;for(n in e)t[n]=e[n]},NT=function(e){var t=jT(null);return PT.call(arguments,(function(e){OT(e)&&FT(Object(e),t)})),t},LT="razdwatrzy",IT=String.prototype.indexOf,RT="function"==typeof LT.contains&&!0===LT.contains("dwa")&&!1===LT.contains("foo")?String.prototype.contains:function(e){return IT.call(this,e,arguments[1])>-1},MT=jb((function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],xT(e)?(n=RT.call(e,"c"),r=RT.call(e,"e"),o=RT.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?BT(NT(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],xT(t)?DT(t)?xT(n)?DT(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,xT(e)?(r=RT.call(e,"c"),o=RT.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?BT(NT(i),a):a}})),zT=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},HT=jb((function(e,t){var n,r,o,i,a,u,s,c=Function.prototype.apply,l=Function.prototype.call,f=Object.create,p=Object.defineProperty,d=Object.defineProperties,h=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return zT(t),h.call(this,"__ee__")?n=this.__ee__:(n=v.value=f(null),p(this,"__ee__",v),v.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,i;return zT(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),c.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(zT(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)c.call(r,this,i)}else switch(arguments.length){case 1:l.call(o,this);break;case 2:l.call(o,this,arguments[1]);break;case 3:l.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];c.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},u={on:MT(n),once:MT(r),off:MT(o),emit:MT(i)},s=d({},u),e.exports=t=function(e){return null==e?f(s):d(Object(e),u)},t.methods=a}));function $T(e){var t=nA.get(e);return null==t&&(t=HT(),nA.set(e,t)),t}var VT=new WeakMap;function UT(e,t){var n=VT.get(e);null==n&&(n=new Set,VT.set(e,n)),n.add(t)}function ZT(e){return VT.get(e)||new Set}function WT(e){VT.set(e,new Set)}function GT(e){var t=AA.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function qT(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=GT(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=AA.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var c=s.height,l={},f=s.top-o,p=s.left-i;if(p>a/2){var d=a-p;l.right=d+5+"px"}else l.left=p+5+"px";if(f>u/2){var h=u-f;l.bottom=h+5+"px"}else{var v=f+c;v<0&&(v=0),l.top=v+5+"px"}return l}function KT(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=xf.isElement(t)&&e.isVoid(t),i=xf.isElement(t)&&e.isInline(t),a=XO.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,c=u.left,l=u.height,f=u.width;if(o){var p=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(aA.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=p){var d=p.getBoundingClientRect();s=d.top,l=d.height}}var h=GT(e);if(null==h)return r;var v,g=h.top,y=h.left,m=h.width,b=h.height,w={},x=s-g,E=c-y;if("bar"===n)return w.left=E+"px",x>40?w.bottom=b-x+5+"px":w.top=x+l+5+"px",w;if("modal"===n)return o?i?E>(m-f)/2?w.right=m-E+5+"px":w.left=E+f+5+"px":w.left="20px":w.left=E+"px",o?((v=x)<0&&(v=0),w.top=v+"px"):x>(b-l)/2?w.bottom=b-x+5+"px":((v=x+l)<0&&(v=0),w.top=v+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function YT(e,t){D_((function(){var n=GT(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),c=s.top,l=s.left,f=t.width(),p=t.height(),d=c-o,h=l-i,v=t.attr("style");if(v.indexOf("top")>=0&&(r=d+p-u)>0){var g=t.css("top"),y=parseInt(g.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(v.indexOf("bottom")>=0&&c<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(c);t.css("bottom",b+"px")}if(v.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),x=parseInt(w.toString())-r;x<0&&(x=0),t.css("left",x+"px")}if(v.indexOf("right")>=0&&l<0){var E=t.css("right"),S=parseInt(E.toString())-Math.abs(l);t.css("right",S+"px")}}}))}var XT=jC("slice"),JT=bw("species"),QT=Ib.Array,eB=Math.max;RE({target:"Array",proto:!0,forced:!XT},{slice:function(e,t){var n,r,o,i=pE(this),a=Hx(i),u=yE(e,a),s=yE(void 0===t?a:t,a);if($x(i)&&(n=i.constructor,(Yx(n)&&(n===QT||$x(n.prototype))||Sw(n)&&null===(n=n[JT]))&&(n=void 0),n===QT||void 0===n))return tk(i,u,s);for(r=new(void 0===n?QT:n)(eB(s-u,0)),o=0;u<s;u++,o++)u in i&&_S(r,o,i[u]);return r.length=o,r}});var tB=hE.f,nB=Wb("".startsWith),rB=Wb("".slice),oB=Math.min,iB=bS("startsWith"),aB=!iB&&!!function(){var e=tB(String.prototype,"startsWith");return e&&!e.writable}();RE({target:"String",proto:!0,forced:!aB&&!iB},{startsWith:function(e){var t=GE(qb(this));yS(e);var n=zx(oB(arguments.length>1?arguments[1]:void 0,t.length)),r=GE(e);return nB?nB(t,r,n):rB(t,n,n+r.length)===r}});var uB=Object.assign,sB=Object.defineProperty,cB=Wb([].concat),lB=!uB||pw((function(){if(Ew&&1!==uB({b:1},uB(sB({},"a",{enumerable:!0,get:function(){sB(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=uB({},e)[n]||ME(uB({},t)).join("")!=r}))?function(e,t){for(var n=Yb(e),r=arguments.length,o=1,i=OE.f,a=fE.f;r>o;)for(var u,s=Nx(arguments[o++]),c=i?cB(ME(s),i(s)):ME(s),l=c.length,f=0;l>f;)u=c[f++],Ew&&!Pw(a,s,u)||(n[u]=s[u]);return n}:uB;RE({target:"Object",stat:!0,forced:Object.assign!==lB},{assign:lB});var fB=["props","attrs","style","dataset","on","hook"];function pB(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!fB.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=ig(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&pB(e)}))}var dB=[],hB={};function vB(e,t,n){return bv(n.isInline(e)?"span":"div",null,t)}function gB(e,t){return void 0===t&&(t=!1),bv("span",{"data-slate-string":!0},t?e+"\n":e)}function yB(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),bv("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?bv("br",null):null)}function mB(e,t,n,r){return WO.set(e,t),GO.set(e,n),xf.isElement(e)?function(e,t){var n,r=AA.findKey(t,e),o=t.isInline(e),i=Af.isVoid(t,e),a=A_(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,c=e.children,l=void 0===c?[]:c,f=function(e){return hB[e]||vB}(s);n=i?null:l.map((function(n,r){return mB(n,r,e,t)}));var p=f(e,n,t);if(i){u["data-slate-void"]=!0;var d=o?"span":"div",h=FD(Pf.texts(e),1),v=FD(h[0],1)[0],g=bv(d,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},mB(v,0,e,t));p=bv(d,{style:{position:"relative"}},p,g),WO.set(v,0),GO.set(v,e)}return null==p.data&&(p.data={}),Object.assign(p.data,u),i||o||(p=function(e,t){var n=t;return dB.forEach((function(r){n=r(e,t)})),n}(e,p)),D_((function(){var t=hA(a);null!=t&&(YO.set(r,t),XO.set(e,t),KO.set(t,e))})),p}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=AA.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=AA.findPath(n,e),a=o([e,i]),u=Xf.decorations(e,a),s=u.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=AA.findPath(o,n),u=Lf.parent(a);if(Af.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?yB(Pf.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==Af.string(o,u)?""===i?yB():t&&"\n"===i.slice(-1)?gB(i,!0):gB(i):yB(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return dB.forEach((function(t){n=t(e,n)})),n}(r,i),bv("span",{"data-slate-leaf":!0},i)})),c=function(e){return"w-e-text-"+e}(r.id),l=bv("span",{"data-slate-node":"text",id:c,key:r.id},s);return D_((function(){var t=hA(c);null!=t&&(YO.set(r,t),XO.set(e,t),KO.set(t,e))})),l}(e,n,r)}function bB(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),Qh("div#"+e,{props:{contentEditable:!t}})}(o,a),c=t.children||[];s.children=c.map((function(e,n){var r=mB(e,n,t,t);return pB(r),r}));var l=VO.get(e);if(null==l&&(l=!0),l){var f=function(e,t){return Td('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(d=Xh([rv,pv,yv,av,lv,tv]))(n,s),VO.set(e,!1),UO.set(e,d)}else{var p=ZO.get(e),d=UO.get(e);if(null==p||null==d)return;n=p.elm,d(p,s)}if(null!=n||null!=(n=hA(o))){if((l?u:t.isFocused())&&n.focus({preventScroll:!0}),l){var h=cA(n);h&&QO.set(t,h)}qO.set(t,n),XO.set(t,n),KO.set(n,t),ZO.set(e,s)}}function wB(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function xB(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function EB(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return xB(n.overflowY,t)||xB(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function SB(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function CB(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!wB(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,l=[],f=e;wB(f)&&s(f);){if((f=f.parentElement)===c){l.push(f);break}null!=f&&f===document.body&&EB(f)&&!EB(document.documentElement)||null!=f&&EB(f,u)&&l.push(f)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,d=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,m=g.width,b=g.top,w=g.right,x=g.bottom,E=g.left,S="start"===o||"nearest"===o?b:"end"===o?x:b+y/2,C="center"===i?E+m/2:"end"===i?w:E,D=[],O=0;O<l.length;O++){var A=l[O],k=A.getBoundingClientRect(),_=k.height,T=k.width,B=k.top,P=k.right,j=k.bottom,F=k.left;if("if-needed"===r&&b>=0&&E>=0&&x<=d&&w<=p&&b>=B&&x<=j&&E>=F&&w<=P)return D;var N=getComputedStyle(A),L=parseInt(N.borderLeftWidth,10),I=parseInt(N.borderTopWidth,10),R=parseInt(N.borderRightWidth,10),M=parseInt(N.borderBottomWidth,10),z=0,H=0,$="offsetWidth"in A?A.offsetWidth-A.clientWidth-L-R:0,V="offsetHeight"in A?A.offsetHeight-A.clientHeight-I-M:0;if(c===A)z="start"===o?S:"end"===o?S-d:"nearest"===o?SB(v,v+d,d,I,M,v+S,v+S+y,y):S-d/2,H="start"===i?C:"center"===i?C-p/2:"end"===i?C-p:SB(h,h+p,p,L,R,h+C,h+C+m,m),z=Math.max(0,z+v),H=Math.max(0,H+h);else{z="start"===o?S-B-I:"end"===o?S-j+M+V:"nearest"===o?SB(B,j,_,I,M+V,S,S+y,y):S-(B+_/2)+V/2,H="start"===i?C-F-L:"center"===i?C-(F+T/2)+$/2:"end"===i?C-P+R+$:SB(F,P,T,L,R+$,C,C+m,m);var U=A.scrollLeft,Z=A.scrollTop;S+=Z-(z=Math.max(0,Math.min(Z+z,A.scrollHeight-_+V))),C+=U-(H=Math.max(0,Math.min(U+H,A.scrollWidth-T+$)))}D.push({el:A,top:z,left:H})}return D}function DB(e){return e===Object(e)&&0!==Object.keys(e).length}function OB(e,t){return fA(t)&&AA.hasDOMNode(e,t,{editable:!0})}function AB(e,t){if(e.getConfig().readOnly)return!1;var n=kB(e,t)&&AA.toSlateNode(e,t);return Af.isVoid(e,n)}function kB(e,t){return fA(t)&&AA.hasDOMNode(e,t)}function _B(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=AA.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=qO.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var c=AA.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(c&&Uf.equals(c,r)){var l=!0;if(Uf.isCollapsed(r)){var f=i.anchorNode,p=i.anchorOffset;if(f===u){var d=u.childNodes,h=void 0;(h=d[p])&&h.matches("table")&&(l=!1),(h=d[p-1])&&h.matches("table")&&(l=!1)}}if(l)return}}if(!r||AA.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&AA.toDOMRange(t,r);if(v){Uf.isBackward(r)?i.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):i.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var g=v.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(DB(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:CB(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:DB(e)?e:{block:"start",inline:"nearest"}}(t);!function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(CB(e,r),r.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){v&&xA&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=AA.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var TB=new WeakMap,BB=new WeakMap,PB={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",tab:"tab",selectAll:"mod+a"},jB={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"},FB={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},NB=function(e){var t=PB[e],n=jB[e],r=FB[e],o=t&&vg(t),i=n&&vg(n),a=r&&vg(r);return function(e){return!(!o||!o(e))||!!(wA&&i&&i(e))||!(wA||!a||!a(e))}},LB={isBold:NB("bold"),isCompose:NB("compose"),isMoveBackward:NB("moveBackward"),isMoveForward:NB("moveForward"),isDeleteBackward:NB("deleteBackward"),isDeleteForward:NB("deleteForward"),isDeleteLineBackward:NB("deleteLineBackward"),isDeleteLineForward:NB("deleteLineForward"),isDeleteWordBackward:NB("deleteWordBackward"),isDeleteWordForward:NB("deleteWordForward"),isExtendBackward:NB("extendBackward"),isExtendForward:NB("extendForward"),isExtendLineBackward:NB("extendLineBackward"),isExtendLineForward:NB("extendLineForward"),isItalic:NB("italic"),isMoveLineBackward:NB("moveLineBackward"),isMoveLineForward:NB("moveLineForward"),isMoveWordBackward:NB("moveWordBackward"),isMoveWordForward:NB("moveWordForward"),isRedo:NB("redo"),isSplitBlock:NB("splitBlock"),isTransposeCharacter:NB("transposeCharacter"),isUndo:NB("undo"),isTab:NB("tab"),isSelectAll:NB("selectAll")};function IB(e){e.preventDefault()}var RB={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(OA&&!o&&OB(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=FD(r.getTargetRanges(),1)[0];if(s){var c=AA.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&Uf.equals(i,c)||vp.select(n,c)}}if(i&&Uf.isExpanded(i)&&a.startsWith("delete")){var l=a.endsWith("Backward")?"backward":"forward";Af.deleteFragment(n,{direction:l})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Af.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Af.deleteForward(n);break;case"deleteContentBackward":Af.deleteBackward(n);break;case"deleteEntireSoftLine":Af.deleteBackward(n,{unit:"line"}),Af.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Af.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Af.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Af.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Af.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Af.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Af.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Af.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!rA.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&Af.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&OB(n,r.target)){var a=AA.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===AA.toDOMNode(n,n)||lA(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&fA(u)&&AA.hasDOMNode(n,u)){var s=AA.toSlateNode(n,u);if(xf.isElement(s)&&!n.isVoid(s))return}if(EA){var c=a.getSelection();null==c||c.removeAllRanges()}eA.delete(n)}}}},focus:function(e,t,n){var r=AA.toDOMNode(n,n),o=AA.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,xA&&e.target!==r?r.focus():eA.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&kB(n,e.target)&&fA(e.target)){var r=AA.toSlateNode(n,e.target),o=AA.findPath(n,r);if(Af.hasPath(n,o)&&Pf.get(n,o)===r){var i=Af.start(n,o),a=Af.end(n,o),u=Af.void(n,{at:i}),s=Af.void(n,{at:a});if(u&&s&&Lf.equals(u[1],s[1])){var c=Af.range(n,i);vp.select(n,c)}}}},compositionstart:function(e,t,n){if(OB(n,e.target)){var r=n.selection;if(r&&Uf.isExpanded(r)&&(Af.deleteFragment(n),Promise.resolve().then((function(){_B(t,n,!0)}))),r&&Uf.isCollapsed(r)){var o=AA.toDOMRange(n,r).startContainer,i=o.textContent||"";TB.set(n,i),BB.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(OB(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(DA||xA)&&AA.cleanExposedTexNodeInSelectionBlock(n);for(var i=Uf.isBackward(o)?o.focus:o.anchor,a=FD(Af.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=FD(Af.node(n,i.path.slice(0,u+1)),1)[0];if(xf.isElement(s)&&((EA||xA)&&"link"===s.type||"code"===s.type)){AA.setNewKey(a);break}}var c=r.data;if(c){if(n.getConfig().maxLength){var l=AA.getLeftLengthOfMaxLength(n);l<c.length?(AA.toDOMRange(n,o).startContainer.textContent=TB.get(n)||"",l>0&&Af.insertText(n,c.slice(0,l)),t.changeViewState()):Af.insertText(n,c)}else Af.insertText(n,c);EA||setTimeout((function(){var e=n.selection;if(null!=e){var t=BB.get(n);null!=t&&AA.toDOMRange(n,e).startContainer!==t&&(t.textContent=TB.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){OB(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&OB(n,r.target)){if(function(e,t){var n=LO.get(e),r=n&&n.getMenus(),o=RO.get(e),i=o&&o.getMenus(),a=PD(PD({},r),i);for(var u in a){var s=a[u],c=s.hotkey;if(c&&hg(c,t)&&!s.isDisabled(e)){var l=s.getValue(e);s.exec(e,l)}}}(n,r),LB.isTab(r))return IB(r),void n.handleTab();if(LB.isRedo(r))return IB(r),void("function"==typeof n.redo&&n.redo());if(LB.isUndo(r))return IB(r),void("function"==typeof n.undo&&n.undo());if(LB.isMoveLineBackward(r))return IB(r),void vp.move(n,{unit:"line",reverse:!0});if(LB.isMoveLineForward(r))return IB(r),void vp.move(n,{unit:"line"});if(LB.isExtendLineBackward(r))return IB(r),void vp.move(n,{unit:"line",edge:"focus",reverse:!0});if(LB.isExtendLineForward(r))return IB(r),void vp.move(n,{unit:"line",edge:"focus"});if(LB.isMoveBackward(r))return IB(r),void(o&&Uf.isCollapsed(o)?vp.move(n,{reverse:!0}):vp.collapse(n,{edge:"start"}));if(LB.isMoveForward(r))return IB(r),void(o&&Uf.isCollapsed(o)?vp.move(n):vp.collapse(n,{edge:"end"}));if(LB.isMoveWordBackward(r))return IB(r),o&&Uf.isExpanded(o)&&vp.collapse(n,{edge:"focus"}),void vp.move(n,{unit:"word",reverse:!0});if(LB.isMoveWordForward(r))return IB(r),o&&Uf.isExpanded(o)&&vp.collapse(n,{edge:"focus"}),void vp.move(n,{unit:"word"});if(LB.isSelectAll(r))return IB(r),void n.selectAll();if(OA){if((DA||EA)&&o&&(LB.isDeleteBackward(r)||LB.isDeleteForward(r))&&Uf.isCollapsed(o)){var i=Pf.parent(n,o.anchor.path);if(xf.isElement(i)&&Af.isVoid(n,i)&&Af.isInline(n,i))return r.preventDefault(),void vp.delete(n,{unit:"block"})}}else{if(LB.isBold(r)||LB.isItalic(r)||LB.isTransposeCharacter(r))return void IB(r);if(LB.isSplitBlock(r))return IB(r),void Af.insertBreak(n);if(LB.isDeleteBackward(r))return IB(r),void(o&&Uf.isExpanded(o)?Af.deleteFragment(n,{direction:"backward"}):Af.deleteBackward(n));if(LB.isDeleteForward(r))return IB(r),void(o&&Uf.isExpanded(o)?Af.deleteFragment(n,{direction:"forward"}):Af.deleteForward(n));if(LB.isDeleteLineBackward(r))return IB(r),void(o&&Uf.isExpanded(o)?Af.deleteFragment(n,{direction:"backward"}):Af.deleteBackward(n,{unit:"line"}));if(LB.isDeleteLineForward(r))return IB(r),void(o&&Uf.isExpanded(o)?Af.deleteFragment(n,{direction:"forward"}):Af.deleteForward(n,{unit:"line"}));if(LB.isDeleteWordBackward(r))return IB(r),void(o&&Uf.isExpanded(o)?Af.deleteFragment(n,{direction:"backward"}):Af.deleteBackward(n,{unit:"word"}));if(LB.isDeleteWordForward(r))return IB(r),void(o&&Uf.isExpanded(o)?Af.deleteFragment(n,{direction:"forward"}):Af.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!OA&&!n.getConfig().readOnly&&OB(n,e.target)){e.preventDefault();var r=e.key;Af.insertText(n,r)}},copy:function(e,t,n){var r=e;if(OB(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&OB(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(Uf.isExpanded(o))Af.deleteFragment(n);else{var a=Pf.parent(n,o.anchor.path);Af.isVoid(n,a)&&vp.delete(n)}}},paste:function(e,t,n){rA.set(n,!0);var r=e;if(!n.getConfig().readOnly&&OB(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void rA.set(n,!1);if(!OA||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(kB(n,e.target)){var r=AA.toSlateNode(n,e.target);Af.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(kB(n,r.target)&&!n.getConfig().readOnly){var o=AA.toSlateNode(n,r.target),i=AA.findPath(n,o);if(Af.isVoid(n,o)||Af.void(n,{at:i,voids:!0})){var a=Af.range(n,i);vp.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&kB(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&kB(n,r.target)&&null!=o&&!(OA&&EA&&o.files.length>0)){r.preventDefault();var i=n.selection,a=AA.findEventRange(n,r);vp.select(n,a),t.isDraggingInternally&&(i&&vp.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},MB=1,zB=function(){function e(e){var t=this;this.id=MB++,this.$textArea=null,this.$progressBar=Td('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Td('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=zh((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=AA.findDocumentOrShadowRoot(t),a=i.activeElement,u=AA.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,eA.set(t,!0)):eA.delete(t),!s)return vp.deselect(t);var c=s.anchorNode,l=s.focusNode,f=OB(t,c)||AB(t,c),p=OB(t,l)||AB(t,l);if(f&&p){var d=AA.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});vp.select(t,d)}else vp.deselect(t)}}(t,e)}),100);var n=Td(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=Td('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Td('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,D_((function(){var e=t.editorInstance,n=AA.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=FO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(Ch(RB,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",zh((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return o&&o(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-AA.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;bB(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=Td('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),D_((function(){_B(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function HB(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&HB(t)}function $B(){return Td('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function VB(){return Td('<div class="w-e-bar-divider"></div>')}function UB(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=wA?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}cD("match",(function(e,t,n){return[function(t){var n=qb(this),r=null==t?void 0:zw(t,e);return r?Pw(r,t,n):new RegExp(t)[e](GE(n))},function(e){var r=Tw(this),o=GE(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return wD(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=wD(r,o));){var l=GE(u[0]);s[c]=l,""===l&&(r.lastIndex=fD(o,zx(r.lastIndex),a)),c++}return 0===c?null:s}]}));var ZB=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Td('<div class="w-e-bar-item"></div>'),this.$button=Td('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,c=t.iconSvg,l=void 0===c?"":c,f=this.$button;if(l){var p=Td(l);HB(p),f.append(p)}else f.text(a);UB(f,l,a,s,n),n&&l&&f.append(Td('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),D_((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),oP(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=oP(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=oP(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=oP(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),WB=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return BD(t,e),t.prototype.onButtonClick=function(){},t}(ZB),GB=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=zO.get(e);null==t&&(t=new Set,zO.set(e,t)),t.add(this),HO.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=HO.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=HO.get(this);e&&e.emit("modalOrPanelHide")}},e}(),qB=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=Td('<div class="w-e-drop-panel"></div>'),n}return BD(t,e),t.prototype.genSelfElem=function(){return null},t}(GB),KB=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=$B();o.$button.append(i)}return o}return BD(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=oP(this);if(null==this.dropPanel){var n=new qB(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(ZB),YB=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=Td('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return BD(t,e),t.prototype.genSelfElem=function(){var e=this,t=Td('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=HO.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(GB);function XB(e,t,n){var r=Td('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Td('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function JB(e,t){var n=Td('<div class="button-container"></div>'),r=Td('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var QB=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=Td("body"),o.modal=null,o.menu=n,o}return BD(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=oP(this),t=this.menu.getModalPositionNode(e);return xf.isElement(t)?KT(e,t,"modal"):qT(e)},t.prototype.handleModal=function(){var e=oP(this),t=this.menu;if(null==this.modal){var n=new YB(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=oP(this),r=this.menu;if(null!=r.getModalContentElem){var o=AA.getTextarea(n),i=AA.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||YT(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(ZB),eP=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=Td('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return BD(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=Td("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Td('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=Td('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(u),a.addClass("selected")}a.append(Td('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(GB),tP=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Td('<div class="w-e-bar-item"></div>'),this.$button=Td('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,c=t.hotkey,l=void 0===c?"":c;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),UB(f,s,i,l,n),this.$elem.append(f),this.menu=t,D_((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),oP(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=oP(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new eP(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Td(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=oP(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=oP(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=$B();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=oP(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),nP=function(){function e(e){this.$elem=Td('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Td('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Td('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=Td(n);HB(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=$B();i.append(u),o.append(i);var s=this.$container;o.append(s);var c=this.createObserver();this.observe(c)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){Td(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),rP=new WeakMap;function oP(e){var t=MO.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function iP(e,t,n){void 0===n&&(n=!1);var r=rP.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new KB(e,t,n):a?new QB(e,t,n):new WB(e,t,n)}if("select"===o&&(r=new tP(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return rP.set(t,r),r}function aP(e,t){var n=e.selection;return null!=n&&!Uf.isCollapsed(n)&&!AA.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!Xf.isText(t)}var uP=function(){function e(){var e=this;this.$elem=Td('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=Bg((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&xf.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),D_((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),AA.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;D_((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=VB();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=TA[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=iP(e,r);this.hoverbarItems.push(i),MO.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),xf.isElement(e)){var r=KT(t,e,"bar");return n.css(r),void YT(t,n)}if(Xf.isText(e))return r=qT(t),n.css(r),void YT(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,c=a||function(e,t){return AA.checkNodeType(t,o)},l=FD(Af.nodes(e,{match:function(t){return c(e,t)},universal:!0}),1),f=l[0];if(null!=f)return n=f[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=IO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=aP),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=AA.findPath(null,e),r=AA.findPath(null,t);return Lf.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function sP(e,t,n,r){if(WO.set(e,t),GO.set(e,n),xf.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return sP(t,n,e,r)})),Af.isVoid(r,e)){var i=FD(Pf.texts(e),1),a=FD(i[0],1)[0];WO.set(a,0),GO.set(a,e)}}}function cP(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,u=e.plugins,s=void 0===u?[]:u,c=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];ZE.withoutSaving(t,(()=>{Af.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];ZE.withoutSaving(t,(()=>{Af.withoutNormalizing(t,(()=>{var e=r.map(Nf.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],u=a&&a[a.length-1],s=((e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type))(e,u),c=ZE.isSaving(t),l=ZE.isMerging(t);if(null==c&&(c=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),c){if(null==l&&(l=null!=a&&(0!==r.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Lf.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Lf.equals(e.path,t.path)))(e,u)||s)),a&&l)s&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();(e=>"set_selection"!==e.type)(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=AA.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=AA.getLeftLengthOfMaxLength(t);n<=0||n<Pf.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(AA.getLeftLengthOfMaxLength(t)<Pf.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=AA.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e;var a=Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===uA.TEXT_NODE?e+(t.textContent||""):n===uA.ELEMENT_NODE?mT.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"");r<a.length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=$T(t);if(r.on(e,n),"destroyed"===e&&UT(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),UT(t,o)}},t.once=function(e,n){$T(t).once(e,n)},t.off=function(e,n){$T(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=$T(t);o.emit.apply(o,ND([e],FD(n))),"destroyed"===e&&(ZT(t).forEach((function(e){return o.off("destroyed",e)})),WT(t))},t}(function(e){var t=e;return t.select=function(e){vp.select(t,e)},t.deselect=function(){var n=t.selection,r=AA.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&vp.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||vp.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=tA.get(t);null!=e&&(t.focus(),vp.select(t,e))},t.getSelectionPosition=function(){return qT(t)},t.getNodePosition=function(e){return KT(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=FD(Uf.edges(e),2),r=n[0],o=n[1],i=FD(Af.edges(t,[]),2),a=i[0],u=i[1];return!(!zf.equals(r,a)||!zf.equals(o,u))},t.selectAll=function(){var e=Af.start(t,[]),n=Af.end(t,[]);vp.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,c,l,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var p=jD(Af.levels(t,{at:e.path})),d=p.next();!d.done;d=p.next()){var h=FD(d.value,2),v=h[0],g=h[1],y=AA.findKey(t,v);f.push([g,y])}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=jD(Af.levels(t,{at:Lf.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=FD(b.value,2);v=w[0],g=w[1],y=AA.findKey(t,v),f.push([g,y])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var x=jD(Af.levels(t,{at:Lf.common(Lf.parent(e.path),Lf.parent(e.newPath))})),E=x.next();!E.done;E=x.next()){var S=FD(E.value,2);v=S[0],g=S[1],y=AA.findKey(t,v),f.push([g,y])}}catch(e){u={error:e}}finally{try{E&&!E.done&&(s=x.return)&&s.call(x)}finally{if(u)throw u.error}}}o(e);try{for(var C=jD(f),D=C.next();!D.done;D=C.next()){var O=FD(D.value,2);g=O[0],y=O[1],v=FD(Af.node(t,g),1)[0],JO.set(v,y)}}catch(e){c={error:e}}finally{try{D&&!D.done&&(l=C.return)&&l.call(C)}finally{if(c)throw c.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&Uf.isCollapsed(e.selection)){var r=Af.above(e,{match:function(t){return Af.isBlock(e,t)},at:e.selection});if(r){var o=FD(r,2)[1],a=Af.range(e,o,e.selection.anchor),u=function(e,t){var n=Af.range(e,Uf.end(t)),r=Array.from(Af.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(__(e,Af.range(e,r[o]),n))return Af.range(e,r[o],n);if(r.length<2)return Af.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)__(e,Af.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Af.range(e,r[i],n)}(t,a);Uf.isCollapsed(u)||vp.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&tA.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return O_(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Pf.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":Af.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=Af.nodes(t,{at:[],universal:!0});try{for(var u=jD(a),s=u.next();!s.done;s=u.next()){var c=FD(s.value,1)[0];if(xf.isElement(c)&&(n?c.type.indexOf(e)>=0:c.type===e)){var l=A_(AA.findKey(t,c).id);i.push(PD(PD({},c),{id:l}))}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(xf.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(Xf.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){vp.delete(t,{at:{anchor:Af.start(t,[]),focus:Af.end(t,[])}}),0===t.children.length&&vp.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return AA.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===uA.TEXT_NODE||t===uA.ELEMENT_NODE&&!mT.has(n.toLowerCase())})),0!==o.length){var i=t.selection;if(null!=i){var a=null;AA.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==uA.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(T_.includes(r.toLowerCase()))s=!0;else for(var c in j_)if(a.matches(c)){s=!0;break}if(s){var l=lT(Td(a),t);return Array.isArray(l)?(l.forEach((function(e){return bT(t,e)})),u++):(bT(t,l),u++),void(AA.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;AA.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&AA.isEmptyPath(t,a)&&vp.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=pT(t,e);if(vp.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(e){t.select(Af.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in TA)e.push(t);return e},t.getConfig=function(){var e=$O.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=wT((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Af.pathRefs(e))If.transform(n,t);for(var r of Af.pointRefs(e))Hf.transform(r,t);for(var o of Af.rangeRefs(e))Zf.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=Ll.get(e)||[],c=Ul(t);for(var l of s)u(Lf.transform(l,t));for(var f of c)u(f);Ll.set(e,a),vp.transform(e,t),e.operations.push(t),Af.normalize(e),"set_selection"===t.type&&(e.marks=null),Il.get(e)||(Il.set(e,!0),Promise.resolve().then((()=>{Il.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Uf.isExpanded(r))vp.setNodes(e,{[t]:n},{match:Xf.isText,split:!0});else{var o=Vl(Vl({},Af.marks(e)||{}),{},{[t]:n});e.marks=o,Il.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Uf.isCollapsed(n)&&vp.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Uf.isCollapsed(n)&&vp.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Uf.isExpanded(n)&&vp.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Pf.fragment(e,t):[]},insertBreak:()=>{vp.splitNodes(e,{always:!0})},insertFragment:t=>{vp.insertFragment(e,t)},insertNode:t=>{vp.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=Vl({text:t},r);vp.insertNodes(e,o)}else vp.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Xf.isText(n))if(xf.isElement(n)&&0===n.children.length)vp.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!Af.isEditor(n)&&xf.isElement(n)&&(e.isInline(n)||0===n.children.length||Xf.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Pf.get(e,r);if(!Xf.isText(u)){var s=n.children[a],c=u.children[i-1],l=a===n.children.length-1;(Xf.isText(s)||xf.isElement(s)&&e.isInline(s))!==o?(vp.removeNodes(e,{at:r.concat(i),voids:!0}),i--):xf.isElement(s)?e.isInline(s)&&(null!=c&&Xf.isText(c)?l&&(vp.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(vp.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=c&&Xf.isText(c)&&(Xf.equals(s,c,{loose:!0})?(vp.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===c.text?(vp.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(vp.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(Uf.isExpanded(n))vp.unsetNodes(e,t,{match:Xf.isText,split:!0});else{var r=Vl({},Af.marks(e)||{});delete r[t],e.marks=r,Il.get(e)||e.onChange()}}};return e})());return t.id="wangEditor-"+kA++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(AA.toDOMNode(t,t).focus({preventScroll:!0}),eA.set(t,!0),e){var n=Af.end(t,[]);vp.select(t,n)}else{var r=tA.get(t);r?vp.select(t,r):vp.select(t,Af.start(t,[]))}},t.isFocused=function(){return!!eA.get(t)},t.blur=function(){AA.toDOMNode(t,t).blur(),vp.deselect(t),eA.set(t,!1)},t.updateView=function(){AA.getTextarea(t).changeViewState();var e=AA.getToolbar(t);e&&e.changeToolbarState();var n=AA.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=AA.getTextarea(t);e.destroy(),jO.delete(t),FO.delete(e);var n=AA.getToolbar(t);n&&(n.destroy(),LO.delete(t),NO.delete(n));var r=AA.getHoverbar(t);r&&(r.destroy(),RO.delete(t),IO.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=Td("#"+e);if(0!==r.length){var o=r[0];if(!AA.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=AA.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,c=a.offset().top;u[0].scrollBy({top:s-c,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||AA.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=zO.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return AA.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=AA.getToolbar(t);n&&(e=n.$box);var r=AA.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=AA.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return AA.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return fT(e,"data-w-e-textarea",t)}(c,n))throw new Error("Repeated create editor by selector '"+n+"'");var l=function(e){void 0===e&&(e={});var t=Pg(_A),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Ch(t,(function(e,t){n[t]=PD(PD({},e),o[t]||{})})),delete e.MENU_CONF,PD({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(o);$O.set(c,l);var f=l.hoverbarKeys,p=void 0===f?{}:f;if(s.forEach((function(e){c=e(c)})),null!=a&&(c.children=pT(c,a)),i&&i.length&&(c.children=i),0===c.children.length&&(c.children=[{type:"paragraph",children:[{text:""}]}]),AA.normalizeContent(c),n){var d=new zB(n);jO.set(c,d),FO.set(d,c),d.changeViewState(),D_((function(){var e=d.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var h=void 0;Object.keys(p).length>0&&(h=new uP,IO.set(h,c),RO.set(c,h)),c.on("change",(function(){c.hidePanelOrModal()})),c.on("scroll",(function(){c.hidePanelOrModal()}))}else c.children.forEach((function(e,t){return sP(e,t,c,c)}));var v=l.onCreated,g=l.onDestroyed;return v&&c.on("created",(function(){return v(c)})),g&&c.on("destroyed",(function(){return g(c)})),D_((function(){return c.emit("created")})),c}var lP=jC("splice"),fP=Ib.TypeError,pP=Math.max,dP=Math.min;RE({target:"Array",proto:!0,forced:!lP},{splice:function(e,t){var n,r,o,i,a,u,s=Yb(this),c=Hx(s),l=yE(e,c),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=c-l):(n=f-2,r=dP(pP(Rx(t),0),c-l)),c+n-r>9007199254740991)throw fP("Maximum allowed length exceeded");for(o=Qx(s,r),i=0;i<r;i++)(a=l+i)in s&&_S(o,i,s[a]);if(o.length=r,n<r){for(i=l;i<c-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=c;i>c-r+n;i--)delete s[i-1]}else if(n>r)for(i=c-r;i>l;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+l]=arguments[i+2];return s.length=c-r+n,o}});var hP=function(){function e(e,t){var n=this;this.$toolbar=Td('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Bg((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=Td(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),D_((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,c=void 0===s?[]:s,l=Pg(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){l.splice(u.index+t,0,e)})));var f=l.filter((function(e){if("string"==typeof e){if(c.includes(e))return!1}else if(c.includes(e.key))return!1;return!0})),p=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===p)return;if("|"===t)return;var i=VB();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new nP(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof nP,o=this.menus,i=o[e];if(null==i){var a=TA[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var u=iP(e,i,r);this.toolbarItems.push(u),MO.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=NO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),vP=yx.EXISTS,gP=Gw.f,yP=Function.prototype,mP=Wb(yP.toString),bP=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,wP=Wb(bP.exec);function xP(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,c=e.meta,l=void 0===c?{}:c,f=e.metaWithUrl,p=void 0!==f&&f,d=e.headers,h=void 0===d?{}:d,v=e.withCredentials,g=void 0!==v&&v,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,x=e.onSuccess,E=void 0===x?function(e,t){}:x,S=e.onError,C=void 0===S?function(e,t,n){console.error(e.name+" upload error",t,n)}:S,D=e.onProgress,O=void 0===D?function(e){}:D;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var A=n;p&&(A=function(e,t){var n=FD(e.split("#"),2),r=n[0],o=n[1],i=[];Ch(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(A,l));var k=new am({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:l}).use(Bb,{endpoint:A,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:m});return k.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{E(e,r)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}k.removeFile(e.id)})),k.on("progress",(function(e){e<1||O(e)})),k.on("upload-error",(function(e,t,n){try{C(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k.on("restriction-failed",(function(e,t){try{C(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k}function EP(e){return EP="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},EP(e)}function SP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CP(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){SP(e,t,n[t])}))}return e}function DP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OP(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 AP(e,t,n){return t&&OP(e.prototype,t),n&&OP(e,n),e}function kP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _P(e,t){if(t&&("object"===EP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return kP(e)}function TP(e){return TP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},TP(e)}function BP(e,t){return BP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},BP(e,t)}function PP(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&&BP(e,t)}Ew&&!vP&&gP(yP,"name",{configurable:!0,get:function(){try{return wP(bP,mP(this))[1]}catch(e){return""}}});var jP={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},FP=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};DP(this,e),this.init(t,n)}return AP(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||jP,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,CP({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),NP=function(){function e(){DP(this,e),this.observers={}}return AP(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function LP(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function IP(e){return null==e?"":""+e}function RP(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function MP(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function zP(e,t,n){var r=MP(e,t,Object);r.obj[r.k]=n}function HP(e,t){var n=MP(e,t),r=n.obj,o=n.k;if(r)return r[o]}function $P(e,t,n){var r=HP(e,n);return void 0!==r?r:HP(t,n)}function VP(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):VP(e[r],t[r],n):e[r]=t[r]);return e}function UP(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var ZP={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function WP(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return ZP[e]})):e}var GP="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function qP(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var c=r.slice(i+a).join(n);return c?qP(s,c,n):void 0}o=o[r[i]]}return o}}var KP=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return DP(this,t),n=_P(this,TP(t).call(this)),GP&&NP.call(kP(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return PP(t,NP),AP(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=HP(this.data,a);return u||!i||"string"!=typeof n?u:qP(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),zP(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=HP(this.data,a)||{};r?VP(u,n,o):u=CP({},u,n),zP(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?CP({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),YP={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},XP={},JP=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return DP(this,t),n=_P(this,TP(t).call(this)),GP&&NP.call(kP(n)),RP(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,kP(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=FP.create("translator"),n}return PP(t,NP),AP(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==EP(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,s=a.namespaces,c=s[s.length-1],l=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(f){var p=n.nsSeparator||this.options.nsSeparator;return c+p+u}return u}var d=this.resolve(e,n),h=d&&d.res,v=d&&d.usedKey||u,g=d&&d.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&x&&m.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,h,CP({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var E="[object Array]"===y,S=E?[]:{},C=E?g:v;for(var D in h)if(Object.prototype.hasOwnProperty.call(h,D)){var O="".concat(C).concat(i).concat(D);S[D]=this.translate(O,CP({},n,{joinArrays:!1,ns:s})),S[D]===O&&(S[D]=h[D])}h=S}}else if(w&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var A=!1,k=!1,_=void 0!==n.count&&"string"!=typeof n.count,T=t.hasDefaultValue(n),B=_?this.pluralResolver.getSuffix(l,n.count):"",P=n["defaultValue".concat(B)]||n.defaultValue;!this.isValidLookup(h)&&T&&(A=!0,h=P),this.isValidLookup(h)||(k=!0,h=u);var j=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,F=j&&k?void 0:h,N=T&&P!==h&&this.options.updateMissing;if(k||A||N){if(this.logger.log(N?"updateKey":"missingKey",l,c,u,N?P:h),i){var L=this.resolve(u,CP({},n,{keySeparator:!1}));L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var I=[],R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&R&&R[0])for(var M=0;M<R.length;M++)I.push(R[M]);else"all"===this.options.saveMissingTo?I=this.languageUtils.toResolveHierarchy(n.lng||this.language):I.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,c,t,N?r:F,N,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,c,t,N?r:F,N,n),o.emit("missingKey",e,c,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?I.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||P)}))})):z(I,u,P))}h=this.extendTranslation(h,e,n,d,r),k&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(u)),(k||A)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(CP({},n,{interpolation:CP({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=CP({},this.options.interpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),u){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,p="string"==typeof f?[f]:f;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=YP.handle(p,e,t,this.options&&this.options.postProcessPassResolved?CP({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),c=s.key;n=c;var l=s.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,p=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,d=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!XP["".concat(d[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(XP["".concat(d[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,l=c,d=[l];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(d,c,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&p&&d.push(l+i),p&&d.push(l+="".concat(a.options.contextSeparator).concat(u.context)),f&&d.push(l+=i));s=d.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function QP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ej=function(){function e(t){DP(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=FP.create("languageUtils")}return AP(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=QP(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=QP(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=QP(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),tj=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],nj={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function rj(){var e={};return tj.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:nj[t.fc]}}))})),e}var oj=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};DP(this,e),this.languageUtils=t,this.options=n,this.logger=FP.create("pluralResolver"),this.rules=rj()}return AP(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),ij=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};DP(this,e),this.logger=FP.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return AP(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:WP,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?UP(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?UP(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?UP(t.nestingPrefix):t.nestingPrefixEscaped||UP("$t("),this.nestingSuffix=t.nestingSuffix?UP(t.nestingSuffix):t.nestingSuffixEscaped||UP(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(u.formatSeparator)<0){var o=$P(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,CP({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),c=i.join(u.formatSeparator).trim();return u.format($P(t,s,a),c,n,CP({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,d=[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?c(u.escape(e)):c(e)}}];return d.forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=l(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(p){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=IP(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),p?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=CP({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=CP({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=l.shift(),s=l,c=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=IP(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,CP({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),aj=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return DP(this,t),o=_P(this,TP(t).call(this)),GP&&NP.call(kP(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=FP.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return PP(t,NP),AP(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=MP(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,CP({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function uj(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===EP(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===EP(e[2])||"object"===EP(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function sj(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function cj(){}var lj=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(DP(this,t),e=_P(this,TP(t).call(this)),GP&&NP.call(kP(e)),e.options=sj(n),e.services={},e.logger=FP,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),_P(e,kP(e));setTimeout((function(){e.init(n,r)}),0)}return e}return PP(t,NP),AP(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=CP({},uj(),this.options,sj(t)),this.format=this.options.interpolation.format,n||(n=cj),!this.options.isClone){this.modules.logger?FP.init(r(this.modules.logger),this.options):FP.init(null,this.options);var o=new ej(this.options);this.store=new KP(this.options.resources,this.options);var i=this.services;i.logger=FP,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new oj(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new ij(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new aj(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new JP(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=["addResource","addResources","addResourceBundle","removeResourceBundle"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var c=LP(),l=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cj,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=LP();return e||(e=this.languages),t||(t=this.options.ns),n||(n=cj),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&YP.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=LP();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==EP(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=CP({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var c=r.options.keySeparator||".",l=n?"".concat(n).concat(c).concat(t):t;return r.t(l,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=LP();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=LP();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cj,o=CP({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=CP({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new JP(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),fj=new lj;function pj(e,t){fj.addResourceBundle(e,"translation",t,!0,!0)}fj.init({lng:"zh-CN",resources:{}});var dj=fj.t.bind(fj);pj("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),pj("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var hj=na?{}.toString:function(){return"[object "+aa(this)+"]"};na||Si(Object.prototype,"toString",hj,{unsafe:!0});var vj=Array.isArray||function(e){return"Array"==Zr(e)},gj=function(){},yj=[],mj=to("Reflect","construct"),bj=/^\s*(?:class|function)\b/,wj=$r(bj.exec),xj=!bj.exec(gj),Ej=function(e){if(!Jr(e))return!1;try{return mj(gj,yj,e),!0}catch(e){return!1}},Sj=!mj||_r((function(){var e;return Ej(Ej.call)||!Ej(Object)||!Ej((function(){e=!0}))||e}))?function(e){if(!Jr(e))return!1;switch(aa(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return xj||!!wj(bj,ii(e))}:Ej,Cj=Lo("species"),Dj=kr.Array,Oj=function(e,t){return new(function(e){var t;return vj(e)&&(t=e.constructor,(Sj(t)&&(t===Dj||vj(t.prototype))||Qr(t)&&null===(t=t[Cj]))&&(t=void 0)),void 0===t?Dj:t}(e))(0===t?0:t)},Aj=$r([].push),kj=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var p,d,h=Do(s),v=qr(h),g=mu(c,l),y=Pi(v),m=0,b=f||Oj,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(d=g(p=v[m],m,h),e))if(t)w[m]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:Aj(w,p)}else switch(e){case 4:return!1;case 7:Aj(w,p)}return i?-1:r||o?o:w}},_j=[kj(0),kj(1),kj(2),kj(3),kj(4),kj(5),kj(6),kj(7)][0],Tj=function(e,t){var n=[].forEach;return!!n&&_r((function(){n.call(null,(function(){throw 1}),1)}))}(),Bj=Tj?[].forEach:function(e){return _j(this,e,arguments.length>1?arguments[1]:void 0)},Pj=function(e){if(e&&e.forEach!==Bj)try{ei(e,"forEach",Bj)}catch(t){e.forEach=Bj}};for(var jj in ps)ps[jj]&&Pj(kr[jj]&&kr[jj].prototype);Pj(vs),pj("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),pj("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var Fj={type:"paragraph",renderElem:function(e,t,n){return bv("p",null,t)}},Nj="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function Lj(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ij,Rj,Mj=function(e){return e&&e.Math==Math&&e},zj=Mj("object"==typeof globalThis&&globalThis)||Mj("object"==typeof window&&window)||Mj("object"==typeof self&&self)||Mj("object"==typeof Nj&&Nj)||function(){return this}()||Function("return this")(),Hj=function(e){try{return!!e()}catch(e){return!0}},$j=!Hj((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Vj=Function.prototype.call,Uj=Vj.bind?Vj.bind(Vj):function(){return Vj.apply(Vj,arguments)},Zj={}.propertyIsEnumerable,Wj=Object.getOwnPropertyDescriptor,Gj=Wj&&!Zj.call({1:2},1)?function(e){var t=Wj(this,e);return!!t&&t.enumerable}:Zj,qj={f:Gj},Kj=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Yj=Function.prototype,Xj=Yj.bind,Jj=Yj.call,Qj=Xj&&Xj.bind(Jj),eF=Xj?function(e){return e&&Qj(Jj,e)}:function(e){return e&&function(){return Jj.apply(e,arguments)}},tF=eF({}.toString),nF=eF("".slice),rF=function(e){return nF(tF(e),8,-1)},oF=zj.Object,iF=eF("".split),aF=Hj((function(){return!oF("z").propertyIsEnumerable(0)}))?function(e){return"String"==rF(e)?iF(e,""):oF(e)}:oF,uF=zj.TypeError,sF=function(e){if(null==e)throw uF("Can't call method on "+e);return e},cF=function(e){return aF(sF(e))},lF=function(e){return"function"==typeof e},fF=function(e){return"object"==typeof e?null!==e:lF(e)},pF=function(e){return lF(e)?e:void 0},dF=function(e,t){return arguments.length<2?pF(zj[e]):zj[e]&&zj[e][t]},hF=eF({}.isPrototypeOf),vF=dF("navigator","userAgent")||"",gF=zj.process,yF=zj.Deno,mF=gF&&gF.versions||yF&&yF.version,bF=mF&&mF.v8;bF&&(Rj=(Ij=bF.split("."))[0]>0&&Ij[0]<4?1:+(Ij[0]+Ij[1])),!Rj&&vF&&(!(Ij=vF.match(/Edge\/(\d+)/))||Ij[1]>=74)&&(Ij=vF.match(/Chrome\/(\d+)/))&&(Rj=+Ij[1]);var wF=Rj,xF=!!Object.getOwnPropertySymbols&&!Hj((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&wF&&wF<41})),EF=xF&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,SF=zj.Object,CF=EF?function(e){return"symbol"==typeof e}:function(e){var t=dF("Symbol");return lF(t)&&hF(t.prototype,SF(e))},DF=zj.String,OF=function(e){try{return DF(e)}catch(e){return"Object"}},AF=zj.TypeError,kF=function(e){if(lF(e))return e;throw AF(OF(e)+" is not a function")},_F=function(e,t){var n=e[t];return null==n?void 0:kF(n)},TF=zj.TypeError,BF=Object.defineProperty,PF=function(e,t){try{BF(zj,e,{value:t,configurable:!0,writable:!0})}catch(n){zj[e]=t}return t},jF=zj["__core-js_shared__"]||PF("__core-js_shared__",{}),FF=Lj((function(e){(e.exports=function(e,t){return jF[e]||(jF[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),NF=zj.Object,LF=function(e){return NF(sF(e))},IF=eF({}.hasOwnProperty),RF=Object.hasOwn||function(e,t){return IF(LF(e),t)},MF=0,zF=Math.random(),HF=eF(1..toString),$F=function(e){return"Symbol("+(void 0===e?"":e)+")_"+HF(++MF+zF,36)},VF=FF("wks"),UF=zj.Symbol,ZF=UF&&UF.for,WF=EF?UF:UF&&UF.withoutSetter||$F,GF=function(e){if(!RF(VF,e)||!xF&&"string"!=typeof VF[e]){var t="Symbol."+e;xF&&RF(UF,e)?VF[e]=UF[e]:VF[e]=EF&&ZF?ZF(t):WF(t)}return VF[e]},qF=zj.TypeError,KF=GF("toPrimitive"),YF=function(e){var t=function(e,t){if(!fF(e)||CF(e))return e;var n,r=_F(e,KF);if(r){if(void 0===t&&(t="default"),n=Uj(r,e,t),!fF(n)||CF(n))return n;throw qF("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&lF(n=e.toString)&&!fF(r=Uj(n,e)))return r;if(lF(n=e.valueOf)&&!fF(r=Uj(n,e)))return r;if("string"!==t&&lF(n=e.toString)&&!fF(r=Uj(n,e)))return r;throw TF("Can't convert object to primitive value")}(e,t)}(e,"string");return CF(t)?t:t+""},XF=zj.document,JF=fF(XF)&&fF(XF.createElement),QF=function(e){return JF?XF.createElement(e):{}},eN=!$j&&!Hj((function(){return 7!=Object.defineProperty(QF("div"),"a",{get:function(){return 7}}).a})),tN=Object.getOwnPropertyDescriptor,nN={f:$j?tN:function(e,t){if(e=cF(e),t=YF(t),eN)try{return tN(e,t)}catch(e){}if(RF(e,t))return Kj(!Uj(qj.f,e,t),e[t])}},rN=zj.String,oN=zj.TypeError,iN=function(e){if(fF(e))return e;throw oN(rN(e)+" is not an object")},aN=zj.TypeError,uN=Object.defineProperty,sN={f:$j?uN:function(e,t,n){if(iN(e),t=YF(t),iN(n),eN)try{return uN(e,t,n)}catch(e){}if("get"in n||"set"in n)throw aN("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},cN=$j?function(e,t,n){return sN.f(e,t,Kj(1,n))}:function(e,t,n){return e[t]=n,e},lN=eF(Function.toString);lF(jF.inspectSource)||(jF.inspectSource=function(e){return lN(e)});var fN,pN,dN,hN=jF.inspectSource,vN=zj.WeakMap,gN=lF(vN)&&/native code/.test(hN(vN)),yN=FF("keys"),mN=function(e){return yN[e]||(yN[e]=$F(e))},bN={},wN=zj.TypeError,xN=zj.WeakMap;if(gN||jF.state){var EN=jF.state||(jF.state=new xN),SN=eF(EN.get),CN=eF(EN.has),DN=eF(EN.set);fN=function(e,t){if(CN(EN,e))throw new wN("Object already initialized");return t.facade=e,DN(EN,e,t),t},pN=function(e){return SN(EN,e)||{}},dN=function(e){return CN(EN,e)}}else{var ON=mN("state");bN[ON]=!0,fN=function(e,t){if(RF(e,ON))throw new wN("Object already initialized");return t.facade=e,cN(e,ON,t),t},pN=function(e){return RF(e,ON)?e[ON]:{}},dN=function(e){return RF(e,ON)}}var AN={set:fN,get:pN,has:dN,enforce:function(e){return dN(e)?pN(e):fN(e,{})},getterFor:function(e){return function(t){var n;if(!fF(t)||(n=pN(t)).type!==e)throw wN("Incompatible receiver, "+e+" required");return n}}},kN=Function.prototype,_N=$j&&Object.getOwnPropertyDescriptor,TN=RF(kN,"name"),BN={EXISTS:TN,PROPER:TN&&"something"===function(){}.name,CONFIGURABLE:TN&&(!$j||$j&&_N(kN,"name").configurable)},PN=Lj((function(e){var t=BN.CONFIGURABLE,n=AN.get,r=AN.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;lF(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!RF(i,"name")||t&&i.name!==f)&&cN(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==zj?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:cN(e,n,i)):c?e[n]=i:PF(n,i)})(Function.prototype,"toString",(function(){return lF(this)&&n(this).source||hN(this)}))})),jN=Math.ceil,FN=Math.floor,NN=function(e){var t=+e;return t!=t||0===t?0:(t>0?FN:jN)(t)},LN=Math.max,IN=Math.min,RN=function(e,t){var n=NN(e);return n<0?LN(n+t,0):IN(n,t)},MN=Math.min,zN=function(e){return e>0?MN(NN(e),9007199254740991):0},HN=function(e){return zN(e.length)},$N=function(e){return function(t,n,r){var o,i=cF(t),a=HN(i),u=RN(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},VN={includes:$N(!0),indexOf:$N(!1)},UN=VN.indexOf,ZN=eF([].push),WN=function(e,t){var n,r=cF(e),o=0,i=[];for(n in r)!RF(bN,n)&&RF(r,n)&&ZN(i,n);for(;t.length>o;)RF(r,n=t[o++])&&(~UN(i,n)||ZN(i,n));return i},GN=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qN=GN.concat("length","prototype"),KN={f:Object.getOwnPropertyNames||function(e){return WN(e,qN)}},YN={f:Object.getOwnPropertySymbols},XN=eF([].concat),JN=dF("Reflect","ownKeys")||function(e){var t=KN.f(iN(e)),n=YN.f;return n?XN(t,n(e)):t},QN=function(e,t){for(var n=JN(t),r=sN.f,o=nN.f,i=0;i<n.length;i++){var a=n[i];RF(e,a)||r(e,a,o(t,a))}},eL=/#|\.prototype\./,tL=function(e,t){var n=rL[nL(e)];return n==iL||n!=oL&&(lF(t)?Hj(t):!!t)},nL=tL.normalize=function(e){return String(e).replace(eL,".").toLowerCase()},rL=tL.data={},oL=tL.NATIVE="N",iL=tL.POLYFILL="P",aL=tL,uL=nN.f,sL=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?zj:c?zj[u]||PF(u,{}):(zj[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=uL(n,r))&&a.value:n[r],!aL(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;QN(i,o)}(e.sham||o&&o.sham)&&cN(i,"sham",!0),PN(n,r,i,e)}},cL=eF(eF.bind),lL=Array.isArray||function(e){return"Array"==rF(e)},fL={};fL[GF("toStringTag")]="z";var pL="[object z]"===String(fL),dL=GF("toStringTag"),hL=zj.Object,vL="Arguments"==rF(function(){return arguments}()),gL=pL?rF:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=hL(e),dL))?n:vL?rF(t):"Object"==(r=rF(t))&&lF(t.callee)?"Arguments":r},yL=function(){},mL=[],bL=dF("Reflect","construct"),wL=/^\s*(?:class|function)\b/,xL=eF(wL.exec),EL=!wL.exec(yL),SL=function(e){if(!lF(e))return!1;try{return bL(yL,mL,e),!0}catch(e){return!1}},CL=!bL||Hj((function(){var e;return SL(SL.call)||!SL(Object)||!SL((function(){e=!0}))||e}))?function(e){if(!lF(e))return!1;switch(gL(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return EL||!!xL(wL,hN(e))}:SL,DL=GF("species"),OL=zj.Array,AL=function(e,t){return new(function(e){var t;return lL(e)&&(t=e.constructor,(CL(t)&&(t===OL||lL(t.prototype))||fF(t)&&null===(t=t[DL]))&&(t=void 0)),void 0===t?OL:t}(e))(0===t?0:t)},kL=eF([].push),_L=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var p,d,h=LF(s),v=aF(h),g=function(e,t){return kF(e),void 0===t?e:cL?cL(e,t):function(){return e.apply(t,arguments)}}(c,l),y=HN(v),m=0,b=f||AL,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(d=g(p=v[m],m,h),e))if(t)w[m]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:kL(w,p)}else switch(e){case 4:return!1;case 7:kL(w,p)}return i?-1:r||o?o:w}},TL={forEach:_L(0),map:_L(1),filter:_L(2),some:_L(3),every:_L(4),find:_L(5),findIndex:_L(6),filterReject:_L(7)},BL=GF("species"),PL=function(e){return wF>=51||!Hj((function(){var t=[];return(t.constructor={})[BL]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},jL=TL.filter;sL({target:"Array",proto:!0,forced:!PL("filter")},{filter:function(e){return jL(this,e,arguments.length>1?arguments[1]:void 0)}});var FL=pL?{}.toString:function(){return"[object "+gL(this)+"]"};pL||PN(Object.prototype,"toString",FL,{unsafe:!0});var NL,LL=zj.String,IL=function(e){if("Symbol"===gL(e))throw TypeError("Cannot convert a Symbol value to a string");return LL(e)},RL=function(){var e=iN(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},ML=zj.RegExp,zL=Hj((function(){var e=ML("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),HL=zL||Hj((function(){return!ML("a","y").sticky})),$L={BROKEN_CARET:zL||Hj((function(){var e=ML("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:HL,UNSUPPORTED_Y:zL},VL=Object.keys||function(e){return WN(e,GN)},UL=$j?Object.defineProperties:function(e,t){iN(e);for(var n,r=cF(t),o=VL(t),i=o.length,a=0;i>a;)sN.f(e,n=o[a++],r[n]);return e},ZL=dF("document","documentElement"),WL=mN("IE_PROTO"),GL=function(){},qL=function(e){return"<script>"+e+"<\/script>"},KL=function(e){e.write(qL("")),e.close();var t=e.parentWindow.Object;return e=null,t},YL=function(){try{NL=new ActiveXObject("htmlfile")}catch(e){}var e,t;YL="undefined"!=typeof document?document.domain&&NL?KL(NL):((t=QF("iframe")).style.display="none",ZL.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(qL("document.F=Object")),e.close(),e.F):KL(NL);for(var n=GN.length;n--;)delete YL.prototype[GN[n]];return YL()};bN[WL]=!0;var XL,JL,QL=Object.create||function(e,t){var n;return null!==e?(GL.prototype=iN(e),n=new GL,GL.prototype=null,n[WL]=e):n=YL(),void 0===t?n:UL(n,t)},eI=zj.RegExp,tI=Hj((function(){var e=eI(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),nI=zj.RegExp,rI=Hj((function(){var e=nI("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),oI=AN.get,iI=FF("native-string-replace",String.prototype.replace),aI=RegExp.prototype.exec,uI=aI,sI=eF("".charAt),cI=eF("".indexOf),lI=eF("".replace),fI=eF("".slice),pI=(JL=/b*/g,Uj(aI,XL=/a/,"a"),Uj(aI,JL,"a"),0!==XL.lastIndex||0!==JL.lastIndex),dI=$L.BROKEN_CARET,hI=void 0!==/()??/.exec("")[1];(pI||hI||dI||tI||rI)&&(uI=function(e){var t,n,r,o,i,a,u,s=this,c=oI(s),l=IL(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=Uj(uI,f,l),s.lastIndex=f.lastIndex,t;var p=c.groups,d=dI&&s.sticky,h=Uj(RL,s),v=s.source,g=0,y=l;if(d&&(h=lI(h,"y",""),-1===cI(h,"g")&&(h+="g"),y=fI(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==sI(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),hI&&(n=new RegExp("^"+v+"$(?!\\s)",h)),pI&&(r=s.lastIndex),o=Uj(aI,d?n:s,y),d?o?(o.input=fI(o.input,g),o[0]=fI(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:pI&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),hI&&o&&o.length>1&&Uj(iI,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=QL(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var vI=uI;sL({target:"RegExp",proto:!0,forced:/./.exec!==vI},{exec:vI});var gI=Function.prototype,yI=gI.apply,mI=gI.bind,bI=gI.call,wI="object"==typeof Reflect&&Reflect.apply||(mI?bI.bind(yI):function(){return bI.apply(yI,arguments)}),xI=GF("species"),EI=RegExp.prototype,SI=function(e,t,n,r){var o=GF(e),i=!Hj((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Hj((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[xI]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=eF(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=eF(e),s=t.exec;return s===vI||s===EI.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));PN(String.prototype,e,s[0]),PN(EI,o,s[1])}r&&cN(EI[o],"sham",!0)},CI=eF("".charAt),DI=eF("".charCodeAt),OI=eF("".slice),AI=function(e){return function(t,n){var r,o,i=IL(sF(t)),a=NN(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=DI(i,a))<55296||r>56319||a+1===u||(o=DI(i,a+1))<56320||o>57343?e?CI(i,a):r:e?OI(i,a,a+2):o-56320+(r-55296<<10)+65536}},kI=(AI(!1),AI(!0)),_I=function(e,t,n){return t+(n?kI(e,t).length:1)},TI=Math.floor,BI=eF("".charAt),PI=eF("".replace),jI=eF("".slice),FI=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,NI=/\$([$&'`]|\d{1,2})/g,LI=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=NI;return void 0!==o&&(o=LF(o),s=FI),PI(i,s,(function(i,s){var c;switch(BI(s,0)){case"$":return"$";case"&":return e;case"`":return jI(t,0,n);case"'":return jI(t,a);case"<":c=o[jI(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=TI(l/10);return 0===f?i:f<=u?void 0===r[f-1]?BI(s,1):r[f-1]+BI(s,1):i}c=r[l-1]}return void 0===c?"":c}))},II=zj.TypeError,RI=function(e,t){var n=e.exec;if(lF(n)){var r=Uj(n,e,t);return null!==r&&iN(r),r}if("RegExp"===rF(e))return Uj(vI,e,t);throw II("RegExp#exec called on incompatible receiver")},MI=GF("replace"),zI=Math.max,HI=Math.min,$I=eF([].concat),VI=eF([].push),UI=eF("".indexOf),ZI=eF("".slice),WI="$0"==="a".replace(/./,"$0"),GI=!!/./[MI]&&""===/./[MI]("a","$0");SI("replace",(function(e,t,n){var r=GI?"$":"$0";return[function(e,n){var r=sF(this),o=null==e?void 0:_F(e,MI);return o?Uj(o,e,r,n):Uj(t,IL(r),e,n)},function(e,o){var i=iN(this),a=IL(e);if("string"==typeof o&&-1===UI(o,r)&&-1===UI(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=lF(o);s||(o=IL(o));var c=i.global;if(c){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var p=RI(i,a);if(null===p)break;if(VI(f,p),!c)break;""===IL(p[0])&&(i.lastIndex=_I(a,zN(i.lastIndex),l))}for(var d,h="",v=0,g=0;g<f.length;g++){for(var y=IL((p=f[g])[0]),m=zI(HI(NN(p.index),a.length),0),b=[],w=1;w<p.length;w++)VI(b,void 0===(d=p[w])?d:String(d));var x=p.groups;if(s){var E=$I([y],b,m,a);void 0!==x&&VI(E,x);var S=IL(wI(o,void 0,E))}else S=LI(y,a,m,b,x,o);m>=v&&(h+=ZI(a,v,m)+S,v=m+y.length)}return h+ZI(a,v)}]}),!!Hj((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!WI||GI);var qI=GF("unscopables"),KI=Array.prototype;null==KI[qI]&&sN.f(KI,qI,{configurable:!0,value:QL(null)});var YI=function(e){KI[qI][e]=!0},XI=TL.find,JI=!0;"find"in[]&&Array(1).find((function(){JI=!1})),sL({target:"Array",proto:!0,forced:JI},{find:function(e){return XI(this,e,arguments.length>1?arguments[1]:void 0)}}),YI("find");var QI=GF("match"),eR=function(e){var t;return fF(e)&&(void 0!==(t=e[QI])?!!t:"RegExp"==rF(e))},tR=zj.TypeError,nR=GF("species"),rR=function(e,t,n){var r=YF(t);r in e?sN.f(e,r,Kj(0,n)):e[r]=n},oR=zj.Array,iR=Math.max,aR=function(e,t,n){for(var r=HN(e),o=RN(t,r),i=RN(void 0===n?r:n,r),a=oR(iR(i-o,0)),u=0;o<i;o++,u++)rR(a,u,e[o]);return a.length=u,a},uR=$L.UNSUPPORTED_Y,sR=Math.min,cR=[].push,lR=eF(/./.exec),fR=eF(cR),pR=eF("".slice);SI("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=IL(sF(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!eR(e))return Uj(t,r,e,o);for(var i,a,u,s=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,f=new RegExp(e.source,c+"g");(i=Uj(vI,f,r))&&!((a=f.lastIndex)>l&&(fR(s,pR(r,l,i.index)),i.length>1&&i.index<r.length&&wI(cR,s,aR(i,1)),u=i[0].length,l=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return l===r.length?!u&&lR(f,"")||fR(s,""):fR(s,pR(r,l)),s.length>o?aR(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Uj(t,this,e,n)}:t,[function(t,n){var o=sF(this),i=null==t?void 0:_F(t,e);return i?Uj(i,t,o,n):Uj(r,IL(o),t,n)},function(e,o){var i=iN(this),a=IL(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=iN(e).constructor;return void 0===r||null==(n=iN(r)[nR])?t:function(e){if(CL(e))return e;throw tR(OF(e)+" is not a constructor")}(n)}(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(uR?"g":"y"),f=new s(uR?"^(?:"+i.source+")":i,l),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===a.length)return null===RI(f,a)?[a]:[];for(var d=0,h=0,v=[];h<a.length;){f.lastIndex=uR?0:h;var g,y=RI(f,uR?pR(a,h):a);if(null===y||(g=sR(zN(f.lastIndex+(uR?h:0)),a.length))===d)h=_I(a,h,c);else{if(fR(v,pR(a,d,h)),v.length===p)return v;for(var m=1;m<=y.length-1;m++)if(fR(v,y[m]),v.length===p)return v;h=d=g}}return fR(v,pR(a,d)),v}]}),!!Hj((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),uR);var dR="\t\n\v\f\r \u2028\u2029\ufeff",hR=eF("".replace),vR="["+dR+"]",gR=RegExp("^"+vR+vR+"*"),yR=RegExp(vR+vR+"*$"),mR=function(e){return function(t){var n=IL(sF(t));return 1&e&&(n=hR(n,gR,"")),2&e&&(n=hR(n,yR,"")),n}},bR={start:mR(1),end:mR(2),trim:mR(3)},wR=BN.PROPER,xR=bR.trim;function ER(e){return 0===Td("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function SR(e){return 0===e.length?"":e[0].outerHTML}function CR(e){return e.length?e[0].tagName.toLowerCase():""}function DR(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}sL({target:"String",proto:!0,forced:Hj((function(){return!!dR.trim()||"
"!=="
".trim()||wR&&"trim"!==dR.trim.name}))},{trim:function(){return xR(this)}}),sL({global:!0},{globalThis:zj}),Zd&&(Td.fn.css=Zd),Xd&&(Td.fn.append=Xd),Jd&&(Td.fn.prepend=Jd),Bd&&(Td.fn.addClass=Bd),Pd&&(Td.fn.removeClass=Pd),jd&&(Td.fn.hasClass=jd),Rd&&(Td.fn.on=Rd),Md&&(Td.fn.off=Md),sh&&(Td.fn.focus=sh),Fd&&(Td.fn.attr=Fd),Nd&&(Td.fn.removeAttr=Nd),Vd&&(Td.fn.hide=Vd),Ud&&(Td.fn.show=Ud),eh&&(Td.fn.parents=eh),Ld&&(Td.fn.dataset=Ld),Id&&(Td.fn.val=Id),Kd&&(Td.fn.text=Kd),qd&&(Td.fn.html=qd),nh&&(Td.fn.children=nh),rh&&(Td.fn.remove=rh),th&&(Td.fn.find=th),zd&&(Td.fn.width=zd),Hd&&(Td.fn.height=Hd),Gd&&(Td.fn.filter=Gd),oh&&(Td.fn.empty=oh);var OR={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Td(e);return 0===(t=t.filter((function(e){return!!Xf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},AR=function(e,t){return AR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},AR(e,t)
|
|
81
|
+
/*! *****************************************************************************
|
|
82
|
+
Copyright (c) Microsoft Corporation.
|
|
83
|
+
|
|
84
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
85
|
+
purpose with or without fee is hereby granted.
|
|
86
|
+
|
|
87
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
88
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
89
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
90
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
91
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
92
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
93
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
94
|
+
***************************************************************************** */};function kR(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}AR(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var _R=function(){return _R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_R.apply(this,arguments)};function TR(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function BR(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function PR(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function jR(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function FR(e){var t=jR(Af.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!xf.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Pf.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!Xf.isText(o[0])&&(vp.setNodes(e,{type:"paragraph"}),!0)}var NR={renderElems:[Fj],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[OR],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){FR(r)||t(e)},r.deleteForward=function(e){FR(r)||n(e)},r}},LR=/"/g,IR=eF("".replace),RR=function(e,t,n,r){var o=IL(sF(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+IR(IL(r),LR,""")+'"'),i+">"+o+"</"+t+">"},MR=function(e){return Hj((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function zR(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function HR(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}sL({target:"String",proto:!0,forced:MR("bold")},{bold:function(){return RR(this,"b","","")}}),sL({target:"String",proto:!0,forced:MR("italics")},{italics:function(){return RR(this,"i","","")}}),sL({target:"String",proto:!0,forced:MR("sub")},{sub:function(){return RR(this,"sub","","")}}),sL({target:"String",proto:!0,forced:MR("sup")},{sup:function(){return RR(this,"sup","","")}});var $R={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},VR=QF("span").classList,UR=VR&&VR.constructor&&VR.constructor.prototype,ZR=UR===Object.prototype?void 0:UR,WR=function(e,t){var n=[][e];return!!n&&Hj((function(){n.call(null,t||function(){throw 1},1)}))},GR=TL.forEach,qR=WR("forEach")?[].forEach:function(e){return GR(this,e,arguments.length>1?arguments[1]:void 0)},KR=function(e){if(e&&e.forEach!==qR)try{cN(e,"forEach",qR)}catch(t){e.forEach=qR}};for(var YR in $R)$R[YR]&&KR(zj[YR]&&zj[YR].prototype);function XR(e,t){return null==e.selection||!!jR(Af.nodes(e,{match:function(t){return"pre"===AA.getNodeType(t)||!!Af.isVoid(e,t)},universal:!0}),1)[0]}function JR(e,t){Object.keys(t).forEach((function(t){"text"!==t&&Af.removeMark(e,t)}))}KR(ZR),sL({target:"Object",stat:!0,forced:Hj((function(){VL(1)}))},{keys:function(e){return VL(LF(e))}});var QR=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=Af.marks(e);return n?n[t]:!!jR(Af.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return XR(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),eM='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',tM='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',nM='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',rM='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',oM='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',iM='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',aM='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',uM='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',sM='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',cM='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',lM='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',fM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',pM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',dM='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',hM='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',vM='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',gM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',yM='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',mM='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',bM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=dj("textStyle.bold"),t.iconSvg=eM,t.hotkey="mod+b",t}return kR(t,e),t}(QR),wM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=dj("textStyle.code"),t.iconSvg=oM,t.hotkey="mod+e",t}return kR(t,e),t}(QR),xM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=dj("textStyle.italic"),t.iconSvg=nM,t.hotkey="mod+i",t}return kR(t,e),t}(QR),EM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=dj("textStyle.through"),t.iconSvg=rM,t.hotkey="mod+shift+x",t}return kR(t,e),t}(QR),SM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=dj("textStyle.underline"),t.iconSvg=tM,t.hotkey="mod+u",t}return kR(t,e),t}(QR),CM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=dj("textStyle.sub"),t.iconSvg=mM,t.hotkey="",t}return kR(t,e),t}(QR),DM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=dj("textStyle.sup"),t.iconSvg=yM,t.hotkey="",t}return kR(t,e),t}(QR),OM=function(){function e(){this.title=dj("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return XR(e)},e.prototype.exec=function(e,t){var n,r,o=Af.nodes(e,{match:function(e){return Xf.isText(e)},universal:!0});try{for(var i=PR(o),a=i.next();!a.done;a=i.next())JR(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),AM={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,c=n.sup,l=t;return r&&(l=bv("strong",null,l)),a&&(l=bv("code",null,l)),o&&(l=bv("em",null,l)),i&&(l=bv("u",null,l)),u&&(l=bv("s",null,l)),s&&(l=bv("sub",null,l)),c&&(l=bv("sup",null,l)),l},menus:[{key:"bold",factory:function(){return new bM}},{key:"underline",factory:function(){return new SM}},{key:"italic",factory:function(){return new xM}},{key:"through",factory:function(){return new EM}},{key:"code",factory:function(){return new wM}},{key:"sub",factory:function(){return new CM}},{key:"sup",factory:function(){return new DM}},{key:"clearStyle",factory:function(){return new OM}}],styleToHtml:function(e,t){if(!Xf.isText(e))return t;if(ER(t))return zR(e,t);var n=Td(t);if("br"===CR(n))return zR(e,"<br>");var r=n.html();return r=zR(e,r),n.html(r),SR(n)},parseStyleHtml:function(e,t,n){var r=Td(e);if(!Xf.isText(t))return t;var o=t;return HR(r,"b,strong")&&(o.bold=!0),HR(r,"i,em")&&(o.italic=!0),HR(r,"u")&&(o.underline=!0),HR(r,"s,strike")&&(o.through=!0),HR(r,"sub")&&(o.sub=!0),HR(r,"sup")&&(o.sup=!0),HR(r,"code")&&(o.code=!0),o}};function kM(e){return function(t,n,r){return bv("h"+e,null,n)}}var _M={type:"header1",renderElem:kM(1)},TM={type:"header2",renderElem:kM(2)},BM={type:"header3",renderElem:kM(3)},PM={type:"header4",renderElem:kM(4)},jM={type:"header5",renderElem:kM(5)},FM=BN.PROPER,NM=RegExp.prototype,LM=NM.toString,IM=eF(RL),RM=Hj((function(){return"/a/b"!=LM.call({source:"a",flags:"b"})})),MM=FM&&"toString"!=LM.name;(RM||MM)&&PN(RegExp.prototype,"toString",(function(){var e=iN(this),t=IL(e.source),n=e.flags;return"/"+t+"/"+IL(void 0===n&&hF(NM,e)&&!("flags"in NM)?IM(e):n)}),{unsafe:!0});var zM,HM=zj.TypeError,$M=function(e){if(eR(e))throw HM("The method doesn't accept regular expressions");return e},VM=GF("match"),UM=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[VM]=!1,"/./"[e](t)}catch(e){}}return!1},ZM=nN.f,WM=eF("".startsWith),GM=eF("".slice),qM=Math.min,KM=UM("startsWith");function YM(e){var t=jR(Af.nodes(e,{match:function(e){return AA.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=jR(n,1)[0];return AA.getNodeType(r)}function XM(e){return null==e.selection||!jR(Af.nodes(e,{match:function(e){var t=AA.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function JM(e,t){t&&vp.setNodes(e,{type:t})}sL({target:"String",proto:!0,forced:!(!KM&&(zM=ZM(String.prototype,"startsWith"),zM&&!zM.writable)||KM)},{startsWith:function(e){var t=IL(sF(this));$M(e);var n=zN(qM(arguments.length>1?arguments[1]:void 0,t.length)),r=IL(e);return WM?WM(t,r,n):GM(t,n,n+r.length)===r}});var QM=function(){function e(){this.title=dj("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:dj("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return YM(e)},e.prototype.isDisabled=function(e){return XM(e)},e.prototype.exec=function(e,t){JM(e,t.toString())},e}(),ez=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return YM(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return XM(e)},e.prototype.exec=function(e,t){var n=this.type;JM(e,t===n?"paragraph":n)},e}(),tz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return kR(t,e),t}(ez),nz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return kR(t,e),t}(ez),rz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return kR(t,e),t}(ez),oz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return kR(t,e),t}(ez),iz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return kR(t,e),t}(ez),az={key:"headerSelect",factory:function(){return new QM}},uz={key:"header1",factory:function(){return new tz}},sz={key:"header2",factory:function(){return new nz}},cz={key:"header3",factory:function(){return new rz}},lz={key:"header4",factory:function(){return new oz}},fz={key:"header5",factory:function(){return new iz}};function pz(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function dz(e){return function(t,n,r){var o=Td(t);return 0===(n=n.filter((function(e){return!!Xf.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var hz={renderElems:[_M,TM,BM,PM,jM],elemsToHtml:[{type:"header1",elemToHtml:pz(1)},{type:"header2",elemToHtml:pz(2)},{type:"header3",elemToHtml:pz(3)},{type:"header4",elemToHtml:pz(4)},{type:"header5",elemToHtml:pz(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:dz(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:dz(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:dz(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:dz(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:dz(5)}],menus:[az,uz,sz,cz,lz,fz],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=jR(Af.nodes(n,{match:function(e){return AA.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&AA.isSelectionAtLineEnd(e,r[1])?vp.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},vz=Object.assign,gz=Object.defineProperty,yz=eF([].concat),mz=!vz||Hj((function(){if($j&&1!==vz({b:1},vz(gz({},"a",{enumerable:!0,get:function(){gz(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=vz({},e)[n]||VL(vz({},t)).join("")!=r}))?function(e,t){for(var n=LF(e),r=arguments.length,o=1,i=YN.f,a=qj.f;r>o;)for(var u,s=aF(arguments[o++]),c=i?yz(VL(s),i(s)):VL(s),l=c.length,f=0;l>f;)u=c[f++],$j&&!Uj(a,s,u)||(n[u]=s[u]);return n}:vz;function bz(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}sL({target:"Object",stat:!0,forced:Object.assign!==mz},{assign:mz});var wz={selector:"font",preParseHtml:function(e){var t=Td(e);if("font"!==CR(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},xz=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=Af.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!jR(Af.nodes(e,{match:function(t){return"pre"===AA.getNodeType(t)||!!Af.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Td('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=Td(r).attr("data-value");"0"===o?Af.removeMark(e,t):Af.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=Td('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=Td('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=dj("color.default")),"bgColor"===t&&(a=dj("color.clear"));var u=Td('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),Ez=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dj("color.color"),t.iconSvg=uM,t.mark="color",t}return kR(t,e),t}(xz),Sz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dj("color.bgColor"),t.iconSvg=sM,t.mark="bgColor",t}return kR(t,e),t}(xz),Cz=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],Dz={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&bz(i,{color:r}),o&&bz(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Xf.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((ER(t)||"span"!==CR(n=Td(t)))&&(n=Td("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),SR(n)):t},preParseHtml:[wz],parseStyleHtml:function(e,t,n){var r=Td(e);if(!Xf.isText(t))return t;var o=t,i=DR(r,"color");i&&(o.color=i);var a=DR(r,"background-color");return a||(a=DR(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new Ez},config:{colors:Cz}},{key:"bgColor",factory:function(){return new Sz},config:{colors:Cz}}]},Oz=/^(?:\w+:)?\/\/(\S+)$/,Az=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,kz=/^[^\s\.]+\.\S{2,}$/,_z=VN.includes;function Tz(e){return void 0===e&&(e="r"),e+"-"+Dh()}function Bz(e){return e.replace(/</g,"<").replace(/>/g,">")}function Pz(e,t,n,r){return TR(this,void 0,void 0,(function(){var o,i;return BR(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function jz(e,t,n){return TR(this,void 0,void 0,(function(){var r;return BR(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function Fz(e){return null==e.selection||!!AA.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function Nz(e,t){return{type:"link",url:Bz(e),children:t?[{text:t}]:[]}}function Lz(e,t,n){return TR(this,void 0,void 0,(function(){var r,o,i;return BR(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),Fz(e)?[2]:[4,Pz("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,jz("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(Uf.isCollapsed(o)?(e.insertText(" "),i=Nz(r,t),vp.insertNodes(e,i),e.insertFragment([{text:" "}])):Af.string(e,o)!==t?(e.deleteFragment(),i=Nz(r,t),vp.insertNodes(e,i)):(i=Nz(r),vp.wrapNodes(e,i,{split:!0}),vp.collapse(e,{edge:"end"}))),[2]}}))}))}sL({target:"Array",proto:!0},{includes:function(e){return _z(this,e,arguments.length>1?arguments[1]:void 0)}}),YI("includes");var Iz={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return bv("a",{href:o,target:void 0===i?"_blank":i},t)}},Rz={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Td(e);return 0===(t=t.filter((function(e){return!!Xf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function Mz(){return Tz("w-e-insert-link")}var zz=function(){function e(){this.title=dj("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=Mz(),this.urlInputId=Mz(),this.buttonId=Mz()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return Fz(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=jR(XB(dj("link.text"),r),2),u=a[0],s=Td(a[1]),c=jR(XB(dj("link.url"),o),2),l=c[0],f=Td(c[1]),p=jR(JB(i,dj("common.ok")),1)[0];if(null==this.$content){var d=Td("<div></div>");d.on("click","#"+i,(function(t){t.preventDefault();var n=d.find("#"+r).val(),i=d.find("#"+o).val();Lz(e,n,i),e.hidePanelOrModal()})),this.$content=d}var h=this.$content;if(h.empty(),h.append(u),h.append(l),h.append(p),null==t||Uf.isCollapsed(t))s.val("");else{var v=Af.string(e,t);s.val(v)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function Hz(){return Tz("w-e-update-link")}var $z=function(){function e(){this.title=dj("link.edit"),this.iconSvg=iM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=Hz(),this.buttonId=Hz()}return e.prototype.getSelectedLinkElem=function(e){var t=AA.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return AA.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=jR(XB(dj("link.url"),t),2),o=r[0],i=Td(r[1]),a=jR(JB(n,dj("common.ok")),1)[0];if(null==this.$content){var u=Td("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=AA.getSelectedNodeByType(e,"link"),o=r?Pf.string(r):"",i=u.find("#"+t).val();!function(e,t,n){TR(this,void 0,void 0,(function(){var r,o;return BR(this,(function(i){switch(i.label){case 0:return n?[4,Pz("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,jz("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:Bz(r)},vp.setNodes(e,o,{match:function(e){return AA.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var c=this.getValue(e);return i.val(c),setTimeout((function(){i.focus()})),s[0]},e}(),Vz=function(){function e(){this.title=dj("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==AA.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||vp.unwrapNodes(e,{match:function(e){return AA.checkNodeType(e,"link")}})},e}(),Uz=function(){function e(){this.title=dj("link.view"),this.iconSvg=aM,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=AA.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),Zz={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Wz={renderElems:[Iz],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[Rz],menus:[{key:"insertLink",factory:function(){return new zz},config:Zz},{key:"editLink",factory:function(){return new $z},config:Zz},{key:"unLink",factory:function(){return new Vz}},{key:"viewLink",factory:function(){return new Uz}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(Oz);if(!t)return!1;var n=t[1];return!(!n||!Az.test(n)&&!kz.test(n))}(t)){if(!Fz(o)){var r=o.selection;if(null!=r){var i=Af.string(o,r);Lz(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=jR(e,2),n=t[0],i=t[1];return"link"!==AA.getNodeType(n)?r([n,i]):""===Pf.string(n)?vp.removeNodes(o,{at:i}):r([n,i])},o}},Gz=eF(1..valueOf),qz=zj.RangeError,Kz=zj.RangeError,Yz=zj.String,Xz=Math.floor,Jz=eF((function(e){var t=IL(sF(this)),n="",r=NN(e);if(r<0||r==1/0)throw qz("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),Qz=eF("".slice),eH=eF(1..toFixed),tH=function(e,t,n){return 0===t?n:t%2==1?tH(e,t-1,n*e):tH(e*e,t/2,n)},nH=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=Xz(o/1e7)},rH=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=Xz(r/t),r=r%t*1e7},oH=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=Yz(e[t]);n=""===n?r:n+Jz("0",7-r.length)+r}return n};function iH(e,t){return"w-e-image-container-"+AA.findKey(e,t).id}sL({target:"Number",proto:!0,forced:Hj((function(){return"0.000"!==eH(8e-5,3)||"1"!==eH(.9,0)||"1.25"!==eH(1.255,2)||"1000000000000000128"!==eH(0xde0b6b3a7640080,0)}))||!Hj((function(){eH({})}))},{toFixed:function(e){var t,n,r,o,i=Gz(this),a=NN(e),u=[0,0,0,0,0,0],s="",c="0";if(a<0||a>20)throw Kz("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return Yz(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*tH(2,69,1))-69)<0?i*tH(2,-t,1):i/tH(2,t,1),n*=4503599627370496,(t=52-t)>0){for(nH(u,0,n),r=a;r>=7;)nH(u,1e7,0),r-=7;for(nH(u,tH(10,r,1),0),r=t-1;r>=23;)rH(u,1<<23),r-=23;rH(u,1<<r),nH(u,1,1),rH(u,2),c=oH(u)}else nH(u,0,n),nH(u,1<<-t,0),c=oH(u)+Jz("0",a);return a>0?s+((o=c.length)<=a?"0."+Jz("0",a-o)+c:Qz(c,0,o-a)+"."+Qz(c,o-a)):s+c}});var aH={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,c=r.style,l=void 0===c?{}:c,f=l.width,p=void 0===f?"":f,d=l.height,h=void 0===d?"":d,v=AA.isNodeSelected(n,e),g={};p&&(g.width="100%"),h&&(g.height="100%");var y=bv("img",{style:g,src:o,alt:a,"data-href":s}),m=n.isDisabled();return v&&!m?function(e,t,n,r){var o=Td("body"),i=iH(e,t),a=r.width,u=r.height,s=0,c=0,l=0,f=!1,p=null;function d(t){p=function(){var e=Td("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=p.find("img");if(0===n.length)throw new Error("Cannot find image elem");c=n.width(),l=n.height(),o.on("mousemove",h),o.on("mouseup",v);var r=AA.getHoverbar(e);r&&r.hideAndClean()}var h=zh((function(e){e.preventDefault();var t=e.clientX,n=c+(f?s-t:t-s),r=l*(n/c);null!=p&&(n<=15||r<=15||(p.css("width",n+"px"),p.css("height",r+"px")))}),100);function v(n){if(o.off("mousemove",h),null!=p){var r=p.width().toFixed(2),i=p.height().toFixed(2),a={style:_R(_R({},t.style),{width:r+"px",height:i+"px"})};vp.setNodes(e,a,{at:AA.findPath(e,t)}),o.off("mouseup",v)}}var g={};return a&&(g.width=a),u&&(g.height=u),bv("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=Td(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),d(e.clientX))}}},n,bv("div",{className:"w-e-image-dragger left-top"}),bv("div",{className:"w-e-image-dragger right-top"}),bv("div",{className:"w-e-image-dragger left-bottom"}),bv("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:p,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};return o&&(a.width=o),i&&(a.height=i),bv("div",{id:iH(e,t),style:a,className:"w-e-image-container"},n)}(n,e,y,{width:p,height:h})}},uH={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Td(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:DR(r,"width"),height:DR(r,"height")},children:[{text:""}]}}};function sH(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),TR(this,void 0,void 0,(function(){var i,a;return BR(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function cH(e,t,n){return TR(this,void 0,void 0,(function(){var r;return BR(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function lH(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),TR(this,void 0,void 0,(function(){var o,i,a;return BR(this,(function(u){switch(u.label){case 0:return[4,sH("insertImage",e,t,n,r)];case 1:return u.sent()?[4,cH("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:Bz(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),AA.getSelectedNodeByType(e,"image")&&e.move(1),fH(e)||(vp.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function fH(e){var t=e.selection;return null==t||!Uf.isCollapsed(t)||!!jR(Af.nodes(e,{match:function(t){var n=AA.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!Af.isVoid(e,t)},universal:!0}),1)[0]}function pH(){return Tz("w-e-insert-image")}var dH=function(){function e(){this.title=dj("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=pH(),this.altInputId=pH(),this.hrefInputId=pH(),this.buttonId=pH()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return fH(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=jR(XB(dj("image.src"),r),2),s=u[0],c=Td(u[1]),l=jR(XB(dj("image.desc"),o),2),f=l[0],p=Td(l[1]),d=jR(XB(dj("image.link"),i),2),h=d[0],v=Td(d[1]),g=jR(JB(a,dj("common.ok")),1)[0];if(null==this.$content){var y=Td("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(g),c.val(""),p.val(""),v.val(""),setTimeout((function(){c.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||lH(e,t,n,r))},e}(),hH=function(){function e(){this.title=dj("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==AA.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||vp.removeNodes(e,{match:function(e){return AA.checkNodeType(e,"image")}})},e}();function vH(){return Tz("w-e-edit-image")}var gH=function(){function e(){this.title=dj("image.edit"),this.iconSvg=iM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=vH(),this.altInputId=vH(),this.hrefInputId=vH(),this.buttonId=vH()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return AA.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Uf.isCollapsed(t)||null==AA.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=jR(XB(dj("image.src"),r),2),c=s[0],l=Td(s[1]),f=jR(XB(dj("image.desc"),o),2),p=f[0],d=Td(f[1]),h=jR(XB(dj("image.link"),i),2),v=h[0],g=Td(h[1]),y=jR(JB(a,dj("common.ok")),1)[0];if(null==this.$content){var m=Td("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(c),b.append(p),b.append(v),b.append(y);var w=u,x=w.src,E=w.alt,S=void 0===E?"":E,C=w.href,D=void 0===C?"":C;return l.val(x),d.val(S),g.val(D),setTimeout((function(){l.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),TR(this,void 0,void 0,(function(){var i,a,u,s,c,l;return BR(this,(function(f){switch(f.label){case 0:return[4,sH("editImage",e,t,n,r)];case 1:return f.sent()?[4,cH("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=AA.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:_R(_R({},void 0===u?{}:u),o)},vp.setNodes(e,s,{match:function(e){return AA.checkNodeType(e,"image")}}),c=AA.getSelectedNodeByType(e,"image"),(l=e.getMenuConfig("editImage").onUpdatedImage)&&l(c)),[2]}}))}))}(e,t,n,r,o))},e}(),yH=function(){function e(){this.title=dj("image.viewLink"),this.iconSvg=aM,this.tag="button"}return e.prototype.getValue=function(e){var t=AA.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),mH=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return AA.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=AA.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:_R(_R({},void 0===o?{}:o),{width:this.value,height:""})};vp.setNodes(e,i,{match:function(e){return AA.checkNodeType(e,"image")}})}}},e}(),bH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return kR(t,e),t}(mH),wH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return kR(t,e),t}(mH),xH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return kR(t,e),t}(mH),EH={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},SH={renderElems:[aH],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.style,c=void 0===s?{}:s,l=c.width,f=void 0===l?"":l,p=c.height,d=void 0===p?"":p,h="";return f&&(h+="width: "+f+";"),d&&(h+="height: "+d+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[uH],menus:[{key:"insertImage",factory:function(){return new dH},config:EH},{key:"deleteImage",factory:function(){return new hH}},{key:"editImage",factory:function(){return new gH},config:EH},{key:"viewImageLink",factory:function(){return new yH}},{key:"imageWidth30",factory:function(){return new bH}},{key:"imageWidth50",factory:function(){return new wH}},{key:"imageWidth100",factory:function(){return new xH}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},CH={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=bv("div",{style:{margin:"5px 0"}},bv("span",{contentEditable:!1,style:{marginRight:"0.5em"}},bv("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=AA.findPath(n,e),o={checked:t.target.checked};vp.setNodes(n,o,{at:r})}}})),bv("span",null,t));return o}},DH=function(){function e(){this.title=dj("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!AA.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!AA.getSelectedElems(e).some((function(t){if(Af.isVoid(e,t)&&Af.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);vp.setNodes(e,{type:n?"paragraph":"todo"})},e}(),OH={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Td(e);0===(t=t.filter((function(e){return!!Xf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},AH={renderElems:[CH],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=Td(e).find("li"),n=Td('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[OH],menus:[{key:"todo",factory:function(){return new DH}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&Uf.isCollapsed(r)){var o=AA.getSelectedNodeByType(e,"todo");if(o&&0===Pf.string(o).length)return void vp.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},kH={type:"blockquote",renderElem:function(e,t,n){return bv("blockquote",null,t)}},_H={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Td(e);return 0===(t=t.filter((function(e){return!!Xf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},TH=function(){function e(){this.title=dj("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!AA.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!jR(Af.nodes(e,{match:function(e){var t=AA.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";vp.setNodes(e,{type:n},{mode:"highest"})}},e}(),BH={key:"blockquote",factory:function(){return new TH}},PH=eF([].slice),jH=PL("slice"),FH=GF("species"),NH=zj.Array,LH=Math.max;sL({target:"Array",proto:!0,forced:!jH},{slice:function(e,t){var n,r,o,i=cF(this),a=HN(i),u=RN(e,a),s=RN(void 0===t?a:t,a);if(lL(i)&&(n=i.constructor,(CL(n)&&(n===NH||lL(n.prototype))||fF(n)&&null===(n=n[FH]))&&(n=void 0),n===NH||void 0===n))return PH(i,u,s);for(r=new(void 0===n?NH:n)(LH(s-u,0)),o=0;u<s;u++,o++)u in i&&rR(r,o,i[u]);return r.length=o,r}});var IH={renderElems:[kH],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[_H],menus:[BH],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=jR(Af.nodes(e,{match:function(e){return AA.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=AA.findPath(e,a),s=Af.end(e,u);if(zf.equals(s,o.focus)){var c=Pf.string(a);if(c&&"\n"===c.slice(-1))return e.deleteBackward("character"),void vp.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},RH=function(){function e(){this.title=dj("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!jR(Af.nodes(e,{match:function(t){return"pre"===AA.getNodeType(t)||!!Af.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Td('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Td(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=Td("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),MH={menus:[{key:"emotion",factory:function(){return new RH},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},zH={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},HH={selector:"font",preParseHtml:function(e){var t=Td(e);if("font"!==CR(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",zH[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},$H=eF("".indexOf);sL({target:"String",proto:!0,forced:!UM("includes")},{includes:function(e){return!!~$H(IL(sF(this)),IL($M(e)),arguments.length>1?arguments[1]:void 0)}});var VH,UH,ZH=function(e){return e&&e.Math==Math&&e},WH=ZH("object"==typeof globalThis&&globalThis)||ZH("object"==typeof window&&window)||ZH("object"==typeof self&&self)||ZH("object"==typeof Nj&&Nj)||function(){return this}()||Function("return this")(),GH=Function.prototype,qH=GH.apply,KH=GH.bind,YH=GH.call,XH="object"==typeof Reflect&&Reflect.apply||(KH?YH.bind(qH):function(){return YH.apply(qH,arguments)}),JH=Function.prototype,QH=JH.bind,e$=JH.call,t$=QH&&QH.bind(e$),n$=QH?function(e){return e&&t$(e$,e)}:function(e){return e&&function(){return e$.apply(e,arguments)}},r$=function(e){return"function"==typeof e},o$=function(e){try{return!!e()}catch(e){return!0}},i$=!o$((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a$=Function.prototype.call,u$=a$.bind?a$.bind(a$):function(){return a$.apply(a$,arguments)},s$={}.propertyIsEnumerable,c$=Object.getOwnPropertyDescriptor,l$=c$&&!s$.call({1:2},1)?function(e){var t=c$(this,e);return!!t&&t.enumerable}:s$,f$={f:l$},p$=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},d$=n$({}.toString),h$=n$("".slice),v$=function(e){return h$(d$(e),8,-1)},g$=WH.Object,y$=n$("".split),m$=o$((function(){return!g$("z").propertyIsEnumerable(0)}))?function(e){return"String"==v$(e)?y$(e,""):g$(e)}:g$,b$=WH.TypeError,w$=function(e){if(null==e)throw b$("Can't call method on "+e);return e},x$=function(e){return m$(w$(e))},E$=function(e){return"object"==typeof e?null!==e:r$(e)},S$={},C$=function(e){return r$(e)?e:void 0},D$=function(e,t){return arguments.length<2?C$(S$[e])||C$(WH[e]):S$[e]&&S$[e][t]||WH[e]&&WH[e][t]},O$=n$({}.isPrototypeOf),A$=D$("navigator","userAgent")||"",k$=WH.process,_$=WH.Deno,T$=k$&&k$.versions||_$&&_$.version,B$=T$&&T$.v8;B$&&(UH=(VH=B$.split("."))[0]>0&&VH[0]<4?1:+(VH[0]+VH[1])),!UH&&A$&&(!(VH=A$.match(/Edge\/(\d+)/))||VH[1]>=74)&&(VH=A$.match(/Chrome\/(\d+)/))&&(UH=+VH[1]);var P$=UH,j$=!!Object.getOwnPropertySymbols&&!o$((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&P$&&P$<41})),F$=j$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,N$=WH.Object,L$=F$?function(e){return"symbol"==typeof e}:function(e){var t=D$("Symbol");return r$(t)&&O$(t.prototype,N$(e))},I$=WH.String,R$=WH.TypeError,M$=function(e){if(r$(e))return e;throw R$(function(e){try{return I$(e)}catch(e){return"Object"}}(e)+" is not a function")},z$=WH.TypeError,H$=Object.defineProperty,$$=WH["__core-js_shared__"]||function(e,t){try{H$(WH,e,{value:t,configurable:!0,writable:!0})}catch(n){WH[e]=t}return t}("__core-js_shared__",{}),V$=Lj((function(e){(e.exports=function(e,t){return $$[e]||($$[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),U$=WH.Object,Z$=function(e){return U$(w$(e))},W$=n$({}.hasOwnProperty),G$=Object.hasOwn||function(e,t){return W$(Z$(e),t)},q$=0,K$=Math.random(),Y$=n$(1..toString),X$=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Y$(++q$+K$,36)},J$=V$("wks"),Q$=WH.Symbol,eV=Q$&&Q$.for,tV=F$?Q$:Q$&&Q$.withoutSetter||X$,nV=function(e){if(!G$(J$,e)||!j$&&"string"!=typeof J$[e]){var t="Symbol."+e;j$&&G$(Q$,e)?J$[e]=Q$[e]:J$[e]=F$&&eV?eV(t):tV(t)}return J$[e]},rV=WH.TypeError,oV=nV("toPrimitive"),iV=function(e){var t=function(e,t){if(!E$(e)||L$(e))return e;var n,r,o=null==(n=e[oV])?void 0:M$(n);if(o){if(void 0===t&&(t="default"),r=u$(o,e,t),!E$(r)||L$(r))return r;throw rV("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&r$(n=e.toString)&&!E$(r=u$(n,e)))return r;if(r$(n=e.valueOf)&&!E$(r=u$(n,e)))return r;if("string"!==t&&r$(n=e.toString)&&!E$(r=u$(n,e)))return r;throw z$("Can't convert object to primitive value")}(e,t)}(e,"string");return L$(t)?t:t+""},aV=WH.document,uV=E$(aV)&&E$(aV.createElement),sV=function(e){return uV?aV.createElement(e):{}},cV=!i$&&!o$((function(){return 7!=Object.defineProperty(sV("div"),"a",{get:function(){return 7}}).a})),lV=Object.getOwnPropertyDescriptor,fV={f:i$?lV:function(e,t){if(e=x$(e),t=iV(t),cV)try{return lV(e,t)}catch(e){}if(G$(e,t))return p$(!u$(f$.f,e,t),e[t])}},pV=/#|\.prototype\./,dV=function(e,t){var n=vV[hV(e)];return n==yV||n!=gV&&(r$(t)?o$(t):!!t)},hV=dV.normalize=function(e){return String(e).replace(pV,".").toLowerCase()},vV=dV.data={},gV=dV.NATIVE="N",yV=dV.POLYFILL="P",mV=dV,bV=n$(n$.bind),wV=function(e,t){return M$(e),void 0===t?e:bV?bV(e,t):function(){return e.apply(t,arguments)}},xV=WH.String,EV=WH.TypeError,SV=function(e){if(E$(e))return e;throw EV(xV(e)+" is not an object")},CV=WH.TypeError,DV=Object.defineProperty,OV={f:i$?DV:function(e,t,n){if(SV(e),t=iV(t),SV(n),cV)try{return DV(e,t,n)}catch(e){}if("get"in n||"set"in n)throw CV("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},AV=i$?function(e,t,n){return OV.f(e,t,p$(1,n))}:function(e,t,n){return e[t]=n,e},kV=fV.f,_V=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return XH(e,this,arguments)};return t.prototype=e.prototype,t},TV=function(e,t){var n,r,o,i,a,u,s,c,l=e.target,f=e.global,p=e.stat,d=e.proto,h=f?WH:p?WH[l]:(WH[l]||{}).prototype,v=f?S$:S$[l]||AV(S$,l,{})[l],g=v.prototype;for(o in t)n=!mV(f?o:l+(p?".":"#")+o,e.forced)&&h&&G$(h,o),a=v[o],n&&(u=e.noTargetGet?(c=kV(h,o))&&c.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?wV(i,WH):e.wrap&&n?_V(i):d&&r$(i)?n$(i):i,(e.sham||i&&i.sham||a&&a.sham)&&AV(s,"sham",!0),AV(v,o,s),d&&(G$(S$,r=l+"Prototype")||AV(S$,r,{}),AV(S$[r],o,i),e.real&&g&&!g[o]&&AV(g,o,i)))},BV=Array.isArray||function(e){return"Array"==v$(e)},PV=Math.ceil,jV=Math.floor,FV=function(e){var t=+e;return t!=t||0===t?0:(t>0?jV:PV)(t)},NV=Math.min,LV=function(e){return(t=e.length)>0?NV(FV(t),9007199254740991):0;var t},IV=function(e,t,n){var r=iV(t);r in e?OV.f(e,r,p$(0,n)):e[r]=n},RV={};RV[nV("toStringTag")]="z";var MV="[object z]"===String(RV),zV=nV("toStringTag"),HV=WH.Object,$V="Arguments"==v$(function(){return arguments}()),VV=MV?v$:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=HV(e),zV))?n:$V?v$(t):"Object"==(r=v$(t))&&r$(t.callee)?"Arguments":r},UV=n$(Function.toString);r$($$.inspectSource)||($$.inspectSource=function(e){return UV(e)});var ZV=$$.inspectSource,WV=function(){},GV=[],qV=D$("Reflect","construct"),KV=/^\s*(?:class|function)\b/,YV=n$(KV.exec),XV=!KV.exec(WV),JV=function(e){if(!r$(e))return!1;try{return qV(WV,GV,e),!0}catch(e){return!1}},QV=!qV||o$((function(){var e;return JV(JV.call)||!JV(Object)||!JV((function(){e=!0}))||e}))?function(e){if(!r$(e))return!1;switch(VV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return XV||!!YV(KV,ZV(e))}:JV,eU=nV("species"),tU=WH.Array,nU=function(e,t){return new(function(e){var t;return BV(e)&&(t=e.constructor,(QV(t)&&(t===tU||BV(t.prototype))||E$(t)&&null===(t=t[eU]))&&(t=void 0)),void 0===t?tU:t}(e))(0===t?0:t)},rU=nV("species"),oU=nV("isConcatSpreadable"),iU=WH.TypeError,aU=P$>=51||!o$((function(){var e=[];return e[oU]=!1,e.concat()[0]!==e})),uU=P$>=51||!o$((function(){var e=[];return(e.constructor={})[rU]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),sU=function(e){if(!E$(e))return!1;var t=e[oU];return void 0!==t?!!t:BV(e)};TV({target:"Array",proto:!0,forced:!aU||!uU},{concat:function(e){var t,n,r,o,i,a=Z$(this),u=nU(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(sU(i=-1===t?a:arguments[t])){if(s+(o=LV(i))>9007199254740991)throw iU("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&IV(u,s,i[n])}else{if(s>=9007199254740991)throw iU("Maximum allowed index exceeded");IV(u,s++,i)}return u.length=s,u}});var cU,lU=WH.String,fU=function(e){if("Symbol"===VV(e))throw TypeError("Cannot convert a Symbol value to a string");return lU(e)},pU=Math.max,dU=Math.min,hU=function(e,t){var n=FV(e);return n<0?pU(n+t,0):dU(n,t)},vU=function(e){return function(t,n,r){var o,i=x$(t),a=LV(i),u=hU(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},gU={includes:vU(!0),indexOf:vU(!1)},yU={},mU=gU.indexOf,bU=n$([].push),wU=function(e,t){var n,r=x$(e),o=0,i=[];for(n in r)!G$(yU,n)&&G$(r,n)&&bU(i,n);for(;t.length>o;)G$(r,n=t[o++])&&(~mU(i,n)||bU(i,n));return i},xU=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],EU=Object.keys||function(e){return wU(e,xU)},SU=i$?Object.defineProperties:function(e,t){SV(e);for(var n,r=x$(t),o=EU(t),i=o.length,a=0;i>a;)OV.f(e,n=o[a++],r[n]);return e},CU=D$("document","documentElement"),DU=V$("keys"),OU=function(e){return DU[e]||(DU[e]=X$(e))},AU=OU("IE_PROTO"),kU=function(){},_U=function(e){return"<script>"+e+"<\/script>"},TU=function(e){e.write(_U("")),e.close();var t=e.parentWindow.Object;return e=null,t},BU=function(){try{cU=new ActiveXObject("htmlfile")}catch(e){}var e,t;BU="undefined"!=typeof document?document.domain&&cU?TU(cU):((t=sV("iframe")).style.display="none",CU.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(_U("document.F=Object")),e.close(),e.F):TU(cU);for(var n=xU.length;n--;)delete BU.prototype[xU[n]];return BU()};yU[AU]=!0;var PU,jU,FU,NU=Object.create||function(e,t){var n;return null!==e?(kU.prototype=SV(e),n=new kU,kU.prototype=null,n[AU]=e):n=BU(),void 0===t?n:SU(n,t)},LU=xU.concat("length","prototype"),IU={f:Object.getOwnPropertyNames||function(e){return wU(e,LU)}},RU=WH.Array,MU=Math.max,zU=IU.f,HU="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$U={f:function(e){return HU&&"Window"==v$(e)?function(e){try{return zU(e)}catch(e){return function(e,t,n){for(var r=LV(e),o=hU(void 0,r),i=hU(r,r),a=RU(MU(i-o,0)),u=0;o<i;o++,u++)IV(a,u,e[o]);return a.length=u,a}(HU)}}(e):zU(x$(e))}},VU={f:Object.getOwnPropertySymbols},UU=n$([].slice),ZU=function(e,t,n,r){r&&r.enumerable?e[t]=n:AV(e,t,n)},WU={f:nV},GU=OV.f,qU=function(e){var t=S$.Symbol||(S$.Symbol={});G$(t,e)||GU(t,e,{value:WU.f(e)})},KU=MV?{}.toString:function(){return"[object "+VV(this)+"]"},YU=OV.f,XU=nV("toStringTag"),JU=function(e,t,n,r){if(e){var o=n?e:e.prototype;G$(o,XU)||YU(o,XU,{configurable:!0,value:t}),r&&!MV&&AV(o,"toString",KU)}},QU=WH.WeakMap,eZ=r$(QU)&&/native code/.test(ZV(QU)),tZ=WH.TypeError,nZ=WH.WeakMap;if(eZ||$$.state){var rZ=$$.state||($$.state=new nZ),oZ=n$(rZ.get),iZ=n$(rZ.has),aZ=n$(rZ.set);PU=function(e,t){if(iZ(rZ,e))throw new tZ("Object already initialized");return t.facade=e,aZ(rZ,e,t),t},jU=function(e){return oZ(rZ,e)||{}},FU=function(e){return iZ(rZ,e)}}else{var uZ=OU("state");yU[uZ]=!0,PU=function(e,t){if(G$(e,uZ))throw new tZ("Object already initialized");return t.facade=e,AV(e,uZ,t),t},jU=function(e){return G$(e,uZ)?e[uZ]:{}},FU=function(e){return G$(e,uZ)}}var sZ={set:PU,get:jU,has:FU,enforce:function(e){return FU(e)?jU(e):PU(e,{})},getterFor:function(e){return function(t){var n;if(!E$(t)||(n=jU(t)).type!==e)throw tZ("Incompatible receiver, "+e+" required");return n}}},cZ=n$([].push),lZ=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var p,d,h=Z$(s),v=m$(h),g=wV(c,l),y=LV(v),m=0,b=f||nU,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(d=g(p=v[m],m,h),e))if(t)w[m]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:cZ(w,p)}else switch(e){case 4:return!1;case 7:cZ(w,p)}return i?-1:r||o?o:w}},fZ=[lZ(0),lZ(1),lZ(2),lZ(3),lZ(4),lZ(5),lZ(6),lZ(7)][0],pZ=OU("hidden"),dZ=nV("toPrimitive"),hZ=sZ.set,vZ=sZ.getterFor("Symbol"),gZ=Object.prototype,yZ=WH.Symbol,mZ=yZ&&yZ.prototype,bZ=WH.TypeError,wZ=WH.QObject,xZ=D$("JSON","stringify"),EZ=fV.f,SZ=OV.f,CZ=$U.f,DZ=f$.f,OZ=n$([].push),AZ=V$("symbols"),kZ=V$("op-symbols"),_Z=V$("string-to-symbol-registry"),TZ=V$("symbol-to-string-registry"),BZ=V$("wks"),PZ=!wZ||!wZ.prototype||!wZ.prototype.findChild,jZ=i$&&o$((function(){return 7!=NU(SZ({},"a",{get:function(){return SZ(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=EZ(gZ,t);r&&delete gZ[t],SZ(e,t,n),r&&e!==gZ&&SZ(gZ,t,r)}:SZ,FZ=function(e,t){var n=AZ[e]=NU(mZ);return hZ(n,{type:"Symbol",tag:e,description:t}),i$||(n.description=t),n},NZ=function(e,t,n){e===gZ&&NZ(kZ,t,n),SV(e);var r=iV(t);return SV(n),G$(AZ,r)?(n.enumerable?(G$(e,pZ)&&e[pZ][r]&&(e[pZ][r]=!1),n=NU(n,{enumerable:p$(0,!1)})):(G$(e,pZ)||SZ(e,pZ,p$(1,{})),e[pZ][r]=!0),jZ(e,r,n)):SZ(e,r,n)},LZ=function(e,t){SV(e);var n=x$(t),r=EU(n).concat(zZ(n));return fZ(r,(function(t){i$&&!u$(IZ,n,t)||NZ(e,t,n[t])})),e},IZ=function(e){var t=iV(e),n=u$(DZ,this,t);return!(this===gZ&&G$(AZ,t)&&!G$(kZ,t))&&(!(n||!G$(this,t)||!G$(AZ,t)||G$(this,pZ)&&this[pZ][t])||n)},RZ=function(e,t){var n=x$(e),r=iV(t);if(n!==gZ||!G$(AZ,r)||G$(kZ,r)){var o=EZ(n,r);return!o||!G$(AZ,r)||G$(n,pZ)&&n[pZ][r]||(o.enumerable=!0),o}},MZ=function(e){var t=CZ(x$(e)),n=[];return fZ(t,(function(e){G$(AZ,e)||G$(yU,e)||OZ(n,e)})),n},zZ=function(e){var t=e===gZ,n=CZ(t?kZ:x$(e)),r=[];return fZ(n,(function(e){!G$(AZ,e)||t&&!G$(gZ,e)||OZ(r,AZ[e])})),r};if(j$||(mZ=(yZ=function(){if(O$(mZ,this))throw bZ("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?fU(arguments[0]):void 0,t=X$(e),n=function(e){this===gZ&&u$(n,kZ,e),G$(this,pZ)&&G$(this[pZ],t)&&(this[pZ][t]=!1),jZ(this,t,p$(1,e))};return i$&&PZ&&jZ(gZ,t,{configurable:!0,set:n}),FZ(t,e)}).prototype,ZU(mZ,"toString",(function(){return vZ(this).tag})),ZU(yZ,"withoutSetter",(function(e){return FZ(X$(e),e)})),f$.f=IZ,OV.f=NZ,fV.f=RZ,IU.f=$U.f=MZ,VU.f=zZ,WU.f=function(e){return FZ(nV(e),e)},i$&&SZ(mZ,"description",{configurable:!0,get:function(){return vZ(this).description}})),TV({global:!0,wrap:!0,forced:!j$,sham:!j$},{Symbol:yZ}),fZ(EU(BZ),(function(e){qU(e)})),TV({target:"Symbol",stat:!0,forced:!j$},{for:function(e){var t=fU(e);if(G$(_Z,t))return _Z[t];var n=yZ(t);return _Z[t]=n,TZ[n]=t,n},keyFor:function(e){if(!L$(e))throw bZ(e+" is not a symbol");if(G$(TZ,e))return TZ[e]},useSetter:function(){PZ=!0},useSimple:function(){PZ=!1}}),TV({target:"Object",stat:!0,forced:!j$,sham:!i$},{create:function(e,t){return void 0===t?NU(e):LZ(NU(e),t)},defineProperty:NZ,defineProperties:LZ,getOwnPropertyDescriptor:RZ}),TV({target:"Object",stat:!0,forced:!j$},{getOwnPropertyNames:MZ,getOwnPropertySymbols:zZ}),TV({target:"Object",stat:!0,forced:o$((function(){VU.f(1)}))},{getOwnPropertySymbols:function(e){return VU.f(Z$(e))}}),xZ){var HZ=!j$||o$((function(){var e=yZ();return"[null]"!=xZ([e])||"{}"!=xZ({a:e})||"{}"!=xZ(Object(e))}));TV({target:"JSON",stat:!0,forced:HZ},{stringify:function(e,t,n){var r=UU(arguments),o=t;if((E$(t)||void 0!==e)&&!L$(e))return BV(t)||(t=function(e,t){if(r$(o)&&(t=u$(o,this,e,t)),!L$(t))return t}),r[1]=t,XH(xZ,null,r)}})}if(!mZ[dZ]){var $Z=mZ.valueOf;ZU(mZ,dZ,(function(e){return u$($Z,this)}))}JU(yZ,"Symbol"),yU[pZ]=!0,qU("asyncIterator"),qU("hasInstance"),qU("isConcatSpreadable"),qU("iterator"),qU("match"),qU("matchAll"),qU("replace"),qU("search"),qU("species"),qU("split"),qU("toPrimitive"),qU("toStringTag"),qU("unscopables"),JU(WH.JSON,"JSON",!0);var VZ,UZ,ZZ,WZ=S$.Symbol,GZ={},qZ=Function.prototype,KZ=i$&&Object.getOwnPropertyDescriptor,YZ=G$(qZ,"name"),XZ={EXISTS:YZ,PROPER:YZ&&"something"===function(){}.name,CONFIGURABLE:YZ&&(!i$||i$&&KZ(qZ,"name").configurable)},JZ=!o$((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),QZ=OU("IE_PROTO"),eW=WH.Object,tW=eW.prototype,nW=JZ?eW.getPrototypeOf:function(e){var t=Z$(e);if(G$(t,QZ))return t[QZ];var n=t.constructor;return r$(n)&&t instanceof n?n.prototype:t instanceof eW?tW:null},rW=nV("iterator"),oW=!1;[].keys&&("next"in(ZZ=[].keys())?(UZ=nW(nW(ZZ)))!==Object.prototype&&(VZ=UZ):oW=!0);var iW=null==VZ||o$((function(){var e={};return VZ[rW].call(e)!==e}));VZ=iW?{}:NU(VZ),r$(VZ[rW])||ZU(VZ,rW,(function(){return this}));var aW={IteratorPrototype:VZ,BUGGY_SAFARI_ITERATORS:oW},uW=aW.IteratorPrototype,sW=function(){return this};WH.String,WH.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{n$(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(e){}}();var cW=XZ.PROPER,lW=aW.BUGGY_SAFARI_ITERATORS,fW=nV("iterator"),pW=function(){return this},dW=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=NU(uW,{next:p$(1,n)}),JU(e,o,!1,!0),GZ[o]=sW}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!lW&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",p=!1,d=e.prototype,h=d[fW]||d["@@iterator"]||o&&d[o],v=!lW&&h||l(o),g="Array"==t&&d.entries||h;if(g&&(u=nW(g.call(new e)))!==Object.prototype&&u.next&&(JU(u,f,!0,!0),GZ[f]=pW),cW&&"values"==o&&h&&"values"!==h.name&&(p=!0,v=function(){return u$(h,this)}),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(lW||p||!(c in d))&&ZU(d,c,s[c]);else TV({target:t,proto:!0,forced:lW||p},s);return a&&d[fW]!==v&&ZU(d,fW,v,{name:o}),GZ[t]=v,s},hW=sZ.set,vW=sZ.getterFor("Array Iterator");dW(Array,"Array",(function(e,t){hW(this,{type:"Array Iterator",target:x$(e),index:0,kind:t})}),(function(){var e=vW(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),GZ.Arguments=GZ.Array;var gW=nV("toStringTag");for(var yW in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var mW=WH[yW],bW=mW&&mW.prototype;bW&&VV(bW)!==gW&&AV(bW,gW,yW),GZ[yW]=GZ.Array}var wW=WZ;qU("asyncDispose"),qU("dispose"),qU("matcher"),qU("metadata"),qU("observable"),qU("patternMatch"),qU("replaceAll");var xW=wW,EW=n$("".charAt),SW=n$("".charCodeAt),CW=n$("".slice),DW=function(e){return function(t,n){var r,o,i=fU(w$(t)),a=FV(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=SW(i,a))<55296||r>56319||a+1===u||(o=SW(i,a+1))<56320||o>57343?e?EW(i,a):r:e?CW(i,a,a+2):o-56320+(r-55296<<10)+65536}},OW=(DW(!1),DW(!0)),AW=sZ.set,kW=sZ.getterFor("String Iterator");dW(String,"String",(function(e){AW(this,{type:"String Iterator",string:fU(e),index:0})}),(function(){var e,t=kW(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=OW(n,r),t.index+=e.length,{value:e,done:!1})}));var _W=WU.f("iterator"),TW=Lj((function(e){function t(n){return"function"==typeof xW&&"symbol"==typeof _W?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof xW&&e.constructor===xW&&e!==xW.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),BW=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(TW),PW=BN.EXISTS,jW=sN.f,FW=Function.prototype,NW=eF(FW.toString),LW=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,IW=eF(LW.exec);$j&&!PW&&jW(FW,"name",{configurable:!0,get:function(){try{return IW(LW,NW(this))[1]}catch(e){return""}}});var RW=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=Af.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!jR(Af.nodes(e,{match:function(t){return"pre"===AA.getNodeType(t)||!!Af.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),MW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dj("fontSize.title"),t.iconSvg=cM,t.mark="fontSize",t}return kR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:dj("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===BW(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(RW),zW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dj("fontFamily.title"),t.iconSvg=lM,t.mark="fontFamily",t.selectPanelWidth=150,t}return kR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:dj("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===BW(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(RW),HW={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&bz(i,{fontSize:r}),o&&bz(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Xf.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((ER(t)||"span"!==CR(n=Td(t)))&&(n=Td("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),SR(n)):t},preParseHtml:[HH],parseStyleHtml:function(e,t,n){var r=Td(e);if(!Xf.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=DR(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var c=n.getMenuConfig("fontFamily").fontFamilyList,l=void 0===c?[]:c,f=DR(r,"font-family").replace(/"/g,""),p=l.find((function(e){return e.value&&e.value===f}))||l.includes(f);return f&&p&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new MW},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new zW},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},$W={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Td(e),n=DR(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},VW=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=jR(Af.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":jR(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=jR(Af.nodes(e,{match:function(e){var t=AA.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),UW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dj("indent.decrease"),t.iconSvg=fM,t}return kR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){vp.setNodes(e,{indent:null},{match:function(e){return xf.isElement(e)}})},t}(VW),ZW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dj("indent.increase"),t.iconSvg=pM,t}return kR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){vp.setNodes(e,{indent:"2em"},{match:function(e){return xf.isElement(e)},mode:"highest"})},t}(VW),WW={renderStyle:function(e,t){if(!xf.isElement(e))return t;var n=e.indent,r=t;return n&&bz(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!xf.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Td(t);return r.css("text-indent",n),SR(r)},preParseHtml:[$W],parseStyleHtml:function(e,t,n){var r=Td(e);if(!xf.isElement(t))return t;var o=t,i=DR(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new ZW}},{key:"delIndent",factory:function(){return new UW}}]},GW=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=jR(Af.nodes(e,{match:function(e){var t=AA.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!AA.getSelectedElems(e).some((function(t){if(Af.isVoid(e,t)&&Af.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),qW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dj("justify.left"),t.iconSvg=dM,t}return kR(t,e),t.prototype.exec=function(e,t){vp.setNodes(e,{textAlign:"left"},{match:function(t){return xf.isElement(t)&&!e.isInline(t)}})},t}(GW),KW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dj("justify.right"),t.iconSvg=hM,t}return kR(t,e),t.prototype.exec=function(e,t){vp.setNodes(e,{textAlign:"right"},{match:function(t){return xf.isElement(t)&&!e.isInline(t)}})},t}(GW),YW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dj("justify.center"),t.iconSvg=vM,t}return kR(t,e),t.prototype.exec=function(e,t){vp.setNodes(e,{textAlign:"center"},{match:function(t){return xf.isElement(t)&&!e.isInline(t)}})},t}(GW),XW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=dj("justify.justify"),t.iconSvg=gM,t}return kR(t,e),t.prototype.exec=function(e,t){vp.setNodes(e,{textAlign:"justify"},{match:function(t){return xf.isElement(t)&&!e.isInline(t)}})},t}(GW),JW={renderStyle:function(e,t){if(!xf.isElement(e))return t;var n=e.textAlign,r=t;return n&&bz(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!xf.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Td(t);return r.css("text-align",n),SR(r)},parseStyleHtml:function(e,t,n){var r=Td(e);if(!xf.isElement(t))return t;var o=t,i=DR(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new qW}},{key:"justifyRight",factory:function(){return new KW}},{key:"justifyCenter",factory:function(){return new YW}},{key:"justifyJustify",factory:function(){return new XW}}]},QW=function(){function e(){this.title=dj("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:dj("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=jR(Af.nodes(e,{match:function(e){var t=AA.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":xf.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){vp.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),eG={renderStyle:function(e,t){if(!xf.isElement(e))return t;var n=e.lineHeight,r=t;return n&&bz(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!xf.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Td(t);return r.css("line-height",n),SR(r)},parseStyleHtml:function(e,t,n){var r=Td(e);if(!xf.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=DR(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new QW},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},tG=function(){function e(){this.title=dj("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),nG=function(){function e(){this.title=dj("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),rG={menus:[{key:"redo",factory:function(){return new tG}},{key:"undo",factory:function(){return new nG}}]},oG={type:"divider",renderElem:function(e,t,n){return Qh("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:AA.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Qh("hr")])}},iG=function(){function e(){this.title=dj("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!AA.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=AA.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){vp.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),aG={renderElems:[oG],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new iG}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=jR(e,2),o=t[0],i=t[1];if("divider"!==AA.getNodeType(o))return n([o,i]);AA.isLastNode(r,o)&&vp.insertNodes(r,AA.genEmptyParagraph(),{at:[i[0]+1]})},r}},uG=TL.map;sL({target:"Array",proto:!0,forced:!PL("map")},{map:function(e){return uG(this,e,arguments.length>1?arguments[1]:void 0)}});var sG=eF([].join),cG=aF!=Object,lG=WR("join",",");sL({target:"Array",proto:!0,forced:cG||!lG},{join:function(e){return sG(cF(this),void 0===e?",":e)}});var fG=function(){function e(){this.title=dj("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=AA.getSelectedNodeByType(e,"code");if(null==t)return null;var n=AA.getParentNode(e,t);return null==n||"pre"!==AA.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=AA.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=AA.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=Pf.string(t);vp.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));vp.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=Af.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=PR(i),u=a.next();!u.done;u=a.next()){var s=jR(u.value,1)[0];s&&o.push(Pf.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}vp.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};vp.insertNodes(e,c,{mode:"highest"})},e}(),pG={key:"codeBlock",factory:function(){return new fG}};sL({target:"String",proto:!0,forced:MR("anchor")},{anchor:function(e){return RR(this,"a","name",e)}}),SI("match",(function(e,t,n){return[function(t){var n=sF(this),r=null==t?void 0:_F(t,e);return r?Uj(r,t,n):new RegExp(t)[e](IL(n))},function(e){var r=iN(this),o=IL(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return RI(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=RI(r,o));){var l=IL(u[0]);s[c]=l,""===l&&(r.lastIndex=_I(o,zN(r.lastIndex),a)),c++}return 0===c?null:s}]}));var dG={type:"pre",renderElem:function(e,t,n){return bv("pre",null,t)}},hG={type:"code",renderElem:function(e,t,n){return bv("code",null,t)}},vG={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Td(e);return 0===(t=t.filter((function(e){return"code"===AA.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===AA.getNodeType(e)}))}}},gG={menus:[pG],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=AA.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Pf.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=jR(e,2),r=t[0],i=t[1],a=AA.getNodeType(r);return"code"===a&&i.length<=1&&vp.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(AA.isLastNode(o,r)&&vp.insertNodes(o,AA.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==AA.getNodeType(r.children[0])&&(vp.unwrapNodes(o),vp.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=AA.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");Af.insertText(o,t)}else r(e)},o},renderElems:[dG,hG],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=Td(e);if("code"!==CR(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:Td(e)[0].textContent||""}]}}},vG]},yG=function(){function e(){this.title=dj("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),mG={menus:[{key:"fullScreen",factory:function(){return new yG}}]},bG=function(){function e(){this.title=dj("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!Uf.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];vp.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(Af.start(e,r))}},e}(),wG=[AM,Dz,HW,WW,JW,eG,SH,aG,MH,Wz,gG,IH,hz,NR,AH,rG,mG,{menus:[{key:"enter",factory:function(){return new bG}}]}];pj("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),pj("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var xG="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function EG(e){var t={exports:{}};return e(t,t.exports),t.exports}var SG,CG,DG=function(e){return e&&e.Math==Math&&e},OG=DG("object"==typeof globalThis&&globalThis)||DG("object"==typeof window&&window)||DG("object"==typeof self&&self)||DG("object"==typeof xG&&xG)||function(){return this}()||Function("return this")(),AG=Function.prototype,kG=AG.bind,_G=AG.call,TG=kG&&kG.bind(_G),BG=kG?function(e){return e&&TG(_G,e)}:function(e){return e&&function(){return _G.apply(e,arguments)}},PG=function(e){try{return!!e()}catch(e){return!0}},jG=BG({}.toString),FG=BG("".slice),NG=function(e){return FG(jG(e),8,-1)},LG=OG.Object,IG=BG("".split),RG=PG((function(){return!LG("z").propertyIsEnumerable(0)}))?function(e){return"String"==NG(e)?IG(e,""):LG(e)}:LG,MG=OG.TypeError,zG=function(e){if(null==e)throw MG("Can't call method on "+e);return e},HG=function(e){return RG(zG(e))},$G=Object.defineProperty,VG=function(e,t){try{$G(OG,e,{value:t,configurable:!0,writable:!0})}catch(n){OG[e]=t}return t},UG=OG["__core-js_shared__"]||VG("__core-js_shared__",{}),ZG=EG((function(e){(e.exports=function(e,t){return UG[e]||(UG[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),WG=OG.Object,GG=function(e){return WG(zG(e))},qG=BG({}.hasOwnProperty),KG=Object.hasOwn||function(e,t){return qG(GG(e),t)},YG=0,XG=Math.random(),JG=BG(1..toString),QG=function(e){return"Symbol("+(void 0===e?"":e)+")_"+JG(++YG+XG,36)},eq=function(e){return"function"==typeof e},tq=function(e){return eq(e)?e:void 0},nq=function(e,t){return arguments.length<2?tq(OG[e]):OG[e]&&OG[e][t]},rq=nq("navigator","userAgent")||"",oq=OG.process,iq=OG.Deno,aq=oq&&oq.versions||iq&&iq.version,uq=aq&&aq.v8;uq&&(CG=(SG=uq.split("."))[0]>0&&SG[0]<4?1:+(SG[0]+SG[1])),!CG&&rq&&(!(SG=rq.match(/Edge\/(\d+)/))||SG[1]>=74)&&(SG=rq.match(/Chrome\/(\d+)/))&&(CG=+SG[1]);var sq,cq=CG,lq=!!Object.getOwnPropertySymbols&&!PG((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&cq&&cq<41})),fq=lq&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,pq=ZG("wks"),dq=OG.Symbol,hq=dq&&dq.for,vq=fq?dq:dq&&dq.withoutSetter||QG,gq=function(e){if(!KG(pq,e)||!lq&&"string"!=typeof pq[e]){var t="Symbol."+e;lq&&KG(dq,e)?pq[e]=dq[e]:pq[e]=fq&&hq?hq(t):vq(t)}return pq[e]},yq=function(e){return"object"==typeof e?null!==e:eq(e)},mq=OG.String,bq=OG.TypeError,wq=function(e){if(yq(e))return e;throw bq(mq(e)+" is not an object")},xq=!PG((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Eq=OG.document,Sq=yq(Eq)&&yq(Eq.createElement),Cq=function(e){return Sq?Eq.createElement(e):{}},Dq=!xq&&!PG((function(){return 7!=Object.defineProperty(Cq("div"),"a",{get:function(){return 7}}).a})),Oq=Function.prototype.call,Aq=Oq.bind?Oq.bind(Oq):function(){return Oq.apply(Oq,arguments)},kq=BG({}.isPrototypeOf),_q=OG.Object,Tq=fq?function(e){return"symbol"==typeof e}:function(e){var t=nq("Symbol");return eq(t)&&kq(t.prototype,_q(e))},Bq=OG.String,Pq=function(e){try{return Bq(e)}catch(e){return"Object"}},jq=OG.TypeError,Fq=function(e){if(eq(e))return e;throw jq(Pq(e)+" is not a function")},Nq=function(e,t){var n=e[t];return null==n?void 0:Fq(n)},Lq=OG.TypeError,Iq=OG.TypeError,Rq=gq("toPrimitive"),Mq=function(e){var t=function(e,t){if(!yq(e)||Tq(e))return e;var n,r=Nq(e,Rq);if(r){if(void 0===t&&(t="default"),n=Aq(r,e,t),!yq(n)||Tq(n))return n;throw Iq("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&eq(n=e.toString)&&!yq(r=Aq(n,e)))return r;if(eq(n=e.valueOf)&&!yq(r=Aq(n,e)))return r;if("string"!==t&&eq(n=e.toString)&&!yq(r=Aq(n,e)))return r;throw Lq("Can't convert object to primitive value")}(e,t)}(e,"string");return Tq(t)?t:t+""},zq=OG.TypeError,Hq=Object.defineProperty,$q={f:xq?Hq:function(e,t,n){if(wq(e),t=Mq(t),wq(n),Dq)try{return Hq(e,t,n)}catch(e){}if("get"in n||"set"in n)throw zq("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Vq=Math.ceil,Uq=Math.floor,Zq=function(e){var t=+e;return t!=t||0===t?0:(t>0?Uq:Vq)(t)},Wq=Math.max,Gq=Math.min,qq=function(e,t){var n=Zq(e);return n<0?Wq(n+t,0):Gq(n,t)},Kq=Math.min,Yq=function(e){return e>0?Kq(Zq(e),9007199254740991):0},Xq=function(e){return Yq(e.length)},Jq=function(e){return function(t,n,r){var o,i=HG(t),a=Xq(i),u=qq(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Qq={includes:Jq(!0),indexOf:Jq(!1)},eK={},tK=Qq.indexOf,nK=BG([].push),rK=function(e,t){var n,r=HG(e),o=0,i=[];for(n in r)!KG(eK,n)&&KG(r,n)&&nK(i,n);for(;t.length>o;)KG(r,n=t[o++])&&(~tK(i,n)||nK(i,n));return i},oK=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],iK=Object.keys||function(e){return rK(e,oK)},aK=xq?Object.defineProperties:function(e,t){wq(e);for(var n,r=HG(t),o=iK(t),i=o.length,a=0;i>a;)$q.f(e,n=o[a++],r[n]);return e},uK=nq("document","documentElement"),sK=ZG("keys"),cK=function(e){return sK[e]||(sK[e]=QG(e))},lK=cK("IE_PROTO"),fK=function(){},pK=function(e){return"<script>"+e+"<\/script>"},dK=function(e){e.write(pK("")),e.close();var t=e.parentWindow.Object;return e=null,t},hK=function(){try{sq=new ActiveXObject("htmlfile")}catch(e){}var e,t;hK="undefined"!=typeof document?document.domain&&sq?dK(sq):((t=Cq("iframe")).style.display="none",uK.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(pK("document.F=Object")),e.close(),e.F):dK(sq);for(var n=oK.length;n--;)delete hK.prototype[oK[n]];return hK()};eK[lK]=!0;var vK=Object.create||function(e,t){var n;return null!==e?(fK.prototype=wq(e),n=new fK,fK.prototype=null,n[lK]=e):n=hK(),void 0===t?n:aK(n,t)},gK=gq("unscopables"),yK=Array.prototype;null==yK[gK]&&$q.f(yK,gK,{configurable:!0,value:vK(null)});var mK=function(e){yK[gK][e]=!0},bK={},wK=BG(Function.toString);eq(UG.inspectSource)||(UG.inspectSource=function(e){return wK(e)});var xK,EK,SK,CK=UG.inspectSource,DK=OG.WeakMap,OK=eq(DK)&&/native code/.test(CK(DK)),AK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},kK=xq?function(e,t,n){return $q.f(e,t,AK(1,n))}:function(e,t,n){return e[t]=n,e},_K=OG.TypeError,TK=OG.WeakMap;if(OK||UG.state){var BK=UG.state||(UG.state=new TK),PK=BG(BK.get),jK=BG(BK.has),FK=BG(BK.set);xK=function(e,t){if(jK(BK,e))throw new _K("Object already initialized");return t.facade=e,FK(BK,e,t),t},EK=function(e){return PK(BK,e)||{}},SK=function(e){return jK(BK,e)}}else{var NK=cK("state");eK[NK]=!0,xK=function(e,t){if(KG(e,NK))throw new _K("Object already initialized");return t.facade=e,kK(e,NK,t),t},EK=function(e){return KG(e,NK)?e[NK]:{}},SK=function(e){return KG(e,NK)}}var LK,IK,RK,MK={set:xK,get:EK,has:SK,enforce:function(e){return SK(e)?EK(e):xK(e,{})},getterFor:function(e){return function(t){var n;if(!yq(t)||(n=EK(t)).type!==e)throw _K("Incompatible receiver, "+e+" required");return n}}},zK={}.propertyIsEnumerable,HK=Object.getOwnPropertyDescriptor,$K={f:HK&&!zK.call({1:2},1)?function(e){var t=HK(this,e);return!!t&&t.enumerable}:zK},VK=Object.getOwnPropertyDescriptor,UK={f:xq?VK:function(e,t){if(e=HG(e),t=Mq(t),Dq)try{return VK(e,t)}catch(e){}if(KG(e,t))return AK(!Aq($K.f,e,t),e[t])}},ZK=Function.prototype,WK=xq&&Object.getOwnPropertyDescriptor,GK=KG(ZK,"name"),qK={EXISTS:GK,PROPER:GK&&"something"===function(){}.name,CONFIGURABLE:GK&&(!xq||xq&&WK(ZK,"name").configurable)},KK=EG((function(e){var t=qK.CONFIGURABLE,n=MK.get,r=MK.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;eq(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!KG(i,"name")||t&&i.name!==f)&&kK(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==OG?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:kK(e,n,i)):c?e[n]=i:VG(n,i)})(Function.prototype,"toString",(function(){return eq(this)&&n(this).source||CK(this)}))})),YK=oK.concat("length","prototype"),XK={f:Object.getOwnPropertyNames||function(e){return rK(e,YK)}},JK={f:Object.getOwnPropertySymbols},QK=BG([].concat),eY=nq("Reflect","ownKeys")||function(e){var t=XK.f(wq(e)),n=JK.f;return n?QK(t,n(e)):t},tY=function(e,t){for(var n=eY(t),r=$q.f,o=UK.f,i=0;i<n.length;i++){var a=n[i];KG(e,a)||r(e,a,o(t,a))}},nY=/#|\.prototype\./,rY=function(e,t){var n=iY[oY(e)];return n==uY||n!=aY&&(eq(t)?PG(t):!!t)},oY=rY.normalize=function(e){return String(e).replace(nY,".").toLowerCase()},iY=rY.data={},aY=rY.NATIVE="N",uY=rY.POLYFILL="P",sY=rY,cY=UK.f,lY=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?OG:c?OG[u]||VG(u,{}):(OG[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=cY(n,r))&&a.value:n[r],!sY(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;tY(i,o)}(e.sham||o&&o.sham)&&kK(i,"sham",!0),KK(n,r,i,e)}},fY=!PG((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),pY=cK("IE_PROTO"),dY=OG.Object,hY=dY.prototype,vY=fY?dY.getPrototypeOf:function(e){var t=GG(e);if(KG(t,pY))return t[pY];var n=t.constructor;return eq(n)&&t instanceof n?n.prototype:t instanceof dY?hY:null},gY=gq("iterator"),yY=!1;[].keys&&("next"in(RK=[].keys())?(IK=vY(vY(RK)))!==Object.prototype&&(LK=IK):yY=!0);var mY=null==LK||PG((function(){var e={};return LK[gY].call(e)!==e}));mY&&(LK={}),eq(LK[gY])||KK(LK,gY,(function(){return this}));var bY={IteratorPrototype:LK,BUGGY_SAFARI_ITERATORS:yY},wY=$q.f,xY=gq("toStringTag"),EY=function(e,t,n){e&&!KG(e=n?e:e.prototype,xY)&&wY(e,xY,{configurable:!0,value:t})},SY=bY.IteratorPrototype,CY=function(){return this},DY=OG.String,OY=OG.TypeError,AY=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=BG(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return wq(n),function(e){if("object"==typeof e||eq(e))return e;throw OY("Can't set "+DY(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),kY=qK.PROPER,_Y=qK.CONFIGURABLE,TY=bY.IteratorPrototype,BY=bY.BUGGY_SAFARI_ITERATORS,PY=gq("iterator"),jY=function(){return this},FY=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=vK(SY,{next:AK(1,n)}),EY(e,o,!1),bK[o]=CY}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!BY&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",p=!1,d=e.prototype,h=d[PY]||d["@@iterator"]||o&&d[o],v=!BY&&h||l(o),g="Array"==t&&d.entries||h;if(g&&(u=vY(g.call(new e)))!==Object.prototype&&u.next&&(vY(u)!==TY&&(AY?AY(u,TY):eq(u[PY])||KK(u,PY,jY)),EY(u,f,!0)),kY&&"values"==o&&h&&"values"!==h.name&&(_Y?kK(d,"name","values"):(p=!0,v=function(){return Aq(h,this)})),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(BY||p||!(c in d))&&KK(d,c,s[c]);else lY({target:t,proto:!0,forced:BY||p},s);return d[PY]!==v&&KK(d,PY,v,{name:o}),bK[t]=v,s},NY=MK.set,LY=MK.getterFor("Array Iterator"),IY=FY(Array,"Array",(function(e,t){NY(this,{type:"Array Iterator",target:HG(e),index:0,kind:t})}),(function(){var e=LY(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");bK.Arguments=bK.Array,mK("keys"),mK("values"),mK("entries");var RY={};RY[gq("toStringTag")]="z";var MY="[object z]"===String(RY),zY=gq("toStringTag"),HY=OG.Object,$Y="Arguments"==NG(function(){return arguments}()),VY=MY?NG:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=HY(e),zY))?n:$Y?NG(t):"Object"==(r=NG(t))&&eq(t.callee)?"Arguments":r},UY=MY?{}.toString:function(){return"[object "+VY(this)+"]"};MY||KK(Object.prototype,"toString",UY,{unsafe:!0});var ZY=OG.String,WY=function(e){if("Symbol"===VY(e))throw TypeError("Cannot convert a Symbol value to a string");return ZY(e)},GY=BG("".charAt),qY=BG("".charCodeAt),KY=BG("".slice),YY=function(e){return function(t,n){var r,o,i=WY(zG(t)),a=Zq(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=qY(i,a))<55296||r>56319||a+1===u||(o=qY(i,a+1))<56320||o>57343?e?GY(i,a):r:e?KY(i,a,a+2):o-56320+(r-55296<<10)+65536}},XY={codeAt:YY(!1),charAt:YY(!0)},JY=XY.charAt,QY=MK.set,eX=MK.getterFor("String Iterator");FY(String,"String",(function(e){QY(this,{type:"String Iterator",string:WY(e),index:0})}),(function(){var e,t=eX(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=JY(n,r),t.index+=e.length,{value:e,done:!1})}));var tX=function(e,t,n){for(var r in t)KK(e,r,t[r],n);return e},nX=OG.Array,rX=Math.max,oX=XK.f,iX="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],aX={f:function(e){return iX&&"Window"==NG(e)?function(e){try{return oX(e)}catch(e){return function(e,t,n){for(var r,o,i,a,u=Xq(e),s=qq(void 0,u),c=qq(u,u),l=nX(rX(c-s,0)),f=0;s<c;s++,f++)r=l,o=f,i=e[s],(a=Mq(o))in r?$q.f(r,a,AK(0,i)):r[a]=i;return l.length=f,l}(iX)}}(e):oX(HG(e))}},uX=PG((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),sX=Object.isExtensible,cX=PG((function(){sX(1)}))||uX?function(e){return!!yq(e)&&(!uX||"ArrayBuffer"!=NG(e))&&(!sX||sX(e))}:sX,lX=!PG((function(){return Object.isExtensible(Object.preventExtensions({}))})),fX=EG((function(e){var t=$q.f,n=!1,r=QG("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=XK.f,t=BG([].splice),o={};o[r]=1,e(o).length&&(XK.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},lY({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:aX.f}))},fastKey:function(e,t){if(!yq(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!KG(e,r)){if(!cX(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!KG(e,r)){if(!cX(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return lX&&n&&cX(e)&&!KG(e,r)&&i(e),e}};eK[r]=!0})),pX=BG(BG.bind),dX=function(e,t){return Fq(e),void 0===t?e:pX?pX(e,t):function(){return e.apply(t,arguments)}},hX=gq("iterator"),vX=Array.prototype,gX=gq("iterator"),yX=function(e){if(null!=e)return Nq(e,gX)||Nq(e,"@@iterator")||bK[VY(e)]},mX=OG.TypeError,bX=function(e,t,n){var r,o;wq(e);try{if(!(r=Nq(e,"return"))){if("throw"===t)throw n;return n}r=Aq(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return wq(r),n},wX=OG.TypeError,xX=function(e,t){this.stopped=e,this.result=t},EX=xX.prototype,SX=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=dX(t,f),g=function(e){return r&&bX(r,"normal",e),new xX(!0,e)},y=function(e){return p?(wq(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(d)r=e;else{if(!(o=yX(e)))throw wX(Pq(e)+" is not iterable");if(void 0!==(l=o)&&(bK.Array===l||vX[hX]===l)){for(i=0,a=Xq(e);a>i;i++)if((u=y(e[i]))&&kq(EX,u))return u;return new xX(!1)}r=function(e,t){var n=arguments.length<2?yX(e):t;if(Fq(n))return wq(Aq(n,e));throw mX(Pq(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=Aq(s,r)).done;){try{u=y(c.value)}catch(e){bX(r,"throw",e)}if("object"==typeof u&&u&&kq(EX,u))return u}return new xX(!1)},CX=OG.TypeError,DX=function(e,t){if(kq(t,e))return e;throw CX("Incorrect invocation")},OX=gq("iterator"),AX=!1;try{var kX=0,_X={next:function(){return{done:!!kX++}},return:function(){AX=!0}};_X[OX]=function(){return this},Array.from(_X,(function(){throw 2}))}catch(Mc){}var TX=Array.isArray||function(e){return"Array"==NG(e)},BX=function(){},PX=[],jX=nq("Reflect","construct"),FX=/^\s*(?:class|function)\b/,NX=BG(FX.exec),LX=!FX.exec(BX),IX=function(e){if(!eq(e))return!1;try{return jX(BX,PX,e),!0}catch(e){return!1}},RX=!jX||PG((function(){var e;return IX(IX.call)||!IX(Object)||!IX((function(){e=!0}))||e}))?function(e){if(!eq(e))return!1;switch(VY(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return LX||!!NX(FX,CK(e))}:IX,MX=gq("species"),zX=OG.Array,HX=function(e,t){return new(function(e){var t;return TX(e)&&(t=e.constructor,(RX(t)&&(t===zX||TX(t.prototype))||yq(t)&&null===(t=t[MX]))&&(t=void 0)),void 0===t?zX:t}(e))(0===t?0:t)},$X=BG([].push),VX=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var p,d,h=GG(s),v=RG(h),g=dX(c,l),y=Xq(v),m=0,b=f||HX,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(d=g(p=v[m],m,h),e))if(t)w[m]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:$X(w,p)}else switch(e){case 4:return!1;case 7:$X(w,p)}return i?-1:r||o?o:w}},UX={forEach:VX(0),map:VX(1),filter:VX(2),some:VX(3),every:VX(4),find:VX(5),findIndex:VX(6),filterReject:VX(7)},ZX=fX.getWeakData,WX=MK.set,GX=MK.getterFor,qX=UX.find,KX=UX.findIndex,YX=BG([].splice),XX=0,JX=function(e){return e.frozen||(e.frozen=new QX)},QX=function(){this.entries=[]},eJ=function(e,t){return qX(e.entries,(function(e){return e[0]===t}))};QX.prototype={get:function(e){var t=eJ(this,e);if(t)return t[1]},has:function(e){return!!eJ(this,e)},set:function(e,t){var n=eJ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=KX(this.entries,(function(t){return t[0]===e}));return~t&&YX(this.entries,t,1),!!~t}};var tJ,nJ={getConstructor:function(e,t,n,r){var o=e((function(e,o){DX(e,i),WX(e,{type:t,id:XX++,frozen:void 0}),null!=o&&SX(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=GX(t),u=function(e,t,n){var r=a(e),o=ZX(wq(t),!0);return!0===o?JX(r).set(t,n):o[r.id]=n,e};return tX(i,{delete:function(e){var t=a(this);if(!yq(e))return!1;var n=ZX(e);return!0===n?JX(t).delete(e):n&&KG(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!yq(e))return!1;var n=ZX(e);return!0===n?JX(t).has(e):n&&KG(n,t.id)}}),tX(i,n?{get:function(e){var t=a(this);if(yq(e)){var n=ZX(e);return!0===n?JX(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},rJ=MK.enforce,oJ=!OG.ActiveXObject&&"ActiveXObject"in OG,iJ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},aJ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=OG[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=BG(u[e]);KK(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!yq(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!yq(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!yq(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(sY(e,!eq(a)||!(o||u.forEach&&!PG((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),fX.enable();else if(sY(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=PG((function(){f.has(1)})),h=function(e,t){if(!AX)return!1;var n=!1;try{var r={};r[OX]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),v=!o&&PG((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){DX(e,u);var n=function(e,t,n){var r,o;return AY&&eq(r=t.constructor)&&r!==n&&yq(o=r.prototype)&&o!==n.prototype&&AY(e,o),e}(new a,e,s);return null!=t&&SX(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(d||v)&&(l("delete"),l("has"),r&&l("get")),(v||p)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,lY({global:!0,forced:s!=a},c),EY(s,e),o||n.setStrong(s,e,r),s}("WeakMap",iJ,nJ);if(OK&&oJ){tJ=nJ.getConstructor(iJ,"WeakMap",!0),fX.enable();var uJ=aJ.prototype,sJ=BG(uJ.delete),cJ=BG(uJ.has),lJ=BG(uJ.get),fJ=BG(uJ.set);tX(uJ,{delete:function(e){if(yq(e)&&!cX(e)){var t=rJ(this);return t.frozen||(t.frozen=new tJ),sJ(this,e)||t.frozen.delete(e)}return sJ(this,e)},has:function(e){if(yq(e)&&!cX(e)){var t=rJ(this);return t.frozen||(t.frozen=new tJ),cJ(this,e)||t.frozen.has(e)}return cJ(this,e)},get:function(e){if(yq(e)&&!cX(e)){var t=rJ(this);return t.frozen||(t.frozen=new tJ),cJ(this,e)?lJ(this,e):t.frozen.get(e)}return lJ(this,e)},set:function(e,t){if(yq(e)&&!cX(e)){var n=rJ(this);n.frozen||(n.frozen=new tJ),cJ(this,e)?fJ(this,e,t):n.frozen.set(e,t)}else fJ(this,e,t);return this}})}var pJ={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},dJ=Cq("span").classList,hJ=dJ&&dJ.constructor&&dJ.constructor.prototype,vJ=hJ===Object.prototype?void 0:hJ,gJ=gq("iterator"),yJ=gq("toStringTag"),mJ=IY.values,bJ=function(e,t){if(e){if(e[gJ]!==mJ)try{kK(e,gJ,mJ)}catch(t){e[gJ]=mJ}if(e[yJ]||kK(e,yJ,t),pJ[t])for(var n in IY)if(e[n]!==IY[n])try{kK(e,n,IY[n])}catch(t){e[n]=IY[n]}}};for(var wJ in pJ)bJ(OG[wJ]&&OG[wJ].prototype,wJ);bJ(vJ,"DOMTokenList");var xJ=new WeakMap,EJ={type:"list-item",renderElem:function(e,t,n){xJ.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(void 0!==a&&a){var c=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,c=t,l=AA.findPath(e,c);if(0===l[0])return 1;for(;l[0]>0;){var f=Lf.previous(l),p=Af.node(e,f);if(null==p)break;var d=p[0],h=d.level,v=void 0===h?0:h,g=d.type,y=d.ordered;if(g!==r)break;if(v<i)break;if(v===i){if(y!==u)break;s++}c=d,l=f}return s}(n,e);s=c+"."}else s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);var l=function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];Xf.isText(i)&&(t=i)}return null==t?"":t.color||""}(e);return bv("div",{style:u},bv("span",{contentEditable:!1,style:{marginRight:"0.5em",color:l},"data-w-e-reserve":!0},s),bv("span",null,t))}},SJ=function(e,t){return SJ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},SJ(e,t)
|
|
95
|
+
/*! *****************************************************************************
|
|
96
|
+
Copyright (c) Microsoft Corporation.
|
|
97
|
+
|
|
98
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
99
|
+
purpose with or without fee is hereby granted.
|
|
100
|
+
|
|
101
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
102
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
103
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
104
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
105
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
106
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
107
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
108
|
+
***************************************************************************** */};function CJ(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}SJ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function DJ(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function OJ(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function AJ(e){return Af.nodes(e,{at:e.selection||void 0,match:function(t){return 1===AA.findPath(e,t).length}})}var kJ=Qq.includes;lY({target:"Array",proto:!0},{includes:function(e){return kJ(this,e,arguments.length>1?arguments[1]:void 0)}}),mK("includes");var _J,TJ,BJ=function(){var e=wq(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},PJ=OG.RegExp,jJ=PG((function(){var e=PJ("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),FJ=jJ||PG((function(){return!PJ("a","y").sticky})),NJ={BROKEN_CARET:jJ||PG((function(){var e=PJ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:FJ,UNSUPPORTED_Y:jJ},LJ=OG.RegExp,IJ=PG((function(){var e=LJ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),RJ=OG.RegExp,MJ=PG((function(){var e=RJ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),zJ=MK.get,HJ=ZG("native-string-replace",String.prototype.replace),$J=RegExp.prototype.exec,VJ=$J,UJ=BG("".charAt),ZJ=BG("".indexOf),WJ=BG("".replace),GJ=BG("".slice),qJ=(TJ=/b*/g,Aq($J,_J=/a/,"a"),Aq($J,TJ,"a"),0!==_J.lastIndex||0!==TJ.lastIndex),KJ=NJ.BROKEN_CARET,YJ=void 0!==/()??/.exec("")[1];(qJ||YJ||KJ||IJ||MJ)&&(VJ=function(e){var t,n,r,o,i,a,u,s=this,c=zJ(s),l=WY(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=Aq(VJ,f,l),s.lastIndex=f.lastIndex,t;var p=c.groups,d=KJ&&s.sticky,h=Aq(BJ,s),v=s.source,g=0,y=l;if(d&&(h=WJ(h,"y",""),-1===ZJ(h,"g")&&(h+="g"),y=GJ(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==UJ(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),YJ&&(n=new RegExp("^"+v+"$(?!\\s)",h)),qJ&&(r=s.lastIndex),o=Aq($J,d?n:s,y),d?o?(o.input=GJ(o.input,g),o[0]=GJ(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:qJ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),YJ&&o&&o.length>1&&Aq(HJ,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=vK(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var XJ=VJ;lY({target:"RegExp",proto:!0,forced:/./.exec!==XJ},{exec:XJ});var JJ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return AA.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!AA.getSelectedElems(e).some((function(t){if(Af.isVoid(e,t)&&Af.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?vp.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):vp.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),QJ='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',eQ='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',tQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=dj("listModule.unOrderedList"),t.iconSvg=QJ,t}return CJ(t,e),t}(JJ),nQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=dj("listModule.orderedList"),t.iconSvg=eQ,t}return CJ(t,e),t}(JJ),rQ={key:"bulletedList",factory:function(){return new tQ}},oQ={key:"numberedList",factory:function(){return new nQ}},iQ=[],aQ={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=xJ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=AA.findPath(t,e);if(0===s[0])return u+1;var c=Lf.previous(s),l=Af.node(t,c);if(!l)return 0;var f=OJ(l,1)[0];if(AA.getNodeType(f)!==r)return u+1;var p=f,d=p.ordered,h=void 0!==d&&d,v=p.level,g=void 0===v?0:v;return g<u?u-g:g>u?0:g===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",iQ.push(i);var s=function(e){var t=xJ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=AA.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var c=Lf.next(s),l=Af.node(t,c);if(!l)return 0;var f=OJ(l,1)[0];if(AA.getNodeType(f)!==r)return u+1;var p=f,d=p.ordered,h=void 0!==d&&d,v=p.level,g=void 0===v?0:v;return g<u?u-g:g>u?0:g===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+iQ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},uQ=gq("species"),sQ=UX.filter,cQ=cq>=51||!PG((function(){var e=[];return(e.constructor={})[uQ]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));lY({target:"Array",proto:!0,forced:!cQ},{filter:function(e){return sQ(this,e,arguments.length>1?arguments[1]:void 0)}});var lQ=Function.prototype,fQ=lQ.apply,pQ=lQ.bind,dQ=lQ.call,hQ="object"==typeof Reflect&&Reflect.apply||(pQ?dQ.bind(fQ):function(){return dQ.apply(fQ,arguments)}),vQ=(gq("species"),RegExp.prototype),gQ=XY.charAt,yQ=function(e,t,n){return t+(n?gQ(e,t).length:1)},mQ=Math.floor,bQ=BG("".charAt),wQ=BG("".replace),xQ=BG("".slice),EQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SQ=/\$([$&'`]|\d{1,2})/g,CQ=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=SQ;return void 0!==o&&(o=GG(o),s=EQ),wQ(i,s,(function(i,s){var c;switch(bQ(s,0)){case"$":return"$";case"&":return e;case"`":return xQ(t,0,n);case"'":return xQ(t,a);case"<":c=o[xQ(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=mQ(l/10);return 0===f?i:f<=u?void 0===r[f-1]?bQ(s,1):r[f-1]+bQ(s,1):i}c=r[l-1]}return void 0===c?"":c}))},DQ=OG.TypeError,OQ=function(e,t){var n=e.exec;if(eq(n)){var r=Aq(n,e,t);return null!==r&&wq(r),r}if("RegExp"===NG(e))return Aq(XJ,e,t);throw DQ("RegExp#exec called on incompatible receiver")},AQ=gq("replace"),kQ=Math.max,_Q=Math.min,TQ=BG([].concat),BQ=BG([].push),PQ=BG("".indexOf),jQ=BG("".slice),FQ="$0"==="a".replace(/./,"$0"),NQ=!!/./[AQ]&&""===/./[AQ]("a","$0");!function(e,t,n,r){var o=gq(e),i=!PG((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!PG((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=BG(/./[o]),s=function(e,t,n){var r=NQ?"$":"$0";return[function(e,n){var r=zG(this),o=null==e?void 0:Nq(e,AQ);return o?Aq(o,e,r,n):Aq(t,WY(r),e,n)},function(e,o){var i=wq(this),a=WY(e);if("string"==typeof o&&-1===PQ(o,r)&&-1===PQ(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=eq(o);s||(o=WY(o));var c=i.global;if(c){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var p=OQ(i,a);if(null===p)break;if(BQ(f,p),!c)break;""===WY(p[0])&&(i.lastIndex=yQ(a,Yq(i.lastIndex),l))}for(var d,h="",v=0,g=0;g<f.length;g++){for(var y=WY((p=f[g])[0]),m=kQ(_Q(Zq(p.index),a.length),0),b=[],w=1;w<p.length;w++)BQ(b,void 0===(d=p[w])?d:String(d));var x=p.groups;if(s){var E=TQ([y],b,m,a);void 0!==x&&BQ(E,x);var S=WY(hQ(o,void 0,E))}else S=CQ(y,a,m,b,x,o);m>=v&&(h+=jQ(a,v,m)+S,v=m+y.length)}return h+jQ(a,v)}]}(0,""[e],(function(e,t,n,r,o){var a=BG(e),s=t.exec;return s===XJ||s===vQ.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));KK(String.prototype,e,s[0]),KK(vQ,o,s[1])}}("replace",0,!!PG((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!FQ||NQ);var LQ=OG.TypeError,IQ=function(e,t,n,r,o,i,a,u){for(var s,c,l=o,f=0,p=!!a&&dX(a,u);f<r;){if(f in n){if(s=p?p(n[f],f,t):n[f],i>0&&TX(s))c=Xq(s),l=IQ(e,t,s,c,l,i-1)-1;else{if(l>=9007199254740991)throw LQ("Exceed the acceptable array length");e[l]=s}l++}f++}return l},RQ=IQ;function MQ(e){return e.length?e[0].tagName.toLowerCase():""}lY({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=GG(this),n=Xq(t),r=HX(t,0);return r.length=RQ(r,t,t,n,0,void 0===e?1:Zq(e)),r}}),mK("flat"),lY({global:!0},{globalThis:OG}),Xd&&(Td.fn.append=Xd),Fd&&(Td.fn.attr=Fd),Qd&&(Td.fn.parent=Qd);var zQ={renderElems:[EJ],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if(Uf.isExpanded(n))t(e);else{var r=AA.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?vp.setNodes(o,{level:a-1}):vp.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(Uf.isCollapsed(a)){var u=AA.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,c=void 0===s?0:s;return void vp.setNodes(o,{level:c+1})}}if(Uf.isExpanded(a)){var l=0,f=!1;try{for(var p=DJ(AJ(o)),d=p.next();!d.done;d=p.next()){var h=OJ(d.value,1)[0];"list-item"===AA.getNodeType(h)?l++:f=!0}}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=p.return)&&t.call(p)}finally{if(e)throw e.error}}if(f||l<=1)return void n();try{for(var v=DJ(AJ(o)),g=v.next();!g.done;g=v.next()){var y=OJ(g.value,2),m=(h=y[0],y[1]),b=h.level;c=void 0===b?0:b,vp.setNodes(o,{level:c+1},{at:m})}}catch(e){r={error:e}}finally{try{g&&!g.done&&(i=v.return)&&i.call(v)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=OJ(e,2),n=t[0],i=t[1],a=AA.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||vp.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[rQ,oQ],elemsToHtml:[aQ],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Td(e);0===(t=t.filter((function(e){return!!Xf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===MQ(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=MQ(n);"ul"===r||"ol"===r;)r=MQ(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},HQ=o((function(e,t){var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",c="[object Error]",l="[object Function]",f="[object Map]",p="[object Number]",d="[object Object]",h="[object Promise]",v="[object RegExp]",g="[object Set]",y="[object String]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",x=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[i]=S[a]=S[b]=S[u]=S[w]=S[s]=S[c]=S[l]=S[f]=S[p]=S[d]=S[v]=S[g]=S[y]=S[m]=!1;var C="object"==typeof r&&r&&r.Object===Object&&r,D="object"==typeof self&&self&&self.Object===Object&&self,O=C||D||Function("return this")(),A=t&&!t.nodeType&&t,k=A&&e&&!e.nodeType&&e,_=k&&k.exports===A,T=_&&C.process,B=function(){try{return T&&T.binding&&T.binding("util")}catch(e){}}(),P=B&&B.isTypedArray;function j(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 F(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var L=Array.prototype,I=Function.prototype,R=Object.prototype,M=O["__core-js_shared__"],z=I.toString,H=R.hasOwnProperty,$=function(){var e=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),V=R.toString,U=RegExp("^"+z.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z=_?O.Buffer:void 0,W=O.Symbol,G=O.Uint8Array,q=R.propertyIsEnumerable,K=L.splice,Y=W?W.toStringTag:void 0,X=Object.getOwnPropertySymbols,J=Z?Z.isBuffer:void 0,Q=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ee=De(O,"DataView"),te=De(O,"Map"),ne=De(O,"Promise"),re=De(O,"Set"),oe=De(O,"WeakMap"),ie=De(Object,"create"),ae=_e(ee),ue=_e(te),se=_e(ne),ce=_e(re),le=_e(oe),fe=W?W.prototype:void 0,pe=fe?fe.valueOf:void 0;function de(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ve;++t<n;)this.add(e[t])}function ye(e){var t=this.__data__=new he(e);this.size=t.size}function me(e,t){for(var n=e.length;n--;)if(Te(e[n][0],t))return n;return-1}function be(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Y&&Y in Object(e)?function(e){var t=H.call(e,Y),n=e[Y];try{e[Y]=void 0;var r=!0}catch(e){}var o=V.call(e);return r&&(t?e[Y]=n:delete e[Y]),o}(e):function(e){return V.call(e)}(e)}function we(e){return Ie(e)&&be(e)==i}function xe(e,t,n,r,o){return e===t||(null==e||null==t||!Ie(e)&&!Ie(t)?e!=e&&t!=t:function(e,t,n,r,o,l){var h=Pe(e),m=Pe(t),x=h?a:Ae(e),E=m?a:Ae(t),S=(x=x==i?d:x)==d,C=(E=E==i?d:E)==d,D=x==E;if(D&&je(e)){if(!je(t))return!1;h=!0,S=!1}if(D&&!S)return l||(l=new ye),h||Re(e)?Ee(e,t,n,r,o,l):function(e,t,n,r,o,i,a){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!i(new G(e),new G(t)));case u:case s:case p:return Te(+e,+t);case c:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case f:var l=F;case g:var d=1&r;if(l||(l=N),e.size!=t.size&&!d)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var m=Ee(l(e),l(t),r,o,i,a);return a.delete(e),m;case"[object Symbol]":if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,x,n,r,o,l);if(!(1&n)){var O=S&&H.call(e,"__wrapped__"),A=C&&H.call(t,"__wrapped__");if(O||A){var k=O?e.value():e,_=A?t.value():t;return l||(l=new ye),o(k,_,n,r,l)}}return!!D&&(l||(l=new ye),function(e,t,n,r,o,i){var a=1&n,u=Se(e),s=u.length;if(s!=Se(t).length&&!a)return!1;for(var c=s;c--;){var l=u[c];if(!(a?l in t:H.call(t,l)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var p=!0;i.set(e,t),i.set(t,e);for(var d=a;++c<s;){var h=e[l=u[c]],v=t[l];if(r)var g=a?r(v,h,l,t,e,i):r(h,v,l,e,t,i);if(!(void 0===g?h===v||o(h,v,n,r,i):g)){p=!1;break}d||(d="constructor"==l)}if(p&&!d){var y=e.constructor,m=t.constructor;y==m||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,l))}(e,t,n,r,xe,o))}function Ee(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var l=-1,f=!0,p=2&n?new ge:void 0;for(i.set(e,t),i.set(t,e);++l<u;){var d=e[l],h=t[l];if(r)var v=a?r(h,d,l,t,e,i):r(d,h,l,e,t,i);if(void 0!==v){if(v)continue;f=!1;break}if(p){if(!j(t,(function(e,t){if(a=t,!p.has(a)&&(d===e||o(d,e,n,r,i)))return p.push(t);var a}))){f=!1;break}}else if(d!==h&&!o(d,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function Se(e){return function(e,t,n){var r=t(e);return Pe(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Me,Oe)}function Ce(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function De(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Le(e)||function(e){return!!$&&$ in e}(e))&&(Fe(e)?U:x).test(_e(e))}(n)?n:void 0}de.prototype.clear=function(){this.__data__=ie?ie(null):{},this.size=0},de.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},de.prototype.get=function(e){var t=this.__data__;if(ie){var r=t[e];return r===n?void 0:r}return H.call(t,e)?t[e]:void 0},de.prototype.has=function(e){var t=this.__data__;return ie?void 0!==t[e]:H.call(t,e)},de.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ie&&void 0===t?n:t,this},he.prototype.clear=function(){this.__data__=[],this.size=0},he.prototype.delete=function(e){var t=this.__data__,n=me(t,e);return!(n<0||(n==t.length-1?t.pop():K.call(t,n,1),--this.size,0))},he.prototype.get=function(e){var t=this.__data__,n=me(t,e);return n<0?void 0:t[n][1]},he.prototype.has=function(e){return me(this.__data__,e)>-1},he.prototype.set=function(e,t){var n=this.__data__,r=me(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ve.prototype.clear=function(){this.size=0,this.__data__={hash:new de,map:new(te||he),string:new de}},ve.prototype.delete=function(e){var t=Ce(this,e).delete(e);return this.size-=t?1:0,t},ve.prototype.get=function(e){return Ce(this,e).get(e)},ve.prototype.has=function(e){return Ce(this,e).has(e)},ve.prototype.set=function(e,t){var n=Ce(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ge.prototype.add=ge.prototype.push=function(e){return this.__data__.set(e,n),this},ge.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.clear=function(){this.__data__=new he,this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ye.prototype.get=function(e){return this.__data__.get(e)},ye.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.set=function(e,t){var n=this.__data__;if(n instanceof he){var r=n.__data__;if(!te||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ve(r)}return n.set(e,t),this.size=n.size,this};var Oe=X?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(X(e),(function(t){return q.call(e,t)})))}:function(){return[]},Ae=be;function ke(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||E.test(e))&&e>-1&&e%1==0&&e<t}function _e(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Te(e,t){return e===t||e!=e&&t!=t}(ee&&Ae(new ee(new ArrayBuffer(1)))!=w||te&&Ae(new te)!=f||ne&&Ae(ne.resolve())!=h||re&&Ae(new re)!=g||oe&&Ae(new oe)!=m)&&(Ae=function(e){var t=be(e),n=t==d?e.constructor:void 0,r=n?_e(n):"";if(r)switch(r){case ae:return w;case ue:return f;case se:return h;case ce:return g;case le:return m}return t});var Be=we(function(){return arguments}())?we:function(e){return Ie(e)&&H.call(e,"callee")&&!q.call(e,"callee")},Pe=Array.isArray,je=J||function(){return!1};function Fe(e){if(!Le(e))return!1;var t=be(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ne(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Le(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ie(e){return null!=e&&"object"==typeof e}var Re=P?function(e){return function(t){return e(t)}}(P):function(e){return Ie(e)&&Ne(e.length)&&!!S[be(e)]};function Me(e){return null!=(t=e)&&Ne(t.length)&&!Fe(t)?function(e,t){var n=Pe(e),r=!n&&Be(e),o=!n&&!r&&je(e),i=!n&&!r&&!o&&Re(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var c in e)!t&&!H.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ke(c,s))||u.push(c);return u}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||R))return Q(e);var t,n,r=[];for(var o in Object(e))H.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return xe(e,t)}}));pj("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),pj("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var $Q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function VQ(e){var t={exports:{}};return e(t,t.exports),t.exports}var UQ,ZQ,WQ=function(e){return e&&e.Math==Math&&e},GQ=WQ("object"==typeof globalThis&&globalThis)||WQ("object"==typeof window&&window)||WQ("object"==typeof self&&self)||WQ("object"==typeof $Q&&$Q)||function(){return this}()||Function("return this")(),qQ=function(e){try{return!!e()}catch(e){return!0}},KQ=!qQ((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),YQ=Function.prototype.call,XQ=YQ.bind?YQ.bind(YQ):function(){return YQ.apply(YQ,arguments)},JQ={}.propertyIsEnumerable,QQ=Object.getOwnPropertyDescriptor,e0={f:QQ&&!JQ.call({1:2},1)?function(e){var t=QQ(this,e);return!!t&&t.enumerable}:JQ},t0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},n0=Function.prototype,r0=n0.bind,o0=n0.call,i0=r0&&r0.bind(o0),a0=r0?function(e){return e&&i0(o0,e)}:function(e){return e&&function(){return o0.apply(e,arguments)}},u0=a0({}.toString),s0=a0("".slice),c0=function(e){return s0(u0(e),8,-1)},l0=GQ.Object,f0=a0("".split),p0=qQ((function(){return!l0("z").propertyIsEnumerable(0)}))?function(e){return"String"==c0(e)?f0(e,""):l0(e)}:l0,d0=GQ.TypeError,h0=function(e){if(null==e)throw d0("Can't call method on "+e);return e},v0=function(e){return p0(h0(e))},g0=function(e){return"function"==typeof e},y0=function(e){return"object"==typeof e?null!==e:g0(e)},m0=function(e){return g0(e)?e:void 0},b0=function(e,t){return arguments.length<2?m0(GQ[e]):GQ[e]&&GQ[e][t]},w0=a0({}.isPrototypeOf),x0=b0("navigator","userAgent")||"",E0=GQ.process,S0=GQ.Deno,C0=E0&&E0.versions||S0&&S0.version,D0=C0&&C0.v8;D0&&(ZQ=(UQ=D0.split("."))[0]>0&&UQ[0]<4?1:+(UQ[0]+UQ[1])),!ZQ&&x0&&(!(UQ=x0.match(/Edge\/(\d+)/))||UQ[1]>=74)&&(UQ=x0.match(/Chrome\/(\d+)/))&&(ZQ=+UQ[1]);var O0=ZQ,A0=!!Object.getOwnPropertySymbols&&!qQ((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&O0&&O0<41})),k0=A0&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_0=GQ.Object,T0=k0?function(e){return"symbol"==typeof e}:function(e){var t=b0("Symbol");return g0(t)&&w0(t.prototype,_0(e))},B0=GQ.String,P0=function(e){try{return B0(e)}catch(e){return"Object"}},j0=GQ.TypeError,F0=function(e){if(g0(e))return e;throw j0(P0(e)+" is not a function")},N0=function(e,t){var n=e[t];return null==n?void 0:F0(n)},L0=GQ.TypeError,I0=Object.defineProperty,R0=function(e,t){try{I0(GQ,e,{value:t,configurable:!0,writable:!0})}catch(n){GQ[e]=t}return t},M0=GQ["__core-js_shared__"]||R0("__core-js_shared__",{}),z0=VQ((function(e){(e.exports=function(e,t){return M0[e]||(M0[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),H0=GQ.Object,$0=function(e){return H0(h0(e))},V0=a0({}.hasOwnProperty),U0=Object.hasOwn||function(e,t){return V0($0(e),t)},Z0=0,W0=Math.random(),G0=a0(1..toString),q0=function(e){return"Symbol("+(void 0===e?"":e)+")_"+G0(++Z0+W0,36)},K0=z0("wks"),Y0=GQ.Symbol,X0=Y0&&Y0.for,J0=k0?Y0:Y0&&Y0.withoutSetter||q0,Q0=function(e){if(!U0(K0,e)||!A0&&"string"!=typeof K0[e]){var t="Symbol."+e;A0&&U0(Y0,e)?K0[e]=Y0[e]:K0[e]=k0&&X0?X0(t):J0(t)}return K0[e]},e1=GQ.TypeError,t1=Q0("toPrimitive"),n1=function(e){var t=function(e,t){if(!y0(e)||T0(e))return e;var n,r=N0(e,t1);if(r){if(void 0===t&&(t="default"),n=XQ(r,e,t),!y0(n)||T0(n))return n;throw e1("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&g0(n=e.toString)&&!y0(r=XQ(n,e)))return r;if(g0(n=e.valueOf)&&!y0(r=XQ(n,e)))return r;if("string"!==t&&g0(n=e.toString)&&!y0(r=XQ(n,e)))return r;throw L0("Can't convert object to primitive value")}(e,t)}(e,"string");return T0(t)?t:t+""},r1=GQ.document,o1=y0(r1)&&y0(r1.createElement),i1=function(e){return o1?r1.createElement(e):{}},a1=!KQ&&!qQ((function(){return 7!=Object.defineProperty(i1("div"),"a",{get:function(){return 7}}).a})),u1=Object.getOwnPropertyDescriptor,s1={f:KQ?u1:function(e,t){if(e=v0(e),t=n1(t),a1)try{return u1(e,t)}catch(e){}if(U0(e,t))return t0(!XQ(e0.f,e,t),e[t])}},c1=GQ.String,l1=GQ.TypeError,f1=function(e){if(y0(e))return e;throw l1(c1(e)+" is not an object")},p1=GQ.TypeError,d1=Object.defineProperty,h1={f:KQ?d1:function(e,t,n){if(f1(e),t=n1(t),f1(n),a1)try{return d1(e,t,n)}catch(e){}if("get"in n||"set"in n)throw p1("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},v1=KQ?function(e,t,n){return h1.f(e,t,t0(1,n))}:function(e,t,n){return e[t]=n,e},g1=a0(Function.toString);g0(M0.inspectSource)||(M0.inspectSource=function(e){return g1(e)});var y1,m1,b1,w1=M0.inspectSource,x1=GQ.WeakMap,E1=g0(x1)&&/native code/.test(w1(x1)),S1=z0("keys"),C1=function(e){return S1[e]||(S1[e]=q0(e))},D1={},O1=GQ.TypeError,A1=GQ.WeakMap;if(E1||M0.state){var k1=M0.state||(M0.state=new A1),_1=a0(k1.get),T1=a0(k1.has),B1=a0(k1.set);y1=function(e,t){if(T1(k1,e))throw new O1("Object already initialized");return t.facade=e,B1(k1,e,t),t},m1=function(e){return _1(k1,e)||{}},b1=function(e){return T1(k1,e)}}else{var P1=C1("state");D1[P1]=!0,y1=function(e,t){if(U0(e,P1))throw new O1("Object already initialized");return t.facade=e,v1(e,P1,t),t},m1=function(e){return U0(e,P1)?e[P1]:{}},b1=function(e){return U0(e,P1)}}var j1={set:y1,get:m1,has:b1,enforce:function(e){return b1(e)?m1(e):y1(e,{})},getterFor:function(e){return function(t){var n;if(!y0(t)||(n=m1(t)).type!==e)throw O1("Incompatible receiver, "+e+" required");return n}}},F1=Function.prototype,N1=KQ&&Object.getOwnPropertyDescriptor,L1=U0(F1,"name"),I1={EXISTS:L1,PROPER:L1&&"something"===function(){}.name,CONFIGURABLE:L1&&(!KQ||KQ&&N1(F1,"name").configurable)},R1=VQ((function(e){var t=I1.CONFIGURABLE,n=j1.get,r=j1.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;g0(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!U0(i,"name")||t&&i.name!==f)&&v1(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==GQ?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:v1(e,n,i)):c?e[n]=i:R0(n,i)})(Function.prototype,"toString",(function(){return g0(this)&&n(this).source||w1(this)}))})),M1=Math.ceil,z1=Math.floor,H1=function(e){var t=+e;return t!=t||0===t?0:(t>0?z1:M1)(t)},$1=Math.max,V1=Math.min,U1=function(e,t){var n=H1(e);return n<0?$1(n+t,0):V1(n,t)},Z1=Math.min,W1=function(e){return e>0?Z1(H1(e),9007199254740991):0},G1=function(e){return W1(e.length)},q1=function(e){return function(t,n,r){var o,i=v0(t),a=G1(i),u=U1(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},K1=(q1(!0),q1(!1)),Y1=a0([].push),X1=function(e,t){var n,r=v0(e),o=0,i=[];for(n in r)!U0(D1,n)&&U0(r,n)&&Y1(i,n);for(;t.length>o;)U0(r,n=t[o++])&&(~K1(i,n)||Y1(i,n));return i},J1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Q1=J1.concat("length","prototype"),e2={f:Object.getOwnPropertyNames||function(e){return X1(e,Q1)}},t2={f:Object.getOwnPropertySymbols},n2=a0([].concat),r2=b0("Reflect","ownKeys")||function(e){var t=e2.f(f1(e)),n=t2.f;return n?n2(t,n(e)):t},o2=function(e,t){for(var n=r2(t),r=h1.f,o=s1.f,i=0;i<n.length;i++){var a=n[i];U0(e,a)||r(e,a,o(t,a))}},i2=/#|\.prototype\./,a2=function(e,t){var n=s2[u2(e)];return n==l2||n!=c2&&(g0(t)?qQ(t):!!t)},u2=a2.normalize=function(e){return String(e).replace(i2,".").toLowerCase()},s2=a2.data={},c2=a2.NATIVE="N",l2=a2.POLYFILL="P",f2=a2,p2=s1.f,d2=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?GQ:c?GQ[u]||R0(u,{}):(GQ[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=p2(n,r))&&a.value:n[r],!f2(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;o2(i,o)}(e.sham||o&&o.sham)&&v1(i,"sham",!0),R1(n,r,i,e)}},h2={};h2[Q0("toStringTag")]="z";var v2="[object z]"===String(h2),g2=Q0("toStringTag"),y2=GQ.Object,m2="Arguments"==c0(function(){return arguments}()),b2=v2?c0:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=y2(e),g2))?n:m2?c0(t):"Object"==(r=c0(t))&&g0(t.callee)?"Arguments":r},w2=GQ.String,x2=function(e){if("Symbol"===b2(e))throw TypeError("Cannot convert a Symbol value to a string");return w2(e)},E2=/"/g,S2=a0("".replace);d2({target:"String",proto:!0,forced:qQ((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=x2(h0(this)),r="<a",(r+=' name="'+S2(x2(t),E2,""")+'"')+">"+n+"</a>";var t,n,r}});var C2,D2=function(){var e=f1(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},O2=GQ.RegExp,A2=qQ((function(){var e=O2("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),k2=A2||qQ((function(){return!O2("a","y").sticky})),_2={BROKEN_CARET:A2||qQ((function(){var e=O2("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:k2,UNSUPPORTED_Y:A2},T2=Object.keys||function(e){return X1(e,J1)},B2=KQ?Object.defineProperties:function(e,t){f1(e);for(var n,r=v0(t),o=T2(t),i=o.length,a=0;i>a;)h1.f(e,n=o[a++],r[n]);return e},P2=b0("document","documentElement"),j2=C1("IE_PROTO"),F2=function(){},N2=function(e){return"<script>"+e+"<\/script>"},L2=function(e){e.write(N2("")),e.close();var t=e.parentWindow.Object;return e=null,t},I2=function(){try{C2=new ActiveXObject("htmlfile")}catch(e){}var e,t;I2="undefined"!=typeof document?document.domain&&C2?L2(C2):((t=i1("iframe")).style.display="none",P2.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(N2("document.F=Object")),e.close(),e.F):L2(C2);for(var n=J1.length;n--;)delete I2.prototype[J1[n]];return I2()};D1[j2]=!0;var R2,M2,z2=Object.create||function(e,t){var n;return null!==e?(F2.prototype=f1(e),n=new F2,F2.prototype=null,n[j2]=e):n=I2(),void 0===t?n:B2(n,t)},H2=GQ.RegExp,$2=qQ((function(){var e=H2(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),V2=GQ.RegExp,U2=qQ((function(){var e=V2("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Z2=j1.get,W2=z0("native-string-replace",String.prototype.replace),G2=RegExp.prototype.exec,q2=G2,K2=a0("".charAt),Y2=a0("".indexOf),X2=a0("".replace),J2=a0("".slice),Q2=(M2=/b*/g,XQ(G2,R2=/a/,"a"),XQ(G2,M2,"a"),0!==R2.lastIndex||0!==M2.lastIndex),e4=_2.BROKEN_CARET,t4=void 0!==/()??/.exec("")[1];(Q2||t4||e4||$2||U2)&&(q2=function(e){var t,n,r,o,i,a,u,s=this,c=Z2(s),l=x2(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=XQ(q2,f,l),s.lastIndex=f.lastIndex,t;var p=c.groups,d=e4&&s.sticky,h=XQ(D2,s),v=s.source,g=0,y=l;if(d&&(h=X2(h,"y",""),-1===Y2(h,"g")&&(h+="g"),y=J2(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==K2(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),t4&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Q2&&(r=s.lastIndex),o=XQ(G2,d?n:s,y),d?o?(o.input=J2(o.input,g),o[0]=J2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Q2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),t4&&o&&o.length>1&&XQ(W2,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=z2(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var n4=q2;d2({target:"RegExp",proto:!0,forced:/./.exec!==n4},{exec:n4});var r4=Array.isArray||function(e){return"Array"==c0(e)},o4=function(){},i4=[],a4=b0("Reflect","construct"),u4=/^\s*(?:class|function)\b/,s4=a0(u4.exec),c4=!u4.exec(o4),l4=function(e){if(!g0(e))return!1;try{return a4(o4,i4,e),!0}catch(e){return!1}},f4=!a4||qQ((function(){var e;return l4(l4.call)||!l4(Object)||!l4((function(){e=!0}))||e}))?function(e){if(!g0(e))return!1;switch(b2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return c4||!!s4(u4,w1(e))}:l4,p4=function(e,t,n){var r=n1(t);r in e?h1.f(e,r,t0(0,n)):e[r]=n},d4=Q0("species"),h4=function(e){return O0>=51||!qQ((function(){var t=[];return(t.constructor={})[d4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},v4=a0([].slice),g4=h4("slice"),y4=Q0("species"),m4=GQ.Array,b4=Math.max;function w4(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function x4(e){var t=e.selection;if(null==t)return!1;var n=w4(Af.nodes(e,{match:function(e){return AA.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=w4(n,2)[1],o=Af.start(e,r);if(zf.equals(t.anchor,o))return!0}return!1}function E4(e,t){var n,r,o=Af.nodes(e,{at:t,match:function(e){return"table"===AA.getNodeType(e)}}),i=!1;try{for(var a=
|
|
109
|
+
/*! *****************************************************************************
|
|
110
|
+
Copyright (c) Microsoft Corporation.
|
|
111
|
+
|
|
112
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
113
|
+
purpose with or without fee is hereby granted.
|
|
114
|
+
|
|
115
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
116
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
117
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
118
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
119
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
120
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
121
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
122
|
+
***************************************************************************** */
|
|
123
|
+
function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}d2({target:"Array",proto:!0,forced:!g4},{slice:function(e,t){var n,r,o,i=v0(this),a=G1(i),u=U1(e,a),s=U1(void 0===t?a:t,a);if(r4(i)&&(n=i.constructor,(f4(n)&&(n===m4||r4(n.prototype))||y0(n)&&null===(n=n[y4]))&&(n=void 0),n===m4||void 0===n))return v4(i,u,s);for(r=new(void 0===n?m4:n)(b4(s-u,0)),o=0;u<s;u++,o++)u in i&&p4(r,o,i[u]);return r.length=o,r}});var S4=a0(a0.bind),C4=Q0("species"),D4=GQ.Array,O4=function(e,t){return new(function(e){var t;return r4(e)&&(t=e.constructor,(f4(t)&&(t===D4||r4(t.prototype))||y0(t)&&null===(t=t[C4]))&&(t=void 0)),void 0===t?D4:t}(e))(0===t?0:t)},A4=a0([].push),k4=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var p,d,h=$0(s),v=p0(h),g=function(e,t){return F0(e),void 0===t?e:S4?S4(e,t):function(){return e.apply(t,arguments)}}(c,l),y=G1(v),m=0,b=f||O4,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(d=g(p=v[m],m,h),e))if(t)w[m]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:A4(w,p)}else switch(e){case 4:return!1;case 7:A4(w,p)}return i?-1:r||o?o:w}},_4={forEach:k4(0),map:k4(1),filter:k4(2),some:k4(3),every:k4(4),find:k4(5),findIndex:k4(6),filterReject:k4(7)},T4=_4.map;d2({target:"Array",proto:!0,forced:!h4("map")},{map:function(e){return T4(this,e,arguments.length>1?arguments[1]:void 0)}});var B4=v2?{}.toString:function(){return"[object "+b2(this)+"]"};function P4(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function j4(e){return P4(e).every((function(e){return!!e.isHeader}))}v2||R1(Object.prototype,"toString",B4,{unsafe:!0});var F4=I1.PROPER,N4=RegExp.prototype,L4=N4.toString,I4=a0(D2),R4=qQ((function(){return"/a/b"!=L4.call({source:"a",flags:"b"})})),M4=F4&&"toString"!=L4.name;(R4||M4)&&R1(RegExp.prototype,"toString",(function(){var e=f1(this),t=x2(e.source),n=e.flags;return"/"+t+"/"+x2(void 0===n&&w0(N4,e)&&!("flags"in N4)?I4(e):n)}),{unsafe:!0});var z4=Q0("unscopables"),H4=Array.prototype;null==H4[z4]&&h1.f(H4,z4,{configurable:!0,value:z2(null)});var $4=_4.find,V4=!0;"find"in[]&&Array(1).find((function(){V4=!1})),d2({target:"Array",proto:!0,forced:V4},{find:function(e){return $4(this,e,arguments.length>1?arguments[1]:void 0)}}),H4[z4].find=!0;var U4=Function.prototype,Z4=U4.apply,W4=U4.bind,G4=U4.call,q4="object"==typeof Reflect&&Reflect.apply||(W4?G4.bind(Z4):function(){return G4.apply(Z4,arguments)}),K4=Q0("species"),Y4=RegExp.prototype,X4=function(e,t,n,r){var o=Q0(e),i=!qQ((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!qQ((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[K4]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=a0(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=a0(e),s=t.exec;return s===n4||s===Y4.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));R1(String.prototype,e,s[0]),R1(Y4,o,s[1])}r&&v1(Y4[o],"sham",!0)},J4=Q0("match"),Q4=GQ.TypeError,e3=Q0("species"),t3=a0("".charAt),n3=a0("".charCodeAt),r3=a0("".slice),o3=function(e){return function(t,n){var r,o,i=x2(h0(t)),a=H1(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=n3(i,a))<55296||r>56319||a+1===u||(o=n3(i,a+1))<56320||o>57343?e?t3(i,a):r:e?r3(i,a,a+2):o-56320+(r-55296<<10)+65536}},i3=(o3(!1),o3(!0)),a3=function(e,t,n){return t+(n?i3(e,t).length:1)},u3=GQ.Array,s3=Math.max,c3=function(e,t,n){for(var r=G1(e),o=U1(t,r),i=U1(void 0===n?r:n,r),a=u3(s3(i-o,0)),u=0;o<i;o++,u++)p4(a,u,e[o]);return a.length=u,a},l3=GQ.TypeError,f3=function(e,t){var n=e.exec;if(g0(n)){var r=XQ(n,e,t);return null!==r&&f1(r),r}if("RegExp"===c0(e))return XQ(n4,e,t);throw l3("RegExp#exec called on incompatible receiver")},p3=_2.UNSUPPORTED_Y,d3=Math.min,h3=[].push,v3=a0(/./.exec),g3=a0(h3),y3=a0("".slice);X4("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=x2(h0(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!y0(r=e)||!(void 0!==(o=r[J4])?o:"RegExp"==c0(r)))return XQ(t,i,e,a);for(var u,s,c,l=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,d=new RegExp(e.source,f+"g");(u=XQ(n4,d,i))&&!((s=d.lastIndex)>p&&(g3(l,y3(i,p,u.index)),u.length>1&&u.index<i.length&&q4(h3,l,c3(u,1)),c=u[0].length,p=s,l.length>=a));)d.lastIndex===u.index&&d.lastIndex++;return p===i.length?!c&&v3(d,"")||g3(l,""):g3(l,y3(i,p)),l.length>a?c3(l,0,a):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:XQ(t,this,e,n)}:t,[function(t,n){var o=h0(this),i=null==t?void 0:N0(t,e);return i?XQ(i,t,o,n):XQ(r,x2(o),t,n)},function(e,o){var i=f1(this),a=x2(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=f1(e).constructor;return void 0===r||null==(n=f1(r)[e3])?t:function(e){if(f4(e))return e;throw Q4(P0(e)+" is not a constructor")}(n)}(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(p3?"g":"y"),f=new s(p3?"^(?:"+i.source+")":i,l),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===a.length)return null===f3(f,a)?[a]:[];for(var d=0,h=0,v=[];h<a.length;){f.lastIndex=p3?0:h;var g,y=f3(f,p3?y3(a,h):a);if(null===y||(g=d3(W1(f.lastIndex+(p3?h:0)),a.length))===d)h=a3(a,h,c);else{if(g3(v,y3(a,d,h)),v.length===p)return v;for(var m=1;m<=y.length-1;m++)if(g3(v,y[m]),v.length===p)return v;h=d=g}}return g3(v,y3(a,d)),v}]}),!!qQ((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),p3);var m3="\t\n\v\f\r \u2028\u2029\ufeff",b3=a0("".replace),w3="["+m3+"]",x3=RegExp("^"+w3+w3+"*"),E3=RegExp(w3+w3+"*$"),S3=function(e){return function(t){var n=x2(h0(t));return 1&e&&(n=b3(n,x3,"")),2&e&&(n=b3(n,E3,"")),n}},C3={start:S3(1),end:S3(2),trim:S3(3)},D3=I1.PROPER,O3=C3.trim;function A3(e){return e.length?e[0].tagName.toLowerCase():""}d2({target:"String",proto:!0,forced:function(e){return qQ((function(){return!!m3[e]()||"
"!=="
"[e]()||D3&&m3[e].name!==e}))}("trim")},{trim:function(){return O3(this)}}),d2({global:!0},{globalThis:GQ}),Xd&&(Td.fn.append=Xd),Rd&&(Td.fn.on=Rd),sh&&(Td.fn.focus=sh),Fd&&(Td.fn.attr=Fd),Id&&(Td.fn.val=Id),qd&&(Td.fn.html=qd),Ld&&(Td.fn.dataset=Ld),Bd&&(Td.fn.addClass=Bd),Pd&&(Td.fn.removeClass=Pd),nh&&(Td.fn.children=nh),Wd&&(Td.fn.each=Wd),th&&(Td.fn.find=th);var k3=!1,_3=0,T3=0,B3=null,P3=null,j3=Td("body");function F3(e){k3=!1,P3=null,B3=null,j3.off("mousemove",N3),j3.off("mouseup",F3)}j3.on("mousedown",(function(e){var t=e.target;if(("TH"===t.tagName||"TD"===t.tagName)&&"col-resize"===t.style.cursor){t.style.cursor="auto",e.preventDefault(),k3=!0;var n=e.clientX;_3=n;var r=t.getBoundingClientRect().width;T3=r,j3.on("mousemove",N3),j3.on("mouseup",F3)}}));var N3=zh((function(e){if(k3&&null!=P3&&null!=B3){e.preventDefault();var t=e.clientX,n=T3+(t-_3);(n=Math.floor(100*n)/100)<30&&(n=30),vp.setNodes(P3,{width:n.toString()},{at:B3})}}),100),L3={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(Uf.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=AA.findPath(e,t),a=Af.start(e,i),u=Af.end(e,i),s=zf.compare(r,u)<=0&&zf.compare(r,a)>=0,c=zf.compare(o,u)<=0&&zf.compare(o,a)>=0;return!!(s&&c&&Lf.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o,a=bv("div",{className:"table-container","data-selected":AA.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=AA.findPath(n,e),o=Af.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},bv("table",{width:i,contentEditable:r},bv("colgroup",null,P4(e).map((function(e){var t=e.width;return bv("col",{width:void 0===t?"auto":t})}))),bv("tbody",null,t)));return a}},I3={type:"table-row",renderElem:function(e,t,n){return bv("tr",null,t)}},R3={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=AA.getParentNode(e,t);if(null==n)return!1;var r=AA.getParentNode(e,n);return null!=r&&P4(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,c=o.isHeader,l=void 0!==c&&c;if(!r)return bv("td",{colSpan:a,rowSpan:s},t);var f=bv(l?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:zh((function(t){var r=this.elm;if(null!=r){var o=r.getBoundingClientRect(),i=o.left,a=o.width,u=o.top,s=o.height,c=t.clientX,l=t.clientY;k3||(c>i+a-5&&c<i+a&&l>u&&l<u+s?(r.style.cursor="col-resize",P3=n,B3=AA.findPath(n,e)):k3||(r.style.cursor="auto",P3=null,B3=null))}}),100)}},t);return f}},M3={selector:"table",preParseHtml:function(e){var t=Td(e);if("table"!==A3(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},z3=_4.filter;d2({target:"Array",proto:!0,forced:!h4("filter")},{filter:function(e){return z3(this,e,arguments.length>1?arguments[1]:void 0)}});var H3=Math.floor,$3=a0("".charAt),V3=a0("".replace),U3=a0("".slice),Z3=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,W3=/\$([$&'`]|\d{1,2})/g,G3=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=W3;return void 0!==o&&(o=$0(o),s=Z3),V3(i,s,(function(i,s){var c;switch($3(s,0)){case"$":return"$";case"&":return e;case"`":return U3(t,0,n);case"'":return U3(t,a);case"<":c=o[U3(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=H3(l/10);return 0===f?i:f<=u?void 0===r[f-1]?$3(s,1):r[f-1]+$3(s,1):i}c=r[l-1]}return void 0===c?"":c}))},q3=Q0("replace"),K3=Math.max,Y3=Math.min,X3=a0([].concat),J3=a0([].push),Q3=a0("".indexOf),e6=a0("".slice),t6="$0"==="a".replace(/./,"$0"),n6=!!/./[q3]&&""===/./[q3]("a","$0");X4("replace",(function(e,t,n){var r=n6?"$":"$0";return[function(e,n){var r=h0(this),o=null==e?void 0:N0(e,q3);return o?XQ(o,e,r,n):XQ(t,x2(r),e,n)},function(e,o){var i=f1(this),a=x2(e);if("string"==typeof o&&-1===Q3(o,r)&&-1===Q3(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=g0(o);s||(o=x2(o));var c=i.global;if(c){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var p=f3(i,a);if(null===p)break;if(J3(f,p),!c)break;""===x2(p[0])&&(i.lastIndex=a3(a,W1(i.lastIndex),l))}for(var d,h="",v=0,g=0;g<f.length;g++){for(var y=x2((p=f[g])[0]),m=K3(Y3(H1(p.index),a.length),0),b=[],w=1;w<p.length;w++)J3(b,void 0===(d=p[w])?d:String(d));var x=p.groups;if(s){var E=X3([y],b,m,a);void 0!==x&&J3(E,x);var S=x2(q4(o,void 0,E))}else S=G3(y,a,m,b,x,o);m>=v&&(h+=e6(a,v,m)+S,v=m+y.length)}return h+e6(a,v)}]}),!!qQ((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!t6||n6);var r6={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Td(e);0===(t=t.filter((function(e){return!!Xf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===A3(r),colSpan:o,rowSpan:i,width:a,children:t}}},o6={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===AA.getNodeType(e)}))}}},i6={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Td(e),o="auto";return"100%"===function(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");"width"===u[0].trim()&&(n=u[1].trim())}}return n}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===AA.getNodeType(e)}))}}},a6=function(){function e(){this.title=dj("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Uf.isCollapsed(t)||!!AA.getSelectedElems(e).some((function(t){var n=AA.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=Td('<div class="w-e-panel-content-table"></div>'),r=Td("<span>0 × 0</span>"),o=Td("<table></table>"),i=0;i<10;i++){for(var a=Td("<tr></tr>"),u=0;u<10;u++){var s=Td("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",i.toString()),a.append(s),s.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=Td(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(e){Td(e).children().each((function(e){var t=Td(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),s.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=Td(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){AA.isSelectedEmptyParagraph(e)&&vp.removeNodes(e,{mode:"highest"});var i=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);vp.insertNodes(e,i,{mode:"highest"})}},e}(),u6=function(){function e(){this.title=dj("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==AA.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||vp.removeNodes(e,{mode:"highest"})},e}(),s6=function(){function e(){this.title=dj("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Uf.isCollapsed(t)||null==AA.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=w4(Af.nodes(e,{match:function(e){return AA.checkNodeType(e,"table-cell")},universal:!0}),1),r=w4(n[0],2),o=r[0],i=r[1],a=AA.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var s={type:"table-row",children:[]},c=0;c<u;c++)s.children.push({type:"table-cell",children:[{text:""}]});var l=Lf.parent(i),f=Lf.next(l);vp.insertNodes(e,s,{at:f})}}},e}(),c6=function(){function e(){this.title=dj("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Uf.isCollapsed(t)||null==AA.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=w4(Af.nodes(e,{match:function(e){return AA.checkNodeType(e,"table-row")},universal:!0}),1),r=w4(n[0],2),o=r[0],i=r[1],a=AA.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?vp.removeNodes(e,{mode:"highest"}):vp.removeNodes(e,{at:i})}},e}(),l6={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},f6=i1("span").classList,p6=f6&&f6.constructor&&f6.constructor.prototype,d6=p6===Object.prototype?void 0:p6,h6=_4.forEach,v6=function(e,t){var n=[].forEach;return!!n&&qQ((function(){n.call(null,(function(){throw 1}),1)}))}(),g6=v6?[].forEach:function(e){return h6(this,e,arguments.length>1?arguments[1]:void 0)},y6=function(e){if(e&&e.forEach!==g6)try{v1(e,"forEach",g6)}catch(t){e.forEach=g6}};for(var m6 in l6)l6[m6]&&y6(GQ[m6]&&GQ[m6].prototype);y6(d6);var b6=function(){function e(){this.title=dj("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Uf.isCollapsed(t)||null==AA.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=w4(Af.nodes(e,{match:function(e){return AA.checkNodeType(e,"table-cell")},universal:!0}),1),r=w4(n[0],2),o=r[0],i=r[1],a=AA.getParentNode(e,o);if(null!=a){var u=AA.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){xf.isElement(t)&&(t.children||[]).forEach((function(t){var r=AA.findPath(e,t);if(r.length===i.length&&HQ(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&j4(u)&&(o.isHeader=!0),vp.insertNodes(e,o,{at:r})}}))}))}}},e}(),w6=function(){function e(){this.title=dj("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Uf.isCollapsed(t)||null==AA.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=w4(Af.nodes(e,{match:function(e){return AA.checkNodeType(e,"table-cell")},universal:!0}),1),r=w4(n[0],2),o=r[0],i=r[1],a=AA.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)vp.removeNodes(e,{mode:"highest"});else{var s=AA.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){xf.isElement(t)&&(t.children||[]).forEach((function(t){var n=AA.findPath(e,t);n.length===i.length&&HQ(n.slice(-1),i.slice(-1))&&vp.removeNodes(e,{at:n})}))}))}}},e}(),x6=function(){function e(){this.title=dj("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=AA.getSelectedNodeByType(e,"table");return null!=t&&j4(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Uf.isCollapsed(t)||null==AA.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=AA.getSelectedNodeByType(e,"table");null!=r&&P4(r).forEach((function(t){return vp.setNodes(e,{isHeader:n},{at:AA.findPath(e,t)})}))}},e}(),E6=function(){function e(){this.title=dj("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=AA.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Uf.isCollapsed(t)||null==AA.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};vp.setNodes(e,n,{mode:"highest"})}},e}(),S6={renderElems:[L3,I3,R3],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,c=n.width,l=s?"th":"td";return"<"+l+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===c?"auto":c)+'">'+t+"</"+l+">"}}],preParseHtml:[M3],parseElemsHtml:[r6,o6,i6],menus:[{key:"insertTable",factory:function(){return new a6}},{key:"deleteTable",factory:function(){return new u6}},{key:"insertTableRow",factory:function(){return new s6}},{key:"deleteTableRow",factory:function(){return new c6}},{key:"insertTableCol",factory:function(){return new b6}},{key:"deleteTableCol",factory:function(){return new w6}},{key:"tableHeader",factory:function(){return new x6}},{key:"tableFullWidth",factory:function(){return new E6}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){null==AA.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!x4(s)){var t=s.selection;if(t){var r=Af.before(s,t);if(r){var o=E4(s,r),i=E4(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(AA.getSelectedNodeByType(s,"table")){var n=Af.above(e);AA.checkNodeType(n[0],"table-cell")&&vp.select(e,n[1]);var r=Af.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Af.above(e,{at:r[1]}))&&void 0!==t?t:r),vp.select(e,r[1]);else{var o=s.children||[],i=o.length;if(AA.checkNodeType(o[i-1],"table")){var u=AA.genEmptyParagraph();vp.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){x4(s)||r(e)},s.normalizeNode=function(e){var t=w4(e,2),n=t[0],r=t[1];if("table"!==AA.getNodeType(n))return o([n,r]);if(AA.isLastNode(s,n)){var i=AA.genEmptyParagraph();vp.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=AA.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):Af.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=AA.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Lf.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Pf.string(t).length){var o=AA.findPath(s,t),i={anchor:Af.start(s,o),focus:Af.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};pj("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),pj("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
|
|
124
|
+
/*! *****************************************************************************
|
|
125
|
+
Copyright (c) Microsoft Corporation.
|
|
126
|
+
|
|
127
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
128
|
+
purpose with or without fee is hereby granted.
|
|
129
|
+
|
|
130
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
131
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
132
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
133
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
134
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
135
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
136
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
137
|
+
***************************************************************************** */
|
|
138
|
+
var C6=function(){return C6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C6.apply(this,arguments)};function D6(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function O6(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function A6(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var k6="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function _6(e){var t={exports:{}};return e(t,t.exports),t.exports}var T6,B6,P6=function(e){return e&&e.Math==Math&&e},j6=P6("object"==typeof globalThis&&globalThis)||P6("object"==typeof window&&window)||P6("object"==typeof self&&self)||P6("object"==typeof k6&&k6)||function(){return this}()||Function("return this")(),F6=function(e){try{return!!e()}catch(e){return!0}},N6=!F6((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),L6=Function.prototype.call,I6=L6.bind?L6.bind(L6):function(){return L6.apply(L6,arguments)},R6={}.propertyIsEnumerable,M6=Object.getOwnPropertyDescriptor,z6={f:M6&&!R6.call({1:2},1)?function(e){var t=M6(this,e);return!!t&&t.enumerable}:R6},H6=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$6=Function.prototype,V6=$6.bind,U6=$6.call,Z6=V6&&V6.bind(U6),W6=V6?function(e){return e&&Z6(U6,e)}:function(e){return e&&function(){return U6.apply(e,arguments)}},G6=W6({}.toString),q6=W6("".slice),K6=function(e){return q6(G6(e),8,-1)},Y6=j6.Object,X6=W6("".split),J6=F6((function(){return!Y6("z").propertyIsEnumerable(0)}))?function(e){return"String"==K6(e)?X6(e,""):Y6(e)}:Y6,Q6=j6.TypeError,e5=function(e){if(null==e)throw Q6("Can't call method on "+e);return e},t5=function(e){return J6(e5(e))},n5=function(e){return"function"==typeof e},r5=function(e){return"object"==typeof e?null!==e:n5(e)},o5=function(e){return n5(e)?e:void 0},i5=function(e,t){return arguments.length<2?o5(j6[e]):j6[e]&&j6[e][t]},a5=W6({}.isPrototypeOf),u5=i5("navigator","userAgent")||"",s5=j6.process,c5=j6.Deno,l5=s5&&s5.versions||c5&&c5.version,f5=l5&&l5.v8;f5&&(B6=(T6=f5.split("."))[0]>0&&T6[0]<4?1:+(T6[0]+T6[1])),!B6&&u5&&(!(T6=u5.match(/Edge\/(\d+)/))||T6[1]>=74)&&(T6=u5.match(/Chrome\/(\d+)/))&&(B6=+T6[1]);var p5=B6,d5=!!Object.getOwnPropertySymbols&&!F6((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&p5&&p5<41})),h5=d5&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,v5=j6.Object,g5=h5?function(e){return"symbol"==typeof e}:function(e){var t=i5("Symbol");return n5(t)&&a5(t.prototype,v5(e))},y5=j6.String,m5=function(e){try{return y5(e)}catch(e){return"Object"}},b5=j6.TypeError,w5=function(e){if(n5(e))return e;throw b5(m5(e)+" is not a function")},x5=function(e,t){var n=e[t];return null==n?void 0:w5(n)},E5=j6.TypeError,S5=Object.defineProperty,C5=function(e,t){try{S5(j6,e,{value:t,configurable:!0,writable:!0})}catch(n){j6[e]=t}return t},D5=j6["__core-js_shared__"]||C5("__core-js_shared__",{}),O5=_6((function(e){(e.exports=function(e,t){return D5[e]||(D5[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),A5=j6.Object,k5=function(e){return A5(e5(e))},_5=W6({}.hasOwnProperty),T5=Object.hasOwn||function(e,t){return _5(k5(e),t)},B5=0,P5=Math.random(),j5=W6(1..toString),F5=function(e){return"Symbol("+(void 0===e?"":e)+")_"+j5(++B5+P5,36)},N5=O5("wks"),L5=j6.Symbol,I5=L5&&L5.for,R5=h5?L5:L5&&L5.withoutSetter||F5,M5=function(e){if(!T5(N5,e)||!d5&&"string"!=typeof N5[e]){var t="Symbol."+e;d5&&T5(L5,e)?N5[e]=L5[e]:N5[e]=h5&&I5?I5(t):R5(t)}return N5[e]},z5=j6.TypeError,H5=M5("toPrimitive"),$5=function(e){var t=function(e,t){if(!r5(e)||g5(e))return e;var n,r=x5(e,H5);if(r){if(void 0===t&&(t="default"),n=I6(r,e,t),!r5(n)||g5(n))return n;throw z5("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&n5(n=e.toString)&&!r5(r=I6(n,e)))return r;if(n5(n=e.valueOf)&&!r5(r=I6(n,e)))return r;if("string"!==t&&n5(n=e.toString)&&!r5(r=I6(n,e)))return r;throw E5("Can't convert object to primitive value")}(e,t)}(e,"string");return g5(t)?t:t+""},V5=j6.document,U5=r5(V5)&&r5(V5.createElement),Z5=function(e){return U5?V5.createElement(e):{}},W5=!N6&&!F6((function(){return 7!=Object.defineProperty(Z5("div"),"a",{get:function(){return 7}}).a})),G5=Object.getOwnPropertyDescriptor,q5={f:N6?G5:function(e,t){if(e=t5(e),t=$5(t),W5)try{return G5(e,t)}catch(e){}if(T5(e,t))return H6(!I6(z6.f,e,t),e[t])}},K5=j6.String,Y5=j6.TypeError,X5=function(e){if(r5(e))return e;throw Y5(K5(e)+" is not an object")},J5=j6.TypeError,Q5=Object.defineProperty,e8={f:N6?Q5:function(e,t,n){if(X5(e),t=$5(t),X5(n),W5)try{return Q5(e,t,n)}catch(e){}if("get"in n||"set"in n)throw J5("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},t8=N6?function(e,t,n){return e8.f(e,t,H6(1,n))}:function(e,t,n){return e[t]=n,e},n8=W6(Function.toString);n5(D5.inspectSource)||(D5.inspectSource=function(e){return n8(e)});var r8,o8,i8,a8=D5.inspectSource,u8=j6.WeakMap,s8=n5(u8)&&/native code/.test(a8(u8)),c8=O5("keys"),l8=function(e){return c8[e]||(c8[e]=F5(e))},f8={},p8=j6.TypeError,d8=j6.WeakMap;if(s8||D5.state){var h8=D5.state||(D5.state=new d8),v8=W6(h8.get),g8=W6(h8.has),y8=W6(h8.set);r8=function(e,t){if(g8(h8,e))throw new p8("Object already initialized");return t.facade=e,y8(h8,e,t),t},o8=function(e){return v8(h8,e)||{}},i8=function(e){return g8(h8,e)}}else{var m8=l8("state");f8[m8]=!0,r8=function(e,t){if(T5(e,m8))throw new p8("Object already initialized");return t.facade=e,t8(e,m8,t),t},o8=function(e){return T5(e,m8)?e[m8]:{}},i8=function(e){return T5(e,m8)}}var b8={set:r8,get:o8,has:i8,enforce:function(e){return i8(e)?o8(e):r8(e,{})},getterFor:function(e){return function(t){var n;if(!r5(t)||(n=o8(t)).type!==e)throw p8("Incompatible receiver, "+e+" required");return n}}},w8=Function.prototype,x8=N6&&Object.getOwnPropertyDescriptor,E8=T5(w8,"name"),S8={EXISTS:E8,PROPER:E8&&"something"===function(){}.name,CONFIGURABLE:E8&&(!N6||N6&&x8(w8,"name").configurable)},C8=_6((function(e){var t=S8.CONFIGURABLE,n=b8.get,r=b8.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;n5(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!T5(i,"name")||t&&i.name!==f)&&t8(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==j6?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:t8(e,n,i)):c?e[n]=i:C5(n,i)})(Function.prototype,"toString",(function(){return n5(this)&&n(this).source||a8(this)}))})),D8=Math.ceil,O8=Math.floor,A8=function(e){var t=+e;return t!=t||0===t?0:(t>0?O8:D8)(t)},k8=Math.max,_8=Math.min,T8=function(e,t){var n=A8(e);return n<0?k8(n+t,0):_8(n,t)},B8=Math.min,P8=function(e){return e>0?B8(A8(e),9007199254740991):0},j8=function(e){return P8(e.length)},F8=function(e){return function(t,n,r){var o,i=t5(t),a=j8(i),u=T8(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},N8={includes:F8(!0),indexOf:F8(!1)},L8=N8.indexOf,I8=W6([].push),R8=function(e,t){var n,r=t5(e),o=0,i=[];for(n in r)!T5(f8,n)&&T5(r,n)&&I8(i,n);for(;t.length>o;)T5(r,n=t[o++])&&(~L8(i,n)||I8(i,n));return i},M8=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],z8=M8.concat("length","prototype"),H8={f:Object.getOwnPropertyNames||function(e){return R8(e,z8)}},$8={f:Object.getOwnPropertySymbols},V8=W6([].concat),U8=i5("Reflect","ownKeys")||function(e){var t=H8.f(X5(e)),n=$8.f;return n?V8(t,n(e)):t},Z8=function(e,t){for(var n=U8(t),r=e8.f,o=q5.f,i=0;i<n.length;i++){var a=n[i];T5(e,a)||r(e,a,o(t,a))}},W8=/#|\.prototype\./,G8=function(e,t){var n=K8[q8(e)];return n==X8||n!=Y8&&(n5(t)?F6(t):!!t)},q8=G8.normalize=function(e){return String(e).replace(W8,".").toLowerCase()},K8=G8.data={},Y8=G8.NATIVE="N",X8=G8.POLYFILL="P",J8=G8,Q8=q5.f,e9=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?j6:c?j6[u]||C5(u,{}):(j6[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Q8(n,r))&&a.value:n[r],!J8(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Z8(i,o)}(e.sham||o&&o.sham)&&t8(i,"sham",!0),C8(n,r,i,e)}},t9={};t9[M5("toStringTag")]="z";var n9="[object z]"===String(t9),r9=M5("toStringTag"),o9=j6.Object,i9="Arguments"==K6(function(){return arguments}()),a9=n9?K6:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=o9(e),r9))?n:i9?K6(t):"Object"==(r=K6(t))&&n5(t.callee)?"Arguments":r},u9=j6.String,s9=function(e){if("Symbol"===a9(e))throw TypeError("Cannot convert a Symbol value to a string");return u9(e)},c9="\t\n\v\f\r \u2028\u2029\ufeff",l9=W6("".replace),f9="["+c9+"]",p9=RegExp("^"+f9+f9+"*"),d9=RegExp(f9+f9+"*$"),h9=function(e){return function(t){var n=s9(e5(t));return 1&e&&(n=l9(n,p9,"")),2&e&&(n=l9(n,d9,"")),n}},v9={start:h9(1),end:h9(2),trim:h9(3)},g9=S8.PROPER,y9=v9.trim;function m9(e){return e.length?e[0].tagName.toLowerCase():""}function b9(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=Td(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}e9({target:"String",proto:!0,forced:F6((function(){return!!c9.trim()||"
"!=="
".trim()||g9&&"trim"!==c9.trim.name}))},{trim:function(){return y9(this)}}),e9({global:!0},{globalThis:j6}),Xd&&(Td.fn.append=Xd),Rd&&(Td.fn.on=Rd),sh&&(Td.fn.focus=sh),Fd&&(Td.fn.attr=Fd),Id&&(Td.fn.val=Id),qd&&(Td.fn.html=qd),Qd&&(Td.fn.parent=Qd),jd&&(Td.fn.hasClass=jd),oh&&(Td.fn.empty=oh);var w9,x9={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,c=o.width,l=void 0===c?"auto":c,f=o.height,p=void 0===f?"auto":f,d=AA.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=bv("div",{className:"w-e-textarea-video-container","data-selected":d?"true":"",innerHTML:b9(a,l,p)});else{var h=bv("video",{poster:s,controls:!0},bv("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==l&&(h.data.width=l),"auto"!==p&&(h.data.height=p),r=bv("div",{className:"w-e-textarea-video-container","data-selected":d?"true":""},h)}return Qh("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},E9={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,c=n.height,l=void 0===c?"auto":c,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=b9(o,s,l):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+l+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},S9=Object.keys||function(e){return R8(e,M8)},C9=N6?Object.defineProperties:function(e,t){X5(e);for(var n,r=t5(t),o=S9(t),i=o.length,a=0;i>a;)e8.f(e,n=o[a++],r[n]);return e},D9=i5("document","documentElement"),O9=l8("IE_PROTO"),A9=function(){},k9=function(e){return"<script>"+e+"<\/script>"},_9=function(e){e.write(k9("")),e.close();var t=e.parentWindow.Object;return e=null,t},T9=function(){try{w9=new ActiveXObject("htmlfile")}catch(e){}var e,t;T9="undefined"!=typeof document?document.domain&&w9?_9(w9):((t=Z5("iframe")).style.display="none",D9.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(k9("document.F=Object")),e.close(),e.F):_9(w9);for(var n=M8.length;n--;)delete T9.prototype[M8[n]];return T9()};f8[O9]=!0;var B9=Object.create||function(e,t){var n;return null!==e?(A9.prototype=X5(e),n=new A9,A9.prototype=null,n[O9]=e):n=T9(),void 0===t?n:C9(n,t)},P9=M5("unscopables"),j9=Array.prototype;null==j9[P9]&&e8.f(j9,P9,{configurable:!0,value:B9(null)});var F9=function(e){j9[P9][e]=!0},N9=N8.includes;e9({target:"Array",proto:!0},{includes:function(e){return N9(this,e,arguments.length>1?arguments[1]:void 0)}}),F9("includes");var L9={selector:"iframe,video,p",preParseHtml:function(e){var t=Td(e),n=t;if("p"===m9(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Td(o))}}var a=m9(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=Td('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},I9=W6(W6.bind),R9=function(e,t){return w5(e),void 0===t?e:I9?I9(e,t):function(){return e.apply(t,arguments)}},M9=Array.isArray||function(e){return"Array"==K6(e)},z9=function(){},H9=[],$9=i5("Reflect","construct"),V9=/^\s*(?:class|function)\b/,U9=W6(V9.exec),Z9=!V9.exec(z9),W9=function(e){if(!n5(e))return!1;try{return $9(z9,H9,e),!0}catch(e){return!1}},G9=!$9||F6((function(){var e;return W9(W9.call)||!W9(Object)||!W9((function(){e=!0}))||e}))?function(e){if(!n5(e))return!1;switch(a9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Z9||!!U9(V9,a8(e))}:W9,q9=M5("species"),K9=j6.Array,Y9=function(e,t){return new(function(e){var t;return M9(e)&&(t=e.constructor,(G9(t)&&(t===K9||M9(t.prototype))||r5(t)&&null===(t=t[q9]))&&(t=void 0)),void 0===t?K9:t}(e))(0===t?0:t)},X9=W6([].push),J9=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var p,d,h=k5(s),v=J6(h),g=R9(c,l),y=j8(v),m=0,b=f||Y9,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(d=g(p=v[m],m,h),e))if(t)w[m]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:X9(w,p)}else switch(e){case 4:return!1;case 7:X9(w,p)}return i?-1:r||o?o:w}},Q9={forEach:J9(0),map:J9(1),filter:J9(2),some:J9(3),every:J9(4),find:J9(5),findIndex:J9(6),filterReject:J9(7)},e7=Q9.find,t7=!0;"find"in[]&&Array(1).find((function(){t7=!1})),e9({target:"Array",proto:!0,forced:t7},{find:function(e){return e7(this,e,arguments.length>1?arguments[1]:void 0)}}),F9("find");var n7=n9?{}.toString:function(){return"[object "+a9(this)+"]"};function r7(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}n9||C8(Object.prototype,"toString",n7,{unsafe:!0});var o7,i7,a7={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Td(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",r7(o=s[0].outerHTML,i,a,u);var c=r.find("video");return(o=c.attr("src")||"")||c.length>0&&(o=c.find("source").attr("src")||""),a=c.attr("width")||"auto",u=c.attr("height")||"auto",r7(o,i=c.attr("poster")||"",a,u)}},u7=function(){var e=X5(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},s7=j6.RegExp,c7=F6((function(){var e=s7("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),l7=c7||F6((function(){return!s7("a","y").sticky})),f7={BROKEN_CARET:c7||F6((function(){var e=s7("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:l7,UNSUPPORTED_Y:c7},p7=j6.RegExp,d7=F6((function(){var e=p7(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),h7=j6.RegExp,v7=F6((function(){var e=h7("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),g7=b8.get,y7=O5("native-string-replace",String.prototype.replace),m7=RegExp.prototype.exec,b7=m7,w7=W6("".charAt),x7=W6("".indexOf),E7=W6("".replace),S7=W6("".slice),C7=(i7=/b*/g,I6(m7,o7=/a/,"a"),I6(m7,i7,"a"),0!==o7.lastIndex||0!==i7.lastIndex),D7=f7.BROKEN_CARET,O7=void 0!==/()??/.exec("")[1];(C7||O7||D7||d7||v7)&&(b7=function(e){var t,n,r,o,i,a,u,s=this,c=g7(s),l=s9(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=I6(b7,f,l),s.lastIndex=f.lastIndex,t;var p=c.groups,d=D7&&s.sticky,h=I6(u7,s),v=s.source,g=0,y=l;if(d&&(h=E7(h,"y",""),-1===x7(h,"g")&&(h+="g"),y=S7(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==w7(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),O7&&(n=new RegExp("^"+v+"$(?!\\s)",h)),C7&&(r=s.lastIndex),o=I6(m7,d?n:s,y),d?o?(o.input=S7(o.input,g),o[0]=S7(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:C7&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),O7&&o&&o.length>1&&I6(y7,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=B9(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var A7=b7;e9({target:"RegExp",proto:!0,forced:/./.exec!==A7},{exec:A7});var k7=Function.prototype,_7=k7.apply,T7=k7.bind,B7=k7.call,P7="object"==typeof Reflect&&Reflect.apply||(T7?B7.bind(_7):function(){return B7.apply(_7,arguments)}),j7=(M5("species"),RegExp.prototype),F7=W6("".charAt),N7=W6("".charCodeAt),L7=W6("".slice),I7=function(e){return function(t,n){var r,o,i=s9(e5(t)),a=A8(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=N7(i,a))<55296||r>56319||a+1===u||(o=N7(i,a+1))<56320||o>57343?e?F7(i,a):r:e?L7(i,a,a+2):o-56320+(r-55296<<10)+65536}},R7={codeAt:I7(!1),charAt:I7(!0)},M7=R7.charAt,z7=function(e,t,n){return t+(n?M7(e,t).length:1)},H7=Math.floor,$7=W6("".charAt),V7=W6("".replace),U7=W6("".slice),Z7=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,W7=/\$([$&'`]|\d{1,2})/g,G7=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=W7;return void 0!==o&&(o=k5(o),s=Z7),V7(i,s,(function(i,s){var c;switch($7(s,0)){case"$":return"$";case"&":return e;case"`":return U7(t,0,n);case"'":return U7(t,a);case"<":c=o[U7(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=H7(l/10);return 0===f?i:f<=u?void 0===r[f-1]?$7(s,1):r[f-1]+$7(s,1):i}c=r[l-1]}return void 0===c?"":c}))},q7=j6.TypeError,K7=function(e,t){var n=e.exec;if(n5(n)){var r=I6(n,e,t);return null!==r&&X5(r),r}if("RegExp"===K6(e))return I6(A7,e,t);throw q7("RegExp#exec called on incompatible receiver")},Y7=M5("replace"),X7=Math.max,J7=Math.min,Q7=W6([].concat),eee=W6([].push),tee=W6("".indexOf),nee=W6("".slice),ree="$0"==="a".replace(/./,"$0"),oee=!!/./[Y7]&&""===/./[Y7]("a","$0");function iee(e){return void 0===e&&(e="r"),e+"-"+Dh()}!function(e,t,n,r){var o=M5(e),i=!F6((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!F6((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=W6(/./[o]),s=function(e,t,n){var r=oee?"$":"$0";return[function(e,n){var r=e5(this),o=null==e?void 0:x5(e,Y7);return o?I6(o,e,r,n):I6(t,s9(r),e,n)},function(e,o){var i=X5(this),a=s9(e);if("string"==typeof o&&-1===tee(o,r)&&-1===tee(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=n5(o);s||(o=s9(o));var c=i.global;if(c){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var p=K7(i,a);if(null===p)break;if(eee(f,p),!c)break;""===s9(p[0])&&(i.lastIndex=z7(a,P8(i.lastIndex),l))}for(var d,h="",v=0,g=0;g<f.length;g++){for(var y=s9((p=f[g])[0]),m=X7(J7(A8(p.index),a.length),0),b=[],w=1;w<p.length;w++)eee(b,void 0===(d=p[w])?d:String(d));var x=p.groups;if(s){var E=Q7([y],b,m,a);void 0!==x&&eee(E,x);var S=s9(P7(o,void 0,E))}else S=G7(y,a,m,b,x,o);m>=v&&(h+=nee(a,v,m)+S,v=m+y.length)}return h+nee(a,v)}]}(0,""[e],(function(e,t,n,r,o){var a=W6(e),s=t.exec;return s===A7||s===j7.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));C8(String.prototype,e,s[0]),C8(j7,o,s[1])}}("replace",0,!!F6((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!ree||oee);var aee=j6.Promise,uee=function(e,t,n){for(var r in t)C8(e,r,t[r],n);return e},see=j6.String,cee=j6.TypeError,lee=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=W6(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return X5(n),function(e){if("object"==typeof e||n5(e))return e;throw cee("Can't set "+see(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),fee=e8.f,pee=M5("toStringTag"),dee=function(e,t,n){e&&!T5(e=n?e:e.prototype,pee)&&fee(e,pee,{configurable:!0,value:t})},hee=M5("species"),vee=j6.TypeError,gee=function(e,t){if(a5(t,e))return e;throw vee("Incorrect invocation")},yee={},mee=M5("iterator"),bee=Array.prototype,wee=M5("iterator"),xee=function(e){if(null!=e)return x5(e,wee)||x5(e,"@@iterator")||yee[a9(e)]},Eee=j6.TypeError,See=function(e,t,n){var r,o;X5(e);try{if(!(r=x5(e,"return"))){if("throw"===t)throw n;return n}r=I6(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return X5(r),n},Cee=j6.TypeError,Dee=function(e,t){this.stopped=e,this.result=t},Oee=Dee.prototype,Aee=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=R9(t,f),g=function(e){return r&&See(r,"normal",e),new Dee(!0,e)},y=function(e){return p?(X5(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(d)r=e;else{if(!(o=xee(e)))throw Cee(m5(e)+" is not iterable");if(void 0!==(l=o)&&(yee.Array===l||bee[mee]===l)){for(i=0,a=j8(e);a>i;i++)if((u=y(e[i]))&&a5(Oee,u))return u;return new Dee(!1)}r=function(e,t){var n=arguments.length<2?xee(e):t;if(w5(n))return X5(I6(n,e));throw Eee(m5(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=I6(s,r)).done;){try{u=y(c.value)}catch(e){See(r,"throw",e)}if("object"==typeof u&&u&&a5(Oee,u))return u}return new Dee(!1)},kee=M5("iterator"),_ee=!1;try{var Tee=0,Bee={next:function(){return{done:!!Tee++}},return:function(){_ee=!0}};Bee[kee]=function(){return this},Array.from(Bee,(function(){throw 2}))}catch(Mc){}var Pee,jee,Fee,Nee,Lee=function(e,t){if(!t&&!_ee)return!1;var n=!1;try{var r={};r[kee]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Iee=j6.TypeError,Ree=M5("species"),Mee=W6([].slice),zee=/(?:ipad|iphone|ipod).*applewebkit/i.test(u5),Hee="process"==K6(j6.process),$ee=j6.setImmediate,Vee=j6.clearImmediate,Uee=j6.process,Zee=j6.Dispatch,Wee=j6.Function,Gee=j6.MessageChannel,qee=j6.String,Kee=0,Yee={};try{Pee=j6.location}catch(Mc){}var Xee=function(e){if(T5(Yee,e)){var t=Yee[e];delete Yee[e],t()}},Jee=function(e){return function(){Xee(e)}},Qee=function(e){Xee(e.data)},ete=function(e){j6.postMessage(qee(e),Pee.protocol+"//"+Pee.host)};$ee&&Vee||($ee=function(e){var t=Mee(arguments,1);return Yee[++Kee]=function(){P7(n5(e)?e:Wee(e),void 0,t)},jee(Kee),Kee},Vee=function(e){delete Yee[e]},Hee?jee=function(e){Uee.nextTick(Jee(e))}:Zee&&Zee.now?jee=function(e){Zee.now(Jee(e))}:Gee&&!zee?(Nee=(Fee=new Gee).port2,Fee.port1.onmessage=Qee,jee=R9(Nee.postMessage,Nee)):j6.addEventListener&&n5(j6.postMessage)&&!j6.importScripts&&Pee&&"file:"!==Pee.protocol&&!F6(ete)?(jee=ete,j6.addEventListener("message",Qee,!1)):jee="onreadystatechange"in Z5("script")?function(e){D9.appendChild(Z5("script")).onreadystatechange=function(){D9.removeChild(this),Xee(e)}}:function(e){setTimeout(Jee(e),0)});var tte,nte,rte,ote,ite,ate,ute,ste,cte={set:$ee,clear:Vee},lte=/ipad|iphone|ipod/i.test(u5)&&void 0!==j6.Pebble,fte=/web0s(?!.*chrome)/i.test(u5),pte=q5.f,dte=cte.set,hte=j6.MutationObserver||j6.WebKitMutationObserver,vte=j6.document,gte=j6.process,yte=j6.Promise,mte=pte(j6,"queueMicrotask"),bte=mte&&mte.value;bte||(tte=function(){var e,t;for(Hee&&(e=gte.domain)&&e.exit();nte;){t=nte.fn,nte=nte.next;try{t()}catch(e){throw nte?ote():rte=void 0,e}}rte=void 0,e&&e.enter()},zee||Hee||fte||!hte||!vte?!lte&&yte&&yte.resolve?((ute=yte.resolve(void 0)).constructor=yte,ste=R9(ute.then,ute),ote=function(){ste(tte)}):Hee?ote=function(){gte.nextTick(tte)}:(dte=R9(dte,j6),ote=function(){dte(tte)}):(ite=!0,ate=vte.createTextNode(""),new hte(tte).observe(ate,{characterData:!0}),ote=function(){ate.data=ite=!ite}));var wte,xte,Ete,Ste,Cte=bte||function(e){var t={fn:e,next:void 0};rte&&(rte.next=t),nte||(nte=t,ote()),rte=t},Dte=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=w5(t),this.reject=w5(n)},Ote={f:function(e){return new Dte(e)}},Ate=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},kte="object"==typeof window,_te=cte.set,Tte=M5("species"),Bte="Promise",Pte=b8.getterFor(Bte),jte=b8.set,Fte=b8.getterFor(Bte),Nte=aee&&aee.prototype,Lte=aee,Ite=Nte,Rte=j6.TypeError,Mte=j6.document,zte=j6.process,Hte=Ote.f,$te=Hte,Vte=!!(Mte&&Mte.createEvent&&j6.dispatchEvent),Ute=n5(j6.PromiseRejectionEvent),Zte=!1,Wte=J8(Bte,(function(){var e=a8(Lte),t=e!==String(Lte);if(!t&&66===p5)return!0;if(p5>=51&&/native code/.test(e))return!1;var n=new Lte((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Tte]=r,!(Zte=n.then((function(){}))instanceof r)||!t&&kte&&!Ute})),Gte=Wte||!Lee((function(e){Lte.all(e).catch((function(){}))})),qte=function(e){var t;return!(!r5(e)||!n5(t=e.then))&&t},Kte=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Cte((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,c=n[i++],l=o?c.ok:c.fail,f=c.resolve,p=c.reject,d=c.domain;try{l?(o||(2===e.rejection&&Qte(e),e.rejection=1),!0===l?a=r:(d&&d.enter(),a=l(r),d&&(d.exit(),s=!0)),a===c.promise?p(Rte("Promise-chain cycle")):(u=qte(a))?I6(u,a,f,p):f(a)):p(r)}catch(e){d&&!s&&d.exit(),p(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Xte(e)}))}},Yte=function(e,t,n){var r,o;Vte?((r=Mte.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),j6.dispatchEvent(r)):r={promise:t,reason:n},!Ute&&(o=j6["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=j6.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Xte=function(e){I6(_te,j6,(function(){var t,n=e.facade,r=e.value;if(Jte(e)&&(t=Ate((function(){Hee?zte.emit("unhandledRejection",r,n):Yte("unhandledrejection",n,r)})),e.rejection=Hee||Jte(e)?2:1,t.error))throw t.value}))},Jte=function(e){return 1!==e.rejection&&!e.parent},Qte=function(e){I6(_te,j6,(function(){var t=e.facade;Hee?zte.emit("rejectionHandled",t):Yte("rejectionhandled",t,e.value)}))},ene=function(e,t,n){return function(r){e(t,r,n)}},tne=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Kte(e,!0))},nne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Rte("Promise can't be resolved itself");var r=qte(t);r?Cte((function(){var n={done:!1};try{I6(r,t,ene(nne,n,e),ene(tne,n,e))}catch(t){tne(n,t,e)}})):(e.value=t,e.state=1,Kte(e,!1))}catch(t){tne({done:!1},t,e)}}};if(Wte&&(Ite=(Lte=function(e){gee(this,Ite),w5(e),I6(wte,this);var t=Pte(this);try{e(ene(nne,t),ene(tne,t))}catch(e){tne(t,e)}}).prototype,(wte=function(e){jte(this,{type:Bte,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=uee(Ite,{then:function(e,t){var n=Fte(this),r=n.reactions,o=Hte(function(e,t){var n,r=X5(e).constructor;return void 0===r||null==(n=X5(r)[Ree])?t:function(e){if(G9(e))return e;throw Iee(m5(e)+" is not a constructor")}(n)}(this,Lte));return o.ok=!n5(e)||e,o.fail=n5(t)&&t,o.domain=Hee?zte.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Kte(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),xte=function(){var e=new wte,t=Pte(e);this.promise=e,this.resolve=ene(nne,t),this.reject=ene(tne,t)},Ote.f=Hte=function(e){return e===Lte||e===Ete?new xte(e):$te(e)},n5(aee)&&Nte!==Object.prototype)){Ste=Nte.then,Zte||(C8(Nte,"then",(function(e,t){var n=this;return new Lte((function(e,t){I6(Ste,n,e,t)})).then(e,t)}),{unsafe:!0}),C8(Nte,"catch",Ite.catch,{unsafe:!0}));try{delete Nte.constructor}catch(Mc){}lee&&lee(Nte,Ite)}function rne(e,t,n){return void 0===n&&(n=""),D6(this,void 0,void 0,(function(){var r,o,i,a,u,s,c;return O6(this,(function(l){switch(l.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=l.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=l.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"<").replace(/>/g,">")),c={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){vp.insertNodes(e,c)})),o(c),[2]}}))}))}function one(){return iee("w-e-insert-video")}e9({global:!0,wrap:!0,forced:Wte},{Promise:Lte}),dee(Lte,Bte,!1),function(e){var t=i5("Promise"),n=e8.f;N6&&t&&!t[hee]&&n(t,hee,{configurable:!0,get:function(){return this}})}(),Ete=i5(Bte),e9({target:Bte,stat:!0,forced:Wte},{reject:function(e){var t=Hte(this);return I6(t.reject,void 0,e),t.promise}}),e9({target:Bte,stat:!0,forced:Wte},{resolve:function(e){return function(e,t){if(X5(e),r5(t)&&t.constructor===e)return t;var n=Ote.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),e9({target:Bte,stat:!0,forced:Gte},{all:function(e){var t=this,n=Hte(t),r=n.resolve,o=n.reject,i=Ate((function(){var n=w5(t.resolve),i=[],a=0,u=1;Aee(e,(function(e){var s=a++,c=!1;u++,I6(n,t,e).then((function(e){c||(c=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Hte(t),r=n.reject,o=Ate((function(){var o=w5(t.resolve);Aee(e,(function(e){I6(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var ine=function(){function e(){this.title=dj("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=one(),this.posterInputId=one(),this.buttonId=one()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Uf.isCollapsed(t)||!!AA.getSelectedElems(e).some((function(t){var n=AA.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=A6(XB(dj("videoModule.videoSrc"),r,dj("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],c=A6(XB(dj("videoModule.videoPoster"),o,dj("videoModule.videoPosterPlaceHolder")),2),l=c[0],f=c[1],p=Td(s),d=Td(f),h=A6(JB(i,dj("videoModule.ok")),1)[0];if(null==this.$content){var v=Td("<div></div>");v.on("click","#"+i,(function(n){return D6(t,void 0,void 0,(function(){var t,i;return O6(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=v.find("#"+r).val().trim(),i=v.find("#"+o).val().trim(),[4,rne(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=v}var g=this.$content;return g.empty(),g.append(u),g.append(l),g.append(h),p.val(""),d.val(""),setTimeout((function(){p.focus()})),g[0]},e}(),ane=W6([].join),une=J6!=Object,sne=function(e,t){var n=[].join;return!!n&&F6((function(){n.call(null,",",1)}))}();e9({target:"Array",proto:!0,forced:une||!sne},{join:function(e){return ane(t5(this),void 0===e?",":e)}});var cne,lne,fne,pne=!F6((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),dne=l8("IE_PROTO"),hne=j6.Object,vne=hne.prototype,gne=pne?hne.getPrototypeOf:function(e){var t=k5(e);if(T5(t,dne))return t[dne];var n=t.constructor;return n5(n)&&t instanceof n?n.prototype:t instanceof hne?vne:null},yne=M5("iterator"),mne=!1;[].keys&&("next"in(fne=[].keys())?(lne=gne(gne(fne)))!==Object.prototype&&(cne=lne):mne=!0);var bne=null==cne||F6((function(){var e={};return cne[yne].call(e)!==e}));bne&&(cne={}),n5(cne[yne])||C8(cne,yne,(function(){return this}));var wne={IteratorPrototype:cne,BUGGY_SAFARI_ITERATORS:mne},xne=wne.IteratorPrototype,Ene=function(){return this},Sne=S8.PROPER,Cne=S8.CONFIGURABLE,Dne=wne.IteratorPrototype,One=wne.BUGGY_SAFARI_ITERATORS,Ane=M5("iterator"),kne=function(){return this},_ne=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=B9(xne,{next:H6(1,n)}),dee(e,o,!1),yee[o]=Ene}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!One&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",p=!1,d=e.prototype,h=d[Ane]||d["@@iterator"]||o&&d[o],v=!One&&h||l(o),g="Array"==t&&d.entries||h;if(g&&(u=gne(g.call(new e)))!==Object.prototype&&u.next&&(gne(u)!==Dne&&(lee?lee(u,Dne):n5(u[Ane])||C8(u,Ane,kne)),dee(u,f,!0)),Sne&&"values"==o&&h&&"values"!==h.name&&(Cne?t8(d,"name","values"):(p=!0,v=function(){return I6(h,this)})),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(One||p||!(c in d))&&C8(d,c,s[c]);else e9({target:t,proto:!0,forced:One||p},s);return d[Ane]!==v&&C8(d,Ane,v,{name:o}),yee[t]=v,s},Tne=b8.set,Bne=b8.getterFor("Array Iterator"),Pne=_ne(Array,"Array",(function(e,t){Tne(this,{type:"Array Iterator",target:t5(e),index:0,kind:t})}),(function(){var e=Bne(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");yee.Arguments=yee.Array,F9("keys"),F9("values"),F9("entries");var jne=R7.charAt,Fne=b8.set,Nne=b8.getterFor("String Iterator");_ne(String,"String",(function(e){Fne(this,{type:"String Iterator",string:s9(e),index:0})}),(function(){var e,t=Nne(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=jne(n,r),t.index+=e.length,{value:e,done:!1})}));var Lne=function(e,t,n){var r=$5(t);r in e?e8.f(e,r,H6(0,n)):e[r]=n},Ine=j6.Array,Rne=Math.max,Mne=H8.f,zne="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Hne={f:function(e){return zne&&"Window"==K6(e)?function(e){try{return Mne(e)}catch(e){return function(e,t,n){for(var r=j8(e),o=T8(void 0,r),i=T8(r,r),a=Ine(Rne(i-o,0)),u=0;o<i;o++,u++)Lne(a,u,e[o]);return a.length=u,a}(zne)}}(e):Mne(t5(e))}},$ne=F6((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Vne=Object.isExtensible,Une=F6((function(){Vne(1)}))||$ne?function(e){return!!r5(e)&&(!$ne||"ArrayBuffer"!=K6(e))&&(!Vne||Vne(e))}:Vne,Zne=!F6((function(){return Object.isExtensible(Object.preventExtensions({}))})),Wne=_6((function(e){var t=e8.f,n=!1,r=F5("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=H8.f,t=W6([].splice),o={};o[r]=1,e(o).length&&(H8.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},e9({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Hne.f}))},fastKey:function(e,t){if(!r5(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!T5(e,r)){if(!Une(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!T5(e,r)){if(!Une(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Zne&&n&&Une(e)&&!T5(e,r)&&i(e),e}};f8[r]=!0})),Gne=Wne.getWeakData,qne=b8.set,Kne=b8.getterFor,Yne=Q9.find,Xne=Q9.findIndex,Jne=W6([].splice),Qne=0,ere=function(e){return e.frozen||(e.frozen=new tre)},tre=function(){this.entries=[]},nre=function(e,t){return Yne(e.entries,(function(e){return e[0]===t}))};tre.prototype={get:function(e){var t=nre(this,e);if(t)return t[1]},has:function(e){return!!nre(this,e)},set:function(e,t){var n=nre(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Xne(this.entries,(function(t){return t[0]===e}));return~t&&Jne(this.entries,t,1),!!~t}};var rre,ore={getConstructor:function(e,t,n,r){var o=e((function(e,o){gee(e,i),qne(e,{type:t,id:Qne++,frozen:void 0}),null!=o&&Aee(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Kne(t),u=function(e,t,n){var r=a(e),o=Gne(X5(t),!0);return!0===o?ere(r).set(t,n):o[r.id]=n,e};return uee(i,{delete:function(e){var t=a(this);if(!r5(e))return!1;var n=Gne(e);return!0===n?ere(t).delete(e):n&&T5(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!r5(e))return!1;var n=Gne(e);return!0===n?ere(t).has(e):n&&T5(n,t.id)}}),uee(i,n?{get:function(e){var t=a(this);if(r5(e)){var n=Gne(e);return!0===n?ere(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},ire=b8.enforce,are=!j6.ActiveXObject&&"ActiveXObject"in j6,ure=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},sre=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=j6[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=W6(u[e]);C8(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!r5(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!r5(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!r5(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(J8(e,!n5(a)||!(o||u.forEach&&!F6((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Wne.enable();else if(J8(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=F6((function(){f.has(1)})),h=Lee((function(e){new a(e)})),v=!o&&F6((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){gee(e,u);var n=function(e,t,n){var r,o;return lee&&n5(r=t.constructor)&&r!==n&&r5(o=r.prototype)&&o!==n.prototype&&lee(e,o),e}(new a,e,s);return null!=t&&Aee(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(d||v)&&(l("delete"),l("has"),r&&l("get")),(v||p)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,e9({global:!0,forced:s!=a},c),dee(s,e),o||n.setStrong(s,e,r),s}("WeakMap",ure,ore);if(s8&&are){rre=ore.getConstructor(ure,"WeakMap",!0),Wne.enable();var cre=sre.prototype,lre=W6(cre.delete),fre=W6(cre.has),pre=W6(cre.get),dre=W6(cre.set);uee(cre,{delete:function(e){if(r5(e)&&!Une(e)){var t=ire(this);return t.frozen||(t.frozen=new rre),lre(this,e)||t.frozen.delete(e)}return lre(this,e)},has:function(e){if(r5(e)&&!Une(e)){var t=ire(this);return t.frozen||(t.frozen=new rre),fre(this,e)||t.frozen.has(e)}return fre(this,e)},get:function(e){if(r5(e)&&!Une(e)){var t=ire(this);return t.frozen||(t.frozen=new rre),fre(this,e)?pre(this,e):t.frozen.get(e)}return pre(this,e)},set:function(e,t){if(r5(e)&&!Une(e)){var n=ire(this);n.frozen||(n.frozen=new rre),fre(this,e)?dre(this,e,t):n.frozen.set(e,t)}else dre(this,e,t);return this}})}var hre={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},vre=Z5("span").classList,gre=vre&&vre.constructor&&vre.constructor.prototype,yre=gre===Object.prototype?void 0:gre,mre=M5("iterator"),bre=M5("toStringTag"),wre=Pne.values,xre=function(e,t){if(e){if(e[mre]!==wre)try{t8(e,mre,wre)}catch(t){e[mre]=wre}if(e[bre]||t8(e,bre,t),hre[t])for(var n in Pne)if(e[n]!==Pne[n])try{t8(e,n,Pne[n])}catch(t){e[n]=Pne[n]}}};for(var Ere in hre)xre(j6[Ere]&&j6[Ere].prototype,Ere);xre(yre,"DOMTokenList");var Sre=S8.EXISTS,Cre=e8.f,Dre=Function.prototype,Ore=W6(Dre.toString),Are=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,kre=W6(Are.exec);N6&&!Sre&&Cre(Dre,"name",{configurable:!0,get:function(){try{return kre(Are,Ore(this))[1]}catch(e){return""}}});var _re=M5("species"),Tre=p5>=51||!F6((function(){var e=[];return(e.constructor={})[_re]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Bre=M5("species"),Pre=j6.Array,jre=Math.max;function Fre(e){return e.getMenuConfig("uploadVideo")}e9({target:"Array",proto:!0,forced:!Tre},{slice:function(e,t){var n,r,o,i=t5(this),a=j8(i),u=T8(e,a),s=T8(void 0===t?a:t,a);if(M9(i)&&(n=i.constructor,(G9(n)&&(n===Pre||M9(n.prototype))||r5(n)&&null===(n=n[Bre]))&&(n=void 0),n===Pre||void 0===n))return Mee(i,u,s);for(r=new(void 0===n?Pre:n)(jre(s-u,0)),o=0;u<s;u++,o++)u in i&&Lne(r,o,i[u]);return r.length=o,r}});var Nre=new WeakMap;function Lre(e,t){return D6(this,void 0,void 0,(function(){var n,r,o,i;return O6(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Nre.get(e);if(null!=t)return t;var n=Fre(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=xP(C6(C6({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return rne(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,c=void 0===s?{}:s;if(0===u){var l=c.url,f=void 0===l?"":l,p=c.poster;rne(e,f,void 0===p?"":p),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Nre.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var Ire=function(){function e(){this.title=dj("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return rne(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Td("body"),s=Td('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;D6(this,void 0,void 0,(function(){var o,i,a,u,s,c;return O6(this,(function(l){switch(l.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Fre(e).customUpload,l.label=1;case 1:l.trys.push([1,9,10,15]),a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(o),l.label=2;case 2:return[4,a.next()];case 3:return(u=l.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return rne(e,t,n)}))]:[3,5]);case 4:return l.sent(),[3,7];case 5:return[4,Lre(e,s)];case 6:l.sent(),l.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return c=l.sent(),n={error:c},[3,15];case 10:return l.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:l.sent(),l.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Uf.isCollapsed(t)||!!AA.getSelectedElems(e).some((function(t){var n=AA.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),Rre=S8.PROPER,Mre=RegExp.prototype,zre=Mre.toString,Hre=W6(u7),$re=F6((function(){return"/a/b"!=zre.call({source:"a",flags:"b"})})),Vre=Rre&&"toString"!=zre.name;function Ure(){return iee("w-e-insert-video")}($re||Vre)&&C8(RegExp.prototype,"toString",(function(){var e=X5(this),t=s9(e.source),n=e.flags;return"/"+t+"/"+s9(void 0===n&&a5(Mre,e)&&!("flags"in Mre)?Hre(e):n)}),{unsafe:!0});var Zre=function(){function e(){this.title=dj("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Ure(),this.heightInputId=Ure(),this.buttonId=Ure()}return e.prototype.getSelectedVideoNode=function(e){return AA.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=A6(XB(dj("videoModule.width"),n,"auto"),2),a=i[0],u=Td(i[1]),s=A6(XB(dj("videoModule.height"),r,"auto"),2),c=s[0],l=Td(s[1]),f=A6(JB(o,dj("videoModule.ok")),1)[0];if(null==this.$content){var p=Td("<div></div>");p.on("click","#"+o,(function(t){t.preventDefault();var o=p.find("#"+n).val().trim(),i=p.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",c=u?u.toString():"auto";e.restoreSelection(),vp.setNodes(e,{width:s,height:c},{match:function(e){return AA.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=p}var d=this.$content;d.empty(),d.append(a),d.append(c),d.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return d[0];var v=h.width,g=void 0===v?"auto":v,y=h.height,m=void 0===y?"auto":y;return u.val(g),l.val(m),setTimeout((function(){u.focus()})),d[0]},e}(),Wre={renderElems:[x9],elemsToHtml:[E9],preParseHtml:[L9],parseElemsHtml:[a7],menus:[{key:"insertVideo",factory:function(){return new ine},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Ire},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new Zre}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=A6(e,2),o=t[0],i=t[1];return"video"===AA.getNodeType(o)&&AA.isLastNode(r,o)&&vp.insertNodes(r,AA.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};pj("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),pj("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Gre="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function qre(e){var t={exports:{}};return e(t,t.exports),t.exports}var Kre,Yre,Xre=function(e){return e&&e.Math==Math&&e},Jre=Xre("object"==typeof globalThis&&globalThis)||Xre("object"==typeof window&&window)||Xre("object"==typeof self&&self)||Xre("object"==typeof Gre&&Gre)||function(){return this}()||Function("return this")(),Qre=function(e){try{return!!e()}catch(e){return!0}},eoe=!Qre((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),toe=Function.prototype.call,noe=toe.bind?toe.bind(toe):function(){return toe.apply(toe,arguments)},roe={}.propertyIsEnumerable,ooe=Object.getOwnPropertyDescriptor,ioe={f:ooe&&!roe.call({1:2},1)?function(e){var t=ooe(this,e);return!!t&&t.enumerable}:roe},aoe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},uoe=Function.prototype,soe=uoe.bind,coe=uoe.call,loe=soe&&soe.bind(coe),foe=soe?function(e){return e&&loe(coe,e)}:function(e){return e&&function(){return coe.apply(e,arguments)}},poe=foe({}.toString),doe=foe("".slice),hoe=function(e){return doe(poe(e),8,-1)},voe=Jre.Object,goe=foe("".split),yoe=Qre((function(){return!voe("z").propertyIsEnumerable(0)}))?function(e){return"String"==hoe(e)?goe(e,""):voe(e)}:voe,moe=Jre.TypeError,boe=function(e){if(null==e)throw moe("Can't call method on "+e);return e},woe=function(e){return yoe(boe(e))},xoe=function(e){return"function"==typeof e},Eoe=function(e){return"object"==typeof e?null!==e:xoe(e)},Soe=function(e){return xoe(e)?e:void 0},Coe=function(e,t){return arguments.length<2?Soe(Jre[e]):Jre[e]&&Jre[e][t]},Doe=foe({}.isPrototypeOf),Ooe=Coe("navigator","userAgent")||"",Aoe=Jre.process,koe=Jre.Deno,_oe=Aoe&&Aoe.versions||koe&&koe.version,Toe=_oe&&_oe.v8;Toe&&(Yre=(Kre=Toe.split("."))[0]>0&&Kre[0]<4?1:+(Kre[0]+Kre[1])),!Yre&&Ooe&&(!(Kre=Ooe.match(/Edge\/(\d+)/))||Kre[1]>=74)&&(Kre=Ooe.match(/Chrome\/(\d+)/))&&(Yre=+Kre[1]);var Boe=Yre,Poe=!!Object.getOwnPropertySymbols&&!Qre((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Boe&&Boe<41})),joe=Poe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Foe=Jre.Object,Noe=joe?function(e){return"symbol"==typeof e}:function(e){var t=Coe("Symbol");return xoe(t)&&Doe(t.prototype,Foe(e))},Loe=Jre.String,Ioe=function(e){try{return Loe(e)}catch(e){return"Object"}},Roe=Jre.TypeError,Moe=function(e){if(xoe(e))return e;throw Roe(Ioe(e)+" is not a function")},zoe=function(e,t){var n=e[t];return null==n?void 0:Moe(n)},Hoe=Jre.TypeError,$oe=Object.defineProperty,Voe=function(e,t){try{$oe(Jre,e,{value:t,configurable:!0,writable:!0})}catch(n){Jre[e]=t}return t},Uoe=Jre["__core-js_shared__"]||Voe("__core-js_shared__",{}),Zoe=qre((function(e){(e.exports=function(e,t){return Uoe[e]||(Uoe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Woe=Jre.Object,Goe=function(e){return Woe(boe(e))},qoe=foe({}.hasOwnProperty),Koe=Object.hasOwn||function(e,t){return qoe(Goe(e),t)},Yoe=0,Xoe=Math.random(),Joe=foe(1..toString),Qoe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Joe(++Yoe+Xoe,36)},eie=Zoe("wks"),tie=Jre.Symbol,nie=tie&&tie.for,rie=joe?tie:tie&&tie.withoutSetter||Qoe,oie=function(e){if(!Koe(eie,e)||!Poe&&"string"!=typeof eie[e]){var t="Symbol."+e;Poe&&Koe(tie,e)?eie[e]=tie[e]:eie[e]=joe&&nie?nie(t):rie(t)}return eie[e]},iie=Jre.TypeError,aie=oie("toPrimitive"),uie=function(e){var t=function(e,t){if(!Eoe(e)||Noe(e))return e;var n,r=zoe(e,aie);if(r){if(void 0===t&&(t="default"),n=noe(r,e,t),!Eoe(n)||Noe(n))return n;throw iie("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&xoe(n=e.toString)&&!Eoe(r=noe(n,e)))return r;if(xoe(n=e.valueOf)&&!Eoe(r=noe(n,e)))return r;if("string"!==t&&xoe(n=e.toString)&&!Eoe(r=noe(n,e)))return r;throw Hoe("Can't convert object to primitive value")}(e,t)}(e,"string");return Noe(t)?t:t+""},sie=Jre.document,cie=Eoe(sie)&&Eoe(sie.createElement),lie=function(e){return cie?sie.createElement(e):{}},fie=!eoe&&!Qre((function(){return 7!=Object.defineProperty(lie("div"),"a",{get:function(){return 7}}).a})),pie=Object.getOwnPropertyDescriptor,die={f:eoe?pie:function(e,t){if(e=woe(e),t=uie(t),fie)try{return pie(e,t)}catch(e){}if(Koe(e,t))return aoe(!noe(ioe.f,e,t),e[t])}},hie=Jre.String,vie=Jre.TypeError,gie=function(e){if(Eoe(e))return e;throw vie(hie(e)+" is not an object")},yie=Jre.TypeError,mie=Object.defineProperty,bie={f:eoe?mie:function(e,t,n){if(gie(e),t=uie(t),gie(n),fie)try{return mie(e,t,n)}catch(e){}if("get"in n||"set"in n)throw yie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},wie=eoe?function(e,t,n){return bie.f(e,t,aoe(1,n))}:function(e,t,n){return e[t]=n,e},xie=foe(Function.toString);xoe(Uoe.inspectSource)||(Uoe.inspectSource=function(e){return xie(e)});var Eie,Sie,Cie,Die=Uoe.inspectSource,Oie=Jre.WeakMap,Aie=xoe(Oie)&&/native code/.test(Die(Oie)),kie=Zoe("keys"),_ie=function(e){return kie[e]||(kie[e]=Qoe(e))},Tie={},Bie=Jre.TypeError,Pie=Jre.WeakMap;if(Aie||Uoe.state){var jie=Uoe.state||(Uoe.state=new Pie),Fie=foe(jie.get),Nie=foe(jie.has),Lie=foe(jie.set);Eie=function(e,t){if(Nie(jie,e))throw new Bie("Object already initialized");return t.facade=e,Lie(jie,e,t),t},Sie=function(e){return Fie(jie,e)||{}},Cie=function(e){return Nie(jie,e)}}else{var Iie=_ie("state");Tie[Iie]=!0,Eie=function(e,t){if(Koe(e,Iie))throw new Bie("Object already initialized");return t.facade=e,wie(e,Iie,t),t},Sie=function(e){return Koe(e,Iie)?e[Iie]:{}},Cie=function(e){return Koe(e,Iie)}}var Rie={set:Eie,get:Sie,has:Cie,enforce:function(e){return Cie(e)?Sie(e):Eie(e,{})},getterFor:function(e){return function(t){var n;if(!Eoe(t)||(n=Sie(t)).type!==e)throw Bie("Incompatible receiver, "+e+" required");return n}}},Mie=Function.prototype,zie=eoe&&Object.getOwnPropertyDescriptor,Hie=Koe(Mie,"name"),$ie={EXISTS:Hie,PROPER:Hie&&"something"===function(){}.name,CONFIGURABLE:Hie&&(!eoe||eoe&&zie(Mie,"name").configurable)},Vie=qre((function(e){var t=$ie.CONFIGURABLE,n=Rie.get,r=Rie.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;xoe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Koe(i,"name")||t&&i.name!==f)&&wie(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Jre?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:wie(e,n,i)):c?e[n]=i:Voe(n,i)})(Function.prototype,"toString",(function(){return xoe(this)&&n(this).source||Die(this)}))})),Uie=Math.ceil,Zie=Math.floor,Wie=function(e){var t=+e;return t!=t||0===t?0:(t>0?Zie:Uie)(t)},Gie=Math.max,qie=Math.min,Kie=function(e,t){var n=Wie(e);return n<0?Gie(n+t,0):qie(n,t)},Yie=Math.min,Xie=function(e){return e>0?Yie(Wie(e),9007199254740991):0},Jie=function(e){return Xie(e.length)},Qie=function(e){return function(t,n,r){var o,i=woe(t),a=Jie(i),u=Kie(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},eae=(Qie(!0),Qie(!1)),tae=foe([].push),nae=function(e,t){var n,r=woe(e),o=0,i=[];for(n in r)!Koe(Tie,n)&&Koe(r,n)&&tae(i,n);for(;t.length>o;)Koe(r,n=t[o++])&&(~eae(i,n)||tae(i,n));return i},rae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],oae=rae.concat("length","prototype"),iae={f:Object.getOwnPropertyNames||function(e){return nae(e,oae)}},aae={f:Object.getOwnPropertySymbols},uae=foe([].concat),sae=Coe("Reflect","ownKeys")||function(e){var t=iae.f(gie(e)),n=aae.f;return n?uae(t,n(e)):t},cae=function(e,t){for(var n=sae(t),r=bie.f,o=die.f,i=0;i<n.length;i++){var a=n[i];Koe(e,a)||r(e,a,o(t,a))}},lae=/#|\.prototype\./,fae=function(e,t){var n=dae[pae(e)];return n==vae||n!=hae&&(xoe(t)?Qre(t):!!t)},pae=fae.normalize=function(e){return String(e).replace(lae,".").toLowerCase()},dae=fae.data={},hae=fae.NATIVE="N",vae=fae.POLYFILL="P",gae=fae,yae=die.f,mae=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?Jre:c?Jre[u]||Voe(u,{}):(Jre[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=yae(n,r))&&a.value:n[r],!gae(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;cae(i,o)}(e.sham||o&&o.sham)&&wie(i,"sham",!0),Vie(n,r,i,e)}},bae=Array.isArray||function(e){return"Array"==hoe(e)},wae={};wae[oie("toStringTag")]="z";var xae="[object z]"===String(wae),Eae=oie("toStringTag"),Sae=Jre.Object,Cae="Arguments"==hoe(function(){return arguments}()),Dae=xae?hoe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Sae(e),Eae))?n:Cae?hoe(t):"Object"==(r=hoe(t))&&xoe(t.callee)?"Arguments":r},Oae=function(){},Aae=[],kae=Coe("Reflect","construct"),_ae=/^\s*(?:class|function)\b/,Tae=foe(_ae.exec),Bae=!_ae.exec(Oae),Pae=function(e){if(!xoe(e))return!1;try{return kae(Oae,Aae,e),!0}catch(e){return!1}},jae=!kae||Qre((function(){var e;return Pae(Pae.call)||!Pae(Object)||!Pae((function(){e=!0}))||e}))?function(e){if(!xoe(e))return!1;switch(Dae(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Bae||!!Tae(_ae,Die(e))}:Pae,Fae=function(e,t,n){var r=uie(t);r in e?bie.f(e,r,aoe(0,n)):e[r]=n},Nae=oie("species"),Lae=foe([].slice),Iae=Boe>=51||!Qre((function(){var e=[];return(e.constructor={})[Nae]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Rae=oie("species"),Mae=Jre.Array,zae=Math.max;mae({target:"Array",proto:!0,forced:!Iae},{slice:function(e,t){var n,r,o,i=woe(this),a=Jie(i),u=Kie(e,a),s=Kie(void 0===t?a:t,a);if(bae(i)&&(n=i.constructor,(jae(n)&&(n===Mae||bae(n.prototype))||Eoe(n)&&null===(n=n[Rae]))&&(n=void 0),n===Mae||void 0===n))return Lae(i,u,s);for(r=new(void 0===n?Mae:n)(zae(s-u,0)),o=0;u<s;u++,o++)u in i&&Fae(r,o,i[u]);return r.length=o,r}});var Hae=xae?{}.toString:function(){return"[object "+Dae(this)+"]"};xae||Vie(Object.prototype,"toString",Hae,{unsafe:!0});var $ae,Vae=Jre.String,Uae=function(e){if("Symbol"===Dae(e))throw TypeError("Cannot convert a Symbol value to a string");return Vae(e)},Zae=function(){var e=gie(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Wae=Jre.RegExp,Gae=Qre((function(){var e=Wae("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),qae=Gae||Qre((function(){return!Wae("a","y").sticky})),Kae={BROKEN_CARET:Gae||Qre((function(){var e=Wae("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:qae,UNSUPPORTED_Y:Gae},Yae=Object.keys||function(e){return nae(e,rae)},Xae=eoe?Object.defineProperties:function(e,t){gie(e);for(var n,r=woe(t),o=Yae(t),i=o.length,a=0;i>a;)bie.f(e,n=o[a++],r[n]);return e},Jae=Coe("document","documentElement"),Qae=_ie("IE_PROTO"),eue=function(){},tue=function(e){return"<script>"+e+"<\/script>"},nue=function(e){e.write(tue("")),e.close();var t=e.parentWindow.Object;return e=null,t},rue=function(){try{$ae=new ActiveXObject("htmlfile")}catch(e){}var e,t;rue="undefined"!=typeof document?document.domain&&$ae?nue($ae):((t=lie("iframe")).style.display="none",Jae.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(tue("document.F=Object")),e.close(),e.F):nue($ae);for(var n=rae.length;n--;)delete rue.prototype[rae[n]];return rue()};Tie[Qae]=!0;var oue,iue,aue=Object.create||function(e,t){var n;return null!==e?(eue.prototype=gie(e),n=new eue,eue.prototype=null,n[Qae]=e):n=rue(),void 0===t?n:Xae(n,t)},uue=Jre.RegExp,sue=Qre((function(){var e=uue(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),cue=Jre.RegExp,lue=Qre((function(){var e=cue("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),fue=Rie.get,pue=Zoe("native-string-replace",String.prototype.replace),due=RegExp.prototype.exec,hue=due,vue=foe("".charAt),gue=foe("".indexOf),yue=foe("".replace),mue=foe("".slice),bue=(iue=/b*/g,noe(due,oue=/a/,"a"),noe(due,iue,"a"),0!==oue.lastIndex||0!==iue.lastIndex),wue=Kae.BROKEN_CARET,xue=void 0!==/()??/.exec("")[1];(bue||xue||wue||sue||lue)&&(hue=function(e){var t,n,r,o,i,a,u,s=this,c=fue(s),l=Uae(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=noe(hue,f,l),s.lastIndex=f.lastIndex,t;var p=c.groups,d=wue&&s.sticky,h=noe(Zae,s),v=s.source,g=0,y=l;if(d&&(h=yue(h,"y",""),-1===gue(h,"g")&&(h+="g"),y=mue(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==vue(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),xue&&(n=new RegExp("^"+v+"$(?!\\s)",h)),bue&&(r=s.lastIndex),o=noe(due,d?n:s,y),d?o?(o.input=mue(o.input,g),o[0]=mue(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:bue&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),xue&&o&&o.length>1&&noe(pue,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=aue(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Eue=hue;mae({target:"RegExp",proto:!0,forced:/./.exec!==Eue},{exec:Eue});var Sue=Function.prototype,Cue=Sue.apply,Due=Sue.bind,Oue=Sue.call,Aue="object"==typeof Reflect&&Reflect.apply||(Due?Oue.bind(Cue):function(){return Oue.apply(Cue,arguments)}),kue=oie("species"),_ue=RegExp.prototype,Tue=oie("match"),Bue=Jre.TypeError,Pue=oie("species"),jue=function(e,t){var n,r=gie(e).constructor;return void 0===r||null==(n=gie(r)[Pue])?t:function(e){if(jae(e))return e;throw Bue(Ioe(e)+" is not a constructor")}(n)},Fue=foe("".charAt),Nue=foe("".charCodeAt),Lue=foe("".slice),Iue=function(e){return function(t,n){var r,o,i=Uae(boe(t)),a=Wie(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Nue(i,a))<55296||r>56319||a+1===u||(o=Nue(i,a+1))<56320||o>57343?e?Fue(i,a):r:e?Lue(i,a,a+2):o-56320+(r-55296<<10)+65536}},Rue={codeAt:Iue(!1),charAt:Iue(!0)},Mue=Rue.charAt,zue=function(e,t,n){return t+(n?Mue(e,t).length:1)},Hue=Jre.Array,$ue=Math.max,Vue=function(e,t,n){for(var r=Jie(e),o=Kie(t,r),i=Kie(void 0===n?r:n,r),a=Hue($ue(i-o,0)),u=0;o<i;o++,u++)Fae(a,u,e[o]);return a.length=u,a},Uue=Jre.TypeError,Zue=function(e,t){var n=e.exec;if(xoe(n)){var r=noe(n,e,t);return null!==r&&gie(r),r}if("RegExp"===hoe(e))return noe(Eue,e,t);throw Uue("RegExp#exec called on incompatible receiver")},Wue=Kae.UNSUPPORTED_Y,Gue=Math.min,que=[].push,Kue=foe(/./.exec),Yue=foe(que),Xue=foe("".slice);!function(e,t,n,r){var o=oie(e),i=!Qre((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Qre((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[kue]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=foe(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=Uae(boe(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Eoe(r=e)||!(void 0!==(o=r[Tue])?o:"RegExp"==hoe(r)))return noe(t,i,e,a);for(var u,s,c,l=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,d=new RegExp(e.source,f+"g");(u=noe(Eue,d,i))&&!((s=d.lastIndex)>p&&(Yue(l,Xue(i,p,u.index)),u.length>1&&u.index<i.length&&Aue(que,l,Vue(u,1)),c=u[0].length,p=s,l.length>=a));)d.lastIndex===u.index&&d.lastIndex++;return p===i.length?!c&&Kue(d,"")||Yue(l,""):Yue(l,Xue(i,p)),l.length>a?Vue(l,0,a):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:noe(t,this,e,n)}:t,[function(t,n){var o=boe(this),i=null==t?void 0:zoe(t,e);return i?noe(i,t,o,n):noe(r,Uae(o),t,n)},function(e,o){var i=gie(this),a=Uae(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=jue(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Wue?"g":"y"),f=new s(Wue?"^(?:"+i.source+")":i,l),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===a.length)return null===Zue(f,a)?[a]:[];for(var d=0,h=0,v=[];h<a.length;){f.lastIndex=Wue?0:h;var g,y=Zue(f,Wue?Xue(a,h):a);if(null===y||(g=Gue(Xie(f.lastIndex+(Wue?h:0)),a.length))===d)h=zue(a,h,c);else{if(Yue(v,Xue(a,d,h)),v.length===p)return v;for(var m=1;m<=y.length-1;m++)if(Yue(v,y[m]),v.length===p)return v;h=d=g}}return Yue(v,Xue(a,d)),v}]}(o,""[e],(function(e,t,n,r,o){var a=foe(e),s=t.exec;return s===Eue||s===_ue.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Vie(String.prototype,e,s[0]),Vie(_ue,o,s[1])}r&&wie(_ue[o],"sham",!0)}("split",0,!!Qre((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Wue);
|
|
139
|
+
/*! *****************************************************************************
|
|
140
|
+
Copyright (c) Microsoft Corporation.
|
|
141
|
+
|
|
142
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
143
|
+
purpose with or without fee is hereby granted.
|
|
144
|
+
|
|
145
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
146
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
147
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
148
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
149
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
150
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
151
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
152
|
+
***************************************************************************** */
|
|
153
|
+
var Jue=function(){return Jue=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jue.apply(this,arguments)};function Que(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function ese(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var tse=oie("unscopables"),nse=Array.prototype;null==nse[tse]&&bie.f(nse,tse,{configurable:!0,value:aue(null)});var rse,ose,ise,ase=function(e){nse[tse][e]=!0},use={},sse=!Qre((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),cse=_ie("IE_PROTO"),lse=Jre.Object,fse=lse.prototype,pse=sse?lse.getPrototypeOf:function(e){var t=Goe(e);if(Koe(t,cse))return t[cse];var n=t.constructor;return xoe(n)&&t instanceof n?n.prototype:t instanceof lse?fse:null},dse=oie("iterator"),hse=!1;[].keys&&("next"in(ise=[].keys())?(ose=pse(pse(ise)))!==Object.prototype&&(rse=ose):hse=!0);var vse=null==rse||Qre((function(){var e={};return rse[dse].call(e)!==e}));vse&&(rse={}),xoe(rse[dse])||Vie(rse,dse,(function(){return this}));var gse={IteratorPrototype:rse,BUGGY_SAFARI_ITERATORS:hse},yse=bie.f,mse=oie("toStringTag"),bse=function(e,t,n){e&&!Koe(e=n?e:e.prototype,mse)&&yse(e,mse,{configurable:!0,value:t})},wse=gse.IteratorPrototype,xse=function(){return this},Ese=Jre.String,Sse=Jre.TypeError,Cse=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=foe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return gie(n),function(e){if("object"==typeof e||xoe(e))return e;throw Sse("Can't set "+Ese(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Dse=$ie.PROPER,Ose=$ie.CONFIGURABLE,Ase=gse.IteratorPrototype,kse=gse.BUGGY_SAFARI_ITERATORS,_se=oie("iterator"),Tse=function(){return this},Bse=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=aue(wse,{next:aoe(1,n)}),bse(e,o,!1),use[o]=xse}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!kse&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",p=!1,d=e.prototype,h=d[_se]||d["@@iterator"]||o&&d[o],v=!kse&&h||l(o),g="Array"==t&&d.entries||h;if(g&&(u=pse(g.call(new e)))!==Object.prototype&&u.next&&(pse(u)!==Ase&&(Cse?Cse(u,Ase):xoe(u[_se])||Vie(u,_se,Tse)),bse(u,f,!0)),Dse&&"values"==o&&h&&"values"!==h.name&&(Ose?wie(d,"name","values"):(p=!0,v=function(){return noe(h,this)})),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(kse||p||!(c in d))&&Vie(d,c,s[c]);else mae({target:t,proto:!0,forced:kse||p},s);return d[_se]!==v&&Vie(d,_se,v,{name:o}),use[t]=v,s},Pse=Rie.set,jse=Rie.getterFor("Array Iterator"),Fse=Bse(Array,"Array",(function(e,t){Pse(this,{type:"Array Iterator",target:woe(e),index:0,kind:t})}),(function(){var e=jse(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");use.Arguments=use.Array,ase("keys"),ase("values"),ase("entries");var Nse=Rue.charAt,Lse=Rie.set,Ise=Rie.getterFor("String Iterator");Bse(String,"String",(function(e){Lse(this,{type:"String Iterator",string:Uae(e),index:0})}),(function(){var e,t=Ise(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Nse(n,r),t.index+=e.length,{value:e,done:!1})}));var Rse=function(e,t,n){for(var r in t)Vie(e,r,t[r],n);return e},Mse=iae.f,zse="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Hse={f:function(e){return zse&&"Window"==hoe(e)?function(e){try{return Mse(e)}catch(e){return Vue(zse)}}(e):Mse(woe(e))}},$se=Qre((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Vse=Object.isExtensible,Use=Qre((function(){Vse(1)}))||$se?function(e){return!!Eoe(e)&&(!$se||"ArrayBuffer"!=hoe(e))&&(!Vse||Vse(e))}:Vse,Zse=!Qre((function(){return Object.isExtensible(Object.preventExtensions({}))})),Wse=qre((function(e){var t=bie.f,n=!1,r=Qoe("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=iae.f,t=foe([].splice),o={};o[r]=1,e(o).length&&(iae.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},mae({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Hse.f}))},fastKey:function(e,t){if(!Eoe(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Koe(e,r)){if(!Use(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Koe(e,r)){if(!Use(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Zse&&n&&Use(e)&&!Koe(e,r)&&i(e),e}};Tie[r]=!0})),Gse=foe(foe.bind),qse=function(e,t){return Moe(e),void 0===t?e:Gse?Gse(e,t):function(){return e.apply(t,arguments)}},Kse=oie("iterator"),Yse=Array.prototype,Xse=oie("iterator"),Jse=function(e){if(null!=e)return zoe(e,Xse)||zoe(e,"@@iterator")||use[Dae(e)]},Qse=Jre.TypeError,ece=function(e,t,n){var r,o;gie(e);try{if(!(r=zoe(e,"return"))){if("throw"===t)throw n;return n}r=noe(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return gie(r),n},tce=Jre.TypeError,nce=function(e,t){this.stopped=e,this.result=t},rce=nce.prototype,oce=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=qse(t,f),g=function(e){return r&&ece(r,"normal",e),new nce(!0,e)},y=function(e){return p?(gie(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(d)r=e;else{if(!(o=Jse(e)))throw tce(Ioe(e)+" is not iterable");if(void 0!==(l=o)&&(use.Array===l||Yse[Kse]===l)){for(i=0,a=Jie(e);a>i;i++)if((u=y(e[i]))&&Doe(rce,u))return u;return new nce(!1)}r=function(e,t){var n=arguments.length<2?Jse(e):t;if(Moe(n))return gie(noe(n,e));throw Qse(Ioe(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=noe(s,r)).done;){try{u=y(c.value)}catch(e){ece(r,"throw",e)}if("object"==typeof u&&u&&Doe(rce,u))return u}return new nce(!1)},ice=Jre.TypeError,ace=function(e,t){if(Doe(t,e))return e;throw ice("Incorrect invocation")},uce=oie("iterator"),sce=!1;try{var cce=0,lce={next:function(){return{done:!!cce++}},return:function(){sce=!0}};lce[uce]=function(){return this},Array.from(lce,(function(){throw 2}))}catch(Mc){}var fce=function(e,t){if(!t&&!sce)return!1;var n=!1;try{var r={};r[uce]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},pce=oie("species"),dce=Jre.Array,hce=function(e,t){return new(function(e){var t;return bae(e)&&(t=e.constructor,(jae(t)&&(t===dce||bae(t.prototype))||Eoe(t)&&null===(t=t[pce]))&&(t=void 0)),void 0===t?dce:t}(e))(0===t?0:t)},vce=foe([].push),gce=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var p,d,h=Goe(s),v=yoe(h),g=qse(c,l),y=Jie(v),m=0,b=f||hce,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(d=g(p=v[m],m,h),e))if(t)w[m]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:vce(w,p)}else switch(e){case 4:return!1;case 7:vce(w,p)}return i?-1:r||o?o:w}},yce={forEach:gce(0),map:gce(1),filter:gce(2),some:gce(3),every:gce(4),find:gce(5),findIndex:gce(6),filterReject:gce(7)},mce=Wse.getWeakData,bce=Rie.set,wce=Rie.getterFor,xce=yce.find,Ece=yce.findIndex,Sce=foe([].splice),Cce=0,Dce=function(e){return e.frozen||(e.frozen=new Oce)},Oce=function(){this.entries=[]},Ace=function(e,t){return xce(e.entries,(function(e){return e[0]===t}))};Oce.prototype={get:function(e){var t=Ace(this,e);if(t)return t[1]},has:function(e){return!!Ace(this,e)},set:function(e,t){var n=Ace(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Ece(this.entries,(function(t){return t[0]===e}));return~t&&Sce(this.entries,t,1),!!~t}};var kce,_ce={getConstructor:function(e,t,n,r){var o=e((function(e,o){ace(e,i),bce(e,{type:t,id:Cce++,frozen:void 0}),null!=o&&oce(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=wce(t),u=function(e,t,n){var r=a(e),o=mce(gie(t),!0);return!0===o?Dce(r).set(t,n):o[r.id]=n,e};return Rse(i,{delete:function(e){var t=a(this);if(!Eoe(e))return!1;var n=mce(e);return!0===n?Dce(t).delete(e):n&&Koe(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Eoe(e))return!1;var n=mce(e);return!0===n?Dce(t).has(e):n&&Koe(n,t.id)}}),Rse(i,n?{get:function(e){var t=a(this);if(Eoe(e)){var n=mce(e);return!0===n?Dce(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Tce=Rie.enforce,Bce=!Jre.ActiveXObject&&"ActiveXObject"in Jre,Pce=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},jce=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Jre[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=foe(u[e]);Vie(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Eoe(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Eoe(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Eoe(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(gae(e,!xoe(a)||!(o||u.forEach&&!Qre((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Wse.enable();else if(gae(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Qre((function(){f.has(1)})),h=fce((function(e){new a(e)})),v=!o&&Qre((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){ace(e,u);var n=function(e,t,n){var r,o;return Cse&&xoe(r=t.constructor)&&r!==n&&Eoe(o=r.prototype)&&o!==n.prototype&&Cse(e,o),e}(new a,e,s);return null!=t&&oce(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(d||v)&&(l("delete"),l("has"),r&&l("get")),(v||p)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,mae({global:!0,forced:s!=a},c),bse(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Pce,_ce);if(Aie&&Bce){kce=_ce.getConstructor(Pce,"WeakMap",!0),Wse.enable();var Fce=jce.prototype,Nce=foe(Fce.delete),Lce=foe(Fce.has),Ice=foe(Fce.get),Rce=foe(Fce.set);Rse(Fce,{delete:function(e){if(Eoe(e)&&!Use(e)){var t=Tce(this);return t.frozen||(t.frozen=new kce),Nce(this,e)||t.frozen.delete(e)}return Nce(this,e)},has:function(e){if(Eoe(e)&&!Use(e)){var t=Tce(this);return t.frozen||(t.frozen=new kce),Lce(this,e)||t.frozen.has(e)}return Lce(this,e)},get:function(e){if(Eoe(e)&&!Use(e)){var t=Tce(this);return t.frozen||(t.frozen=new kce),Lce(this,e)?Ice(this,e):t.frozen.get(e)}return Ice(this,e)},set:function(e,t){if(Eoe(e)&&!Use(e)){var n=Tce(this);n.frozen||(n.frozen=new kce),Lce(this,e)?Rce(this,e,t):n.frozen.set(e,t)}else Rce(this,e,t);return this}})}var Mce={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},zce=lie("span").classList,Hce=zce&&zce.constructor&&zce.constructor.prototype,$ce=Hce===Object.prototype?void 0:Hce,Vce=oie("iterator"),Uce=oie("toStringTag"),Zce=Fse.values,Wce=function(e,t){if(e){if(e[Vce]!==Zce)try{wie(e,Vce,Zce)}catch(t){e[Vce]=Zce}if(e[Uce]||wie(e,Uce,t),Mce[t])for(var n in Fse)if(e[n]!==Fse[n])try{wie(e,n,Fse[n])}catch(t){e[n]=Fse[n]}}};for(var Gce in Mce)Wce(Jre[Gce]&&Jre[Gce].prototype,Gce);Wce($ce,"DOMTokenList");var qce=function(e,t){var n=[][e];return!!n&&Qre((function(){n.call(null,t||function(){throw 1},1)}))},Kce=yce.forEach,Yce=qce("forEach")?[].forEach:function(e){return Kce(this,e,arguments.length>1?arguments[1]:void 0)},Xce=function(e){if(e&&e.forEach!==Yce)try{wie(e,"forEach",Yce)}catch(t){e.forEach=Yce}};for(var Jce in Mce)Mce[Jce]&&Xce(Jre[Jce]&&Jre[Jce].prototype);Xce($ce);var Qce,ele,tle,nle,rle=Jre.Promise,ole=oie("species"),ile=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ooe),ale="process"==hoe(Jre.process),ule=Jre.setImmediate,sle=Jre.clearImmediate,cle=Jre.process,lle=Jre.Dispatch,fle=Jre.Function,ple=Jre.MessageChannel,dle=Jre.String,hle=0,vle={};try{Qce=Jre.location}catch(Mc){}var gle=function(e){if(Koe(vle,e)){var t=vle[e];delete vle[e],t()}},yle=function(e){return function(){gle(e)}},mle=function(e){gle(e.data)},ble=function(e){Jre.postMessage(dle(e),Qce.protocol+"//"+Qce.host)};ule&&sle||(ule=function(e){var t=Lae(arguments,1);return vle[++hle]=function(){Aue(xoe(e)?e:fle(e),void 0,t)},ele(hle),hle},sle=function(e){delete vle[e]},ale?ele=function(e){cle.nextTick(yle(e))}:lle&&lle.now?ele=function(e){lle.now(yle(e))}:ple&&!ile?(nle=(tle=new ple).port2,tle.port1.onmessage=mle,ele=qse(nle.postMessage,nle)):Jre.addEventListener&&xoe(Jre.postMessage)&&!Jre.importScripts&&Qce&&"file:"!==Qce.protocol&&!Qre(ble)?(ele=ble,Jre.addEventListener("message",mle,!1)):ele="onreadystatechange"in lie("script")?function(e){Jae.appendChild(lie("script")).onreadystatechange=function(){Jae.removeChild(this),gle(e)}}:function(e){setTimeout(yle(e),0)});var wle,xle,Ele,Sle,Cle,Dle,Ole,Ale,kle={set:ule,clear:sle},_le=/ipad|iphone|ipod/i.test(Ooe)&&void 0!==Jre.Pebble,Tle=/web0s(?!.*chrome)/i.test(Ooe),Ble=die.f,Ple=kle.set,jle=Jre.MutationObserver||Jre.WebKitMutationObserver,Fle=Jre.document,Nle=Jre.process,Lle=Jre.Promise,Ile=Ble(Jre,"queueMicrotask"),Rle=Ile&&Ile.value;Rle||(wle=function(){var e,t;for(ale&&(e=Nle.domain)&&e.exit();xle;){t=xle.fn,xle=xle.next;try{t()}catch(e){throw xle?Sle():Ele=void 0,e}}Ele=void 0,e&&e.enter()},ile||ale||Tle||!jle||!Fle?!_le&&Lle&&Lle.resolve?((Ole=Lle.resolve(void 0)).constructor=Lle,Ale=qse(Ole.then,Ole),Sle=function(){Ale(wle)}):ale?Sle=function(){Nle.nextTick(wle)}:(Ple=qse(Ple,Jre),Sle=function(){Ple(wle)}):(Cle=!0,Dle=Fle.createTextNode(""),new jle(wle).observe(Dle,{characterData:!0}),Sle=function(){Dle.data=Cle=!Cle}));var Mle,zle,Hle,$le,Vle=Rle||function(e){var t={fn:e,next:void 0};Ele&&(Ele.next=t),xle||(xle=t,Sle()),Ele=t},Ule=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Moe(t),this.reject=Moe(n)},Zle={f:function(e){return new Ule(e)}},Wle=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Gle="object"==typeof window,qle=kle.set,Kle=oie("species"),Yle="Promise",Xle=Rie.getterFor(Yle),Jle=Rie.set,Qle=Rie.getterFor(Yle),efe=rle&&rle.prototype,tfe=rle,nfe=efe,rfe=Jre.TypeError,ofe=Jre.document,ife=Jre.process,afe=Zle.f,ufe=afe,sfe=!!(ofe&&ofe.createEvent&&Jre.dispatchEvent),cfe=xoe(Jre.PromiseRejectionEvent),lfe=!1,ffe=gae(Yle,(function(){var e=Die(tfe),t=e!==String(tfe);if(!t&&66===Boe)return!0;if(Boe>=51&&/native code/.test(e))return!1;var n=new tfe((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Kle]=r,!(lfe=n.then((function(){}))instanceof r)||!t&&Gle&&!cfe})),pfe=ffe||!fce((function(e){tfe.all(e).catch((function(){}))})),dfe=function(e){var t;return!(!Eoe(e)||!xoe(t=e.then))&&t},hfe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Vle((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,c=n[i++],l=o?c.ok:c.fail,f=c.resolve,p=c.reject,d=c.domain;try{l?(o||(2===e.rejection&&mfe(e),e.rejection=1),!0===l?a=r:(d&&d.enter(),a=l(r),d&&(d.exit(),s=!0)),a===c.promise?p(rfe("Promise-chain cycle")):(u=dfe(a))?noe(u,a,f,p):f(a)):p(r)}catch(e){d&&!s&&d.exit(),p(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&gfe(e)}))}},vfe=function(e,t,n){var r,o;sfe?((r=ofe.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Jre.dispatchEvent(r)):r={promise:t,reason:n},!cfe&&(o=Jre["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Jre.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},gfe=function(e){noe(qle,Jre,(function(){var t,n=e.facade,r=e.value;if(yfe(e)&&(t=Wle((function(){ale?ife.emit("unhandledRejection",r,n):vfe("unhandledrejection",n,r)})),e.rejection=ale||yfe(e)?2:1,t.error))throw t.value}))},yfe=function(e){return 1!==e.rejection&&!e.parent},mfe=function(e){noe(qle,Jre,(function(){var t=e.facade;ale?ife.emit("rejectionHandled",t):vfe("rejectionhandled",t,e.value)}))},bfe=function(e,t,n){return function(r){e(t,r,n)}},wfe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,hfe(e,!0))},xfe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw rfe("Promise can't be resolved itself");var r=dfe(t);r?Vle((function(){var n={done:!1};try{noe(r,t,bfe(xfe,n,e),bfe(wfe,n,e))}catch(t){wfe(n,t,e)}})):(e.value=t,e.state=1,hfe(e,!1))}catch(t){wfe({done:!1},t,e)}}};if(ffe&&(nfe=(tfe=function(e){ace(this,nfe),Moe(e),noe(Mle,this);var t=Xle(this);try{e(bfe(xfe,t),bfe(wfe,t))}catch(e){wfe(t,e)}}).prototype,(Mle=function(e){Jle(this,{type:Yle,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Rse(nfe,{then:function(e,t){var n=Qle(this),r=n.reactions,o=afe(jue(this,tfe));return o.ok=!xoe(e)||e,o.fail=xoe(t)&&t,o.domain=ale?ife.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&hfe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),zle=function(){var e=new Mle,t=Xle(e);this.promise=e,this.resolve=bfe(xfe,t),this.reject=bfe(wfe,t)},Zle.f=afe=function(e){return e===tfe||e===Hle?new zle(e):ufe(e)},xoe(rle)&&efe!==Object.prototype)){$le=efe.then,lfe||(Vie(efe,"then",(function(e,t){var n=this;return new tfe((function(e,t){noe($le,n,e,t)})).then(e,t)}),{unsafe:!0}),Vie(efe,"catch",nfe.catch,{unsafe:!0}));try{delete efe.constructor}catch(Mc){}Cse&&Cse(efe,nfe)}mae({global:!0,wrap:!0,forced:ffe},{Promise:tfe}),bse(tfe,Yle,!1),function(e){var t=Coe("Promise"),n=bie.f;eoe&&t&&!t[ole]&&n(t,ole,{configurable:!0,get:function(){return this}})}(),Hle=Coe(Yle),mae({target:Yle,stat:!0,forced:ffe},{reject:function(e){var t=afe(this);return noe(t.reject,void 0,e),t.promise}}),mae({target:Yle,stat:!0,forced:ffe},{resolve:function(e){return function(e,t){if(gie(e),Eoe(t)&&t.constructor===e)return t;var n=Zle.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),mae({target:Yle,stat:!0,forced:pfe},{all:function(e){var t=this,n=afe(t),r=n.resolve,o=n.reject,i=Wle((function(){var n=Moe(t.resolve),i=[],a=0,u=1;oce(e,(function(e){var s=a++,c=!1;u++,noe(n,t,e).then((function(e){c||(c=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=afe(t),r=n.reject,o=Wle((function(){var o=Moe(t.resolve);oce(e,(function(e){noe(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Efe=$ie.PROPER,Sfe=RegExp.prototype,Cfe=Sfe.toString,Dfe=foe(Zae),Ofe=Qre((function(){return"/a/b"!=Cfe.call({source:"a",flags:"b"})})),Afe=Efe&&"toString"!=Cfe.name;(Ofe||Afe)&&Vie(RegExp.prototype,"toString",(function(){var e=gie(this),t=Uae(e.source),n=e.flags;return"/"+t+"/"+Uae(void 0===n&&Doe(Sfe,e)&&!("flags"in Sfe)?Dfe(e):n)}),{unsafe:!0});var kfe=$ie.EXISTS,_fe=bie.f,Tfe=Function.prototype,Bfe=foe(Tfe.toString),Pfe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,jfe=foe(Pfe.exec);eoe&&!kfe&&_fe(Tfe,"name",{configurable:!0,get:function(){try{return jfe(Pfe,Bfe(this))[1]}catch(e){return""}}});var Ffe=new WeakMap;function Nfe(e){return e.getMenuConfig("uploadImage")}function Lfe(e,t){return Que(this,void 0,void 0,(function(){return ese(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;lH(e,i,t.name,a),n("ok")}}}))]}))}))}function Ife(e,t){return Que(this,void 0,void 0,(function(){var n,r,o,i;return ese(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Ffe.get(e);if(null!=t)return t;var n=Nfe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=xP(Jue(Jue({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return lH(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,c=void 0===s?{}:s;if(0===u){if(Array.isArray(c))c.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;lH(e,r,i,void 0===a?"":a)}));else{var l=c.url,f=void 0===l?"":l,p=c.alt,d=void 0===p?"":p,h=c.href;lH(e,f,d,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Ffe.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function Rfe(e,t){var n,r;return Que(this,void 0,void 0,(function(){var o,i,a,u,s,c,l,f,p;return ese(this,(function(d){switch(d.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Nfe(e),a=i.customUpload,u=i.base64LimitSize,d.label=1;case 1:d.trys.push([1,11,12,17]),s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(o),d.label=2;case 2:return[4,s.next()];case 3:return(c=d.sent()).done?[3,10]:(l=c.value,f=l.size,u&&f<=u?[4,Lfe(e,l)]:[3,5]);case 4:return d.sent(),[3,9];case 5:return a?[4,a(l,(function(t,n,r){return lH(e,t,n,r)}))]:[3,7];case 6:return d.sent(),[3,9];case 7:return[4,Ife(e,l)];case 8:d.sent(),d.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return p=d.sent(),n={error:p},[3,17];case 12:return d.trys.push([12,,15,16]),c&&!c.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:d.sent(),d.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var Mfe=foe([].join),zfe=yoe!=Object,Hfe=qce("join",",");mae({target:"Array",proto:!0,forced:zfe||!Hfe},{join:function(e){return Mfe(woe(this),void 0===e?",":e)}}),Xd&&(Td.fn.append=Xd),Rd&&(Td.fn.on=Rd),rh&&(Td.fn.remove=rh),Id&&(Td.fn.val=Id),uh&&(Td.fn.click=uh),Vd&&(Td.fn.hide=Vd);var $fe=function(){function e(){this.title=dj("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return fH(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return lH(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Td("body"),s=Td('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;Rfe(e,t)}))}},e}(),Vfe={menus:[{key:"uploadImage",factory:function(){return new $fe},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(fH(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?Rfe(e,o):t(r)}},n}};pj("en",{highLightModule:{selectLang:"Language"}}),pj("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Ufe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function Zfe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Wfe,Gfe,qfe=function(e){return e&&e.Math==Math&&e},Kfe=qfe("object"==typeof globalThis&&globalThis)||qfe("object"==typeof window&&window)||qfe("object"==typeof self&&self)||qfe("object"==typeof Ufe&&Ufe)||function(){return this}()||Function("return this")(),Yfe=Object.defineProperty,Xfe=function(e,t){try{Yfe(Kfe,e,{value:t,configurable:!0,writable:!0})}catch(n){Kfe[e]=t}return t},Jfe=Kfe["__core-js_shared__"]||Xfe("__core-js_shared__",{}),Qfe=Zfe((function(e){(e.exports=function(e,t){return Jfe[e]||(Jfe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),epe=Function.prototype,tpe=epe.bind,npe=epe.call,rpe=tpe&&tpe.bind(npe),ope=tpe?function(e){return e&&rpe(npe,e)}:function(e){return e&&function(){return npe.apply(e,arguments)}},ipe=Kfe.TypeError,ape=function(e){if(null==e)throw ipe("Can't call method on "+e);return e},upe=Kfe.Object,spe=function(e){return upe(ape(e))},cpe=ope({}.hasOwnProperty),lpe=Object.hasOwn||function(e,t){return cpe(spe(e),t)},fpe=0,ppe=Math.random(),dpe=ope(1..toString),hpe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+dpe(++fpe+ppe,36)},vpe=function(e){return"function"==typeof e},gpe=function(e){return vpe(e)?e:void 0},ype=function(e,t){return arguments.length<2?gpe(Kfe[e]):Kfe[e]&&Kfe[e][t]},mpe=ype("navigator","userAgent")||"",bpe=Kfe.process,wpe=Kfe.Deno,xpe=bpe&&bpe.versions||wpe&&wpe.version,Epe=xpe&&xpe.v8;Epe&&(Gfe=(Wfe=Epe.split("."))[0]>0&&Wfe[0]<4?1:+(Wfe[0]+Wfe[1])),!Gfe&&mpe&&(!(Wfe=mpe.match(/Edge\/(\d+)/))||Wfe[1]>=74)&&(Wfe=mpe.match(/Chrome\/(\d+)/))&&(Gfe=+Wfe[1]);var Spe=Gfe,Cpe=function(e){try{return!!e()}catch(e){return!0}},Dpe=!!Object.getOwnPropertySymbols&&!Cpe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Spe&&Spe<41})),Ope=Dpe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ape=Qfe("wks"),kpe=Kfe.Symbol,_pe=kpe&&kpe.for,Tpe=Ope?kpe:kpe&&kpe.withoutSetter||hpe,Bpe=function(e){if(!lpe(Ape,e)||!Dpe&&"string"!=typeof Ape[e]){var t="Symbol."+e;Dpe&&lpe(kpe,e)?Ape[e]=kpe[e]:Ape[e]=Ope&&_pe?_pe(t):Tpe(t)}return Ape[e]},Ppe={};Ppe[Bpe("toStringTag")]="z";var jpe="[object z]"===String(Ppe),Fpe=!Cpe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Npe=function(e){return"object"==typeof e?null!==e:vpe(e)},Lpe=Kfe.document,Ipe=Npe(Lpe)&&Npe(Lpe.createElement),Rpe=function(e){return Ipe?Lpe.createElement(e):{}},Mpe=!Fpe&&!Cpe((function(){return 7!=Object.defineProperty(Rpe("div"),"a",{get:function(){return 7}}).a})),zpe=Kfe.String,Hpe=Kfe.TypeError,$pe=function(e){if(Npe(e))return e;throw Hpe(zpe(e)+" is not an object")},Vpe=Function.prototype.call,Upe=Vpe.bind?Vpe.bind(Vpe):function(){return Vpe.apply(Vpe,arguments)},Zpe=ope({}.isPrototypeOf),Wpe=Kfe.Object,Gpe=Ope?function(e){return"symbol"==typeof e}:function(e){var t=ype("Symbol");return vpe(t)&&Zpe(t.prototype,Wpe(e))},qpe=Kfe.String,Kpe=function(e){try{return qpe(e)}catch(e){return"Object"}},Ype=Kfe.TypeError,Xpe=function(e){if(vpe(e))return e;throw Ype(Kpe(e)+" is not a function")},Jpe=function(e,t){var n=e[t];return null==n?void 0:Xpe(n)},Qpe=Kfe.TypeError,ede=Kfe.TypeError,tde=Bpe("toPrimitive"),nde=function(e){var t=function(e,t){if(!Npe(e)||Gpe(e))return e;var n,r=Jpe(e,tde);if(r){if(void 0===t&&(t="default"),n=Upe(r,e,t),!Npe(n)||Gpe(n))return n;throw ede("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&vpe(n=e.toString)&&!Npe(r=Upe(n,e)))return r;if(vpe(n=e.valueOf)&&!Npe(r=Upe(n,e)))return r;if("string"!==t&&vpe(n=e.toString)&&!Npe(r=Upe(n,e)))return r;throw Qpe("Can't convert object to primitive value")}(e,t)}(e,"string");return Gpe(t)?t:t+""},rde=Kfe.TypeError,ode=Object.defineProperty,ide={f:Fpe?ode:function(e,t,n){if($pe(e),t=nde(t),$pe(n),Mpe)try{return ode(e,t,n)}catch(e){}if("get"in n||"set"in n)throw rde("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ade=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ude=Fpe?function(e,t,n){return ide.f(e,t,ade(1,n))}:function(e,t,n){return e[t]=n,e},sde=ope(Function.toString);vpe(Jfe.inspectSource)||(Jfe.inspectSource=function(e){return sde(e)});var cde,lde,fde,pde=Jfe.inspectSource,dde=Kfe.WeakMap,hde=vpe(dde)&&/native code/.test(pde(dde)),vde=Qfe("keys"),gde=function(e){return vde[e]||(vde[e]=hpe(e))},yde={},mde=Kfe.TypeError,bde=Kfe.WeakMap;if(hde||Jfe.state){var wde=Jfe.state||(Jfe.state=new bde),xde=ope(wde.get),Ede=ope(wde.has),Sde=ope(wde.set);cde=function(e,t){if(Ede(wde,e))throw new mde("Object already initialized");return t.facade=e,Sde(wde,e,t),t},lde=function(e){return xde(wde,e)||{}},fde=function(e){return Ede(wde,e)}}else{var Cde=gde("state");yde[Cde]=!0,cde=function(e,t){if(lpe(e,Cde))throw new mde("Object already initialized");return t.facade=e,ude(e,Cde,t),t},lde=function(e){return lpe(e,Cde)?e[Cde]:{}},fde=function(e){return lpe(e,Cde)}}var Dde={set:cde,get:lde,has:fde,enforce:function(e){return fde(e)?lde(e):cde(e,{})},getterFor:function(e){return function(t){var n;if(!Npe(t)||(n=lde(t)).type!==e)throw mde("Incompatible receiver, "+e+" required");return n}}},Ode=Function.prototype,Ade=Fpe&&Object.getOwnPropertyDescriptor,kde=lpe(Ode,"name"),_de={EXISTS:kde,PROPER:kde&&"something"===function(){}.name,CONFIGURABLE:kde&&(!Fpe||Fpe&&Ade(Ode,"name").configurable)},Tde=Zfe((function(e){var t=_de.CONFIGURABLE,n=Dde.get,r=Dde.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;vpe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!lpe(i,"name")||t&&i.name!==f)&&ude(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Kfe?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:ude(e,n,i)):c?e[n]=i:Xfe(n,i)})(Function.prototype,"toString",(function(){return vpe(this)&&n(this).source||pde(this)}))})),Bde=ope({}.toString),Pde=ope("".slice),jde=function(e){return Pde(Bde(e),8,-1)},Fde=Bpe("toStringTag"),Nde=Kfe.Object,Lde="Arguments"==jde(function(){return arguments}()),Ide=jpe?jde:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Nde(e),Fde))?n:Lde?jde(t):"Object"==(r=jde(t))&&vpe(t.callee)?"Arguments":r},Rde=jpe?{}.toString:function(){return"[object "+Ide(this)+"]"};jpe||Tde(Object.prototype,"toString",Rde,{unsafe:!0});var Mde,zde={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Hde=Rpe("span").classList,$de=Hde&&Hde.constructor&&Hde.constructor.prototype,Vde=$de===Object.prototype?void 0:$de,Ude=ope(ope.bind),Zde=Kfe.Object,Wde=ope("".split),Gde=Cpe((function(){return!Zde("z").propertyIsEnumerable(0)}))?function(e){return"String"==jde(e)?Wde(e,""):Zde(e)}:Zde,qde=Math.ceil,Kde=Math.floor,Yde=function(e){var t=+e;return t!=t||0===t?0:(t>0?Kde:qde)(t)},Xde=Math.min,Jde=function(e){return e>0?Xde(Yde(e),9007199254740991):0},Qde=function(e){return Jde(e.length)},ehe=Array.isArray||function(e){return"Array"==jde(e)},the=function(){},nhe=[],rhe=ype("Reflect","construct"),ohe=/^\s*(?:class|function)\b/,ihe=ope(ohe.exec),ahe=!ohe.exec(the),uhe=function(e){if(!vpe(e))return!1;try{return rhe(the,nhe,e),!0}catch(e){return!1}},she=!rhe||Cpe((function(){var e;return uhe(uhe.call)||!uhe(Object)||!uhe((function(){e=!0}))||e}))?function(e){if(!vpe(e))return!1;switch(Ide(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ahe||!!ihe(ohe,pde(e))}:uhe,che=Bpe("species"),lhe=Kfe.Array,fhe=function(e,t){return new(function(e){var t;return ehe(e)&&(t=e.constructor,(she(t)&&(t===lhe||ehe(t.prototype))||Npe(t)&&null===(t=t[che]))&&(t=void 0)),void 0===t?lhe:t}(e))(0===t?0:t)},phe=ope([].push),dhe=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var p,d,h=spe(s),v=Gde(h),g=function(e,t){return Xpe(e),void 0===t?e:Ude?Ude(e,t):function(){return e.apply(t,arguments)}}(c,l),y=Qde(v),m=0,b=f||fhe,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(d=g(p=v[m],m,h),e))if(t)w[m]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:phe(w,p)}else switch(e){case 4:return!1;case 7:phe(w,p)}return i?-1:r||o?o:w}},hhe=[dhe(0),dhe(1),dhe(2),dhe(3),dhe(4),dhe(5),dhe(6),dhe(7)][0],vhe=(Mde=[].forEach)&&Cpe((function(){Mde.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return hhe(this,e,arguments.length>1?arguments[1]:void 0)},ghe=function(e){if(e&&e.forEach!==vhe)try{ude(e,"forEach",vhe)}catch(t){e.forEach=vhe}};for(var yhe in zde)zde[yhe]&&ghe(Kfe[yhe]&&Kfe[yhe].prototype);ghe(Vde);var mhe={}.propertyIsEnumerable,bhe=Object.getOwnPropertyDescriptor,whe={f:bhe&&!mhe.call({1:2},1)?function(e){var t=bhe(this,e);return!!t&&t.enumerable}:mhe},xhe=function(e){return Gde(ape(e))},Ehe=Object.getOwnPropertyDescriptor,She={f:Fpe?Ehe:function(e,t){if(e=xhe(e),t=nde(t),Mpe)try{return Ehe(e,t)}catch(e){}if(lpe(e,t))return ade(!Upe(whe.f,e,t),e[t])}},Che=Math.max,Dhe=Math.min,Ohe=function(e,t){var n=Yde(e);return n<0?Che(n+t,0):Dhe(n,t)},Ahe=function(e){return function(t,n,r){var o,i=xhe(t),a=Qde(i),u=Ohe(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},khe=(Ahe(!0),Ahe(!1)),_he=ope([].push),The=function(e,t){var n,r=xhe(e),o=0,i=[];for(n in r)!lpe(yde,n)&&lpe(r,n)&&_he(i,n);for(;t.length>o;)lpe(r,n=t[o++])&&(~khe(i,n)||_he(i,n));return i},Bhe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Phe=Bhe.concat("length","prototype"),jhe={f:Object.getOwnPropertyNames||function(e){return The(e,Phe)}},Fhe={f:Object.getOwnPropertySymbols},Nhe=ope([].concat),Lhe=ype("Reflect","ownKeys")||function(e){var t=jhe.f($pe(e)),n=Fhe.f;return n?Nhe(t,n(e)):t},Ihe=function(e,t){for(var n=Lhe(t),r=ide.f,o=She.f,i=0;i<n.length;i++){var a=n[i];lpe(e,a)||r(e,a,o(t,a))}},Rhe=/#|\.prototype\./,Mhe=function(e,t){var n=Hhe[zhe(e)];return n==Vhe||n!=$he&&(vpe(t)?Cpe(t):!!t)},zhe=Mhe.normalize=function(e){return String(e).replace(Rhe,".").toLowerCase()},Hhe=Mhe.data={},$he=Mhe.NATIVE="N",Vhe=Mhe.POLYFILL="P",Uhe=Mhe,Zhe=She.f,Whe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?Kfe:c?Kfe[u]||Xfe(u,{}):(Kfe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Zhe(n,r))&&a.value:n[r],!Uhe(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ihe(i,o)}(e.sham||o&&o.sham)&&ude(i,"sham",!0),Tde(n,r,i,e)}},Ghe=Object.keys||function(e){return The(e,Bhe)},qhe=Object.assign,Khe=Object.defineProperty,Yhe=ope([].concat),Xhe=!qhe||Cpe((function(){if(Fpe&&1!==qhe({b:1},qhe(Khe({},"a",{enumerable:!0,get:function(){Khe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=qhe({},e)[n]||Ghe(qhe({},t)).join("")!=r}))?function(e,t){for(var n=spe(e),r=arguments.length,o=1,i=Fhe.f,a=whe.f;r>o;)for(var u,s=Gde(arguments[o++]),c=i?Yhe(Ghe(s),i(s)):Ghe(s),l=c.length,f=0;l>f;)u=c[f++],Fpe&&!Upe(a,s,u)||(n[u]=s[u]);return n}:qhe;Whe({target:"Object",stat:!0,forced:Object.assign!==Xhe},{assign:Xhe});var Jhe=Zfe((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var c=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===c&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],c=o.util.type(s);"Object"!==c||i[a(s)]?"Array"!==c||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var c={element:n,language:a,grammar:u,code:n.textContent};function l(e){c.highlightedCode=e,o.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,o.hooks.run("after-highlight",c),o.hooks.run("complete",c),i&&i.call(c.element)}if(o.hooks.run("before-sanity-check",c),(s=c.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!c.code)return o.hooks.run("complete",c),void(i&&i.call(c.element));if(o.hooks.run("before-highlight",c),c.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){l(e.data)},f.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(o.highlight(c.code,c.grammar,c.language));else l(o.util.encode(c.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return c(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var d=n[p];d=Array.isArray(d)?d:[d];for(var h=0;h<d.length;++h){if(f&&f.cause==p+","+h)return;var v=d[h],g=v.inside,y=!!v.lookbehind,m=!!v.greedy,b=v.alias;if(m&&!v.pattern.global){var w=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,w+"g")}for(var x=v.pattern||v,E=r.next,S=s;E!==t.tail&&!(f&&S>=f.reach);S+=E.value.length,E=E.next){var C=E.value;if(t.length>e.length)return;if(!(C instanceof i)){var D,O=1;if(m){if(!(D=a(x,S,e,y)))break;var A=D.index,k=D.index+D[0].length,_=S;for(_+=E.value.length;A>=_;)_+=(E=E.next).value.length;if(S=_-=E.value.length,E.value instanceof i)continue;for(var T=E;T!==t.tail&&(_<k||"string"==typeof T.value);T=T.next)O++,_+=T.value.length;O--,C=e.slice(S,_),D.index-=S}else if(!(D=a(x,0,C,y)))continue;A=D.index;var B=D[0],P=C.slice(0,A),j=C.slice(A+B.length),F=S+C.length;f&&F>f.reach&&(f.reach=F);var N=E.prev;if(P&&(N=c(t,N,P),S+=P.length),l(t,N,O),E=c(t,N,new i(p,g?o.tokenize(B,g):B,b,B)),j&&c(t,E,j),O>1){var L={cause:p+","+h,reach:F};u(e,t,n,E.prev,S,L),f&&L.reach>f.reach&&(f.reach=L.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function l(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function p(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var d=document.readyState;"loading"===d||"interactive"===d&&f&&f.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
154
|
+
/**
|
|
155
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
156
|
+
*
|
|
157
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
158
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
159
|
+
* @namespace
|
|
160
|
+
* @public
|
|
161
|
+
*/e.exports&&(e.exports=t),void 0!==Ufe&&(Ufe.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),c=o.language;if("none"===c){var l=(/\.(\w+)$/.exec(s)||[,"none"])[1];c=e[l]||l}a(u,c),a(i,c);var f=t.plugins.autoloader;f&&f.loadLanguages(c);var p=new XMLHttpRequest;p.open("GET",s,!0),p.onreadystatechange=function(){4==p.readyState&&(p.status<400&&p.responseText?(i.setAttribute(n,"loaded"),u.textContent=p.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),p.status>=400?u.textContent="✖ Error "+p.status+" while fetching file: "+p.statusText:u.textContent="✖ Error: File does not exist or is empty"))},p.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=s(i),l=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),p=s(o+" "+i+" "+u),d=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[v,d]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,h,m]),x=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),E=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,y,m]),S={keyword:l,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,D=/"(?:\\.|[^\\"\r\n])*"/.source,O=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[O]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[D]),lookbehind:!0,greedy:!0},{pattern:RegExp(C),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,E]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,g]),lookbehind:!0,inside:S},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:S},{pattern:n(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[E,p,v]),inside:S}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[E,y]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[E]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,d]),inside:{function:n(/^<<0>>/.source,[v]),generic:{pattern:RegExp(d),alias:"class-name",inside:S}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,g,v,E,l.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:l,"class-name":{pattern:RegExp(E),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var A=D+"|"+C,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[A]),_=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),T=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,B=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,_]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[T,B]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[T]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[_]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var P=/:[^}\r\n]+/.source,j=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),F=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[j,P]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[A]),2),L=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,P]);function I(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,P]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[F]),lookbehind:!0,greedy:!0,inside:I(F,j)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:I(L,N)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var u=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],c=/language-(.+)/.exec(i);if(c){n=c[1];break}}var l=e.languages[n];if(l)t.content=e.highlight(function(e){return e.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e}))}(t.content),l,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}));var Qhe=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function eve(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+eve(t)}),0)}var tve,nve=Kfe.String,rve=function(e){if("Symbol"===Ide(e))throw TypeError("Cannot convert a Symbol value to a string");return nve(e)},ove=function(){var e=$pe(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},ive=Kfe.RegExp,ave=Cpe((function(){var e=ive("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),uve=ave||Cpe((function(){return!ive("a","y").sticky})),sve={BROKEN_CARET:ave||Cpe((function(){var e=ive("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:uve,UNSUPPORTED_Y:ave},cve=Fpe?Object.defineProperties:function(e,t){$pe(e);for(var n,r=xhe(t),o=Ghe(t),i=o.length,a=0;i>a;)ide.f(e,n=o[a++],r[n]);return e},lve=ype("document","documentElement"),fve=gde("IE_PROTO"),pve=function(){},dve=function(e){return"<script>"+e+"<\/script>"},hve=function(e){e.write(dve("")),e.close();var t=e.parentWindow.Object;return e=null,t},vve=function(){try{tve=new ActiveXObject("htmlfile")}catch(e){}var e,t;vve="undefined"!=typeof document?document.domain&&tve?hve(tve):((t=Rpe("iframe")).style.display="none",lve.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(dve("document.F=Object")),e.close(),e.F):hve(tve);for(var n=Bhe.length;n--;)delete vve.prototype[Bhe[n]];return vve()};yde[fve]=!0;var gve,yve,mve=Object.create||function(e,t){var n;return null!==e?(pve.prototype=$pe(e),n=new pve,pve.prototype=null,n[fve]=e):n=vve(),void 0===t?n:cve(n,t)},bve=Kfe.RegExp,wve=Cpe((function(){var e=bve(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),xve=Kfe.RegExp,Eve=Cpe((function(){var e=xve("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Sve=Dde.get,Cve=Qfe("native-string-replace",String.prototype.replace),Dve=RegExp.prototype.exec,Ove=Dve,Ave=ope("".charAt),kve=ope("".indexOf),_ve=ope("".replace),Tve=ope("".slice),Bve=(yve=/b*/g,Upe(Dve,gve=/a/,"a"),Upe(Dve,yve,"a"),0!==gve.lastIndex||0!==yve.lastIndex),Pve=sve.BROKEN_CARET,jve=void 0!==/()??/.exec("")[1];(Bve||jve||Pve||wve||Eve)&&(Ove=function(e){var t,n,r,o,i,a,u,s=this,c=Sve(s),l=rve(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=Upe(Ove,f,l),s.lastIndex=f.lastIndex,t;var p=c.groups,d=Pve&&s.sticky,h=Upe(ove,s),v=s.source,g=0,y=l;if(d&&(h=_ve(h,"y",""),-1===kve(h,"g")&&(h+="g"),y=Tve(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Ave(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),jve&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Bve&&(r=s.lastIndex),o=Upe(Dve,d?n:s,y),d?o?(o.input=Tve(o.input,g),o[0]=Tve(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Bve&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),jve&&o&&o.length>1&&Upe(Cve,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=mve(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Fve=Ove;Whe({target:"RegExp",proto:!0,forced:/./.exec!==Fve},{exec:Fve});var Nve=Function.prototype,Lve=Nve.apply,Ive=Nve.bind,Rve=Nve.call,Mve="object"==typeof Reflect&&Reflect.apply||(Ive?Rve.bind(Lve):function(){return Rve.apply(Lve,arguments)}),zve=Bpe("species"),Hve=RegExp.prototype,$ve=Bpe("match"),Vve=Kfe.TypeError,Uve=Bpe("species"),Zve=ope("".charAt),Wve=ope("".charCodeAt),Gve=ope("".slice),qve=function(e){return function(t,n){var r,o,i=rve(ape(t)),a=Yde(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Wve(i,a))<55296||r>56319||a+1===u||(o=Wve(i,a+1))<56320||o>57343?e?Zve(i,a):r:e?Gve(i,a,a+2):o-56320+(r-55296<<10)+65536}},Kve=(qve(!1),qve(!0)),Yve=function(e,t,n){return t+(n?Kve(e,t).length:1)},Xve=Kfe.Array,Jve=Math.max,Qve=function(e,t,n){for(var r,o,i,a,u=Qde(e),s=Ohe(t,u),c=Ohe(void 0===n?u:n,u),l=Xve(Jve(c-s,0)),f=0;s<c;s++,f++)r=l,o=f,i=e[s],(a=nde(o))in r?ide.f(r,a,ade(0,i)):r[a]=i;return l.length=f,l},ege=Kfe.TypeError,tge=function(e,t){var n=e.exec;if(vpe(n)){var r=Upe(n,e,t);return null!==r&&$pe(r),r}if("RegExp"===jde(e))return Upe(Fve,e,t);throw ege("RegExp#exec called on incompatible receiver")},nge=sve.UNSUPPORTED_Y,rge=Math.min,oge=[].push,ige=ope(/./.exec),age=ope(oge),uge=ope("".slice);!function(e,t,n,r){var o=Bpe(e),i=!Cpe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Cpe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[zve]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=ope(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=rve(ape(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Npe(r=e)||!(void 0!==(o=r[$ve])?o:"RegExp"==jde(r)))return Upe(t,i,e,a);for(var u,s,c,l=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,d=new RegExp(e.source,f+"g");(u=Upe(Fve,d,i))&&!((s=d.lastIndex)>p&&(age(l,uge(i,p,u.index)),u.length>1&&u.index<i.length&&Mve(oge,l,Qve(u,1)),c=u[0].length,p=s,l.length>=a));)d.lastIndex===u.index&&d.lastIndex++;return p===i.length?!c&&ige(d,"")||age(l,""):age(l,uge(i,p)),l.length>a?Qve(l,0,a):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Upe(t,this,e,n)}:t,[function(t,n){var o=ape(this),i=null==t?void 0:Jpe(t,e);return i?Upe(i,t,o,n):Upe(r,rve(o),t,n)},function(e,o){var i=$pe(this),a=rve(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=$pe(e).constructor;return void 0===r||null==(n=$pe(r)[Uve])?t:function(e){if(she(e))return e;throw Vve(Kpe(e)+" is not a constructor")}(n)}(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(nge?"g":"y"),f=new s(nge?"^(?:"+i.source+")":i,l),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===a.length)return null===tge(f,a)?[a]:[];for(var d=0,h=0,v=[];h<a.length;){f.lastIndex=nge?0:h;var g,y=tge(f,nge?uge(a,h):a);if(null===y||(g=rge(Jde(f.lastIndex+(nge?h:0)),a.length))===d)h=Yve(a,h,c);else{if(age(v,uge(a,d,h)),v.length===p)return v;for(var m=1;m<=y.length-1;m++)if(age(v,y[m]),v.length===p)return v;h=d=g}}return age(v,uge(a,d)),v}]}(o,""[e],(function(e,t,n,r,o){var a=ope(e),s=t.exec;return s===Fve||s===Hve.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Tde(String.prototype,e,s[0]),Tde(Hve,o,s[1])}r&&ude(Hve[o],"sham",!0)}("split",0,!!Cpe((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),nge),Whe({global:!0},{globalThis:Kfe}),Fd&&(Td.fn.attr=Fd);var sge=_de.PROPER,cge=RegExp.prototype,lge=cge.toString,fge=ope(ove),pge=Cpe((function(){return"/a/b"!=lge.call({source:"a",flags:"b"})})),dge=sge&&"toString"!=lge.name;(pge||dge)&&Tde(RegExp.prototype,"toString",(function(){var e=$pe(this),t=rve(e.source),n=e.flags;return"/"+t+"/"+rve(void 0===n&&Zpe(cge,e)&&!("flags"in cge)?fge(e):n)}),{unsafe:!0});var hge=function(){function e(){this.title=dj("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!xf.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};vp.setNodes(e,n,{match:function(e){return AA.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=AA.getSelectedNodeByType(e,"code");if(null==t)return null;var n=AA.getParentNode(e,t);return xf.isElement(n)?"pre"!==n.type?null:t:null},e}(),vge={renderStyle:function(e,t){var n=e,r=t,o="";return Qhe.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=Td(e);if(!xf.isElement(t))return t;if("code"!==AA.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new hge},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},gge=/"/g,yge=ope("".replace);Whe({target:"String",proto:!0,forced:Cpe((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=rve(ape(this)),r="<a",(r+=' name="'+yge(rve(t),gge,""")+'"')+">"+n+"</a>";var t,n,r}});var mge=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],s=function(e){if(!Xf.isText(e))return null;var t=AA.getParentNode(null,e);if(t&&"code"===AA.getNodeType(t)){var n=AA.getParentNode(null,t);if(n&&"pre"===AA.getNodeType(n))return t}return null}(i);if(null==s)return u;var c=s.language,l=void 0===c?"":c;if(!l)return u;var f=function(e,t){if(!t)return[];var n=Jhe.languages[t];return n?Jhe.tokenize(e.text,n):[]}(i,l),p=0;try{for(var d=
|
|
162
|
+
/*! *****************************************************************************
|
|
163
|
+
Copyright (c) Microsoft Corporation.
|
|
164
|
+
|
|
165
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
166
|
+
purpose with or without fee is hereby granted.
|
|
167
|
+
|
|
168
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
169
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
170
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
171
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
172
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
173
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
174
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
175
|
+
***************************************************************************** */
|
|
176
|
+
function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=d.next();!h.done;h=d.next()){var v=h.value,g=p+eve(v);"string"!=typeof v&&u.push(((r={})[v.type]=!0,r.anchor={path:a,offset:p},r.focus={path:a,offset:g},r)),p=g}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}return u},bge=function(){return bge=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bge.apply(this,arguments)},wge=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=bge(bge({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=bge(bge({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=bge(bge({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=bge(bge({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n=e.key,r=e.factory,o=e.config,i=PD(PD({},o),t||{});if(null!=TA[n])throw new Error("Duplicated key '"+n+"' in menu items");TA[n]=r,function(e,t){null!=t&&(_A[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;hB[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){dB.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;VA[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){$A.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){B_.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;j_[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){P_.push(e)}(e)},e.registerModule=function(e){xge(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
|
|
177
|
+
/*! *****************************************************************************
|
|
178
|
+
Copyright (c) Microsoft Corporation.
|
|
179
|
+
|
|
180
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
181
|
+
purpose with or without fee is hereby granted.
|
|
182
|
+
|
|
183
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
184
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
185
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
186
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
187
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
188
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
189
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
190
|
+
***************************************************************************** */function xge(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,c=e.editorPlugin;t&&t.forEach((function(e){return wge.registerMenu(e)})),n&&n.forEach((function(e){return wge.registerRenderElem(e)})),r&&wge.registerRenderStyle(r),o&&o.forEach((function(e){return wge.registerElemToHtml(e)})),i&&wge.registerStyleToHtml(i),a&&a.forEach((function(e){return wge.registerPreParseHtml(e)})),u&&u.forEach((function(e){return wge.registerParseElemHtml(e)})),s&&wge.registerParseStyleHtml(s),c&&wge.registerPlugin(c)}wG.forEach((function(e){return xge(e)})),xge(zQ),xge(S6),xge(Wre),xge(Vfe),xge(vge);var Ege='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',Sge={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},Cge={hoverbarKeys:bge(bge({},Sge),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};wge.setEditorConfig(bge(bge({},Cge),{decorate:mge}));var Dge={hoverbarKeys:Sge};wge.setSimpleEditorConfig(bge(bge({},Dge),{decorate:mge}));var Oge={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:dj("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:dj("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:dj("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:dj("editor.image"),iconSvg:Ege,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:dj("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};wge.setToolbarConfig(Oge);var Age={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:dj("editor.image"),iconSvg:Ege,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};wge.setSimpleToolbarConfig(Age);
|
|
191
|
+
/*! *****************************************************************************
|
|
192
|
+
Copyright (c) Microsoft Corporation.
|
|
193
|
+
|
|
194
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
195
|
+
purpose with or without fee is hereby granted.
|
|
196
|
+
|
|
197
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
198
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
199
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
200
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
201
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
202
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
203
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
204
|
+
***************************************************************************** */
|
|
205
|
+
var kge=function(){return kge=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kge.apply(this,arguments)};function _ge(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Tge(n){var r=n.defaultContent,o=void 0===r?[]:r,i=n.onCreated,a=n.defaultHtml,u=void 0===a?"":a,s=n.value,c=void 0===s?"":s,l=n.onChange,f=n.defaultConfig,p=void 0===f?{}:f,d=n.mode,h=void 0===d?"default":d,v=n.style,g=void 0===v?{}:v,y=n.className,m=(0,e.useRef)(null),b=_ge((0,e.useState)(null),2),w=b[0],x=b[1],E=_ge((0,e.useState)(""),2),S=E[0],C=E[1],D=function(e){i&&i(e);var t=p.onCreated;t&&t(e)},O=function(e){C(e.getHtml()),l&&l(e);var t=p.onChange;t&&t(e)},A=function(e){var t=p.onDestroyed;x(null),t&&t(e)};return(0,e.useEffect)((function(){if(null!=w&&c!==S)try{w.setHtml(c)}catch(e){console.error(e)}}),[c]),(0,e.useEffect)((function(){var e;if(null!=m.current&&null==w&&!(null===(e=m.current)||void 0===e?void 0:e.getAttribute("data-w-e-textarea"))){var t=function(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,c="simple"===(void 0===s?"default":s)?wge.simpleEditorConfig:wge.editorConfig,l=bge(bge({},c.hoverbarKeys||{}),u.hoverbarKeys||{});return cP({selector:n,config:bge(bge(bge({},c),u),{hoverbarKeys:l}),content:o,html:i,plugins:wge.plugins})}({selector:m.current,config:kge(kge({},p),{onCreated:D,onChange:O,onDestroyed:A}),content:o,html:u||c,mode:h});x(t)}}),[w]),t().createElement("div",{style:g,ref:m,className:y})}function Bge(n){var r=n.editor,o=n.defaultConfig,i=void 0===o?{}:o,a=n.mode,u=void 0===a?"default":a,s=n.style,c=void 0===s?{}:s,l=n.className,f=(0,e.useRef)(null);return(0,e.useEffect)((function(){null!=f.current&&null!=r&&function(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?wge.simpleToolbarConfig:wge.toolbarConfig,s=function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return fT(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=PD({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new hP(n,i);return NO.set(a,e),LO.set(e,a),a}(n,{selector:t,config:bge(bge({},u),o)})}({editor:r,selector:f.current,config:i,mode:u})}),[r]),t().createElement("div",{style:c,ref:f,className:l})}var Pge=i(18799),jge=i(37464),Fge=["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:"更多",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:"对齐",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:"缩进",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:"图片",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:"视频",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"],Nge=i(58543);i(96354),i(98005);function Lge(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 Ige(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rge(){return Rge=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},Rge.apply(this,arguments)}function Mge(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){Ige(e,t,n[t])}))}return e}function zge(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(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}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function Hge(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Lge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lge(e,t)}(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.")}()}var $ge=(0,e.forwardRef)((function(r,o){var i=r.style,a=r.toolbarStyle,u=void 0===a?{}:a,s=r.editorStyle,c=void 0===s?{height:"300px",overflowY:"hidden"}:s,l=r.hideErrorDom,f=r.className,p=r.error,d=r.server,h=r.helperText,v=r.required,g=r.labelSign,y=r.label,m=r.labelTooltip,b=r.placeholder,w=void 0===b?"请输入内容":b,x=r.onChange,E=r.onFocus,S=r.onBlur,C=r.onDestroyed,D=r.readOnly,O=void 0!==D&&D,A=r.autoFocus,k=void 0!==A&&A,_=r.max,T=r.in18,B=r.defaultValue,P=r.value,j=r.excludeKeys,F=r.insertKeys,N=r.toolbarKeys,L=void 0===N?Fge:N,I=r.uploadImage,R=void 0===I?{base64LimitSize:5242880,timeout:15e3}:I,M=r.uploadVideo,z=void 0===M?{timeout:15e3}:M,H=Hge((0,e.useState)(null),2),$=H[0],V=H[1],U=Hge((0,e.useState)(""),2),Z=U[0],W=U[1],G=Hge((0,e.useState)(Nge.UUID),2),q=G[0],K=G[1],Y={excludeKeys:j,toolbarKeys:L,insertKeys:F},X={placeholder:w,onFocus:function(e){E&&E(e)},onBlur:function(e){S&&S(e)},onDestroyed:function(e){C&&C(e)},readOnly:O,autoFocus:k,maxLength:_,MENU_CONF:{uploadImage:zge(Mge({},R),{server:d}),uploadVideo:zge(Mge({},z),{server:d})}};(0,e.useEffect)((function(){T&&(console.log(T),function(e){fj.changeLanguage(e)}(T)),K(Math.random().toString(36).slice(-8))}),[j,L,F,T]),(0,e.useEffect)((function(){void 0!==B&&W(B)}),[]),(0,e.useEffect)((function(){void 0!==P&&W(P)}),[P]);var J=function(){if($)return $.getHtml()},Q=function(){if($)return $.getText()},ee=function(){$&&$.clear()},te=function(e){$&&($.setHtml(e),setTimeout((function(){$.focus(!0)})))},ne=function(){return $};(0,e.useEffect)((function(){return function(){null!=$&&($.destroy(),V(null))}}),[$]),(0,e.useImperativeHandle)(o,(function(){return{getContent:J,getText:Q,clearEditor:ee,setContent:te,getEditor:ne}}));var re,oe=(0,e.useMemo)((function(){var e;return t().createElement(n.default,Rge({label:y,required:v,labelSign:g},m,{className:(e="text-editor-label",m&&m.className&&(e+=" "+m.className),e)}))}),[y,g,v,m]);return t().createElement("div",{className:(re=jge.W+"-text-editor",f&&(re+=" "+f),re),style:i},oe,t().createElement("div",{className:"text-editor-content"},t().createElement(Bge,{editor:$,defaultConfig:Y,mode:"default",key:q,style:u}),t().createElement(Tge,{defaultConfig:X,value:Z,onCreated:V,onChange:function(e){void 0===r.value&&W(e.getHtml()),x&&x(e.getHtml(),e.getText())},mode:"default",style:c})),t().createElement(Pge.default,{className:"text-editor-error-text",error:p,helperText:h,hideErrorDom:l}))})),Vge=$ge}(),a}()}));
|