@para-ui/core 2.2.43 → 2.2.45

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.
@@ -0,0 +1,177 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@material-ui/core"),require("clsx"),require("@para-ui/icons/Help"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","clsx","@para-ui/icons/Help","@paraview/lib"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("@material-ui/core"),require("clsx"),require("@para-ui/icons/Help"),require("@paraview/lib")):e.ParaUI=t(e.react,e["@material-ui/core"],e.clsx,e["@para-ui/icons/Help"],e["@paraview/lib"])}(self,(function(e,t,n,r,o){return function(){var i={937:function(e,t,n){(t=n(3645)(!1)).push([e.id,':root,:host{--w-e-textarea-bg-color: #fff;--w-e-textarea-color: #333;--w-e-textarea-border-color: #ccc;--w-e-textarea-slight-border-color: #e8e8e8;--w-e-textarea-slight-color: #d4d4d4;--w-e-textarea-slight-bg-color: #f5f2f0;--w-e-textarea-selected-border-color: #B4D5FF;--w-e-textarea-handler-bg-color: #4290f7;--w-e-toolbar-color: #595959;--w-e-toolbar-bg-color: #fff;--w-e-toolbar-active-color: #333;--w-e-toolbar-active-bg-color: #f1f1f1;--w-e-toolbar-disabled-color: #999;--w-e-toolbar-border-color: #e8e8e8;--w-e-modal-button-bg-color: #fafafa;--w-e-modal-button-border-color: #d9d9d9}.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 rgba(0,0,0,0);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 rgba(0,0,0,.1215686275);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:rgba(0,0,0,0);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 rgba(0,0,0,0);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:rgba(0,0,0,0);border-left-color:rgba(0,0,0,0);border-right-color:var(--w-e-toolbar-active-color);border-top-color:rgba(0,0,0,0);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 rgba(0,0,0,.1215686275);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 rgba(0,0,0,.1215686275);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 rgba(0,0,0,.1215686275);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 rgba(0,0,0,.1215686275);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(0.645, 0.045, 0.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}.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}.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)}.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}.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(3645)(!1)).push([e.id,".paraui-help{display:inline-block;font-size:16px;color:rgba(46,55,67,.7)}.paraui-help:hover{color:#3666d6}.paraui-help .paraui-icon{font-size:inherit;color:inherit}",""]),e.exports=t},9916:function(e,t,n){(t=n(3645)(!1)).push([e.id,".paraui-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-helper-text.paraui-helper-text-error{color:#eb6054}",""]),e.exports=t},4928:function(e,t,n){(t=n(3645)(!1)).push([e.id,".paraui-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-label>.paraui-label-required{margin-left:2px;color:#eb6054}.paraui-label>.paraui-help{vertical-align:top;margin-left:4px}.paraui-label>.paraui-help svg{color:rgba(46,55,67,.4);vertical-align:top;position:relative;top:2px}.paraui-label.paraui-label-line.paraui-label-tooltip{border-bottom:1px dashed rgba(46,55,67,.4);padding-bottom:2px}",""]),e.exports=t},6273:function(e,t,n){(t=n(3645)(!1)).push([e.id,".paraui-text-editor .text-editor-content{border:1px solid rgba(171,176,185,.4);border-radius:4px;padding:1px 0}.paraui-text-editor .text-editor-content>div:nth-child(1){border-bottom:1px solid rgba(171,176,185,.4)}.paraui-text-editor .text-editor-content div[contenteditable=false]{background-color:rgba(171,176,185,.12)}.paraui-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(3645)(!1)).push([e.id,".paraui-tooltip>div{padding-left:12px;padding-right:12px;font-size:14px;font-weight:400;color:#fff;background-color:rgba(46,55,67,.7)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}",""]),e.exports=t},3645: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}},7418:function(e){"use strict";
2
+ /*
3
+ object-assign
4
+ (c) Sindre Sorhus
5
+ @license MIT
6
+ */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),l=1;l<arguments.length;l++){for(var c in a=Object(arguments[l]))n.call(a,c)&&(s[c]=a[c]);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}},5251:function(e,t,n){"use strict";
7
+ /** @license React v17.0.2
8
+ * react-jsx-runtime.production.min.js
9
+ *
10
+ * Copyright (c) Facebook, Inc. and its affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */n(7418);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 l(e,t,n){var r,i={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=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:l,ref:c,props:i,_owner:a.current}}t.jsx=l,t.jsxs=l},5893:function(e,t,n){"use strict";e.exports=n(5251)},2342:function(e,t,n){var r=n(3379),o=n(937);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};r(o,i);e.exports=o.locals||{}},2113:function(e,t,n){var r=n(3379),o=n(7381);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};r(o,i);e.exports=o.locals||{}},3936:function(e,t,n){var r=n(3379),o=n(9916);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};r(o,i);e.exports=o.locals||{}},9663:function(e,t,n){var r=n(3379),o=n(4928);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};r(o,i);e.exports=o.locals||{}},6974:function(e,t,n){var r=n(3379),o=n(6273);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};r(o,i);e.exports=o.locals||{}},2310:function(e,t,n){var r=n(3379),o=n(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};r(o,i);e.exports=o.locals||{}},3379: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],l=n[s]||0,c="".concat(s," ").concat(l);n[s]=l+1;var f=u(c),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:c,updater:v(d,t),references:1}),r.push(c)}return r}function l(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 c,f=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function d(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 p(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,g=0;function v(e,t){var n,r,o;if(t.singleton){var i=g++;n=h||(h=l(t)),r=d.bind(null,n,i,!1),o=d.bind(null,n,i,!0)}else n=l(t),r=p.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),l=0;l<n.length;l++){var c=u(n[l]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}n=i}}}},2735:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});var r="paraui"},3566:function(e,t,n){"use strict";var r=n(5893),o=n(7371),i=n(8076),a=n.n(i),u=n(5744),s=n.n(u),l=(n(2113),function(){return l=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},l.apply(this,arguments)}),c=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};t.default=function(e){var t=e.title,n=void 0===t?"":t,i=e.children,u=e.arrow,f=void 0===u||u,d=e.interactive,p=void 0===d||d,h=e.className,g=e.placement,v=void 0===g?"top-start":g,y=c(e,["title","children","arrow","interactive","className","placement"]);return(0,r.jsx)(o.default,l({title:n,arrow:f,interactive:p,placement:v},y,{children:(0,r.jsx)("span",l({className:s()("paraui-help",h)},{children:i||(0,r.jsx)(a(),{})}))}))}},4254:function(e,t,n){"use strict";var r=n(5893),o=(n(3936),function(){return o=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},o.apply(this,arguments)});t.default=function(e){var t,n=e.className,i=e.style,a=e.error,u=void 0!==a&&a,s=e.helperText;return(0,r.jsx)("p",o({className:(t="paraui-helper-text",n&&(t+=" "+n),u&&(t+=" paraui-helper-text-error"),t),style:i},{children:s}))}},8767:function(e,t,n){"use strict";var r=n(5893),o=n(3566),i=(n(9663),function(){return i=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},i.apply(this,arguments)});t.default=function(e){var t=e.className,n=e.style,a=e.label,u=e.labelSign,s=e.required,l=void 0!==s&&s,c=e.tooltip,f=e.tooltipType,d=void 0===f?"icon":f,p=e.placement,h=e.arrow,g=e.tooltipIcon,v=function(){var e="paraui-label";return d&&(e+=" paraui-label-"+d),c&&(e+=" paraui-label-tooltip"),t&&(e+=" "+t),e};return(0,r.jsxs)(r.Fragment,{children:["icon"===d&&(0,r.jsxs)("label",i({className:v(),style:n},{children:[(0,r.jsx)(r.Fragment,{children:a}),l&&(0,r.jsx)("span",i({className:"paraui-label-required"},{children:"*"})),u&&(0,r.jsx)("span",{children:u}),c&&(0,r.jsx)(o.default,i({title:c,placement:p,arrow:h},{children:g}))]})),"line"===d&&(0,r.jsx)(o.default,i({title:c||"",placement:p,arrow:h},{children:(0,r.jsxs)("label",i({className:v(),style:n},{children:[(0,r.jsx)(r.Fragment,{children:a}),l&&(0,r.jsx)("span",i({className:"paraui-label-required"},{children:"*"})),u&&(0,r.jsx)("span",{children:u})]}))}))]})}},7371:function(e,t,n){"use strict";var r=n(5893),o=n(670),i=n(5744),a=n.n(i),u=(n(2310),function(){return u=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},u.apply(this,arguments)}),s=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};t.default=function(e){var t,n=e.placement,i=void 0===n?"top-start":n,l=e.className,c=e.arrow,f=void 0===c||c,d=e.PopperProps,p=e.boundariesElement,h=void 0===p?"scrollParent":p,g=s(e,["placement","className","arrow","PopperProps","boundariesElement"]),v=u(u({},e.classes),{popper:a()("paraui-tooltip",l,null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==i?void 0:i.includes("left"))||(null==i?void 0:i.includes("right")),"paraui-tooltip-top-bottom":(null==i?void 0:i.includes("top"))||(null==i?void 0:i.includes("bottom"))})});return(0,r.jsx)(o.Tooltip,u({},g,{enterTouchDelay:0,arrow:f,placement:i,classes:v,PopperProps:u(u({},d),{modifiers:{preventOverflow:{boundariesElement:h}}})}))}},670:function(e){"use strict";e.exports=t},8076:function(e){"use strict";e.exports=r},8543:function(e){"use strict";e.exports=o},5744:function(e){"use strict";e.exports=n},8156:function(t){"use strict";t.exports=e}},a={};function u(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,exports:{}};return i[e](n,n.exports,u),n.exports}u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.nc=void 0;var s={};return function(){"use strict";u.r(s),u.d(s,{default:function(){return Mve}});var e=u(5893),t=u(8156),n=u.n(t),r=u(8767),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==u.g?u.g:"undefined"!=typeof self?self:{};function i(e){var t={exports:{}};return e(t,t.exports),t.exports}var a,l,c=function(e){return e&&e.Math==Math&&e},f=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof o&&o)||function(){return this}()||Function("return this")(),d=Function.prototype,p=d.apply,h=d.bind,g=d.call,v="object"==typeof Reflect&&Reflect.apply||(h?g.bind(p):function(){return g.apply(p,arguments)}),y=Function.prototype,m=y.bind,b=y.call,w=m&&m.bind(b),x=m?function(e){return e&&w(b,e)}:function(e){return e&&function(){return b.apply(e,arguments)}},E=function(e){return"function"==typeof e},S=function(e){try{return!!e()}catch(e){return!0}},D=!S((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=Function.prototype.call,A=C.bind?C.bind(C):function(){return C.apply(C,arguments)},O={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,B=k&&!O.call({1:2},1)?function(e){var t=k(this,e);return!!t&&t.enumerable}:O,F={f:B},T=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_=x({}.toString),P=x("".slice),j=function(e){return P(_(e),8,-1)},N=f.Object,I=x("".split),L=S((function(){return!N("z").propertyIsEnumerable(0)}))?function(e){return"String"==j(e)?I(e,""):N(e)}:N,R=f.TypeError,M=function(e){if(null==e)throw R("Can't call method on "+e);return e},z=function(e){return L(M(e))},$=function(e){return"object"==typeof e?null!==e:E(e)},H={},V=function(e){return E(e)?e:void 0},U=function(e,t){return arguments.length<2?V(H[e])||V(f[e]):H[e]&&H[e][t]||f[e]&&f[e][t]},W=x({}.isPrototypeOf),q=U("navigator","userAgent")||"",G=f.process,K=f.Deno,Y=G&&G.versions||K&&K.version,X=Y&&Y.v8;X&&(l=(a=X.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!l&&q&&(!(a=q.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=q.match(/Chrome\/(\d+)/))&&(l=+a[1]);var Z,J=l,Q=!!Object.getOwnPropertySymbols&&!S((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&J&&J<41})),ee=Q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,te=f.Object,ne=ee?function(e){return"symbol"==typeof e}:function(e){var t=U("Symbol");return E(t)&&W(t.prototype,te(e))},re=f.String,oe=function(e){try{return re(e)}catch(e){return"Object"}},ie=f.TypeError,ae=function(e){if(E(e))return e;throw ie(oe(e)+" is not a function")},ue=function(e,t){var n=e[t];return null==n?void 0:ae(n)},se=f.TypeError,le=Object.defineProperty,ce=f["__core-js_shared__"]||function(e,t){try{le(f,e,{value:t,configurable:!0,writable:!0})}catch(n){f[e]=t}return t}("__core-js_shared__",{}),fe=i((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)"})})),de=f.Object,pe=function(e){return de(M(e))},he=x({}.hasOwnProperty),ge=Object.hasOwn||function(e,t){return he(pe(e),t)},ve=0,ye=Math.random(),me=x(1..toString),be=function(e){return"Symbol("+(void 0===e?"":e)+")_"+me(++ve+ye,36)},we=fe("wks"),xe=f.Symbol,Ee=xe&&xe.for,Se=ee?xe:xe&&xe.withoutSetter||be,De=function(e){if(!ge(we,e)||!Q&&"string"!=typeof we[e]){var t="Symbol."+e;Q&&ge(xe,e)?we[e]=xe[e]:we[e]=ee&&Ee?Ee(t):Se(t)}return we[e]},Ce=f.TypeError,Ae=De("toPrimitive"),Oe=function(e){var t=function(e,t){if(!$(e)||ne(e))return e;var n,r=ue(e,Ae);if(r){if(void 0===t&&(t="default"),n=A(r,e,t),!$(n)||ne(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&&E(n=e.toString)&&!$(r=A(n,e)))return r;if(E(n=e.valueOf)&&!$(r=A(n,e)))return r;if("string"!==t&&E(n=e.toString)&&!$(r=A(n,e)))return r;throw se("Can't convert object to primitive value")}(e,t)}(e,"string");return ne(t)?t:t+""},ke=f.document,Be=$(ke)&&$(ke.createElement),Fe=function(e){return Be?ke.createElement(e):{}},Te=!D&&!S((function(){return 7!=Object.defineProperty(Fe("div"),"a",{get:function(){return 7}}).a})),_e=Object.getOwnPropertyDescriptor,Pe=D?_e:function(e,t){if(e=z(e),t=Oe(t),Te)try{return _e(e,t)}catch(e){}if(ge(e,t))return T(!A(F.f,e,t),e[t])},je={f:Pe},Ne=/#|\.prototype\./,Ie=function(e,t){var n=Re[Le(e)];return n==ze||n!=Me&&(E(t)?S(t):!!t)},Le=Ie.normalize=function(e){return String(e).replace(Ne,".").toLowerCase()},Re=Ie.data={},Me=Ie.NATIVE="N",ze=Ie.POLYFILL="P",$e=Ie,He=x(x.bind),Ve=function(e,t){return ae(e),void 0===t?e:He?He(e,t):function(){return e.apply(t,arguments)}},Ue=f.String,We=f.TypeError,qe=function(e){if($(e))return e;throw We(Ue(e)+" is not an object")},Ge=f.TypeError,Ke=Object.defineProperty,Ye=D?Ke:function(e,t,n){if(qe(e),t=Oe(t),qe(n),Te)try{return Ke(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ge("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Xe={f:Ye},Ze=D?function(e,t,n){return Xe.f(e,t,T(1,n))}:function(e,t,n){return e[t]=n,e},Je=je.f,Qe=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},et=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,d=e.global,p=e.stat,h=e.proto,g=d?f:p?f[c]:(f[c]||{}).prototype,v=d?H:H[c]||Ze(H,c,{})[c],y=v.prototype;for(o in t)n=!$e(d?o:c+(p?".":"#")+o,e.forced)&&g&&ge(g,o),a=v[o],n&&(u=e.noTargetGet?(l=Je(g,o))&&l.value:g[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?Ve(i,f):e.wrap&&n?Qe(i):h&&E(i)?x(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Ze(s,"sham",!0),Ze(v,o,s),h&&(ge(H,r=c+"Prototype")||Ze(H,r,{}),Ze(H[r],o,i),e.real&&y&&!y[o]&&Ze(y,o,i)))},tt=fe("keys"),nt=function(e){return tt[e]||(tt[e]=be(e))},rt=!S((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ot=nt("IE_PROTO"),it=f.Object,at=it.prototype,ut=rt?it.getPrototypeOf:function(e){var t=pe(e);if(ge(t,ot))return t[ot];var n=t.constructor;return E(n)&&t instanceof n?n.prototype:t instanceof it?at:null},st=f.String,lt=f.TypeError,ct=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=x(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return qe(n),function(e){if("object"==typeof e||E(e))return e;throw lt("Can't set "+st(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ft=Math.ceil,dt=Math.floor,pt=function(e){var t=+e;return t!=t||0===t?0:(t>0?dt:ft)(t)},ht=Math.max,gt=Math.min,vt=function(e,t){var n=pt(e);return n<0?ht(n+t,0):gt(n,t)},yt=Math.min,mt=function(e){return(t=e.length)>0?yt(pt(t),9007199254740991):0;var t},bt=function(e){return function(t,n,r){var o,i=z(t),a=mt(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}},wt={includes:bt(!0),indexOf:bt(!1)},xt={},Et=wt.indexOf,St=x([].push),Dt=function(e,t){var n,r=z(e),o=0,i=[];for(n in r)!ge(xt,n)&&ge(r,n)&&St(i,n);for(;t.length>o;)ge(r,n=t[o++])&&(~Et(i,n)||St(i,n));return i},Ct=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],At=Ct.concat("length","prototype"),Ot=Object.getOwnPropertyNames||function(e){return Dt(e,At)},kt={f:Ot},Bt={f:Object.getOwnPropertySymbols},Ft=x([].concat),Tt=U("Reflect","ownKeys")||function(e){var t=kt.f(qe(e)),n=Bt.f;return n?Ft(t,n(e)):t},_t=Object.keys||function(e){return Dt(e,Ct)},Pt=D?Object.defineProperties:function(e,t){qe(e);for(var n,r=z(t),o=_t(t),i=o.length,a=0;i>a;)Xe.f(e,n=o[a++],r[n]);return e},jt=U("document","documentElement"),Nt=nt("IE_PROTO"),It=function(){},Lt=function(e){return"<script>"+e+"<\/script>"},Rt=function(e){e.write(Lt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Mt=function(){try{Z=new ActiveXObject("htmlfile")}catch(e){}var e,t;Mt="undefined"!=typeof document?document.domain&&Z?Rt(Z):((t=Fe("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):Rt(Z);for(var n=Ct.length;n--;)delete Mt.prototype[Ct[n]];return Mt()};xt[Nt]=!0;var zt=Object.create||function(e,t){var n;return null!==e?(It.prototype=qe(e),n=new It,It.prototype=null,n[Nt]=e):n=Mt(),void 0===t?n:Pt(n,t)},$t=function(e,t,n){var r=Oe(t);r in e?Xe.f(e,r,T(0,n)):e[r]=n},Ht=f.Array,Vt=Math.max,Ut=function(e,t,n){for(var r=mt(e),o=vt(t,r),i=vt(void 0===n?r:n,r),a=Ht(Vt(i-o,0)),u=0;o<i;o++,u++)$t(a,u,e[o]);return a.length=u,a},Wt=x("".replace),qt=x("".split),Gt=x([].join),Kt=String(Error("zxcasd").stack),Yt=/\n\s*at [^:]*:[^\n]*/,Xt=Yt.test(Kt),Zt=/@[^\n]*\n/.test(Kt)&&!/zxcasd/.test(Kt),Jt=function(e,t){if("string"!=typeof e)return e;if(Xt)for(;t--;)e=Wt(e,Yt,"");else if(Zt)return Gt(Ut(qt(e,"\n"),t),"\n");return e},Qt=function(e,t){$(t)&&"cause"in t&&Ze(e,"cause",t.cause)},en={},tn=De("iterator"),nn=Array.prototype,rn={};rn[De("toStringTag")]="z";var on="[object z]"===String(rn),an=De("toStringTag"),un=f.Object,sn="Arguments"==j(function(){return arguments}()),ln=on?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=un(e),an))?n:sn?j(t):"Object"==(r=j(t))&&E(t.callee)?"Arguments":r},cn=De("iterator"),fn=function(e){if(null!=e)return ue(e,cn)||ue(e,"@@iterator")||en[ln(e)]},dn=f.TypeError,pn=function(e,t,n){var r,o;qe(e);try{if(!(r=ue(e,"return"))){if("throw"===t)throw n;return n}r=A(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return qe(r),n},hn=f.TypeError,gn=function(e,t){this.stopped=e,this.result=t},vn=gn.prototype,yn=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Ve(t,c),g=function(e){return r&&pn(r,"normal",e),new gn(!0,e)},v=function(e){return f?(qe(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=fn(e)))throw hn(oe(e)+" is not iterable");if(function(e){return void 0!==e&&(en.Array===e||nn[tn]===e)}(o)){for(i=0,a=mt(e);a>i;i++)if((u=v(e[i]))&&W(vn,u))return u;return new gn(!1)}r=function(e,t){var n=arguments.length<2?fn(e):t;if(ae(n))return qe(A(n,e));throw dn(oe(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=A(s,r)).done;){try{u=v(l.value)}catch(e){pn(r,"throw",e)}if("object"==typeof u&&u&&W(vn,u))return u}return new gn(!1)},mn=f.String,bn=function(e){if("Symbol"===ln(e))throw TypeError("Cannot convert a Symbol value to a string");return mn(e)},wn=function(e,t){return void 0===e?arguments.length<2?"":t:bn(e)},xn=!S((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",T(1,7)),7!==e.stack)})),En=De("toStringTag"),Sn=f.Error,Dn=[].push,Cn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=W(An,this);ct?n=ct(new Sn(void 0),o?ut(this):An):(n=o?this:zt(An),Ze(n,En,"Error")),Ze(n,"message",wn(t,"")),xn&&Ze(n,"stack",Jt(n.stack,1)),Qt(n,r);var i=[];return yn(e,Dn,{that:i}),Ze(n,"errors",i),n};ct?ct(Cn,Sn):function(e,t){for(var n=Tt(t),r=Xe.f,o=je.f,i=0;i<n.length;i++){var a=n[i];ge(e,a)||r(e,a,o(t,a))}}(Cn,Sn);var An=Cn.prototype=zt(Sn.prototype,{constructor:T(1,Cn),message:T(1,""),name:T(1,"AggregateError")});et({global:!0},{AggregateError:Cn});var On=x(Function.toString);E(ce.inspectSource)||(ce.inspectSource=function(e){return On(e)});var kn,Bn,Fn,Tn=ce.inspectSource,_n=f.WeakMap,Pn=E(_n)&&/native code/.test(Tn(_n)),jn=f.TypeError,Nn=f.WeakMap;if(Pn||ce.state){var In=ce.state||(ce.state=new Nn),Ln=x(In.get),Rn=x(In.has),Mn=x(In.set);kn=function(e,t){if(Rn(In,e))throw new jn("Object already initialized");return t.facade=e,Mn(In,e,t),t},Bn=function(e){return Ln(In,e)||{}},Fn=function(e){return Rn(In,e)}}else{var zn=nt("state");xt[zn]=!0,kn=function(e,t){if(ge(e,zn))throw new jn("Object already initialized");return t.facade=e,Ze(e,zn,t),t},Bn=function(e){return ge(e,zn)?e[zn]:{}},Fn=function(e){return ge(e,zn)}}var $n,Hn,Vn,Un={set:kn,get:Bn,has:Fn,enforce:function(e){return Fn(e)?Bn(e):kn(e,{})},getterFor:function(e){return function(t){var n;if(!$(t)||(n=Bn(t)).type!==e)throw jn("Incompatible receiver, "+e+" required");return n}}},Wn=Function.prototype,qn=D&&Object.getOwnPropertyDescriptor,Gn=ge(Wn,"name"),Kn={EXISTS:Gn,PROPER:Gn&&"something"===function(){}.name,CONFIGURABLE:Gn&&(!D||D&&qn(Wn,"name").configurable)},Yn=function(e,t,n,r){r&&r.enumerable?e[t]=n:Ze(e,t,n)},Xn=De("iterator"),Zn=!1;[].keys&&("next"in(Vn=[].keys())?(Hn=ut(ut(Vn)))!==Object.prototype&&($n=Hn):Zn=!0);var Jn=null==$n||S((function(){var e={};return $n[Xn].call(e)!==e}));$n=Jn?{}:zt($n),E($n[Xn])||Yn($n,Xn,(function(){return this}));var Qn={IteratorPrototype:$n,BUGGY_SAFARI_ITERATORS:Zn},er=on?{}.toString:function(){return"[object "+ln(this)+"]"},tr=Xe.f,nr=De("toStringTag"),rr=function(e,t,n,r){if(e){var o=n?e:e.prototype;ge(o,nr)||tr(o,nr,{configurable:!0,value:t}),r&&!on&&Ze(o,"toString",er)}},or=Qn.IteratorPrototype,ir=function(){return this},ar=Kn.PROPER,ur=Qn.BUGGY_SAFARI_ITERATORS,sr=De("iterator"),lr=function(){return this},cr=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=zt(or,{next:T(1,n)}),rr(e,o,!1,!0),en[o]=ir}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!ur&&e in p)return p[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",d=!1,p=e.prototype,h=p[sr]||p["@@iterator"]||o&&p[o],g=!ur&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=ut(v.call(new e)))!==Object.prototype&&u.next&&(rr(u,f,!0,!0),en[f]=lr),ar&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return A(h,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(ur||d||!(l in p))&&Yn(p,l,s[l]);else et({target:t,proto:!0,forced:ur||d},s);return a&&p[sr]!==g&&Yn(p,sr,g,{name:o}),en[t]=g,s},fr=Un.set,dr=Un.getterFor("Array Iterator");cr(Array,"Array",(function(e,t){fr(this,{type:"Array Iterator",target:z(e),index:0,kind:t})}),(function(){var e=dr(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"),en.Arguments=en.Array;var pr=x("".charAt),hr=x("".charCodeAt),gr=x("".slice),vr=function(e){return function(t,n){var r,o,i=bn(M(t)),a=pt(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=hr(i,a))<55296||r>56319||a+1===u||(o=hr(i,a+1))<56320||o>57343?e?pr(i,a):r:e?gr(i,a,a+2):o-56320+(r-55296<<10)+65536}},yr=(vr(!1),vr(!0)),mr=Un.set,br=Un.getterFor("String Iterator");cr(String,"String",(function(e){mr(this,{type:"String Iterator",string:bn(e),index:0})}),(function(){var e,t=br(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=yr(n,r),t.index+=e.length,{value:e,done:!1})}));var wr=H.AggregateError,xr=De("toStringTag");for(var Er 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 Sr=f[Er],Dr=Sr&&Sr.prototype;Dr&&ln(Dr)!==xr&&Ze(Dr,xr,Er),en[Er]=en.Array}var Cr,Ar,Or=wr,kr=function(e){return e&&e.Math==Math&&e},Br=kr("object"==typeof globalThis&&globalThis)||kr("object"==typeof window&&window)||kr("object"==typeof self&&self)||kr("object"==typeof o&&o)||function(){return this}()||Function("return this")(),Fr=function(e){try{return!!e()}catch(e){return!0}},Tr=!Fr((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),_r=Function.prototype.call,Pr=_r.bind?_r.bind(_r):function(){return _r.apply(_r,arguments)},jr={}.propertyIsEnumerable,Nr=Object.getOwnPropertyDescriptor,Ir=Nr&&!jr.call({1:2},1)?function(e){var t=Nr(this,e);return!!t&&t.enumerable}:jr,Lr={f:Ir},Rr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Mr=Function.prototype,zr=Mr.bind,$r=Mr.call,Hr=zr&&zr.bind($r),Vr=zr?function(e){return e&&Hr($r,e)}:function(e){return e&&function(){return $r.apply(e,arguments)}},Ur=Vr({}.toString),Wr=Vr("".slice),qr=function(e){return Wr(Ur(e),8,-1)},Gr=Br.Object,Kr=Vr("".split),Yr=Fr((function(){return!Gr("z").propertyIsEnumerable(0)}))?function(e){return"String"==qr(e)?Kr(e,""):Gr(e)}:Gr,Xr=Br.TypeError,Zr=function(e){if(null==e)throw Xr("Can't call method on "+e);return e},Jr=function(e){return Yr(Zr(e))},Qr=function(e){return"function"==typeof e},eo=function(e){return"object"==typeof e?null!==e:Qr(e)},to=function(e){return Qr(e)?e:void 0},no=function(e,t){return arguments.length<2?to(Br[e]):Br[e]&&Br[e][t]},ro=Vr({}.isPrototypeOf),oo=no("navigator","userAgent")||"",io=Br.process,ao=Br.Deno,uo=io&&io.versions||ao&&ao.version,so=uo&&uo.v8;so&&(Ar=(Cr=so.split("."))[0]>0&&Cr[0]<4?1:+(Cr[0]+Cr[1])),!Ar&&oo&&(!(Cr=oo.match(/Edge\/(\d+)/))||Cr[1]>=74)&&(Cr=oo.match(/Chrome\/(\d+)/))&&(Ar=+Cr[1]);var lo=Ar,co=!!Object.getOwnPropertySymbols&&!Fr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&lo&&lo<41})),fo=co&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,po=Br.Object,ho=fo?function(e){return"symbol"==typeof e}:function(e){var t=no("Symbol");return Qr(t)&&ro(t.prototype,po(e))},go=Br.String,vo=function(e){try{return go(e)}catch(e){return"Object"}},yo=Br.TypeError,mo=function(e){if(Qr(e))return e;throw yo(vo(e)+" is not a function")},bo=function(e,t){var n=e[t];return null==n?void 0:mo(n)},wo=Br.TypeError,xo=Object.defineProperty,Eo=function(e,t){try{xo(Br,e,{value:t,configurable:!0,writable:!0})}catch(n){Br[e]=t}return t},So=Br["__core-js_shared__"]||Eo("__core-js_shared__",{}),Do=i((function(e){(e.exports=function(e,t){return So[e]||(So[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Co=Br.Object,Ao=function(e){return Co(Zr(e))},Oo=Vr({}.hasOwnProperty),ko=Object.hasOwn||function(e,t){return Oo(Ao(e),t)},Bo=0,Fo=Math.random(),To=Vr(1..toString),_o=function(e){return"Symbol("+(void 0===e?"":e)+")_"+To(++Bo+Fo,36)},Po=Do("wks"),jo=Br.Symbol,No=jo&&jo.for,Io=fo?jo:jo&&jo.withoutSetter||_o,Lo=function(e){if(!ko(Po,e)||!co&&"string"!=typeof Po[e]){var t="Symbol."+e;co&&ko(jo,e)?Po[e]=jo[e]:Po[e]=fo&&No?No(t):Io(t)}return Po[e]},Ro=Br.TypeError,Mo=Lo("toPrimitive"),zo=function(e){var t=function(e,t){if(!eo(e)||ho(e))return e;var n,r=bo(e,Mo);if(r){if(void 0===t&&(t="default"),n=Pr(r,e,t),!eo(n)||ho(n))return n;throw Ro("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Qr(n=e.toString)&&!eo(r=Pr(n,e)))return r;if(Qr(n=e.valueOf)&&!eo(r=Pr(n,e)))return r;if("string"!==t&&Qr(n=e.toString)&&!eo(r=Pr(n,e)))return r;throw wo("Can't convert object to primitive value")}(e,t)}(e,"string");return ho(t)?t:t+""},$o=Br.document,Ho=eo($o)&&eo($o.createElement),Vo=function(e){return Ho?$o.createElement(e):{}},Uo=!Tr&&!Fr((function(){return 7!=Object.defineProperty(Vo("div"),"a",{get:function(){return 7}}).a})),Wo=Object.getOwnPropertyDescriptor,qo=Tr?Wo:function(e,t){if(e=Jr(e),t=zo(t),Uo)try{return Wo(e,t)}catch(e){}if(ko(e,t))return Rr(!Pr(Lr.f,e,t),e[t])},Go={f:qo},Ko=Br.String,Yo=Br.TypeError,Xo=function(e){if(eo(e))return e;throw Yo(Ko(e)+" is not an object")},Zo=Br.TypeError,Jo=Object.defineProperty,Qo=Tr?Jo:function(e,t,n){if(Xo(e),t=zo(t),Xo(n),Uo)try{return Jo(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Zo("Accessors not supported");return"value"in n&&(e[t]=n.value),e},ei={f:Qo},ti=Tr?function(e,t,n){return ei.f(e,t,Rr(1,n))}:function(e,t,n){return e[t]=n,e},ni=Vr(Function.toString);Qr(So.inspectSource)||(So.inspectSource=function(e){return ni(e)});var ri,oi,ii,ai=So.inspectSource,ui=Br.WeakMap,si=Qr(ui)&&/native code/.test(ai(ui)),li=Do("keys"),ci=function(e){return li[e]||(li[e]=_o(e))},fi={},di=Br.TypeError,pi=Br.WeakMap;if(si||So.state){var hi=So.state||(So.state=new pi),gi=Vr(hi.get),vi=Vr(hi.has),yi=Vr(hi.set);ri=function(e,t){if(vi(hi,e))throw new di("Object already initialized");return t.facade=e,yi(hi,e,t),t},oi=function(e){return gi(hi,e)||{}},ii=function(e){return vi(hi,e)}}else{var mi=ci("state");fi[mi]=!0,ri=function(e,t){if(ko(e,mi))throw new di("Object already initialized");return t.facade=e,ti(e,mi,t),t},oi=function(e){return ko(e,mi)?e[mi]:{}},ii=function(e){return ko(e,mi)}}var bi={set:ri,get:oi,has:ii,enforce:function(e){return ii(e)?oi(e):ri(e,{})},getterFor:function(e){return function(t){var n;if(!eo(t)||(n=oi(t)).type!==e)throw di("Incompatible receiver, "+e+" required");return n}}},wi=Function.prototype,xi=Tr&&Object.getOwnPropertyDescriptor,Ei=ko(wi,"name"),Si={EXISTS:Ei,PROPER:Ei&&"something"===function(){}.name,CONFIGURABLE:Ei&&(!Tr||Tr&&xi(wi,"name").configurable)},Di=i((function(e){var t=Si.CONFIGURABLE,n=bi.get,r=bi.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Qr(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ko(i,"name")||t&&i.name!==f)&&ti(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Br?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:ti(e,n,i)):l?e[n]=i:Eo(n,i)})(Function.prototype,"toString",(function(){return Qr(this)&&n(this).source||ai(this)}))})),Ci=Math.ceil,Ai=Math.floor,Oi=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ai:Ci)(t)},ki=Math.max,Bi=Math.min,Fi=function(e,t){var n=Oi(e);return n<0?ki(n+t,0):Bi(n,t)},Ti=Math.min,_i=function(e){return e>0?Ti(Oi(e),9007199254740991):0},Pi=function(e){return _i(e.length)},ji=function(e){return function(t,n,r){var o,i=Jr(t),a=Pi(i),u=Fi(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}},Ni=(ji(!0),ji(!1)),Ii=Vr([].push),Li=function(e,t){var n,r=Jr(e),o=0,i=[];for(n in r)!ko(fi,n)&&ko(r,n)&&Ii(i,n);for(;t.length>o;)ko(r,n=t[o++])&&(~Ni(i,n)||Ii(i,n));return i},Ri=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mi=Ri.concat("length","prototype"),zi=Object.getOwnPropertyNames||function(e){return Li(e,Mi)},$i={f:zi},Hi={f:Object.getOwnPropertySymbols},Vi=Vr([].concat),Ui=no("Reflect","ownKeys")||function(e){var t=$i.f(Xo(e)),n=Hi.f;return n?Vi(t,n(e)):t},Wi=function(e,t){for(var n=Ui(t),r=ei.f,o=Go.f,i=0;i<n.length;i++){var a=n[i];ko(e,a)||r(e,a,o(t,a))}},qi=/#|\.prototype\./,Gi=function(e,t){var n=Yi[Ki(e)];return n==Zi||n!=Xi&&(Qr(t)?Fr(t):!!t)},Ki=Gi.normalize=function(e){return String(e).replace(qi,".").toLowerCase()},Yi=Gi.data={},Xi=Gi.NATIVE="N",Zi=Gi.POLYFILL="P",Ji=Gi,Qi=Go.f,ea=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Br:l?Br[u]||Eo(u,{}):(Br[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Qi(n,r))&&a.value:n[r],!Ji(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Wi(i,o)}(e.sham||o&&o.sham)&&ti(i,"sham",!0),Di(n,r,i,e)}},ta={};ta[Lo("toStringTag")]="z";var na,ra="[object z]"===String(ta),oa=Lo("toStringTag"),ia=Br.Object,aa="Arguments"==qr(function(){return arguments}()),ua=ra?qr: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=ia(e),oa))?n:aa?qr(t):"Object"==(r=qr(t))&&Qr(t.callee)?"Arguments":r},sa=Br.String,la=function(e){if("Symbol"===ua(e))throw TypeError("Cannot convert a Symbol value to a string");return sa(e)},ca=function(){var e=Xo(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},fa=Br.RegExp,da=Fr((function(){var e=fa("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),pa=da||Fr((function(){return!fa("a","y").sticky})),ha=da||Fr((function(){var e=fa("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),ga={BROKEN_CARET:ha,MISSED_STICKY:pa,UNSUPPORTED_Y:da},va=Object.keys||function(e){return Li(e,Ri)},ya=Tr?Object.defineProperties:function(e,t){Xo(e);for(var n,r=Jr(t),o=va(t),i=o.length,a=0;i>a;)ei.f(e,n=o[a++],r[n]);return e},ma=no("document","documentElement"),ba=ci("IE_PROTO"),wa=function(){},xa=function(e){return"<script>"+e+"<\/script>"},Ea=function(e){e.write(xa("")),e.close();var t=e.parentWindow.Object;return e=null,t},Sa=function(){try{na=new ActiveXObject("htmlfile")}catch(e){}var e,t;Sa="undefined"!=typeof document?document.domain&&na?Ea(na):((t=Vo("iframe")).style.display="none",ma.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(xa("document.F=Object")),e.close(),e.F):Ea(na);for(var n=Ri.length;n--;)delete Sa.prototype[Ri[n]];return Sa()};fi[ba]=!0;var Da,Ca,Aa=Object.create||function(e,t){var n;return null!==e?(wa.prototype=Xo(e),n=new wa,wa.prototype=null,n[ba]=e):n=Sa(),void 0===t?n:ya(n,t)},Oa=Br.RegExp,ka=Fr((function(){var e=Oa(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Ba=Br.RegExp,Fa=Fr((function(){var e=Ba("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ta=bi.get,_a=Do("native-string-replace",String.prototype.replace),Pa=RegExp.prototype.exec,ja=Pa,Na=Vr("".charAt),Ia=Vr("".indexOf),La=Vr("".replace),Ra=Vr("".slice),Ma=(Ca=/b*/g,Pr(Pa,Da=/a/,"a"),Pr(Pa,Ca,"a"),0!==Da.lastIndex||0!==Ca.lastIndex),za=ga.BROKEN_CARET,$a=void 0!==/()??/.exec("")[1];(Ma||$a||za||ka||Fa)&&(ja=function(e){var t,n,r,o,i,a,u,s=this,l=Ta(s),c=la(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Pr(ja,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=za&&s.sticky,h=Pr(ca,s),g=s.source,v=0,y=c;if(p&&(h=La(h,"y",""),-1===Ia(h,"g")&&(h+="g"),y=Ra(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Na(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),$a&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Ma&&(r=s.lastIndex),o=Pr(Pa,p?n:s,y),p?o?(o.input=Ra(o.input,v),o[0]=Ra(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ma&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),$a&&o&&o.length>1&&Pr(_a,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Aa(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ha=ja;ea({target:"RegExp",proto:!0,forced:/./.exec!==Ha},{exec:Ha});Lo("species");var Va=RegExp.prototype,Ua=Vr("".charAt),Wa=Vr("".charCodeAt),qa=Vr("".slice),Ga=function(e){return function(t,n){var r,o,i=la(Zr(t)),a=Oi(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Wa(i,a))<55296||r>56319||a+1===u||(o=Wa(i,a+1))<56320||o>57343?e?Ua(i,a):r:e?qa(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ka={codeAt:Ga(!1),charAt:Ga(!0)},Ya=Ka.charAt,Xa=function(e,t,n){return t+(n?Ya(e,t).length:1)},Za=Br.TypeError,Ja=function(e,t){var n=e.exec;if(Qr(n)){var r=Pr(n,e,t);return null!==r&&Xo(r),r}if("RegExp"===qr(e))return Pr(Ha,e,t);throw Za("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=Lo(e),i=!Fr((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Fr((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a){var u=Vr(/./[o]),s=function(e,t,n){return[function(t){var n=Zr(this),r=null==t?void 0:bo(t,e);return r?Pr(r,t,n):new RegExp(t)[e](la(n))},function(e){var r=Xo(this),o=la(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Ja(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=Ja(r,o));){var c=la(u[0]);s[l]=c,""===c&&(r.lastIndex=Xa(o,_i(r.lastIndex),a)),l++}return 0===l?null:s}]}(o,""[e],(function(e,t,n,r,o){var a=Vr(e),s=t.exec;return s===Ha||s===Va.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Di(String.prototype,e,s[0]),Di(Va,o,s[1])}}("match"),ea({global:!0},{globalThis:Br});var Qa=!Fr((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),eu=ci("IE_PROTO"),tu=Br.Object,nu=tu.prototype,ru=Qa?tu.getPrototypeOf:function(e){var t=Ao(e);if(ko(t,eu))return t[eu];var n=t.constructor;return Qr(n)&&t instanceof n?n.prototype:t instanceof tu?nu:null},ou=Br.String,iu=Br.TypeError,au=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Vr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Xo(n),function(e){if("object"==typeof e||Qr(e))return e;throw iu("Can't set "+ou(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),uu=Br.Array,su=Math.max,lu=Vr("".replace),cu=Vr("".split),fu=Vr([].join),du=String(Error("zxcasd").stack),pu=/\n\s*at [^:]*:[^\n]*/,hu=pu.test(du),gu=/@[^\n]*\n/.test(du)&&!/zxcasd/.test(du),vu=function(e,t){if("string"!=typeof e)return e;if(hu)for(;t--;)e=lu(e,pu,"");else if(gu)return fu(function(e,t,n){for(var r,o,i,a,u=Pi(e),s=Fi(t,u),l=Fi(u,u),c=uu(su(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],void 0,(a=zo(o))in r?ei.f(r,a,Rr(0,i)):r[a]=i;return c.length=f,c}(cu(e,"\n"),t),"\n");return e},yu=function(e,t){eo(t)&&"cause"in t&&ti(e,"cause",t.cause)},mu=Vr(Vr.bind),bu=function(e,t){return mo(e),void 0===t?e:mu?mu(e,t):function(){return e.apply(t,arguments)}},wu={},xu=Lo("iterator"),Eu=Array.prototype,Su=Lo("iterator"),Du=function(e){if(null!=e)return bo(e,Su)||bo(e,"@@iterator")||wu[ua(e)]},Cu=Br.TypeError,Au=function(e,t,n){var r,o;Xo(e);try{if(!(r=bo(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 Xo(r),n},Ou=Br.TypeError,ku=function(e,t){this.stopped=e,this.result=t},Bu=ku.prototype,Fu=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=bu(t,c),g=function(e){return r&&Au(r,"normal",e),new ku(!0,e)},v=function(e){return f?(Xo(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=Du(e)))throw Ou(vo(e)+" is not iterable");if(function(e){return void 0!==e&&(wu.Array===e||Eu[xu]===e)}(o)){for(i=0,a=Pi(e);a>i;i++)if((u=v(e[i]))&&ro(Bu,u))return u;return new ku(!1)}r=function(e,t){var n=arguments.length<2?Du(e):t;if(mo(n))return Xo(Pr(n,e));throw Cu(vo(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Pr(s,r)).done;){try{u=v(l.value)}catch(e){Au(r,"throw",e)}if("object"==typeof u&&u&&ro(Bu,u))return u}return new ku(!1)},Tu=function(e,t){return void 0===e?arguments.length<2?"":t:la(e)},_u=!Fr((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Rr(1,7)),7!==e.stack)})),Pu=Lo("toStringTag"),ju=Br.Error,Nu=[].push,Iu=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=ro(Lu,this);au?n=au(new ju(void 0),o?ru(this):Lu):(n=o?this:Aa(Lu),ti(n,Pu,"Error")),ti(n,"message",Tu(t,"")),_u&&ti(n,"stack",vu(n.stack,1)),yu(n,r);var i=[];return Fu(e,Nu,{that:i}),ti(n,"errors",i),n};au?au(Iu,ju):Wi(Iu,ju);var Lu=Iu.prototype=Aa(ju.prototype,{constructor:Rr(1,Iu),message:Rr(1,""),name:Rr(1,"AggregateError")});ea({global:!0},{AggregateError:Iu});var Ru=Lo("unscopables"),Mu=Array.prototype;null==Mu[Ru]&&ei.f(Mu,Ru,{configurable:!0,value:Aa(null)});var zu,$u,Hu,Vu=function(e){Mu[Ru][e]=!0},Uu=Lo("iterator"),Wu=!1;[].keys&&("next"in(Hu=[].keys())?($u=ru(ru(Hu)))!==Object.prototype&&(zu=$u):Wu=!0);var qu=null==zu||Fr((function(){var e={};return zu[Uu].call(e)!==e}));qu&&(zu={}),Qr(zu[Uu])||Di(zu,Uu,(function(){return this}));var Gu={IteratorPrototype:zu,BUGGY_SAFARI_ITERATORS:Wu},Ku=ei.f,Yu=Lo("toStringTag"),Xu=function(e,t,n){e&&!ko(e=n?e:e.prototype,Yu)&&Ku(e,Yu,{configurable:!0,value:t})},Zu=Gu.IteratorPrototype,Ju=function(){return this},Qu=Si.PROPER,es=Si.CONFIGURABLE,ts=Gu.IteratorPrototype,ns=Gu.BUGGY_SAFARI_ITERATORS,rs=Lo("iterator"),os=function(){return this},is=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Aa(Zu,{next:Rr(1,n)}),Xu(e,o,!1),wu[o]=Ju}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!ns&&e in p)return p[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",d=!1,p=e.prototype,h=p[rs]||p["@@iterator"]||o&&p[o],g=!ns&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=ru(v.call(new e)))!==Object.prototype&&u.next&&(ru(u)!==ts&&(au?au(u,ts):Qr(u[rs])||Di(u,rs,os)),Xu(u,f,!0)),Qu&&"values"==o&&h&&"values"!==h.name&&(es?ti(p,"name","values"):(d=!0,g=function(){return Pr(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(ns||d||!(l in p))&&Di(p,l,s[l]);else ea({target:t,proto:!0,forced:ns||d},s);return p[rs]!==g&&Di(p,rs,g,{name:o}),wu[t]=g,s},as=bi.set,us=bi.getterFor("Array Iterator"),ss=is(Array,"Array",(function(e,t){as(this,{type:"Array Iterator",target:Jr(e),index:0,kind:t})}),(function(){var e=us(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");wu.Arguments=wu.Array,Vu("keys"),Vu("values"),Vu("entries");var ls=Ka.charAt,cs=bi.set,fs=bi.getterFor("String Iterator");is(String,"String",(function(e){cs(this,{type:"String Iterator",string:la(e),index:0})}),(function(){var e,t=fs(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ls(n,r),t.index+=e.length,{value:e,done:!1})}));var ds,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},hs=Vo("span").classList,gs=hs&&hs.constructor&&hs.constructor.prototype,vs=gs===Object.prototype?void 0:gs,ys=Lo("iterator"),ms=Lo("toStringTag"),bs=ss.values,ws=function(e,t){if(e){if(e[ys]!==bs)try{ti(e,ys,bs)}catch(t){e[ys]=bs}if(e[ms]||ti(e,ms,t),ps[t])for(var n in ss)if(e[n]!==ss[n])try{ti(e,n,ss[n])}catch(t){e[n]=ss[n]}}};for(var xs in ps)ws(Br[xs]&&Br[xs].prototype,xs);function Es(){"undefined"==typeof globalThis&&(window.globalThis=window)}function Ss(){void 0===Or&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}ws(vs,"DOMTokenList"),void 0===u.g?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),Es(),Ss()):u.g&&(null===(ds=u.g.navigator)||void 0===ds?void 0:ds.userAgent.match("QQBrowser"))&&(Es(),Ss());var Ds=Array.isArray||function(e){return"Array"==j(e)},Cs=function(){},As=[],Os=U("Reflect","construct"),ks=/^\s*(?:class|function)\b/,Bs=x(ks.exec),Fs=!ks.exec(Cs),Ts=function(e){if(!E(e))return!1;try{return Os(Cs,As,e),!0}catch(e){return!1}},_s=!Os||S((function(){var e;return Ts(Ts.call)||!Ts(Object)||!Ts((function(){e=!0}))||e}))?function(e){if(!E(e))return!1;switch(ln(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Fs||!!Bs(ks,Tn(e))}:Ts,Ps=De("species"),js=f.Array,Ns=function(e,t){return new(function(e){var t;return Ds(e)&&(t=e.constructor,(_s(t)&&(t===js||Ds(t.prototype))||$(t)&&null===(t=t[Ps]))&&(t=void 0)),void 0===t?js:t}(e))(0===t?0:t)},Is=De("species"),Ls=De("isConcatSpreadable"),Rs=f.TypeError,Ms=J>=51||!S((function(){var e=[];return e[Ls]=!1,e.concat()[0]!==e})),zs=("concat",J>=51||!S((function(){var e=[];return(e.constructor={})[Is]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),$s=function(e){if(!$(e))return!1;var t=e[Ls];return void 0!==t?!!t:Ds(e)};et({target:"Array",proto:!0,forced:!Ms||!zs},{concat:function(e){var t,n,r,o,i,a=pe(this),u=Ns(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if($s(i=-1===t?a:arguments[t])){if(s+(o=mt(i))>9007199254740991)throw Rs("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&$t(u,s,i[n])}else{if(s>=9007199254740991)throw Rs("Maximum allowed index exceeded");$t(u,s++,i)}return u.length=s,u}});var Hs=kt.f,Vs="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Us={f:function(e){return Vs&&"Window"==j(e)?function(e){try{return Hs(e)}catch(e){return Ut(Vs)}}(e):Hs(z(e))}},Ws=x([].slice),qs={f:De},Gs=Xe.f,Ks=function(e){var t=H.Symbol||(H.Symbol={});ge(t,e)||Gs(t,e,{value:qs.f(e)})},Ys=x([].push),Xs=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,l,c,f){for(var d,p,h=pe(s),g=L(h),v=Ve(l,c),y=mt(g),m=0,b=f||Ns,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Ys(w,d)}else switch(e){case 4:return!1;case 7:Ys(w,d)}return i?-1:r||o?o:w}},Zs=[Xs(0),Xs(1),Xs(2),Xs(3),Xs(4),Xs(5),Xs(6),Xs(7)][0],Js=nt("hidden"),Qs=De("toPrimitive"),el=Un.set,tl=Un.getterFor("Symbol"),nl=Object.prototype,rl=f.Symbol,ol=rl&&rl.prototype,il=f.TypeError,al=f.QObject,ul=U("JSON","stringify"),sl=je.f,ll=Xe.f,cl=Us.f,fl=F.f,dl=x([].push),pl=fe("symbols"),hl=fe("op-symbols"),gl=fe("string-to-symbol-registry"),vl=fe("symbol-to-string-registry"),yl=fe("wks"),ml=!al||!al.prototype||!al.prototype.findChild,bl=D&&S((function(){return 7!=zt(ll({},"a",{get:function(){return ll(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=sl(nl,t);r&&delete nl[t],ll(e,t,n),r&&e!==nl&&ll(nl,t,r)}:ll,wl=function(e,t){var n=pl[e]=zt(ol);return el(n,{type:"Symbol",tag:e,description:t}),D||(n.description=t),n},xl=function(e,t,n){e===nl&&xl(hl,t,n),qe(e);var r=Oe(t);return qe(n),ge(pl,r)?(n.enumerable?(ge(e,Js)&&e[Js][r]&&(e[Js][r]=!1),n=zt(n,{enumerable:T(0,!1)})):(ge(e,Js)||ll(e,Js,T(1,{})),e[Js][r]=!0),bl(e,r,n)):ll(e,r,n)},El=function(e,t){qe(e);var n=z(t),r=_t(n).concat(Al(n));return Zs(r,(function(t){D&&!A(Sl,n,t)||xl(e,t,n[t])})),e},Sl=function(e){var t=Oe(e),n=A(fl,this,t);return!(this===nl&&ge(pl,t)&&!ge(hl,t))&&(!(n||!ge(this,t)||!ge(pl,t)||ge(this,Js)&&this[Js][t])||n)},Dl=function(e,t){var n=z(e),r=Oe(t);if(n!==nl||!ge(pl,r)||ge(hl,r)){var o=sl(n,r);return!o||!ge(pl,r)||ge(n,Js)&&n[Js][r]||(o.enumerable=!0),o}},Cl=function(e){var t=cl(z(e)),n=[];return Zs(t,(function(e){ge(pl,e)||ge(xt,e)||dl(n,e)})),n},Al=function(e){var t=e===nl,n=cl(t?hl:z(e)),r=[];return Zs(n,(function(e){!ge(pl,e)||t&&!ge(nl,e)||dl(r,pl[e])})),r};if(Q||(ol=(rl=function(){if(W(ol,this))throw il("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?bn(arguments[0]):void 0,t=be(e),n=function(e){this===nl&&A(n,hl,e),ge(this,Js)&&ge(this[Js],t)&&(this[Js][t]=!1),bl(this,t,T(1,e))};return D&&ml&&bl(nl,t,{configurable:!0,set:n}),wl(t,e)}).prototype,Yn(ol,"toString",(function(){return tl(this).tag})),Yn(rl,"withoutSetter",(function(e){return wl(be(e),e)})),F.f=Sl,Xe.f=xl,je.f=Dl,kt.f=Us.f=Cl,Bt.f=Al,qs.f=function(e){return wl(De(e),e)},D&&ll(ol,"description",{configurable:!0,get:function(){return tl(this).description}})),et({global:!0,wrap:!0,forced:!Q,sham:!Q},{Symbol:rl}),Zs(_t(yl),(function(e){Ks(e)})),et({target:"Symbol",stat:!0,forced:!Q},{for:function(e){var t=bn(e);if(ge(gl,t))return gl[t];var n=rl(t);return gl[t]=n,vl[n]=t,n},keyFor:function(e){if(!ne(e))throw il(e+" is not a symbol");if(ge(vl,e))return vl[e]},useSetter:function(){ml=!0},useSimple:function(){ml=!1}}),et({target:"Object",stat:!0,forced:!Q,sham:!D},{create:function(e,t){return void 0===t?zt(e):El(zt(e),t)},defineProperty:xl,defineProperties:El,getOwnPropertyDescriptor:Dl}),et({target:"Object",stat:!0,forced:!Q},{getOwnPropertyNames:Cl,getOwnPropertySymbols:Al}),et({target:"Object",stat:!0,forced:S((function(){Bt.f(1)}))},{getOwnPropertySymbols:function(e){return Bt.f(pe(e))}}),ul){var Ol=!Q||S((function(){var e=rl();return"[null]"!=ul([e])||"{}"!=ul({a:e})||"{}"!=ul(Object(e))}));et({target:"JSON",stat:!0,forced:Ol},{stringify:function(e,t,n){var r=Ws(arguments),o=t;if(($(t)||void 0!==e)&&!ne(e))return Ds(t)||(t=function(e,t){if(E(o)&&(t=A(o,this,e,t)),!ne(t))return t}),r[1]=t,v(ul,null,r)}})}if(!ol[Qs]){var kl=ol.valueOf;Yn(ol,Qs,(function(e){return A(kl,this)}))}rr(rl,"Symbol"),xt[Js]=!0,Ks("asyncIterator"),Ks("hasInstance"),Ks("isConcatSpreadable"),Ks("iterator"),Ks("match"),Ks("matchAll"),Ks("replace"),Ks("search"),Ks("species"),Ks("split"),Ks("toPrimitive"),Ks("toStringTag"),Ks("unscopables"),rr(f.JSON,"JSON",!0);var Bl=H.Symbol;Ks("asyncDispose"),Ks("dispose"),Ks("matcher"),Ks("metadata"),Ks("observable"),Ks("patternMatch"),Ks("replaceAll");var Fl=Bl,Tl=qs.f("iterator"),_l=i((function(e){function t(n){return"function"==typeof Fl&&"symbol"==typeof Tl?(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 Fl&&e.constructor===Fl&&e!==Fl.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})),Pl=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(_l),jl=Go.f,Nl=Fr((function(){jl(1)}));if(ea({target:"Object",stat:!0,forced:!Tr||Nl,sham:!Tr},{getOwnPropertyDescriptor:function(e,t){return jl(Jr(e),t)}}),"object"===(void 0===u.g?"undefined":Pl(u.g))){var Il=Object.getOwnPropertyDescriptor(u.g,"window");u.g.window&&!Il.set||(u.g.window=u.g,u.g.requestAnimationFrame=function(){},u.g.navigator={userAgent:""},u.g.location={hostname:"0.0.0.0",port:0,protocol:"http:"},u.g.btoa=function(){},u.g.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=u.g.document&&null==u.g.document.getElementsByTagName&&(u.g.document.getElementsByTagName=function(){return[]})}
15
+ /*!
16
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
17
+ *
18
+ * Copyright (c) 2014-2017, Jon Schlinkert.
19
+ * Released under the MIT License.
20
+ */function Ll(e){return"[object Object]"===Object.prototype.toString.call(e)}function Rl(e){var t,n;return!1!==Ll(e)&&(void 0===(t=e.constructor)||!1!==Ll(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Ml(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 zl(e){return!!e&&!!e[Dc]}function $l(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)===Cc}(e)||Array.isArray(e)||!!e[Sc]||!!e.constructor[Sc]||ql(e)||Gl(e))}function Hl(e,t,n){void 0===n&&(n=!1),0===Vl(e)?(n?Object.keys:Ac)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Vl(e){var t=e[Dc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ql(e)?2:Gl(e)?3:0}function Ul(e,t){return 2===Vl(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Wl(e,t,n){var r=Vl(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function ql(e){return bc&&e instanceof Map}function Gl(e){return wc&&e instanceof Set}function Kl(e){return e.o||e.t}function Yl(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Oc(e);delete t[Dc];for(var n=Ac(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 Xl(e,t){return void 0===t&&(t=!1),Jl(e)||zl(e)||!$l(e)||(Vl(e)>1&&(e.set=e.add=e.clear=e.delete=Zl),Object.freeze(e),t&&Hl(e,(function(e,t){return Xl(t,!0)}),!0)),e}function Zl(){Ml(2)}function Jl(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Ql(e){var t=kc[e];return t||Ml(18,e),t}function ec(){return yc}function tc(e,t){t&&(Ql("Patches"),e.u=[],e.s=[],e.v=t)}function nc(e){rc(e),e.p.forEach(ic),e.p=null}function rc(e){e===yc&&(yc=e.l)}function oc(e){return yc={p:[],l:yc,h:e,m:!0,_:0}}function ic(e){var t=e[Dc];0===t.i||1===t.i?t.j():t.O=!0}function ac(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Ql("ES5").S(t,e,r),r?(n[Dc].P&&(nc(t),Ml(4)),$l(e)&&(e=uc(t,e),t.l||lc(t,e)),t.u&&Ql("Patches").M(n[Dc],e,t.u,t.s)):e=uc(t,n,[]),nc(t),t.u&&t.v(t.u,t.s),e!==Ec?e:void 0}function uc(e,t,n){if(Jl(t))return t;var r=t[Dc];if(!r)return Hl(t,(function(o,i){return sc(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return lc(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Yl(r.k):r.o;Hl(3===r.i?new Set(o):o,(function(t,i){return sc(e,r,o,t,i,n)})),lc(e,o,!1),n&&e.u&&Ql("Patches").R(r,n,e.u,e.s)}return r.o}function sc(e,t,n,r,o,i){if(zl(o)){var a=uc(e,o,i&&t&&3!==t.i&&!Ul(t.D,r)?i.concat(r):void 0);if(Wl(n,r,a),!zl(a))return;e.m=!1}if($l(o)&&!Jl(o)){if(!e.h.F&&e._<1)return;uc(e,o),t&&t.A.l||lc(e,o)}}function lc(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Xl(t,n)}function cc(e,t){var n=e[Dc];return(n?Kl(n):e)[t]}function fc(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 dc(e){e.P||(e.P=!0,e.l&&dc(e.l))}function pc(e){e.o||(e.o=Yl(e.t))}function hc(e,t,n){var r=ql(t)?Ql("MapSet").N(t,n):Gl(t)?Ql("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:ec(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Bc;n&&(o=[r],i=Fc);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):Ql("ES5").J(t,n);return(n?n.A:ec()).p.push(r),r}function gc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Yl(e)}var vc,yc,mc="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),bc="undefined"!=typeof Map,wc="undefined"!=typeof Set,xc="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ec=mc?Symbol.for("immer-nothing"):((vc={})["immer-nothing"]=!0,vc),Sc=mc?Symbol.for("immer-draftable"):"__$immer_draftable",Dc=mc?Symbol.for("immer-state"):"__$immer_state",Cc=""+Object.prototype.constructor,Ac="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Oc=Object.getOwnPropertyDescriptors||function(e){var t={};return Ac(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},kc={},Bc={get:function(e,t){if(t===Dc)return e;var n=Kl(e);if(!Ul(n,t))return function(e,t,n){var r,o=fc(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||!$l(r)?r:r===cc(e.t,t)?(pc(e),e.o[t]=hc(e.A.h,r,e)):r},has:function(e,t){return t in Kl(e)},ownKeys:function(e){return Reflect.ownKeys(Kl(e))},set:function(e,t,n){var r=fc(Kl(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=cc(Kl(e),t),i=null==o?void 0:o[Dc];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||Ul(e.t,t)))return!0;pc(e),dc(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!==cc(e.t,t)||t in e.t?(e.D[t]=!1,pc(e),dc(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Kl(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(){Ml(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ml(12)}},Fc={};Hl(Bc,(function(e,t){Fc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Fc.deleteProperty=function(e,t){return Bc.deleteProperty.call(this,e[0],t)},Fc.set=function(e,t,n){return Bc.set.call(this,e[0],t,n,e[0])};var Tc=function(){function e(e){var t=this;this.g=xc,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&&Ml(6),void 0!==r&&"function"!=typeof r&&Ml(7),$l(e)){var u=oc(t),s=hc(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?nc(u):rc(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return tc(u,r),ac(e,u)}),(function(e){throw nc(u),e})):(tc(u,r),ac(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===Ec)return;return void 0===a&&(a=e),t.F&&Xl(a,!0),a}Ml(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){$l(e)||Ml(8),zl(e)&&(e=function(e){return zl(e)||Ml(22,e),function e(t){if(!$l(t))return t;var n,r=t[Dc],o=Vl(t);if(r){if(!r.P&&(r.i<4||!Ql("ES5").K(r)))return r.t;r.I=!0,n=gc(t,o),r.I=!1}else n=gc(t,o);return Hl(n,(function(t,o){r&&function(e,t){return 2===Vl(e)?e.get(t):e[t]}(r.t,t)===o||Wl(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=oc(this),n=hc(this,e,void 0);return n[Dc].C=!0,rc(t),n},t.finishDraft=function(e,t){var n=(e&&e[Dc]).A;return tc(n,t),ac(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!xc&&Ml(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=Ql("Patches").$;return zl(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),_c=new Tc,Pc=_c.produce;_c.produceWithPatches.bind(_c),_c.setAutoFreeze.bind(_c),_c.setUseProxies.bind(_c),_c.applyPatches.bind(_c);var jc=_c.createDraft.bind(_c),Nc=_c.finishDraft.bind(_c);function Ic(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lc=new WeakMap,Rc=new WeakMap,Mc=new WeakMap,zc=new WeakMap,$c=new WeakMap,Hc=new WeakMap;function Vc(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 Uc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vc(Object(n),!0).forEach((function(t){Ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wc=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=Jf.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 l=[],c=[];for(var f of Lf.ancestors(u)){var d=Lf.transform(f,e);l.push(d)}for(var p of Lf.ancestors(s)){var h=Lf.transform(p,e);c.push(h)}var g=c[c.length-1],v=s[s.length-1],y=g.concat(v);return[...l,...c,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 qc(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 Gc,Kc=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?ef(e):e,o=Gc.None,i=Gc.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=pf(s,l);if([o,i]=n?[i,c]:[c,o],hf(o,Gc.ZWJ)&&hf(i,Gc.ExtPict)&&!mf(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(hf(o,Gc.RI)&&hf(i,Gc.RI)&&!(u=null!==u?!u:!!n||wf(e.substring(0,e.length-a))))break;if(o!==Gc.None&&i!==Gc.None&&vf(o,i))break;a+=s.length}return a||1},Yc=/\s/,Xc=/[\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]/,Zc=/['\u2018\u2019]/,Jc=(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)]},Qc=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Yc.test(t))return!1;if(Zc.test(t)){var o=Kc(n,r),[i,a]=Jc(n,o,r);if(e(i,a,r))return!0}return!Xc.test(t)},ef=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(nf(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(tf(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},tf=e=>e>=55296&&e<=56319,nf=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"}(Gc||(Gc={}));var rf=/^(?:[\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])$/,of=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,af=/^(?:[\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])$/,uf=/^[\u1100-\u115F\uA960-\uA97C]$/,sf=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,lf=/^[\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]$/,ff=/^[\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]$/,df=/^(?:[\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=Gc.Any;return-1!==e.search(rf)&&(n|=Gc.Extend),8205===t&&(n|=Gc.ZWJ),t>=127462&&t<=127487&&(n|=Gc.RI),-1!==e.search(of)&&(n|=Gc.Prepend),-1!==e.search(af)&&(n|=Gc.SpacingMark),-1!==e.search(uf)&&(n|=Gc.L),-1!==e.search(sf)&&(n|=Gc.V),-1!==e.search(lf)&&(n|=Gc.T),-1!==e.search(cf)&&(n|=Gc.LV),-1!==e.search(ff)&&(n|=Gc.LVT),-1!==e.search(df)&&(n|=Gc.ExtPict),n};function hf(e,t){return 0!=(e&t)}var gf=[[Gc.L,Gc.L|Gc.V|Gc.LV|Gc.LVT],[Gc.LV|Gc.V,Gc.V|Gc.T],[Gc.LVT|Gc.T,Gc.T],[Gc.Any,Gc.Extend|Gc.ZWJ],[Gc.Any,Gc.SpacingMark],[Gc.Prepend,Gc.Any],[Gc.ZWJ,Gc.ExtPict],[Gc.RI,Gc.RI]];function vf(e,t){return-1===gf.findIndex((n=>hf(e,n[0])&&hf(t,n[1])))}var yf=/(?:[\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$/,mf=e=>-1!==e.search(yf),bf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,wf=e=>{var t=e.match(bf);return null!==t&&t[0].length/2%2==1},xf=e=>Rl(e)&&Pf.isNodeList(e.children)&&!kf.isEditor(e),Ef={isAncestor:e=>Rl(e)&&Pf.isNodeList(e.children),isElement:xf,isElementList:e=>Array.isArray(e)&&e.every((e=>Ef.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 xf(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Sf=["text"],Df=["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 Af(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){Ic(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,kf={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=kf.path(e,o),u="lowest"===r;for(var[s,l]of kf.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!Jf.isText(s)&&!Lf.equals(a,l))return[s,l]}},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:kf.point(e,t,{edge:"end"}),focus:kf.end(e,[])},{distance:i=1}=r,a=0;for(var u of kf.positions(e,Af(Af({},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:kf.start(e,[]),focus:kf.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of kf.positions(e,Af(Af({},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)=>[kf.start(e,t),kf.end(e,t)],end:(e,t)=>kf.point(e,t,{edge:"end"}),first(e,t){var n=kf.path(e,t,{edge:"start"});return kf.node(e,n)},fragment(e,t){var n=kf.range(e,t);return Pf.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>kf.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>Jf.isText(t)||kf.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>Jf.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)=>Ef.isElement(t)&&!e.isInline(t),isEditor(e){if(!Rl(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||Rl(e.marks))&&(null===e.selection||Wf.isRange(e.selection))&&Pf.isNodeList(e.children)&&If.isOperationList(e.operations);return Of.set(e,n),n},isEnd(e,t,n){var r=kf.end(e,n);return $f.equals(t,r)},isEdge:(e,t,n)=>kf.isStart(e,t,n)||kf.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Jf.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>Ef.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Mc.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=kf.start(e,n);return $f.equals(t,r)},isVoid:(e,t)=>Ef.isElement(t)&&e.isVoid(t),last(e,t){var n=kf.path(e,t,{edge:"end"});return kf.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=kf.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=kf.path(e,n);for(var[s,l]of Pf.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&kf.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(Wf.isExpanded(n)){var[r]=kf.nodes(e,{match:Jf.isText});if(r){var[o]=r;return qc(o,Sf)}return{}}var{anchor:i}=n,{path:a}=i,[u]=kf.leaf(e,a);if(0===i.offset){var s=kf.previous(e,{at:a,match:Jf.isText}),l=kf.above(e,{match:t=>kf.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;Lf.isAncestor(d,f)&&(u=c)}}return qc(u,Df)},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=kf.after(e,i,{voids:r});if(a){var[,u]=kf.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[l]=kf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=kf.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=kf.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,l;if(Bf.isSpan(n))s=n[0],l=n[1];else{var c=kf.path(e,n,{edge:"start"}),f=kf.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Pf.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&kf.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===Lf.compare(v,d[1]);if("highest"!==r||!y)if(u(g,v))if("lowest"===r&&y)d=[g,v];else{var m="lowest"===r?d:[g,v];m&&(o?h.push(m):yield m),d=[g,v]}else if(o&&!y&&Jf.isText(g))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>Lc.get(e)||[];if(kf.isNormalizing(e)){if(n){var o=Array.from(Pf.nodes(e),(e=>{var[,t]=e;return t}));Lc.set(e,o)}0!==r(e).length&&kf.withoutNormalizing(e,(()=>{for(var t of r(e))if(Pf.has(e,t)){var n=kf.node(e,t),[o,i]=n;Ef.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 l=kf.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=kf.path(e,t,n),o=Lf.parent(r);return kf.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 Wf.isRange(t)&&(t="start"===o?Wf.start(t):"end"===o?Wf.end(t):Lf.common(t.anchor.path,t.focus.path)),$f.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 kf.pathRefs(e).delete(o),o.current=null,t}};return kf.pathRefs(e).add(o),o},pathRefs(e){var t=zc.get(e);return t||(t=new Set,zc.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(!Jf.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(Wf.isRange(t)){var[s,l]=Wf.edges(t);return"start"===r?s:l}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 kf.pointRefs(e).delete(o),o.current=null,t}};return kf.pointRefs(e).add(o),o},pointRefs(e){var t=$c.get(e);return t||(t=new Set,$c.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=kf.range(e,n),[u,s]=Wf.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,h=0;for(var[g,v]of kf.nodes(e,{at:n,reverse:o,voids:i})){if(Ef.isElement(g)){if(!i&&e.isVoid(g)){yield kf.start(e,v);continue}if(e.isInline(g))continue;if(kf.hasInlines(e,g)){var y=Lf.isAncestor(v,s.path)?s:kf.end(e,v),m=Lf.isAncestor(v,u.path)?u:kf.start(e,v);f=kf.string(e,{anchor:m,focus:y},{voids:i}),c=!0}}if(Jf.isText(g)){var b=Lf.equals(v,l.path);for(b?(p=o?l.offset:g.text.length-l.offset,h=l.offset):(p=g.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:v,offset:h},c=!1);;){if(0===d){if(""===f)break;d=w(f,r,o),f=Jc(f,d,o)[1]}if(h=o?h-d:h+d,(p-=d)<0){d=-p;break}d=0,yield{path:v,offset:h}}}}}function w(e,t,n){return"character"===t?Kc(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=Kc(e,t),[i,a]=Jc(e,o,t);if(Qc(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=kf.before(e,i,{voids:r});if(a){var[,u]=kf.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[l]=kf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=kf.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>Wf.isRange(t)&&!n?t:{anchor:kf.start(e,t),focus:kf.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 kf.rangeRefs(e).delete(o),o.current=null,t}};return kf.rangeRefs(e).add(o),o},rangeRefs(e){var t=Hc.get(e);return t||(t=new Set,Hc.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Mc.set(e,t)},start:(e,t)=>kf.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=kf.range(e,t),[i,a]=Wf.edges(o),u="";for(var[s,l]of kf.nodes(e,{at:o,match:Jf.isText,voids:r})){var c=s.text;Lf.equals(l,a.path)&&(c=c.slice(0,a.offset)),Lf.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=Wf.edges(t);if(0!==o.offset||0!==i.offset||Wf.isCollapsed(t))return t;var a=kf.above(e,{at:i,match:t=>kf.isBlock(e,t)}),u=a?a[1]:[],s={anchor:kf.start(e,[]),focus:i},l=!0;for(var[c,f]of kf.nodes(e,{at:s,match:Jf.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||Lf.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return kf.above(e,Af(Af({},t),{},{match:t=>kf.isVoid(e,t)}))},withoutNormalizing(e,t){var n=kf.isNormalizing(e);kf.setNormalizing(e,!1);try{t()}finally{kf.setNormalizing(e,n)}kf.normalize(e)}},Bf={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Lf.isPath)},Ff=["children"],Tf=["text"],_f=new WeakMap,Pf={ancestor(e,t){var n=Pf.get(e,t);if(Jf.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(Jf.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(kf.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))Ef.isElement(n)&&(yield[n,r])},extractProps:e=>Ef.isAncestor(e)?qc(e,Ff):qc(e,Tf),first(e,t){for(var n=t.slice(),r=Pf.get(e,n);r&&!Jf.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Jf.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Pc({children:e.children},(e=>{var[n,r]=Wf.edges(t),o=Pf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Wf.includes(t,n)}});for(var[,i]of o){if(!Wf.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 l=Pf.leaf(e,i);l.text=l.text.slice(n.offset)}}kf.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(Jf.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(Jf.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Jf.isText(e)||Ef.isElement(e)||kf.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=_f.get(e);if(void 0!==t)return t;var n=e.every((e=>Pf.isNode(e)));return _f.set(e,n),n},last(e,t){for(var n=t.slice(),r=Pf.get(e,n);r&&!Jf.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(!Jf.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)=>Ef.isElement(e)&&Ef.isElementProps(t)&&Ef.matches(e,t)||Jf.isText(e)&&Jf.isTextProps(t)&&Jf.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)||Jf.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=Lf.next(u);if(Pf.has(e,l)){u=l,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 c=r?s.children.length-1:0;Lf.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Pf.get(e,u)}},parent(e,t){var n=Lf.parent(t),r=Pf.get(e,n);if(Jf.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=>Jf.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))Jf.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 Nf(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){Ic(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 If={isNodeOperation:e=>If.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Rl(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)&&Rl(e.properties);case"move_node":return Lf.isPath(e.path)&&Lf.isPath(e.newPath);case"set_node":return Lf.isPath(e.path)&&Rl(e.properties)&&Rl(e.newProperties);case"set_selection":return null===e.properties&&Wf.isRange(e.newProperties)||null===e.newProperties&&Wf.isRange(e.properties)||Rl(e.properties)&&Rl(e.newProperties);case"split_node":return Lf.isPath(e.path)&&"number"==typeof e.position&&Rl(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>If.isOperation(e))),isSelectionOperation:e=>If.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>If.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Nf(Nf({},e),{},{type:"remove_node"});case"insert_text":return Nf(Nf({},e),{},{type:"remove_text"});case"merge_node":return Nf(Nf({},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 Nf(Nf({},e),{},{path:t,newPath:n});var r=Lf.transform(n,e),o=Lf.transform(Lf.next(n),e);return Nf(Nf({},e),{},{path:r,newPath:o});case"remove_node":return Nf(Nf({},e),{},{type:"insert_node"});case"remove_text":return Nf(Nf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Nf(Nf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return Nf(Nf({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Nf(Nf({},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 Pc(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:l,position:c}=t;if(Lf.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Lf.endsBefore(l,r)?r[l.length-1]+=1:Lf.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(Lf.equals(f,d))return;if(Lf.isAncestor(f,r)||Lf.equals(f,r)){var p=d.slice();return Lf.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}Lf.isSibling(f,d)&&(Lf.isAncestor(d,r)||Lf.equals(d,r))?Lf.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Lf.endsBefore(d,r)||Lf.equals(d,r)||Lf.isAncestor(d,r)?(Lf.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):Lf.endsBefore(f,r)&&(Lf.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},Rf={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 Mf(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 zf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mf(Object(n),!0).forEach((function(t){Ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $f={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===$f.compare(e,t),isBefore:(e,t)=>-1===$f.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Lf.equals(e.path,t.path),isPoint:e=>Rl(e)&&"number"==typeof e.offset&&Lf.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Pc(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,zf(zf({},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=$f.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Vf=["anchor","focus"];function Uf(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 Wf={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Wf.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Wf.edges(e);return t},equals:(e,t)=>$f.equals(e.anchor,t.anchor)&&$f.equals(e.focus,t.focus),includes(e,t){if(Wf.isRange(t)){if(Wf.includes(e,t.anchor)||Wf.includes(e,t.focus))return!0;var[n,r]=Wf.edges(e),[o,i]=Wf.edges(t);return $f.isBefore(n,o)&&$f.isAfter(r,i)}var[a,u]=Wf.edges(e),s=!1,l=!1;return $f.isPoint(t)?(s=$f.compare(t,a)>=0,l=$f.compare(t,u)<=0):(s=Lf.compare(t,a.path)>=0,l=Lf.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=qc(e,Vf),[r,o]=Wf.edges(e),[i,a]=Wf.edges(t),u=$f.isBefore(r,i)?i:r,s=$f.isBefore(o,a)?o:a;return $f.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uf(Object(n),!0).forEach((function(t){Ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uf(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 $f.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return $f.equals(t,n)},isExpanded:e=>!Wf.isCollapsed(e),isForward:e=>!Wf.isBackward(e),isRange:e=>Rl(e)&&$f.isPoint(e.anchor)&&$f.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Wf.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Pc(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=Wf.isCollapsed(e);Wf.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?Wf.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=$f.transform(e.anchor,t,{affinity:r}),s=$f.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},qf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Wf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Gf=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Rl(r)&&Rl(o)){if(!Gf(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},Kf=["text"],Yf=["anchor","focus"];function Xf(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 Zf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xf(Object(n),!0).forEach((function(t){Ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jf={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return qc(e,Kf)}return Gf(r?o(e):e,r?o(t):t)},isText:e=>Rl(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>Jf.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=[Zf({},e)];for(var r of t){var o=qc(r,Yf),[i,a]=Wf.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);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(l);else{var d=l,p=void 0,h=void 0;if(a.offset<s){var g=a.offset-f;h=Zf(Zf({},d),{},{text:d.text.slice(g)}),d=Zf(Zf({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=Zf(Zf({},d),{},{text:d.text.slice(0,v)}),d=Zf(Zf({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function Qf(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 ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qf(Object(n),!0).forEach((function(t){Ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var td={transform(e,t){e.children=jc(e.children);var n=e.selection&&jc(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 Wf.points(t))t[s]=$f.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=Pf.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[g,v]of Wf.points(t))t[v]=$f.transform(g,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(Jf.isText(m)&&Jf.isText(w))w.text+=m.text;else{if(Jf.isText(m)||Jf.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,D]of Wf.points(t))t[D]=$f.transform(S,n);break;case"move_node":var{path:C,newPath:A}=n;if(Lf.isAncestor(C,A))throw new Error("Cannot move a path [".concat(C,"] to new path [").concat(A,"] because the destination is inside itself."));var O=Pf.get(e,C),k=Pf.parent(e,C),B=C[C.length-1];k.children.splice(B,1);var F=Lf.transform(C,n),T=Pf.get(e,Lf.parent(F)),_=F[F.length-1];if(T.children.splice(_,0,O),t)for(var[P,j]of Wf.points(t))t[j]=$f.transform(P,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1];if(Pf.parent(e,N).children.splice(I,1),t)for(var[L,R]of Wf.points(t)){var M=$f.transform(L,n);if(null!=t&&null!=M)t[R]=M;else{var z=void 0,$=void 0;for(var[H,V]of Pf.texts(e)){if(-1!==Lf.compare(V,N)){$=[H,V];break}z=[H,V]}var U=!1;z&&$&&(U=Lf.equals($[1],N)?!Lf.hasPrevious($[1]):Lf.common(z[1],N).length<Lf.common($[1],N).length),z&&!U?(L.path=z[1],L.offset=z[0].text.length):$?(L.path=$[1],L.offset=0):t=null}}break;case"remove_text":var{path:W,offset:q,text:G}=n;if(0===G.length)break;var K=Pf.leaf(e,W),Y=K.text.slice(0,q),X=K.text.slice(q+G.length);if(K.text=Y+X,t)for(var[Z,J]of Wf.points(t))t[J]=$f.transform(Z,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(!Wf.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=ed({},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:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=Pf.get(e,le),he=Pf.parent(e,le),ge=le[le.length-1];if(Jf.isText(pe)){var ve=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ve,de=ed(ed({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=ed(ed({},fe),{},{children:be})}if(he.children.splice(ge+1,0,de),t)for(var[we,xe]of Wf.points(t))t[xe]=$f.transform(we,n)}return t})(e,n,t)}finally{e.children=Nc(e.children),e.selection=n?zl(n)?Nc(n):n:null}}},nd=["text"],rd=["children"];function od(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 id(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?od(Object(n),!0).forEach((function(t){Ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):od(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ad={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};kf.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[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?kf.end(e,[]):[0],s=!0),null==s&&(s=!1),Wf.isRange(a))if(r||(a=kf.unhangRange(e,a)),Wf.isCollapsed(a))a=a.anchor;else{var[,c]=Wf.edges(a),f=kf.pointRef(e,c);vd.delete(e,{at:a}),a=f.unref()}if($f.isPoint(a)){null==u&&(u=Jf.isText(l)?e=>Jf.isText(e):e.isInline(l)?t=>Jf.isText(t)||kf.isInline(e,t):t=>kf.isBlock(e,t));var[d]=kf.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=kf.pathRef(e,p),g=kf.isEnd(e,a,p);vd.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?Lf.next(v):v}var y=Lf.parent(a),m=a[a.length-1];if(o||!kf.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=kf.end(e,a);x&&vd.select(e,x)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kf.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Lf.isPath(n)?ld(e,n):t=>kf.isBlock(e,t)),n){var a=kf.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return kf.pathRef(e,n)}));for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=kf.node(e,Lf.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=Lf.next(d);vd.moveNodes(e,{at:l,to:g,voids:o}),vd.removeNodes(e,{at:d,voids:o})}else if(0===p)vd.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=Lf.next(d);vd.moveNodes(e,{at:l,to:v,voids:o})}else{var y=Lf.next(l),m=Lf.next(d);vd.splitNodes(e,{at:y,voids:o}),vd.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kf.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]=kf.parent(e,r);n=e=>u.children.includes(e)}else n=t=>kf.isBlock(e,t);if(!o&&Wf.isRange(r)&&(r=kf.unhangRange(e,r)),Wf.isRange(r))if(Wf.isCollapsed(r))r=r.anchor;else{var[,s]=Wf.edges(r),l=kf.pointRef(e,s);vd.delete(e,{at:r}),r=l.unref(),null==t.at&&vd.select(e,r)}var[c]=kf.nodes(e,{at:r,match:n,voids:i,mode:a}),f=kf.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,g]=f;if(0!==p.length&&0!==g.length){var v,y,m=Lf.next(g),b=Lf.common(p,g),w=Lf.isSibling(p,g),x=Array.from(kf.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),E=kf.above(e,{at:p,mode:"highest",match:t=>x.includes(t)&&ud(e,t)}),S=E&&kf.pathRef(e,E[1]);if(Jf.isText(d)&&Jf.isText(h)){var D=qc(d,nd);y=h.text.length,v=D}else{if(!Ef.isElement(d)||!Ef.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));D=qc(d,rd),y=h.children.length,v=D}w||vd.moveNodes(e,{at:p,to:m,voids:i}),S&&vd.removeNodes(e,{at:S.current,voids:i}),Ef.isElement(h)&&kf.isEmpty(e,h)||Jf.isText(h)&&""===h.text&&0!==g[g.length-1]?vd.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),S&&S.unref()}}}}))},moveNodes(e,t){kf.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)?ld(e,r):t=>kf.isBlock(e,t));var u=kf.pathRef(e,n),s=kf.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return kf.pathRef(e,n)}));for(var c of l){var f=c.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&Lf.isSibling(d,f)&&Lf.isAfter(d,f)&&(u.current=Lf.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kf.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)?ld(e,i):t=>kf.isBlock(e,t)),!n&&Wf.isRange(i)&&(i=kf.unhangRange(e,i));var u=kf.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return kf.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=kf.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};kf.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)?ld(e,o):t=>kf.isBlock(e,t)),!i&&Wf.isRange(o)&&(o=kf.unhangRange(e,o)),u&&Wf.isRange(o)){if(Wf.isCollapsed(o)&&kf.leaf(e,o.anchor)[0].text.length>0)return;var l=kf.rangeRef(e,o,{affinity:"inward"}),[c,f]=Wf.edges(o),d="lowest"===a?"lowest":"highest",p=kf.isEnd(e,f,f.path);vd.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=kf.isStart(e,c,c.path);vd.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&vd.select(e,o)}for(var[g,v]of kf.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==v.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(y[w]=g[w]),null!=t[w]&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:v,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kf.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=>kf.isBlock(e,t)),Wf.isRange(i)&&(i=sd(e,i)),Lf.isPath(i)){var s=i,l=kf.point(e,s),[c]=kf.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=kf.pointRef(e,i,{affinity:"backward"}),[d]=kf.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=kf.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(Ef.isElement(h)&&e.isInline(h)){var v=kf.after(e,g);if(!v){var y=Lf.next(g);vd.insertNodes(e,{text:""},{at:y,voids:r}),v=kf.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var m=kf.pointRef(e,i),b=i.path.length-a,[,w]=d,x=i.path.slice(0,b),E=0===a?i.offset:i.path[b]+0;for(var[S,D]of kf.levels(e,{at:x,reverse:!0,voids:r})){var C=!1;if(D.length<w.length||0===D.length||!r&&kf.isVoid(e,S))break;var A=f.current,O=kf.isEnd(e,A,D);if(u||!f||!kf.isEdge(e,A,D)){C=!0;var k=Pf.extractProps(S);e.apply({type:"split_node",path:D,position:E,properties:k})}E=D[D.length-1]+(C||O?1:0)}if(null==t.at){var B=m.current||kf.end(e,[]);vd.select(e,B)}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;vd.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kf.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)?ld(e,i):t=>kf.isBlock(e,t)),Lf.isPath(i)&&(i=kf.range(e,i));var u=Wf.isRange(i)?kf.rangeRef(e,i):null,s=kf.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return kf.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=kf.node(e,n),a=kf.range(e,n);r&&u&&(a=Wf.intersection(u.current,a)),vd.liftNodes(e,{at:a,match:e=>Ef.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};kf.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)?ld(e,u):e.isInline(t)?t=>kf.isInline(e,t)||Jf.isText(t):t=>kf.isBlock(e,t)),o&&Wf.isRange(u)){var[s,l]=Wf.edges(u),c=kf.rangeRef(e,u,{affinity:"inward"});vd.splitNodes(e,{at:l,match:a,voids:i}),vd.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&vd.select(e,u)}var f=Array.from(kf.nodes(e,{at:u,match:e.isInline(t)?t=>kf.isBlock(e,t):e=>kf.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=Wf.isRange(u)?Wf.intersection(u,kf.range(e,d)):u;if(p){var h=Array.from(kf.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0){var g=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=kf.range(e,o,a),l=kf.node(e,u),[c]=l,f=u.length+1,d=Lf.next(a.slice(0,f)),p=id(id({},t),{},{children:[]});vd.insertNodes(e,p,{at:d,voids:i}),vd.moveNodes(e,{at:s,match:e=>Ef.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===g)continue}}}}}))}},ud=(e,t)=>{if(Ef.isElement(t)){var n=t;return!!kf.isVoid(e,t)||1===n.children.length&&ud(e,n.children[0])}return!kf.isEditor(t)},sd=(e,t)=>{if(Wf.isCollapsed(t))return t.anchor;var[,n]=Wf.edges(t),r=kf.pointRef(e,n);return vd.delete(e,{at:t}),r.unref()},ld=(e,t)=>{var[n]=kf.node(e,t);return e=>e===n};function cd(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 fd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cd(Object(n),!0).forEach((function(t){Ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dd={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)vd.select(e,r.anchor);else if("focus"===n)vd.select(e,r.focus);else if("start"===n){var[o]=Wf.edges(r);vd.select(e,o)}else if("end"===n){var[,i]=Wf.edges(r);vd.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=Wf.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Wf.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?kf.before(e,u,l):kf.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?kf.before(e,s,l):kf.after(e,s,l);d&&(c.focus=d)}vd.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=kf.range(e,t),n)vd.setSelection(e,t);else{if(!Wf.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=Wf.isBackward(r)?"focus":"anchor"),"end"===o&&(o=Wf.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;vd.setSelection(e,{["anchor"===o?"anchor":"focus"]:fd(fd({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!$f.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!$f.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})}}},pd={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kf.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(Wf.isRange(a)&&Wf.isCollapsed(a)&&(a=a.anchor),$f.isPoint(a)){var s=kf.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?kf.before(e,a,c)||kf.start(e,[]):kf.after(e,a,c)||kf.end(e,[])},u=!0}}if(Lf.isPath(a))vd.removeNodes(e,{at:a,voids:i});else if(!Wf.isCollapsed(a)){if(!u){var[,f]=Wf.edges(a),d=kf.end(e,[]);$f.equals(f,d)||(a=kf.unhangRange(e,a,{voids:i}))}var[p,h]=Wf.edges(a),g=kf.above(e,{match:t=>kf.isBlock(e,t),at:p,voids:i}),v=kf.above(e,{match:t=>kf.isBlock(e,t),at:h,voids:i}),y=g&&v&&!Lf.equals(g[1],v[1]),m=Lf.equals(p.path,h.path),b=i?null:kf.void(e,{at:p,mode:"highest"}),w=i?null:kf.void(e,{at:h,mode:"highest"});if(b){var x=kf.before(e,p);x&&g&&Lf.isAncestor(g[1],x.path)&&(p=x)}if(w){var E=kf.after(e,h);E&&v&&Lf.isAncestor(v[1],E.path)&&(h=E)}var S,D=[];for(var C of kf.nodes(e,{at:a,voids:i})){var[A,O]=C;S&&0===Lf.compare(O,S)||(!i&&kf.isVoid(e,A)||!Lf.isCommon(O,p.path)&&!Lf.isCommon(O,h.path))&&(D.push(C),S=O)}var k=Array.from(D,(t=>{var[,n]=t;return kf.pathRef(e,n)})),B=kf.pointRef(e,p),F=kf.pointRef(e,h);if(!m&&!b){var T=B.current,[_]=kf.leaf(e,T),{path:P}=T,{offset:j}=p,N=_.text.slice(j);N.length>0&&e.apply({type:"remove_text",path:P,offset:j,text:N})}for(var I of k){var L=I.unref();vd.removeNodes(e,{at:L,voids:i})}if(!w){var R=F.current,[M]=kf.leaf(e,R),{path:z}=R,$=m?p.offset:0,H=M.text.slice($,h.offset);H.length>0&&e.apply({type:"remove_text",path:z,offset:$,text:H})}!m&&y&&F.current&&B.current&&vd.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var V=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&V&&vd.select(e,V)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};kf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Wf.isRange(i))if(r||(i=kf.unhangRange(e,i)),Wf.isCollapsed(i))i=i.anchor;else{var[,a]=Wf.edges(i);if(!o&&kf.void(e,{at:a}))return;var u=kf.pointRef(e,a);vd.delete(e,{at:i}),i=u.unref()}else Lf.isPath(i)&&(i=kf.start(e,i));if(o||!kf.void(e,{at:i})){var s=kf.above(e,{at:i,match:t=>kf.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;kf.isEnd(e,i,l)?i=kf.after(e,l):kf.isStart(e,i,l)&&(i=kf.before(e,l))}var c=kf.above(e,{match:t=>kf.isBlock(e,t),at:i,voids:o}),[,f]=c,d=kf.isStart(e,i,f),p=kf.isEnd(e,i,f),h=d&&p,g=!d||d&&p,v=!p,[,y]=Pf.first({children:t},[]),[,m]=Pf.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(g&&Lf.isAncestor(r,y)&&Ef.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||v&&Lf.isAncestor(r,m)&&Ef.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=[],D=[],C=!0,A=!1;for(var[O]of b)Ef.isElement(O)&&!e.isInline(O)?(C=!1,A=!0,S.push(O)):C?E.push(O):D.push(O);var[k]=kf.nodes(e,{at:i,match:t=>Jf.isText(t)||kf.isInline(e,t),mode:"highest",voids:o}),[,B]=k,F=kf.isStart(e,i,B),T=kf.isEnd(e,i,B),_=kf.pathRef(e,p?Lf.next(f):f),P=kf.pathRef(e,T?Lf.next(B):B),j=kf.pathRef(e,f);vd.splitNodes(e,{at:i,match:t=>A?kf.isBlock(e,t):Jf.isText(t)||kf.isInline(e,t),mode:A?"lowest":"highest",voids:o});var N=kf.pathRef(e,!F||F&&T?Lf.next(B):B);if(vd.insertNodes(e,E,{at:N.current,match:t=>Jf.isText(t)||kf.isInline(e,t),mode:"highest",voids:o}),h&&S.length&&vd.delete(e,{at:j.unref(),voids:o}),vd.insertNodes(e,S,{at:_.current,match:t=>kf.isBlock(e,t),mode:"lowest",voids:o}),vd.insertNodes(e,D,{at:P.current,match:t=>Jf.isText(t)||kf.isInline(e,t),mode:"highest",voids:o}),!n.at){var I;I=D.length>0?Lf.previous(P.current):S.length>0?Lf.previous(_.current):Lf.previous(N.current);var L=kf.end(e,I);vd.select(e,L)}N.unref(),_.unref(),P.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};kf.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Lf.isPath(o)&&(o=kf.range(e,o)),Wf.isRange(o))if(Wf.isCollapsed(o))o=o.anchor;else{var i=Wf.end(o);if(!r&&kf.void(e,{at:i}))return;var a=kf.pointRef(e,i);vd.delete(e,{at:o,voids:r}),o=a.unref(),vd.setSelection(e,{anchor:o,focus:o})}if(r||!kf.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 hd(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 gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hd(Object(n),!0).forEach((function(t){Ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vd=gd(gd(gd(gd({},td),ad),dd),pd),yd="[object Map]",md="[object Set]",bd=/^\[object .+?Constructor\]$/,wd=/^(?:0|[1-9]\d*)$/,xd="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Ed="\\ud83c[\\udffb-\\udfff]",Sd="[^\\ud800-\\udfff]",Dd="(?:\\ud83c[\\udde6-\\uddff]){2}",Cd="[\\ud800-\\udbff][\\udc00-\\udfff]",Ad="(?:"+xd+"|"+Ed+")?",Od="[\\ufe0e\\ufe0f]?"+Ad+"(?:\\u200d(?:"+[Sd,Dd,Cd].join("|")+")[\\ufe0e\\ufe0f]?"+Ad+")*",kd="(?:"+[Sd+xd+"?",xd,Dd,Cd,"[\\ud800-\\udfff]"].join("|")+")",Bd=RegExp(Ed+"(?="+Ed+")|"+kd+Od,"g"),Fd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Td="object"==typeof o&&o&&o.Object===Object&&o,_d="object"==typeof self&&self&&self.Object===Object&&self,Pd=Td||_d||Function("return this")();function jd(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Nd(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Id,Ld,Rd=Function.prototype,Md=Object.prototype,zd=Pd["__core-js_shared__"],$d=function(){var e=/[^.]+$/.exec(zd&&zd.keys&&zd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Hd=Rd.toString,Vd=Md.hasOwnProperty,Ud=Md.toString,Wd=RegExp("^"+Hd.call(Vd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qd=Pd.Symbol,Gd=qd?qd.iterator:void 0,Kd=Md.propertyIsEnumerable,Yd=(Id=Object.keys,Ld=Object,function(e){return Id(Ld(e))}),Xd=ap(Pd,"DataView"),Zd=ap(Pd,"Map"),Jd=ap(Pd,"Promise"),Qd=ap(Pd,"Set"),ep=ap(Pd,"WeakMap"),tp=lp(Xd),np=lp(Zd),rp=lp(Jd),op=lp(Qd),ip=lp(ep);function ap(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!pp(e)||function(e){return!!$d&&$d in e}(e))return!1;var t=dp(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Wd:bd;return t.test(lp(e))}(n)?n:void 0}var up=function(e){return Ud.call(e)};function sp(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||wd.test(e))&&e>-1&&e%1==0&&e<t}function lp(e){if(null!=e){try{return Hd.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(Xd&&"[object DataView]"!=up(new Xd(new ArrayBuffer(1)))||Zd&&up(new Zd)!=yd||Jd&&"[object Promise]"!=up(Jd.resolve())||Qd&&up(new Qd)!=md||ep&&"[object WeakMap]"!=up(new ep))&&(up=function(e){var t=Ud.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?lp(n):void 0;if(r)switch(r){case tp:return"[object DataView]";case np:return yd;case rp:return"[object Promise]";case op:return md;case ip:return"[object WeakMap]"}return t});var cp=Array.isArray;function fp(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!dp(e)}function dp(e){var t=pp(e)?Ud.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function pp(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function hp(e){return!!e&&"object"==typeof e}function gp(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 fp(e)?function(e,t){var n=cp(e)||function(e){return function(e){return hp(e)&&fp(e)}(e)&&Vd.call(e,"callee")&&(!Kd.call(e,"callee")||"[object Arguments]"==Ud.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&&!Vd.call(e,i)||o&&("length"==i||sp(i,r))||n.push(i);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Md))return Yd(e);var t,n,r=[];for(var o in Object(e))Vd.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}(e)):[]}var vp=function(e){if(!e)return[];if(fp(e))return function(e){return"string"==typeof e||!cp(e)&&hp(e)&&"[object String]"==Ud.call(e)}(e)?function(e){return function(e){return Fd.test(e)}(e)?function(e){return e.match(Bd)||[]}(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(Gd&&e[Gd])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Gd]());var t=up(e);return(t==yd?jd:t==md?Nd:gp)(e)};function yp(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function mp(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:yp(t[n])&&yp(e[n])&&Object.keys(t[n]).length>0&&mp(e[n],t[n])}))}var bp={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 wp(){var e="undefined"!=typeof document?document:{};return mp(e,bp),e}var xp={document:bp,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 Ep(){var e="undefined"!=typeof window?window:{};return mp(e,xp),e}function Sp(e){return Sp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sp(e)}function Dp(e,t){return Dp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dp(e,t)}function Cp(){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 Ap(e,t,n){return Ap=Cp()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Dp(o,n.prototype),o},Ap.apply(null,arguments)}function Op(e){var t="function"==typeof Map?new Map:void 0;return Op=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 Ap(e,arguments,Sp(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Dp(n,e)},Op(e)}var kp=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}(Op(Array));function Bp(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Bp(e)):t.push(e)})),t}function Fp(e,t){return Array.prototype.filter.call(e,t)}function Tp(e,t){var n=Ep(),r=wp(),o=[];if(!t&&e instanceof kp)return e;if(!e)return new kp(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 kp)return e;o=e}return new kp(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 _p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Bp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function Pp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Bp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function jp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Bp(t.map((function(e){return e.split(" ")})));return Fp(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function Np(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 Ip(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Lp(){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 Rp(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 Mp(){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),Tp(t).is(o))i.apply(t,n);else for(var r=Tp(t).parents(),a=0;a<r.length;a+=1)Tp(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 l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function zp(){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 l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function $p(){var e=Ep();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Hp(){var e=Ep();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Vp(){if(this.length>0){var e=Ep(),t=wp(),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 Up(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Wp(){for(var e=Ep(),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 qp(e,t){var n,r=Ep();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 Gp(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function Kp(e){return Tp(Fp(this,e))}function Yp(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 Xp(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 Zp(e){var t,n,r=Ep(),o=wp(),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=Tp(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 kp){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function Jp(){for(var e,t=wp(),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 kp)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function Qp(e){var t,n,r=wp();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 kp)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 eh(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?Tp(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Tp(t)}function th(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Tp(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Tp(t)}function nh(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 Tp(t)}function rh(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&&!Tp(r[o]).is(e)||t.push(r[o]);return Tp(t)}function oh(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function ih(){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}Tp.fn=kp.prototype;var ah="resize scroll".split(" ");function uh(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)ah.indexOf(e)<0&&(e in this[o]?this[o][e]():Tp(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var sh=uh("click"),lh=uh("focus"),ch=/^(?:0|[1-9]\d*)$/;function fh(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var dh=Object.prototype,ph=dh.hasOwnProperty,hh=dh.toString,gh=dh.propertyIsEnumerable,vh=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var yh,mh=(yh=function(e,t){return e&&bh(e,t,Sh)},function(e,t){if(null==e)return e;if(!Eh(e))return yh(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),bh=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 wh(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||ch.test(e))&&e>-1&&e%1==0&&e<t}var xh=Array.isArray;function Eh(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)?hh.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function Sh(e){return Eh(e)?function(e,t){var n=xh(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Eh(e)}(e)&&ph.call(e,"callee")&&(!gh.call(e,"callee")||"[object Arguments]"==hh.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||wh(i,r))||n.push(i);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||dh))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 Dh(e){return e}var Ch=function(e,t){return(xh(e)?fh:mh)(e,"function"==typeof t?t:Dh)};let Ah=(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,kh=/^[-+]0x[0-9a-f]+$/i,Bh=/^0b[01]+$/i,Fh=/^0o[0-7]+$/i,Th=parseInt,_h="object"==typeof o&&o&&o.Object===Object&&o,Ph="object"==typeof self&&self&&self.Object===Object&&self,jh=_h||Ph||Function("return this")(),Nh=Object.prototype.toString,Ih=Math.max,Lh=Math.min,Rh=function(){return jh.Date.now()};function Mh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function zh(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Nh.call(e)}(e))return NaN;if(Mh(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Mh(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Oh,"");var n=Bh.test(e);return n||Fh.test(e)?Th(e.slice(2),n?2:8):kh.test(e)?NaN:+e}var $h=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Mh(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,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e=Rh();if(g(e))return y(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?Lh(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Rh(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=zh(t)||0,Mh(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Ih(zh(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Rh())},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 Vh(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 Uh=Array.isArray;function Wh(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function qh(e){return void 0===e}function Gh(e){return void 0!==e}const Kh=Vh("",{},[],void 0,void 0);function Yh(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 Xh(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 Zh=["create","update","remove","destroy","pre","post"];function Jh(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:Hh;for(const t of Zh)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;Gh(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)qh(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,g=e.elm=Gh(s)&&Gh(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(d<p&&g.setAttribute("id",c.slice(d+1,p)),f>0&&g.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](Kh,e);if(Uh(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,i(e,t))}else Wh(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;Gh(v)&&(null===(a=v.create)||void 0===a||a.call(v,Kh,e),v.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,l;i<=a;++i){let a,c;const f=t[i];if(null!=f)if(Gh(f.sel)){u(f),a=n.remove.length+1,c=o(f.elm,a);for(let e=0;e<n.remove.length;++e)n.remove[e](f,c);const e=null===(l=null===(s=null==f?void 0:f.data)||void 0===s?void 0:s.hook)||void 0===l?void 0:l.remove;Gh(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function l(e,t,o){var u,c,f,d,p;const h=null===(u=t.data)||void 0===u?void 0:u.hook;null===(c=null==h?void 0:h.prepatch)||void 0===c||c.call(h,e,t);const g=t.elm=e.elm,v=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===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}qh(t.text)?Gh(v)&&Gh(y)?v!==y&&function(e,t,n,o){let u,c,f,d,p=0,h=0,g=t.length-1,v=t[0],y=t[g],m=n.length-1,b=n[0],w=n[m];for(;p<=g&&h<=m;)null==v?v=t[++p]:null==y?y=t[--g]:null==b?b=n[++h]:null==w?w=n[--m]:Yh(v,b)?(l(v,b,o),v=t[++p],b=n[++h]):Yh(y,w)?(l(y,w,o),y=t[--g],w=n[--m]):Yh(v,w)?(l(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):Yh(y,b)?(l(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===u&&(u=Xh(t,p,g)),c=u[b.key],qh(c)?r.insertBefore(e,i(b,o),v.elm):(f=t[c],f.sel!==b.sel?r.insertBefore(e,i(b,o),v.elm):(l(f,b,o),t[c]=void 0,r.insertBefore(e,f.elm,v.elm))),b=n[++h]);(p<=g||h<=m)&&(p>g?(d=null==n[m+1]?null:n[m+1].elm,a(e,d,n,h,m,o)):s(e,t,p,g))}(g,v,y,o):Gh(y)?(Gh(e.text)&&r.setTextContent(g,""),a(g,null,y,0,y.length-1,o)):Gh(v)?s(g,v,0,v.length-1):Gh(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(Gh(v)&&s(g,v,0,v.length-1),r.setTextContent(g,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let o,a,u;const c=[];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 Vh(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),Yh(e,t)?l(e,t,c):(a=e.elm,u=r.parentNode(a),i(t,c),null!==u&&(r.insertBefore(u,t.elm,r.nextSibling(a)),s(u,[e],0,0))),o=0;o<c.length;++o)c[o].data.hook.insert(c[o]);for(o=0;o<n.post.length;++o)n.post[o]();return t}}function Qh(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&&Qh(n,t[e].children,t[e].sel)}}function eg(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),Uh(n)?r=n:Wh(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(Uh(t)?r=t:Wh(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)Wh(r[i])&&(r[i]=Vh(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]||Qh(a,r,e),Vh(e,a,r,o,void 0)}function tg(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 ng={create:tg,update:tg};function rg(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 og={create:rg,update:rg},ig=/[A-Z]/g;function ag(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(ig,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(ig,"-$&").toLowerCase(),i[r]))}const ug={create:ag,update:ag};function sg(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++)sg(e[r],t,n)}function lg(e,t){const n=e.type,r=t.data.on;r&&r[n]&&sg(r[n],t,e)}function cg(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){lg(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 fg={create:cg,update:cg,destroy:cg};function dg(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 pg={create:dg,update:dg},hg="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let gg=!1;function vg(e,t,n){!function(e){hg((function(){hg(e)}))}((function(){e[t]=n}))}function yg(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]||vg(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const mg={pre:function(){gg=!1},create:yg,update:yg,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;gg||(e.elm.offsetLeft,gg=!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 l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==s.indexOf(l[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function bg(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?bg(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(Vh(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function wg(e,t,...n){const r=bg(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?eg(e,t,r[0].text):eg(e,t,r)}wg||(wg={});var xg,Eg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Sg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Dg="\\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",Cg="["+Dg+"]",Ag="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Og="\\d+",kg="[a-z\\xdf-\\xf6\\xf8-\\xff]",Bg="[^\\ud800-\\udfff"+Dg+Og+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Fg="\\ud83c[\\udffb-\\udfff]",Tg="[^\\ud800-\\udfff]",_g="(?:\\ud83c[\\udde6-\\uddff]){2}",Pg="[\\ud800-\\udbff][\\udc00-\\udfff]",jg="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ng="(?:"+kg+"|"+Bg+")",Ig="(?:"+jg+"|"+Bg+")",Lg="(?:"+Ag+"|"+Fg+")?",Rg="[\\ufe0e\\ufe0f]?"+Lg+"(?:\\u200d(?:"+[Tg,_g,Pg].join("|")+")[\\ufe0e\\ufe0f]?"+Lg+")*",Mg="(?:"+["[\\u2700-\\u27bf]",_g,Pg].join("|")+")"+Rg,zg="(?:"+[Tg+Ag+"?",Ag,_g,Pg,"[\\ud800-\\udfff]"].join("|")+")",$g=RegExp("['’]","g"),Hg=RegExp(Ag,"g"),Vg=RegExp(Fg+"(?="+Fg+")|"+zg+Rg,"g"),Ug=RegExp([jg+"?"+kg+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Cg,jg,"$"].join("|")+")",Ig+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Cg,jg+Ng,"$"].join("|")+")",jg+"?"+Ng+"+(?:['’](?:d|ll|m|re|s|t|ve))?",jg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Og,Mg].join("|"),"g"),Wg=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),qg=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gg="object"==typeof o&&o&&o.Object===Object&&o,Kg="object"==typeof self&&self&&self.Object===Object&&self,Yg=Gg||Kg||Function("return this")(),Xg=(xg={"À":"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==xg?void 0:xg[e]});function Zg(e){return Wg.test(e)}var Jg=Object.prototype.toString,Qg=Yg.Symbol,ev=Qg?Qg.prototype:void 0,tv=ev?ev.toString:void 0;function nv(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]"==Jg.call(e)}(e))return tv?tv.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}for(var rv,ov=(rv=function(e,t,n){return t=t.toLowerCase(),e+(n?iv(nv(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=nv(e),void 0===t?function(e){return qg.test(e)}(e)?function(e){return e.match(Ug)||[]}(e):function(e){return e.match(Eg)||[]}(e):e.match(t)||[]}(function(e){return(e=nv(e))&&e.replace(Sg,Xg).replace(Hg,"")}(e).replace($g,"")),rv,"")}),iv=("toUpperCase",function(e){var t=Zg(e=nv(e))?function(e){return Zg(e)?function(e){return e.match(Vg)||[]}(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}),av=ov,uv="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),sv={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},lv={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:uv?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},cv={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},fv=1;fv<20;fv++)cv["f"+fv]=111+fv;function dv(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 sv)r[sv[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c,f=o[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=hv(d),g=sv[h];if(d.length>1&&!g&&!lv[d]&&!cv[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=pv(d)),g&&(r[g]=!p||null)}}catch(e){s=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}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 pv(e){return e=hv(e),cv[e]||e.toUpperCase().charCodeAt(0)}function hv(e){return e=e.toLowerCase(),lv[e]||e}var gv=dv,vv=function(e,t){return dv(e,{byKey:!0},t)},yv=/^\s+|\s+$/g,mv=/^[-+]0x[0-9a-f]+$/i,bv=/^0b[01]+$/i,wv=/^0o[0-7]+$/i,xv=parseInt,Ev="object"==typeof o&&o&&o.Object===Object&&o,Sv="object"==typeof self&&self&&self.Object===Object&&self,Dv=Ev||Sv||Function("return this")(),Cv=Object.prototype.toString,Av=Math.max,Ov=Math.min,kv=function(){return Dv.Date.now()};function Bv(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Fv(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Cv.call(e)}(e))return NaN;if(Bv(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Bv(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(yv,"");var n=bv.test(e);return n||wv.test(e)?xv(e.slice(2),n?2:8):mv.test(e)?NaN:+e}var Tv,_v=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e=kv();if(g(e))return y(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?Ov(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=kv(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=Fv(t)||0,Bv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Av(Fv(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(kv())},m},Pv=i((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",a="[object Boolean]",u="[object Date]",s="[object Function]",l="[object GeneratorFunction]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",x="[object Float32Array]",E="[object Float64Array]",S="[object Int8Array]",D="[object Int16Array]",C="[object Int32Array]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",k="[object Uint16Array]",B="[object Uint32Array]",F=/\w*$/,T=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,P={};P[i]=P["[object Array]"]=P[b]=P[w]=P[a]=P[u]=P[x]=P[E]=P[S]=P[D]=P[C]=P[c]=P[f]=P[d]=P[h]=P[g]=P[v]=P[y]=P[A]=P[O]=P[k]=P[B]=!0,P["[object Error]"]=P[s]=P[m]=!1;var j="object"==typeof o&&o&&o.Object===Object&&o,N="object"==typeof self&&self&&self.Object===Object&&self,I=j||N||Function("return this")(),L=t&&!t.nodeType&&t,R=L&&e&&!e.nodeType&&e,M=R&&R.exports===L;function z(e,t){return e.set(t[0],t[1]),e}function $(e,t){return e.add(t),e}function H(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 W(e,t){return function(n){return e(t(n))}}function q(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var G=Array.prototype,K=Function.prototype,Y=Object.prototype,X=I["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=M?I.Buffer:void 0,re=I.Symbol,oe=I.Uint8Array,ie=W(Object.getPrototypeOf,Object),ae=Object.create,ue=Y.propertyIsEnumerable,se=G.splice,le=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,fe=W(Object.keys,Object),de=Ne(I,"DataView"),pe=Ne(I,"Map"),he=Ne(I,"Promise"),ge=Ne(I,"Set"),ve=Ne(I,"WeakMap"),ye=Ne(Object,"create"),me=ze(de),be=ze(pe),we=ze(he),xe=ze(ge),Ee=ze(ve),Se=re?re.prototype:void 0,De=Se?Se.valueOf:void 0;function Ce(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 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 ke(e){this.__data__=new Ae(e)}function Be(e,t,n){var r=e[t];Q.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Fe(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}function Te(e,t,n,r,o,p,m){var T;if(r&&(T=p?r(e,o,p,m):r(e)),void 0!==T)return T;if(!qe(e))return e;var _=He(e);if(_){if(T=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,T)}else{var j=Le(e),N=j==s||j==l;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(j==d||j==i||N&&!p){if(V(e))return p?e:{};if(T=function(e){return"function"!=typeof e.constructor||Me(e)?{}:qe(t=ie(e))?ae(t):{};var t}(N?{}:e),!t)return function(e,t){return Pe(e,Ie(e),t)}(e,function(e,t){return e&&Pe(t,Ge(t),e)}(T,e))}else{if(!P[j])return p?e:{};T=function(e,t,n,r){var o=e.constructor;switch(t){case b:return _e(e);case a:case u:return new o(+e);case w:return function(e,t){var n=t?_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case x:case E:case S:case D:case C:case A:case O:case k:case B:return function(e,t){var n=t?_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case c:return function(e,t,n){return H(t?n(U(e),!0):U(e),z,new e.constructor)}(e,r,n);case f:case v:return new o(e);case h:return function(e){var t=new e.constructor(e.source,F.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return function(e,t,n){return H(t?n(q(e),!0):q(e),$,new e.constructor)}(e,r,n);case y:return function(e){return De?Object(De.call(e)):{}}(e)}}(e,j,Te,t)}}m||(m=new ke);var I=m.get(e);if(I)return I;if(m.set(e,T),!_)var L=n?function(e){return function(e,t,n){var r=t(e);return He(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,Ie)}(e):Ge(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n););}(L||e,(function(o,i){L&&(o=e[i=o]),Be(T,i,Te(o,t,n,r,i,e,m))})),T}function _e(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Pe(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;Be(n,a,void 0===u?e[a]:u)}return n}function je(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!(!qe(e)||function(e){return!!Z&&Z in e}(e))&&(We(e)||V(e)?te:T).test(ze(e))}(n)?n:void 0}Ce.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ce.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ce.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},Ce.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},Ce.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?n:t,this},Ae.prototype.clear=function(){this.__data__=[]},Ae.prototype.delete=function(e){var t=this.__data__,n=Fe(t,e);return!(n<0||(n==t.length-1?t.pop():se.call(t,n,1),0))},Ae.prototype.get=function(e){var t=this.__data__,n=Fe(t,e);return n<0?void 0:t[n][1]},Ae.prototype.has=function(e){return Fe(this.__data__,e)>-1},Ae.prototype.set=function(e,t){var n=this.__data__,r=Fe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Oe.prototype.clear=function(){this.__data__={hash:new Ce,map:new(pe||Ae),string:new Ce}},Oe.prototype.delete=function(e){return je(this,e).delete(e)},Oe.prototype.get=function(e){return je(this,e).get(e)},Oe.prototype.has=function(e){return je(this,e).has(e)},Oe.prototype.set=function(e,t){return je(this,e).set(e,t),this},ke.prototype.clear=function(){this.__data__=new Ae},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 Ae){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Oe(r)}return n.set(e,t),this};var Ie=le?W(le,Object):function(){return[]},Le=function(e){return ee.call(e)};function Re(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function Me(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function ze(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $e(e,t){return e===t||e!=e&&t!=t}(de&&Le(new de(new ArrayBuffer(1)))!=w||pe&&Le(new pe)!=c||he&&Le(he.resolve())!=p||ge&&Le(new ge)!=g||ve&&Le(new ve)!=m)&&(Le=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?ze(n):void 0;if(r)switch(r){case me:return w;case be:return c;case we:return p;case xe:return g;case Ee:return m}return t});var He=Array.isArray;function Ve(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!We(e)}var Ue=ce||function(){return!1};function We(e){var t=qe(e)?ee.call(e):"";return t==s||t==l}function qe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ge(e){return Ve(e)?function(e,t){var n=He(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 Te(e,!0,!0)}}));function jv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Nv=0;function Iv(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}
21
+ /**
22
+ * Takes a string with placeholder variables like `%{smart_count} file selected`
23
+ * and replaces it with values from options `{smart_count: 5}`
24
+ *
25
+ * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
26
+ * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
27
+ *
28
+ * @param {string} phrase that needs interpolation, with placeholders
29
+ * @param {object} options with values that will be used to replace placeholders
30
+ * @returns {any[]} interpolated
31
+ */function Lv(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=Iv(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var Rv=(Tv=function(e){return"__private_"+Nv+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,Tv,{value:Mv}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(jv(this,Tv)[Tv],this):jv(this,Tv)[Tv](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 Lv(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 Lv(n,t)}});function Mv(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 zv=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:$v}={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},Hv=e=>crypto.getRandomValues(new Uint8Array(e)),Vv=(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 Uv={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)=>Vv(e,t,Hv),customRandom:Vv,urlAlphabet:$v,random:Hv},Wv=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 qv(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}qv.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 Gv=/[\/\+\.]/,Kv=0;var Yv=function(e){return"__private_"+Kv+++"_"+e}("publish");class Xv{constructor(){Object.defineProperty(this,Yv,{value:Zv}),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,Yv)[Yv](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Zv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}Xv.VERSION="2.0.3";var Jv=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)}},Qv={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 ey(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var ty=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 ny(e){return e<10?`0${e}`:e.toString()}var ry=function(){const e=new Date;return`${ny(e.getHours())}:${ny(e.getMinutes())}:${ny(e.getSeconds())}`},oy={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] [${ry()}]`,...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] [${ry()}]`,...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] [${ry()}]`,...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] [${ry()}]`,...t)}}},iy={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}"}}},ay=Uv;let uy,sy;function ly(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 fy(e){return"__private_"+cy+++"_"+e}const{nanoid:dy}=ay,{justErrorsLogger:py,debugLogger:hy}=oy;class gy 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 yy=fy("plugins"),my=fy("storeUnsubscribe"),by=fy("emitter"),wy=fy("preProcessors"),xy=fy("uploaders"),Ey=fy("postProcessors"),Sy=fy("checkRestrictions"),Dy=fy("checkMinNumberOfFiles"),Cy=fy("checkRequiredMetaFieldsOnFile"),Ay=fy("checkRequiredMetaFields"),Oy=fy("showOrLogErrorAndThrow"),ky=fy("assertNewUploadAllowed"),By=fy("checkAndCreateFileStateObject"),Fy=fy("startIfAutoProceed"),Ty=fy("addListeners"),_y=fy("updateOnlineStatus"),Py=fy("createUpload"),jy=fy("getUpload"),Ny=fy("removeUpload"),Iy=fy("runUpload");uy=Symbol.for("uppy test: getPlugins"),sy=Symbol.for("uppy test: createUpload");class Ly{constructor(e){Object.defineProperty(this,Iy,{value:Xy}),Object.defineProperty(this,Ny,{value:Yy}),Object.defineProperty(this,jy,{value:Ky}),Object.defineProperty(this,Py,{value:Gy}),Object.defineProperty(this,Ty,{value:qy}),Object.defineProperty(this,Fy,{value:Wy}),Object.defineProperty(this,By,{value:Uy}),Object.defineProperty(this,ky,{value:Vy}),Object.defineProperty(this,Oy,{value:Hy}),Object.defineProperty(this,Ay,{value:$y}),Object.defineProperty(this,Cy,{value:zy}),Object.defineProperty(this,Dy,{value:My}),Object.defineProperty(this,Sy,{value:Ry}),Object.defineProperty(this,yy,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,my,{writable:!0,value:void 0}),Object.defineProperty(this,by,{writable:!0,value:zv()}),Object.defineProperty(this,wy,{writable:!0,value:new Set}),Object.defineProperty(this,xy,{writable:!0,value:new Set}),Object.defineProperty(this,Ey,{writable:!0,value:new Set}),Object.defineProperty(this,_y,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=iy;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 Xv,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=hy),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=$h(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:ty(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),ly(this,my)[my]=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),ly(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];ly(this,by)[by].emit(e,...n)}on(e,t){return ly(this,by)[by].on(e,t),this}once(e,t){return ly(this,by)[by].once(e,t),this}off(e,t){return ly(this,by)[by].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 Rv([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){ly(this,wy)[wy].add(e)}removePreProcessor(e){return ly(this,wy)[wy].delete(e)}addPostProcessor(e){ly(this,Ey)[Ey].add(e)}removePostProcessor(e){return ly(this,Ey)[Ey].delete(e)}addUploader(e){ly(this,xy)[xy].add(e)}removeUploader(e){return ly(this,xy)[xy].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)),l=r.filter((e=>e.progress.uploadComplete)),c=r.filter((e=>e.error)),f=o.filter((e=>!e.isPaused)),d=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&l.length===r.length&&0===d.length,isAllErrored:!!n&&c.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 ly(this,Sy)[Sy](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){ly(this,ky)[ky](e);const{files:t}=this.getState();let n=ly(this,By)[By](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}`),ly(this,Fy)[Fy](),n.id}addFiles(e){ly(this,ky)[ky]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=ly(this,By)[By](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&&ly(this,Fy)[Fy](),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 l=Object.keys(a);l.forEach((e=>{this.emit("file-removed",a[e],t)})),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.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=ly(this,Py)[Py](t,{forceAllowNewUpload:!0});return ly(this,Iy)[Iy](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=ly(this,Py)[Py]([e],{forceAllowNewUpload:!0});return ly(this,Iy)[Iy](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 ly(this,yy)[yy]?ly(this,yy)[yy][n.type].push(n):ly(this,yy)[yy][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(ly(this,yy)[yy])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[uy](e){return ly(this,yy)[yy][e]}iteratePlugins(e){Object.values(ly(this,yy)[yy]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=ly(this,yy)[yy][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(),ly(this,my)[my](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",ly(this,_y)[_y]),window.removeEventListener("offline",ly(this,_y)[_y]))}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]?ly(this,Iy)[Iy](e):(ly(this,Ny)[Ny](e),Promise.reject(new Error("Nonexistent upload")))}[sy](){return ly(this,Py)[Py](...arguments)}addResultData(e,t){if(!ly(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=ly(this,yy)[yy].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((()=>{ly(this,Dy)[Dy](t),ly(this,Ay)[Ay](t)})).catch((e=>{ly(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=ly(this,Py)[Py](r);return ly(this,Iy)[Iy](o)})).catch((e=>{ly(this,Oy)[Oy](e,{showInformer:!1})})))}}function Ry(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 gy(`${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 qv(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,Gv);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 gy(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 gy(this.i18n("exceedsSize",{size:Wv(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new gy(this.i18n("exceedsSize",{size:Wv(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new gy(this.i18n("inferiorSize",{size:Wv(r)}))}function My(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new gy(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function zy(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 gy(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),ly(this,Oy)[Oy](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function $y(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return ly(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 Vy(e){const{allowNewUpload:t}=this.getState();!1===t&&ly(this,Oy)[Oy](new gy(this.i18n("noMoreFilesAllowed")),{file:e})}function Uy(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Jv(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Qv?Qv[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=Jv(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${ey(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${ey(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 gy(this.i18n("noDuplicates",{fileName:r}));ly(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 l={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 c=this.opts.onBeforeFileAdded(l,e);!1===c?ly(this,Oy)[Oy](new gy("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof c&&null!==c&&(l=c);try{const t=Object.keys(e).map((t=>e[t]));ly(this,Sy)[Sy](l,t)}catch(e){ly(this,Oy)[Oy](e,{file:l})}return l}function Wy(){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 qy(){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}),ly(this,Oy)[Oy](e,{throwErr:!1})}else ly(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:ly(this,Ey)[Ey].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&&ly(this,Cy)[Cy](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",ly(this,_y)[_y]),window.addEventListener("offline",ly(this,_y)[_y]),setTimeout(ly(this,_y)[_y],3e3))}function Gy(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=dy();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 Ky(e){const{currentUploads:t}=this.getState();return t[e]}function Yy(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Xy(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...ly(this,wy)[wy],...ly(this,xy)[xy],...ly(this,Ey)[Ey]];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),ly(this,Ny)[Ny](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),ly(this,Ny)[Ny](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}Ly.VERSION="2.1.3";var Zy=Ly,Jy=i((function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(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 g(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 v(e,u,o,i,null)}function v(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=p({},o)).__v=o.__v+1,F(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),T(n,o),o.__e!=i&&w(o)))}))}function S(e,t,n,r,o,i,a,u,s,l){var d,p,h,g,m,w,x,E=r&&r.__k||f,S=E.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?v(null,g,null,null,g):Array.isArray(g)?v(y,{children:g},null,null,null):g.__b>0?v(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=E[d])||h&&g.key==h.key&&g.type===h.type)E[d]=void 0;else for(p=0;p<S;p++){if((h=E[p])&&g.key==h.key&&g.type===h.type){E[p]=void 0;break}h=null}F(e,g,h=h||c,o,i,a,u,s,l),m=g.__e,(p=g.ref)&&h.ref!=p&&(x||(x=[]),h.ref&&x.push(h.ref,null,g),x.push(p,g.__c||m,g)),null!=m?(null==w&&(w=m),"function"==typeof g.type&&g.__k===h.__k?g.__d=s=D(g,s,e):s=C(e,g,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,d=S;d--;)null!=E[d]&&("function"==typeof n.type&&null!=E[d].__e&&E[d].__e==n.__d&&(n.__d=b(r,d+1)),j(E[d],E[d]));if(x)for(d=0;d<x.length;d++)P(x[d],x[++d],x[++d])}function D(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?D(r,t,n):C(n,r,r,o,r.__e,t));return t}function C(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 A(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function O(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||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(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?B:k,i):e.removeEventListener(t,i?B: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 B(e){this.l[e.type+!0](r.event?r.event(e):e)}function F(e,t,n,o,i,a,u,s,l){var c,f,d,h,g,v,b,w,x,E,D,C=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(c=r.__b)&&c(t);try{e:if("function"==typeof C){if(w=t.props,x=(c=C.contextType)&&o[c.__c],E=c?x?x.props.value:c.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in C&&C.prototype.render?t.__c=f=new C(w,E):(t.__c=f=new m(w,E),f.constructor=C,f.render=N),x&&x.sub(f),f.props=w,f.state||(f.state={}),f.context=E,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=C.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,C.getDerivedStateFromProps(w,f.__s))),h=f.props,g=f.state,d)null==C.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==C.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,g,v)}))}f.context=E,f.props=w,f.state=f.__s,(c=r.__r)&&c(t),f.__d=!1,f.__v=t,f.__P=e,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(h,g)),D=null!=c&&c.type===y&&null==c.key?c.props.children:c,S(e,Array.isArray(D)?D:[D],t,n,o,i,a,u,s,l),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=_(n.__e,t,n,o,i,a,u,l);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=s,t.__h=!!l,a[a.indexOf(s)]=null),r.__e(e,t,n)}}function T(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 _(e,t,r,o,i,a,u,s){var l,f,d,p=r.props,g=t.props,v=t.type,y=0;if("svg"===v&&(i=!0),null!=a)for(;y<a.length;y++)if((l=a[y])&&"setAttribute"in l==!!v&&(v?l.localName===v:3===l.nodeType)){e=l,a[y]=null;break}if(null==e){if(null===v)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),a=null,s=!1}if(null===v)p===g||s&&e.data===g||(e.data=g);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||O(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]||O(e,i,t[i],n[i],r)}(e,g,p,i,s),d)t.__k=[];else if(y=t.props.children,S(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==v,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 g&&void 0!==(y=g.value)&&(y!==p.value||y!==e.value||"progress"===v&&!y)&&O(e,"value",y,p.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==e.checked&&O(e,"checked",y,p.checked,!1))}return e}function P(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function j(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||P(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]&&j(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 I(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],F(t,e=(!i&&o||t).__k=g(y,null,[e]),a||c,c,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),T(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=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(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,l=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},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),v(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+l++,__: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=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function e(t,n){I(t,n,e)},t.isValidElement=i,t.options=r,t.render=I,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}})),Qy=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 Rv([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 em(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var tm=0;const{render:nm}=Jy;var rm=function(e){return"__private_"+tm+++"_"+e}("updateUI");class om extends Qy{constructor(){super(...arguments),Object.defineProperty(this,rm,{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 em(this,rm)[rm]=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)&&(nm(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),nm(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 om)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=em(this,rm))[rm])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var im=om;const{debugLogger:am}=oy;var um=Zy,sm=Zy,lm=im,cm=Qy,fm=am;um.Uppy=sm,um.UIPlugin=lm,um.BasePlugin=cm,um.debugLogger=fm;class dm 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=dm,hm=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new pm(e)}))};class gm extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var vm,ym,mm,bm,wm,xm=gm;function Em(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Sm=0;function Dm(e){return"__private_"+Sm+++"_"+e}async function Cm(e){if(401===e.status)throw new xm;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 Am=(ym=Dm("getPostResponseFunc"),mm=Dm("getUrl"),bm=Dm("errorHandler"),wm=vm=class e{constructor(e,t){Object.defineProperty(this,bm,{value:km}),Object.defineProperty(this,mm,{value:Om}),Object.defineProperty(this,ym,{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(Em(this,mm)[mm](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=>hm(Em(this,mm)[mm](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(Em(this,ym)[ym](t)).then(Cm).catch(Em(this,bm)[bm]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>hm(Em(this,mm)[mm](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(Em(this,ym)[ym](n)).then(Cm).catch(Em(this,bm)[bm](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>hm(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(Em(this,ym)[ym](n)).then(Cm).catch(Em(this,bm)[bm](r,e))}},vm.VERSION="2.0.4",vm.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${vm.VERSION}`},wm);function Om(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function km(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${Em(this,mm)[mm](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var Bm,Fm,Tm,_m,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 Nm,Im;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 Rm=0;function Mm(e){return"__private_"+Rm+++"_"+e}var zm,$m,Hm=(Bm=Mm("queued"),Fm=Mm("emitter"),Tm=Mm("isOpen"),_m=Mm("socket"),Pm=Mm("handleMessage"),Nm=Symbol.for("uppy test: getSocket"),Im=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,Bm,{writable:!0,value:[]}),Object.defineProperty(this,Fm,{writable:!0,value:zv()}),Object.defineProperty(this,Tm,{writable:!0,value:!1}),Object.defineProperty(this,_m,{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]}[Nm](){return Lm(this,_m)[_m]}[Im](){return Lm(this,Bm)[Bm]}open(){Lm(this,_m)[_m]=new WebSocket(this.opts.target),Lm(this,_m)[_m].onopen=()=>{for(Lm(this,Tm)[Tm]=!0;Lm(this,Bm)[Bm].length>0&&Lm(this,Tm)[Tm];){const e=Lm(this,Bm)[Bm].shift();this.send(e.action,e.payload)}},Lm(this,_m)[_m].onclose=()=>{Lm(this,Tm)[Tm]=!1},Lm(this,_m)[_m].onmessage=Lm(this,Pm)[Pm]}close(){var e;null==(e=Lm(this,_m)[_m])||e.close()}send(e,t){Lm(this,Tm)[Tm]?Lm(this,_m)[_m].send(JSON.stringify({action:e,payload:t})):Lm(this,Bm)[Bm].push({action:e,payload:t})}on(e,t){Lm(this,Fm)[Fm].on(e,t)}emit(e,t){Lm(this,Fm)[Fm].emit(e,t)}once(e,t){Lm(this,Fm)[Fm].once(e,t)}}),Vm={RequestClient:Am,Provider:class extends Am{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 Am{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},Um=$h((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 Wm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var qm=0;function Gm(e){return"__private_"+qm+++"_"+e}var Km=(zm=Gm("emitter"),$m=Gm("events"),class{constructor(e){Object.defineProperty(this,zm,{writable:!0,value:void 0}),Object.defineProperty(this,$m,{writable:!0,value:[]}),Wm(this,zm)[zm]=e}on(e,t){return Wm(this,$m)[$m].push([e,t]),Wm(this,zm)[zm].on(e,t)}remove(){for(const[e,t]of Wm(this,$m)[$m].splice(0))Wm(this,zm)[zm].off(e,t)}});function Ym(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Xm=0;function Zm(e){return"__private_"+Xm+++"_"+e}var Jm=Zm("aliveTimer"),Qm=Zm("isDone"),eb=Zm("onTimedOut"),tb=Zm("timeout"),nb=class{constructor(e,t){Object.defineProperty(this,Jm,{writable:!0,value:void 0}),Object.defineProperty(this,Qm,{writable:!0,value:!1}),Object.defineProperty(this,eb,{writable:!0,value:void 0}),Object.defineProperty(this,tb,{writable:!0,value:void 0}),Ym(this,tb)[tb]=e,Ym(this,eb)[eb]=t}progress(){Ym(this,Qm)[Qm]||Ym(this,tb)[tb]>0&&(clearTimeout(Ym(this,Jm)[Jm]),Ym(this,Jm)[Jm]=setTimeout(Ym(this,eb)[eb],Ym(this,tb)[tb]))}done(){Ym(this,Qm)[Qm]||(clearTimeout(Ym(this,Jm)[Jm]),Ym(this,Jm)[Jm]=null,Ym(this,Qm)[Qm]=!0)}};function rb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ob=0;function ib(e){return"__private_"+ob+++"_"+e}function ab(){return new Error("Cancelled")}var ub=ib("activeRequests"),sb=ib("queuedHandlers"),lb=ib("call"),cb=ib("queueNext"),fb=ib("next"),db=ib("queue"),pb=ib("dequeue");function hb(e){rb(this,ub)[ub]+=1;let t,n=!1;try{t=e()}catch(e){throw rb(this,ub)[ub]-=1,e}return{abort:()=>{n||(n=!0,rb(this,ub)[ub]-=1,t(),rb(this,cb)[cb]())},done:()=>{n||(n=!0,rb(this,ub)[ub]-=1,rb(this,cb)[cb]())}}}function gb(){queueMicrotask((()=>rb(this,fb)[fb]()))}function vb(){if(rb(this,ub)[ub]>=this.limit)return;if(0===rb(this,sb)[sb].length)return;const e=rb(this,sb)[sb].shift(),t=rb(this,lb)[lb](e.fn);e.abort=t.abort,e.done=t.done}function yb(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{rb(this,pb)[pb](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=rb(this,sb)[sb].findIndex((e=>n.priority>e.priority));return-1===r?rb(this,sb)[sb].push(n):rb(this,sb)[sb].splice(r,0,n),n}function mb(e){const t=rb(this,sb)[sb].indexOf(e);-1!==t&&rb(this,sb)[sb].splice(t,1)}var bb,wb,xb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,pb,{value:mb}),Object.defineProperty(this,db,{value:yb}),Object.defineProperty(this,fb,{value:vb}),Object.defineProperty(this,cb,{value:gb}),Object.defineProperty(this,lb,{value:hb}),Object.defineProperty(this,ub,{writable:!0,value:0}),Object.defineProperty(this,sb,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return rb(this,ub)[ub]<this.limit?rb(this,lb)[lb](e):rb(this,db)[db](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=ab()}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},Eb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Sb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Db}=ay,{Provider:Cb,RequestClient:Ab,Socket:Ob}=Vm,{RateLimitedQueue:kb,internalRateLimitedQueue:Bb}=xb;function Fb(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})),Eb(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 _b=(wb=bb=class extends Qy{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Sb;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 Eb(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),Bb in this.opts?this.requests=this.opts[Bb]:this.requests=new kb(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 Km(this.uppy);const a=new nb(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=Db();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 l=r.getResponseData(i.responseText,i),c=Fb(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:l};return this.uppy.emit("upload-error",e,c,f),n(c)})),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=Fb(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:Ab)(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 Km(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=>Um(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 nb(this.opts.timeout,(()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)})),l=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,l(o),n(o)})),u.addEventListener("error",(()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(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[Bb]||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)}},bb.VERSION="2.0.6",wb),Pb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==u.g?u.g:"undefined"!=typeof self?self:{};function jb(e){var t={exports:{}};return e(t,t.exports),t.exports}var Nb,Ib,Lb=function(e){return e&&e.Math==Math&&e},Rb=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")(),Mb=Object.defineProperty,zb=function(e,t){try{Mb(Rb,e,{value:t,configurable:!0,writable:!0})}catch(n){Rb[e]=t}return t},$b=Rb["__core-js_shared__"]||zb("__core-js_shared__",{}),Hb=jb((function(e){(e.exports=function(e,t){return $b[e]||($b[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Vb=Function.prototype,Ub=Vb.bind,Wb=Vb.call,qb=Ub&&Ub.bind(Wb),Gb=Ub?function(e){return e&&qb(Wb,e)}:function(e){return e&&function(){return Wb.apply(e,arguments)}},Kb=Rb.TypeError,Yb=function(e){if(null==e)throw Kb("Can't call method on "+e);return e},Xb=Rb.Object,Zb=function(e){return Xb(Yb(e))},Jb=Gb({}.hasOwnProperty),Qb=Object.hasOwn||function(e,t){return Jb(Zb(e),t)},ew=0,tw=Math.random(),nw=Gb(1..toString),rw=function(e){return"Symbol("+(void 0===e?"":e)+")_"+nw(++ew+tw,36)},ow=function(e){return"function"==typeof e},iw=function(e){return ow(e)?e:void 0},aw=function(e,t){return arguments.length<2?iw(Rb[e]):Rb[e]&&Rb[e][t]},uw=aw("navigator","userAgent")||"",sw=Rb.process,lw=Rb.Deno,cw=sw&&sw.versions||lw&&lw.version,fw=cw&&cw.v8;fw&&(Ib=(Nb=fw.split("."))[0]>0&&Nb[0]<4?1:+(Nb[0]+Nb[1])),!Ib&&uw&&(!(Nb=uw.match(/Edge\/(\d+)/))||Nb[1]>=74)&&(Nb=uw.match(/Chrome\/(\d+)/))&&(Ib=+Nb[1]);var dw=Ib,pw=function(e){try{return!!e()}catch(e){return!0}},hw=!!Object.getOwnPropertySymbols&&!pw((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&dw&&dw<41})),gw=hw&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vw=Hb("wks"),yw=Rb.Symbol,mw=yw&&yw.for,bw=gw?yw:yw&&yw.withoutSetter||rw,ww=function(e){if(!Qb(vw,e)||!hw&&"string"!=typeof vw[e]){var t="Symbol."+e;hw&&Qb(yw,e)?vw[e]=yw[e]:vw[e]=gw&&mw?mw(t):bw(t)}return vw[e]},xw={};xw[ww("toStringTag")]="z";var Ew="[object z]"===String(xw),Sw=!pw((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Dw=function(e){return"object"==typeof e?null!==e:ow(e)},Cw=Rb.document,Aw=Dw(Cw)&&Dw(Cw.createElement),Ow=function(e){return Aw?Cw.createElement(e):{}},kw=!Sw&&!pw((function(){return 7!=Object.defineProperty(Ow("div"),"a",{get:function(){return 7}}).a})),Bw=Rb.String,Fw=Rb.TypeError,Tw=function(e){if(Dw(e))return e;throw Fw(Bw(e)+" is not an object")},_w=Function.prototype.call,Pw=_w.bind?_w.bind(_w):function(){return _w.apply(_w,arguments)},jw=Gb({}.isPrototypeOf),Nw=Rb.Object,Iw=gw?function(e){return"symbol"==typeof e}:function(e){var t=aw("Symbol");return ow(t)&&jw(t.prototype,Nw(e))},Lw=Rb.String,Rw=function(e){try{return Lw(e)}catch(e){return"Object"}},Mw=Rb.TypeError,zw=function(e){if(ow(e))return e;throw Mw(Rw(e)+" is not a function")},$w=function(e,t){var n=e[t];return null==n?void 0:zw(n)},Hw=Rb.TypeError,Vw=Rb.TypeError,Uw=ww("toPrimitive"),Ww=function(e){var t=function(e,t){if(!Dw(e)||Iw(e))return e;var n,r=$w(e,Uw);if(r){if(void 0===t&&(t="default"),n=Pw(r,e,t),!Dw(n)||Iw(n))return n;throw Vw("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&ow(n=e.toString)&&!Dw(r=Pw(n,e)))return r;if(ow(n=e.valueOf)&&!Dw(r=Pw(n,e)))return r;if("string"!==t&&ow(n=e.toString)&&!Dw(r=Pw(n,e)))return r;throw Hw("Can't convert object to primitive value")}(e,t)}(e,"string");return Iw(t)?t:t+""},qw=Rb.TypeError,Gw=Object.defineProperty,Kw={f:Sw?Gw:function(e,t,n){if(Tw(e),t=Ww(t),Tw(n),kw)try{return Gw(e,t,n)}catch(e){}if("get"in n||"set"in n)throw qw("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Yw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Xw=Sw?function(e,t,n){return Kw.f(e,t,Yw(1,n))}:function(e,t,n){return e[t]=n,e},Zw=Gb(Function.toString);ow($b.inspectSource)||($b.inspectSource=function(e){return Zw(e)});var Jw,Qw,ex,tx=$b.inspectSource,nx=Rb.WeakMap,rx=ow(nx)&&/native code/.test(tx(nx)),ox=Hb("keys"),ix=function(e){return ox[e]||(ox[e]=rw(e))},ax={},ux=Rb.TypeError,sx=Rb.WeakMap;if(rx||$b.state){var lx=$b.state||($b.state=new sx),cx=Gb(lx.get),fx=Gb(lx.has),dx=Gb(lx.set);Jw=function(e,t){if(fx(lx,e))throw new ux("Object already initialized");return t.facade=e,dx(lx,e,t),t},Qw=function(e){return cx(lx,e)||{}},ex=function(e){return fx(lx,e)}}else{var px=ix("state");ax[px]=!0,Jw=function(e,t){if(Qb(e,px))throw new ux("Object already initialized");return t.facade=e,Xw(e,px,t),t},Qw=function(e){return Qb(e,px)?e[px]:{}},ex=function(e){return Qb(e,px)}}var hx={set:Jw,get:Qw,has:ex,enforce:function(e){return ex(e)?Qw(e):Jw(e,{})},getterFor:function(e){return function(t){var n;if(!Dw(t)||(n=Qw(t)).type!==e)throw ux("Incompatible receiver, "+e+" required");return n}}},gx=Function.prototype,vx=Sw&&Object.getOwnPropertyDescriptor,yx=Qb(gx,"name"),mx={EXISTS:yx,PROPER:yx&&"something"===function(){}.name,CONFIGURABLE:yx&&(!Sw||Sw&&vx(gx,"name").configurable)},bx=jb((function(e){var t=mx.CONFIGURABLE,n=hx.get,r=hx.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;ow(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Qb(i,"name")||t&&i.name!==f)&&Xw(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Rb?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Xw(e,n,i)):l?e[n]=i:zb(n,i)})(Function.prototype,"toString",(function(){return ow(this)&&n(this).source||tx(this)}))})),wx=Gb({}.toString),xx=Gb("".slice),Ex=function(e){return xx(wx(e),8,-1)},Sx=ww("toStringTag"),Dx=Rb.Object,Cx="Arguments"==Ex(function(){return arguments}()),Ax=Ew?Ex: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=Dx(e),Sx))?n:Cx?Ex(t):"Object"==(r=Ex(t))&&ow(t.callee)?"Arguments":r},Ox=Ew?{}.toString:function(){return"[object "+Ax(this)+"]"};Ew||bx(Object.prototype,"toString",Ox,{unsafe:!0});var kx={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},Bx=Ow("span").classList,Fx=Bx&&Bx.constructor&&Bx.constructor.prototype,Tx=Fx===Object.prototype?void 0:Fx,_x=Gb(Gb.bind),Px=function(e,t){return zw(e),void 0===t?e:_x?_x(e,t):function(){return e.apply(t,arguments)}},jx=Rb.Object,Nx=Gb("".split),Ix=pw((function(){return!jx("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ex(e)?Nx(e,""):jx(e)}:jx,Lx=Math.ceil,Rx=Math.floor,Mx=function(e){var t=+e;return t!=t||0===t?0:(t>0?Rx:Lx)(t)},zx=Math.min,$x=function(e){return e>0?zx(Mx(e),9007199254740991):0},Hx=function(e){return $x(e.length)},Vx=Array.isArray||function(e){return"Array"==Ex(e)},Ux=function(){},Wx=[],qx=aw("Reflect","construct"),Gx=/^\s*(?:class|function)\b/,Kx=Gb(Gx.exec),Yx=!Gx.exec(Ux),Xx=function(e){if(!ow(e))return!1;try{return qx(Ux,Wx,e),!0}catch(e){return!1}},Zx=!qx||pw((function(){var e;return Xx(Xx.call)||!Xx(Object)||!Xx((function(){e=!0}))||e}))?function(e){if(!ow(e))return!1;switch(Ax(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Yx||!!Kx(Gx,tx(e))}:Xx,Jx=ww("species"),Qx=Rb.Array,eE=function(e,t){return new(function(e){var t;return Vx(e)&&(t=e.constructor,(Zx(t)&&(t===Qx||Vx(t.prototype))||Dw(t)&&null===(t=t[Jx]))&&(t=void 0)),void 0===t?Qx:t}(e))(0===t?0:t)},tE=Gb([].push),nE=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,l,c,f){for(var d,p,h=Zb(s),g=Ix(h),v=Px(l,c),y=Hx(g),m=0,b=f||eE,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:tE(w,d)}else switch(e){case 4:return!1;case 7:tE(w,d)}return i?-1:r||o?o:w}},rE={forEach:nE(0),map:nE(1),filter:nE(2),some:nE(3),every:nE(4),find:nE(5),findIndex:nE(6),filterReject:nE(7)},oE=function(e,t){var n=[][e];return!!n&&pw((function(){n.call(null,t||function(){throw 1},1)}))},iE=rE.forEach,aE=oE("forEach")?[].forEach:function(e){return iE(this,e,arguments.length>1?arguments[1]:void 0)},uE=function(e){if(e&&e.forEach!==aE)try{Xw(e,"forEach",aE)}catch(t){e.forEach=aE}};for(var sE in kx)kx[sE]&&uE(Rb[sE]&&Rb[sE].prototype);uE(Tx);var lE={}.propertyIsEnumerable,cE=Object.getOwnPropertyDescriptor,fE=cE&&!lE.call({1:2},1)?function(e){var t=cE(this,e);return!!t&&t.enumerable}:lE,dE={f:fE},pE=function(e){return Ix(Yb(e))},hE=Object.getOwnPropertyDescriptor,gE={f:Sw?hE:function(e,t){if(e=pE(e),t=Ww(t),kw)try{return hE(e,t)}catch(e){}if(Qb(e,t))return Yw(!Pw(dE.f,e,t),e[t])}},vE=Math.max,yE=Math.min,mE=function(e,t){var n=Mx(e);return n<0?vE(n+t,0):yE(n,t)},bE=function(e){return function(t,n,r){var o,i=pE(t),a=Hx(i),u=mE(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}},wE={includes:bE(!0),indexOf:bE(!1)},xE=wE.indexOf,EE=Gb([].push),SE=function(e,t){var n,r=pE(e),o=0,i=[];for(n in r)!Qb(ax,n)&&Qb(r,n)&&EE(i,n);for(;t.length>o;)Qb(r,n=t[o++])&&(~xE(i,n)||EE(i,n));return i},DE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],CE=DE.concat("length","prototype"),AE={f:Object.getOwnPropertyNames||function(e){return SE(e,CE)}},OE={f:Object.getOwnPropertySymbols},kE=Gb([].concat),BE=aw("Reflect","ownKeys")||function(e){var t=AE.f(Tw(e)),n=OE.f;return n?kE(t,n(e)):t},FE=function(e,t){for(var n=BE(t),r=Kw.f,o=gE.f,i=0;i<n.length;i++){var a=n[i];Qb(e,a)||r(e,a,o(t,a))}},TE=/#|\.prototype\./,_E=function(e,t){var n=jE[PE(e)];return n==IE||n!=NE&&(ow(t)?pw(t):!!t)},PE=_E.normalize=function(e){return String(e).replace(TE,".").toLowerCase()},jE=_E.data={},NE=_E.NATIVE="N",IE=_E.POLYFILL="P",LE=_E,RE=gE.f,ME=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Rb:l?Rb[u]||zb(u,{}):(Rb[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=RE(n,r))&&a.value:n[r],!LE(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;FE(i,o)}(e.sham||o&&o.sham)&&Xw(i,"sham",!0),bx(n,r,i,e)}},zE=Object.keys||function(e){return SE(e,DE)},$E=pw((function(){zE(1)}));
32
+ /*!
33
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
34
+ *
35
+ * Copyright (c) 2014-2017, Jon Schlinkert.
36
+ * Released under the MIT License.
37
+ */function HE(e){return"[object Object]"===Object.prototype.toString.call(e)}ME({target:"Object",stat:!0,forced:$E},{keys:function(e){return zE(Zb(e))}});var VE={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||If.isOperationList(e.redos[0]))&&(0===e.undos.length||If.isOperationList(e.undos[0]));var t,n,r}},UE=new WeakMap,WE=new WeakMap,qE={isHistoryEditor:e=>VE.isHistory(e.history)&&kf.isEditor(e),isMerging:e=>WE.get(e),isSaving:e=>UE.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=qE.isMerging(e);WE.set(e,!1),t(),WE.set(e,n)},withoutSaving(e,t){var n=qE.isSaving(e);UE.set(e,!1),t(),UE.set(e,n)}},GE=Rb.String,KE=function(e){if("Symbol"===Ax(e))throw TypeError("Cannot convert a Symbol value to a string");return GE(e)},YE=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},XE=mx.PROPER,ZE=RegExp.prototype,JE=ZE.toString,QE=Gb(YE),eS=pw((function(){return"/a/b"!=JE.call({source:"a",flags:"b"})})),tS=XE&&"toString"!=JE.name;(eS||tS)&&bx(RegExp.prototype,"toString",(function(){var e=Tw(this),t=KE(e.source),n=e.flags;return"/"+t+"/"+KE(void 0===n&&jw(ZE,e)&&!("flags"in ZE)?QE(e):n)}),{unsafe:!0});var nS,rS=Sw?Object.defineProperties:function(e,t){Tw(e);for(var n,r=pE(t),o=zE(t),i=o.length,a=0;i>a;)Kw.f(e,n=o[a++],r[n]);return e},oS=aw("document","documentElement"),iS=ix("IE_PROTO"),aS=function(){},uS=function(e){return"<script>"+e+"<\/script>"},sS=function(e){e.write(uS("")),e.close();var t=e.parentWindow.Object;return e=null,t},lS=function(){try{nS=new ActiveXObject("htmlfile")}catch(e){}var e,t;lS="undefined"!=typeof document?document.domain&&nS?sS(nS):((t=Ow("iframe")).style.display="none",oS.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(uS("document.F=Object")),e.close(),e.F):sS(nS);for(var n=DE.length;n--;)delete lS.prototype[DE[n]];return lS()};ax[iS]=!0;var cS=Object.create||function(e,t){var n;return null!==e?(aS.prototype=Tw(e),n=new aS,aS.prototype=null,n[iS]=e):n=lS(),void 0===t?n:rS(n,t)},fS=ww("unscopables"),dS=Array.prototype;null==dS[fS]&&Kw.f(dS,fS,{configurable:!0,value:cS(null)});var pS=function(e){dS[fS][e]=!0},hS=wE.includes;ME({target:"Array",proto:!0},{includes:function(e){return hS(this,e,arguments.length>1?arguments[1]:void 0)}}),pS("includes");var gS=ww("match"),vS=function(e){var t;return Dw(e)&&(void 0!==(t=e[gS])?!!t:"RegExp"==Ex(e))},yS=Rb.TypeError,mS=function(e){if(vS(e))throw yS("The method doesn't accept regular expressions");return e},bS=ww("match"),wS=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[bS]=!1,"/./"[e](t)}catch(e){}}return!1},xS=Gb("".indexOf);ME({target:"String",proto:!0,forced:!wS("includes")},{includes:function(e){return!!~xS(KE(Yb(this)),KE(mS(e)),arguments.length>1?arguments[1]:void 0)}});var ES=/"/g,SS=Gb("".replace);ME({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=KE(Yb(this)),r="<a",(r+=' name="'+SS(KE(t),ES,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var DS=function(e,t,n){var r,o;Tw(e);try{if(!(r=$w(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){DS(e,"throw",t)}},AS={},OS=ww("iterator"),kS=Array.prototype,BS=function(e){return void 0!==e&&(AS.Array===e||kS[OS]===e)},FS=function(e,t,n){var r=Ww(t);r in e?Kw.f(e,r,Yw(0,n)):e[r]=n},TS=ww("iterator"),_S=function(e){if(null!=e)return $w(e,TS)||$w(e,"@@iterator")||AS[Ax(e)]},PS=Rb.TypeError,jS=function(e,t){var n=arguments.length<2?_S(e):t;if(zw(n))return Tw(Pw(n,e));throw PS(Rw(e)+" is not iterable")},NS=Rb.Array,IS=ww("iterator"),LS=!1;try{var RS=0,MS={next:function(){return{done:!!RS++}},return:function(){LS=!0}};MS[IS]=function(){return this},Array.from(MS,(function(){throw 2}))}catch(lO){}var zS=function(e,t){if(!t&&!LS)return!1;var n=!1;try{var r={};r[IS]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},$S=!zS((function(e){Array.from(e)}));ME({target:"Array",stat:!0,forced:$S},{from:function(e){var t=Zb(e),n=Zx(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,l,c,f,d=_S(t),p=0;if(!d||this==NS&&BS(d))for(a=Hx(t),u=n?new this(a):NS(a);a>p;p++)f=i?o(t[p],p):t[p],FS(u,p,f);else for(c=(l=jS(t,d)).next,u=n?new this:[];!(s=Pw(c,l)).done;p++)f=i?CS(l,o,[s.value,p],!0):s.value,FS(u,p,f);return u.length=p,u}});var HS,VS,US,WS=Gb("".charAt),qS=Gb("".charCodeAt),GS=Gb("".slice),KS=function(e){return function(t,n){var r,o,i=KE(Yb(t)),a=Mx(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=qS(i,a))<55296||r>56319||a+1===u||(o=qS(i,a+1))<56320||o>57343?e?WS(i,a):r:e?GS(i,a,a+2):o-56320+(r-55296<<10)+65536}},YS={codeAt:KS(!1),charAt:KS(!0)},XS=!pw((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ZS=ix("IE_PROTO"),JS=Rb.Object,QS=JS.prototype,eD=XS?JS.getPrototypeOf:function(e){var t=Zb(e);if(Qb(t,ZS))return t[ZS];var n=t.constructor;return ow(n)&&t instanceof n?n.prototype:t instanceof JS?QS:null},tD=ww("iterator"),nD=!1;[].keys&&("next"in(US=[].keys())?(VS=eD(eD(US)))!==Object.prototype&&(HS=VS):nD=!0);var rD=null==HS||pw((function(){var e={};return HS[tD].call(e)!==e}));rD&&(HS={}),ow(HS[tD])||bx(HS,tD,(function(){return this}));var oD={IteratorPrototype:HS,BUGGY_SAFARI_ITERATORS:nD},iD=Kw.f,aD=ww("toStringTag"),uD=function(e,t,n){e&&!Qb(e=n?e:e.prototype,aD)&&iD(e,aD,{configurable:!0,value:t})},sD=oD.IteratorPrototype,lD=function(){return this},cD=Rb.String,fD=Rb.TypeError,dD=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Gb(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||ow(e))return e;throw fD("Can't set "+cD(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),pD=mx.PROPER,hD=mx.CONFIGURABLE,gD=oD.IteratorPrototype,vD=oD.BUGGY_SAFARI_ITERATORS,yD=ww("iterator"),mD=function(){return this},bD=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=cS(sD,{next:Yw(1,n)}),uD(e,o,!1),AS[o]=lD}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!vD&&e in p)return p[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",d=!1,p=e.prototype,h=p[yD]||p["@@iterator"]||o&&p[o],g=!vD&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=eD(v.call(new e)))!==Object.prototype&&u.next&&(eD(u)!==gD&&(dD?dD(u,gD):ow(u[yD])||bx(u,yD,mD)),uD(u,f,!0)),pD&&"values"==o&&h&&"values"!==h.name&&(hD?Xw(p,"name","values"):(d=!0,g=function(){return Pw(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(vD||d||!(l in p))&&bx(p,l,s[l]);else ME({target:t,proto:!0,forced:vD||d},s);return p[yD]!==g&&bx(p,yD,g,{name:o}),AS[t]=g,s},wD=YS.charAt,xD=hx.set,ED=hx.getterFor("String Iterator");bD(String,"String",(function(e){xD(this,{type:"String Iterator",string:KE(e),index:0})}),(function(){var e,t=ED(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=wD(n,r),t.index+=e.length,{value:e,done:!1})}));var SD,DD=gE.f,CD=Gb("".endsWith),AD=Gb("".slice),OD=Math.min,kD=wS("endsWith"),BD=!(kD||(SD=DD(String.prototype,"endsWith"),!SD||SD.writable));ME({target:"String",proto:!0,forced:!BD&&!kD},{endsWith:function(e){var t=KE(Yb(this));mS(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:OD($x(n),r),i=KE(e);return CD?CD(t,i,o):AD(t,o-i.length,o)===i}});var FD=Gb([].join),TD=Ix!=Object,_D=oE("join",",");ME({target:"Array",proto:!0,forced:TD||!_D},{join:function(e){return FD(pE(this),void 0===e?",":e)}});var PD=ww("species"),jD=function(e){return dw>=51||!pw((function(){var t=[];return(t.constructor={})[PD]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},ND=rE.map,ID=jD("map");ME({target:"Array",proto:!0,forced:!ID},{map:function(e){return ND(this,e,arguments.length>1?arguments[1]:void 0)}});var LD=Rb.RegExp,RD=pw((function(){var e=LD("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),MD=RD||pw((function(){return!LD("a","y").sticky})),zD={BROKEN_CARET:RD||pw((function(){var e=LD("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:MD,UNSUPPORTED_Y:RD},$D=Rb.RegExp,HD=pw((function(){var e=$D(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),VD=Rb.RegExp,UD=pw((function(){var e=VD("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),WD=hx.get,qD=Hb("native-string-replace",String.prototype.replace),GD=RegExp.prototype.exec,KD=GD,YD=Gb("".charAt),XD=Gb("".indexOf),ZD=Gb("".replace),JD=Gb("".slice),QD=function(){var e=/a/,t=/b*/g;return Pw(GD,e,"a"),Pw(GD,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),eC=zD.BROKEN_CARET,tC=void 0!==/()??/.exec("")[1];(QD||tC||eC||HD||UD)&&(KD=function(e){var t,n,r,o,i,a,u,s=this,l=WD(s),c=KE(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Pw(KD,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=eC&&s.sticky,h=Pw(YE,s),g=s.source,v=0,y=c;if(p&&(h=ZD(h,"y",""),-1===XD(h,"g")&&(h+="g"),y=JD(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==YD(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),tC&&(n=new RegExp("^"+g+"$(?!\\s)",h)),QD&&(r=s.lastIndex),o=Pw(GD,p?n:s,y),p?o?(o.input=JD(o.input,v),o[0]=JD(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:QD&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),tC&&o&&o.length>1&&Pw(qD,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=cS(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var nC=KD;ME({target:"RegExp",proto:!0,forced:/./.exec!==nC},{exec:nC});var rC=Function.prototype,oC=rC.apply,iC=rC.bind,aC=rC.call,uC="object"==typeof Reflect&&Reflect.apply||(iC?aC.bind(oC):function(){return aC.apply(oC,arguments)}),sC=ww("species"),lC=RegExp.prototype,cC=function(e,t,n,r){var o=ww(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[sC]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Gb(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Gb(e),s=t.exec;return s===nC||s===lC.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));bx(String.prototype,e,s[0]),bx(lC,o,s[1])}r&&Xw(lC[o],"sham",!0)},fC=YS.charAt,dC=function(e,t,n){return t+(n?fC(e,t).length:1)},pC=Math.floor,hC=Gb("".charAt),gC=Gb("".replace),vC=Gb("".slice),yC=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,mC=/\$([$&'`]|\d{1,2})/g,bC=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=mC;return void 0!==o&&(o=Zb(o),s=yC),gC(i,s,(function(i,s){var l;switch(hC(s,0)){case"$":return"$";case"&":return e;case"`":return vC(t,0,n);case"'":return vC(t,a);case"<":l=o[vC(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=pC(c/10);return 0===f?i:f<=u?void 0===r[f-1]?hC(s,1):r[f-1]+hC(s,1):i}l=r[c-1]}return void 0===l?"":l}))},wC=Rb.TypeError,xC=function(e,t){var n=e.exec;if(ow(n)){var r=Pw(n,e,t);return null!==r&&Tw(r),r}if("RegExp"===Ex(e))return Pw(nC,e,t);throw wC("RegExp#exec called on incompatible receiver")},EC=ww("replace"),SC=Math.max,DC=Math.min,CC=Gb([].concat),AC=Gb([].push),OC=Gb("".indexOf),kC=Gb("".slice),BC="$0"==="a".replace(/./,"$0"),FC=!!/./[EC]&&""===/./[EC]("a","$0");cC("replace",(function(e,t,n){var r=FC?"$":"$0";return[function(e,n){var r=Yb(this),o=null==e?void 0:$w(e,EC);return o?Pw(o,e,r,n):Pw(t,KE(r),e,n)},function(e,o){var i=Tw(this),a=KE(e);if("string"==typeof o&&-1===OC(o,r)&&-1===OC(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=ow(o);s||(o=KE(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=xC(i,a);if(null===d)break;if(AC(f,d),!l)break;""===KE(d[0])&&(i.lastIndex=dC(a,$x(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=KE((d=f[v])[0]),m=SC(DC(Mx(d.index),a.length),0),b=[],w=1;w<d.length;w++)AC(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=CC([y],b,m,a);void 0!==x&&AC(E,x);var S=KE(uC(o,void 0,E))}else S=bC(y,a,m,b,x,o);m>=g&&(h+=kC(a,g,m)+S,g=m+y.length)}return h+kC(a,g)}]}),!!pw((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!BC||FC);
38
+ /*! *****************************************************************************
39
+ Copyright (c) Microsoft Corporation.
40
+
41
+ Permission to use, copy, modify, and/or distribute this software for any
42
+ purpose with or without fee is hereby granted.
43
+
44
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
45
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
46
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
47
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
48
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
49
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
50
+ PERFORMANCE OF THIS SOFTWARE.
51
+ ***************************************************************************** */
52
+ var TC=function(e,t){return TC=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])},TC(e,t)};function _C(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}TC(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var PC=function(){return PC=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},PC.apply(this,arguments)};function jC(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 NC(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 IC(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var LC=0,RC=function(){this.id=""+LC++},MC=hx.set,zC=hx.getterFor("Array Iterator"),$C=bD(Array,"Array",(function(e,t){MC(this,{type:"Array Iterator",target:pE(e),index:0,kind:t})}),(function(){var e=zC(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");AS.Arguments=AS.Array,pS("keys"),pS("values"),pS("entries");var HC=function(e,t,n){for(var r in t)bx(e,r,t[r],n);return e},VC=Rb.Array,UC=Math.max,WC=function(e,t,n){for(var r=Hx(e),o=mE(t,r),i=mE(void 0===n?r:n,r),a=VC(UC(i-o,0)),u=0;o<i;o++,u++)FS(a,u,e[o]);return a.length=u,a},qC=AE.f,GC="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],KC={f:function(e){return GC&&"Window"==Ex(e)?function(e){try{return qC(e)}catch(e){return WC(GC)}}(e):qC(pE(e))}},YC=pw((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),XC=Object.isExtensible,ZC=pw((function(){XC(1)}))||YC?function(e){return!!Dw(e)&&(!YC||"ArrayBuffer"!=Ex(e))&&(!XC||XC(e))}:XC,JC=!pw((function(){return Object.isExtensible(Object.preventExtensions({}))})),QC=jb((function(e){var t=Kw.f,n=!1,r=rw("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=AE.f,t=Gb([].splice),o={};o[r]=1,e(o).length&&(AE.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},ME({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:KC.f}))},fastKey:function(e,t){if(!Dw(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Qb(e,r)){if(!ZC(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Qb(e,r)){if(!ZC(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return JC&&n&&ZC(e)&&!Qb(e,r)&&i(e),e}};ax[r]=!0})),eA=Rb.TypeError,tA=function(e,t){this.stopped=e,this.result=t},nA=tA.prototype,rA=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Px(t,c),g=function(e){return r&&DS(r,"normal",e),new tA(!0,e)},v=function(e){return f?(Tw(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=_S(e)))throw eA(Rw(e)+" is not iterable");if(BS(o)){for(i=0,a=Hx(e);a>i;i++)if((u=v(e[i]))&&jw(nA,u))return u;return new tA(!1)}r=jS(e,o)}for(s=r.next;!(l=Pw(s,r)).done;){try{u=v(l.value)}catch(e){DS(r,"throw",e)}if("object"==typeof u&&u&&jw(nA,u))return u}return new tA(!1)},oA=Rb.TypeError,iA=function(e,t){if(jw(t,e))return e;throw oA("Incorrect invocation")},aA=function(e,t,n){var r,o;return dD&&ow(r=t.constructor)&&r!==n&&Dw(o=r.prototype)&&o!==n.prototype&&dD(e,o),e},uA=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Rb[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Gb(u[e]);bx(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Dw(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Dw(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Dw(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(LE(e,!ow(a)||!(o||u.forEach&&!pw((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),QC.enable();else if(LE(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=pw((function(){f.has(1)})),h=zS((function(e){new a(e)})),g=!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){iA(e,u);var n=aA(new a,e,s);return null!=t&&rA(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,ME({global:!0,forced:s!=a},l),uD(s,e),o||n.setStrong(s,e,r),s},sA=QC.getWeakData,lA=hx.set,cA=hx.getterFor,fA=rE.find,dA=rE.findIndex,pA=Gb([].splice),hA=0,gA=function(e){return e.frozen||(e.frozen=new vA)},vA=function(){this.entries=[]},yA=function(e,t){return fA(e.entries,(function(e){return e[0]===t}))};vA.prototype={get:function(e){var t=yA(this,e);if(t)return t[1]},has:function(e){return!!yA(this,e)},set:function(e,t){var n=yA(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=dA(this.entries,(function(t){return t[0]===e}));return~t&&pA(this.entries,t,1),!!~t}};var mA,bA={getConstructor:function(e,t,n,r){var o=e((function(e,o){iA(e,i),lA(e,{type:t,id:hA++,frozen:void 0}),null!=o&&rA(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=cA(t),u=function(e,t,n){var r=a(e),o=sA(Tw(t),!0);return!0===o?gA(r).set(t,n):o[r.id]=n,e};return HC(i,{delete:function(e){var t=a(this);if(!Dw(e))return!1;var n=sA(e);return!0===n?gA(t).delete(e):n&&Qb(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Dw(e))return!1;var n=sA(e);return!0===n?gA(t).has(e):n&&Qb(n,t.id)}}),HC(i,n?{get:function(e){var t=a(this);if(Dw(e)){var n=sA(e);return!0===n?gA(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}},wA=hx.enforce,xA=!Rb.ActiveXObject&&"ActiveXObject"in Rb,EA=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},SA=uA("WeakMap",EA,bA);if(rx&&xA){mA=bA.getConstructor(EA,"WeakMap",!0),QC.enable();var DA=SA.prototype,CA=Gb(DA.delete),AA=Gb(DA.has),OA=Gb(DA.get),kA=Gb(DA.set);HC(DA,{delete:function(e){if(Dw(e)&&!ZC(e)){var t=wA(this);return t.frozen||(t.frozen=new mA),CA(this,e)||t.frozen.delete(e)}return CA(this,e)},has:function(e){if(Dw(e)&&!ZC(e)){var t=wA(this);return t.frozen||(t.frozen=new mA),AA(this,e)||t.frozen.has(e)}return AA(this,e)},get:function(e){if(Dw(e)&&!ZC(e)){var t=wA(this);return t.frozen||(t.frozen=new mA),AA(this,e)?OA(this,e):t.frozen.get(e)}return OA(this,e)},set:function(e,t){if(Dw(e)&&!ZC(e)){var n=wA(this);n.frozen||(n.frozen=new mA),AA(this,e)?kA(this,e,t):n.frozen.set(e,t)}else kA(this,e,t);return this}})}var BA=ww("iterator"),FA=ww("toStringTag"),TA=$C.values,_A=function(e,t){if(e){if(e[BA]!==TA)try{Xw(e,BA,TA)}catch(t){e[BA]=TA}if(e[FA]||Xw(e,FA,t),kx[t])for(var n in $C)if(e[n]!==$C[n])try{Xw(e,n,$C[n])}catch(t){e[n]=$C[n]}}};for(var PA in kx)_A(Rb[PA]&&Rb[PA].prototype,PA);_A(Tx,"DOMTokenList");var jA=new WeakMap,NA=new WeakMap,IA=new WeakMap,LA=new WeakMap,RA=new WeakMap,MA=new WeakMap,zA=new WeakMap,$A=new WeakMap,HA=new WeakMap,VA=new WeakMap,UA=new WeakMap,WA=new WeakMap,qA=new WeakMap,GA=new WeakMap,KA=new WeakMap,YA=new WeakMap,XA=new WeakMap,ZA=new WeakMap,JA=new WeakMap,QA=new WeakMap,eO=new WeakMap,tO=new WeakMap,nO=new WeakMap,rO=new WeakMap,oO=new WeakMap,iO=rE.find,aO=!0;"find"in[]&&Array(1).find((function(){aO=!1})),ME({target:"Array",proto:!0,forced:aO},{find:function(e){return iO(this,e,arguments.length>1?arguments[1]:void 0)}}),pS("find"),ME({global:!0},{globalThis:Rb});const uO=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];qp&&(Tp.fn.css=qp),Jp&&(Tp.fn.append=Jp),_p&&(Tp.fn.addClass=_p),Pp&&(Tp.fn.removeClass=Pp),jp&&(Tp.fn.hasClass=jp),Mp&&(Tp.fn.on=Mp),lh&&(Tp.fn.focus=lh),Np&&(Tp.fn.attr=Np),Ip&&(Tp.fn.removeAttr=Ip),Up&&(Tp.fn.hide=Up),Wp&&(Tp.fn.show=Wp),Vp&&(Tp.fn.offset=Vp),$p&&(Tp.fn.width=$p),Hp&&(Tp.fn.height=Hp),eh&&(Tp.fn.parent=eh),th&&(Tp.fn.parents=th),Zp&&(Tp.fn.is=Zp),Lp&&(Tp.fn.dataset=Lp),Rp&&(Tp.fn.val=Rp),Xp&&(Tp.fn.text=Xp),Yp&&(Tp.fn.html=Yp),rh&&(Tp.fn.children=rh),oh&&(Tp.fn.remove=oh),nh&&(Tp.fn.find=nh),Gp&&(Tp.fn.each=Gp),ih&&(Tp.fn.empty=ih);var sO,lO,cO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},fO=function(e){return dO(e)&&1===e.nodeType},dO=function(e){var t=cO(e);return!!t&&e instanceof t.Node},pO=function(e){var t=e&&e.anchorNode&&cO(e.anchorNode);return!!t&&e instanceof t.Selection},hO=function(e){return dO(e)&&3===e.nodeType},gO=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},vO=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(dO(r=i)&&8===r.nodeType||fO(i)&&0===i.childNodes.length||fO(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]},yO=function(e,t,n){return NC(vO(e,t,n),1)[0]},mO=function e(t){var n,r,o="";if(hO(t)&&t.nodeValue)return t.nodeValue;if(fO(t)){try{for(var i=jC(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 bO(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||bO(o,t)}}function wO(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==sO.ELEMENT_NODE?"":t.tagName.toLowerCase()}(lO=sO||(sO={}))[lO.ELEMENT_NODE=1]="ELEMENT_NODE",lO[lO.TEXT_NODE=3]="TEXT_NODE",lO[lO.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",lO[lO.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",lO[lO.COMMENT_NODE=8]="COMMENT_NODE",lO[lO.DOCUMENT_NODE=9]="DOCUMENT_NODE",lO[lO.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",lO[lO.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 xO="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),EO="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 SO="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),DO="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),CO="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),AO="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var OO=!CO&&!DO&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,kO={getWindow:function(e){var t=eO.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=QA.get(t);return n||(n=new RC,QA.set(t,n)),n},setNewKey:function(e){var t=new RC;QA.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=KA.get(r);if(null==o){if(kf.isEditor(r))return n;break}var i=GA.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=kO.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return KA.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=kO.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[kO.findPath(e,t)[0]];return Pf.get(e,n)},toDOMNode:function(e,t){var n;if(kf.isEditor(t))n=YA.get(e);else{var r=kO.findKey(e,t);n=ZA.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=kO.toDOMNode(e,e);try{r=fO(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=Wf.isBackward(t),i=kO.toDOMPoint(e,n),a=Wf.isCollapsed(t)?i:kO.toDOMPoint(e,r),u=kO.getWindow(e).document.createRange(),s=NC(o?a:i,2),l=s[0],c=s[1],f=NC(o?i:a,2),d=f[0],p=f[1],h=!!(fO(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(fO(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,h?1:c),u.setEnd(d,g?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=NC(kf.node(e,t.path),1)[0],a=kO.toDOMNode(e,i);kf.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 l=jC(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),g=s+(null==h?p:parseInt(h,10));if(t.offset<=g){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=g}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}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=fO(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?XA.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=kO.toSlateNode(e,t.target),u=kO.findPath(e,a);if(kf.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=kf.point(e,u,{edge:l?"start":"end"}),f=l?kf.before(e,c):kf.after(e,c);if(f)return kf.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return kO.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((pO(t)?t.anchorNode:t.startContainer)&&(pO(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=AO&&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 c=kO.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:kO.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return Wf.isExpanded(d)&&Wf.isForward(d)&&fO(i)&&kf.void(e,{at:d.focus,mode:"highest"})&&(d=kf.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=NC(o?t:function(e){var t,n=NC(e,2),r=n[0],o=n[1];if(fO(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=NC(vO(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;fO(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=yO(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],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=kO.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();IC(IC([],NC(vp(v.querySelectorAll("[data-slate-zero-width]")))),NC(vp(v.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=v.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||EO&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=kO.toSlateNode(e,c);return{path:kO.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return kf.hasPath(e,n.path)&&kf.hasPath(e,r.path)},getNodeType:function(e){return Ef.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=kf.nodes(e,{universal:!0});try{for(var i=jC(o),a=i.next();!a.done;a=i.next()){var u=NC(a.value,1)[0];Ef.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=NC(kf.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=NC(kf.nodes(e,{match:function(e){return Jf.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=NC(kf.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&NC(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(kf.isEnd(e,n.anchor,t)||kf.isEnd(e,n.focus,t))},getTextarea:function(e){var t=jA.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return LA.get(e)||null},getHoverbar:function(e){return MA.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=kO.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=jC(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=kf.nodes(e,{match:function(t){return!(!Ef.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=jC(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];bO(kO.toDOMNode(e,h),(function(e,t){var n=Tp(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{d&&!d.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=kf.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=jC(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(Wf.isExpanded(t))return!1;var n=kO.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=kf.node(e,t);if(null==n)return!1;var r=NC(n,1)[0].children;return 1===r.length&&""===r[0].text}},BO=1,FO={},TO={},_O=rE.filter,PO=jD("filter");ME({target:"Array",proto:!0,forced:!PO},{filter:function(e){return _O(this,e,arguments.length>1?arguments[1]:void 0)}});var jO="\t\n\v\f\r                 \u2028\u2029\ufeff",NO=Gb("".replace),IO="["+jO+"]",LO=RegExp("^"+IO+IO+"*"),RO=RegExp(IO+IO+"*$"),MO=function(e){return function(t){var n=KE(Yb(t));return 1&e&&(n=NO(n,LO,"")),2&e&&(n=NO(n,RO,"")),n}},zO={start:MO(1),end:MO(2),trim:MO(3)},$O=mx.PROPER,HO=zO.trim;ME({target:"String",proto:!0,forced:function(e){return pw((function(){return!!jO[e]()||"​…᠎"!=="​…᠎"[e]()||$O&&jO[e].name!==e}))}("trim")},{trim:function(){return HO(this)}});var VO=[],UO={};function WO(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var qO,GO,KO,YO,XO=Rb.Promise,ZO=ww("species"),JO=function(e){var t=aw(e),n=Kw.f;Sw&&t&&!t[ZO]&&n(t,ZO,{configurable:!0,get:function(){return this}})},QO=Rb.TypeError,ek=ww("species"),tk=function(e,t){var n,r=Tw(e).constructor;return void 0===r||null==(n=Tw(r)[ek])?t:function(e){if(Zx(e))return e;throw QO(Rw(e)+" is not a constructor")}(n)},nk=Gb([].slice),rk=/(?:ipad|iphone|ipod).*applewebkit/i.test(uw),ok="process"==Ex(Rb.process),ik=Rb.setImmediate,ak=Rb.clearImmediate,uk=Rb.process,sk=Rb.Dispatch,lk=Rb.Function,ck=Rb.MessageChannel,fk=Rb.String,dk=0,pk={};try{qO=Rb.location}catch(lO){}var hk=function(e){if(Qb(pk,e)){var t=pk[e];delete pk[e],t()}},gk=function(e){return function(){hk(e)}},vk=function(e){hk(e.data)},yk=function(e){Rb.postMessage(fk(e),qO.protocol+"//"+qO.host)};ik&&ak||(ik=function(e){var t=nk(arguments,1);return pk[++dk]=function(){uC(ow(e)?e:lk(e),void 0,t)},GO(dk),dk},ak=function(e){delete pk[e]},ok?GO=function(e){uk.nextTick(gk(e))}:sk&&sk.now?GO=function(e){sk.now(gk(e))}:ck&&!rk?(YO=(KO=new ck).port2,KO.port1.onmessage=vk,GO=Px(YO.postMessage,YO)):Rb.addEventListener&&ow(Rb.postMessage)&&!Rb.importScripts&&qO&&"file:"!==qO.protocol&&!pw(yk)?(GO=yk,Rb.addEventListener("message",vk,!1)):GO="onreadystatechange"in Ow("script")?function(e){oS.appendChild(Ow("script")).onreadystatechange=function(){oS.removeChild(this),hk(e)}}:function(e){setTimeout(gk(e),0)});var mk,bk,wk,xk,Ek,Sk,Dk,Ck,Ak={set:ik,clear:ak},Ok=/ipad|iphone|ipod/i.test(uw)&&void 0!==Rb.Pebble,kk=/web0s(?!.*chrome)/i.test(uw),Bk=gE.f,Fk=Ak.set,Tk=Rb.MutationObserver||Rb.WebKitMutationObserver,_k=Rb.document,Pk=Rb.process,jk=Rb.Promise,Nk=Bk(Rb,"queueMicrotask"),Ik=Nk&&Nk.value;Ik||(mk=function(){var e,t;for(ok&&(e=Pk.domain)&&e.exit();bk;){t=bk.fn,bk=bk.next;try{t()}catch(e){throw bk?xk():wk=void 0,e}}wk=void 0,e&&e.enter()},rk||ok||kk||!Tk||!_k?!Ok&&jk&&jk.resolve?((Dk=jk.resolve(void 0)).constructor=jk,Ck=Px(Dk.then,Dk),xk=function(){Ck(mk)}):ok?xk=function(){Pk.nextTick(mk)}:(Fk=Px(Fk,Rb),xk=function(){Fk(mk)}):(Ek=!0,Sk=_k.createTextNode(""),new Tk(mk).observe(Sk,{characterData:!0}),xk=function(){Sk.data=Ek=!Ek}));var Lk,Rk,Mk,zk,$k=Ik||function(e){var t={fn:e,next:void 0};wk&&(wk.next=t),bk||(bk=t,xk()),wk=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=zw(t),this.reject=zw(n)},Vk={f:function(e){return new Hk(e)}},Uk=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Wk="object"==typeof window,qk=Ak.set,Gk=ww("species"),Kk="Promise",Yk=hx.getterFor(Kk),Xk=hx.set,Zk=hx.getterFor(Kk),Jk=XO&&XO.prototype,Qk=XO,eB=Jk,tB=Rb.TypeError,nB=Rb.document,rB=Rb.process,oB=Vk.f,iB=oB,aB=!!(nB&&nB.createEvent&&Rb.dispatchEvent),uB=ow(Rb.PromiseRejectionEvent),sB=!1,lB=LE(Kk,(function(){var e=tx(Qk),t=e!==String(Qk);if(!t&&66===dw)return!0;if(dw>=51&&/native code/.test(e))return!1;var n=new Qk((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Gk]=r,!(sB=n.then((function(){}))instanceof r)||!t&&Wk&&!uB})),cB=lB||!zS((function(e){Qk.all(e).catch((function(){}))})),fB=function(e){var t;return!(!Dw(e)||!ow(t=e.then))&&t},dB=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;$k((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&vB(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(tB("Promise-chain cycle")):(u=fB(a))?Pw(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&hB(e)}))}},pB=function(e,t,n){var r,o;aB?((r=nB.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Rb.dispatchEvent(r)):r={promise:t,reason:n},!uB&&(o=Rb["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Rb.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},hB=function(e){Pw(qk,Rb,(function(){var t,n=e.facade,r=e.value;if(gB(e)&&(t=Uk((function(){ok?rB.emit("unhandledRejection",r,n):pB("unhandledrejection",n,r)})),e.rejection=ok||gB(e)?2:1,t.error))throw t.value}))},gB=function(e){return 1!==e.rejection&&!e.parent},vB=function(e){Pw(qk,Rb,(function(){var t=e.facade;ok?rB.emit("rejectionHandled",t):pB("rejectionhandled",t,e.value)}))},yB=function(e,t,n){return function(r){e(t,r,n)}},mB=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,dB(e,!0))},bB=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw tB("Promise can't be resolved itself");var r=fB(t);r?$k((function(){var n={done:!1};try{Pw(r,t,yB(bB,n,e),yB(mB,n,e))}catch(t){mB(n,t,e)}})):(e.value=t,e.state=1,dB(e,!1))}catch(t){mB({done:!1},t,e)}}};if(lB&&(eB=(Qk=function(e){iA(this,eB),zw(e),Pw(Lk,this);var t=Yk(this);try{e(yB(bB,t),yB(mB,t))}catch(e){mB(t,e)}}).prototype,(Lk=function(e){Xk(this,{type:Kk,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=HC(eB,{then:function(e,t){var n=Zk(this),r=n.reactions,o=oB(tk(this,Qk));return o.ok=!ow(e)||e,o.fail=ow(t)&&t,o.domain=ok?rB.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&dB(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Rk=function(){var e=new Lk,t=Yk(e);this.promise=e,this.resolve=yB(bB,t),this.reject=yB(mB,t)},Vk.f=oB=function(e){return e===Qk||e===Mk?new Rk(e):iB(e)},ow(XO)&&Jk!==Object.prototype)){zk=Jk.then,sB||(bx(Jk,"then",(function(e,t){var n=this;return new Qk((function(e,t){Pw(zk,n,e,t)})).then(e,t)}),{unsafe:!0}),bx(Jk,"catch",eB.catch,{unsafe:!0}));try{delete Jk.constructor}catch(lO){}dD&&dD(Jk,eB)}ME({global:!0,wrap:!0,forced:lB},{Promise:Qk}),uD(Qk,Kk,!1),JO(Kk),Mk=aw(Kk),ME({target:Kk,stat:!0,forced:lB},{reject:function(e){var t=oB(this);return Pw(t.reject,void 0,e),t.promise}}),ME({target:Kk,stat:!0,forced:lB},{resolve:function(e){return function(e,t){if(Tw(e),Dw(t)&&t.constructor===e)return t;var n=Vk.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),ME({target:Kk,stat:!0,forced:cB},{all:function(e){var t=this,n=oB(t),r=n.resolve,o=n.reject,i=Uk((function(){var n=zw(t.resolve),i=[],a=0,u=1;rA(e,(function(e){var s=a++,l=!1;u++,Pw(n,t,e).then((function(e){l||(l=!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=oB(t),r=n.reject,o=Uk((function(){var o=zw(t.resolve);rA(e,(function(e){Pw(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var wB=zD.UNSUPPORTED_Y,xB=Math.min,EB=[].push,SB=Gb(/./.exec),DB=Gb(EB),CB=Gb("".slice);function AB(e){Promise.resolve().then(e)}function OB(e,t){return Ef.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=kf.isVoid(t,e),u="";a||(u=i.map((function(e){return OB(e,t)})).join(""));var s=function(e){return UO[e]||WO}(r),l=s(e,u,t),c="";if(c="string"==typeof l?l:l.html||"",a||VO.forEach((function(t){return c=t(e,c)})),"string"==typeof l)return c;var f=l.prefix,d=void 0===f?"":f,p=l.suffix,h=void 0===p?"":p;return d&&(c=d+c),h&&(c+=h),c}(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," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(r);var o=kO.getParentsNodes(t,e).some((function(e){return"pre"===kO.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=kO.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return VO.forEach((function(t){return r=t(e,r)})),r}(e,t)}function kB(e){return"w-e-element-"+e}cC("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=KE(Yb(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=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=Pw(nC,f,r))&&!((a=f.lastIndex)>c&&(DB(s,CB(r,c,i.index)),i.length>1&&i.index<r.length&&uC(EB,s,WC(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&SB(f,"")||DB(s,""):DB(s,CB(r,c)),s.length>o?WC(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=Yb(this),i=null==t?void 0:$w(t,e);return i?Pw(i,t,o,n):Pw(r,KE(o),t,n)},function(e,o){var i=Tw(this),a=KE(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=tk(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(wB?"g":"y"),f=new s(wB?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===xC(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=wB?0:h;var v,y=xC(f,wB?CB(a,h):a);if(null===y||(v=xB($x(f.lastIndex+(wB?h:0)),a.length))===p)h=dC(a,h,l);else{if(DB(g,CB(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(DB(g,y[m]),g.length===d)return g;h=p=v}}return DB(g,CB(a,p)),g}]}),!!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]})),wB);var BB=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},FB=function(e,t,n){var r=kO.toDOMRange(e,t).getBoundingClientRect(),o=kO.toDOMRange(e,n).getBoundingClientRect();return BB(r,o)&&BB(o,r)},TB=["span","b","strong","i","em","s","strike","u","font","sub","sup"],_B=[],PB=[],jB={},NB=Kw.f,IB=AE.f,LB=hx.enforce,RB=ww("match"),MB=Rb.RegExp,zB=MB.prototype,$B=Rb.SyntaxError,HB=Gb(YE),VB=Gb(zB.exec),UB=Gb("".charAt),WB=Gb("".replace),qB=Gb("".indexOf),GB=Gb("".slice),KB=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,YB=/a/g,XB=/a/g,ZB=new MB(YB)!==YB,JB=zD.MISSED_STICKY,QB=zD.UNSUPPORTED_Y,eF=Sw&&(!ZB||JB||HD||UD||pw((function(){return XB[RB]=!1,MB(YB)!=YB||MB(XB)==XB||"/a/i"!=MB(YB,"i")})));if(LE("RegExp",eF)){for(var tF=function(e,t){var n,r,o,i,a,u,s=jw(zB,this),l=vS(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===tF)return e;if((l||jw(zB,e))&&(e=e.source,c&&(t="flags"in d?d.flags:HB(d))),e=void 0===e?"":KE(e),t=void 0===t?"":KE(t),d=e,HD&&"dotAll"in YB&&(r=!!t&&qB(t,"s")>-1)&&(t=WB(t,/s/g,"")),n=t,JB&&"sticky"in YB&&(o=!!t&&qB(t,"y")>-1)&&QB&&(t=WB(t,/y/g,"")),UD&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=UB(e,r)))t+=UB(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:VB(KB,GB(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||Qb(a,c))throw new $B("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=aA(MB(e,t),s?this:zB,tF),(r||o||f.length)&&(u=LB(a),r&&(u.dotAll=!0,u.raw=tF(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=UB(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+UB(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{Xw(a,"source",""===d?"(?:)":d)}catch(e){}return a},nF=function(e){e in tF||NB(tF,e,{configurable:!0,get:function(){return MB[e]},set:function(t){MB[e]=t}})},rF=IB(MB),oF=0;rF.length>oF;)nF(rF[oF++]);zB.constructor=tF,tF.prototype=zB,bx(Rb,"RegExp",tF)}JO("RegExp");var iF=new RegExp(String.fromCharCode(160),"g");function aF(e){return e.replace(iF," ")}function uF(e,t){var n=e.length;if(n){var r=e[n-1];if(Jf.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function sF(e,t,n){return{type:"paragraph",children:[{text:Tp(e).text().replace(/\s+/gm," ")}]}}function lF(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!==sO.ELEMENT_NODE)if(e.nodeType!==sO.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=aF(r),uF(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(uF(n,"\n")||n.push({text:"\n"}));var o=fF(Tp(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 jB)if(e[0].matches(t))return jB[t];return sF}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(r){kf.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),PB.forEach((function(n){r=n(e[0],r,t)})))})),o}function cF(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(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n);var r={text:n=aF(n)};return PB.forEach((function(n){r=n(e[0],r,t)})),r}function fF(e,t){_B.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Tp(r(e[0])))}));var n=wO(e);return"span"===n?e.attr("data-w-e-type")?lF(e,t):cF(e,t):"code"===n?"pre"===wO(e.parent())?lF(e,t):cF(e,t):TB.includes(n)?cF(e,t):lF(e,t)}function dF(e,t,n){var r=Tp(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function pF(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=Tp("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=fF(Tp(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var hF=Kw.f,gF=QC.fastKey,vF=hx.set,yF=hx.getterFor,mF={getConstructor:function(e,t,n,r){var o=e((function(e,o){iA(e,i),vF(e,{type:t,index:cS(null),first:void 0,last:void 0,size:0}),Sw||(e.size=0),null!=o&&rA(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=yF(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=gF(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),Sw?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=gF(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return HC(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,Sw?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),Sw?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)}}),HC(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)}}),Sw&&hF(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=yF(t),i=yF(r);bD(e,t,(function(e,t){vF(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),JO(t)}};uA("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),mF);var bF=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function wF(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):vd.insertNodes(e,t,{mode:"highest"})}var xF=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=NC(Wf.edges(n),2),o=r[0],i=r[1],a=kf.void(t,{at:o.path}),u=kf.void(t,{at:i.path});if(!Wf.isCollapsed(n)||a){var s=kO.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),u){var f=NC(u,1)[0],d=s.cloneRange(),p=kO.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),hO(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var g=t.getFragment(),v=JSON.stringify(g),y=window.btoa(encodeURIComponent(v));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",mO(m)),l.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"),l=e.getData("text/html");if(l)t.dangerouslyInsertHtml(l);else if(s){var c=s.split(/\r\n|\r|\n/),f=!1;try{for(var d=jC(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&vd.splitNodes(t,{always:!0}),n(h),f=!0}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},EF=function(e){return null!=e},SF={object:!0,function:!0,undefined:!0},DF=/^\s*class[\s{/}]/,CF=Function.prototype.toString,AF=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!!EF(e)&&hasOwnProperty.call(SF,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!DF.test(CF.call(e))},OF=function(e){return null!=e},kF=Object.keys,BF=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return kF(OF(e)?Object(e):e)},FF=function(e){if(!OF(e))throw new TypeError("Cannot use null or undefined");return e},TF=Math.max,_F=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=TF(arguments.length,2);for(e=Object(FF(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)BF(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},PF=Array.prototype.forEach,jF=Object.create,NF=function(e,t){var n;for(n in e)t[n]=e[n]},IF=function(e){var t=jF(null);return PF.call(arguments,(function(e){OF(e)&&NF(Object(e),t)})),t},LF="razdwatrzy",RF=String.prototype.indexOf,MF="function"==typeof LF.contains&&!0===LF.contains("dwa")&&!1===LF.contains("foo")?String.prototype.contains:function(e){return RF.call(this,e,arguments[1])>-1},zF=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],EF(e)?(n=MF.call(e,"c"),r=MF.call(e,"e"),o=MF.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?_F(IF(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],EF(t)?AF(t)?EF(n)?AF(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,EF(e)?(r=MF.call(e,"c"),o=MF.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?_F(IF(i),a):a}})),$F=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},HF=jb((function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return $F(t),h.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),d(this,"__ee__",g),g.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 $F(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if($F(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)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.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];l.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},u={on:zF(n),once:zF(r),off:zF(o),emit:zF(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function VF(e){var t=rO.get(e);return null==t&&(t=HF(),rO.set(e,t)),t}var UF=new WeakMap;function WF(e,t){var n=UF.get(e);null==n&&(n=new Set,UF.set(e,n)),n.add(t)}function qF(e){return UF.get(e)||new Set}function GF(e){UF.set(e,new Set)}function KF(e){var t=kO.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function YF(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=KF(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=kO.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var h=u-f;c.bottom=h+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function XF(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=Ef.isElement(t)&&e.isVoid(t),i=Ef.isElement(t)&&e.isInline(t),a=JA.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=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(uO.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!=d){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var h=KF(e);if(null==h)return r;var g,v=h.top,y=h.left,m=h.width,b=h.height,w={},x=s-v,E=l-y;if("bar"===n)return w.left=E+"px",x>40?w.bottom=b-x+5+"px":w.top=x+c+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?((g=x)<0&&(g=0),w.top=g+"px"):x>(b-c)/2?w.bottom=b-x+5+"px":((g=x+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function ZF(e,t){AB((function(){var n=KF(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0&&(r=p+d-u)>0){var v=t.css("top"),y=parseInt(v.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(g.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(g.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(g.indexOf("right")>=0&&c<0){var E=t.css("right"),S=parseInt(E.toString())-Math.abs(c);t.css("right",S+"px")}}}))}var JF=jD("slice"),QF=ww("species"),eT=Rb.Array,tT=Math.max;ME({target:"Array",proto:!0,forced:!JF},{slice:function(e,t){var n,r,o,i=pE(this),a=Hx(i),u=mE(e,a),s=mE(void 0===t?a:t,a);if(Vx(i)&&(n=i.constructor,(Zx(n)&&(n===eT||Vx(n.prototype))||Dw(n)&&null===(n=n[QF]))&&(n=void 0),n===eT||void 0===n))return nk(i,u,s);for(r=new(void 0===n?eT:n)(tT(s-u,0)),o=0;u<s;u++,o++)u in i&&FS(r,o,i[u]);return r.length=o,r}});var nT=gE.f,rT=Gb("".startsWith),oT=Gb("".slice),iT=Math.min,aT=wS("startsWith"),uT=!aT&&!!function(){var e=nT(String.prototype,"startsWith");return e&&!e.writable}();ME({target:"String",proto:!0,forced:!uT&&!aT},{startsWith:function(e){var t=KE(Yb(this));mS(e);var n=$x(iT(arguments.length>1?arguments[1]:void 0,t.length)),r=KE(e);return rT?rT(t,r,n):oT(t,n,n+r.length)===r}});var sT=Object.assign,lT=Object.defineProperty,cT=Gb([].concat),fT=!sT||pw((function(){if(Sw&&1!==sT({b:1},sT(lT({},"a",{enumerable:!0,get:function(){lT(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!=sT({},e)[n]||zE(sT({},t)).join("")!=r}))?function(e,t){for(var n=Zb(e),r=arguments.length,o=1,i=OE.f,a=dE.f;r>o;)for(var u,s=Ix(arguments[o++]),l=i?cT(zE(s),i(s)):zE(s),c=l.length,f=0;c>f;)u=l[f++],Sw&&!Pw(a,s,u)||(n[u]=s[u]);return n}:sT;ME({target:"Object",stat:!0,forced:Object.assign!==fT},{assign:fT});var dT=["props","attrs","style","dataset","on","hook"];function pT(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(!dT.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=av(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&&pT(e)}))}var hT=[],gT={};function vT(e,t,n){return wg(n.isInline(e)?"span":"div",null,t)}function yT(e,t){return void 0===t&&(t=!1),wg("span",{"data-slate-string":!0},t?e+"\n":e)}function mT(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),wg("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?wg("br",null):null)}function bT(e,t,n,r){return GA.set(e,t),KA.set(e,n),Ef.isElement(e)?function(e,t){var n,r=kO.findKey(t,e),o=t.isInline(e),i=kf.isVoid(t,e),a=kB(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,l=e.children,c=void 0===l?[]:l,f=function(e){return gT[e]||vT}(s);n=i?null:c.map((function(n,r){return bT(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=NC(Pf.texts(e),1),g=NC(h[0],1)[0],v=wg(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},bT(g,0,e,t));d=wg(p,{style:{position:"relative"}},d,v),GA.set(g,0),KA.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return hT.forEach((function(r){n=r(e,t)})),n}(e,d)),AB((function(){var t=gO(a);null!=t&&(ZA.set(r,t),JA.set(e,t),XA.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=kO.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=kO.findPath(n,e),a=o([e,i]),u=Jf.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=kO.findPath(o,n),u=Lf.parent(a);if(kf.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?mT(Pf.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==kf.string(o,u)?""===i?mT():t&&"\n"===i.slice(-1)?yT(i,!0):yT(i):mT(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return hT.forEach((function(t){n=t(e,n)})),n}(r,i),wg("span",{"data-slate-leaf":!0},i)})),l=function(e){return"w-e-text-"+e}(r.id),c=wg("span",{"data-slate-node":"text",id:l,key:r.id},s);return AB((function(){var t=gO(l);null!=t&&(ZA.set(r,t),JA.set(e,t),XA.set(t,e))})),c}(e,n,r)}function wT(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),eg("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=bT(e,n,t,t);return pT(r),r}));var c=UA.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return Tp('<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],(p=Jh([og,pg,mg,ug,fg,ng]))(n,s),UA.set(e,!1),WA.set(e,p)}else{var d=qA.get(e),p=WA.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=gO(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=cO(n);h&&eO.set(t,h)}YA.set(t,n),JA.set(t,n),XA.set(n,t),qA.set(e,s)}}function xT(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function ET(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function ST(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return ET(n.overflowY,t)||ET(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 DT(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 CT(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(!xT(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;xT(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&ST(f)&&!ST(document.documentElement)||null!=f&&ST(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,m=v.width,b=v.top,w=v.right,x=v.bottom,E=v.left,S="start"===o||"nearest"===o?b:"end"===o?x:b+y/2,D="center"===i?E+m/2:"end"===i?w:E,C=[],A=0;A<c.length;A++){var O=c[A],k=O.getBoundingClientRect(),B=k.height,F=k.width,T=k.top,_=k.right,P=k.bottom,j=k.left;if("if-needed"===r&&b>=0&&E>=0&&x<=p&&w<=d&&b>=T&&x<=P&&E>=j&&w<=_)return C;var N=getComputedStyle(O),I=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),R=parseInt(N.borderRightWidth,10),M=parseInt(N.borderBottomWidth,10),z=0,$=0,H="offsetWidth"in O?O.offsetWidth-O.clientWidth-I-R:0,V="offsetHeight"in O?O.offsetHeight-O.clientHeight-L-M:0;if(l===O)z="start"===o?S:"end"===o?S-p:"nearest"===o?DT(g,g+p,p,L,M,g+S,g+S+y,y):S-p/2,$="start"===i?D:"center"===i?D-d/2:"end"===i?D-d:DT(h,h+d,d,I,R,h+D,h+D+m,m),z=Math.max(0,z+g),$=Math.max(0,$+h);else{z="start"===o?S-T-L:"end"===o?S-P+M+V:"nearest"===o?DT(T,P,B,L,M+V,S,S+y,y):S-(T+B/2)+V/2,$="start"===i?D-j-I:"center"===i?D-(j+F/2)+H/2:"end"===i?D-_+R+H:DT(j,_,F,I,R+H,D,D+m,m);var U=O.scrollLeft,W=O.scrollTop;S+=W-(z=Math.max(0,Math.min(W+z,O.scrollHeight-B+V))),D+=U-($=Math.max(0,Math.min(U+$,O.scrollWidth-F+H)))}C.push({el:O,top:z,left:$})}return C}function AT(e){return e===Object(e)&&0!==Object.keys(e).length}function OT(e,t){return dO(t)&&kO.hasDOMNode(e,t,{editable:!0})}function kT(e,t){if(e.getConfig().readOnly)return!1;var n=BT(e,t)&&kO.toSlateNode(e,t);return kf.isVoid(e,n)}function BT(e,t){return dO(t)&&kO.hasDOMNode(e,t)}function FT(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=kO.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=YA.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=kO.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&Wf.equals(l,r)){var c=!0;if(Wf.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||kO.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&kO.toDOMRange(t,r);if(g){Wf.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var y=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(AT(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:CT(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:AT(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)}))}(CT(e,r),r.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){g&&EO&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=kO.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var TT=new WeakMap,_T=new WeakMap,PT={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"},jT={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"},NT={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},IT=function(e){var t=PT[e],n=jT[e],r=NT[e],o=t&&vv(t),i=n&&vv(n),a=r&&vv(r);return function(e){return!(!o||!o(e))||!!(xO&&i&&i(e))||!(xO||!a||!a(e))}},LT={isBold:IT("bold"),isCompose:IT("compose"),isMoveBackward:IT("moveBackward"),isMoveForward:IT("moveForward"),isDeleteBackward:IT("deleteBackward"),isDeleteForward:IT("deleteForward"),isDeleteLineBackward:IT("deleteLineBackward"),isDeleteLineForward:IT("deleteLineForward"),isDeleteWordBackward:IT("deleteWordBackward"),isDeleteWordForward:IT("deleteWordForward"),isExtendBackward:IT("extendBackward"),isExtendForward:IT("extendForward"),isExtendLineBackward:IT("extendLineBackward"),isExtendLineForward:IT("extendLineForward"),isItalic:IT("italic"),isMoveLineBackward:IT("moveLineBackward"),isMoveLineForward:IT("moveLineForward"),isMoveWordBackward:IT("moveWordBackward"),isMoveWordForward:IT("moveWordForward"),isRedo:IT("redo"),isSplitBlock:IT("splitBlock"),isTransposeCharacter:IT("transposeCharacter"),isUndo:IT("undo"),isTab:IT("tab"),isSelectAll:IT("selectAll")};function RT(e){e.preventDefault()}var MT={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(OO&&!o&&OT(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=NC(r.getTargetRanges(),1)[0];if(s){var l=kO.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&Wf.equals(i,l)||vd.select(n,l)}}if(i&&Wf.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";kf.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":kf.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":kf.deleteForward(n);break;case"deleteContentBackward":kf.deleteBackward(n);break;case"deleteEntireSoftLine":kf.deleteBackward(n,{unit:"line"}),kf.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":kf.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":kf.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":kf.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":kf.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":kf.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":kf.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":kf.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!oO.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&kf.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&OT(n,r.target)){var a=kO.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===kO.toDOMNode(n,n)||fO(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&dO(u)&&kO.hasDOMNode(n,u)){var s=kO.toSlateNode(n,u);if(Ef.isElement(s)&&!n.isVoid(s))return}if(SO){var l=a.getSelection();null==l||l.removeAllRanges()}tO.delete(n)}}}},focus:function(e,t,n){var r=kO.toDOMNode(n,n),o=kO.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,EO&&e.target!==r?r.focus():tO.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&BT(n,e.target)&&dO(e.target)){var r=kO.toSlateNode(n,e.target),o=kO.findPath(n,r);if(kf.hasPath(n,o)&&Pf.get(n,o)===r){var i=kf.start(n,o),a=kf.end(n,o),u=kf.void(n,{at:i}),s=kf.void(n,{at:a});if(u&&s&&Lf.equals(u[1],s[1])){var l=kf.range(n,i);vd.select(n,l)}}}},compositionstart:function(e,t,n){if(OT(n,e.target)){var r=n.selection;if(r&&Wf.isExpanded(r)&&(kf.deleteFragment(n),Promise.resolve().then((function(){FT(t,n,!0)}))),r&&Wf.isCollapsed(r)){var o=kO.toDOMRange(n,r).startContainer,i=o.textContent||"";TT.set(n,i),_T.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(OT(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(AO||EO)&&kO.cleanExposedTexNodeInSelectionBlock(n);for(var i=Wf.isBackward(o)?o.focus:o.anchor,a=NC(kf.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=NC(kf.node(n,i.path.slice(0,u+1)),1)[0];if(Ef.isElement(s)&&((SO||EO)&&"link"===s.type||"code"===s.type)){kO.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=kO.getLeftLengthOfMaxLength(n);c<l.length?(kO.toDOMRange(n,o).startContainer.textContent=TT.get(n)||"",c>0&&kf.insertText(n,l.slice(0,c)),t.changeViewState()):kf.insertText(n,l)}else kf.insertText(n,l);SO||setTimeout((function(){var e=n.selection;if(null!=e){var t=_T.get(n);null!=t&&kO.toDOMRange(n,e).startContainer!==t&&(t.textContent=TT.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){OT(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&OT(n,r.target)){if(function(e,t){var n=LA.get(e),r=n&&n.getMenus(),o=MA.get(e),i=o&&o.getMenus(),a=PC(PC({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&gv(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),LT.isTab(r))return RT(r),void n.handleTab();if(LT.isRedo(r))return RT(r),void("function"==typeof n.redo&&n.redo());if(LT.isUndo(r))return RT(r),void("function"==typeof n.undo&&n.undo());if(LT.isMoveLineBackward(r))return RT(r),void vd.move(n,{unit:"line",reverse:!0});if(LT.isMoveLineForward(r))return RT(r),void vd.move(n,{unit:"line"});if(LT.isExtendLineBackward(r))return RT(r),void vd.move(n,{unit:"line",edge:"focus",reverse:!0});if(LT.isExtendLineForward(r))return RT(r),void vd.move(n,{unit:"line",edge:"focus"});if(LT.isMoveBackward(r))return RT(r),void(o&&Wf.isCollapsed(o)?vd.move(n,{reverse:!0}):vd.collapse(n,{edge:"start"}));if(LT.isMoveForward(r))return RT(r),void(o&&Wf.isCollapsed(o)?vd.move(n):vd.collapse(n,{edge:"end"}));if(LT.isMoveWordBackward(r))return RT(r),o&&Wf.isExpanded(o)&&vd.collapse(n,{edge:"focus"}),void vd.move(n,{unit:"word",reverse:!0});if(LT.isMoveWordForward(r))return RT(r),o&&Wf.isExpanded(o)&&vd.collapse(n,{edge:"focus"}),void vd.move(n,{unit:"word"});if(LT.isSelectAll(r))return RT(r),void n.selectAll();if(OO){if((AO||SO)&&o&&(LT.isDeleteBackward(r)||LT.isDeleteForward(r))&&Wf.isCollapsed(o)){var i=Pf.parent(n,o.anchor.path);if(Ef.isElement(i)&&kf.isVoid(n,i)&&kf.isInline(n,i))return r.preventDefault(),void vd.delete(n,{unit:"block"})}}else{if(LT.isBold(r)||LT.isItalic(r)||LT.isTransposeCharacter(r))return void RT(r);if(LT.isSplitBlock(r))return RT(r),void kf.insertBreak(n);if(LT.isDeleteBackward(r))return RT(r),void(o&&Wf.isExpanded(o)?kf.deleteFragment(n,{direction:"backward"}):kf.deleteBackward(n));if(LT.isDeleteForward(r))return RT(r),void(o&&Wf.isExpanded(o)?kf.deleteFragment(n,{direction:"forward"}):kf.deleteForward(n));if(LT.isDeleteLineBackward(r))return RT(r),void(o&&Wf.isExpanded(o)?kf.deleteFragment(n,{direction:"backward"}):kf.deleteBackward(n,{unit:"line"}));if(LT.isDeleteLineForward(r))return RT(r),void(o&&Wf.isExpanded(o)?kf.deleteFragment(n,{direction:"forward"}):kf.deleteForward(n,{unit:"line"}));if(LT.isDeleteWordBackward(r))return RT(r),void(o&&Wf.isExpanded(o)?kf.deleteFragment(n,{direction:"backward"}):kf.deleteBackward(n,{unit:"word"}));if(LT.isDeleteWordForward(r))return RT(r),void(o&&Wf.isExpanded(o)?kf.deleteFragment(n,{direction:"forward"}):kf.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!OO&&!n.getConfig().readOnly&&OT(n,e.target)){e.preventDefault();var r=e.key;kf.insertText(n,r)}},copy:function(e,t,n){var r=e;if(OT(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&&OT(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(Wf.isExpanded(o))kf.deleteFragment(n);else{var a=Pf.parent(n,o.anchor.path);kf.isVoid(n,a)&&vd.delete(n)}}},paste:function(e,t,n){oO.set(n,!0);var r=e;if(!n.getConfig().readOnly&&OT(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void oO.set(n,!1);if(!OO||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(BT(n,e.target)){var r=kO.toSlateNode(n,e.target);kf.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(BT(n,r.target)&&!n.getConfig().readOnly){var o=kO.toSlateNode(n,r.target),i=kO.findPath(n,o);if(kf.isVoid(n,o)||kf.void(n,{at:i,voids:!0})){var a=kf.range(n,i);vd.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&&BT(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&BT(n,r.target)&&null!=o&&!(OO&&SO&&o.files.length>0)){r.preventDefault();var i=n.selection,a=kO.findEventRange(n,r);vd.select(n,a),t.isDraggingInternally&&(i&&vd.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},zT=1,$T=function(){function e(e){var t=this;this.id=zT++,this.$textArea=null,this.$progressBar=Tp('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Tp('<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=$h((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=kO.findDocumentOrShadowRoot(t),a=i.activeElement,u=kO.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,tO.set(t,!0)):tO.delete(t),!s)return vd.deselect(t);var l=s.anchorNode,c=s.focusNode,f=OT(t,l)||kT(t,l),d=OT(t,c)||kT(t,c);if(f&&d){var p=kO.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});vd.select(t,p)}else vd.deselect(t)}}(t,e)}),100);var n=Tp(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=Tp('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Tp('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,AB((function(){var e=t.editorInstance,n=kO.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=NA.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(MT,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",$h((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-kO.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;wT(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=Tp('<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),AB((function(){FT(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function HT(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&&HT(t)}function VT(){return Tp('<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 UT(){return Tp('<div class="w-e-bar-divider"></div>')}function WT(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=xO?"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")}}}cC("match",(function(e,t,n){return[function(t){var n=Yb(this),r=null==t?void 0:$w(t,e);return r?Pw(r,t,n):new RegExp(t)[e](KE(n))},function(e){var r=Tw(this),o=KE(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return xC(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=xC(r,o));){var c=KE(u[0]);s[l]=c,""===c&&(r.lastIndex=dC(o,$x(r.lastIndex),a)),l++}return 0===l?null:s}]}));var qT=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Tp('<div class="w-e-bar-item"></div>'),this.$button=Tp('<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,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=Tp(c);HT(d),f.append(d)}else f.text(a);WT(f,c,a,s,n),n&&c&&f.append(Tp('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),AB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),i_(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=i_(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=i_(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=i_(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}(),GT=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return _C(t,e),t.prototype.onButtonClick=function(){},t}(qT),KT=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=$A.get(e);null==t&&(t=new Set,$A.set(e,t)),t.add(this),HA.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=HA.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=HA.get(this);e&&e.emit("modalOrPanelHide")}},e}(),YT=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=Tp('<div class="w-e-drop-panel"></div>'),n}return _C(t,e),t.prototype.genSelfElem=function(){return null},t}(KT),XT=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=VT();o.$button.append(i)}return o}return _C(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=i_(this);if(null==this.dropPanel){var n=new YT(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}(qT),ZT=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=Tp('<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 _C(t,e),t.prototype.genSelfElem=function(){var e=this,t=Tp('<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=HA.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}(KT);function JT(e,t,n){var r=Tp('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Tp('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function QT(e,t){var n=Tp('<div class="button-container"></div>'),r=Tp('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var e_=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=Tp("body"),o.modal=null,o.menu=n,o}return _C(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=i_(this),t=this.menu.getModalPositionNode(e);return Ef.isElement(t)?XF(e,t,"modal"):YF(e)},t.prototype.handleModal=function(){var e=i_(this),t=this.menu;if(null==this.modal){var n=new ZT(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=i_(this),r=this.menu;if(null!=r.getModalContentElem){var o=kO.getTextarea(n),i=kO.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||ZF(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(qT),t_=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=Tp('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return _C(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=Tp("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Tp('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=Tp('<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(Tp('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(KT),n_=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Tp('<div class="w-e-bar-item"></div>'),this.$button=Tp('<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,l=t.hotkey,c=void 0===l?"":l;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),WT(f,s,i,c,n),this.$elem.append(f),this.menu=t,AB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),i_(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=i_(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new t_(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=Tp(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=i_(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=i_(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=VT();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=i_(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}(),r_=function(){function e(e){this.$elem=Tp('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Tp('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Tp('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=Tp(n);HT(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=VT();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}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){Tp(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),o_=new WeakMap;function i_(e){var t=zA.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function a_(e,t,n){void 0===n&&(n=!1);var r=o_.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new XT(e,t,n):a?new e_(e,t,n):new GT(e,t,n)}if("select"===o&&(r=new n_(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return o_.set(t,r),r}function u_(e,t){var n=e.selection;return null!=n&&!Wf.isCollapsed(n)&&!kO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!Jf.isText(t)}var s_=function(){function e(){var e=this;this.$elem=Tp('<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=_v((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&&Ef.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),AB((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),kO.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;AB((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=UT();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=TO[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=a_(e,r);this.hoverbarItems.push(i),zA.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Ef.isElement(e)){var r=XF(t,e,"bar");return n.css(r),void ZF(t,n)}if(Jf.isText(e))return r=YF(t),n.css(r),void ZF(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,l=a||function(e,t){return kO.checkNodeType(t,o)},c=NC(kf.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1),f=c[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=RA.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=u_),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=kO.findPath(null,e),r=kO.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 l_(e,t,n,r){if(GA.set(e,t),KA.set(e,n),Ef.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return l_(t,n,e,r)})),kf.isVoid(r,e)){var i=NC(Pf.texts(e),1),a=NC(i[0],1)[0];GA.set(a,0),KA.set(a,e)}}}function c_(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,l=(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];qE.withoutSaving(t,(()=>{kf.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];qE.withoutSaving(t,(()=>{kf.withoutNormalizing(t,(()=>{var e=r.map(If.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),l=qE.isSaving(t),c=qE.isMerging(t);if(null==l&&(l=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),l){if(null==c&&(c=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&&c)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=kO.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=kO.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(kO.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=kO.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===sO.TEXT_NODE?e+(t.textContent||""):n===sO.ELEMENT_NODE?bF.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=VF(t);if(r.on(e,n),"destroyed"===e&&WF(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),WF(t,o)}},t.once=function(e,n){VF(t).once(e,n)},t.off=function(e,n){VF(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=VF(t);o.emit.apply(o,IC([e],NC(n))),"destroyed"===e&&(qF(t).forEach((function(e){return o.off("destroyed",e)})),GF(t))},t}(function(e){var t=e;return t.select=function(e){vd.select(t,e)},t.deselect=function(){var n=t.selection,r=kO.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&vd.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||vd.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=nO.get(t);null!=e&&(t.focus(),vd.select(t,e))},t.getSelectionPosition=function(){return YF(t)},t.getNodePosition=function(e){return XF(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=NC(Wf.edges(e),2),r=n[0],o=n[1],i=NC(kf.edges(t,[]),2),a=i[0],u=i[1];return!(!$f.equals(r,a)||!$f.equals(o,u))},t.selectAll=function(){var e=kf.start(t,[]),n=kf.end(t,[]);vd.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,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=jC(kf.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=NC(p.value,2),g=h[0],v=h[1],y=kO.findKey(t,g);f.push([v,y])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=jC(kf.levels(t,{at:Lf.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=NC(b.value,2);g=w[0],v=w[1],y=kO.findKey(t,g),f.push([v,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=jC(kf.levels(t,{at:Lf.common(Lf.parent(e.path),Lf.parent(e.newPath))})),E=x.next();!E.done;E=x.next()){var S=NC(E.value,2);g=S[0],v=S[1],y=kO.findKey(t,g),f.push([v,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 D=jC(f),C=D.next();!C.done;C=D.next()){var A=NC(C.value,2);v=A[0],y=A[1],g=NC(kf.node(t,v),1)[0],QA.set(g,y)}}catch(e){l={error:e}}finally{try{C&&!C.done&&(c=D.return)&&c.call(D)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&Wf.isCollapsed(e.selection)){var r=kf.above(e,{match:function(t){return kf.isBlock(e,t)},at:e.selection});if(r){var o=NC(r,2)[1],a=kf.range(e,o,e.selection.anchor),u=function(e,t){var n=kf.range(e,Wf.end(t)),r=Array.from(kf.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(FB(e,kf.range(e,r[o]),n))return kf.range(e,r[o],n);if(r.length<2)return kf.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)FB(e,kf.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return kf.range(e,r[i],n)}(t,a);Wf.isCollapsed(u)||vd.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&nO.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 OB(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?"":kf.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=kf.nodes(t,{at:[],universal:!0});try{for(var u=jC(a),s=u.next();!s.done;s=u.next()){var l=NC(s.value,1)[0];if(Ef.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=kB(kO.findKey(t,l).id);i.push(PC(PC({},l),{id:c}))}}}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(Ef.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(Jf.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){vd.delete(t,{at:{anchor:kf.start(t,[]),focus:kf.end(t,[])}}),0===t.children.length&&vd.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return kO.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===sO.TEXT_NODE||t===sO.ELEMENT_NODE&&!bF.has(n.toLowerCase())})),0!==o.length){var i=t.selection;if(null!=i){var a=null;kO.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!==sO.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(TB.includes(r.toLowerCase()))s=!0;else for(var l in jB)if(a.matches(l)){s=!0;break}if(s){var c=fF(Tp(a),t);return Array.isArray(c)?(c.forEach((function(e){return wF(t,e)})),u++):(wF(t,c),u++),void(kO.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;kO.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&&kO.isEmptyPath(t,a)&&vd.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=pF(t,e);if(vd.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(kf.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in TO)e.push(t);return e},t.getConfig=function(){var e=VA.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=xF((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of kf.pathRefs(e))Rf.transform(n,t);for(var r of kf.pointRefs(e))Hf.transform(r,t);for(var o of kf.rangeRefs(e))qf.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=Lc.get(e)||[],l=Wc(t);for(var c of s)u(Lf.transform(c,t));for(var f of l)u(f);Lc.set(e,a),vd.transform(e,t),e.operations.push(t),kf.normalize(e),"set_selection"===t.type&&(e.marks=null),Rc.get(e)||(Rc.set(e,!0),Promise.resolve().then((()=>{Rc.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Wf.isExpanded(r))vd.setNodes(e,{[t]:n},{match:Jf.isText,split:!0});else{var o=Uc(Uc({},kf.marks(e)||{}),{},{[t]:n});e.marks=o,Rc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Wf.isCollapsed(n)&&vd.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Wf.isCollapsed(n)&&vd.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Wf.isExpanded(n)&&vd.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Pf.fragment(e,t):[]},insertBreak:()=>{vd.splitNodes(e,{always:!0})},insertFragment:t=>{vd.insertFragment(e,t)},insertNode:t=>{vd.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=Uc({text:t},r);vd.insertNodes(e,o)}else vd.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Jf.isText(n))if(Ef.isElement(n)&&0===n.children.length)vd.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!kf.isEditor(n)&&Ef.isElement(n)&&(e.isInline(n)||0===n.children.length||Jf.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(!Jf.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(Jf.isText(s)||Ef.isElement(s)&&e.isInline(s))!==o?(vd.removeNodes(e,{at:r.concat(i),voids:!0}),i--):Ef.isElement(s)?e.isInline(s)&&(null!=l&&Jf.isText(l)?c&&(vd.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(vd.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&Jf.isText(l)&&(Jf.equals(s,l,{loose:!0})?(vd.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(vd.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(vd.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(Wf.isExpanded(n))vd.unsetNodes(e,t,{match:Jf.isText,split:!0});else{var r=Uc({},kf.marks(e)||{});delete r[t],e.marks=r,Rc.get(e)||e.onChange()}}};return e})());return t.id="wangEditor-"+BO++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(kO.toDOMNode(t,t).focus({preventScroll:!0}),tO.set(t,!0),e){var n=kf.end(t,[]);vd.select(t,n)}else{var r=nO.get(t);r?vd.select(t,r):vd.select(t,kf.start(t,[]))}},t.isFocused=function(){return!!tO.get(t)},t.blur=function(){kO.toDOMNode(t,t).blur(),vd.deselect(t),tO.set(t,!1)},t.updateView=function(){kO.getTextarea(t).changeViewState();var e=kO.getToolbar(t);e&&e.changeToolbarState();var n=kO.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=kO.getTextarea(t);e.destroy(),jA.delete(t),NA.delete(e);var n=kO.getToolbar(t);n&&(n.destroy(),LA.delete(t),IA.delete(n));var r=kO.getHoverbar(t);r&&(r.destroy(),MA.delete(t),RA.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=Tp("#"+e);if(0!==r.length){var o=r[0];if(!kO.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=kO.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,l=a.offset().top;u[0].scrollBy({top:s-l,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||kO.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=$A.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 kO.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=kO.getToolbar(t);n&&(e=n.$box);var r=kO.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=kO.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return kO.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return dF(e,"data-w-e-textarea",t)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(e){void 0===e&&(e={});var t=Pv(FO),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Ch(t,(function(e,t){n[t]=PC(PC({},e),o[t]||{})})),delete e.MENU_CONF,PC({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);VA.set(l,c);var f=c.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach((function(e){l=e(l)})),null!=a&&(l.children=pF(l,a)),i&&i.length&&(l.children=i),0===l.children.length&&(l.children=[{type:"paragraph",children:[{text:""}]}]),kO.normalizeContent(l),n){var p=new $T(n);jA.set(l,p),NA.set(p,l),p.changeViewState(),AB((function(){var e=p.$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(d).length>0&&(h=new s_,RA.set(h,l),MA.set(l,h)),l.on("change",(function(){l.hidePanelOrModal()})),l.on("scroll",(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return l_(e,t,l,l)}));var g=c.onCreated,v=c.onDestroyed;return g&&l.on("created",(function(){return g(l)})),v&&l.on("destroyed",(function(){return v(l)})),AB((function(){return l.emit("created")})),l}var f_=jD("splice"),d_=Rb.TypeError,p_=Math.max,h_=Math.min;ME({target:"Array",proto:!0,forced:!f_},{splice:function(e,t){var n,r,o,i,a,u,s=Zb(this),l=Hx(s),c=mE(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=h_(p_(Mx(t),0),l-c)),l+n-r>9007199254740991)throw d_("Maximum allowed length exceeded");for(o=eE(s,r),i=0;i<r;i++)(a=c+i)in s&&FS(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;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+c]=arguments[i+2];return s.length=l-r+n,o}});var g_=function(){function e(e,t){var n=this;this.$toolbar=Tp('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=_v((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=Tp(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),AB((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,l=void 0===s?[]:s,c=Pv(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){c.splice(u.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=UT();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 r_(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 r_,o=this.menus,i=o[e];if(null==i){var a=TO[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=a_(e,i,r);this.toolbarItems.push(u),zA.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=IA.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}(),v_=mx.EXISTS,y_=Kw.f,m_=Function.prototype,b_=Gb(m_.toString),w_=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,x_=Gb(w_.exec);function E_(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,l=e.meta,c=void 0===l?{}:l,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,g=e.withCredentials,v=void 0!==g&&g,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,D=void 0===S?function(e,t,n){console.error(e.name+" upload error",t,n)}:S,C=e.onProgress,A=void 0===C?function(e){}:C;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var O=n;d&&(O=function(e,t){var n=NC(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}(O,c));var k=new um({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(_b,{endpoint:O,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,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||A(e)})),k.on("upload-error",(function(e,t,n){try{D(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{D(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k}function S_(e){return S_="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},S_(e)}function D_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C_(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){D_(e,t,n[t])}))}return e}function A_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k_(e,t,n){return t&&O_(e.prototype,t),n&&O_(e,n),e}function B_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F_(e,t){if(t&&("object"===S_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return B_(e)}function T_(e){return T_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T_(e)}function __(e,t){return __=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},__(e,t)}function P_(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&__(e,t)}Sw&&!v_&&y_(m_,"name",{configurable:!0,get:function(){try{return x_(w_,b_(this))[1]}catch(e){return""}}});var j_={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)}},N_=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};A_(this,e),this.init(t,n)}return k_(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||j_,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,C_({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),I_=function(){function e(){A_(this,e),this.observers={}}return k_(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 L_(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function R_(e){return null==e?"":""+e}function M_(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function z_(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 $_(e,t,n){var r=z_(e,t,Object);r.obj[r.k]=n}function H_(e,t){var n=z_(e,t),r=n.obj,o=n.k;if(r)return r[o]}function V_(e,t,n){var r=H_(e,n);return void 0!==r?r:H_(t,n)}function U_(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]):U_(e[r],t[r],n):e[r]=t[r]);return e}function W_(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var q_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function G_(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return q_[e]})):e}var K_="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function Y_(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 l=r.slice(i+a).join(n);return l?Y_(s,l,n):void 0}o=o[r[i]]}return o}}var X_=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return A_(this,t),n=F_(this,T_(t).call(this)),K_&&I_.call(B_(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 P_(t,I_),k_(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=H_(this.data,a);return u||!i||"string"!=typeof n?u:Y_(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),$_(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=H_(this.data,a)||{};r?U_(u,n,o):u=C_({},u,n),$_(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?C_({},{},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}(),Z_={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}},J_={},Q_=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return A_(this,t),n=F_(this,T_(t).call(this)),K_&&I_.call(B_(n)),M_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,B_(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=N_.create("translator"),n}return P_(t,I_),k_(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"!==S_(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,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||u,v=p&&p.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(g,h,C_({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var E="[object Array]"===y,S=E?[]:{},D=E?v:g;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var A="".concat(D).concat(i).concat(C);S[C]=this.translate(A,C_({},n,{joinArrays:!1,ns:s})),S[C]===A&&(S[C]=h[C])}h=S}}else if(w&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var O=!1,k=!1,B=void 0!==n.count&&"string"!=typeof n.count,F=t.hasDefaultValue(n),T=B?this.pluralResolver.getSuffix(c,n.count):"",_=n["defaultValue".concat(T)]||n.defaultValue;!this.isValidLookup(h)&&F&&(O=!0,h=_),this.isValidLookup(h)||(k=!0,h=u);var P=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,j=P&&k?void 0:h,N=F&&_!==h&&this.options.updateMissing;if(k||O||N){if(this.logger.log(N?"updateKey":"missingKey",c,l,u,N?_:h),i){var I=this.resolve(u,C_({},n,{keySeparator:!1}));I&&I.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 L=[],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++)L.push(R[M]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,N?r:j,N,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,N?r:j,N,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||_)}))})):z(L,u,_))}h=this.extendTranslation(h,e,n,p,r),k&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(k||O)&&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(C_({},n,{interpolation:C_({},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 l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=C_({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.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,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=Z_.handle(d,e,t,this.options&&this.options.postProcessPassResolved?C_({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),l=s.key;n=l;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!J_["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(J_["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.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!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.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 eP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var tP=function(){function e(t){A_(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=N_.create("languageUtils")}return k_(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]=eP(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]=eP(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=eP(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}(),nP=[{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}],rP={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 oP(){var e={};return nP.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:rP[t.fc]}}))})),e}var iP=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};A_(this,e),this.languageUtils=t,this.options=n,this.logger=N_.create("pluralResolver"),this.rules=oP()}return k_(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}(),aP=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};A_(this,e),this.logger=N_.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return k_(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:G_,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?W_(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?W_(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?W_(t.nestingPrefix):t.nestingPrefixEscaped||W_("$t("),this.nestingSuffix=t.nestingSuffix?W_(t.nestingSuffix):t.nestingSuffixEscaped||W_(")"),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 l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=V_(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,C_({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(V_(t,s,a),l,n,C_({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}];return p.forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){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=R_(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(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=C_({},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=C_({},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=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,l=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=R_(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,C_({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),uP=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return A_(this,t),o=F_(this,T_(t).call(this)),K_&&I_.call(B_(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=N_.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return P_(t,I_),k_(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=z_(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,C_({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function sP(){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"===S_(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===S_(e[2])||"object"===S_(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 lP(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 cP(){}var fP=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(A_(this,t),e=F_(this,T_(t).call(this)),K_&&I_.call(B_(e)),e.options=lP(n),e.services={},e.logger=N_,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),F_(e,B_(e));setTimeout((function(){e.init(n,r)}),0)}return e}return P_(t,I_),k_(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=C_({},sP(),this.options,lP(t)),this.format=this.options.interpolation.format,n||(n=cP),!this.options.isClone){this.modules.logger?N_.init(r(this.modules.logger),this.options):N_.init(null,this.options);var o=new tP(this.options);this.store=new X_(this.options.resources,this.options);var i=this.services;i.logger=N_,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new iP(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new aP(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new uP(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 Q_(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 l=L_(),c=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),l.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?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cP,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=L_();return e||(e=this.languages),t||(t=this.options.ns),n||(n=cP),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&&Z_.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=L_();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"!==S_(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=C_({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var l=r.options.keySeparator||".",c=n?"".concat(n).concat(l).concat(t):t;return r.t(c,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=L_();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=L_();"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]:cP,o=C_({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=C_({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Q_(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}(),dP=new fP;function pP(e,t){dP.addResourceBundle(e,"translation",t,!0,!0)}dP.init({lng:"zh-CN",resources:{}});var hP=dP.t.bind(dP);pP("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),pP("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var gP=ra?{}.toString:function(){return"[object "+ua(this)+"]"};ra||Di(Object.prototype,"toString",gP,{unsafe:!0});var vP=Array.isArray||function(e){return"Array"==qr(e)},yP=function(){},mP=[],bP=no("Reflect","construct"),wP=/^\s*(?:class|function)\b/,xP=Vr(wP.exec),EP=!wP.exec(yP),SP=function(e){if(!Qr(e))return!1;try{return bP(yP,mP,e),!0}catch(e){return!1}},DP=!bP||Fr((function(){var e;return SP(SP.call)||!SP(Object)||!SP((function(){e=!0}))||e}))?function(e){if(!Qr(e))return!1;switch(ua(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return EP||!!xP(wP,ai(e))}:SP,CP=Lo("species"),AP=Br.Array,OP=function(e,t){return new(function(e){var t;return vP(e)&&(t=e.constructor,(DP(t)&&(t===AP||vP(t.prototype))||eo(t)&&null===(t=t[CP]))&&(t=void 0)),void 0===t?AP:t}(e))(0===t?0:t)},kP=Vr([].push),BP=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,l,c,f){for(var d,p,h=Ao(s),g=Yr(h),v=bu(l,c),y=Pi(g),m=0,b=f||OP,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:kP(w,d)}else switch(e){case 4:return!1;case 7:kP(w,d)}return i?-1:r||o?o:w}},FP=[BP(0),BP(1),BP(2),BP(3),BP(4),BP(5),BP(6),BP(7)][0],TP=function(e,t){var n=[].forEach;return!!n&&Fr((function(){n.call(null,(function(){throw 1}),1)}))}(),_P=TP?[].forEach:function(e){return FP(this,e,arguments.length>1?arguments[1]:void 0)},PP=function(e){if(e&&e.forEach!==_P)try{ti(e,"forEach",_P)}catch(t){e.forEach=_P}};for(var jP in ps)ps[jP]&&PP(Br[jP]&&Br[jP].prototype);PP(vs),pP("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"}}),pP("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 NP={type:"paragraph",renderElem:function(e,t,n){return wg("p",null,t)}},IP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==u.g?u.g:"undefined"!=typeof self?self:{};function LP(e){var t={exports:{}};return e(t,t.exports),t.exports}var RP,MP,zP=function(e){return e&&e.Math==Math&&e},$P=zP("object"==typeof globalThis&&globalThis)||zP("object"==typeof window&&window)||zP("object"==typeof self&&self)||zP("object"==typeof IP&&IP)||function(){return this}()||Function("return this")(),HP=function(e){try{return!!e()}catch(e){return!0}},VP=!HP((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),UP=Function.prototype.call,WP=UP.bind?UP.bind(UP):function(){return UP.apply(UP,arguments)},qP={}.propertyIsEnumerable,GP=Object.getOwnPropertyDescriptor,KP=GP&&!qP.call({1:2},1)?function(e){var t=GP(this,e);return!!t&&t.enumerable}:qP,YP={f:KP},XP=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ZP=Function.prototype,JP=ZP.bind,QP=ZP.call,ej=JP&&JP.bind(QP),tj=JP?function(e){return e&&ej(QP,e)}:function(e){return e&&function(){return QP.apply(e,arguments)}},nj=tj({}.toString),rj=tj("".slice),oj=function(e){return rj(nj(e),8,-1)},ij=$P.Object,aj=tj("".split),uj=HP((function(){return!ij("z").propertyIsEnumerable(0)}))?function(e){return"String"==oj(e)?aj(e,""):ij(e)}:ij,sj=$P.TypeError,lj=function(e){if(null==e)throw sj("Can't call method on "+e);return e},cj=function(e){return uj(lj(e))},fj=function(e){return"function"==typeof e},dj=function(e){return"object"==typeof e?null!==e:fj(e)},pj=function(e){return fj(e)?e:void 0},hj=function(e,t){return arguments.length<2?pj($P[e]):$P[e]&&$P[e][t]},gj=tj({}.isPrototypeOf),vj=hj("navigator","userAgent")||"",yj=$P.process,mj=$P.Deno,bj=yj&&yj.versions||mj&&mj.version,wj=bj&&bj.v8;wj&&(MP=(RP=wj.split("."))[0]>0&&RP[0]<4?1:+(RP[0]+RP[1])),!MP&&vj&&(!(RP=vj.match(/Edge\/(\d+)/))||RP[1]>=74)&&(RP=vj.match(/Chrome\/(\d+)/))&&(MP=+RP[1]);var xj=MP,Ej=!!Object.getOwnPropertySymbols&&!HP((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&xj&&xj<41})),Sj=Ej&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Dj=$P.Object,Cj=Sj?function(e){return"symbol"==typeof e}:function(e){var t=hj("Symbol");return fj(t)&&gj(t.prototype,Dj(e))},Aj=$P.String,Oj=function(e){try{return Aj(e)}catch(e){return"Object"}},kj=$P.TypeError,Bj=function(e){if(fj(e))return e;throw kj(Oj(e)+" is not a function")},Fj=function(e,t){var n=e[t];return null==n?void 0:Bj(n)},Tj=$P.TypeError,_j=Object.defineProperty,Pj=function(e,t){try{_j($P,e,{value:t,configurable:!0,writable:!0})}catch(n){$P[e]=t}return t},jj=$P["__core-js_shared__"]||Pj("__core-js_shared__",{}),Nj=LP((function(e){(e.exports=function(e,t){return jj[e]||(jj[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Ij=$P.Object,Lj=function(e){return Ij(lj(e))},Rj=tj({}.hasOwnProperty),Mj=Object.hasOwn||function(e,t){return Rj(Lj(e),t)},zj=0,$j=Math.random(),Hj=tj(1..toString),Vj=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Hj(++zj+$j,36)},Uj=Nj("wks"),Wj=$P.Symbol,qj=Wj&&Wj.for,Gj=Sj?Wj:Wj&&Wj.withoutSetter||Vj,Kj=function(e){if(!Mj(Uj,e)||!Ej&&"string"!=typeof Uj[e]){var t="Symbol."+e;Ej&&Mj(Wj,e)?Uj[e]=Wj[e]:Uj[e]=Sj&&qj?qj(t):Gj(t)}return Uj[e]},Yj=$P.TypeError,Xj=Kj("toPrimitive"),Zj=function(e){var t=function(e,t){if(!dj(e)||Cj(e))return e;var n,r=Fj(e,Xj);if(r){if(void 0===t&&(t="default"),n=WP(r,e,t),!dj(n)||Cj(n))return n;throw Yj("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&fj(n=e.toString)&&!dj(r=WP(n,e)))return r;if(fj(n=e.valueOf)&&!dj(r=WP(n,e)))return r;if("string"!==t&&fj(n=e.toString)&&!dj(r=WP(n,e)))return r;throw Tj("Can't convert object to primitive value")}(e,t)}(e,"string");return Cj(t)?t:t+""},Jj=$P.document,Qj=dj(Jj)&&dj(Jj.createElement),eN=function(e){return Qj?Jj.createElement(e):{}},tN=!VP&&!HP((function(){return 7!=Object.defineProperty(eN("div"),"a",{get:function(){return 7}}).a})),nN=Object.getOwnPropertyDescriptor,rN={f:VP?nN:function(e,t){if(e=cj(e),t=Zj(t),tN)try{return nN(e,t)}catch(e){}if(Mj(e,t))return XP(!WP(YP.f,e,t),e[t])}},oN=$P.String,iN=$P.TypeError,aN=function(e){if(dj(e))return e;throw iN(oN(e)+" is not an object")},uN=$P.TypeError,sN=Object.defineProperty,lN={f:VP?sN:function(e,t,n){if(aN(e),t=Zj(t),aN(n),tN)try{return sN(e,t,n)}catch(e){}if("get"in n||"set"in n)throw uN("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},cN=VP?function(e,t,n){return lN.f(e,t,XP(1,n))}:function(e,t,n){return e[t]=n,e},fN=tj(Function.toString);fj(jj.inspectSource)||(jj.inspectSource=function(e){return fN(e)});var dN,pN,hN,gN=jj.inspectSource,vN=$P.WeakMap,yN=fj(vN)&&/native code/.test(gN(vN)),mN=Nj("keys"),bN=function(e){return mN[e]||(mN[e]=Vj(e))},wN={},xN=$P.TypeError,EN=$P.WeakMap;if(yN||jj.state){var SN=jj.state||(jj.state=new EN),DN=tj(SN.get),CN=tj(SN.has),AN=tj(SN.set);dN=function(e,t){if(CN(SN,e))throw new xN("Object already initialized");return t.facade=e,AN(SN,e,t),t},pN=function(e){return DN(SN,e)||{}},hN=function(e){return CN(SN,e)}}else{var ON=bN("state");wN[ON]=!0,dN=function(e,t){if(Mj(e,ON))throw new xN("Object already initialized");return t.facade=e,cN(e,ON,t),t},pN=function(e){return Mj(e,ON)?e[ON]:{}},hN=function(e){return Mj(e,ON)}}var kN={set:dN,get:pN,has:hN,enforce:function(e){return hN(e)?pN(e):dN(e,{})},getterFor:function(e){return function(t){var n;if(!dj(t)||(n=pN(t)).type!==e)throw xN("Incompatible receiver, "+e+" required");return n}}},BN=Function.prototype,FN=VP&&Object.getOwnPropertyDescriptor,TN=Mj(BN,"name"),_N={EXISTS:TN,PROPER:TN&&"something"===function(){}.name,CONFIGURABLE:TN&&(!VP||VP&&FN(BN,"name").configurable)},PN=LP((function(e){var t=_N.CONFIGURABLE,n=kN.get,r=kN.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;fj(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Mj(i,"name")||t&&i.name!==f)&&cN(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==$P?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:cN(e,n,i)):l?e[n]=i:Pj(n,i)})(Function.prototype,"toString",(function(){return fj(this)&&n(this).source||gN(this)}))})),jN=Math.ceil,NN=Math.floor,IN=function(e){var t=+e;return t!=t||0===t?0:(t>0?NN:jN)(t)},LN=Math.max,RN=Math.min,MN=function(e,t){var n=IN(e);return n<0?LN(n+t,0):RN(n,t)},zN=Math.min,$N=function(e){return e>0?zN(IN(e),9007199254740991):0},HN=function(e){return $N(e.length)},VN=function(e){return function(t,n,r){var o,i=cj(t),a=HN(i),u=MN(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}},UN={includes:VN(!0),indexOf:VN(!1)},WN=UN.indexOf,qN=tj([].push),GN=function(e,t){var n,r=cj(e),o=0,i=[];for(n in r)!Mj(wN,n)&&Mj(r,n)&&qN(i,n);for(;t.length>o;)Mj(r,n=t[o++])&&(~WN(i,n)||qN(i,n));return i},KN=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],YN=KN.concat("length","prototype"),XN={f:Object.getOwnPropertyNames||function(e){return GN(e,YN)}},ZN={f:Object.getOwnPropertySymbols},JN=tj([].concat),QN=hj("Reflect","ownKeys")||function(e){var t=XN.f(aN(e)),n=ZN.f;return n?JN(t,n(e)):t},eI=function(e,t){for(var n=QN(t),r=lN.f,o=rN.f,i=0;i<n.length;i++){var a=n[i];Mj(e,a)||r(e,a,o(t,a))}},tI=/#|\.prototype\./,nI=function(e,t){var n=oI[rI(e)];return n==aI||n!=iI&&(fj(t)?HP(t):!!t)},rI=nI.normalize=function(e){return String(e).replace(tI,".").toLowerCase()},oI=nI.data={},iI=nI.NATIVE="N",aI=nI.POLYFILL="P",uI=nI,sI=rN.f,lI=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?$P:l?$P[u]||Pj(u,{}):($P[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=sI(n,r))&&a.value:n[r],!uI(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;eI(i,o)}(e.sham||o&&o.sham)&&cN(i,"sham",!0),PN(n,r,i,e)}},cI=tj(tj.bind),fI=Array.isArray||function(e){return"Array"==oj(e)},dI={};dI[Kj("toStringTag")]="z";var pI="[object z]"===String(dI),hI=Kj("toStringTag"),gI=$P.Object,vI="Arguments"==oj(function(){return arguments}()),yI=pI?oj: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=gI(e),hI))?n:vI?oj(t):"Object"==(r=oj(t))&&fj(t.callee)?"Arguments":r},mI=function(){},bI=[],wI=hj("Reflect","construct"),xI=/^\s*(?:class|function)\b/,EI=tj(xI.exec),SI=!xI.exec(mI),DI=function(e){if(!fj(e))return!1;try{return wI(mI,bI,e),!0}catch(e){return!1}},CI=!wI||HP((function(){var e;return DI(DI.call)||!DI(Object)||!DI((function(){e=!0}))||e}))?function(e){if(!fj(e))return!1;switch(yI(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return SI||!!EI(xI,gN(e))}:DI,AI=Kj("species"),OI=$P.Array,kI=function(e,t){return new(function(e){var t;return fI(e)&&(t=e.constructor,(CI(t)&&(t===OI||fI(t.prototype))||dj(t)&&null===(t=t[AI]))&&(t=void 0)),void 0===t?OI:t}(e))(0===t?0:t)},BI=tj([].push),FI=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,l,c,f){for(var d,p,h=Lj(s),g=uj(h),v=function(e,t){return Bj(e),void 0===t?e:cI?cI(e,t):function(){return e.apply(t,arguments)}}(l,c),y=HN(g),m=0,b=f||kI,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:BI(w,d)}else switch(e){case 4:return!1;case 7:BI(w,d)}return i?-1:r||o?o:w}},TI={forEach:FI(0),map:FI(1),filter:FI(2),some:FI(3),every:FI(4),find:FI(5),findIndex:FI(6),filterReject:FI(7)},_I=Kj("species"),PI=function(e){return xj>=51||!HP((function(){var t=[];return(t.constructor={})[_I]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},jI=TI.filter;lI({target:"Array",proto:!0,forced:!PI("filter")},{filter:function(e){return jI(this,e,arguments.length>1?arguments[1]:void 0)}});var NI=pI?{}.toString:function(){return"[object "+yI(this)+"]"};pI||PN(Object.prototype,"toString",NI,{unsafe:!0});var II,LI=$P.String,RI=function(e){if("Symbol"===yI(e))throw TypeError("Cannot convert a Symbol value to a string");return LI(e)},MI=function(){var e=aN(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},zI=$P.RegExp,$I=HP((function(){var e=zI("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),HI=$I||HP((function(){return!zI("a","y").sticky})),VI={BROKEN_CARET:$I||HP((function(){var e=zI("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:HI,UNSUPPORTED_Y:$I},UI=Object.keys||function(e){return GN(e,KN)},WI=VP?Object.defineProperties:function(e,t){aN(e);for(var n,r=cj(t),o=UI(t),i=o.length,a=0;i>a;)lN.f(e,n=o[a++],r[n]);return e},qI=hj("document","documentElement"),GI=bN("IE_PROTO"),KI=function(){},YI=function(e){return"<script>"+e+"<\/script>"},XI=function(e){e.write(YI("")),e.close();var t=e.parentWindow.Object;return e=null,t},ZI=function(){try{II=new ActiveXObject("htmlfile")}catch(e){}var e,t;ZI="undefined"!=typeof document?document.domain&&II?XI(II):((t=eN("iframe")).style.display="none",qI.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(YI("document.F=Object")),e.close(),e.F):XI(II);for(var n=KN.length;n--;)delete ZI.prototype[KN[n]];return ZI()};wN[GI]=!0;var JI,QI,eL=Object.create||function(e,t){var n;return null!==e?(KI.prototype=aN(e),n=new KI,KI.prototype=null,n[GI]=e):n=ZI(),void 0===t?n:WI(n,t)},tL=$P.RegExp,nL=HP((function(){var e=tL(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),rL=$P.RegExp,oL=HP((function(){var e=rL("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),iL=kN.get,aL=Nj("native-string-replace",String.prototype.replace),uL=RegExp.prototype.exec,sL=uL,lL=tj("".charAt),cL=tj("".indexOf),fL=tj("".replace),dL=tj("".slice),pL=(QI=/b*/g,WP(uL,JI=/a/,"a"),WP(uL,QI,"a"),0!==JI.lastIndex||0!==QI.lastIndex),hL=VI.BROKEN_CARET,gL=void 0!==/()??/.exec("")[1];(pL||gL||hL||nL||oL)&&(sL=function(e){var t,n,r,o,i,a,u,s=this,l=iL(s),c=RI(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=WP(sL,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=hL&&s.sticky,h=WP(MI,s),g=s.source,v=0,y=c;if(p&&(h=fL(h,"y",""),-1===cL(h,"g")&&(h+="g"),y=dL(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==lL(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),gL&&(n=new RegExp("^"+g+"$(?!\\s)",h)),pL&&(r=s.lastIndex),o=WP(uL,p?n:s,y),p?o?(o.input=dL(o.input,v),o[0]=dL(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:pL&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),gL&&o&&o.length>1&&WP(aL,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=eL(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var vL=sL;lI({target:"RegExp",proto:!0,forced:/./.exec!==vL},{exec:vL});var yL=Function.prototype,mL=yL.apply,bL=yL.bind,wL=yL.call,xL="object"==typeof Reflect&&Reflect.apply||(bL?wL.bind(mL):function(){return wL.apply(mL,arguments)}),EL=Kj("species"),SL=RegExp.prototype,DL=function(e,t,n,r){var o=Kj(e),i=!HP((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!HP((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[EL]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=tj(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=tj(e),s=t.exec;return s===vL||s===SL.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(SL,o,s[1])}r&&cN(SL[o],"sham",!0)},CL=tj("".charAt),AL=tj("".charCodeAt),OL=tj("".slice),kL=function(e){return function(t,n){var r,o,i=RI(lj(t)),a=IN(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=AL(i,a))<55296||r>56319||a+1===u||(o=AL(i,a+1))<56320||o>57343?e?CL(i,a):r:e?OL(i,a,a+2):o-56320+(r-55296<<10)+65536}},BL=(kL(!1),kL(!0)),FL=function(e,t,n){return t+(n?BL(e,t).length:1)},TL=Math.floor,_L=tj("".charAt),PL=tj("".replace),jL=tj("".slice),NL=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,IL=/\$([$&'`]|\d{1,2})/g,LL=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=IL;return void 0!==o&&(o=Lj(o),s=NL),PL(i,s,(function(i,s){var l;switch(_L(s,0)){case"$":return"$";case"&":return e;case"`":return jL(t,0,n);case"'":return jL(t,a);case"<":l=o[jL(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=TL(c/10);return 0===f?i:f<=u?void 0===r[f-1]?_L(s,1):r[f-1]+_L(s,1):i}l=r[c-1]}return void 0===l?"":l}))},RL=$P.TypeError,ML=function(e,t){var n=e.exec;if(fj(n)){var r=WP(n,e,t);return null!==r&&aN(r),r}if("RegExp"===oj(e))return WP(vL,e,t);throw RL("RegExp#exec called on incompatible receiver")},zL=Kj("replace"),$L=Math.max,HL=Math.min,VL=tj([].concat),UL=tj([].push),WL=tj("".indexOf),qL=tj("".slice),GL="$0"==="a".replace(/./,"$0"),KL=!!/./[zL]&&""===/./[zL]("a","$0");DL("replace",(function(e,t,n){var r=KL?"$":"$0";return[function(e,n){var r=lj(this),o=null==e?void 0:Fj(e,zL);return o?WP(o,e,r,n):WP(t,RI(r),e,n)},function(e,o){var i=aN(this),a=RI(e);if("string"==typeof o&&-1===WL(o,r)&&-1===WL(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=fj(o);s||(o=RI(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=ML(i,a);if(null===d)break;if(UL(f,d),!l)break;""===RI(d[0])&&(i.lastIndex=FL(a,$N(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=RI((d=f[v])[0]),m=$L(HL(IN(d.index),a.length),0),b=[],w=1;w<d.length;w++)UL(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=VL([y],b,m,a);void 0!==x&&UL(E,x);var S=RI(xL(o,void 0,E))}else S=LL(y,a,m,b,x,o);m>=g&&(h+=qL(a,g,m)+S,g=m+y.length)}return h+qL(a,g)}]}),!!HP((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!GL||KL);var YL=Kj("unscopables"),XL=Array.prototype;null==XL[YL]&&lN.f(XL,YL,{configurable:!0,value:eL(null)});var ZL=function(e){XL[YL][e]=!0},JL=TI.find,QL=!0;"find"in[]&&Array(1).find((function(){QL=!1})),lI({target:"Array",proto:!0,forced:QL},{find:function(e){return JL(this,e,arguments.length>1?arguments[1]:void 0)}}),ZL("find");var eR=Kj("match"),tR=function(e){var t;return dj(e)&&(void 0!==(t=e[eR])?!!t:"RegExp"==oj(e))},nR=$P.TypeError,rR=Kj("species"),oR=function(e,t,n){var r=Zj(t);r in e?lN.f(e,r,XP(0,n)):e[r]=n},iR=$P.Array,aR=Math.max,uR=function(e,t,n){for(var r=HN(e),o=MN(t,r),i=MN(void 0===n?r:n,r),a=iR(aR(i-o,0)),u=0;o<i;o++,u++)oR(a,u,e[o]);return a.length=u,a},sR=VI.UNSUPPORTED_Y,lR=Math.min,cR=[].push,fR=tj(/./.exec),dR=tj(cR),pR=tj("".slice);DL("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=RI(lj(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!tR(e))return WP(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=WP(vL,f,r))&&!((a=f.lastIndex)>c&&(dR(s,pR(r,c,i.index)),i.length>1&&i.index<r.length&&xL(cR,s,uR(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&fR(f,"")||dR(s,""):dR(s,pR(r,c)),s.length>o?uR(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:WP(t,this,e,n)}:t,[function(t,n){var o=lj(this),i=null==t?void 0:Fj(t,e);return i?WP(i,t,o,n):WP(r,RI(o),t,n)},function(e,o){var i=aN(this),a=RI(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=aN(e).constructor;return void 0===r||null==(n=aN(r)[rR])?t:function(e){if(CI(e))return e;throw nR(Oj(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(sR?"g":"y"),f=new s(sR?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===ML(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=sR?0:h;var v,y=ML(f,sR?pR(a,h):a);if(null===y||(v=lR($N(f.lastIndex+(sR?h:0)),a.length))===p)h=FL(a,h,l);else{if(dR(g,pR(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(dR(g,y[m]),g.length===d)return g;h=p=v}}return dR(g,pR(a,p)),g}]}),!!HP((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]})),sR);var hR="\t\n\v\f\r                 \u2028\u2029\ufeff",gR=tj("".replace),vR="["+hR+"]",yR=RegExp("^"+vR+vR+"*"),mR=RegExp(vR+vR+"*$"),bR=function(e){return function(t){var n=RI(lj(t));return 1&e&&(n=gR(n,yR,"")),2&e&&(n=gR(n,mR,"")),n}},wR={start:bR(1),end:bR(2),trim:bR(3)},xR=_N.PROPER,ER=wR.trim;function SR(e){return 0===Tp("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function DR(e){return 0===e.length?"":e[0].outerHTML}function CR(e){return e.length?e[0].tagName.toLowerCase():""}function AR(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}lI({target:"String",proto:!0,forced:HP((function(){return!!hR.trim()||"​…᠎"!=="​…᠎".trim()||xR&&"trim"!==hR.trim.name}))},{trim:function(){return ER(this)}}),lI({global:!0},{globalThis:$P}),qp&&(Tp.fn.css=qp),Jp&&(Tp.fn.append=Jp),Qp&&(Tp.fn.prepend=Qp),_p&&(Tp.fn.addClass=_p),Pp&&(Tp.fn.removeClass=Pp),jp&&(Tp.fn.hasClass=jp),Mp&&(Tp.fn.on=Mp),zp&&(Tp.fn.off=zp),lh&&(Tp.fn.focus=lh),Np&&(Tp.fn.attr=Np),Ip&&(Tp.fn.removeAttr=Ip),Up&&(Tp.fn.hide=Up),Wp&&(Tp.fn.show=Wp),th&&(Tp.fn.parents=th),Lp&&(Tp.fn.dataset=Lp),Rp&&(Tp.fn.val=Rp),Xp&&(Tp.fn.text=Xp),Yp&&(Tp.fn.html=Yp),rh&&(Tp.fn.children=rh),oh&&(Tp.fn.remove=oh),nh&&(Tp.fn.find=nh),$p&&(Tp.fn.width=$p),Hp&&(Tp.fn.height=Hp),Kp&&(Tp.fn.filter=Kp),ih&&(Tp.fn.empty=ih);var OR={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Tp(e);return 0===(t=t.filter((function(e){return!!Jf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},kR=function(e,t){return kR=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])},kR(e,t)
53
+ /*! *****************************************************************************
54
+ Copyright (c) Microsoft Corporation.
55
+
56
+ Permission to use, copy, modify, and/or distribute this software for any
57
+ purpose with or without fee is hereby granted.
58
+
59
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
60
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
61
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
62
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
63
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
64
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
65
+ PERFORMANCE OF THIS SOFTWARE.
66
+ ***************************************************************************** */};function BR(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}kR(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var FR=function(){return FR=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},FR.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 _R(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 NR(e){var t=jR(kf.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!Ef.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!!Jf.isText(o[0])&&(vd.setNodes(e,{type:"paragraph"}),!0)}var IR={renderElems:[NP],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){NR(r)||t(e)},r.deleteForward=function(e){NR(r)||n(e)},r}},LR=/"/g,RR=tj("".replace),MR=function(e,t,n,r){var o=RI(lj(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+RR(RI(r),LR,"&quot;")+'"'),i+">"+o+"</"+t+">"},zR=function(e){return HP((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function $R(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)}lI({target:"String",proto:!0,forced:zR("bold")},{bold:function(){return MR(this,"b","","")}}),lI({target:"String",proto:!0,forced:zR("italics")},{italics:function(){return MR(this,"i","","")}}),lI({target:"String",proto:!0,forced:zR("sub")},{sub:function(){return MR(this,"sub","","")}}),lI({target:"String",proto:!0,forced:zR("sup")},{sup:function(){return MR(this,"sup","","")}});var VR={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},UR=eN("span").classList,WR=UR&&UR.constructor&&UR.constructor.prototype,qR=WR===Object.prototype?void 0:WR,GR=function(e,t){var n=[][e];return!!n&&HP((function(){n.call(null,t||function(){throw 1},1)}))},KR=TI.forEach,YR=GR("forEach")?[].forEach:function(e){return KR(this,e,arguments.length>1?arguments[1]:void 0)},XR=function(e){if(e&&e.forEach!==YR)try{cN(e,"forEach",YR)}catch(t){e.forEach=YR}};for(var ZR in VR)VR[ZR]&&XR($P[ZR]&&$P[ZR].prototype);function JR(e,t){return null==e.selection||!!jR(kf.nodes(e,{match:function(t){return"pre"===kO.getNodeType(t)||!!kf.isVoid(e,t)},universal:!0}),1)[0]}function QR(e,t){Object.keys(t).forEach((function(t){"text"!==t&&kf.removeMark(e,t)}))}XR(qR),lI({target:"Object",stat:!0,forced:HP((function(){UI(1)}))},{keys:function(e){return UI(Lj(e))}});var eM=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=kf.marks(e);return n?n[t]:!!jR(kf.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 JR(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}(),tM='<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>',nM='<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>',rM='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',oM='<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>',iM='<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>',aM='<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>',uM='<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>',sM='<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>',lM='<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>',fM='<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>',dM='<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>',hM='<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>',gM='<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>',yM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',mM='<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>',bM='<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>',wM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=hP("textStyle.bold"),t.iconSvg=tM,t.hotkey="mod+b",t}return BR(t,e),t}(eM),xM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=hP("textStyle.code"),t.iconSvg=iM,t.hotkey="mod+e",t}return BR(t,e),t}(eM),EM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=hP("textStyle.italic"),t.iconSvg=rM,t.hotkey="mod+i",t}return BR(t,e),t}(eM),SM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=hP("textStyle.through"),t.iconSvg=oM,t.hotkey="mod+shift+x",t}return BR(t,e),t}(eM),DM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=hP("textStyle.underline"),t.iconSvg=nM,t.hotkey="mod+u",t}return BR(t,e),t}(eM),CM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=hP("textStyle.sub"),t.iconSvg=bM,t.hotkey="",t}return BR(t,e),t}(eM),AM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=hP("textStyle.sup"),t.iconSvg=mM,t.hotkey="",t}return BR(t,e),t}(eM),OM=function(){function e(){this.title=hP("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 JR(e)},e.prototype.exec=function(e,t){var n,r,o=kf.nodes(e,{match:function(e){return Jf.isText(e)},universal:!0});try{for(var i=PR(o),a=i.next();!a.done;a=i.next())QR(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}(),kM={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,l=n.sup,c=t;return r&&(c=wg("strong",null,c)),a&&(c=wg("code",null,c)),o&&(c=wg("em",null,c)),i&&(c=wg("u",null,c)),u&&(c=wg("s",null,c)),s&&(c=wg("sub",null,c)),l&&(c=wg("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new wM}},{key:"underline",factory:function(){return new DM}},{key:"italic",factory:function(){return new EM}},{key:"through",factory:function(){return new SM}},{key:"code",factory:function(){return new xM}},{key:"sub",factory:function(){return new CM}},{key:"sup",factory:function(){return new AM}},{key:"clearStyle",factory:function(){return new OM}}],styleToHtml:function(e,t){if(!Jf.isText(e))return t;if(SR(t))return $R(e,t);var n=Tp(t);if("br"===CR(n))return $R(e,"<br>");var r=n.html();return r=$R(e,r),n.html(r),DR(n)},parseStyleHtml:function(e,t,n){var r=Tp(e);if(!Jf.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 BM(e){return function(t,n,r){return wg("h"+e,null,n)}}var FM={type:"header1",renderElem:BM(1)},TM={type:"header2",renderElem:BM(2)},_M={type:"header3",renderElem:BM(3)},PM={type:"header4",renderElem:BM(4)},jM={type:"header5",renderElem:BM(5)},NM=_N.PROPER,IM=RegExp.prototype,LM=IM.toString,RM=tj(MI),MM=HP((function(){return"/a/b"!=LM.call({source:"a",flags:"b"})})),zM=NM&&"toString"!=LM.name;(MM||zM)&&PN(RegExp.prototype,"toString",(function(){var e=aN(this),t=RI(e.source),n=e.flags;return"/"+t+"/"+RI(void 0===n&&gj(IM,e)&&!("flags"in IM)?RM(e):n)}),{unsafe:!0});var $M,HM=$P.TypeError,VM=function(e){if(tR(e))throw HM("The method doesn't accept regular expressions");return e},UM=Kj("match"),WM=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[UM]=!1,"/./"[e](t)}catch(e){}}return!1},qM=rN.f,GM=tj("".startsWith),KM=tj("".slice),YM=Math.min,XM=WM("startsWith");function ZM(e){var t=jR(kf.nodes(e,{match:function(e){return kO.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=jR(n,1)[0];return kO.getNodeType(r)}function JM(e){return null==e.selection||!jR(kf.nodes(e,{match:function(e){var t=kO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function QM(e,t){t&&vd.setNodes(e,{type:t})}lI({target:"String",proto:!0,forced:!(!XM&&($M=qM(String.prototype,"startsWith"),$M&&!$M.writable)||XM)},{startsWith:function(e){var t=RI(lj(this));VM(e);var n=$N(YM(arguments.length>1?arguments[1]:void 0,t.length)),r=RI(e);return GM?GM(t,r,n):KM(t,n,n+r.length)===r}});var ez=function(){function e(){this.title=hP("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:hP("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 ZM(e)},e.prototype.isDisabled=function(e){return JM(e)},e.prototype.exec=function(e,t){QM(e,t.toString())},e}(),tz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return ZM(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return JM(e)},e.prototype.exec=function(e,t){var n=this.type;QM(e,t===n?"paragraph":n)},e}(),nz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return BR(t,e),t}(tz),rz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return BR(t,e),t}(tz),oz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return BR(t,e),t}(tz),iz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return BR(t,e),t}(tz),az=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return BR(t,e),t}(tz),uz={key:"headerSelect",factory:function(){return new ez}},sz={key:"header1",factory:function(){return new nz}},lz={key:"header2",factory:function(){return new rz}},cz={key:"header3",factory:function(){return new oz}},fz={key:"header4",factory:function(){return new iz}},dz={key:"header5",factory:function(){return new az}};function pz(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function hz(e){return function(t,n,r){var o=Tp(t);return 0===(n=n.filter((function(e){return!!Jf.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var gz={renderElems:[FM,TM,_M,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:hz(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:hz(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:hz(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:hz(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:hz(5)}],menus:[uz,sz,lz,cz,fz,dz],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=jR(kf.nodes(n,{match:function(e){return kO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&kO.isSelectionAtLineEnd(e,r[1])?vd.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},vz=Object.assign,yz=Object.defineProperty,mz=tj([].concat),bz=!vz||HP((function(){if(VP&&1!==vz({b:1},vz(yz({},"a",{enumerable:!0,get:function(){yz(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]||UI(vz({},t)).join("")!=r}))?function(e,t){for(var n=Lj(e),r=arguments.length,o=1,i=ZN.f,a=YP.f;r>o;)for(var u,s=uj(arguments[o++]),l=i?mz(UI(s),i(s)):UI(s),c=l.length,f=0;c>f;)u=l[f++],VP&&!WP(a,s,u)||(n[u]=s[u]);return n}:vz;function wz(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}lI({target:"Object",stat:!0,forced:Object.assign!==bz},{assign:bz});var xz={selector:"font",preParseHtml:function(e){var t=Tp(e);if("font"!==CR(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},Ez=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=kf.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(kf.nodes(e,{match:function(t){return"pre"===kO.getNodeType(t)||!!kf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Tp('<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=Tp(r).attr("data-value");"0"===o?kf.removeMark(e,t):kf.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=Tp('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=Tp('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=hP("color.default")),"bgColor"===t&&(a=hP("color.clear"));var u=Tp('\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}(),Sz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("color.color"),t.iconSvg=sM,t.mark="color",t}return BR(t,e),t}(Ez),Dz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("color.bgColor"),t.iconSvg=lM,t.mark="bgColor",t}return BR(t,e),t}(Ez),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)"],Az={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&wz(i,{color:r}),o&&wz(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Jf.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((SR(t)||"span"!==CR(n=Tp(t)))&&(n=Tp("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),DR(n)):t},preParseHtml:[xz],parseStyleHtml:function(e,t,n){var r=Tp(e);if(!Jf.isText(t))return t;var o=t,i=AR(r,"color");i&&(o.color=i);var a=AR(r,"background-color");return a||(a=AR(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new Sz},config:{colors:Cz}},{key:"bgColor",factory:function(){return new Dz},config:{colors:Cz}}]},Oz=/^(?:\w+:)?\/\/(\S+)$/,kz=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Bz=/^[^\s\.]+\.\S{2,}$/,Fz=UN.includes;function Tz(e){return void 0===e&&(e="r"),e+"-"+Ah()}function _z(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Pz(e,t,n,r){return TR(this,void 0,void 0,(function(){var o,i;return _R(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 _R(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 Nz(e){return null==e.selection||!!kO.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function Iz(e,t){return{type:"link",url:_z(e),children:t?[{text:t}]:[]}}function Lz(e,t,n){return TR(this,void 0,void 0,(function(){var r,o,i;return _R(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),Nz(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)||(Wf.isCollapsed(o)?(e.insertText(" "),i=Iz(r,t),vd.insertNodes(e,i),e.insertFragment([{text:" "}])):kf.string(e,o)!==t?(e.deleteFragment(),i=Iz(r,t),vd.insertNodes(e,i)):(i=Iz(r),vd.wrapNodes(e,i,{split:!0}),vd.collapse(e,{edge:"end"}))),[2]}}))}))}lI({target:"Array",proto:!0},{includes:function(e){return Fz(this,e,arguments.length>1?arguments[1]:void 0)}}),ZL("includes");var Rz={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return wg("a",{href:o,target:void 0===i?"_blank":i},t)}},Mz={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Tp(e);return 0===(t=t.filter((function(e){return!!Jf.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 zz(){return Tz("w-e-insert-link")}var $z=function(){function e(){this.title=hP("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=zz(),this.urlInputId=zz(),this.buttonId=zz()}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 Nz(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(JT(hP("link.text"),r),2),u=a[0],s=Tp(a[1]),l=jR(JT(hP("link.url"),o),2),c=l[0],f=Tp(l[1]),d=jR(QT(i,hP("common.ok")),1)[0];if(null==this.$content){var p=Tp("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();Lz(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||Wf.isCollapsed(t))s.val("");else{var g=kf.string(e,t);s.val(g)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function Hz(){return Tz("w-e-update-link")}var Vz=function(){function e(){this.title=hP("link.edit"),this.iconSvg=aM,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=kO.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 kO.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=jR(JT(hP("link.url"),t),2),o=r[0],i=Tp(r[1]),a=jR(QT(n,hP("common.ok")),1)[0];if(null==this.$content){var u=Tp("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=kO.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 _R(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:_z(r)},vd.setNodes(e,o,{match:function(e){return kO.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 l=this.getValue(e);return i.val(l),setTimeout((function(){i.focus()})),s[0]},e}(),Uz=function(){function e(){this.title=hP("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==kO.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||vd.unwrapNodes(e,{match:function(e){return kO.checkNodeType(e,"link")}})},e}(),Wz=function(){function e(){this.title=hP("link.view"),this.iconSvg=uM,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=kO.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}(),qz={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Gz={renderElems:[Rz],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:[Mz],menus:[{key:"insertLink",factory:function(){return new $z},config:qz},{key:"editLink",factory:function(){return new Vz},config:qz},{key:"unLink",factory:function(){return new Uz}},{key:"viewLink",factory:function(){return new Wz}}],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||!kz.test(n)&&!Bz.test(n))}(t)){if(!Nz(o)){var r=o.selection;if(null!=r){var i=kf.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"!==kO.getNodeType(n)?r([n,i]):""===Pf.string(n)?vd.removeNodes(o,{at:i}):r([n,i])},o}},Kz=tj(1..valueOf),Yz=$P.RangeError,Xz=$P.RangeError,Zz=$P.String,Jz=Math.floor,Qz=tj((function(e){var t=RI(lj(this)),n="",r=IN(e);if(r<0||r==1/0)throw Yz("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),e$=tj("".slice),t$=tj(1..toFixed),n$=function(e,t,n){return 0===t?n:t%2==1?n$(e,t-1,n*e):n$(e*e,t/2,n)},r$=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=Jz(o/1e7)},o$=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=Jz(r/t),r=r%t*1e7},i$=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=Zz(e[t]);n=""===n?r:n+Qz("0",7-r.length)+r}return n};function a$(e,t){return"w-e-image-container-"+kO.findKey(e,t).id}lI({target:"Number",proto:!0,forced:HP((function(){return"0.000"!==t$(8e-5,3)||"1"!==t$(.9,0)||"1.25"!==t$(1.255,2)||"1000000000000000128"!==t$(0xde0b6b3a7640080,0)}))||!HP((function(){t$({})}))},{toFixed:function(e){var t,n,r,o,i=Kz(this),a=IN(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw Xz("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return Zz(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*n$(2,69,1))-69)<0?i*n$(2,-t,1):i/n$(2,t,1),n*=4503599627370496,(t=52-t)>0){for(r$(u,0,n),r=a;r>=7;)r$(u,1e7,0),r-=7;for(r$(u,n$(10,r,1),0),r=t-1;r>=23;)o$(u,1<<23),r-=23;o$(u,1<<r),r$(u,1,1),o$(u,2),l=i$(u)}else r$(u,0,n),r$(u,1<<-t,0),l=i$(u)+Qz("0",a);return a>0?s+((o=l.length)<=a?"0."+Qz("0",a-o)+l:e$(l,0,o-a)+"."+e$(l,o-a)):s+l}});var u$={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,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,g=kO.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y=wg("img",{style:v,src:o,alt:a,"data-href":s}),m=n.isDisabled();return g&&!m?function(e,t,n,r){var o=Tp("body"),i=a$(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;function p(t){d=function(){var e=Tp("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");l=n.width(),c=n.height(),o.on("mousemove",h),o.on("mouseup",g);var r=kO.getHoverbar(e);r&&r.hideAndClean()}var h=$h((function(e){e.preventDefault();var t=e.clientX,n=l+(f?s-t:t-s),r=c*(n/l);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function g(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:FR(FR({},t.style),{width:r+"px",height:i+"px"})};vd.setNodes(e,a,{at:kO.findPath(e,t)}),o.off("mouseup",g)}}var v={};return a&&(v.width=a),u&&(v.height=u),wg("div",{id:i,style:v,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=Tp(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),p(e.clientX))}}},n,wg("div",{className:"w-e-image-dragger left-top"}),wg("div",{className:"w-e-image-dragger right-top"}),wg("div",{className:"w-e-image-dragger left-bottom"}),wg("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:d,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};return o&&(a.width=o),i&&(a.height=i),wg("div",{id:a$(e,t),style:a,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},s$={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Tp(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:AR(r,"width"),height:AR(r,"height")},children:[{text:""}]}}};function l$(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 _R(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 c$(e,t,n){return TR(this,void 0,void 0,(function(){var r;return _R(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 f$(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 _R(this,(function(u){switch(u.label){case 0:return[4,l$("insertImage",e,t,n,r)];case 1:return u.sent()?[4,c$("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:_z(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),kO.getSelectedNodeByType(e,"image")&&e.move(1),d$(e)||(vd.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function d$(e){var t=e.selection;return null==t||!Wf.isCollapsed(t)||!!jR(kf.nodes(e,{match:function(t){var n=kO.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!kf.isVoid(e,t)},universal:!0}),1)[0]}function p$(){return Tz("w-e-insert-image")}var h$=function(){function e(){this.title=hP("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=p$(),this.altInputId=p$(),this.hrefInputId=p$(),this.buttonId=p$()}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 d$(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(JT(hP("image.src"),r),2),s=u[0],l=Tp(u[1]),c=jR(JT(hP("image.desc"),o),2),f=c[0],d=Tp(c[1]),p=jR(JT(hP("image.link"),i),2),h=p[0],g=Tp(p[1]),v=jR(QT(a,hP("common.ok")),1)[0];if(null==this.$content){var y=Tp("<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(v),l.val(""),d.val(""),g.val(""),setTimeout((function(){l.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)||f$(e,t,n,r))},e}(),g$=function(){function e(){this.title=hP("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==kO.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||vd.removeNodes(e,{match:function(e){return kO.checkNodeType(e,"image")}})},e}();function v$(){return Tz("w-e-edit-image")}var y$=function(){function e(){this.title=hP("image.edit"),this.iconSvg=aM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=v$(),this.altInputId=v$(),this.hrefInputId=v$(),this.buttonId=v$()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return kO.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||!Wf.isCollapsed(t)||null==kO.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(JT(hP("image.src"),r),2),l=s[0],c=Tp(s[1]),f=jR(JT(hP("image.desc"),o),2),d=f[0],p=Tp(f[1]),h=jR(JT(hP("image.link"),i),2),g=h[0],v=Tp(h[1]),y=jR(QT(a,hP("common.ok")),1)[0];if(null==this.$content){var m=Tp("<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(l),b.append(d),b.append(g),b.append(y);var w=u,x=w.src,E=w.alt,S=void 0===E?"":E,D=w.href,C=void 0===D?"":D;return c.val(x),p.val(S),v.val(C),setTimeout((function(){c.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,l,c;return _R(this,(function(f){switch(f.label){case 0:return[4,l$("editImage",e,t,n,r)];case 1:return f.sent()?[4,c$("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=kO.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:FR(FR({},void 0===u?{}:u),o)},vd.setNodes(e,s,{match:function(e){return kO.checkNodeType(e,"image")}}),l=kO.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),m$=function(){function e(){this.title=hP("image.viewLink"),this.iconSvg=uM,this.tag="button"}return e.prototype.getValue=function(e){var t=kO.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}(),b$=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 kO.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=kO.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:FR(FR({},void 0===o?{}:o),{width:this.value,height:""})};vd.setNodes(e,i,{match:function(e){return kO.checkNodeType(e,"image")}})}}},e}(),w$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return BR(t,e),t}(b$),x$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return BR(t,e),t}(b$),E$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return BR(t,e),t}(b$),S$={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},D$={renderElems:[u$],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,l=void 0===s?{}:s,c=l.width,f=void 0===c?"":c,d=l.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[s$],menus:[{key:"insertImage",factory:function(){return new h$},config:S$},{key:"deleteImage",factory:function(){return new g$}},{key:"editImage",factory:function(){return new y$},config:S$},{key:"viewImageLink",factory:function(){return new m$}},{key:"imageWidth30",factory:function(){return new w$}},{key:"imageWidth50",factory:function(){return new x$}},{key:"imageWidth100",factory:function(){return new E$}}],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}},C$={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=wg("div",{style:{margin:"5px 0"}},wg("span",{contentEditable:!1,style:{marginRight:"0.5em"}},wg("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=kO.findPath(n,e),o={checked:t.target.checked};vd.setNodes(n,o,{at:r})}}})),wg("span",null,t));return o}},A$=function(){function e(){this.title=hP("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!!kO.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!kO.getSelectedElems(e).some((function(t){if(kf.isVoid(e,t)&&kf.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);vd.setNodes(e,{type:n?"paragraph":"todo"})},e}(),O$={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Tp(e);0===(t=t.filter((function(e){return!!Jf.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}}},k$={renderElems:[C$],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=Tp(e).find("li"),n=Tp('<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:[O$],menus:[{key:"todo",factory:function(){return new A$}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&Wf.isCollapsed(r)){var o=kO.getSelectedNodeByType(e,"todo");if(o&&0===Pf.string(o).length)return void vd.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},B$={type:"blockquote",renderElem:function(e,t,n){return wg("blockquote",null,t)}},F$={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Tp(e);return 0===(t=t.filter((function(e){return!!Jf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},T$=function(){function e(){this.title=hP("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!!kO.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!jR(kf.nodes(e,{match:function(e){var t=kO.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";vd.setNodes(e,{type:n},{mode:"highest"})}},e}(),_$={key:"blockquote",factory:function(){return new T$}},P$=tj([].slice),j$=PI("slice"),N$=Kj("species"),I$=$P.Array,L$=Math.max;lI({target:"Array",proto:!0,forced:!j$},{slice:function(e,t){var n,r,o,i=cj(this),a=HN(i),u=MN(e,a),s=MN(void 0===t?a:t,a);if(fI(i)&&(n=i.constructor,(CI(n)&&(n===I$||fI(n.prototype))||dj(n)&&null===(n=n[N$]))&&(n=void 0),n===I$||void 0===n))return P$(i,u,s);for(r=new(void 0===n?I$:n)(L$(s-u,0)),o=0;u<s;u++,o++)u in i&&oR(r,o,i[u]);return r.length=o,r}});var R$={renderElems:[B$],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[F$],menus:[_$],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(kf.nodes(e,{match:function(e){return kO.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=kO.findPath(e,a),s=kf.end(e,u);if($f.equals(s,o.focus)){var l=Pf.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void vd.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},M$=function(){function e(){this.title=hP("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(kf.nodes(e,{match:function(t){return"pre"===kO.getNodeType(t)||!!kf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Tp('<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=Tp(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=Tp("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),z$={menus:[{key:"emotion",factory:function(){return new M$},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},$$={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},H$={selector:"font",preParseHtml:function(e){var t=Tp(e);if("font"!==CR(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",$$[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},V$=tj("".indexOf);lI({target:"String",proto:!0,forced:!WM("includes")},{includes:function(e){return!!~V$(RI(lj(this)),RI(VM(e)),arguments.length>1?arguments[1]:void 0)}});var U$,W$,q$=function(e){return e&&e.Math==Math&&e},G$=q$("object"==typeof globalThis&&globalThis)||q$("object"==typeof window&&window)||q$("object"==typeof self&&self)||q$("object"==typeof IP&&IP)||function(){return this}()||Function("return this")(),K$=Function.prototype,Y$=K$.apply,X$=K$.bind,Z$=K$.call,J$="object"==typeof Reflect&&Reflect.apply||(X$?Z$.bind(Y$):function(){return Z$.apply(Y$,arguments)}),Q$=Function.prototype,eH=Q$.bind,tH=Q$.call,nH=eH&&eH.bind(tH),rH=eH?function(e){return e&&nH(tH,e)}:function(e){return e&&function(){return tH.apply(e,arguments)}},oH=function(e){return"function"==typeof e},iH=function(e){try{return!!e()}catch(e){return!0}},aH=!iH((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),uH=Function.prototype.call,sH=uH.bind?uH.bind(uH):function(){return uH.apply(uH,arguments)},lH={}.propertyIsEnumerable,cH=Object.getOwnPropertyDescriptor,fH=cH&&!lH.call({1:2},1)?function(e){var t=cH(this,e);return!!t&&t.enumerable}:lH,dH={f:fH},pH=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},hH=rH({}.toString),gH=rH("".slice),vH=function(e){return gH(hH(e),8,-1)},yH=G$.Object,mH=rH("".split),bH=iH((function(){return!yH("z").propertyIsEnumerable(0)}))?function(e){return"String"==vH(e)?mH(e,""):yH(e)}:yH,wH=G$.TypeError,xH=function(e){if(null==e)throw wH("Can't call method on "+e);return e},EH=function(e){return bH(xH(e))},SH=function(e){return"object"==typeof e?null!==e:oH(e)},DH={},CH=function(e){return oH(e)?e:void 0},AH=function(e,t){return arguments.length<2?CH(DH[e])||CH(G$[e]):DH[e]&&DH[e][t]||G$[e]&&G$[e][t]},OH=rH({}.isPrototypeOf),kH=AH("navigator","userAgent")||"",BH=G$.process,FH=G$.Deno,TH=BH&&BH.versions||FH&&FH.version,_H=TH&&TH.v8;_H&&(W$=(U$=_H.split("."))[0]>0&&U$[0]<4?1:+(U$[0]+U$[1])),!W$&&kH&&(!(U$=kH.match(/Edge\/(\d+)/))||U$[1]>=74)&&(U$=kH.match(/Chrome\/(\d+)/))&&(W$=+U$[1]);var PH=W$,jH=!!Object.getOwnPropertySymbols&&!iH((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&PH&&PH<41})),NH=jH&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,IH=G$.Object,LH=NH?function(e){return"symbol"==typeof e}:function(e){var t=AH("Symbol");return oH(t)&&OH(t.prototype,IH(e))},RH=G$.String,MH=G$.TypeError,zH=function(e){if(oH(e))return e;throw MH(function(e){try{return RH(e)}catch(e){return"Object"}}(e)+" is not a function")},$H=G$.TypeError,HH=Object.defineProperty,VH=G$["__core-js_shared__"]||function(e,t){try{HH(G$,e,{value:t,configurable:!0,writable:!0})}catch(n){G$[e]=t}return t}("__core-js_shared__",{}),UH=LP((function(e){(e.exports=function(e,t){return VH[e]||(VH[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),WH=G$.Object,qH=function(e){return WH(xH(e))},GH=rH({}.hasOwnProperty),KH=Object.hasOwn||function(e,t){return GH(qH(e),t)},YH=0,XH=Math.random(),ZH=rH(1..toString),JH=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ZH(++YH+XH,36)},QH=UH("wks"),eV=G$.Symbol,tV=eV&&eV.for,nV=NH?eV:eV&&eV.withoutSetter||JH,rV=function(e){if(!KH(QH,e)||!jH&&"string"!=typeof QH[e]){var t="Symbol."+e;jH&&KH(eV,e)?QH[e]=eV[e]:QH[e]=NH&&tV?tV(t):nV(t)}return QH[e]},oV=G$.TypeError,iV=rV("toPrimitive"),aV=function(e){var t=function(e,t){if(!SH(e)||LH(e))return e;var n,r,o=null==(n=e[iV])?void 0:zH(n);if(o){if(void 0===t&&(t="default"),r=sH(o,e,t),!SH(r)||LH(r))return r;throw oV("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&oH(n=e.toString)&&!SH(r=sH(n,e)))return r;if(oH(n=e.valueOf)&&!SH(r=sH(n,e)))return r;if("string"!==t&&oH(n=e.toString)&&!SH(r=sH(n,e)))return r;throw $H("Can't convert object to primitive value")}(e,t)}(e,"string");return LH(t)?t:t+""},uV=G$.document,sV=SH(uV)&&SH(uV.createElement),lV=function(e){return sV?uV.createElement(e):{}},cV=!aH&&!iH((function(){return 7!=Object.defineProperty(lV("div"),"a",{get:function(){return 7}}).a})),fV=Object.getOwnPropertyDescriptor,dV={f:aH?fV:function(e,t){if(e=EH(e),t=aV(t),cV)try{return fV(e,t)}catch(e){}if(KH(e,t))return pH(!sH(dH.f,e,t),e[t])}},pV=/#|\.prototype\./,hV=function(e,t){var n=vV[gV(e)];return n==mV||n!=yV&&(oH(t)?iH(t):!!t)},gV=hV.normalize=function(e){return String(e).replace(pV,".").toLowerCase()},vV=hV.data={},yV=hV.NATIVE="N",mV=hV.POLYFILL="P",bV=hV,wV=rH(rH.bind),xV=function(e,t){return zH(e),void 0===t?e:wV?wV(e,t):function(){return e.apply(t,arguments)}},EV=G$.String,SV=G$.TypeError,DV=function(e){if(SH(e))return e;throw SV(EV(e)+" is not an object")},CV=G$.TypeError,AV=Object.defineProperty,OV={f:aH?AV:function(e,t,n){if(DV(e),t=aV(t),DV(n),cV)try{return AV(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}},kV=aH?function(e,t,n){return OV.f(e,t,pH(1,n))}:function(e,t,n){return e[t]=n,e},BV=dV.f,FV=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 J$(e,this,arguments)};return t.prototype=e.prototype,t},TV=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?G$:d?G$[c]:(G$[c]||{}).prototype,g=f?DH:DH[c]||kV(DH,c,{})[c],v=g.prototype;for(o in t)n=!bV(f?o:c+(d?".":"#")+o,e.forced)&&h&&KH(h,o),a=g[o],n&&(u=e.noTargetGet?(l=BV(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?xV(i,G$):e.wrap&&n?FV(i):p&&oH(i)?rH(i):i,(e.sham||i&&i.sham||a&&a.sham)&&kV(s,"sham",!0),kV(g,o,s),p&&(KH(DH,r=c+"Prototype")||kV(DH,r,{}),kV(DH[r],o,i),e.real&&v&&!v[o]&&kV(v,o,i)))},_V=Array.isArray||function(e){return"Array"==vH(e)},PV=Math.ceil,jV=Math.floor,NV=function(e){var t=+e;return t!=t||0===t?0:(t>0?jV:PV)(t)},IV=Math.min,LV=function(e){return(t=e.length)>0?IV(NV(t),9007199254740991):0;var t},RV=function(e,t,n){var r=aV(t);r in e?OV.f(e,r,pH(0,n)):e[r]=n},MV={};MV[rV("toStringTag")]="z";var zV="[object z]"===String(MV),$V=rV("toStringTag"),HV=G$.Object,VV="Arguments"==vH(function(){return arguments}()),UV=zV?vH: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),$V))?n:VV?vH(t):"Object"==(r=vH(t))&&oH(t.callee)?"Arguments":r},WV=rH(Function.toString);oH(VH.inspectSource)||(VH.inspectSource=function(e){return WV(e)});var qV=VH.inspectSource,GV=function(){},KV=[],YV=AH("Reflect","construct"),XV=/^\s*(?:class|function)\b/,ZV=rH(XV.exec),JV=!XV.exec(GV),QV=function(e){if(!oH(e))return!1;try{return YV(GV,KV,e),!0}catch(e){return!1}},eU=!YV||iH((function(){var e;return QV(QV.call)||!QV(Object)||!QV((function(){e=!0}))||e}))?function(e){if(!oH(e))return!1;switch(UV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return JV||!!ZV(XV,qV(e))}:QV,tU=rV("species"),nU=G$.Array,rU=function(e,t){return new(function(e){var t;return _V(e)&&(t=e.constructor,(eU(t)&&(t===nU||_V(t.prototype))||SH(t)&&null===(t=t[tU]))&&(t=void 0)),void 0===t?nU:t}(e))(0===t?0:t)},oU=rV("species"),iU=rV("isConcatSpreadable"),aU=G$.TypeError,uU=PH>=51||!iH((function(){var e=[];return e[iU]=!1,e.concat()[0]!==e})),sU=PH>=51||!iH((function(){var e=[];return(e.constructor={})[oU]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),lU=function(e){if(!SH(e))return!1;var t=e[iU];return void 0!==t?!!t:_V(e)};TV({target:"Array",proto:!0,forced:!uU||!sU},{concat:function(e){var t,n,r,o,i,a=qH(this),u=rU(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(lU(i=-1===t?a:arguments[t])){if(s+(o=LV(i))>9007199254740991)throw aU("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&RV(u,s,i[n])}else{if(s>=9007199254740991)throw aU("Maximum allowed index exceeded");RV(u,s++,i)}return u.length=s,u}});var cU,fU=G$.String,dU=function(e){if("Symbol"===UV(e))throw TypeError("Cannot convert a Symbol value to a string");return fU(e)},pU=Math.max,hU=Math.min,gU=function(e,t){var n=NV(e);return n<0?pU(n+t,0):hU(n,t)},vU=function(e){return function(t,n,r){var o,i=EH(t),a=LV(i),u=gU(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}},yU={includes:vU(!0),indexOf:vU(!1)},mU={},bU=yU.indexOf,wU=rH([].push),xU=function(e,t){var n,r=EH(e),o=0,i=[];for(n in r)!KH(mU,n)&&KH(r,n)&&wU(i,n);for(;t.length>o;)KH(r,n=t[o++])&&(~bU(i,n)||wU(i,n));return i},EU=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],SU=Object.keys||function(e){return xU(e,EU)},DU=aH?Object.defineProperties:function(e,t){DV(e);for(var n,r=EH(t),o=SU(t),i=o.length,a=0;i>a;)OV.f(e,n=o[a++],r[n]);return e},CU=AH("document","documentElement"),AU=UH("keys"),OU=function(e){return AU[e]||(AU[e]=JH(e))},kU=OU("IE_PROTO"),BU=function(){},FU=function(e){return"<script>"+e+"<\/script>"},TU=function(e){e.write(FU("")),e.close();var t=e.parentWindow.Object;return e=null,t},_U=function(){try{cU=new ActiveXObject("htmlfile")}catch(e){}var e,t;_U="undefined"!=typeof document?document.domain&&cU?TU(cU):((t=lV("iframe")).style.display="none",CU.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(FU("document.F=Object")),e.close(),e.F):TU(cU);for(var n=EU.length;n--;)delete _U.prototype[EU[n]];return _U()};mU[kU]=!0;var PU,jU,NU,IU=Object.create||function(e,t){var n;return null!==e?(BU.prototype=DV(e),n=new BU,BU.prototype=null,n[kU]=e):n=_U(),void 0===t?n:DU(n,t)},LU=EU.concat("length","prototype"),RU={f:Object.getOwnPropertyNames||function(e){return xU(e,LU)}},MU=G$.Array,zU=Math.max,$U=RU.f,HU="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],VU={f:function(e){return HU&&"Window"==vH(e)?function(e){try{return $U(e)}catch(e){return function(e,t,n){for(var r=LV(e),o=gU(void 0,r),i=gU(r,r),a=MU(zU(i-o,0)),u=0;o<i;o++,u++)RV(a,u,e[o]);return a.length=u,a}(HU)}}(e):$U(EH(e))}},UU={f:Object.getOwnPropertySymbols},WU=rH([].slice),qU=function(e,t,n,r){r&&r.enumerable?e[t]=n:kV(e,t,n)},GU={f:rV},KU=OV.f,YU=function(e){var t=DH.Symbol||(DH.Symbol={});KH(t,e)||KU(t,e,{value:GU.f(e)})},XU=zV?{}.toString:function(){return"[object "+UV(this)+"]"},ZU=OV.f,JU=rV("toStringTag"),QU=function(e,t,n,r){if(e){var o=n?e:e.prototype;KH(o,JU)||ZU(o,JU,{configurable:!0,value:t}),r&&!zV&&kV(o,"toString",XU)}},eW=G$.WeakMap,tW=oH(eW)&&/native code/.test(qV(eW)),nW=G$.TypeError,rW=G$.WeakMap;if(tW||VH.state){var oW=VH.state||(VH.state=new rW),iW=rH(oW.get),aW=rH(oW.has),uW=rH(oW.set);PU=function(e,t){if(aW(oW,e))throw new nW("Object already initialized");return t.facade=e,uW(oW,e,t),t},jU=function(e){return iW(oW,e)||{}},NU=function(e){return aW(oW,e)}}else{var sW=OU("state");mU[sW]=!0,PU=function(e,t){if(KH(e,sW))throw new nW("Object already initialized");return t.facade=e,kV(e,sW,t),t},jU=function(e){return KH(e,sW)?e[sW]:{}},NU=function(e){return KH(e,sW)}}var lW={set:PU,get:jU,has:NU,enforce:function(e){return NU(e)?jU(e):PU(e,{})},getterFor:function(e){return function(t){var n;if(!SH(t)||(n=jU(t)).type!==e)throw nW("Incompatible receiver, "+e+" required");return n}}},cW=rH([].push),fW=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,l,c,f){for(var d,p,h=qH(s),g=bH(h),v=xV(l,c),y=LV(g),m=0,b=f||rU,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:cW(w,d)}else switch(e){case 4:return!1;case 7:cW(w,d)}return i?-1:r||o?o:w}},dW=[fW(0),fW(1),fW(2),fW(3),fW(4),fW(5),fW(6),fW(7)][0],pW=OU("hidden"),hW=rV("toPrimitive"),gW=lW.set,vW=lW.getterFor("Symbol"),yW=Object.prototype,mW=G$.Symbol,bW=mW&&mW.prototype,wW=G$.TypeError,xW=G$.QObject,EW=AH("JSON","stringify"),SW=dV.f,DW=OV.f,CW=VU.f,AW=dH.f,OW=rH([].push),kW=UH("symbols"),BW=UH("op-symbols"),FW=UH("string-to-symbol-registry"),TW=UH("symbol-to-string-registry"),_W=UH("wks"),PW=!xW||!xW.prototype||!xW.prototype.findChild,jW=aH&&iH((function(){return 7!=IU(DW({},"a",{get:function(){return DW(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=SW(yW,t);r&&delete yW[t],DW(e,t,n),r&&e!==yW&&DW(yW,t,r)}:DW,NW=function(e,t){var n=kW[e]=IU(bW);return gW(n,{type:"Symbol",tag:e,description:t}),aH||(n.description=t),n},IW=function(e,t,n){e===yW&&IW(BW,t,n),DV(e);var r=aV(t);return DV(n),KH(kW,r)?(n.enumerable?(KH(e,pW)&&e[pW][r]&&(e[pW][r]=!1),n=IU(n,{enumerable:pH(0,!1)})):(KH(e,pW)||DW(e,pW,pH(1,{})),e[pW][r]=!0),jW(e,r,n)):DW(e,r,n)},LW=function(e,t){DV(e);var n=EH(t),r=SU(n).concat($W(n));return dW(r,(function(t){aH&&!sH(RW,n,t)||IW(e,t,n[t])})),e},RW=function(e){var t=aV(e),n=sH(AW,this,t);return!(this===yW&&KH(kW,t)&&!KH(BW,t))&&(!(n||!KH(this,t)||!KH(kW,t)||KH(this,pW)&&this[pW][t])||n)},MW=function(e,t){var n=EH(e),r=aV(t);if(n!==yW||!KH(kW,r)||KH(BW,r)){var o=SW(n,r);return!o||!KH(kW,r)||KH(n,pW)&&n[pW][r]||(o.enumerable=!0),o}},zW=function(e){var t=CW(EH(e)),n=[];return dW(t,(function(e){KH(kW,e)||KH(mU,e)||OW(n,e)})),n},$W=function(e){var t=e===yW,n=CW(t?BW:EH(e)),r=[];return dW(n,(function(e){!KH(kW,e)||t&&!KH(yW,e)||OW(r,kW[e])})),r};if(jH||(bW=(mW=function(){if(OH(bW,this))throw wW("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?dU(arguments[0]):void 0,t=JH(e),n=function(e){this===yW&&sH(n,BW,e),KH(this,pW)&&KH(this[pW],t)&&(this[pW][t]=!1),jW(this,t,pH(1,e))};return aH&&PW&&jW(yW,t,{configurable:!0,set:n}),NW(t,e)}).prototype,qU(bW,"toString",(function(){return vW(this).tag})),qU(mW,"withoutSetter",(function(e){return NW(JH(e),e)})),dH.f=RW,OV.f=IW,dV.f=MW,RU.f=VU.f=zW,UU.f=$W,GU.f=function(e){return NW(rV(e),e)},aH&&DW(bW,"description",{configurable:!0,get:function(){return vW(this).description}})),TV({global:!0,wrap:!0,forced:!jH,sham:!jH},{Symbol:mW}),dW(SU(_W),(function(e){YU(e)})),TV({target:"Symbol",stat:!0,forced:!jH},{for:function(e){var t=dU(e);if(KH(FW,t))return FW[t];var n=mW(t);return FW[t]=n,TW[n]=t,n},keyFor:function(e){if(!LH(e))throw wW(e+" is not a symbol");if(KH(TW,e))return TW[e]},useSetter:function(){PW=!0},useSimple:function(){PW=!1}}),TV({target:"Object",stat:!0,forced:!jH,sham:!aH},{create:function(e,t){return void 0===t?IU(e):LW(IU(e),t)},defineProperty:IW,defineProperties:LW,getOwnPropertyDescriptor:MW}),TV({target:"Object",stat:!0,forced:!jH},{getOwnPropertyNames:zW,getOwnPropertySymbols:$W}),TV({target:"Object",stat:!0,forced:iH((function(){UU.f(1)}))},{getOwnPropertySymbols:function(e){return UU.f(qH(e))}}),EW){var HW=!jH||iH((function(){var e=mW();return"[null]"!=EW([e])||"{}"!=EW({a:e})||"{}"!=EW(Object(e))}));TV({target:"JSON",stat:!0,forced:HW},{stringify:function(e,t,n){var r=WU(arguments),o=t;if((SH(t)||void 0!==e)&&!LH(e))return _V(t)||(t=function(e,t){if(oH(o)&&(t=sH(o,this,e,t)),!LH(t))return t}),r[1]=t,J$(EW,null,r)}})}if(!bW[hW]){var VW=bW.valueOf;qU(bW,hW,(function(e){return sH(VW,this)}))}QU(mW,"Symbol"),mU[pW]=!0,YU("asyncIterator"),YU("hasInstance"),YU("isConcatSpreadable"),YU("iterator"),YU("match"),YU("matchAll"),YU("replace"),YU("search"),YU("species"),YU("split"),YU("toPrimitive"),YU("toStringTag"),YU("unscopables"),QU(G$.JSON,"JSON",!0);var UW,WW,qW,GW=DH.Symbol,KW={},YW=Function.prototype,XW=aH&&Object.getOwnPropertyDescriptor,ZW=KH(YW,"name"),JW={EXISTS:ZW,PROPER:ZW&&"something"===function(){}.name,CONFIGURABLE:ZW&&(!aH||aH&&XW(YW,"name").configurable)},QW=!iH((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),eq=OU("IE_PROTO"),tq=G$.Object,nq=tq.prototype,rq=QW?tq.getPrototypeOf:function(e){var t=qH(e);if(KH(t,eq))return t[eq];var n=t.constructor;return oH(n)&&t instanceof n?n.prototype:t instanceof tq?nq:null},oq=rV("iterator"),iq=!1;[].keys&&("next"in(qW=[].keys())?(WW=rq(rq(qW)))!==Object.prototype&&(UW=WW):iq=!0);var aq=null==UW||iH((function(){var e={};return UW[oq].call(e)!==e}));UW=aq?{}:IU(UW),oH(UW[oq])||qU(UW,oq,(function(){return this}));var uq={IteratorPrototype:UW,BUGGY_SAFARI_ITERATORS:iq},sq=uq.IteratorPrototype,lq=function(){return this};G$.String,G$.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{rH(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(e){}}();var cq=JW.PROPER,fq=uq.BUGGY_SAFARI_ITERATORS,dq=rV("iterator"),pq=function(){return this},hq=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=IU(sq,{next:pH(1,n)}),QU(e,o,!1,!0),KW[o]=lq}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!fq&&e in p)return p[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",d=!1,p=e.prototype,h=p[dq]||p["@@iterator"]||o&&p[o],g=!fq&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=rq(v.call(new e)))!==Object.prototype&&u.next&&(QU(u,f,!0,!0),KW[f]=pq),cq&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return sH(h,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(fq||d||!(l in p))&&qU(p,l,s[l]);else TV({target:t,proto:!0,forced:fq||d},s);return a&&p[dq]!==g&&qU(p,dq,g,{name:o}),KW[t]=g,s},gq=lW.set,vq=lW.getterFor("Array Iterator");hq(Array,"Array",(function(e,t){gq(this,{type:"Array Iterator",target:EH(e),index:0,kind:t})}),(function(){var e=vq(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"),KW.Arguments=KW.Array;var yq=rV("toStringTag");for(var mq 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 bq=G$[mq],wq=bq&&bq.prototype;wq&&UV(wq)!==yq&&kV(wq,yq,mq),KW[mq]=KW.Array}var xq=GW;YU("asyncDispose"),YU("dispose"),YU("matcher"),YU("metadata"),YU("observable"),YU("patternMatch"),YU("replaceAll");var Eq=xq,Sq=rH("".charAt),Dq=rH("".charCodeAt),Cq=rH("".slice),Aq=function(e){return function(t,n){var r,o,i=dU(xH(t)),a=NV(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Dq(i,a))<55296||r>56319||a+1===u||(o=Dq(i,a+1))<56320||o>57343?e?Sq(i,a):r:e?Cq(i,a,a+2):o-56320+(r-55296<<10)+65536}},Oq=(Aq(!1),Aq(!0)),kq=lW.set,Bq=lW.getterFor("String Iterator");hq(String,"String",(function(e){kq(this,{type:"String Iterator",string:dU(e),index:0})}),(function(){var e,t=Bq(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Oq(n,r),t.index+=e.length,{value:e,done:!1})}));var Fq=GU.f("iterator"),Tq=LP((function(e){function t(n){return"function"==typeof Eq&&"symbol"==typeof Fq?(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 Eq&&e.constructor===Eq&&e!==Eq.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})),_q=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Tq),Pq=_N.EXISTS,jq=lN.f,Nq=Function.prototype,Iq=tj(Nq.toString),Lq=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Rq=tj(Lq.exec);VP&&!Pq&&jq(Nq,"name",{configurable:!0,get:function(){try{return Rq(Lq,Iq(this))[1]}catch(e){return""}}});var Mq=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=kf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!jR(kf.nodes(e,{match:function(t){return"pre"===kO.getNodeType(t)||!!kf.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}(),zq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("fontSize.title"),t.iconSvg=cM,t.mark="fontSize",t}return BR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:hP("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===_q(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}(Mq),$q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("fontFamily.title"),t.iconSvg=fM,t.mark="fontFamily",t.selectPanelWidth=150,t}return BR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:hP("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===_q(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}(Mq),Hq={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&wz(i,{fontSize:r}),o&&wz(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Jf.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((SR(t)||"span"!==CR(n=Tp(t)))&&(n=Tp("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),DR(n)):t},preParseHtml:[H$],parseStyleHtml:function(e,t,n){var r=Tp(e);if(!Jf.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=AR(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===l?[]:l,f=AR(r,"font-family").replace(/"/g,""),d=c.find((function(e){return e.value&&e.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new zq},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 $q},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Vq={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Tp(e),n=AR(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]}},Uq=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=jR(kf.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(kf.nodes(e,{match:function(e){var t=kO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),Wq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("indent.decrease"),t.iconSvg=dM,t}return BR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){vd.setNodes(e,{indent:null},{match:function(e){return Ef.isElement(e)}})},t}(Uq),qq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("indent.increase"),t.iconSvg=pM,t}return BR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){vd.setNodes(e,{indent:"2em"},{match:function(e){return Ef.isElement(e)},mode:"highest"})},t}(Uq),Gq={renderStyle:function(e,t){if(!Ef.isElement(e))return t;var n=e.indent,r=t;return n&&wz(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!Ef.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Tp(t);return r.css("text-indent",n),DR(r)},preParseHtml:[Vq],parseStyleHtml:function(e,t,n){var r=Tp(e);if(!Ef.isElement(t))return t;var o=t,i=AR(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new qq}},{key:"delIndent",factory:function(){return new Wq}}]},Kq=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(kf.nodes(e,{match:function(e){var t=kO.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||!!kO.getSelectedElems(e).some((function(t){if(kf.isVoid(e,t)&&kf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),Yq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("justify.left"),t.iconSvg=hM,t}return BR(t,e),t.prototype.exec=function(e,t){vd.setNodes(e,{textAlign:"left"},{match:function(t){return Ef.isElement(t)&&!e.isInline(t)}})},t}(Kq),Xq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("justify.right"),t.iconSvg=gM,t}return BR(t,e),t.prototype.exec=function(e,t){vd.setNodes(e,{textAlign:"right"},{match:function(t){return Ef.isElement(t)&&!e.isInline(t)}})},t}(Kq),Zq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("justify.center"),t.iconSvg=vM,t}return BR(t,e),t.prototype.exec=function(e,t){vd.setNodes(e,{textAlign:"center"},{match:function(t){return Ef.isElement(t)&&!e.isInline(t)}})},t}(Kq),Jq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("justify.justify"),t.iconSvg=yM,t}return BR(t,e),t.prototype.exec=function(e,t){vd.setNodes(e,{textAlign:"justify"},{match:function(t){return Ef.isElement(t)&&!e.isInline(t)}})},t}(Kq),Qq={renderStyle:function(e,t){if(!Ef.isElement(e))return t;var n=e.textAlign,r=t;return n&&wz(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!Ef.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Tp(t);return r.css("text-align",n),DR(r)},parseStyleHtml:function(e,t,n){var r=Tp(e);if(!Ef.isElement(t))return t;var o=t,i=AR(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Yq}},{key:"justifyRight",factory:function(){return new Xq}},{key:"justifyCenter",factory:function(){return new Zq}},{key:"justifyJustify",factory:function(){return new Jq}}]},eG=function(){function e(){this.title=hP("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:hP("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(kf.nodes(e,{match:function(e){var t=kO.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?"":Ef.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){vd.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),tG={renderStyle:function(e,t){if(!Ef.isElement(e))return t;var n=e.lineHeight,r=t;return n&&wz(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!Ef.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Tp(t);return r.css("line-height",n),DR(r)},parseStyleHtml:function(e,t,n){var r=Tp(e);if(!Ef.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=AR(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new eG},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},nG=function(){function e(){this.title=hP("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}(),rG=function(){function e(){this.title=hP("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}(),oG={menus:[{key:"redo",factory:function(){return new nG}},{key:"undo",factory:function(){return new rG}}]},iG={type:"divider",renderElem:function(e,t,n){return eg("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:kO.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[eg("hr")])}},aG=function(){function e(){this.title=hP("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||!!kO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=kO.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){vd.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),uG={renderElems:[iG],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 aG}}],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"!==kO.getNodeType(o))return n([o,i]);kO.isLastNode(r,o)&&vd.insertNodes(r,kO.genEmptyParagraph(),{at:[i[0]+1]})},r}},sG=TI.map;lI({target:"Array",proto:!0,forced:!PI("map")},{map:function(e){return sG(this,e,arguments.length>1?arguments[1]:void 0)}});var lG=tj([].join),cG=uj!=Object,fG=GR("join",",");lI({target:"Array",proto:!0,forced:cG||!fG},{join:function(e){return lG(cj(this),void 0===e?",":e)}});var dG=function(){function e(){this.title=hP("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=kO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=kO.getParentNode(e,t);return null==n||"pre"!==kO.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=kO.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=kO.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);vd.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));vd.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=kf.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}}vd.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};vd.insertNodes(e,l,{mode:"highest"})},e}(),pG={key:"codeBlock",factory:function(){return new dG}};lI({target:"String",proto:!0,forced:zR("anchor")},{anchor:function(e){return MR(this,"a","name",e)}}),DL("match",(function(e,t,n){return[function(t){var n=lj(this),r=null==t?void 0:Fj(t,e);return r?WP(r,t,n):new RegExp(t)[e](RI(n))},function(e){var r=aN(this),o=RI(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return ML(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=ML(r,o));){var c=RI(u[0]);s[l]=c,""===c&&(r.lastIndex=FL(o,$N(r.lastIndex),a)),l++}return 0===l?null:s}]}));var hG={type:"pre",renderElem:function(e,t,n){return wg("pre",null,t)}},gG={type:"code",renderElem:function(e,t,n){return wg("code",null,t)}},vG={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Tp(e);return 0===(t=t.filter((function(e){return"code"===kO.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===kO.getNodeType(e)}))}}},yG={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=kO.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=kO.getNodeType(r);return"code"===a&&i.length<=1&&vd.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(kO.isLastNode(o,r)&&vd.insertNodes(o,kO.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==kO.getNodeType(r.children[0])&&(vd.unwrapNodes(o),vd.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=kO.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");kf.insertText(o,t)}else r(e)},o},renderElems:[hG,gG],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=Tp(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:Tp(e)[0].textContent||""}]}}},vG]},mG=function(){function e(){this.title=hP("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}(),bG={menus:[{key:"fullScreen",factory:function(){return new mG}}]},wG=function(){function e(){this.title=hP("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||!!Wf.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];vd.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(kf.start(e,r))}},e}(),xG=[kM,Az,Hq,Gq,Qq,tG,D$,uG,z$,Gz,yG,R$,gz,IR,k$,oG,bG,{menus:[{key:"enter",factory:function(){return new wG}}]}];pP("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),pP("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var EG="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==u.g?u.g:"undefined"!=typeof self?self:{};function SG(e){var t={exports:{}};return e(t,t.exports),t.exports}var DG,CG,AG=function(e){return e&&e.Math==Math&&e},OG=AG("object"==typeof globalThis&&globalThis)||AG("object"==typeof window&&window)||AG("object"==typeof self&&self)||AG("object"==typeof EG&&EG)||function(){return this}()||Function("return this")(),kG=Function.prototype,BG=kG.bind,FG=kG.call,TG=BG&&BG.bind(FG),_G=BG?function(e){return e&&TG(FG,e)}:function(e){return e&&function(){return FG.apply(e,arguments)}},PG=function(e){try{return!!e()}catch(e){return!0}},jG=_G({}.toString),NG=_G("".slice),IG=function(e){return NG(jG(e),8,-1)},LG=OG.Object,RG=_G("".split),MG=PG((function(){return!LG("z").propertyIsEnumerable(0)}))?function(e){return"String"==IG(e)?RG(e,""):LG(e)}:LG,zG=OG.TypeError,$G=function(e){if(null==e)throw zG("Can't call method on "+e);return e},HG=function(e){return MG($G(e))},VG=Object.defineProperty,UG=function(e,t){try{VG(OG,e,{value:t,configurable:!0,writable:!0})}catch(n){OG[e]=t}return t},WG=OG["__core-js_shared__"]||UG("__core-js_shared__",{}),qG=SG((function(e){(e.exports=function(e,t){return WG[e]||(WG[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),GG=OG.Object,KG=function(e){return GG($G(e))},YG=_G({}.hasOwnProperty),XG=Object.hasOwn||function(e,t){return YG(KG(e),t)},ZG=0,JG=Math.random(),QG=_G(1..toString),eK=function(e){return"Symbol("+(void 0===e?"":e)+")_"+QG(++ZG+JG,36)},tK=function(e){return"function"==typeof e},nK=function(e){return tK(e)?e:void 0},rK=function(e,t){return arguments.length<2?nK(OG[e]):OG[e]&&OG[e][t]},oK=rK("navigator","userAgent")||"",iK=OG.process,aK=OG.Deno,uK=iK&&iK.versions||aK&&aK.version,sK=uK&&uK.v8;sK&&(CG=(DG=sK.split("."))[0]>0&&DG[0]<4?1:+(DG[0]+DG[1])),!CG&&oK&&(!(DG=oK.match(/Edge\/(\d+)/))||DG[1]>=74)&&(DG=oK.match(/Chrome\/(\d+)/))&&(CG=+DG[1]);var lK,cK=CG,fK=!!Object.getOwnPropertySymbols&&!PG((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&cK&&cK<41})),dK=fK&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,pK=qG("wks"),hK=OG.Symbol,gK=hK&&hK.for,vK=dK?hK:hK&&hK.withoutSetter||eK,yK=function(e){if(!XG(pK,e)||!fK&&"string"!=typeof pK[e]){var t="Symbol."+e;fK&&XG(hK,e)?pK[e]=hK[e]:pK[e]=dK&&gK?gK(t):vK(t)}return pK[e]},mK=function(e){return"object"==typeof e?null!==e:tK(e)},bK=OG.String,wK=OG.TypeError,xK=function(e){if(mK(e))return e;throw wK(bK(e)+" is not an object")},EK=!PG((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),SK=OG.document,DK=mK(SK)&&mK(SK.createElement),CK=function(e){return DK?SK.createElement(e):{}},AK=!EK&&!PG((function(){return 7!=Object.defineProperty(CK("div"),"a",{get:function(){return 7}}).a})),OK=Function.prototype.call,kK=OK.bind?OK.bind(OK):function(){return OK.apply(OK,arguments)},BK=_G({}.isPrototypeOf),FK=OG.Object,TK=dK?function(e){return"symbol"==typeof e}:function(e){var t=rK("Symbol");return tK(t)&&BK(t.prototype,FK(e))},_K=OG.String,PK=function(e){try{return _K(e)}catch(e){return"Object"}},jK=OG.TypeError,NK=function(e){if(tK(e))return e;throw jK(PK(e)+" is not a function")},IK=function(e,t){var n=e[t];return null==n?void 0:NK(n)},LK=OG.TypeError,RK=OG.TypeError,MK=yK("toPrimitive"),zK=function(e){var t=function(e,t){if(!mK(e)||TK(e))return e;var n,r=IK(e,MK);if(r){if(void 0===t&&(t="default"),n=kK(r,e,t),!mK(n)||TK(n))return n;throw RK("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&tK(n=e.toString)&&!mK(r=kK(n,e)))return r;if(tK(n=e.valueOf)&&!mK(r=kK(n,e)))return r;if("string"!==t&&tK(n=e.toString)&&!mK(r=kK(n,e)))return r;throw LK("Can't convert object to primitive value")}(e,t)}(e,"string");return TK(t)?t:t+""},$K=OG.TypeError,HK=Object.defineProperty,VK={f:EK?HK:function(e,t,n){if(xK(e),t=zK(t),xK(n),AK)try{return HK(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $K("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},UK=Math.ceil,WK=Math.floor,qK=function(e){var t=+e;return t!=t||0===t?0:(t>0?WK:UK)(t)},GK=Math.max,KK=Math.min,YK=function(e,t){var n=qK(e);return n<0?GK(n+t,0):KK(n,t)},XK=Math.min,ZK=function(e){return e>0?XK(qK(e),9007199254740991):0},JK=function(e){return ZK(e.length)},QK=function(e){return function(t,n,r){var o,i=HG(t),a=JK(i),u=YK(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}},eY={includes:QK(!0),indexOf:QK(!1)},tY={},nY=eY.indexOf,rY=_G([].push),oY=function(e,t){var n,r=HG(e),o=0,i=[];for(n in r)!XG(tY,n)&&XG(r,n)&&rY(i,n);for(;t.length>o;)XG(r,n=t[o++])&&(~nY(i,n)||rY(i,n));return i},iY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],aY=Object.keys||function(e){return oY(e,iY)},uY=EK?Object.defineProperties:function(e,t){xK(e);for(var n,r=HG(t),o=aY(t),i=o.length,a=0;i>a;)VK.f(e,n=o[a++],r[n]);return e},sY=rK("document","documentElement"),lY=qG("keys"),cY=function(e){return lY[e]||(lY[e]=eK(e))},fY=cY("IE_PROTO"),dY=function(){},pY=function(e){return"<script>"+e+"<\/script>"},hY=function(e){e.write(pY("")),e.close();var t=e.parentWindow.Object;return e=null,t},gY=function(){try{lK=new ActiveXObject("htmlfile")}catch(e){}var e,t;gY="undefined"!=typeof document?document.domain&&lK?hY(lK):((t=CK("iframe")).style.display="none",sY.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(pY("document.F=Object")),e.close(),e.F):hY(lK);for(var n=iY.length;n--;)delete gY.prototype[iY[n]];return gY()};tY[fY]=!0;var vY=Object.create||function(e,t){var n;return null!==e?(dY.prototype=xK(e),n=new dY,dY.prototype=null,n[fY]=e):n=gY(),void 0===t?n:uY(n,t)},yY=yK("unscopables"),mY=Array.prototype;null==mY[yY]&&VK.f(mY,yY,{configurable:!0,value:vY(null)});var bY=function(e){mY[yY][e]=!0},wY={},xY=_G(Function.toString);tK(WG.inspectSource)||(WG.inspectSource=function(e){return xY(e)});var EY,SY,DY,CY=WG.inspectSource,AY=OG.WeakMap,OY=tK(AY)&&/native code/.test(CY(AY)),kY=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},BY=EK?function(e,t,n){return VK.f(e,t,kY(1,n))}:function(e,t,n){return e[t]=n,e},FY=OG.TypeError,TY=OG.WeakMap;if(OY||WG.state){var _Y=WG.state||(WG.state=new TY),PY=_G(_Y.get),jY=_G(_Y.has),NY=_G(_Y.set);EY=function(e,t){if(jY(_Y,e))throw new FY("Object already initialized");return t.facade=e,NY(_Y,e,t),t},SY=function(e){return PY(_Y,e)||{}},DY=function(e){return jY(_Y,e)}}else{var IY=cY("state");tY[IY]=!0,EY=function(e,t){if(XG(e,IY))throw new FY("Object already initialized");return t.facade=e,BY(e,IY,t),t},SY=function(e){return XG(e,IY)?e[IY]:{}},DY=function(e){return XG(e,IY)}}var LY,RY,MY,zY={set:EY,get:SY,has:DY,enforce:function(e){return DY(e)?SY(e):EY(e,{})},getterFor:function(e){return function(t){var n;if(!mK(t)||(n=SY(t)).type!==e)throw FY("Incompatible receiver, "+e+" required");return n}}},$Y={}.propertyIsEnumerable,HY=Object.getOwnPropertyDescriptor,VY={f:HY&&!$Y.call({1:2},1)?function(e){var t=HY(this,e);return!!t&&t.enumerable}:$Y},UY=Object.getOwnPropertyDescriptor,WY={f:EK?UY:function(e,t){if(e=HG(e),t=zK(t),AK)try{return UY(e,t)}catch(e){}if(XG(e,t))return kY(!kK(VY.f,e,t),e[t])}},qY=Function.prototype,GY=EK&&Object.getOwnPropertyDescriptor,KY=XG(qY,"name"),YY={EXISTS:KY,PROPER:KY&&"something"===function(){}.name,CONFIGURABLE:KY&&(!EK||EK&&GY(qY,"name").configurable)},XY=SG((function(e){var t=YY.CONFIGURABLE,n=zY.get,r=zY.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;tK(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!XG(i,"name")||t&&i.name!==f)&&BY(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==OG?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:BY(e,n,i)):l?e[n]=i:UG(n,i)})(Function.prototype,"toString",(function(){return tK(this)&&n(this).source||CY(this)}))})),ZY=iY.concat("length","prototype"),JY={f:Object.getOwnPropertyNames||function(e){return oY(e,ZY)}},QY={f:Object.getOwnPropertySymbols},eX=_G([].concat),tX=rK("Reflect","ownKeys")||function(e){var t=JY.f(xK(e)),n=QY.f;return n?eX(t,n(e)):t},nX=function(e,t){for(var n=tX(t),r=VK.f,o=WY.f,i=0;i<n.length;i++){var a=n[i];XG(e,a)||r(e,a,o(t,a))}},rX=/#|\.prototype\./,oX=function(e,t){var n=aX[iX(e)];return n==sX||n!=uX&&(tK(t)?PG(t):!!t)},iX=oX.normalize=function(e){return String(e).replace(rX,".").toLowerCase()},aX=oX.data={},uX=oX.NATIVE="N",sX=oX.POLYFILL="P",lX=oX,cX=WY.f,fX=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?OG:l?OG[u]||UG(u,{}):(OG[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=cX(n,r))&&a.value:n[r],!lX(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;nX(i,o)}(e.sham||o&&o.sham)&&BY(i,"sham",!0),XY(n,r,i,e)}},dX=!PG((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),pX=cY("IE_PROTO"),hX=OG.Object,gX=hX.prototype,vX=dX?hX.getPrototypeOf:function(e){var t=KG(e);if(XG(t,pX))return t[pX];var n=t.constructor;return tK(n)&&t instanceof n?n.prototype:t instanceof hX?gX:null},yX=yK("iterator"),mX=!1;[].keys&&("next"in(MY=[].keys())?(RY=vX(vX(MY)))!==Object.prototype&&(LY=RY):mX=!0);var bX=null==LY||PG((function(){var e={};return LY[yX].call(e)!==e}));bX&&(LY={}),tK(LY[yX])||XY(LY,yX,(function(){return this}));var wX={IteratorPrototype:LY,BUGGY_SAFARI_ITERATORS:mX},xX=VK.f,EX=yK("toStringTag"),SX=function(e,t,n){e&&!XG(e=n?e:e.prototype,EX)&&xX(e,EX,{configurable:!0,value:t})},DX=wX.IteratorPrototype,CX=function(){return this},AX=OG.String,OX=OG.TypeError,kX=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=_G(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return xK(n),function(e){if("object"==typeof e||tK(e))return e;throw OX("Can't set "+AX(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),BX=YY.PROPER,FX=YY.CONFIGURABLE,TX=wX.IteratorPrototype,_X=wX.BUGGY_SAFARI_ITERATORS,PX=yK("iterator"),jX=function(){return this},NX=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=vY(DX,{next:kY(1,n)}),SX(e,o,!1),wY[o]=CX}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!_X&&e in p)return p[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",d=!1,p=e.prototype,h=p[PX]||p["@@iterator"]||o&&p[o],g=!_X&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=vX(v.call(new e)))!==Object.prototype&&u.next&&(vX(u)!==TX&&(kX?kX(u,TX):tK(u[PX])||XY(u,PX,jX)),SX(u,f,!0)),BX&&"values"==o&&h&&"values"!==h.name&&(FX?BY(p,"name","values"):(d=!0,g=function(){return kK(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(_X||d||!(l in p))&&XY(p,l,s[l]);else fX({target:t,proto:!0,forced:_X||d},s);return p[PX]!==g&&XY(p,PX,g,{name:o}),wY[t]=g,s},IX=zY.set,LX=zY.getterFor("Array Iterator"),RX=NX(Array,"Array",(function(e,t){IX(this,{type:"Array Iterator",target:HG(e),index:0,kind:t})}),(function(){var e=LX(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");wY.Arguments=wY.Array,bY("keys"),bY("values"),bY("entries");var MX={};MX[yK("toStringTag")]="z";var zX="[object z]"===String(MX),$X=yK("toStringTag"),HX=OG.Object,VX="Arguments"==IG(function(){return arguments}()),UX=zX?IG: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=HX(e),$X))?n:VX?IG(t):"Object"==(r=IG(t))&&tK(t.callee)?"Arguments":r},WX=zX?{}.toString:function(){return"[object "+UX(this)+"]"};zX||XY(Object.prototype,"toString",WX,{unsafe:!0});var qX=OG.String,GX=function(e){if("Symbol"===UX(e))throw TypeError("Cannot convert a Symbol value to a string");return qX(e)},KX=_G("".charAt),YX=_G("".charCodeAt),XX=_G("".slice),ZX=function(e){return function(t,n){var r,o,i=GX($G(t)),a=qK(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=YX(i,a))<55296||r>56319||a+1===u||(o=YX(i,a+1))<56320||o>57343?e?KX(i,a):r:e?XX(i,a,a+2):o-56320+(r-55296<<10)+65536}},JX={codeAt:ZX(!1),charAt:ZX(!0)},QX=JX.charAt,eZ=zY.set,tZ=zY.getterFor("String Iterator");NX(String,"String",(function(e){eZ(this,{type:"String Iterator",string:GX(e),index:0})}),(function(){var e,t=tZ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=QX(n,r),t.index+=e.length,{value:e,done:!1})}));var nZ=function(e,t,n){for(var r in t)XY(e,r,t[r],n);return e},rZ=OG.Array,oZ=Math.max,iZ=JY.f,aZ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],uZ={f:function(e){return aZ&&"Window"==IG(e)?function(e){try{return iZ(e)}catch(e){return function(e,t,n){for(var r,o,i,a,u=JK(e),s=YK(void 0,u),l=YK(u,u),c=rZ(oZ(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=zK(o))in r?VK.f(r,a,kY(0,i)):r[a]=i;return c.length=f,c}(aZ)}}(e):iZ(HG(e))}},sZ=PG((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),lZ=Object.isExtensible,cZ=PG((function(){lZ(1)}))||sZ?function(e){return!!mK(e)&&(!sZ||"ArrayBuffer"!=IG(e))&&(!lZ||lZ(e))}:lZ,fZ=!PG((function(){return Object.isExtensible(Object.preventExtensions({}))})),dZ=SG((function(e){var t=VK.f,n=!1,r=eK("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=JY.f,t=_G([].splice),o={};o[r]=1,e(o).length&&(JY.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},fX({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:uZ.f}))},fastKey:function(e,t){if(!mK(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!XG(e,r)){if(!cZ(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!XG(e,r)){if(!cZ(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return fZ&&n&&cZ(e)&&!XG(e,r)&&i(e),e}};tY[r]=!0})),pZ=_G(_G.bind),hZ=function(e,t){return NK(e),void 0===t?e:pZ?pZ(e,t):function(){return e.apply(t,arguments)}},gZ=yK("iterator"),vZ=Array.prototype,yZ=yK("iterator"),mZ=function(e){if(null!=e)return IK(e,yZ)||IK(e,"@@iterator")||wY[UX(e)]},bZ=OG.TypeError,wZ=function(e,t,n){var r,o;xK(e);try{if(!(r=IK(e,"return"))){if("throw"===t)throw n;return n}r=kK(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return xK(r),n},xZ=OG.TypeError,EZ=function(e,t){this.stopped=e,this.result=t},SZ=EZ.prototype,DZ=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=hZ(t,f),v=function(e){return r&&wZ(r,"normal",e),new EZ(!0,e)},y=function(e){return d?(xK(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=mZ(e)))throw xZ(PK(e)+" is not iterable");if(void 0!==(c=o)&&(wY.Array===c||vZ[gZ]===c)){for(i=0,a=JK(e);a>i;i++)if((u=y(e[i]))&&BK(SZ,u))return u;return new EZ(!1)}r=function(e,t){var n=arguments.length<2?mZ(e):t;if(NK(n))return xK(kK(n,e));throw bZ(PK(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=kK(s,r)).done;){try{u=y(l.value)}catch(e){wZ(r,"throw",e)}if("object"==typeof u&&u&&BK(SZ,u))return u}return new EZ(!1)},CZ=OG.TypeError,AZ=function(e,t){if(BK(t,e))return e;throw CZ("Incorrect invocation")},OZ=yK("iterator"),kZ=!1;try{var BZ=0,FZ={next:function(){return{done:!!BZ++}},return:function(){kZ=!0}};FZ[OZ]=function(){return this},Array.from(FZ,(function(){throw 2}))}catch(zl){}var TZ=Array.isArray||function(e){return"Array"==IG(e)},_Z=function(){},PZ=[],jZ=rK("Reflect","construct"),NZ=/^\s*(?:class|function)\b/,IZ=_G(NZ.exec),LZ=!NZ.exec(_Z),RZ=function(e){if(!tK(e))return!1;try{return jZ(_Z,PZ,e),!0}catch(e){return!1}},MZ=!jZ||PG((function(){var e;return RZ(RZ.call)||!RZ(Object)||!RZ((function(){e=!0}))||e}))?function(e){if(!tK(e))return!1;switch(UX(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return LZ||!!IZ(NZ,CY(e))}:RZ,zZ=yK("species"),$Z=OG.Array,HZ=function(e,t){return new(function(e){var t;return TZ(e)&&(t=e.constructor,(MZ(t)&&(t===$Z||TZ(t.prototype))||mK(t)&&null===(t=t[zZ]))&&(t=void 0)),void 0===t?$Z:t}(e))(0===t?0:t)},VZ=_G([].push),UZ=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,l,c,f){for(var d,p,h=KG(s),g=MG(h),v=hZ(l,c),y=JK(g),m=0,b=f||HZ,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:VZ(w,d)}else switch(e){case 4:return!1;case 7:VZ(w,d)}return i?-1:r||o?o:w}},WZ={forEach:UZ(0),map:UZ(1),filter:UZ(2),some:UZ(3),every:UZ(4),find:UZ(5),findIndex:UZ(6),filterReject:UZ(7)},qZ=dZ.getWeakData,GZ=zY.set,KZ=zY.getterFor,YZ=WZ.find,XZ=WZ.findIndex,ZZ=_G([].splice),JZ=0,QZ=function(e){return e.frozen||(e.frozen=new eJ)},eJ=function(){this.entries=[]},tJ=function(e,t){return YZ(e.entries,(function(e){return e[0]===t}))};eJ.prototype={get:function(e){var t=tJ(this,e);if(t)return t[1]},has:function(e){return!!tJ(this,e)},set:function(e,t){var n=tJ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=XZ(this.entries,(function(t){return t[0]===e}));return~t&&ZZ(this.entries,t,1),!!~t}};var nJ,rJ={getConstructor:function(e,t,n,r){var o=e((function(e,o){AZ(e,i),GZ(e,{type:t,id:JZ++,frozen:void 0}),null!=o&&DZ(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=KZ(t),u=function(e,t,n){var r=a(e),o=qZ(xK(t),!0);return!0===o?QZ(r).set(t,n):o[r.id]=n,e};return nZ(i,{delete:function(e){var t=a(this);if(!mK(e))return!1;var n=qZ(e);return!0===n?QZ(t).delete(e):n&&XG(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!mK(e))return!1;var n=qZ(e);return!0===n?QZ(t).has(e):n&&XG(n,t.id)}}),nZ(i,n?{get:function(e){var t=a(this);if(mK(e)){var n=qZ(e);return!0===n?QZ(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}},oJ=zY.enforce,iJ=!OG.ActiveXObject&&"ActiveXObject"in OG,aJ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},uJ=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,l={},c=function(e){var t=_G(u[e]);XY(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!mK(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!mK(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!mK(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(lX(e,!tK(a)||!(o||u.forEach&&!PG((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),dZ.enable();else if(lX(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=PG((function(){f.has(1)})),h=function(e,t){if(!kZ)return!1;var n=!1;try{var r={};r[OZ]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),g=!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){AZ(e,u);var n=function(e,t,n){var r,o;return kX&&tK(r=t.constructor)&&r!==n&&mK(o=r.prototype)&&o!==n.prototype&&kX(e,o),e}(new a,e,s);return null!=t&&DZ(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,fX({global:!0,forced:s!=a},l),SX(s,e),o||n.setStrong(s,e,r),s}("WeakMap",aJ,rJ);if(OY&&iJ){nJ=rJ.getConstructor(aJ,"WeakMap",!0),dZ.enable();var sJ=uJ.prototype,lJ=_G(sJ.delete),cJ=_G(sJ.has),fJ=_G(sJ.get),dJ=_G(sJ.set);nZ(sJ,{delete:function(e){if(mK(e)&&!cZ(e)){var t=oJ(this);return t.frozen||(t.frozen=new nJ),lJ(this,e)||t.frozen.delete(e)}return lJ(this,e)},has:function(e){if(mK(e)&&!cZ(e)){var t=oJ(this);return t.frozen||(t.frozen=new nJ),cJ(this,e)||t.frozen.has(e)}return cJ(this,e)},get:function(e){if(mK(e)&&!cZ(e)){var t=oJ(this);return t.frozen||(t.frozen=new nJ),cJ(this,e)?fJ(this,e):t.frozen.get(e)}return fJ(this,e)},set:function(e,t){if(mK(e)&&!cZ(e)){var n=oJ(this);n.frozen||(n.frozen=new nJ),cJ(this,e)?dJ(this,e,t):n.frozen.set(e,t)}else dJ(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},hJ=CK("span").classList,gJ=hJ&&hJ.constructor&&hJ.constructor.prototype,vJ=gJ===Object.prototype?void 0:gJ,yJ=yK("iterator"),mJ=yK("toStringTag"),bJ=RX.values,wJ=function(e,t){if(e){if(e[yJ]!==bJ)try{BY(e,yJ,bJ)}catch(t){e[yJ]=bJ}if(e[mJ]||BY(e,mJ,t),pJ[t])for(var n in RX)if(e[n]!==RX[n])try{BY(e,n,RX[n])}catch(t){e[n]=RX[n]}}};for(var xJ in pJ)wJ(OG[xJ]&&OG[xJ].prototype,xJ);wJ(vJ,"DOMTokenList");var EJ=new WeakMap,SJ={type:"list-item",renderElem:function(e,t,n){EJ.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 l=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,l=t,c=kO.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=Lf.previous(c),d=kf.node(e,f);if(null==d)break;var p=d[0],h=p.level,g=void 0===h?0:h,v=p.type,y=p.ordered;if(v!==r)break;if(g<i)break;if(g===i){if(y!==u)break;s++}l=p,c=f}return s}(n,e);s=l+"."}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 c=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];Jf.isText(i)&&(t=i)}return null==t?"":t.color||""}(e);return wg("div",{style:u},wg("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),wg("span",null,t))}},DJ=function(e,t){return DJ=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])},DJ(e,t)
67
+ /*! *****************************************************************************
68
+ Copyright (c) Microsoft Corporation.
69
+
70
+ Permission to use, copy, modify, and/or distribute this software for any
71
+ purpose with or without fee is hereby granted.
72
+
73
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
74
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
75
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
76
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
77
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
78
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
79
+ PERFORMANCE OF THIS SOFTWARE.
80
+ ***************************************************************************** */};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}DJ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function AJ(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 kJ(e){return kf.nodes(e,{at:e.selection||void 0,match:function(t){return 1===kO.findPath(e,t).length}})}var BJ=eY.includes;fX({target:"Array",proto:!0},{includes:function(e){return BJ(this,e,arguments.length>1?arguments[1]:void 0)}}),bY("includes");var FJ,TJ,_J=function(){var e=xK(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")})),NJ=jJ||PG((function(){return!PJ("a","y").sticky})),IJ={BROKEN_CARET:jJ||PG((function(){var e=PJ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:NJ,UNSUPPORTED_Y:jJ},LJ=OG.RegExp,RJ=PG((function(){var e=LJ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),MJ=OG.RegExp,zJ=PG((function(){var e=MJ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),$J=zY.get,HJ=qG("native-string-replace",String.prototype.replace),VJ=RegExp.prototype.exec,UJ=VJ,WJ=_G("".charAt),qJ=_G("".indexOf),GJ=_G("".replace),KJ=_G("".slice),YJ=(TJ=/b*/g,kK(VJ,FJ=/a/,"a"),kK(VJ,TJ,"a"),0!==FJ.lastIndex||0!==TJ.lastIndex),XJ=IJ.BROKEN_CARET,ZJ=void 0!==/()??/.exec("")[1];(YJ||ZJ||XJ||RJ||zJ)&&(UJ=function(e){var t,n,r,o,i,a,u,s=this,l=$J(s),c=GX(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=kK(UJ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=XJ&&s.sticky,h=kK(_J,s),g=s.source,v=0,y=c;if(p&&(h=GJ(h,"y",""),-1===qJ(h,"g")&&(h+="g"),y=KJ(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==WJ(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),ZJ&&(n=new RegExp("^"+g+"$(?!\\s)",h)),YJ&&(r=s.lastIndex),o=kK(VJ,p?n:s,y),p?o?(o.input=KJ(o.input,v),o[0]=KJ(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:YJ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),ZJ&&o&&o.length>1&&kK(HJ,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=vY(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var JJ=UJ;fX({target:"RegExp",proto:!0,forced:/./.exec!==JJ},{exec:JJ});var QJ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return kO.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||!!kO.getSelectedElems(e).some((function(t){if(kf.isVoid(e,t)&&kf.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)?vd.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):vd.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),eQ='<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>',tQ='<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>',nQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=hP("listModule.unOrderedList"),t.iconSvg=eQ,t}return CJ(t,e),t}(QJ),rQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=hP("listModule.orderedList"),t.iconSvg=tQ,t}return CJ(t,e),t}(QJ),oQ={key:"bulletedList",factory:function(){return new nQ}},iQ={key:"numberedList",factory:function(){return new rQ}},aQ=[],uQ={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=EJ.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=kO.findPath(t,e);if(0===s[0])return u+1;var l=Lf.previous(s),c=kf.node(t,l);if(!c)return 0;var f=OJ(c,1)[0];if(kO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",aQ.push(i);var s=function(e){var t=EJ.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=kO.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=Lf.next(s),c=kf.node(t,l);if(!c)return 0;var f=OJ(c,1)[0];if(kO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+aQ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},sQ=yK("species"),lQ=WZ.filter,cQ=cK>=51||!PG((function(){var e=[];return(e.constructor={})[sQ]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));fX({target:"Array",proto:!0,forced:!cQ},{filter:function(e){return lQ(this,e,arguments.length>1?arguments[1]:void 0)}});var fQ=Function.prototype,dQ=fQ.apply,pQ=fQ.bind,hQ=fQ.call,gQ="object"==typeof Reflect&&Reflect.apply||(pQ?hQ.bind(dQ):function(){return hQ.apply(dQ,arguments)}),vQ=(yK("species"),RegExp.prototype),yQ=JX.charAt,mQ=function(e,t,n){return t+(n?yQ(e,t).length:1)},bQ=Math.floor,wQ=_G("".charAt),xQ=_G("".replace),EQ=_G("".slice),SQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,DQ=/\$([$&'`]|\d{1,2})/g,CQ=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=DQ;return void 0!==o&&(o=KG(o),s=SQ),xQ(i,s,(function(i,s){var l;switch(wQ(s,0)){case"$":return"$";case"&":return e;case"`":return EQ(t,0,n);case"'":return EQ(t,a);case"<":l=o[EQ(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=bQ(c/10);return 0===f?i:f<=u?void 0===r[f-1]?wQ(s,1):r[f-1]+wQ(s,1):i}l=r[c-1]}return void 0===l?"":l}))},AQ=OG.TypeError,OQ=function(e,t){var n=e.exec;if(tK(n)){var r=kK(n,e,t);return null!==r&&xK(r),r}if("RegExp"===IG(e))return kK(JJ,e,t);throw AQ("RegExp#exec called on incompatible receiver")},kQ=yK("replace"),BQ=Math.max,FQ=Math.min,TQ=_G([].concat),_Q=_G([].push),PQ=_G("".indexOf),jQ=_G("".slice),NQ="$0"==="a".replace(/./,"$0"),IQ=!!/./[kQ]&&""===/./[kQ]("a","$0");!function(e,t,n,r){var o=yK(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=_G(/./[o]),s=function(e,t,n){var r=IQ?"$":"$0";return[function(e,n){var r=$G(this),o=null==e?void 0:IK(e,kQ);return o?kK(o,e,r,n):kK(t,GX(r),e,n)},function(e,o){var i=xK(this),a=GX(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=tK(o);s||(o=GX(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=OQ(i,a);if(null===d)break;if(_Q(f,d),!l)break;""===GX(d[0])&&(i.lastIndex=mQ(a,ZK(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=GX((d=f[v])[0]),m=BQ(FQ(qK(d.index),a.length),0),b=[],w=1;w<d.length;w++)_Q(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=TQ([y],b,m,a);void 0!==x&&_Q(E,x);var S=GX(gQ(o,void 0,E))}else S=CQ(y,a,m,b,x,o);m>=g&&(h+=jQ(a,g,m)+S,g=m+y.length)}return h+jQ(a,g)}]}(0,""[e],(function(e,t,n,r,o){var a=_G(e),s=t.exec;return s===JJ||s===vQ.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));XY(String.prototype,e,s[0]),XY(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>")}))||!NQ||IQ);var LQ=OG.TypeError,RQ=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&hZ(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&TZ(s))l=JK(s),c=RQ(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw LQ("Exceed the acceptable array length");e[c]=s}c++}f++}return c},MQ=RQ;function zQ(e){return e.length?e[0].tagName.toLowerCase():""}fX({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=KG(this),n=JK(t),r=HZ(t,0);return r.length=MQ(r,t,t,n,0,void 0===e?1:qK(e)),r}}),bY("flat"),fX({global:!0},{globalThis:OG}),Jp&&(Tp.fn.append=Jp),Np&&(Tp.fn.attr=Np),eh&&(Tp.fn.parent=eh);var $Q={renderElems:[SJ],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(Wf.isExpanded(n))t(e);else{var r=kO.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?vd.setNodes(o,{level:a-1}):vd.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(Wf.isCollapsed(a)){var u=kO.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void vd.setNodes(o,{level:l+1})}}if(Wf.isExpanded(a)){var c=0,f=!1;try{for(var d=AJ(kJ(o)),p=d.next();!p.done;p=d.next()){var h=OJ(p.value,1)[0];"list-item"===kO.getNodeType(h)?c++:f=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var g=AJ(kJ(o)),v=g.next();!v.done;v=g.next()){var y=OJ(v.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,vd.setNodes(o,{level:l+1},{at:m})}}catch(e){r={error:e}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}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=kO.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||vd.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[oQ,iQ],elemsToHtml:[uQ],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=Tp(e);0===(t=t.filter((function(e){return!!Jf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===zQ(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=zQ(n);"ul"===r||"ol"===r;)r=zQ(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},HQ=i((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",l="[object Error]",c="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",g="[object RegExp]",v="[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[l]=S[c]=S[f]=S[d]=S[p]=S[g]=S[v]=S[y]=S[m]=!1;var D="object"==typeof o&&o&&o.Object===Object&&o,C="object"==typeof self&&self&&self.Object===Object&&self,A=D||C||Function("return this")(),O=t&&!t.nodeType&&t,k=O&&e&&!e.nodeType&&e,B=k&&k.exports===O,F=B&&D.process,T=function(){try{return F&&F.binding&&F.binding("util")}catch(e){}}(),_=T&&T.isTypedArray;function P(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 j(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 I=Array.prototype,L=Function.prototype,R=Object.prototype,M=A["__core-js_shared__"],z=L.toString,$=R.hasOwnProperty,H=function(){var e=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),V=R.toString,U=RegExp("^"+z.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=B?A.Buffer:void 0,q=A.Symbol,G=A.Uint8Array,K=R.propertyIsEnumerable,Y=I.splice,X=q?q.toStringTag:void 0,Z=Object.getOwnPropertySymbols,J=W?W.isBuffer:void 0,Q=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ee=Ce(A,"DataView"),te=Ce(A,"Map"),ne=Ce(A,"Promise"),re=Ce(A,"Set"),oe=Ce(A,"WeakMap"),ie=Ce(Object,"create"),ae=Be(ee),ue=Be(te),se=Be(ne),le=Be(re),ce=Be(oe),fe=q?q.prototype:void 0,de=fe?fe.valueOf:void 0;function pe(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 ge(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.__data__=new ge;++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(Fe(e[n][0],t))return n;return-1}function be(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=$.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(e){}var o=V.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):function(e){return V.call(e)}(e)}function we(e){return Le(e)&&be(e)==i}function xe(e,t,n,r,o){return e===t||(null==e||null==t||!Le(e)&&!Le(t)?e!=e&&t!=t:function(e,t,n,r,o,c){var h=_e(e),m=_e(t),x=h?a:Oe(e),E=m?a:Oe(t),S=(x=x==i?p:x)==p,D=(E=E==i?p:E)==p,C=x==E;if(C&&Pe(e)){if(!Pe(t))return!1;h=!0,S=!1}if(C&&!S)return c||(c=new ye),h||Re(e)?Ee(e,t,n,r,o,c):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 d:return Fe(+e,+t);case l:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case f:var c=j;case v:var p=1&r;if(c||(c=N),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var m=Ee(c(e),c(t),r,o,i,a);return a.delete(e),m;case"[object Symbol]":if(de)return de.call(e)==de.call(t)}return!1}(e,t,x,n,r,o,c);if(!(1&n)){var A=S&&$.call(e,"__wrapped__"),O=D&&$.call(t,"__wrapped__");if(A||O){var k=A?e.value():e,B=O?t.value():t;return c||(c=new ye),o(k,B,n,r,c)}}return!!C&&(c||(c=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 l=s;l--;){var c=u[l];if(!(a?c in t:$.call(t,c)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++l<s;){var h=e[c=u[l]],g=t[c];if(r)var v=a?r(g,h,c,t,e,i):r(h,g,c,e,t,i);if(!(void 0===v?h===g||o(h,g,n,r,i):v)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){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||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,o,c))}(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 l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new ve:void 0;for(i.set(e,t),i.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var g=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!P(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,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 _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,Me,Ae)}function De(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 Ce(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ie(e)||function(e){return!!H&&H in e}(e))&&(je(e)?U:x).test(Be(e))}(n)?n:void 0}pe.prototype.clear=function(){this.__data__=ie?ie(null):{},this.size=0},pe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pe.prototype.get=function(e){var t=this.__data__;if(ie){var r=t[e];return r===n?void 0:r}return $.call(t,e)?t[e]:void 0},pe.prototype.has=function(e){var t=this.__data__;return ie?void 0!==t[e]:$.call(t,e)},pe.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():Y.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},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new pe,map:new(te||he),string:new pe}},ge.prototype.delete=function(e){var t=De(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return De(this,e).get(e)},ge.prototype.has=function(e){return De(this,e).has(e)},ge.prototype.set=function(e,t){var n=De(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ve.prototype.add=ve.prototype.push=function(e){return this.__data__.set(e,n),this},ve.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 ge(r)}return n.set(e,t),this.size=n.size,this};var Ae=Z?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}(Z(e),(function(t){return K.call(e,t)})))}:function(){return[]},Oe=be;function ke(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||E.test(e))&&e>-1&&e%1==0&&e<t}function Be(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fe(e,t){return e===t||e!=e&&t!=t}(ee&&Oe(new ee(new ArrayBuffer(1)))!=w||te&&Oe(new te)!=f||ne&&Oe(ne.resolve())!=h||re&&Oe(new re)!=v||oe&&Oe(new oe)!=m)&&(Oe=function(e){var t=be(e),n=t==p?e.constructor:void 0,r=n?Be(n):"";if(r)switch(r){case ae:return w;case ue:return f;case se:return h;case le:return v;case ce:return m}return t});var Te=we(function(){return arguments}())?we:function(e){return Le(e)&&$.call(e,"callee")&&!K.call(e,"callee")},_e=Array.isArray,Pe=J||function(){return!1};function je(e){if(!Ie(e))return!1;var t=be(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ne(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Le(e){return null!=e&&"object"==typeof e}var Re=_?function(e){return function(t){return e(t)}}(_):function(e){return Le(e)&&Ne(e.length)&&!!S[be(e)]};function Me(e){return null!=(t=e)&&Ne(t.length)&&!je(t)?function(e,t){var n=_e(e),r=!n&&Te(e),o=!n&&!r&&Pe(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 l in e)!t&&!$.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ke(l,s))||u.push(l);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))$.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return xe(e,t)}}));pP("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"}}),pP("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var VQ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==u.g?u.g:"undefined"!=typeof self?self:{};function UQ(e){var t={exports:{}};return e(t,t.exports),t.exports}var WQ,qQ,GQ=function(e){return e&&e.Math==Math&&e},KQ=GQ("object"==typeof globalThis&&globalThis)||GQ("object"==typeof window&&window)||GQ("object"==typeof self&&self)||GQ("object"==typeof VQ&&VQ)||function(){return this}()||Function("return this")(),YQ=function(e){try{return!!e()}catch(e){return!0}},XQ=!YQ((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ZQ=Function.prototype.call,JQ=ZQ.bind?ZQ.bind(ZQ):function(){return ZQ.apply(ZQ,arguments)},QQ={}.propertyIsEnumerable,e0=Object.getOwnPropertyDescriptor,t0={f:e0&&!QQ.call({1:2},1)?function(e){var t=e0(this,e);return!!t&&t.enumerable}:QQ},n0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},r0=Function.prototype,o0=r0.bind,i0=r0.call,a0=o0&&o0.bind(i0),u0=o0?function(e){return e&&a0(i0,e)}:function(e){return e&&function(){return i0.apply(e,arguments)}},s0=u0({}.toString),l0=u0("".slice),c0=function(e){return l0(s0(e),8,-1)},f0=KQ.Object,d0=u0("".split),p0=YQ((function(){return!f0("z").propertyIsEnumerable(0)}))?function(e){return"String"==c0(e)?d0(e,""):f0(e)}:f0,h0=KQ.TypeError,g0=function(e){if(null==e)throw h0("Can't call method on "+e);return e},v0=function(e){return p0(g0(e))},y0=function(e){return"function"==typeof e},m0=function(e){return"object"==typeof e?null!==e:y0(e)},b0=function(e){return y0(e)?e:void 0},w0=function(e,t){return arguments.length<2?b0(KQ[e]):KQ[e]&&KQ[e][t]},x0=u0({}.isPrototypeOf),E0=w0("navigator","userAgent")||"",S0=KQ.process,D0=KQ.Deno,C0=S0&&S0.versions||D0&&D0.version,A0=C0&&C0.v8;A0&&(qQ=(WQ=A0.split("."))[0]>0&&WQ[0]<4?1:+(WQ[0]+WQ[1])),!qQ&&E0&&(!(WQ=E0.match(/Edge\/(\d+)/))||WQ[1]>=74)&&(WQ=E0.match(/Chrome\/(\d+)/))&&(qQ=+WQ[1]);var O0=qQ,k0=!!Object.getOwnPropertySymbols&&!YQ((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&O0&&O0<41})),B0=k0&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,F0=KQ.Object,T0=B0?function(e){return"symbol"==typeof e}:function(e){var t=w0("Symbol");return y0(t)&&x0(t.prototype,F0(e))},_0=KQ.String,P0=function(e){try{return _0(e)}catch(e){return"Object"}},j0=KQ.TypeError,N0=function(e){if(y0(e))return e;throw j0(P0(e)+" is not a function")},I0=function(e,t){var n=e[t];return null==n?void 0:N0(n)},L0=KQ.TypeError,R0=Object.defineProperty,M0=function(e,t){try{R0(KQ,e,{value:t,configurable:!0,writable:!0})}catch(n){KQ[e]=t}return t},z0=KQ["__core-js_shared__"]||M0("__core-js_shared__",{}),$0=UQ((function(e){(e.exports=function(e,t){return z0[e]||(z0[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),H0=KQ.Object,V0=function(e){return H0(g0(e))},U0=u0({}.hasOwnProperty),W0=Object.hasOwn||function(e,t){return U0(V0(e),t)},q0=0,G0=Math.random(),K0=u0(1..toString),Y0=function(e){return"Symbol("+(void 0===e?"":e)+")_"+K0(++q0+G0,36)},X0=$0("wks"),Z0=KQ.Symbol,J0=Z0&&Z0.for,Q0=B0?Z0:Z0&&Z0.withoutSetter||Y0,e1=function(e){if(!W0(X0,e)||!k0&&"string"!=typeof X0[e]){var t="Symbol."+e;k0&&W0(Z0,e)?X0[e]=Z0[e]:X0[e]=B0&&J0?J0(t):Q0(t)}return X0[e]},t1=KQ.TypeError,n1=e1("toPrimitive"),r1=function(e){var t=function(e,t){if(!m0(e)||T0(e))return e;var n,r=I0(e,n1);if(r){if(void 0===t&&(t="default"),n=JQ(r,e,t),!m0(n)||T0(n))return n;throw t1("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&y0(n=e.toString)&&!m0(r=JQ(n,e)))return r;if(y0(n=e.valueOf)&&!m0(r=JQ(n,e)))return r;if("string"!==t&&y0(n=e.toString)&&!m0(r=JQ(n,e)))return r;throw L0("Can't convert object to primitive value")}(e,t)}(e,"string");return T0(t)?t:t+""},o1=KQ.document,i1=m0(o1)&&m0(o1.createElement),a1=function(e){return i1?o1.createElement(e):{}},u1=!XQ&&!YQ((function(){return 7!=Object.defineProperty(a1("div"),"a",{get:function(){return 7}}).a})),s1=Object.getOwnPropertyDescriptor,l1={f:XQ?s1:function(e,t){if(e=v0(e),t=r1(t),u1)try{return s1(e,t)}catch(e){}if(W0(e,t))return n0(!JQ(t0.f,e,t),e[t])}},c1=KQ.String,f1=KQ.TypeError,d1=function(e){if(m0(e))return e;throw f1(c1(e)+" is not an object")},p1=KQ.TypeError,h1=Object.defineProperty,g1={f:XQ?h1:function(e,t,n){if(d1(e),t=r1(t),d1(n),u1)try{return h1(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=XQ?function(e,t,n){return g1.f(e,t,n0(1,n))}:function(e,t,n){return e[t]=n,e},y1=u0(Function.toString);y0(z0.inspectSource)||(z0.inspectSource=function(e){return y1(e)});var m1,b1,w1,x1=z0.inspectSource,E1=KQ.WeakMap,S1=y0(E1)&&/native code/.test(x1(E1)),D1=$0("keys"),C1=function(e){return D1[e]||(D1[e]=Y0(e))},A1={},O1=KQ.TypeError,k1=KQ.WeakMap;if(S1||z0.state){var B1=z0.state||(z0.state=new k1),F1=u0(B1.get),T1=u0(B1.has),_1=u0(B1.set);m1=function(e,t){if(T1(B1,e))throw new O1("Object already initialized");return t.facade=e,_1(B1,e,t),t},b1=function(e){return F1(B1,e)||{}},w1=function(e){return T1(B1,e)}}else{var P1=C1("state");A1[P1]=!0,m1=function(e,t){if(W0(e,P1))throw new O1("Object already initialized");return t.facade=e,v1(e,P1,t),t},b1=function(e){return W0(e,P1)?e[P1]:{}},w1=function(e){return W0(e,P1)}}var j1={set:m1,get:b1,has:w1,enforce:function(e){return w1(e)?b1(e):m1(e,{})},getterFor:function(e){return function(t){var n;if(!m0(t)||(n=b1(t)).type!==e)throw O1("Incompatible receiver, "+e+" required");return n}}},N1=Function.prototype,I1=XQ&&Object.getOwnPropertyDescriptor,L1=W0(N1,"name"),R1={EXISTS:L1,PROPER:L1&&"something"===function(){}.name,CONFIGURABLE:L1&&(!XQ||XQ&&I1(N1,"name").configurable)},M1=UQ((function(e){var t=R1.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,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;y0(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!W0(i,"name")||t&&i.name!==f)&&v1(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==KQ?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:v1(e,n,i)):l?e[n]=i:M0(n,i)})(Function.prototype,"toString",(function(){return y0(this)&&n(this).source||x1(this)}))})),z1=Math.ceil,$1=Math.floor,H1=function(e){var t=+e;return t!=t||0===t?0:(t>0?$1:z1)(t)},V1=Math.max,U1=Math.min,W1=function(e,t){var n=H1(e);return n<0?V1(n+t,0):U1(n,t)},q1=Math.min,G1=function(e){return e>0?q1(H1(e),9007199254740991):0},K1=function(e){return G1(e.length)},Y1=function(e){return function(t,n,r){var o,i=v0(t),a=K1(i),u=W1(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}},X1=(Y1(!0),Y1(!1)),Z1=u0([].push),J1=function(e,t){var n,r=v0(e),o=0,i=[];for(n in r)!W0(A1,n)&&W0(r,n)&&Z1(i,n);for(;t.length>o;)W0(r,n=t[o++])&&(~X1(i,n)||Z1(i,n));return i},Q1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],e2=Q1.concat("length","prototype"),t2={f:Object.getOwnPropertyNames||function(e){return J1(e,e2)}},n2={f:Object.getOwnPropertySymbols},r2=u0([].concat),o2=w0("Reflect","ownKeys")||function(e){var t=t2.f(d1(e)),n=n2.f;return n?r2(t,n(e)):t},i2=function(e,t){for(var n=o2(t),r=g1.f,o=l1.f,i=0;i<n.length;i++){var a=n[i];W0(e,a)||r(e,a,o(t,a))}},a2=/#|\.prototype\./,u2=function(e,t){var n=l2[s2(e)];return n==f2||n!=c2&&(y0(t)?YQ(t):!!t)},s2=u2.normalize=function(e){return String(e).replace(a2,".").toLowerCase()},l2=u2.data={},c2=u2.NATIVE="N",f2=u2.POLYFILL="P",d2=u2,p2=l1.f,h2=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?KQ:l?KQ[u]||M0(u,{}):(KQ[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=p2(n,r))&&a.value:n[r],!d2(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;i2(i,o)}(e.sham||o&&o.sham)&&v1(i,"sham",!0),M1(n,r,i,e)}},g2={};g2[e1("toStringTag")]="z";var v2="[object z]"===String(g2),y2=e1("toStringTag"),m2=KQ.Object,b2="Arguments"==c0(function(){return arguments}()),w2=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=m2(e),y2))?n:b2?c0(t):"Object"==(r=c0(t))&&y0(t.callee)?"Arguments":r},x2=KQ.String,E2=function(e){if("Symbol"===w2(e))throw TypeError("Cannot convert a Symbol value to a string");return x2(e)},S2=/"/g,D2=u0("".replace);h2({target:"String",proto:!0,forced:YQ((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=E2(g0(this)),r="<a",(r+=' name="'+D2(E2(t),S2,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var C2,A2=function(){var e=d1(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=KQ.RegExp,k2=YQ((function(){var e=O2("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),B2=k2||YQ((function(){return!O2("a","y").sticky})),F2={BROKEN_CARET:k2||YQ((function(){var e=O2("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:B2,UNSUPPORTED_Y:k2},T2=Object.keys||function(e){return J1(e,Q1)},_2=XQ?Object.defineProperties:function(e,t){d1(e);for(var n,r=v0(t),o=T2(t),i=o.length,a=0;i>a;)g1.f(e,n=o[a++],r[n]);return e},P2=w0("document","documentElement"),j2=C1("IE_PROTO"),N2=function(){},I2=function(e){return"<script>"+e+"<\/script>"},L2=function(e){e.write(I2("")),e.close();var t=e.parentWindow.Object;return e=null,t},R2=function(){try{C2=new ActiveXObject("htmlfile")}catch(e){}var e,t;R2="undefined"!=typeof document?document.domain&&C2?L2(C2):((t=a1("iframe")).style.display="none",P2.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(I2("document.F=Object")),e.close(),e.F):L2(C2);for(var n=Q1.length;n--;)delete R2.prototype[Q1[n]];return R2()};A1[j2]=!0;var M2,z2,$2=Object.create||function(e,t){var n;return null!==e?(N2.prototype=d1(e),n=new N2,N2.prototype=null,n[j2]=e):n=R2(),void 0===t?n:_2(n,t)},H2=KQ.RegExp,V2=YQ((function(){var e=H2(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),U2=KQ.RegExp,W2=YQ((function(){var e=U2("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),q2=j1.get,G2=$0("native-string-replace",String.prototype.replace),K2=RegExp.prototype.exec,Y2=K2,X2=u0("".charAt),Z2=u0("".indexOf),J2=u0("".replace),Q2=u0("".slice),e4=(z2=/b*/g,JQ(K2,M2=/a/,"a"),JQ(K2,z2,"a"),0!==M2.lastIndex||0!==z2.lastIndex),t4=F2.BROKEN_CARET,n4=void 0!==/()??/.exec("")[1];(e4||n4||t4||V2||W2)&&(Y2=function(e){var t,n,r,o,i,a,u,s=this,l=q2(s),c=E2(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=JQ(Y2,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=t4&&s.sticky,h=JQ(A2,s),g=s.source,v=0,y=c;if(p&&(h=J2(h,"y",""),-1===Z2(h,"g")&&(h+="g"),y=Q2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==X2(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),n4&&(n=new RegExp("^"+g+"$(?!\\s)",h)),e4&&(r=s.lastIndex),o=JQ(K2,p?n:s,y),p?o?(o.input=Q2(o.input,v),o[0]=Q2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:e4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),n4&&o&&o.length>1&&JQ(G2,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=$2(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var r4=Y2;h2({target:"RegExp",proto:!0,forced:/./.exec!==r4},{exec:r4});var o4=Array.isArray||function(e){return"Array"==c0(e)},i4=function(){},a4=[],u4=w0("Reflect","construct"),s4=/^\s*(?:class|function)\b/,l4=u0(s4.exec),c4=!s4.exec(i4),f4=function(e){if(!y0(e))return!1;try{return u4(i4,a4,e),!0}catch(e){return!1}},d4=!u4||YQ((function(){var e;return f4(f4.call)||!f4(Object)||!f4((function(){e=!0}))||e}))?function(e){if(!y0(e))return!1;switch(w2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return c4||!!l4(s4,x1(e))}:f4,p4=function(e,t,n){var r=r1(t);r in e?g1.f(e,r,n0(0,n)):e[r]=n},h4=e1("species"),g4=function(e){return O0>=51||!YQ((function(){var t=[];return(t.constructor={})[h4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},v4=u0([].slice),y4=g4("slice"),m4=e1("species"),b4=KQ.Array,w4=Math.max;function x4(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 E4(e){var t=e.selection;if(null==t)return!1;var n=x4(kf.nodes(e,{match:function(e){return kO.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=x4(n,2)[1],o=kf.start(e,r);if($f.equals(t.anchor,o))return!0}return!1}function S4(e,t){var n,r,o=kf.nodes(e,{at:t,match:function(e){return"table"===kO.getNodeType(e)}}),i=!1;try{for(var a=
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
+ ***************************************************************************** */
95
+ 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}h2({target:"Array",proto:!0,forced:!y4},{slice:function(e,t){var n,r,o,i=v0(this),a=K1(i),u=W1(e,a),s=W1(void 0===t?a:t,a);if(o4(i)&&(n=i.constructor,(d4(n)&&(n===b4||o4(n.prototype))||m0(n)&&null===(n=n[m4]))&&(n=void 0),n===b4||void 0===n))return v4(i,u,s);for(r=new(void 0===n?b4:n)(w4(s-u,0)),o=0;u<s;u++,o++)u in i&&p4(r,o,i[u]);return r.length=o,r}});var D4=u0(u0.bind),C4=e1("species"),A4=KQ.Array,O4=function(e,t){return new(function(e){var t;return o4(e)&&(t=e.constructor,(d4(t)&&(t===A4||o4(t.prototype))||m0(t)&&null===(t=t[C4]))&&(t=void 0)),void 0===t?A4:t}(e))(0===t?0:t)},k4=u0([].push),B4=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,l,c,f){for(var d,p,h=V0(s),g=p0(h),v=function(e,t){return N0(e),void 0===t?e:D4?D4(e,t):function(){return e.apply(t,arguments)}}(l,c),y=K1(g),m=0,b=f||O4,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:k4(w,d)}else switch(e){case 4:return!1;case 7:k4(w,d)}return i?-1:r||o?o:w}},F4={forEach:B4(0),map:B4(1),filter:B4(2),some:B4(3),every:B4(4),find:B4(5),findIndex:B4(6),filterReject:B4(7)},T4=F4.map;h2({target:"Array",proto:!0,forced:!g4("map")},{map:function(e){return T4(this,e,arguments.length>1?arguments[1]:void 0)}});var _4=v2?{}.toString:function(){return"[object "+w2(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||M1(Object.prototype,"toString",_4,{unsafe:!0});var N4=R1.PROPER,I4=RegExp.prototype,L4=I4.toString,R4=u0(A2),M4=YQ((function(){return"/a/b"!=L4.call({source:"a",flags:"b"})})),z4=N4&&"toString"!=L4.name;(M4||z4)&&M1(RegExp.prototype,"toString",(function(){var e=d1(this),t=E2(e.source),n=e.flags;return"/"+t+"/"+E2(void 0===n&&x0(I4,e)&&!("flags"in I4)?R4(e):n)}),{unsafe:!0});var $4=e1("unscopables"),H4=Array.prototype;null==H4[$4]&&g1.f(H4,$4,{configurable:!0,value:$2(null)});var V4=F4.find,U4=!0;"find"in[]&&Array(1).find((function(){U4=!1})),h2({target:"Array",proto:!0,forced:U4},{find:function(e){return V4(this,e,arguments.length>1?arguments[1]:void 0)}}),H4[$4].find=!0;var W4=Function.prototype,q4=W4.apply,G4=W4.bind,K4=W4.call,Y4="object"==typeof Reflect&&Reflect.apply||(G4?K4.bind(q4):function(){return K4.apply(q4,arguments)}),X4=e1("species"),Z4=RegExp.prototype,J4=function(e,t,n,r){var o=e1(e),i=!YQ((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!YQ((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[X4]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=u0(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=u0(e),s=t.exec;return s===r4||s===Z4.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));M1(String.prototype,e,s[0]),M1(Z4,o,s[1])}r&&v1(Z4[o],"sham",!0)},Q4=e1("match"),e6=KQ.TypeError,t6=e1("species"),n6=u0("".charAt),r6=u0("".charCodeAt),o6=u0("".slice),i6=function(e){return function(t,n){var r,o,i=E2(g0(t)),a=H1(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=r6(i,a))<55296||r>56319||a+1===u||(o=r6(i,a+1))<56320||o>57343?e?n6(i,a):r:e?o6(i,a,a+2):o-56320+(r-55296<<10)+65536}},a6=(i6(!1),i6(!0)),u6=function(e,t,n){return t+(n?a6(e,t).length:1)},s6=KQ.Array,l6=Math.max,c6=function(e,t,n){for(var r=K1(e),o=W1(t,r),i=W1(void 0===n?r:n,r),a=s6(l6(i-o,0)),u=0;o<i;o++,u++)p4(a,u,e[o]);return a.length=u,a},f6=KQ.TypeError,d6=function(e,t){var n=e.exec;if(y0(n)){var r=JQ(n,e,t);return null!==r&&d1(r),r}if("RegExp"===c0(e))return JQ(r4,e,t);throw f6("RegExp#exec called on incompatible receiver")},p6=F2.UNSUPPORTED_Y,h6=Math.min,g6=[].push,v6=u0(/./.exec),y6=u0(g6),m6=u0("".slice);J4("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=E2(g0(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!m0(r=e)||!(void 0!==(o=r[Q4])?o:"RegExp"==c0(r)))return JQ(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=JQ(r4,p,i))&&!((s=p.lastIndex)>d&&(y6(c,m6(i,d,u.index)),u.length>1&&u.index<i.length&&Y4(g6,c,c6(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&v6(p,"")||y6(c,""):y6(c,m6(i,d)),c.length>a?c6(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:JQ(t,this,e,n)}:t,[function(t,n){var o=g0(this),i=null==t?void 0:I0(t,e);return i?JQ(i,t,o,n):JQ(r,E2(o),t,n)},function(e,o){var i=d1(this),a=E2(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=d1(e).constructor;return void 0===r||null==(n=d1(r)[t6])?t:function(e){if(d4(e))return e;throw e6(P0(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(p6?"g":"y"),f=new s(p6?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===d6(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=p6?0:h;var v,y=d6(f,p6?m6(a,h):a);if(null===y||(v=h6(G1(f.lastIndex+(p6?h:0)),a.length))===p)h=u6(a,h,l);else{if(y6(g,m6(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(y6(g,y[m]),g.length===d)return g;h=p=v}}return y6(g,m6(a,p)),g}]}),!!YQ((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]})),p6);var b6="\t\n\v\f\r                 \u2028\u2029\ufeff",w6=u0("".replace),x6="["+b6+"]",E6=RegExp("^"+x6+x6+"*"),S6=RegExp(x6+x6+"*$"),D6=function(e){return function(t){var n=E2(g0(t));return 1&e&&(n=w6(n,E6,"")),2&e&&(n=w6(n,S6,"")),n}},C6={start:D6(1),end:D6(2),trim:D6(3)},A6=R1.PROPER,O6=C6.trim;function k6(e){return e.length?e[0].tagName.toLowerCase():""}h2({target:"String",proto:!0,forced:function(e){return YQ((function(){return!!b6[e]()||"​…᠎"!=="​…᠎"[e]()||A6&&b6[e].name!==e}))}("trim")},{trim:function(){return O6(this)}}),h2({global:!0},{globalThis:KQ}),Jp&&(Tp.fn.append=Jp),Mp&&(Tp.fn.on=Mp),lh&&(Tp.fn.focus=lh),Np&&(Tp.fn.attr=Np),Rp&&(Tp.fn.val=Rp),Yp&&(Tp.fn.html=Yp),Lp&&(Tp.fn.dataset=Lp),_p&&(Tp.fn.addClass=_p),Pp&&(Tp.fn.removeClass=Pp),rh&&(Tp.fn.children=rh),Gp&&(Tp.fn.each=Gp),nh&&(Tp.fn.find=nh);var B6=!1,F6=0,T6=0,_6=null,P6=null,j6=Tp("body");function N6(e){B6=!1,P6=null,_6=null,j6.off("mousemove",I6),j6.off("mouseup",N6)}j6.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(),B6=!0;var n=e.clientX;F6=n;var r=t.getBoundingClientRect().width;T6=r,j6.on("mousemove",I6),j6.on("mouseup",N6)}}));var I6=$h((function(e){if(B6&&null!=P6&&null!=_6){e.preventDefault();var t=e.clientX,n=T6+(t-F6);(n=Math.floor(100*n)/100)<30&&(n=30),vd.setNodes(P6,{width:n.toString()},{at:_6})}}),100),L6={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(Wf.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=kO.findPath(e,t),a=kf.start(e,i),u=kf.end(e,i),s=$f.compare(r,u)<=0&&$f.compare(r,a)>=0,l=$f.compare(o,u)<=0&&$f.compare(o,a)>=0;return!!(s&&l&&Lf.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o,a=wg("div",{className:"table-container","data-selected":kO.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=kO.findPath(n,e),o=kf.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},wg("table",{width:i,contentEditable:r},wg("colgroup",null,P4(e).map((function(e){var t=e.width;return wg("col",{width:void 0===t?"auto":t})}))),wg("tbody",null,t)));return a}},R6={type:"table-row",renderElem:function(e,t,n){return wg("tr",null,t)}},M6={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=kO.getParentNode(e,t);if(null==n)return!1;var r=kO.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,l=o.isHeader,c=void 0!==l&&l;if(!r)return wg("td",{colSpan:a,rowSpan:s},t);var f=wg(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:$h((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,l=t.clientX,c=t.clientY;B6||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",P6=n,_6=kO.findPath(n,e)):B6||(r.style.cursor="auto",P6=null,_6=null))}}),100)}},t);return f}},z6={selector:"table",preParseHtml:function(e){var t=Tp(e);if("table"!==k6(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]}},$6=F4.filter;h2({target:"Array",proto:!0,forced:!g4("filter")},{filter:function(e){return $6(this,e,arguments.length>1?arguments[1]:void 0)}});var H6=Math.floor,V6=u0("".charAt),U6=u0("".replace),W6=u0("".slice),q6=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,G6=/\$([$&'`]|\d{1,2})/g,K6=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=G6;return void 0!==o&&(o=V0(o),s=q6),U6(i,s,(function(i,s){var l;switch(V6(s,0)){case"$":return"$";case"&":return e;case"`":return W6(t,0,n);case"'":return W6(t,a);case"<":l=o[W6(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=H6(c/10);return 0===f?i:f<=u?void 0===r[f-1]?V6(s,1):r[f-1]+V6(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Y6=e1("replace"),X6=Math.max,Z6=Math.min,J6=u0([].concat),Q6=u0([].push),e3=u0("".indexOf),t3=u0("".slice),n3="$0"==="a".replace(/./,"$0"),r3=!!/./[Y6]&&""===/./[Y6]("a","$0");J4("replace",(function(e,t,n){var r=r3?"$":"$0";return[function(e,n){var r=g0(this),o=null==e?void 0:I0(e,Y6);return o?JQ(o,e,r,n):JQ(t,E2(r),e,n)},function(e,o){var i=d1(this),a=E2(e);if("string"==typeof o&&-1===e3(o,r)&&-1===e3(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=y0(o);s||(o=E2(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=d6(i,a);if(null===d)break;if(Q6(f,d),!l)break;""===E2(d[0])&&(i.lastIndex=u6(a,G1(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=E2((d=f[v])[0]),m=X6(Z6(H1(d.index),a.length),0),b=[],w=1;w<d.length;w++)Q6(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=J6([y],b,m,a);void 0!==x&&Q6(E,x);var S=E2(Y4(o,void 0,E))}else S=K6(y,a,m,b,x,o);m>=g&&(h+=t3(a,g,m)+S,g=m+y.length)}return h+t3(a,g)}]}),!!YQ((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!n3||r3);var o3={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Tp(e);0===(t=t.filter((function(e){return!!Jf.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"===k6(r),colSpan:o,rowSpan:i,width:a,children:t}}},i3={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===kO.getNodeType(e)}))}}},a3={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Tp(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"===kO.getNodeType(e)}))}}},u3=function(){function e(){this.title=hP("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||!Wf.isCollapsed(t)||!!kO.getSelectedElems(e).some((function(t){var n=kO.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=Tp('<div class="w-e-panel-content-table"></div>'),r=Tp("<span>0 &times; 0</span>"),o=Tp("<table></table>"),i=0;i<10;i++){for(var a=Tp("<tr></tr>"),u=0;u<10;u++){var s=Tp("<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=Tp(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" &times; "+(a+1),o.children().each((function(e){Tp(e).children().each((function(e){var t=Tp(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=Tp(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)){kO.isSelectedEmptyParagraph(e)&&vd.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);vd.insertNodes(e,i,{mode:"highest"})}},e}(),s3=function(){function e(){this.title=hP("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==kO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||vd.removeNodes(e,{mode:"highest"})},e}(),l3=function(){function e(){this.title=hP("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||!Wf.isCollapsed(t)||null==kO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=x4(kf.nodes(e,{match:function(e){return kO.checkNodeType(e,"table-cell")},universal:!0}),1),r=x4(n[0],2),o=r[0],i=r[1],a=kO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var s={type:"table-row",children:[]},l=0;l<u;l++)s.children.push({type:"table-cell",children:[{text:""}]});var c=Lf.parent(i),f=Lf.next(c);vd.insertNodes(e,s,{at:f})}}},e}(),c3=function(){function e(){this.title=hP("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||!Wf.isCollapsed(t)||null==kO.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=x4(kf.nodes(e,{match:function(e){return kO.checkNodeType(e,"table-row")},universal:!0}),1),r=x4(n[0],2),o=r[0],i=r[1],a=kO.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?vd.removeNodes(e,{mode:"highest"}):vd.removeNodes(e,{at:i})}},e}(),f3={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},d3=a1("span").classList,p3=d3&&d3.constructor&&d3.constructor.prototype,h3=p3===Object.prototype?void 0:p3,g3=F4.forEach,v3=function(e,t){var n=[].forEach;return!!n&&YQ((function(){n.call(null,(function(){throw 1}),1)}))}(),y3=v3?[].forEach:function(e){return g3(this,e,arguments.length>1?arguments[1]:void 0)},m3=function(e){if(e&&e.forEach!==y3)try{v1(e,"forEach",y3)}catch(t){e.forEach=y3}};for(var b3 in f3)f3[b3]&&m3(KQ[b3]&&KQ[b3].prototype);m3(h3);var w3=function(){function e(){this.title=hP("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||!Wf.isCollapsed(t)||null==kO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=x4(kf.nodes(e,{match:function(e){return kO.checkNodeType(e,"table-cell")},universal:!0}),1),r=x4(n[0],2),o=r[0],i=r[1],a=kO.getParentNode(e,o);if(null!=a){var u=kO.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){Ef.isElement(t)&&(t.children||[]).forEach((function(t){var r=kO.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),vd.insertNodes(e,o,{at:r})}}))}))}}},e}(),x3=function(){function e(){this.title=hP("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||!Wf.isCollapsed(t)||null==kO.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=x4(kf.nodes(e,{match:function(e){return kO.checkNodeType(e,"table-cell")},universal:!0}),1),r=x4(n[0],2),o=r[0],i=r[1],a=kO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)vd.removeNodes(e,{mode:"highest"});else{var s=kO.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){Ef.isElement(t)&&(t.children||[]).forEach((function(t){var n=kO.findPath(e,t);n.length===i.length&&HQ(n.slice(-1),i.slice(-1))&&vd.removeNodes(e,{at:n})}))}))}}},e}(),E3=function(){function e(){this.title=hP("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=kO.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||!Wf.isCollapsed(t)||null==kO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=kO.getSelectedNodeByType(e,"table");null!=r&&P4(r).forEach((function(t){return vd.setNodes(e,{isHeader:n},{at:kO.findPath(e,t)})}))}},e}(),S3=function(){function e(){this.title=hP("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=kO.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||!Wf.isCollapsed(t)||null==kO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};vd.setNodes(e,n,{mode:"highest"})}},e}(),D3={renderElems:[L6,R6,M6],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,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===l?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[z6],parseElemsHtml:[o3,i3,a3],menus:[{key:"insertTable",factory:function(){return new u3}},{key:"deleteTable",factory:function(){return new s3}},{key:"insertTableRow",factory:function(){return new l3}},{key:"deleteTableRow",factory:function(){return new c3}},{key:"insertTableCol",factory:function(){return new w3}},{key:"deleteTableCol",factory:function(){return new x3}},{key:"tableHeader",factory:function(){return new E3}},{key:"tableFullWidth",factory:function(){return new S3}}],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==kO.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!E4(s)){var t=s.selection;if(t){var r=kf.before(s,t);if(r){var o=S4(s,r),i=S4(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(kO.getSelectedNodeByType(s,"table")){var n=kf.above(e);kO.checkNodeType(n[0],"table-cell")&&vd.select(e,n[1]);var r=kf.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=kf.above(e,{at:r[1]}))&&void 0!==t?t:r),vd.select(e,r[1]);else{var o=s.children||[],i=o.length;if(kO.checkNodeType(o[i-1],"table")){var u=kO.genEmptyParagraph();vd.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){E4(s)||r(e)},s.normalizeNode=function(e){var t=x4(e,2),n=t[0],r=t[1];if("table"!==kO.getNodeType(n))return o([n,r]);if(kO.isLastNode(s,n)){var i=kO.genEmptyParagraph();vd.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=kO.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):kf.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=kO.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=kO.findPath(s,t),i={anchor:kf.start(s,o),focus:kf.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};pP("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"}}),pP("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
96
+ /*! *****************************************************************************
97
+ Copyright (c) Microsoft Corporation.
98
+
99
+ Permission to use, copy, modify, and/or distribute this software for any
100
+ purpose with or without fee is hereby granted.
101
+
102
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
103
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
104
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
105
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
106
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
107
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
108
+ PERFORMANCE OF THIS SOFTWARE.
109
+ ***************************************************************************** */
110
+ var C3=function(){return C3=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},C3.apply(this,arguments)};function A3(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 O3(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 k3(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 B3="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==u.g?u.g:"undefined"!=typeof self?self:{};function F3(e){var t={exports:{}};return e(t,t.exports),t.exports}var T3,_3,P3=function(e){return e&&e.Math==Math&&e},j3=P3("object"==typeof globalThis&&globalThis)||P3("object"==typeof window&&window)||P3("object"==typeof self&&self)||P3("object"==typeof B3&&B3)||function(){return this}()||Function("return this")(),N3=function(e){try{return!!e()}catch(e){return!0}},I3=!N3((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),L3=Function.prototype.call,R3=L3.bind?L3.bind(L3):function(){return L3.apply(L3,arguments)},M3={}.propertyIsEnumerable,z3=Object.getOwnPropertyDescriptor,$3={f:z3&&!M3.call({1:2},1)?function(e){var t=z3(this,e);return!!t&&t.enumerable}:M3},H3=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},V3=Function.prototype,U3=V3.bind,W3=V3.call,q3=U3&&U3.bind(W3),G3=U3?function(e){return e&&q3(W3,e)}:function(e){return e&&function(){return W3.apply(e,arguments)}},K3=G3({}.toString),Y3=G3("".slice),X3=function(e){return Y3(K3(e),8,-1)},Z3=j3.Object,J3=G3("".split),Q3=N3((function(){return!Z3("z").propertyIsEnumerable(0)}))?function(e){return"String"==X3(e)?J3(e,""):Z3(e)}:Z3,e5=j3.TypeError,t5=function(e){if(null==e)throw e5("Can't call method on "+e);return e},n5=function(e){return Q3(t5(e))},r5=function(e){return"function"==typeof e},o5=function(e){return"object"==typeof e?null!==e:r5(e)},i5=function(e){return r5(e)?e:void 0},a5=function(e,t){return arguments.length<2?i5(j3[e]):j3[e]&&j3[e][t]},u5=G3({}.isPrototypeOf),s5=a5("navigator","userAgent")||"",l5=j3.process,c5=j3.Deno,f5=l5&&l5.versions||c5&&c5.version,d5=f5&&f5.v8;d5&&(_3=(T3=d5.split("."))[0]>0&&T3[0]<4?1:+(T3[0]+T3[1])),!_3&&s5&&(!(T3=s5.match(/Edge\/(\d+)/))||T3[1]>=74)&&(T3=s5.match(/Chrome\/(\d+)/))&&(_3=+T3[1]);var p5=_3,h5=!!Object.getOwnPropertySymbols&&!N3((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&p5&&p5<41})),g5=h5&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,v5=j3.Object,y5=g5?function(e){return"symbol"==typeof e}:function(e){var t=a5("Symbol");return r5(t)&&u5(t.prototype,v5(e))},m5=j3.String,b5=function(e){try{return m5(e)}catch(e){return"Object"}},w5=j3.TypeError,x5=function(e){if(r5(e))return e;throw w5(b5(e)+" is not a function")},E5=function(e,t){var n=e[t];return null==n?void 0:x5(n)},S5=j3.TypeError,D5=Object.defineProperty,C5=function(e,t){try{D5(j3,e,{value:t,configurable:!0,writable:!0})}catch(n){j3[e]=t}return t},A5=j3["__core-js_shared__"]||C5("__core-js_shared__",{}),O5=F3((function(e){(e.exports=function(e,t){return A5[e]||(A5[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),k5=j3.Object,B5=function(e){return k5(t5(e))},F5=G3({}.hasOwnProperty),T5=Object.hasOwn||function(e,t){return F5(B5(e),t)},_5=0,P5=Math.random(),j5=G3(1..toString),N5=function(e){return"Symbol("+(void 0===e?"":e)+")_"+j5(++_5+P5,36)},I5=O5("wks"),L5=j3.Symbol,R5=L5&&L5.for,M5=g5?L5:L5&&L5.withoutSetter||N5,z5=function(e){if(!T5(I5,e)||!h5&&"string"!=typeof I5[e]){var t="Symbol."+e;h5&&T5(L5,e)?I5[e]=L5[e]:I5[e]=g5&&R5?R5(t):M5(t)}return I5[e]},$5=j3.TypeError,H5=z5("toPrimitive"),V5=function(e){var t=function(e,t){if(!o5(e)||y5(e))return e;var n,r=E5(e,H5);if(r){if(void 0===t&&(t="default"),n=R3(r,e,t),!o5(n)||y5(n))return n;throw $5("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&r5(n=e.toString)&&!o5(r=R3(n,e)))return r;if(r5(n=e.valueOf)&&!o5(r=R3(n,e)))return r;if("string"!==t&&r5(n=e.toString)&&!o5(r=R3(n,e)))return r;throw S5("Can't convert object to primitive value")}(e,t)}(e,"string");return y5(t)?t:t+""},U5=j3.document,W5=o5(U5)&&o5(U5.createElement),q5=function(e){return W5?U5.createElement(e):{}},G5=!I3&&!N3((function(){return 7!=Object.defineProperty(q5("div"),"a",{get:function(){return 7}}).a})),K5=Object.getOwnPropertyDescriptor,Y5={f:I3?K5:function(e,t){if(e=n5(e),t=V5(t),G5)try{return K5(e,t)}catch(e){}if(T5(e,t))return H3(!R3($3.f,e,t),e[t])}},X5=j3.String,Z5=j3.TypeError,J5=function(e){if(o5(e))return e;throw Z5(X5(e)+" is not an object")},Q5=j3.TypeError,e8=Object.defineProperty,t8={f:I3?e8:function(e,t,n){if(J5(e),t=V5(t),J5(n),G5)try{return e8(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Q5("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},n8=I3?function(e,t,n){return t8.f(e,t,H3(1,n))}:function(e,t,n){return e[t]=n,e},r8=G3(Function.toString);r5(A5.inspectSource)||(A5.inspectSource=function(e){return r8(e)});var o8,i8,a8,u8=A5.inspectSource,s8=j3.WeakMap,l8=r5(s8)&&/native code/.test(u8(s8)),c8=O5("keys"),f8=function(e){return c8[e]||(c8[e]=N5(e))},d8={},p8=j3.TypeError,h8=j3.WeakMap;if(l8||A5.state){var g8=A5.state||(A5.state=new h8),v8=G3(g8.get),y8=G3(g8.has),m8=G3(g8.set);o8=function(e,t){if(y8(g8,e))throw new p8("Object already initialized");return t.facade=e,m8(g8,e,t),t},i8=function(e){return v8(g8,e)||{}},a8=function(e){return y8(g8,e)}}else{var b8=f8("state");d8[b8]=!0,o8=function(e,t){if(T5(e,b8))throw new p8("Object already initialized");return t.facade=e,n8(e,b8,t),t},i8=function(e){return T5(e,b8)?e[b8]:{}},a8=function(e){return T5(e,b8)}}var w8={set:o8,get:i8,has:a8,enforce:function(e){return a8(e)?i8(e):o8(e,{})},getterFor:function(e){return function(t){var n;if(!o5(t)||(n=i8(t)).type!==e)throw p8("Incompatible receiver, "+e+" required");return n}}},x8=Function.prototype,E8=I3&&Object.getOwnPropertyDescriptor,S8=T5(x8,"name"),D8={EXISTS:S8,PROPER:S8&&"something"===function(){}.name,CONFIGURABLE:S8&&(!I3||I3&&E8(x8,"name").configurable)},C8=F3((function(e){var t=D8.CONFIGURABLE,n=w8.get,r=w8.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;r5(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!T5(i,"name")||t&&i.name!==f)&&n8(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==j3?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:n8(e,n,i)):l?e[n]=i:C5(n,i)})(Function.prototype,"toString",(function(){return r5(this)&&n(this).source||u8(this)}))})),A8=Math.ceil,O8=Math.floor,k8=function(e){var t=+e;return t!=t||0===t?0:(t>0?O8:A8)(t)},B8=Math.max,F8=Math.min,T8=function(e,t){var n=k8(e);return n<0?B8(n+t,0):F8(n,t)},_8=Math.min,P8=function(e){return e>0?_8(k8(e),9007199254740991):0},j8=function(e){return P8(e.length)},N8=function(e){return function(t,n,r){var o,i=n5(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}},I8={includes:N8(!0),indexOf:N8(!1)},L8=I8.indexOf,R8=G3([].push),M8=function(e,t){var n,r=n5(e),o=0,i=[];for(n in r)!T5(d8,n)&&T5(r,n)&&R8(i,n);for(;t.length>o;)T5(r,n=t[o++])&&(~L8(i,n)||R8(i,n));return i},z8=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$8=z8.concat("length","prototype"),H8={f:Object.getOwnPropertyNames||function(e){return M8(e,$8)}},V8={f:Object.getOwnPropertySymbols},U8=G3([].concat),W8=a5("Reflect","ownKeys")||function(e){var t=H8.f(J5(e)),n=V8.f;return n?U8(t,n(e)):t},q8=function(e,t){for(var n=W8(t),r=t8.f,o=Y5.f,i=0;i<n.length;i++){var a=n[i];T5(e,a)||r(e,a,o(t,a))}},G8=/#|\.prototype\./,K8=function(e,t){var n=X8[Y8(e)];return n==J8||n!=Z8&&(r5(t)?N3(t):!!t)},Y8=K8.normalize=function(e){return String(e).replace(G8,".").toLowerCase()},X8=K8.data={},Z8=K8.NATIVE="N",J8=K8.POLYFILL="P",Q8=K8,e7=Y5.f,t7=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?j3:l?j3[u]||C5(u,{}):(j3[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=e7(n,r))&&a.value:n[r],!Q8(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;q8(i,o)}(e.sham||o&&o.sham)&&n8(i,"sham",!0),C8(n,r,i,e)}},n7={};n7[z5("toStringTag")]="z";var r7="[object z]"===String(n7),o7=z5("toStringTag"),i7=j3.Object,a7="Arguments"==X3(function(){return arguments}()),u7=r7?X3: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=i7(e),o7))?n:a7?X3(t):"Object"==(r=X3(t))&&r5(t.callee)?"Arguments":r},s7=j3.String,l7=function(e){if("Symbol"===u7(e))throw TypeError("Cannot convert a Symbol value to a string");return s7(e)},c7="\t\n\v\f\r                 \u2028\u2029\ufeff",f7=G3("".replace),d7="["+c7+"]",p7=RegExp("^"+d7+d7+"*"),h7=RegExp(d7+d7+"*$"),g7=function(e){return function(t){var n=l7(t5(t));return 1&e&&(n=f7(n,p7,"")),2&e&&(n=f7(n,h7,"")),n}},v7={start:g7(1),end:g7(2),trim:g7(3)},y7=D8.PROPER,m7=v7.trim;function b7(e){return e.length?e[0].tagName.toLowerCase():""}function w7(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=Tp(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}t7({target:"String",proto:!0,forced:N3((function(){return!!c7.trim()||"​…᠎"!=="​…᠎".trim()||y7&&"trim"!==c7.trim.name}))},{trim:function(){return m7(this)}}),t7({global:!0},{globalThis:j3}),Jp&&(Tp.fn.append=Jp),Mp&&(Tp.fn.on=Mp),lh&&(Tp.fn.focus=lh),Np&&(Tp.fn.attr=Np),Rp&&(Tp.fn.val=Rp),Yp&&(Tp.fn.html=Yp),eh&&(Tp.fn.parent=eh),jp&&(Tp.fn.hasClass=jp),ih&&(Tp.fn.empty=ih);var x7,E7={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,l=o.width,c=void 0===l?"auto":l,f=o.height,d=void 0===f?"auto":f,p=kO.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=wg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:w7(a,c,d)});else{var h=wg("video",{poster:s,controls:!0},wg("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==c&&(h.data.width=c),"auto"!==d&&(h.data.height=d),r=wg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return eg("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},S7={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,l=n.height,c=void 0===l?"auto":l,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=w7(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},D7=Object.keys||function(e){return M8(e,z8)},C7=I3?Object.defineProperties:function(e,t){J5(e);for(var n,r=n5(t),o=D7(t),i=o.length,a=0;i>a;)t8.f(e,n=o[a++],r[n]);return e},A7=a5("document","documentElement"),O7=f8("IE_PROTO"),k7=function(){},B7=function(e){return"<script>"+e+"<\/script>"},F7=function(e){e.write(B7("")),e.close();var t=e.parentWindow.Object;return e=null,t},T7=function(){try{x7=new ActiveXObject("htmlfile")}catch(e){}var e,t;T7="undefined"!=typeof document?document.domain&&x7?F7(x7):((t=q5("iframe")).style.display="none",A7.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(B7("document.F=Object")),e.close(),e.F):F7(x7);for(var n=z8.length;n--;)delete T7.prototype[z8[n]];return T7()};d8[O7]=!0;var _7=Object.create||function(e,t){var n;return null!==e?(k7.prototype=J5(e),n=new k7,k7.prototype=null,n[O7]=e):n=T7(),void 0===t?n:C7(n,t)},P7=z5("unscopables"),j7=Array.prototype;null==j7[P7]&&t8.f(j7,P7,{configurable:!0,value:_7(null)});var N7=function(e){j7[P7][e]=!0},I7=I8.includes;t7({target:"Array",proto:!0},{includes:function(e){return I7(this,e,arguments.length>1?arguments[1]:void 0)}}),N7("includes");var L7={selector:"iframe,video,p",preParseHtml:function(e){var t=Tp(e),n=t;if("p"===b7(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Tp(o))}}var a=b7(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=Tp('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},R7=G3(G3.bind),M7=function(e,t){return x5(e),void 0===t?e:R7?R7(e,t):function(){return e.apply(t,arguments)}},z7=Array.isArray||function(e){return"Array"==X3(e)},$7=function(){},H7=[],V7=a5("Reflect","construct"),U7=/^\s*(?:class|function)\b/,W7=G3(U7.exec),q7=!U7.exec($7),G7=function(e){if(!r5(e))return!1;try{return V7($7,H7,e),!0}catch(e){return!1}},K7=!V7||N3((function(){var e;return G7(G7.call)||!G7(Object)||!G7((function(){e=!0}))||e}))?function(e){if(!r5(e))return!1;switch(u7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return q7||!!W7(U7,u8(e))}:G7,Y7=z5("species"),X7=j3.Array,Z7=function(e,t){return new(function(e){var t;return z7(e)&&(t=e.constructor,(K7(t)&&(t===X7||z7(t.prototype))||o5(t)&&null===(t=t[Y7]))&&(t=void 0)),void 0===t?X7:t}(e))(0===t?0:t)},J7=G3([].push),Q7=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,l,c,f){for(var d,p,h=B5(s),g=Q3(h),v=M7(l,c),y=j8(g),m=0,b=f||Z7,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:J7(w,d)}else switch(e){case 4:return!1;case 7:J7(w,d)}return i?-1:r||o?o:w}},e9={forEach:Q7(0),map:Q7(1),filter:Q7(2),some:Q7(3),every:Q7(4),find:Q7(5),findIndex:Q7(6),filterReject:Q7(7)},t9=e9.find,n9=!0;"find"in[]&&Array(1).find((function(){n9=!1})),t7({target:"Array",proto:!0,forced:n9},{find:function(e){return t9(this,e,arguments.length>1?arguments[1]:void 0)}}),N7("find");var r9=r7?{}.toString:function(){return"[object "+u7(this)+"]"};function o9(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:""}]}}r7||C8(Object.prototype,"toString",r9,{unsafe:!0});var i9,a9,u9={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Tp(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",o9(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",o9(o,i=l.attr("poster")||"",a,u)}},s9=function(){var e=J5(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},l9=j3.RegExp,c9=N3((function(){var e=l9("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),f9=c9||N3((function(){return!l9("a","y").sticky})),d9={BROKEN_CARET:c9||N3((function(){var e=l9("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:f9,UNSUPPORTED_Y:c9},p9=j3.RegExp,h9=N3((function(){var e=p9(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),g9=j3.RegExp,v9=N3((function(){var e=g9("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),y9=w8.get,m9=O5("native-string-replace",String.prototype.replace),b9=RegExp.prototype.exec,w9=b9,x9=G3("".charAt),E9=G3("".indexOf),S9=G3("".replace),D9=G3("".slice),C9=(a9=/b*/g,R3(b9,i9=/a/,"a"),R3(b9,a9,"a"),0!==i9.lastIndex||0!==a9.lastIndex),A9=d9.BROKEN_CARET,O9=void 0!==/()??/.exec("")[1];(C9||O9||A9||h9||v9)&&(w9=function(e){var t,n,r,o,i,a,u,s=this,l=y9(s),c=l7(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=R3(w9,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=A9&&s.sticky,h=R3(s9,s),g=s.source,v=0,y=c;if(p&&(h=S9(h,"y",""),-1===E9(h,"g")&&(h+="g"),y=D9(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==x9(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),O9&&(n=new RegExp("^"+g+"$(?!\\s)",h)),C9&&(r=s.lastIndex),o=R3(b9,p?n:s,y),p?o?(o.input=D9(o.input,v),o[0]=D9(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:C9&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),O9&&o&&o.length>1&&R3(m9,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=_7(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var k9=w9;t7({target:"RegExp",proto:!0,forced:/./.exec!==k9},{exec:k9});var B9=Function.prototype,F9=B9.apply,T9=B9.bind,_9=B9.call,P9="object"==typeof Reflect&&Reflect.apply||(T9?_9.bind(F9):function(){return _9.apply(F9,arguments)}),j9=(z5("species"),RegExp.prototype),N9=G3("".charAt),I9=G3("".charCodeAt),L9=G3("".slice),R9=function(e){return function(t,n){var r,o,i=l7(t5(t)),a=k8(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=I9(i,a))<55296||r>56319||a+1===u||(o=I9(i,a+1))<56320||o>57343?e?N9(i,a):r:e?L9(i,a,a+2):o-56320+(r-55296<<10)+65536}},M9={codeAt:R9(!1),charAt:R9(!0)},z9=M9.charAt,$9=function(e,t,n){return t+(n?z9(e,t).length:1)},H9=Math.floor,V9=G3("".charAt),U9=G3("".replace),W9=G3("".slice),q9=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,G9=/\$([$&'`]|\d{1,2})/g,K9=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=G9;return void 0!==o&&(o=B5(o),s=q9),U9(i,s,(function(i,s){var l;switch(V9(s,0)){case"$":return"$";case"&":return e;case"`":return W9(t,0,n);case"'":return W9(t,a);case"<":l=o[W9(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=H9(c/10);return 0===f?i:f<=u?void 0===r[f-1]?V9(s,1):r[f-1]+V9(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Y9=j3.TypeError,X9=function(e,t){var n=e.exec;if(r5(n)){var r=R3(n,e,t);return null!==r&&J5(r),r}if("RegExp"===X3(e))return R3(k9,e,t);throw Y9("RegExp#exec called on incompatible receiver")},Z9=z5("replace"),J9=Math.max,Q9=Math.min,eee=G3([].concat),tee=G3([].push),nee=G3("".indexOf),ree=G3("".slice),oee="$0"==="a".replace(/./,"$0"),iee=!!/./[Z9]&&""===/./[Z9]("a","$0");function aee(e){return void 0===e&&(e="r"),e+"-"+Ah()}!function(e,t,n,r){var o=z5(e),i=!N3((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!N3((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=G3(/./[o]),s=function(e,t,n){var r=iee?"$":"$0";return[function(e,n){var r=t5(this),o=null==e?void 0:E5(e,Z9);return o?R3(o,e,r,n):R3(t,l7(r),e,n)},function(e,o){var i=J5(this),a=l7(e);if("string"==typeof o&&-1===nee(o,r)&&-1===nee(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=r5(o);s||(o=l7(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=X9(i,a);if(null===d)break;if(tee(f,d),!l)break;""===l7(d[0])&&(i.lastIndex=$9(a,P8(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=l7((d=f[v])[0]),m=J9(Q9(k8(d.index),a.length),0),b=[],w=1;w<d.length;w++)tee(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=eee([y],b,m,a);void 0!==x&&tee(E,x);var S=l7(P9(o,void 0,E))}else S=K9(y,a,m,b,x,o);m>=g&&(h+=ree(a,g,m)+S,g=m+y.length)}return h+ree(a,g)}]}(0,""[e],(function(e,t,n,r,o){var a=G3(e),s=t.exec;return s===k9||s===j9.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(j9,o,s[1])}}("replace",0,!!N3((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!oee||iee);var uee=j3.Promise,see=function(e,t,n){for(var r in t)C8(e,r,t[r],n);return e},lee=j3.String,cee=j3.TypeError,fee=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=G3(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return J5(n),function(e){if("object"==typeof e||r5(e))return e;throw cee("Can't set "+lee(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),dee=t8.f,pee=z5("toStringTag"),hee=function(e,t,n){e&&!T5(e=n?e:e.prototype,pee)&&dee(e,pee,{configurable:!0,value:t})},gee=z5("species"),vee=j3.TypeError,yee=function(e,t){if(u5(t,e))return e;throw vee("Incorrect invocation")},mee={},bee=z5("iterator"),wee=Array.prototype,xee=z5("iterator"),Eee=function(e){if(null!=e)return E5(e,xee)||E5(e,"@@iterator")||mee[u7(e)]},See=j3.TypeError,Dee=function(e,t,n){var r,o;J5(e);try{if(!(r=E5(e,"return"))){if("throw"===t)throw n;return n}r=R3(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return J5(r),n},Cee=j3.TypeError,Aee=function(e,t){this.stopped=e,this.result=t},Oee=Aee.prototype,kee=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=M7(t,f),v=function(e){return r&&Dee(r,"normal",e),new Aee(!0,e)},y=function(e){return d?(J5(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=Eee(e)))throw Cee(b5(e)+" is not iterable");if(void 0!==(c=o)&&(mee.Array===c||wee[bee]===c)){for(i=0,a=j8(e);a>i;i++)if((u=y(e[i]))&&u5(Oee,u))return u;return new Aee(!1)}r=function(e,t){var n=arguments.length<2?Eee(e):t;if(x5(n))return J5(R3(n,e));throw See(b5(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=R3(s,r)).done;){try{u=y(l.value)}catch(e){Dee(r,"throw",e)}if("object"==typeof u&&u&&u5(Oee,u))return u}return new Aee(!1)},Bee=z5("iterator"),Fee=!1;try{var Tee=0,_ee={next:function(){return{done:!!Tee++}},return:function(){Fee=!0}};_ee[Bee]=function(){return this},Array.from(_ee,(function(){throw 2}))}catch(zl){}var Pee,jee,Nee,Iee,Lee=function(e,t){if(!t&&!Fee)return!1;var n=!1;try{var r={};r[Bee]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Ree=j3.TypeError,Mee=z5("species"),zee=G3([].slice),$ee=/(?:ipad|iphone|ipod).*applewebkit/i.test(s5),Hee="process"==X3(j3.process),Vee=j3.setImmediate,Uee=j3.clearImmediate,Wee=j3.process,qee=j3.Dispatch,Gee=j3.Function,Kee=j3.MessageChannel,Yee=j3.String,Xee=0,Zee={};try{Pee=j3.location}catch(zl){}var Jee=function(e){if(T5(Zee,e)){var t=Zee[e];delete Zee[e],t()}},Qee=function(e){return function(){Jee(e)}},ete=function(e){Jee(e.data)},tte=function(e){j3.postMessage(Yee(e),Pee.protocol+"//"+Pee.host)};Vee&&Uee||(Vee=function(e){var t=zee(arguments,1);return Zee[++Xee]=function(){P9(r5(e)?e:Gee(e),void 0,t)},jee(Xee),Xee},Uee=function(e){delete Zee[e]},Hee?jee=function(e){Wee.nextTick(Qee(e))}:qee&&qee.now?jee=function(e){qee.now(Qee(e))}:Kee&&!$ee?(Iee=(Nee=new Kee).port2,Nee.port1.onmessage=ete,jee=M7(Iee.postMessage,Iee)):j3.addEventListener&&r5(j3.postMessage)&&!j3.importScripts&&Pee&&"file:"!==Pee.protocol&&!N3(tte)?(jee=tte,j3.addEventListener("message",ete,!1)):jee="onreadystatechange"in q5("script")?function(e){A7.appendChild(q5("script")).onreadystatechange=function(){A7.removeChild(this),Jee(e)}}:function(e){setTimeout(Qee(e),0)});var nte,rte,ote,ite,ate,ute,ste,lte,cte={set:Vee,clear:Uee},fte=/ipad|iphone|ipod/i.test(s5)&&void 0!==j3.Pebble,dte=/web0s(?!.*chrome)/i.test(s5),pte=Y5.f,hte=cte.set,gte=j3.MutationObserver||j3.WebKitMutationObserver,vte=j3.document,yte=j3.process,mte=j3.Promise,bte=pte(j3,"queueMicrotask"),wte=bte&&bte.value;wte||(nte=function(){var e,t;for(Hee&&(e=yte.domain)&&e.exit();rte;){t=rte.fn,rte=rte.next;try{t()}catch(e){throw rte?ite():ote=void 0,e}}ote=void 0,e&&e.enter()},$ee||Hee||dte||!gte||!vte?!fte&&mte&&mte.resolve?((ste=mte.resolve(void 0)).constructor=mte,lte=M7(ste.then,ste),ite=function(){lte(nte)}):Hee?ite=function(){yte.nextTick(nte)}:(hte=M7(hte,j3),ite=function(){hte(nte)}):(ate=!0,ute=vte.createTextNode(""),new gte(nte).observe(ute,{characterData:!0}),ite=function(){ute.data=ate=!ate}));var xte,Ete,Ste,Dte,Cte=wte||function(e){var t={fn:e,next:void 0};ote&&(ote.next=t),rte||(rte=t,ite()),ote=t},Ate=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=x5(t),this.reject=x5(n)},Ote={f:function(e){return new Ate(e)}},kte=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Bte="object"==typeof window,Fte=cte.set,Tte=z5("species"),_te="Promise",Pte=w8.getterFor(_te),jte=w8.set,Nte=w8.getterFor(_te),Ite=uee&&uee.prototype,Lte=uee,Rte=Ite,Mte=j3.TypeError,zte=j3.document,$te=j3.process,Hte=Ote.f,Vte=Hte,Ute=!!(zte&&zte.createEvent&&j3.dispatchEvent),Wte=r5(j3.PromiseRejectionEvent),qte=!1,Gte=Q8(_te,(function(){var e=u8(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,!(qte=n.then((function(){}))instanceof r)||!t&&Bte&&!Wte})),Kte=Gte||!Lee((function(e){Lte.all(e).catch((function(){}))})),Yte=function(e){var t;return!(!o5(e)||!r5(t=e.then))&&t},Xte=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,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&ene(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Mte("Promise-chain cycle")):(u=Yte(a))?R3(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Jte(e)}))}},Zte=function(e,t,n){var r,o;Ute?((r=zte.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),j3.dispatchEvent(r)):r={promise:t,reason:n},!Wte&&(o=j3["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=j3.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Jte=function(e){R3(Fte,j3,(function(){var t,n=e.facade,r=e.value;if(Qte(e)&&(t=kte((function(){Hee?$te.emit("unhandledRejection",r,n):Zte("unhandledrejection",n,r)})),e.rejection=Hee||Qte(e)?2:1,t.error))throw t.value}))},Qte=function(e){return 1!==e.rejection&&!e.parent},ene=function(e){R3(Fte,j3,(function(){var t=e.facade;Hee?$te.emit("rejectionHandled",t):Zte("rejectionhandled",t,e.value)}))},tne=function(e,t,n){return function(r){e(t,r,n)}},nne=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Xte(e,!0))},rne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Mte("Promise can't be resolved itself");var r=Yte(t);r?Cte((function(){var n={done:!1};try{R3(r,t,tne(rne,n,e),tne(nne,n,e))}catch(t){nne(n,t,e)}})):(e.value=t,e.state=1,Xte(e,!1))}catch(t){nne({done:!1},t,e)}}};if(Gte&&(Rte=(Lte=function(e){yee(this,Rte),x5(e),R3(xte,this);var t=Pte(this);try{e(tne(rne,t),tne(nne,t))}catch(e){nne(t,e)}}).prototype,(xte=function(e){jte(this,{type:_te,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=see(Rte,{then:function(e,t){var n=Nte(this),r=n.reactions,o=Hte(function(e,t){var n,r=J5(e).constructor;return void 0===r||null==(n=J5(r)[Mee])?t:function(e){if(K7(e))return e;throw Ree(b5(e)+" is not a constructor")}(n)}(this,Lte));return o.ok=!r5(e)||e,o.fail=r5(t)&&t,o.domain=Hee?$te.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Xte(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Ete=function(){var e=new xte,t=Pte(e);this.promise=e,this.resolve=tne(rne,t),this.reject=tne(nne,t)},Ote.f=Hte=function(e){return e===Lte||e===Ste?new Ete(e):Vte(e)},r5(uee)&&Ite!==Object.prototype)){Dte=Ite.then,qte||(C8(Ite,"then",(function(e,t){var n=this;return new Lte((function(e,t){R3(Dte,n,e,t)})).then(e,t)}),{unsafe:!0}),C8(Ite,"catch",Rte.catch,{unsafe:!0}));try{delete Ite.constructor}catch(zl){}fee&&fee(Ite,Rte)}function one(e,t,n){return void 0===n&&(n=""),A3(this,void 0,void 0,(function(){var r,o,i,a,u,s,l;return O3(this,(function(c){switch(c.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=c.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=c.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){vd.insertNodes(e,l)})),o(l),[2]}}))}))}function ine(){return aee("w-e-insert-video")}t7({global:!0,wrap:!0,forced:Gte},{Promise:Lte}),hee(Lte,_te,!1),function(e){var t=a5("Promise"),n=t8.f;I3&&t&&!t[gee]&&n(t,gee,{configurable:!0,get:function(){return this}})}(),Ste=a5(_te),t7({target:_te,stat:!0,forced:Gte},{reject:function(e){var t=Hte(this);return R3(t.reject,void 0,e),t.promise}}),t7({target:_te,stat:!0,forced:Gte},{resolve:function(e){return function(e,t){if(J5(e),o5(t)&&t.constructor===e)return t;var n=Ote.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),t7({target:_te,stat:!0,forced:Kte},{all:function(e){var t=this,n=Hte(t),r=n.resolve,o=n.reject,i=kte((function(){var n=x5(t.resolve),i=[],a=0,u=1;kee(e,(function(e){var s=a++,l=!1;u++,R3(n,t,e).then((function(e){l||(l=!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=kte((function(){var o=x5(t.resolve);kee(e,(function(e){R3(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var ane=function(){function e(){this.title=hP("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=ine(),this.posterInputId=ine(),this.buttonId=ine()}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||!Wf.isCollapsed(t)||!!kO.getSelectedElems(e).some((function(t){var n=kO.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=k3(JT(hP("videoModule.videoSrc"),r,hP("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=k3(JT(hP("videoModule.videoPoster"),o,hP("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=Tp(s),p=Tp(f),h=k3(QT(i,hP("videoModule.ok")),1)[0];if(null==this.$content){var g=Tp("<div></div>");g.on("click","#"+i,(function(n){return A3(t,void 0,void 0,(function(){var t,i;return O3(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,one(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var v=this.$content;return v.empty(),v.append(u),v.append(c),v.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),v[0]},e}(),une=G3([].join),sne=Q3!=Object,lne=function(e,t){var n=[].join;return!!n&&N3((function(){n.call(null,",",1)}))}();t7({target:"Array",proto:!0,forced:sne||!lne},{join:function(e){return une(n5(this),void 0===e?",":e)}});var cne,fne,dne,pne=!N3((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hne=f8("IE_PROTO"),gne=j3.Object,vne=gne.prototype,yne=pne?gne.getPrototypeOf:function(e){var t=B5(e);if(T5(t,hne))return t[hne];var n=t.constructor;return r5(n)&&t instanceof n?n.prototype:t instanceof gne?vne:null},mne=z5("iterator"),bne=!1;[].keys&&("next"in(dne=[].keys())?(fne=yne(yne(dne)))!==Object.prototype&&(cne=fne):bne=!0);var wne=null==cne||N3((function(){var e={};return cne[mne].call(e)!==e}));wne&&(cne={}),r5(cne[mne])||C8(cne,mne,(function(){return this}));var xne={IteratorPrototype:cne,BUGGY_SAFARI_ITERATORS:bne},Ene=xne.IteratorPrototype,Sne=function(){return this},Dne=D8.PROPER,Cne=D8.CONFIGURABLE,Ane=xne.IteratorPrototype,One=xne.BUGGY_SAFARI_ITERATORS,kne=z5("iterator"),Bne=function(){return this},Fne=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=_7(Ene,{next:H3(1,n)}),hee(e,o,!1),mee[o]=Sne}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!One&&e in p)return p[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",d=!1,p=e.prototype,h=p[kne]||p["@@iterator"]||o&&p[o],g=!One&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=yne(v.call(new e)))!==Object.prototype&&u.next&&(yne(u)!==Ane&&(fee?fee(u,Ane):r5(u[kne])||C8(u,kne,Bne)),hee(u,f,!0)),Dne&&"values"==o&&h&&"values"!==h.name&&(Cne?n8(p,"name","values"):(d=!0,g=function(){return R3(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(One||d||!(l in p))&&C8(p,l,s[l]);else t7({target:t,proto:!0,forced:One||d},s);return p[kne]!==g&&C8(p,kne,g,{name:o}),mee[t]=g,s},Tne=w8.set,_ne=w8.getterFor("Array Iterator"),Pne=Fne(Array,"Array",(function(e,t){Tne(this,{type:"Array Iterator",target:n5(e),index:0,kind:t})}),(function(){var e=_ne(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");mee.Arguments=mee.Array,N7("keys"),N7("values"),N7("entries");var jne=M9.charAt,Nne=w8.set,Ine=w8.getterFor("String Iterator");Fne(String,"String",(function(e){Nne(this,{type:"String Iterator",string:l7(e),index:0})}),(function(){var e,t=Ine(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=V5(t);r in e?t8.f(e,r,H3(0,n)):e[r]=n},Rne=j3.Array,Mne=Math.max,zne=H8.f,$ne="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Hne={f:function(e){return $ne&&"Window"==X3(e)?function(e){try{return zne(e)}catch(e){return function(e,t,n){for(var r=j8(e),o=T8(void 0,r),i=T8(r,r),a=Rne(Mne(i-o,0)),u=0;o<i;o++,u++)Lne(a,u,e[o]);return a.length=u,a}($ne)}}(e):zne(n5(e))}},Vne=N3((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Une=Object.isExtensible,Wne=N3((function(){Une(1)}))||Vne?function(e){return!!o5(e)&&(!Vne||"ArrayBuffer"!=X3(e))&&(!Une||Une(e))}:Une,qne=!N3((function(){return Object.isExtensible(Object.preventExtensions({}))})),Gne=F3((function(e){var t=t8.f,n=!1,r=N5("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=G3([].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},t7({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Hne.f}))},fastKey:function(e,t){if(!o5(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!T5(e,r)){if(!Wne(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!T5(e,r)){if(!Wne(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return qne&&n&&Wne(e)&&!T5(e,r)&&i(e),e}};d8[r]=!0})),Kne=Gne.getWeakData,Yne=w8.set,Xne=w8.getterFor,Zne=e9.find,Jne=e9.findIndex,Qne=G3([].splice),ere=0,tre=function(e){return e.frozen||(e.frozen=new nre)},nre=function(){this.entries=[]},rre=function(e,t){return Zne(e.entries,(function(e){return e[0]===t}))};nre.prototype={get:function(e){var t=rre(this,e);if(t)return t[1]},has:function(e){return!!rre(this,e)},set:function(e,t){var n=rre(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Jne(this.entries,(function(t){return t[0]===e}));return~t&&Qne(this.entries,t,1),!!~t}};var ore,ire={getConstructor:function(e,t,n,r){var o=e((function(e,o){yee(e,i),Yne(e,{type:t,id:ere++,frozen:void 0}),null!=o&&kee(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Xne(t),u=function(e,t,n){var r=a(e),o=Kne(J5(t),!0);return!0===o?tre(r).set(t,n):o[r.id]=n,e};return see(i,{delete:function(e){var t=a(this);if(!o5(e))return!1;var n=Kne(e);return!0===n?tre(t).delete(e):n&&T5(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!o5(e))return!1;var n=Kne(e);return!0===n?tre(t).has(e):n&&T5(n,t.id)}}),see(i,n?{get:function(e){var t=a(this);if(o5(e)){var n=Kne(e);return!0===n?tre(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}},are=w8.enforce,ure=!j3.ActiveXObject&&"ActiveXObject"in j3,sre=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},lre=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=j3[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=G3(u[e]);C8(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!o5(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!o5(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!o5(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Q8(e,!r5(a)||!(o||u.forEach&&!N3((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Gne.enable();else if(Q8(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=N3((function(){f.has(1)})),h=Lee((function(e){new a(e)})),g=!o&&N3((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){yee(e,u);var n=function(e,t,n){var r,o;return fee&&r5(r=t.constructor)&&r!==n&&o5(o=r.prototype)&&o!==n.prototype&&fee(e,o),e}(new a,e,s);return null!=t&&kee(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,t7({global:!0,forced:s!=a},l),hee(s,e),o||n.setStrong(s,e,r),s}("WeakMap",sre,ire);if(l8&&ure){ore=ire.getConstructor(sre,"WeakMap",!0),Gne.enable();var cre=lre.prototype,fre=G3(cre.delete),dre=G3(cre.has),pre=G3(cre.get),hre=G3(cre.set);see(cre,{delete:function(e){if(o5(e)&&!Wne(e)){var t=are(this);return t.frozen||(t.frozen=new ore),fre(this,e)||t.frozen.delete(e)}return fre(this,e)},has:function(e){if(o5(e)&&!Wne(e)){var t=are(this);return t.frozen||(t.frozen=new ore),dre(this,e)||t.frozen.has(e)}return dre(this,e)},get:function(e){if(o5(e)&&!Wne(e)){var t=are(this);return t.frozen||(t.frozen=new ore),dre(this,e)?pre(this,e):t.frozen.get(e)}return pre(this,e)},set:function(e,t){if(o5(e)&&!Wne(e)){var n=are(this);n.frozen||(n.frozen=new ore),dre(this,e)?hre(this,e,t):n.frozen.set(e,t)}else hre(this,e,t);return this}})}var gre={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=q5("span").classList,yre=vre&&vre.constructor&&vre.constructor.prototype,mre=yre===Object.prototype?void 0:yre,bre=z5("iterator"),wre=z5("toStringTag"),xre=Pne.values,Ere=function(e,t){if(e){if(e[bre]!==xre)try{n8(e,bre,xre)}catch(t){e[bre]=xre}if(e[wre]||n8(e,wre,t),gre[t])for(var n in Pne)if(e[n]!==Pne[n])try{n8(e,n,Pne[n])}catch(t){e[n]=Pne[n]}}};for(var Sre in gre)Ere(j3[Sre]&&j3[Sre].prototype,Sre);Ere(mre,"DOMTokenList");var Dre=D8.EXISTS,Cre=t8.f,Are=Function.prototype,Ore=G3(Are.toString),kre=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Bre=G3(kre.exec);I3&&!Dre&&Cre(Are,"name",{configurable:!0,get:function(){try{return Bre(kre,Ore(this))[1]}catch(e){return""}}});var Fre=z5("species"),Tre=p5>=51||!N3((function(){var e=[];return(e.constructor={})[Fre]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),_re=z5("species"),Pre=j3.Array,jre=Math.max;function Nre(e){return e.getMenuConfig("uploadVideo")}t7({target:"Array",proto:!0,forced:!Tre},{slice:function(e,t){var n,r,o,i=n5(this),a=j8(i),u=T8(e,a),s=T8(void 0===t?a:t,a);if(z7(i)&&(n=i.constructor,(K7(n)&&(n===Pre||z7(n.prototype))||o5(n)&&null===(n=n[_re]))&&(n=void 0),n===Pre||void 0===n))return zee(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 Ire=new WeakMap;function Lre(e,t){return A3(this,void 0,void 0,(function(){var n,r,o,i;return O3(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Ire.get(e);if(null!=t)return t;var n=Nre(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=E_(C3(C3({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return one(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){var c=l.url,f=void 0===c?"":c,d=l.poster;one(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Ire.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 Rre=function(){function e(){this.title=hP("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 one(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Tp("body"),s=Tp('<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;A3(this,void 0,void 0,(function(){var o,i,a,u,s,l;return O3(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Nre(e).customUpload,c.label=1;case 1:c.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),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return one(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,Lre(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.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||!Wf.isCollapsed(t)||!!kO.getSelectedElems(e).some((function(t){var n=kO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),Mre=D8.PROPER,zre=RegExp.prototype,$re=zre.toString,Hre=G3(s9),Vre=N3((function(){return"/a/b"!=$re.call({source:"a",flags:"b"})})),Ure=Mre&&"toString"!=$re.name;function Wre(){return aee("w-e-insert-video")}(Vre||Ure)&&C8(RegExp.prototype,"toString",(function(){var e=J5(this),t=l7(e.source),n=e.flags;return"/"+t+"/"+l7(void 0===n&&u5(zre,e)&&!("flags"in zre)?Hre(e):n)}),{unsafe:!0});var qre=function(){function e(){this.title=hP("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Wre(),this.heightInputId=Wre(),this.buttonId=Wre()}return e.prototype.getSelectedVideoNode=function(e){return kO.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=k3(JT(hP("videoModule.width"),n,"auto"),2),a=i[0],u=Tp(i[1]),s=k3(JT(hP("videoModule.height"),r,"auto"),2),l=s[0],c=Tp(s[1]),f=k3(QT(o,hP("videoModule.ok")),1)[0];if(null==this.$content){var d=Tp("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",l=u?u.toString():"auto";e.restoreSelection(),vd.setNodes(e,{width:s,height:l},{match:function(e){return kO.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var g=h.width,v=void 0===g?"auto":g,y=h.height,m=void 0===y?"auto":y;return u.val(v),c.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),Gre={renderElems:[E7],elemsToHtml:[S7],preParseHtml:[L7],parseElemsHtml:[u9],menus:[{key:"insertVideo",factory:function(){return new ane},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Rre},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 qre}}],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=k3(e,2),o=t[0],i=t[1];return"video"===kO.getNodeType(o)&&kO.isLastNode(r,o)&&vd.insertNodes(r,kO.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};pP("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),pP("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Kre="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==u.g?u.g:"undefined"!=typeof self?self:{};function Yre(e){var t={exports:{}};return e(t,t.exports),t.exports}var Xre,Zre,Jre=function(e){return e&&e.Math==Math&&e},Qre=Jre("object"==typeof globalThis&&globalThis)||Jre("object"==typeof window&&window)||Jre("object"==typeof self&&self)||Jre("object"==typeof Kre&&Kre)||function(){return this}()||Function("return this")(),eoe=function(e){try{return!!e()}catch(e){return!0}},toe=!eoe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),noe=Function.prototype.call,roe=noe.bind?noe.bind(noe):function(){return noe.apply(noe,arguments)},ooe={}.propertyIsEnumerable,ioe=Object.getOwnPropertyDescriptor,aoe={f:ioe&&!ooe.call({1:2},1)?function(e){var t=ioe(this,e);return!!t&&t.enumerable}:ooe},uoe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},soe=Function.prototype,loe=soe.bind,coe=soe.call,foe=loe&&loe.bind(coe),doe=loe?function(e){return e&&foe(coe,e)}:function(e){return e&&function(){return coe.apply(e,arguments)}},poe=doe({}.toString),hoe=doe("".slice),goe=function(e){return hoe(poe(e),8,-1)},voe=Qre.Object,yoe=doe("".split),moe=eoe((function(){return!voe("z").propertyIsEnumerable(0)}))?function(e){return"String"==goe(e)?yoe(e,""):voe(e)}:voe,boe=Qre.TypeError,woe=function(e){if(null==e)throw boe("Can't call method on "+e);return e},xoe=function(e){return moe(woe(e))},Eoe=function(e){return"function"==typeof e},Soe=function(e){return"object"==typeof e?null!==e:Eoe(e)},Doe=function(e){return Eoe(e)?e:void 0},Coe=function(e,t){return arguments.length<2?Doe(Qre[e]):Qre[e]&&Qre[e][t]},Aoe=doe({}.isPrototypeOf),Ooe=Coe("navigator","userAgent")||"",koe=Qre.process,Boe=Qre.Deno,Foe=koe&&koe.versions||Boe&&Boe.version,Toe=Foe&&Foe.v8;Toe&&(Zre=(Xre=Toe.split("."))[0]>0&&Xre[0]<4?1:+(Xre[0]+Xre[1])),!Zre&&Ooe&&(!(Xre=Ooe.match(/Edge\/(\d+)/))||Xre[1]>=74)&&(Xre=Ooe.match(/Chrome\/(\d+)/))&&(Zre=+Xre[1]);var _oe=Zre,Poe=!!Object.getOwnPropertySymbols&&!eoe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_oe&&_oe<41})),joe=Poe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Noe=Qre.Object,Ioe=joe?function(e){return"symbol"==typeof e}:function(e){var t=Coe("Symbol");return Eoe(t)&&Aoe(t.prototype,Noe(e))},Loe=Qre.String,Roe=function(e){try{return Loe(e)}catch(e){return"Object"}},Moe=Qre.TypeError,zoe=function(e){if(Eoe(e))return e;throw Moe(Roe(e)+" is not a function")},$oe=function(e,t){var n=e[t];return null==n?void 0:zoe(n)},Hoe=Qre.TypeError,Voe=Object.defineProperty,Uoe=function(e,t){try{Voe(Qre,e,{value:t,configurable:!0,writable:!0})}catch(n){Qre[e]=t}return t},Woe=Qre["__core-js_shared__"]||Uoe("__core-js_shared__",{}),qoe=Yre((function(e){(e.exports=function(e,t){return Woe[e]||(Woe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Goe=Qre.Object,Koe=function(e){return Goe(woe(e))},Yoe=doe({}.hasOwnProperty),Xoe=Object.hasOwn||function(e,t){return Yoe(Koe(e),t)},Zoe=0,Joe=Math.random(),Qoe=doe(1..toString),eie=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Qoe(++Zoe+Joe,36)},tie=qoe("wks"),nie=Qre.Symbol,rie=nie&&nie.for,oie=joe?nie:nie&&nie.withoutSetter||eie,iie=function(e){if(!Xoe(tie,e)||!Poe&&"string"!=typeof tie[e]){var t="Symbol."+e;Poe&&Xoe(nie,e)?tie[e]=nie[e]:tie[e]=joe&&rie?rie(t):oie(t)}return tie[e]},aie=Qre.TypeError,uie=iie("toPrimitive"),sie=function(e){var t=function(e,t){if(!Soe(e)||Ioe(e))return e;var n,r=$oe(e,uie);if(r){if(void 0===t&&(t="default"),n=roe(r,e,t),!Soe(n)||Ioe(n))return n;throw aie("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Eoe(n=e.toString)&&!Soe(r=roe(n,e)))return r;if(Eoe(n=e.valueOf)&&!Soe(r=roe(n,e)))return r;if("string"!==t&&Eoe(n=e.toString)&&!Soe(r=roe(n,e)))return r;throw Hoe("Can't convert object to primitive value")}(e,t)}(e,"string");return Ioe(t)?t:t+""},lie=Qre.document,cie=Soe(lie)&&Soe(lie.createElement),fie=function(e){return cie?lie.createElement(e):{}},die=!toe&&!eoe((function(){return 7!=Object.defineProperty(fie("div"),"a",{get:function(){return 7}}).a})),pie=Object.getOwnPropertyDescriptor,hie={f:toe?pie:function(e,t){if(e=xoe(e),t=sie(t),die)try{return pie(e,t)}catch(e){}if(Xoe(e,t))return uoe(!roe(aoe.f,e,t),e[t])}},gie=Qre.String,vie=Qre.TypeError,yie=function(e){if(Soe(e))return e;throw vie(gie(e)+" is not an object")},mie=Qre.TypeError,bie=Object.defineProperty,wie={f:toe?bie:function(e,t,n){if(yie(e),t=sie(t),yie(n),die)try{return bie(e,t,n)}catch(e){}if("get"in n||"set"in n)throw mie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},xie=toe?function(e,t,n){return wie.f(e,t,uoe(1,n))}:function(e,t,n){return e[t]=n,e},Eie=doe(Function.toString);Eoe(Woe.inspectSource)||(Woe.inspectSource=function(e){return Eie(e)});var Sie,Die,Cie,Aie=Woe.inspectSource,Oie=Qre.WeakMap,kie=Eoe(Oie)&&/native code/.test(Aie(Oie)),Bie=qoe("keys"),Fie=function(e){return Bie[e]||(Bie[e]=eie(e))},Tie={},_ie=Qre.TypeError,Pie=Qre.WeakMap;if(kie||Woe.state){var jie=Woe.state||(Woe.state=new Pie),Nie=doe(jie.get),Iie=doe(jie.has),Lie=doe(jie.set);Sie=function(e,t){if(Iie(jie,e))throw new _ie("Object already initialized");return t.facade=e,Lie(jie,e,t),t},Die=function(e){return Nie(jie,e)||{}},Cie=function(e){return Iie(jie,e)}}else{var Rie=Fie("state");Tie[Rie]=!0,Sie=function(e,t){if(Xoe(e,Rie))throw new _ie("Object already initialized");return t.facade=e,xie(e,Rie,t),t},Die=function(e){return Xoe(e,Rie)?e[Rie]:{}},Cie=function(e){return Xoe(e,Rie)}}var Mie={set:Sie,get:Die,has:Cie,enforce:function(e){return Cie(e)?Die(e):Sie(e,{})},getterFor:function(e){return function(t){var n;if(!Soe(t)||(n=Die(t)).type!==e)throw _ie("Incompatible receiver, "+e+" required");return n}}},zie=Function.prototype,$ie=toe&&Object.getOwnPropertyDescriptor,Hie=Xoe(zie,"name"),Vie={EXISTS:Hie,PROPER:Hie&&"something"===function(){}.name,CONFIGURABLE:Hie&&(!toe||toe&&$ie(zie,"name").configurable)},Uie=Yre((function(e){var t=Vie.CONFIGURABLE,n=Mie.get,r=Mie.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Eoe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Xoe(i,"name")||t&&i.name!==f)&&xie(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Qre?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:xie(e,n,i)):l?e[n]=i:Uoe(n,i)})(Function.prototype,"toString",(function(){return Eoe(this)&&n(this).source||Aie(this)}))})),Wie=Math.ceil,qie=Math.floor,Gie=function(e){var t=+e;return t!=t||0===t?0:(t>0?qie:Wie)(t)},Kie=Math.max,Yie=Math.min,Xie=function(e,t){var n=Gie(e);return n<0?Kie(n+t,0):Yie(n,t)},Zie=Math.min,Jie=function(e){return e>0?Zie(Gie(e),9007199254740991):0},Qie=function(e){return Jie(e.length)},eae=function(e){return function(t,n,r){var o,i=xoe(t),a=Qie(i),u=Xie(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}},tae=(eae(!0),eae(!1)),nae=doe([].push),rae=function(e,t){var n,r=xoe(e),o=0,i=[];for(n in r)!Xoe(Tie,n)&&Xoe(r,n)&&nae(i,n);for(;t.length>o;)Xoe(r,n=t[o++])&&(~tae(i,n)||nae(i,n));return i},oae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],iae=oae.concat("length","prototype"),aae={f:Object.getOwnPropertyNames||function(e){return rae(e,iae)}},uae={f:Object.getOwnPropertySymbols},sae=doe([].concat),lae=Coe("Reflect","ownKeys")||function(e){var t=aae.f(yie(e)),n=uae.f;return n?sae(t,n(e)):t},cae=function(e,t){for(var n=lae(t),r=wie.f,o=hie.f,i=0;i<n.length;i++){var a=n[i];Xoe(e,a)||r(e,a,o(t,a))}},fae=/#|\.prototype\./,dae=function(e,t){var n=hae[pae(e)];return n==vae||n!=gae&&(Eoe(t)?eoe(t):!!t)},pae=dae.normalize=function(e){return String(e).replace(fae,".").toLowerCase()},hae=dae.data={},gae=dae.NATIVE="N",vae=dae.POLYFILL="P",yae=dae,mae=hie.f,bae=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Qre:l?Qre[u]||Uoe(u,{}):(Qre[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=mae(n,r))&&a.value:n[r],!yae(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;cae(i,o)}(e.sham||o&&o.sham)&&xie(i,"sham",!0),Uie(n,r,i,e)}},wae=Array.isArray||function(e){return"Array"==goe(e)},xae={};xae[iie("toStringTag")]="z";var Eae="[object z]"===String(xae),Sae=iie("toStringTag"),Dae=Qre.Object,Cae="Arguments"==goe(function(){return arguments}()),Aae=Eae?goe: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=Dae(e),Sae))?n:Cae?goe(t):"Object"==(r=goe(t))&&Eoe(t.callee)?"Arguments":r},Oae=function(){},kae=[],Bae=Coe("Reflect","construct"),Fae=/^\s*(?:class|function)\b/,Tae=doe(Fae.exec),_ae=!Fae.exec(Oae),Pae=function(e){if(!Eoe(e))return!1;try{return Bae(Oae,kae,e),!0}catch(e){return!1}},jae=!Bae||eoe((function(){var e;return Pae(Pae.call)||!Pae(Object)||!Pae((function(){e=!0}))||e}))?function(e){if(!Eoe(e))return!1;switch(Aae(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return _ae||!!Tae(Fae,Aie(e))}:Pae,Nae=function(e,t,n){var r=sie(t);r in e?wie.f(e,r,uoe(0,n)):e[r]=n},Iae=iie("species"),Lae=doe([].slice),Rae=_oe>=51||!eoe((function(){var e=[];return(e.constructor={})[Iae]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Mae=iie("species"),zae=Qre.Array,$ae=Math.max;bae({target:"Array",proto:!0,forced:!Rae},{slice:function(e,t){var n,r,o,i=xoe(this),a=Qie(i),u=Xie(e,a),s=Xie(void 0===t?a:t,a);if(wae(i)&&(n=i.constructor,(jae(n)&&(n===zae||wae(n.prototype))||Soe(n)&&null===(n=n[Mae]))&&(n=void 0),n===zae||void 0===n))return Lae(i,u,s);for(r=new(void 0===n?zae:n)($ae(s-u,0)),o=0;u<s;u++,o++)u in i&&Nae(r,o,i[u]);return r.length=o,r}});var Hae=Eae?{}.toString:function(){return"[object "+Aae(this)+"]"};Eae||Uie(Object.prototype,"toString",Hae,{unsafe:!0});var Vae,Uae=Qre.String,Wae=function(e){if("Symbol"===Aae(e))throw TypeError("Cannot convert a Symbol value to a string");return Uae(e)},qae=function(){var e=yie(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},Gae=Qre.RegExp,Kae=eoe((function(){var e=Gae("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Yae=Kae||eoe((function(){return!Gae("a","y").sticky})),Xae={BROKEN_CARET:Kae||eoe((function(){var e=Gae("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Yae,UNSUPPORTED_Y:Kae},Zae=Object.keys||function(e){return rae(e,oae)},Jae=toe?Object.defineProperties:function(e,t){yie(e);for(var n,r=xoe(t),o=Zae(t),i=o.length,a=0;i>a;)wie.f(e,n=o[a++],r[n]);return e},Qae=Coe("document","documentElement"),eue=Fie("IE_PROTO"),tue=function(){},nue=function(e){return"<script>"+e+"<\/script>"},rue=function(e){e.write(nue("")),e.close();var t=e.parentWindow.Object;return e=null,t},oue=function(){try{Vae=new ActiveXObject("htmlfile")}catch(e){}var e,t;oue="undefined"!=typeof document?document.domain&&Vae?rue(Vae):((t=fie("iframe")).style.display="none",Qae.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(nue("document.F=Object")),e.close(),e.F):rue(Vae);for(var n=oae.length;n--;)delete oue.prototype[oae[n]];return oue()};Tie[eue]=!0;var iue,aue,uue=Object.create||function(e,t){var n;return null!==e?(tue.prototype=yie(e),n=new tue,tue.prototype=null,n[eue]=e):n=oue(),void 0===t?n:Jae(n,t)},sue=Qre.RegExp,lue=eoe((function(){var e=sue(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),cue=Qre.RegExp,fue=eoe((function(){var e=cue("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),due=Mie.get,pue=qoe("native-string-replace",String.prototype.replace),hue=RegExp.prototype.exec,gue=hue,vue=doe("".charAt),yue=doe("".indexOf),mue=doe("".replace),bue=doe("".slice),wue=(aue=/b*/g,roe(hue,iue=/a/,"a"),roe(hue,aue,"a"),0!==iue.lastIndex||0!==aue.lastIndex),xue=Xae.BROKEN_CARET,Eue=void 0!==/()??/.exec("")[1];(wue||Eue||xue||lue||fue)&&(gue=function(e){var t,n,r,o,i,a,u,s=this,l=due(s),c=Wae(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=roe(gue,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=xue&&s.sticky,h=roe(qae,s),g=s.source,v=0,y=c;if(p&&(h=mue(h,"y",""),-1===yue(h,"g")&&(h+="g"),y=bue(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==vue(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Eue&&(n=new RegExp("^"+g+"$(?!\\s)",h)),wue&&(r=s.lastIndex),o=roe(hue,p?n:s,y),p?o?(o.input=bue(o.input,v),o[0]=bue(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:wue&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Eue&&o&&o.length>1&&roe(pue,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=uue(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Sue=gue;bae({target:"RegExp",proto:!0,forced:/./.exec!==Sue},{exec:Sue});var Due=Function.prototype,Cue=Due.apply,Aue=Due.bind,Oue=Due.call,kue="object"==typeof Reflect&&Reflect.apply||(Aue?Oue.bind(Cue):function(){return Oue.apply(Cue,arguments)}),Bue=iie("species"),Fue=RegExp.prototype,Tue=iie("match"),_ue=Qre.TypeError,Pue=iie("species"),jue=function(e,t){var n,r=yie(e).constructor;return void 0===r||null==(n=yie(r)[Pue])?t:function(e){if(jae(e))return e;throw _ue(Roe(e)+" is not a constructor")}(n)},Nue=doe("".charAt),Iue=doe("".charCodeAt),Lue=doe("".slice),Rue=function(e){return function(t,n){var r,o,i=Wae(woe(t)),a=Gie(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Iue(i,a))<55296||r>56319||a+1===u||(o=Iue(i,a+1))<56320||o>57343?e?Nue(i,a):r:e?Lue(i,a,a+2):o-56320+(r-55296<<10)+65536}},Mue={codeAt:Rue(!1),charAt:Rue(!0)},zue=Mue.charAt,$ue=function(e,t,n){return t+(n?zue(e,t).length:1)},Hue=Qre.Array,Vue=Math.max,Uue=function(e,t,n){for(var r=Qie(e),o=Xie(t,r),i=Xie(void 0===n?r:n,r),a=Hue(Vue(i-o,0)),u=0;o<i;o++,u++)Nae(a,u,e[o]);return a.length=u,a},Wue=Qre.TypeError,que=function(e,t){var n=e.exec;if(Eoe(n)){var r=roe(n,e,t);return null!==r&&yie(r),r}if("RegExp"===goe(e))return roe(Sue,e,t);throw Wue("RegExp#exec called on incompatible receiver")},Gue=Xae.UNSUPPORTED_Y,Kue=Math.min,Yue=[].push,Xue=doe(/./.exec),Zue=doe(Yue),Jue=doe("".slice);!function(e,t,n,r){var o=iie(e),i=!eoe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!eoe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Bue]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=doe(/./[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=Wae(woe(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Soe(r=e)||!(void 0!==(o=r[Tue])?o:"RegExp"==goe(r)))return roe(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=roe(Sue,p,i))&&!((s=p.lastIndex)>d&&(Zue(c,Jue(i,d,u.index)),u.length>1&&u.index<i.length&&kue(Yue,c,Uue(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&Xue(p,"")||Zue(c,""):Zue(c,Jue(i,d)),c.length>a?Uue(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:roe(t,this,e,n)}:t,[function(t,n){var o=woe(this),i=null==t?void 0:$oe(t,e);return i?roe(i,t,o,n):roe(r,Wae(o),t,n)},function(e,o){var i=yie(this),a=Wae(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=jue(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Gue?"g":"y"),f=new s(Gue?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===que(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=Gue?0:h;var v,y=que(f,Gue?Jue(a,h):a);if(null===y||(v=Kue(Jie(f.lastIndex+(Gue?h:0)),a.length))===p)h=$ue(a,h,l);else{if(Zue(g,Jue(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(Zue(g,y[m]),g.length===d)return g;h=p=v}}return Zue(g,Jue(a,p)),g}]}(o,""[e],(function(e,t,n,r,o){var a=doe(e),s=t.exec;return s===Sue||s===Fue.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Uie(String.prototype,e,s[0]),Uie(Fue,o,s[1])}r&&xie(Fue[o],"sham",!0)}("split",0,!!eoe((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]})),Gue);
111
+ /*! *****************************************************************************
112
+ Copyright (c) Microsoft Corporation.
113
+
114
+ Permission to use, copy, modify, and/or distribute this software for any
115
+ purpose with or without fee is hereby granted.
116
+
117
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
118
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
119
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
120
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
121
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
122
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
123
+ PERFORMANCE OF THIS SOFTWARE.
124
+ ***************************************************************************** */
125
+ var Que=function(){return Que=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},Que.apply(this,arguments)};function ese(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 tse(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 nse=iie("unscopables"),rse=Array.prototype;null==rse[nse]&&wie.f(rse,nse,{configurable:!0,value:uue(null)});var ose,ise,ase,use=function(e){rse[nse][e]=!0},sse={},lse=!eoe((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),cse=Fie("IE_PROTO"),fse=Qre.Object,dse=fse.prototype,pse=lse?fse.getPrototypeOf:function(e){var t=Koe(e);if(Xoe(t,cse))return t[cse];var n=t.constructor;return Eoe(n)&&t instanceof n?n.prototype:t instanceof fse?dse:null},hse=iie("iterator"),gse=!1;[].keys&&("next"in(ase=[].keys())?(ise=pse(pse(ase)))!==Object.prototype&&(ose=ise):gse=!0);var vse=null==ose||eoe((function(){var e={};return ose[hse].call(e)!==e}));vse&&(ose={}),Eoe(ose[hse])||Uie(ose,hse,(function(){return this}));var yse={IteratorPrototype:ose,BUGGY_SAFARI_ITERATORS:gse},mse=wie.f,bse=iie("toStringTag"),wse=function(e,t,n){e&&!Xoe(e=n?e:e.prototype,bse)&&mse(e,bse,{configurable:!0,value:t})},xse=yse.IteratorPrototype,Ese=function(){return this},Sse=Qre.String,Dse=Qre.TypeError,Cse=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=doe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return yie(n),function(e){if("object"==typeof e||Eoe(e))return e;throw Dse("Can't set "+Sse(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Ase=Vie.PROPER,Ose=Vie.CONFIGURABLE,kse=yse.IteratorPrototype,Bse=yse.BUGGY_SAFARI_ITERATORS,Fse=iie("iterator"),Tse=function(){return this},_se=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=uue(xse,{next:uoe(1,n)}),wse(e,o,!1),sse[o]=Ese}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!Bse&&e in p)return p[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",d=!1,p=e.prototype,h=p[Fse]||p["@@iterator"]||o&&p[o],g=!Bse&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=pse(v.call(new e)))!==Object.prototype&&u.next&&(pse(u)!==kse&&(Cse?Cse(u,kse):Eoe(u[Fse])||Uie(u,Fse,Tse)),wse(u,f,!0)),Ase&&"values"==o&&h&&"values"!==h.name&&(Ose?xie(p,"name","values"):(d=!0,g=function(){return roe(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Bse||d||!(l in p))&&Uie(p,l,s[l]);else bae({target:t,proto:!0,forced:Bse||d},s);return p[Fse]!==g&&Uie(p,Fse,g,{name:o}),sse[t]=g,s},Pse=Mie.set,jse=Mie.getterFor("Array Iterator"),Nse=_se(Array,"Array",(function(e,t){Pse(this,{type:"Array Iterator",target:xoe(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");sse.Arguments=sse.Array,use("keys"),use("values"),use("entries");var Ise=Mue.charAt,Lse=Mie.set,Rse=Mie.getterFor("String Iterator");_se(String,"String",(function(e){Lse(this,{type:"String Iterator",string:Wae(e),index:0})}),(function(){var e,t=Rse(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Ise(n,r),t.index+=e.length,{value:e,done:!1})}));var Mse=function(e,t,n){for(var r in t)Uie(e,r,t[r],n);return e},zse=aae.f,$se="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Hse={f:function(e){return $se&&"Window"==goe(e)?function(e){try{return zse(e)}catch(e){return Uue($se)}}(e):zse(xoe(e))}},Vse=eoe((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Use=Object.isExtensible,Wse=eoe((function(){Use(1)}))||Vse?function(e){return!!Soe(e)&&(!Vse||"ArrayBuffer"!=goe(e))&&(!Use||Use(e))}:Use,qse=!eoe((function(){return Object.isExtensible(Object.preventExtensions({}))})),Gse=Yre((function(e){var t=wie.f,n=!1,r=eie("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=aae.f,t=doe([].splice),o={};o[r]=1,e(o).length&&(aae.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},bae({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Hse.f}))},fastKey:function(e,t){if(!Soe(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Xoe(e,r)){if(!Wse(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Xoe(e,r)){if(!Wse(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return qse&&n&&Wse(e)&&!Xoe(e,r)&&i(e),e}};Tie[r]=!0})),Kse=doe(doe.bind),Yse=function(e,t){return zoe(e),void 0===t?e:Kse?Kse(e,t):function(){return e.apply(t,arguments)}},Xse=iie("iterator"),Zse=Array.prototype,Jse=iie("iterator"),Qse=function(e){if(null!=e)return $oe(e,Jse)||$oe(e,"@@iterator")||sse[Aae(e)]},ele=Qre.TypeError,tle=function(e,t,n){var r,o;yie(e);try{if(!(r=$oe(e,"return"))){if("throw"===t)throw n;return n}r=roe(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return yie(r),n},nle=Qre.TypeError,rle=function(e,t){this.stopped=e,this.result=t},ole=rle.prototype,ile=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=Yse(t,f),v=function(e){return r&&tle(r,"normal",e),new rle(!0,e)},y=function(e){return d?(yie(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=Qse(e)))throw nle(Roe(e)+" is not iterable");if(void 0!==(c=o)&&(sse.Array===c||Zse[Xse]===c)){for(i=0,a=Qie(e);a>i;i++)if((u=y(e[i]))&&Aoe(ole,u))return u;return new rle(!1)}r=function(e,t){var n=arguments.length<2?Qse(e):t;if(zoe(n))return yie(roe(n,e));throw ele(Roe(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=roe(s,r)).done;){try{u=y(l.value)}catch(e){tle(r,"throw",e)}if("object"==typeof u&&u&&Aoe(ole,u))return u}return new rle(!1)},ale=Qre.TypeError,ule=function(e,t){if(Aoe(t,e))return e;throw ale("Incorrect invocation")},sle=iie("iterator"),lle=!1;try{var cle=0,fle={next:function(){return{done:!!cle++}},return:function(){lle=!0}};fle[sle]=function(){return this},Array.from(fle,(function(){throw 2}))}catch(zl){}var dle=function(e,t){if(!t&&!lle)return!1;var n=!1;try{var r={};r[sle]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},ple=iie("species"),hle=Qre.Array,gle=function(e,t){return new(function(e){var t;return wae(e)&&(t=e.constructor,(jae(t)&&(t===hle||wae(t.prototype))||Soe(t)&&null===(t=t[ple]))&&(t=void 0)),void 0===t?hle:t}(e))(0===t?0:t)},vle=doe([].push),yle=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,l,c,f){for(var d,p,h=Koe(s),g=moe(h),v=Yse(l,c),y=Qie(g),m=0,b=f||gle,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:vle(w,d)}else switch(e){case 4:return!1;case 7:vle(w,d)}return i?-1:r||o?o:w}},mle={forEach:yle(0),map:yle(1),filter:yle(2),some:yle(3),every:yle(4),find:yle(5),findIndex:yle(6),filterReject:yle(7)},ble=Gse.getWeakData,wle=Mie.set,xle=Mie.getterFor,Ele=mle.find,Sle=mle.findIndex,Dle=doe([].splice),Cle=0,Ale=function(e){return e.frozen||(e.frozen=new Ole)},Ole=function(){this.entries=[]},kle=function(e,t){return Ele(e.entries,(function(e){return e[0]===t}))};Ole.prototype={get:function(e){var t=kle(this,e);if(t)return t[1]},has:function(e){return!!kle(this,e)},set:function(e,t){var n=kle(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Sle(this.entries,(function(t){return t[0]===e}));return~t&&Dle(this.entries,t,1),!!~t}};var Ble,Fle={getConstructor:function(e,t,n,r){var o=e((function(e,o){ule(e,i),wle(e,{type:t,id:Cle++,frozen:void 0}),null!=o&&ile(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=xle(t),u=function(e,t,n){var r=a(e),o=ble(yie(t),!0);return!0===o?Ale(r).set(t,n):o[r.id]=n,e};return Mse(i,{delete:function(e){var t=a(this);if(!Soe(e))return!1;var n=ble(e);return!0===n?Ale(t).delete(e):n&&Xoe(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Soe(e))return!1;var n=ble(e);return!0===n?Ale(t).has(e):n&&Xoe(n,t.id)}}),Mse(i,n?{get:function(e){var t=a(this);if(Soe(e)){var n=ble(e);return!0===n?Ale(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}},Tle=Mie.enforce,_le=!Qre.ActiveXObject&&"ActiveXObject"in Qre,Ple=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},jle=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Qre[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=doe(u[e]);Uie(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Soe(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Soe(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Soe(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(yae(e,!Eoe(a)||!(o||u.forEach&&!eoe((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Gse.enable();else if(yae(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=eoe((function(){f.has(1)})),h=dle((function(e){new a(e)})),g=!o&&eoe((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){ule(e,u);var n=function(e,t,n){var r,o;return Cse&&Eoe(r=t.constructor)&&r!==n&&Soe(o=r.prototype)&&o!==n.prototype&&Cse(e,o),e}(new a,e,s);return null!=t&&ile(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,bae({global:!0,forced:s!=a},l),wse(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Ple,Fle);if(kie&&_le){Ble=Fle.getConstructor(Ple,"WeakMap",!0),Gse.enable();var Nle=jle.prototype,Ile=doe(Nle.delete),Lle=doe(Nle.has),Rle=doe(Nle.get),Mle=doe(Nle.set);Mse(Nle,{delete:function(e){if(Soe(e)&&!Wse(e)){var t=Tle(this);return t.frozen||(t.frozen=new Ble),Ile(this,e)||t.frozen.delete(e)}return Ile(this,e)},has:function(e){if(Soe(e)&&!Wse(e)){var t=Tle(this);return t.frozen||(t.frozen=new Ble),Lle(this,e)||t.frozen.has(e)}return Lle(this,e)},get:function(e){if(Soe(e)&&!Wse(e)){var t=Tle(this);return t.frozen||(t.frozen=new Ble),Lle(this,e)?Rle(this,e):t.frozen.get(e)}return Rle(this,e)},set:function(e,t){if(Soe(e)&&!Wse(e)){var n=Tle(this);n.frozen||(n.frozen=new Ble),Lle(this,e)?Mle(this,e,t):n.frozen.set(e,t)}else Mle(this,e,t);return this}})}var zle={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},$le=fie("span").classList,Hle=$le&&$le.constructor&&$le.constructor.prototype,Vle=Hle===Object.prototype?void 0:Hle,Ule=iie("iterator"),Wle=iie("toStringTag"),qle=Nse.values,Gle=function(e,t){if(e){if(e[Ule]!==qle)try{xie(e,Ule,qle)}catch(t){e[Ule]=qle}if(e[Wle]||xie(e,Wle,t),zle[t])for(var n in Nse)if(e[n]!==Nse[n])try{xie(e,n,Nse[n])}catch(t){e[n]=Nse[n]}}};for(var Kle in zle)Gle(Qre[Kle]&&Qre[Kle].prototype,Kle);Gle(Vle,"DOMTokenList");var Yle=function(e,t){var n=[][e];return!!n&&eoe((function(){n.call(null,t||function(){throw 1},1)}))},Xle=mle.forEach,Zle=Yle("forEach")?[].forEach:function(e){return Xle(this,e,arguments.length>1?arguments[1]:void 0)},Jle=function(e){if(e&&e.forEach!==Zle)try{xie(e,"forEach",Zle)}catch(t){e.forEach=Zle}};for(var Qle in zle)zle[Qle]&&Jle(Qre[Qle]&&Qre[Qle].prototype);Jle(Vle);var ece,tce,nce,rce,oce=Qre.Promise,ice=iie("species"),ace=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ooe),uce="process"==goe(Qre.process),sce=Qre.setImmediate,lce=Qre.clearImmediate,cce=Qre.process,fce=Qre.Dispatch,dce=Qre.Function,pce=Qre.MessageChannel,hce=Qre.String,gce=0,vce={};try{ece=Qre.location}catch(zl){}var yce=function(e){if(Xoe(vce,e)){var t=vce[e];delete vce[e],t()}},mce=function(e){return function(){yce(e)}},bce=function(e){yce(e.data)},wce=function(e){Qre.postMessage(hce(e),ece.protocol+"//"+ece.host)};sce&&lce||(sce=function(e){var t=Lae(arguments,1);return vce[++gce]=function(){kue(Eoe(e)?e:dce(e),void 0,t)},tce(gce),gce},lce=function(e){delete vce[e]},uce?tce=function(e){cce.nextTick(mce(e))}:fce&&fce.now?tce=function(e){fce.now(mce(e))}:pce&&!ace?(rce=(nce=new pce).port2,nce.port1.onmessage=bce,tce=Yse(rce.postMessage,rce)):Qre.addEventListener&&Eoe(Qre.postMessage)&&!Qre.importScripts&&ece&&"file:"!==ece.protocol&&!eoe(wce)?(tce=wce,Qre.addEventListener("message",bce,!1)):tce="onreadystatechange"in fie("script")?function(e){Qae.appendChild(fie("script")).onreadystatechange=function(){Qae.removeChild(this),yce(e)}}:function(e){setTimeout(mce(e),0)});var xce,Ece,Sce,Dce,Cce,Ace,Oce,kce,Bce={set:sce,clear:lce},Fce=/ipad|iphone|ipod/i.test(Ooe)&&void 0!==Qre.Pebble,Tce=/web0s(?!.*chrome)/i.test(Ooe),_ce=hie.f,Pce=Bce.set,jce=Qre.MutationObserver||Qre.WebKitMutationObserver,Nce=Qre.document,Ice=Qre.process,Lce=Qre.Promise,Rce=_ce(Qre,"queueMicrotask"),Mce=Rce&&Rce.value;Mce||(xce=function(){var e,t;for(uce&&(e=Ice.domain)&&e.exit();Ece;){t=Ece.fn,Ece=Ece.next;try{t()}catch(e){throw Ece?Dce():Sce=void 0,e}}Sce=void 0,e&&e.enter()},ace||uce||Tce||!jce||!Nce?!Fce&&Lce&&Lce.resolve?((Oce=Lce.resolve(void 0)).constructor=Lce,kce=Yse(Oce.then,Oce),Dce=function(){kce(xce)}):uce?Dce=function(){Ice.nextTick(xce)}:(Pce=Yse(Pce,Qre),Dce=function(){Pce(xce)}):(Cce=!0,Ace=Nce.createTextNode(""),new jce(xce).observe(Ace,{characterData:!0}),Dce=function(){Ace.data=Cce=!Cce}));var zce,$ce,Hce,Vce,Uce=Mce||function(e){var t={fn:e,next:void 0};Sce&&(Sce.next=t),Ece||(Ece=t,Dce()),Sce=t},Wce=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=zoe(t),this.reject=zoe(n)},qce={f:function(e){return new Wce(e)}},Gce=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Kce="object"==typeof window,Yce=Bce.set,Xce=iie("species"),Zce="Promise",Jce=Mie.getterFor(Zce),Qce=Mie.set,efe=Mie.getterFor(Zce),tfe=oce&&oce.prototype,nfe=oce,rfe=tfe,ofe=Qre.TypeError,ife=Qre.document,afe=Qre.process,ufe=qce.f,sfe=ufe,lfe=!!(ife&&ife.createEvent&&Qre.dispatchEvent),cfe=Eoe(Qre.PromiseRejectionEvent),ffe=!1,dfe=yae(Zce,(function(){var e=Aie(nfe),t=e!==String(nfe);if(!t&&66===_oe)return!0;if(_oe>=51&&/native code/.test(e))return!1;var n=new nfe((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Xce]=r,!(ffe=n.then((function(){}))instanceof r)||!t&&Kce&&!cfe})),pfe=dfe||!dle((function(e){nfe.all(e).catch((function(){}))})),hfe=function(e){var t;return!(!Soe(e)||!Eoe(t=e.then))&&t},gfe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Uce((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&bfe(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(ofe("Promise-chain cycle")):(u=hfe(a))?roe(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&yfe(e)}))}},vfe=function(e,t,n){var r,o;lfe?((r=ife.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Qre.dispatchEvent(r)):r={promise:t,reason:n},!cfe&&(o=Qre["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Qre.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},yfe=function(e){roe(Yce,Qre,(function(){var t,n=e.facade,r=e.value;if(mfe(e)&&(t=Gce((function(){uce?afe.emit("unhandledRejection",r,n):vfe("unhandledrejection",n,r)})),e.rejection=uce||mfe(e)?2:1,t.error))throw t.value}))},mfe=function(e){return 1!==e.rejection&&!e.parent},bfe=function(e){roe(Yce,Qre,(function(){var t=e.facade;uce?afe.emit("rejectionHandled",t):vfe("rejectionhandled",t,e.value)}))},wfe=function(e,t,n){return function(r){e(t,r,n)}},xfe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,gfe(e,!0))},Efe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw ofe("Promise can't be resolved itself");var r=hfe(t);r?Uce((function(){var n={done:!1};try{roe(r,t,wfe(Efe,n,e),wfe(xfe,n,e))}catch(t){xfe(n,t,e)}})):(e.value=t,e.state=1,gfe(e,!1))}catch(t){xfe({done:!1},t,e)}}};if(dfe&&(rfe=(nfe=function(e){ule(this,rfe),zoe(e),roe(zce,this);var t=Jce(this);try{e(wfe(Efe,t),wfe(xfe,t))}catch(e){xfe(t,e)}}).prototype,(zce=function(e){Qce(this,{type:Zce,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Mse(rfe,{then:function(e,t){var n=efe(this),r=n.reactions,o=ufe(jue(this,nfe));return o.ok=!Eoe(e)||e,o.fail=Eoe(t)&&t,o.domain=uce?afe.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&gfe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),$ce=function(){var e=new zce,t=Jce(e);this.promise=e,this.resolve=wfe(Efe,t),this.reject=wfe(xfe,t)},qce.f=ufe=function(e){return e===nfe||e===Hce?new $ce(e):sfe(e)},Eoe(oce)&&tfe!==Object.prototype)){Vce=tfe.then,ffe||(Uie(tfe,"then",(function(e,t){var n=this;return new nfe((function(e,t){roe(Vce,n,e,t)})).then(e,t)}),{unsafe:!0}),Uie(tfe,"catch",rfe.catch,{unsafe:!0}));try{delete tfe.constructor}catch(zl){}Cse&&Cse(tfe,rfe)}bae({global:!0,wrap:!0,forced:dfe},{Promise:nfe}),wse(nfe,Zce,!1),function(e){var t=Coe("Promise"),n=wie.f;toe&&t&&!t[ice]&&n(t,ice,{configurable:!0,get:function(){return this}})}(),Hce=Coe(Zce),bae({target:Zce,stat:!0,forced:dfe},{reject:function(e){var t=ufe(this);return roe(t.reject,void 0,e),t.promise}}),bae({target:Zce,stat:!0,forced:dfe},{resolve:function(e){return function(e,t){if(yie(e),Soe(t)&&t.constructor===e)return t;var n=qce.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),bae({target:Zce,stat:!0,forced:pfe},{all:function(e){var t=this,n=ufe(t),r=n.resolve,o=n.reject,i=Gce((function(){var n=zoe(t.resolve),i=[],a=0,u=1;ile(e,(function(e){var s=a++,l=!1;u++,roe(n,t,e).then((function(e){l||(l=!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=ufe(t),r=n.reject,o=Gce((function(){var o=zoe(t.resolve);ile(e,(function(e){roe(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Sfe=Vie.PROPER,Dfe=RegExp.prototype,Cfe=Dfe.toString,Afe=doe(qae),Ofe=eoe((function(){return"/a/b"!=Cfe.call({source:"a",flags:"b"})})),kfe=Sfe&&"toString"!=Cfe.name;(Ofe||kfe)&&Uie(RegExp.prototype,"toString",(function(){var e=yie(this),t=Wae(e.source),n=e.flags;return"/"+t+"/"+Wae(void 0===n&&Aoe(Dfe,e)&&!("flags"in Dfe)?Afe(e):n)}),{unsafe:!0});var Bfe=Vie.EXISTS,Ffe=wie.f,Tfe=Function.prototype,_fe=doe(Tfe.toString),Pfe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,jfe=doe(Pfe.exec);toe&&!Bfe&&Ffe(Tfe,"name",{configurable:!0,get:function(){try{return jfe(Pfe,_fe(this))[1]}catch(e){return""}}});var Nfe=new WeakMap;function Ife(e){return e.getMenuConfig("uploadImage")}function Lfe(e,t){return ese(this,void 0,void 0,(function(){return tse(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;f$(e,i,t.name,a),n("ok")}}}))]}))}))}function Rfe(e,t){return ese(this,void 0,void 0,(function(){var n,r,o,i;return tse(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Nfe.get(e);if(null!=t)return t;var n=Ife(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=E_(Que(Que({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return f$(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;f$(e,r,i,void 0===a?"":a)}));else{var c=l.url,f=void 0===c?"":c,d=l.alt,p=void 0===d?"":d,h=l.href;f$(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Nfe.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 Mfe(e,t){var n,r;return ese(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return tse(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Ife(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.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),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,Lfe(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return f$(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Rfe(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.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 zfe=doe([].join),$fe=moe!=Object,Hfe=Yle("join",",");bae({target:"Array",proto:!0,forced:$fe||!Hfe},{join:function(e){return zfe(xoe(this),void 0===e?",":e)}}),Jp&&(Tp.fn.append=Jp),Mp&&(Tp.fn.on=Mp),oh&&(Tp.fn.remove=oh),Rp&&(Tp.fn.val=Rp),sh&&(Tp.fn.click=sh),Up&&(Tp.fn.hide=Up);var Vfe=function(){function e(){this.title=hP("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 d$(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 f$(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Tp("body"),s=Tp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;Mfe(e,t)}))}},e}(),Ufe={menus:[{key:"uploadImage",factory:function(){return new Vfe},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(d$(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]}))?Mfe(e,o):t(r)}},n}};pP("en",{highLightModule:{selectLang:"Language"}}),pP("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Wfe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==u.g?u.g:"undefined"!=typeof self?self:{};function qfe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Gfe,Kfe,Yfe=function(e){return e&&e.Math==Math&&e},Xfe=Yfe("object"==typeof globalThis&&globalThis)||Yfe("object"==typeof window&&window)||Yfe("object"==typeof self&&self)||Yfe("object"==typeof Wfe&&Wfe)||function(){return this}()||Function("return this")(),Zfe=Object.defineProperty,Jfe=function(e,t){try{Zfe(Xfe,e,{value:t,configurable:!0,writable:!0})}catch(n){Xfe[e]=t}return t},Qfe=Xfe["__core-js_shared__"]||Jfe("__core-js_shared__",{}),ede=qfe((function(e){(e.exports=function(e,t){return Qfe[e]||(Qfe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),tde=Function.prototype,nde=tde.bind,rde=tde.call,ode=nde&&nde.bind(rde),ide=nde?function(e){return e&&ode(rde,e)}:function(e){return e&&function(){return rde.apply(e,arguments)}},ade=Xfe.TypeError,ude=function(e){if(null==e)throw ade("Can't call method on "+e);return e},sde=Xfe.Object,lde=function(e){return sde(ude(e))},cde=ide({}.hasOwnProperty),fde=Object.hasOwn||function(e,t){return cde(lde(e),t)},dde=0,pde=Math.random(),hde=ide(1..toString),gde=function(e){return"Symbol("+(void 0===e?"":e)+")_"+hde(++dde+pde,36)},vde=function(e){return"function"==typeof e},yde=function(e){return vde(e)?e:void 0},mde=function(e,t){return arguments.length<2?yde(Xfe[e]):Xfe[e]&&Xfe[e][t]},bde=mde("navigator","userAgent")||"",wde=Xfe.process,xde=Xfe.Deno,Ede=wde&&wde.versions||xde&&xde.version,Sde=Ede&&Ede.v8;Sde&&(Kfe=(Gfe=Sde.split("."))[0]>0&&Gfe[0]<4?1:+(Gfe[0]+Gfe[1])),!Kfe&&bde&&(!(Gfe=bde.match(/Edge\/(\d+)/))||Gfe[1]>=74)&&(Gfe=bde.match(/Chrome\/(\d+)/))&&(Kfe=+Gfe[1]);var Dde=Kfe,Cde=function(e){try{return!!e()}catch(e){return!0}},Ade=!!Object.getOwnPropertySymbols&&!Cde((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Dde&&Dde<41})),Ode=Ade&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,kde=ede("wks"),Bde=Xfe.Symbol,Fde=Bde&&Bde.for,Tde=Ode?Bde:Bde&&Bde.withoutSetter||gde,_de=function(e){if(!fde(kde,e)||!Ade&&"string"!=typeof kde[e]){var t="Symbol."+e;Ade&&fde(Bde,e)?kde[e]=Bde[e]:kde[e]=Ode&&Fde?Fde(t):Tde(t)}return kde[e]},Pde={};Pde[_de("toStringTag")]="z";var jde="[object z]"===String(Pde),Nde=!Cde((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Ide=function(e){return"object"==typeof e?null!==e:vde(e)},Lde=Xfe.document,Rde=Ide(Lde)&&Ide(Lde.createElement),Mde=function(e){return Rde?Lde.createElement(e):{}},zde=!Nde&&!Cde((function(){return 7!=Object.defineProperty(Mde("div"),"a",{get:function(){return 7}}).a})),$de=Xfe.String,Hde=Xfe.TypeError,Vde=function(e){if(Ide(e))return e;throw Hde($de(e)+" is not an object")},Ude=Function.prototype.call,Wde=Ude.bind?Ude.bind(Ude):function(){return Ude.apply(Ude,arguments)},qde=ide({}.isPrototypeOf),Gde=Xfe.Object,Kde=Ode?function(e){return"symbol"==typeof e}:function(e){var t=mde("Symbol");return vde(t)&&qde(t.prototype,Gde(e))},Yde=Xfe.String,Xde=function(e){try{return Yde(e)}catch(e){return"Object"}},Zde=Xfe.TypeError,Jde=function(e){if(vde(e))return e;throw Zde(Xde(e)+" is not a function")},Qde=function(e,t){var n=e[t];return null==n?void 0:Jde(n)},epe=Xfe.TypeError,tpe=Xfe.TypeError,npe=_de("toPrimitive"),rpe=function(e){var t=function(e,t){if(!Ide(e)||Kde(e))return e;var n,r=Qde(e,npe);if(r){if(void 0===t&&(t="default"),n=Wde(r,e,t),!Ide(n)||Kde(n))return n;throw tpe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&vde(n=e.toString)&&!Ide(r=Wde(n,e)))return r;if(vde(n=e.valueOf)&&!Ide(r=Wde(n,e)))return r;if("string"!==t&&vde(n=e.toString)&&!Ide(r=Wde(n,e)))return r;throw epe("Can't convert object to primitive value")}(e,t)}(e,"string");return Kde(t)?t:t+""},ope=Xfe.TypeError,ipe=Object.defineProperty,ape={f:Nde?ipe:function(e,t,n){if(Vde(e),t=rpe(t),Vde(n),zde)try{return ipe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw ope("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},upe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},spe=Nde?function(e,t,n){return ape.f(e,t,upe(1,n))}:function(e,t,n){return e[t]=n,e},lpe=ide(Function.toString);vde(Qfe.inspectSource)||(Qfe.inspectSource=function(e){return lpe(e)});var cpe,fpe,dpe,ppe=Qfe.inspectSource,hpe=Xfe.WeakMap,gpe=vde(hpe)&&/native code/.test(ppe(hpe)),vpe=ede("keys"),ype=function(e){return vpe[e]||(vpe[e]=gde(e))},mpe={},bpe=Xfe.TypeError,wpe=Xfe.WeakMap;if(gpe||Qfe.state){var xpe=Qfe.state||(Qfe.state=new wpe),Epe=ide(xpe.get),Spe=ide(xpe.has),Dpe=ide(xpe.set);cpe=function(e,t){if(Spe(xpe,e))throw new bpe("Object already initialized");return t.facade=e,Dpe(xpe,e,t),t},fpe=function(e){return Epe(xpe,e)||{}},dpe=function(e){return Spe(xpe,e)}}else{var Cpe=ype("state");mpe[Cpe]=!0,cpe=function(e,t){if(fde(e,Cpe))throw new bpe("Object already initialized");return t.facade=e,spe(e,Cpe,t),t},fpe=function(e){return fde(e,Cpe)?e[Cpe]:{}},dpe=function(e){return fde(e,Cpe)}}var Ape={set:cpe,get:fpe,has:dpe,enforce:function(e){return dpe(e)?fpe(e):cpe(e,{})},getterFor:function(e){return function(t){var n;if(!Ide(t)||(n=fpe(t)).type!==e)throw bpe("Incompatible receiver, "+e+" required");return n}}},Ope=Function.prototype,kpe=Nde&&Object.getOwnPropertyDescriptor,Bpe=fde(Ope,"name"),Fpe={EXISTS:Bpe,PROPER:Bpe&&"something"===function(){}.name,CONFIGURABLE:Bpe&&(!Nde||Nde&&kpe(Ope,"name").configurable)},Tpe=qfe((function(e){var t=Fpe.CONFIGURABLE,n=Ape.get,r=Ape.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;vde(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!fde(i,"name")||t&&i.name!==f)&&spe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Xfe?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:spe(e,n,i)):l?e[n]=i:Jfe(n,i)})(Function.prototype,"toString",(function(){return vde(this)&&n(this).source||ppe(this)}))})),_pe=ide({}.toString),Ppe=ide("".slice),jpe=function(e){return Ppe(_pe(e),8,-1)},Npe=_de("toStringTag"),Ipe=Xfe.Object,Lpe="Arguments"==jpe(function(){return arguments}()),Rpe=jde?jpe: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=Ipe(e),Npe))?n:Lpe?jpe(t):"Object"==(r=jpe(t))&&vde(t.callee)?"Arguments":r},Mpe=jde?{}.toString:function(){return"[object "+Rpe(this)+"]"};jde||Tpe(Object.prototype,"toString",Mpe,{unsafe:!0});var zpe,$pe={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},Hpe=Mde("span").classList,Vpe=Hpe&&Hpe.constructor&&Hpe.constructor.prototype,Upe=Vpe===Object.prototype?void 0:Vpe,Wpe=ide(ide.bind),qpe=Xfe.Object,Gpe=ide("".split),Kpe=Cde((function(){return!qpe("z").propertyIsEnumerable(0)}))?function(e){return"String"==jpe(e)?Gpe(e,""):qpe(e)}:qpe,Ype=Math.ceil,Xpe=Math.floor,Zpe=function(e){var t=+e;return t!=t||0===t?0:(t>0?Xpe:Ype)(t)},Jpe=Math.min,Qpe=function(e){return e>0?Jpe(Zpe(e),9007199254740991):0},ehe=function(e){return Qpe(e.length)},the=Array.isArray||function(e){return"Array"==jpe(e)},nhe=function(){},rhe=[],ohe=mde("Reflect","construct"),ihe=/^\s*(?:class|function)\b/,ahe=ide(ihe.exec),uhe=!ihe.exec(nhe),she=function(e){if(!vde(e))return!1;try{return ohe(nhe,rhe,e),!0}catch(e){return!1}},lhe=!ohe||Cde((function(){var e;return she(she.call)||!she(Object)||!she((function(){e=!0}))||e}))?function(e){if(!vde(e))return!1;switch(Rpe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return uhe||!!ahe(ihe,ppe(e))}:she,che=_de("species"),fhe=Xfe.Array,dhe=function(e,t){return new(function(e){var t;return the(e)&&(t=e.constructor,(lhe(t)&&(t===fhe||the(t.prototype))||Ide(t)&&null===(t=t[che]))&&(t=void 0)),void 0===t?fhe:t}(e))(0===t?0:t)},phe=ide([].push),hhe=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,l,c,f){for(var d,p,h=lde(s),g=Kpe(h),v=function(e,t){return Jde(e),void 0===t?e:Wpe?Wpe(e,t):function(){return e.apply(t,arguments)}}(l,c),y=ehe(g),m=0,b=f||dhe,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:phe(w,d)}else switch(e){case 4:return!1;case 7:phe(w,d)}return i?-1:r||o?o:w}},ghe=[hhe(0),hhe(1),hhe(2),hhe(3),hhe(4),hhe(5),hhe(6),hhe(7)][0],vhe=(zpe=[].forEach)&&Cde((function(){zpe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return ghe(this,e,arguments.length>1?arguments[1]:void 0)},yhe=function(e){if(e&&e.forEach!==vhe)try{spe(e,"forEach",vhe)}catch(t){e.forEach=vhe}};for(var mhe in $pe)$pe[mhe]&&yhe(Xfe[mhe]&&Xfe[mhe].prototype);yhe(Upe);var bhe={}.propertyIsEnumerable,whe=Object.getOwnPropertyDescriptor,xhe={f:whe&&!bhe.call({1:2},1)?function(e){var t=whe(this,e);return!!t&&t.enumerable}:bhe},Ehe=function(e){return Kpe(ude(e))},She=Object.getOwnPropertyDescriptor,Dhe={f:Nde?She:function(e,t){if(e=Ehe(e),t=rpe(t),zde)try{return She(e,t)}catch(e){}if(fde(e,t))return upe(!Wde(xhe.f,e,t),e[t])}},Che=Math.max,Ahe=Math.min,Ohe=function(e,t){var n=Zpe(e);return n<0?Che(n+t,0):Ahe(n,t)},khe=function(e){return function(t,n,r){var o,i=Ehe(t),a=ehe(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}},Bhe=(khe(!0),khe(!1)),Fhe=ide([].push),The=function(e,t){var n,r=Ehe(e),o=0,i=[];for(n in r)!fde(mpe,n)&&fde(r,n)&&Fhe(i,n);for(;t.length>o;)fde(r,n=t[o++])&&(~Bhe(i,n)||Fhe(i,n));return i},_he=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Phe=_he.concat("length","prototype"),jhe={f:Object.getOwnPropertyNames||function(e){return The(e,Phe)}},Nhe={f:Object.getOwnPropertySymbols},Ihe=ide([].concat),Lhe=mde("Reflect","ownKeys")||function(e){var t=jhe.f(Vde(e)),n=Nhe.f;return n?Ihe(t,n(e)):t},Rhe=function(e,t){for(var n=Lhe(t),r=ape.f,o=Dhe.f,i=0;i<n.length;i++){var a=n[i];fde(e,a)||r(e,a,o(t,a))}},Mhe=/#|\.prototype\./,zhe=function(e,t){var n=Hhe[$he(e)];return n==Uhe||n!=Vhe&&(vde(t)?Cde(t):!!t)},$he=zhe.normalize=function(e){return String(e).replace(Mhe,".").toLowerCase()},Hhe=zhe.data={},Vhe=zhe.NATIVE="N",Uhe=zhe.POLYFILL="P",Whe=zhe,qhe=Dhe.f,Ghe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Xfe:l?Xfe[u]||Jfe(u,{}):(Xfe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=qhe(n,r))&&a.value:n[r],!Whe(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Rhe(i,o)}(e.sham||o&&o.sham)&&spe(i,"sham",!0),Tpe(n,r,i,e)}},Khe=Object.keys||function(e){return The(e,_he)},Yhe=Object.assign,Xhe=Object.defineProperty,Zhe=ide([].concat),Jhe=!Yhe||Cde((function(){if(Nde&&1!==Yhe({b:1},Yhe(Xhe({},"a",{enumerable:!0,get:function(){Xhe(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!=Yhe({},e)[n]||Khe(Yhe({},t)).join("")!=r}))?function(e,t){for(var n=lde(e),r=arguments.length,o=1,i=Nhe.f,a=xhe.f;r>o;)for(var u,s=Kpe(arguments[o++]),l=i?Zhe(Khe(s),i(s)):Khe(s),c=l.length,f=0;c>f;)u=l[f++],Nde&&!Wde(a,s,u)||(n[u]=s[u]);return n}:Yhe;Ghe({target:"Object",stat:!0,forced:Object.assign!==Jhe},{assign:Jhe});var Qhe=qfe((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,"&amp;").replace(/</g,"&lt;").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 l=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===l&&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],l=o.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||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 l={element:n,language:a,grammar:u,code:n.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),i&&i.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(i&&i.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.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 l(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 d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,E=r.next,S=s;E!==t.tail&&!(f&&S>=f.reach);S+=E.value.length,E=E.next){var D=E.value;if(t.length>e.length)return;if(!(D instanceof i)){var C,A=1;if(m){if(!(C=a(x,S,e,y)))break;var O=C.index,k=C.index+C[0].length,B=S;for(B+=E.value.length;O>=B;)B+=(E=E.next).value.length;if(S=B-=E.value.length,E.value instanceof i)continue;for(var F=E;F!==t.tail&&(B<k||"string"==typeof F.value);F=F.next)A++,B+=F.value.length;A--,D=e.slice(S,B),C.index-=S}else if(!(C=a(x,0,D,y)))continue;O=C.index;var T=C[0],_=D.slice(0,O),P=D.slice(O+T.length),j=S+D.length;f&&j>f.reach&&(f.reach=j);var N=E.prev;if(_&&(N=l(t,N,_),S+=_.length),c(t,N,A),E=l(t,N,new i(d,v?o.tokenize(T,v):T,b,T)),P&&l(t,E,P),A>1){var I={cause:d+","+h,reach:j};u(e,t,n,E.prev,S,I),f&&I.reach>f.reach&&(f.reach=I.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 l(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 c(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,"&quot;")+'"';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 d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
126
+ /**
127
+ * Prism: Lightweight, robust, elegant syntax highlighting
128
+ *
129
+ * @license MIT <https://opensource.org/licenses/MIT>
130
+ * @author Lea Verou <https://lea.verou.me>
131
+ * @namespace
132
+ * @public
133
+ */e.exports&&(e.exports=t),void 0!==Wfe&&(Wfe.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(/&amp;/,"&"))})),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"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}a(u,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),u.textContent=d.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),d.status>=400?u.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:u.textContent="✖ Error: File does not exist or is empty"))},d.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(/&amp;/,"&"))})),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:/![sra](?=[:}]$)/,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 l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),x=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),E=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,y,m]),S={keyword:c,punctuation:/[<>()?,.:[\]]/},D=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,C=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[C]),lookbehind:!0,greedy:!0},{pattern:RegExp(D),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,[g,E]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:S},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:S},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),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,d,g]),inside:S}],keyword:c,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,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),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,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),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,[l,v,g,E,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"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 O=C+"|"+D,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),B=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),F=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,T=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,B]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[F,T]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[F]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[B]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var _=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,_]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,_]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,_]),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,[j]),lookbehind:!0,greedy:!0,inside:L(j,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:L(I,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],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)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),c,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(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}));var ege=["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 tge(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+tge(t)}),0)}var nge,rge=Xfe.String,oge=function(e){if("Symbol"===Rpe(e))throw TypeError("Cannot convert a Symbol value to a string");return rge(e)},ige=function(){var e=Vde(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},age=Xfe.RegExp,uge=Cde((function(){var e=age("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),sge=uge||Cde((function(){return!age("a","y").sticky})),lge={BROKEN_CARET:uge||Cde((function(){var e=age("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:sge,UNSUPPORTED_Y:uge},cge=Nde?Object.defineProperties:function(e,t){Vde(e);for(var n,r=Ehe(t),o=Khe(t),i=o.length,a=0;i>a;)ape.f(e,n=o[a++],r[n]);return e},fge=mde("document","documentElement"),dge=ype("IE_PROTO"),pge=function(){},hge=function(e){return"<script>"+e+"<\/script>"},gge=function(e){e.write(hge("")),e.close();var t=e.parentWindow.Object;return e=null,t},vge=function(){try{nge=new ActiveXObject("htmlfile")}catch(e){}var e,t;vge="undefined"!=typeof document?document.domain&&nge?gge(nge):((t=Mde("iframe")).style.display="none",fge.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(hge("document.F=Object")),e.close(),e.F):gge(nge);for(var n=_he.length;n--;)delete vge.prototype[_he[n]];return vge()};mpe[dge]=!0;var yge,mge,bge=Object.create||function(e,t){var n;return null!==e?(pge.prototype=Vde(e),n=new pge,pge.prototype=null,n[dge]=e):n=vge(),void 0===t?n:cge(n,t)},wge=Xfe.RegExp,xge=Cde((function(){var e=wge(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Ege=Xfe.RegExp,Sge=Cde((function(){var e=Ege("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Dge=Ape.get,Cge=ede("native-string-replace",String.prototype.replace),Age=RegExp.prototype.exec,Oge=Age,kge=ide("".charAt),Bge=ide("".indexOf),Fge=ide("".replace),Tge=ide("".slice),_ge=(mge=/b*/g,Wde(Age,yge=/a/,"a"),Wde(Age,mge,"a"),0!==yge.lastIndex||0!==mge.lastIndex),Pge=lge.BROKEN_CARET,jge=void 0!==/()??/.exec("")[1];(_ge||jge||Pge||xge||Sge)&&(Oge=function(e){var t,n,r,o,i,a,u,s=this,l=Dge(s),c=oge(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Wde(Oge,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Pge&&s.sticky,h=Wde(ige,s),g=s.source,v=0,y=c;if(p&&(h=Fge(h,"y",""),-1===Bge(h,"g")&&(h+="g"),y=Tge(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==kge(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),jge&&(n=new RegExp("^"+g+"$(?!\\s)",h)),_ge&&(r=s.lastIndex),o=Wde(Age,p?n:s,y),p?o?(o.input=Tge(o.input,v),o[0]=Tge(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:_ge&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),jge&&o&&o.length>1&&Wde(Cge,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=bge(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Nge=Oge;Ghe({target:"RegExp",proto:!0,forced:/./.exec!==Nge},{exec:Nge});var Ige=Function.prototype,Lge=Ige.apply,Rge=Ige.bind,Mge=Ige.call,zge="object"==typeof Reflect&&Reflect.apply||(Rge?Mge.bind(Lge):function(){return Mge.apply(Lge,arguments)}),$ge=_de("species"),Hge=RegExp.prototype,Vge=_de("match"),Uge=Xfe.TypeError,Wge=_de("species"),qge=ide("".charAt),Gge=ide("".charCodeAt),Kge=ide("".slice),Yge=function(e){return function(t,n){var r,o,i=oge(ude(t)),a=Zpe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Gge(i,a))<55296||r>56319||a+1===u||(o=Gge(i,a+1))<56320||o>57343?e?qge(i,a):r:e?Kge(i,a,a+2):o-56320+(r-55296<<10)+65536}},Xge=(Yge(!1),Yge(!0)),Zge=function(e,t,n){return t+(n?Xge(e,t).length:1)},Jge=Xfe.Array,Qge=Math.max,eve=function(e,t,n){for(var r,o,i,a,u=ehe(e),s=Ohe(t,u),l=Ohe(void 0===n?u:n,u),c=Jge(Qge(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=rpe(o))in r?ape.f(r,a,upe(0,i)):r[a]=i;return c.length=f,c},tve=Xfe.TypeError,nve=function(e,t){var n=e.exec;if(vde(n)){var r=Wde(n,e,t);return null!==r&&Vde(r),r}if("RegExp"===jpe(e))return Wde(Nge,e,t);throw tve("RegExp#exec called on incompatible receiver")},rve=lge.UNSUPPORTED_Y,ove=Math.min,ive=[].push,ave=ide(/./.exec),uve=ide(ive),sve=ide("".slice);!function(e,t,n,r){var o=_de(e),i=!Cde((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Cde((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[$ge]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=ide(/./[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=oge(ude(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Ide(r=e)||!(void 0!==(o=r[Vge])?o:"RegExp"==jpe(r)))return Wde(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=Wde(Nge,p,i))&&!((s=p.lastIndex)>d&&(uve(c,sve(i,d,u.index)),u.length>1&&u.index<i.length&&zge(ive,c,eve(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&ave(p,"")||uve(c,""):uve(c,sve(i,d)),c.length>a?eve(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Wde(t,this,e,n)}:t,[function(t,n){var o=ude(this),i=null==t?void 0:Qde(t,e);return i?Wde(i,t,o,n):Wde(r,oge(o),t,n)},function(e,o){var i=Vde(this),a=oge(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=Vde(e).constructor;return void 0===r||null==(n=Vde(r)[Wge])?t:function(e){if(lhe(e))return e;throw Uge(Xde(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(rve?"g":"y"),f=new s(rve?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===nve(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=rve?0:h;var v,y=nve(f,rve?sve(a,h):a);if(null===y||(v=ove(Qpe(f.lastIndex+(rve?h:0)),a.length))===p)h=Zge(a,h,l);else{if(uve(g,sve(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(uve(g,y[m]),g.length===d)return g;h=p=v}}return uve(g,sve(a,p)),g}]}(o,""[e],(function(e,t,n,r,o){var a=ide(e),s=t.exec;return s===Nge||s===Hge.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Tpe(String.prototype,e,s[0]),Tpe(Hge,o,s[1])}r&&spe(Hge[o],"sham",!0)}("split",0,!!Cde((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]})),rve),Ghe({global:!0},{globalThis:Xfe}),Np&&(Tp.fn.attr=Np);var lve=Fpe.PROPER,cve=RegExp.prototype,fve=cve.toString,dve=ide(ige),pve=Cde((function(){return"/a/b"!=fve.call({source:"a",flags:"b"})})),hve=lve&&"toString"!=fve.name;(pve||hve)&&Tpe(RegExp.prototype,"toString",(function(){var e=Vde(this),t=oge(e.source),n=e.flags;return"/"+t+"/"+oge(void 0===n&&qde(cve,e)&&!("flags"in cve)?dve(e):n)}),{unsafe:!0});var gve=function(){function e(){this.title=hP("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(!Ef.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()};vd.setNodes(e,n,{match:function(e){return kO.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=kO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=kO.getParentNode(e,t);return Ef.isElement(n)?"pre"!==n.type?null:t:null},e}(),vve={renderStyle:function(e,t){var n=e,r=t,o="";return ege.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=Tp(e);if(!Ef.isElement(t))return t;if("code"!==kO.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 gve},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>"}}]},yve=/"/g,mve=ide("".replace);Ghe({target:"String",proto:!0,forced:Cde((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=oge(ude(this)),r="<a",(r+=' name="'+mve(oge(t),yve,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var bve=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(!Jf.isText(e))return null;var t=kO.getParentNode(null,e);if(t&&"code"===kO.getNodeType(t)){var n=kO.getParentNode(null,t);if(n&&"pre"===kO.getNodeType(n))return t}return null}(i);if(null==s)return u;var l=s.language,c=void 0===l?"":l;if(!c)return u;var f=function(e,t){if(!t)return[];var n=Qhe.languages[t];return n?Qhe.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=
134
+ /*! *****************************************************************************
135
+ Copyright (c) Microsoft Corporation.
136
+
137
+ Permission to use, copy, modify, and/or distribute this software for any
138
+ purpose with or without fee is hereby granted.
139
+
140
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
141
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
142
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
143
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
144
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
145
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
146
+ PERFORMANCE OF THIS SOFTWARE.
147
+ ***************************************************************************** */
148
+ 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=p.next();!h.done;h=p.next()){var g=h.value,v=d+tge(g);"string"!=typeof g&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:v},r)),d=v}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},wve=function(){return wve=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},wve.apply(this,arguments)},xve=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=wve(wve({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=wve(wve({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=wve(wve({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=wve(wve({},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=PC(PC({},o),t||{});if(null!=TO[n])throw new Error("Duplicated key '"+n+"' in menu items");TO[n]=r,function(e,t){null!=t&&(FO[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;gT[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){hT.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;UO[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){VO.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;jB[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){PB.push(e)}(e)},e.registerModule=function(e){Eve(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
149
+ /*! *****************************************************************************
150
+ Copyright (c) Microsoft Corporation.
151
+
152
+ Permission to use, copy, modify, and/or distribute this software for any
153
+ purpose with or without fee is hereby granted.
154
+
155
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
156
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
157
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
158
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
159
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
160
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
161
+ PERFORMANCE OF THIS SOFTWARE.
162
+ ***************************************************************************** */function Eve(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,l=e.editorPlugin;t&&t.forEach((function(e){return xve.registerMenu(e)})),n&&n.forEach((function(e){return xve.registerRenderElem(e)})),r&&xve.registerRenderStyle(r),o&&o.forEach((function(e){return xve.registerElemToHtml(e)})),i&&xve.registerStyleToHtml(i),a&&a.forEach((function(e){return xve.registerPreParseHtml(e)})),u&&u.forEach((function(e){return xve.registerParseElemHtml(e)})),s&&xve.registerParseStyleHtml(s),l&&xve.registerPlugin(l)}xG.forEach((function(e){return Eve(e)})),Eve($Q),Eve(D3),Eve(Gre),Eve(Ufe),Eve(vve);var Sve='<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>',Dve={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"]}},Cve={hoverbarKeys:wve(wve({},Dve),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};xve.setEditorConfig(wve(wve({},Cve),{decorate:bve}));var Ave={hoverbarKeys:Dve};xve.setSimpleEditorConfig(wve(wve({},Ave),{decorate:bve}));var Ove={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:hP("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:hP("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:hP("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:hP("editor.image"),iconSvg:Sve,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:hP("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"]};xve.setToolbarConfig(Ove);var kve={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:hP("editor.image"),iconSvg:Sve,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};xve.setSimpleToolbarConfig(kve);
163
+ /*! *****************************************************************************
164
+ Copyright (c) Microsoft Corporation.
165
+
166
+ Permission to use, copy, modify, and/or distribute this software for any
167
+ purpose with or without fee is hereby granted.
168
+
169
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
170
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
171
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
172
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
173
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
174
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
175
+ PERFORMANCE OF THIS SOFTWARE.
176
+ ***************************************************************************** */
177
+ var Bve=function(){return Bve=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},Bve.apply(this,arguments)};function Fve(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 Tve(e){var r=e.defaultContent,o=void 0===r?[]:r,i=e.onCreated,a=e.defaultHtml,u=void 0===a?"":a,s=e.value,l=void 0===s?"":s,c=e.onChange,f=e.defaultConfig,d=void 0===f?{}:f,p=e.mode,h=void 0===p?"default":p,g=e.style,v=void 0===g?{}:g,y=e.className,m=(0,t.useRef)(null),b=Fve((0,t.useState)(null),2),w=b[0],x=b[1],E=Fve((0,t.useState)(""),2),S=E[0],D=E[1],C=function(e){i&&i(e);var t=d.onCreated;t&&t(e)},A=function(e){D(e.getHtml()),c&&c(e);var t=d.onChange;t&&t(e)},O=function(e){var t=d.onDestroyed;x(null),t&&t(e)};return(0,t.useEffect)((function(){if(null!=w&&l!==S)try{w.setHtml(l)}catch(e){console.error(e)}}),[l]),(0,t.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,l="simple"===(void 0===s?"default":s)?xve.simpleEditorConfig:xve.editorConfig,c=wve(wve({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return c_({selector:n,config:wve(wve(wve({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:xve.plugins})}({selector:m.current,config:Bve(Bve({},d),{onCreated:C,onChange:A,onDestroyed:O}),content:o,html:u||l,mode:h});x(t)}}),[w]),n().createElement("div",{style:v,ref:m,className:y})}function _ve(e){var r=e.editor,o=e.defaultConfig,i=void 0===o?{}:o,a=e.mode,u=void 0===a?"default":a,s=e.style,l=void 0===s?{}:s,c=e.className,f=(0,t.useRef)(null);return(0,t.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?xve.simpleToolbarConfig:xve.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 dF(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=PC({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new g_(n,i);return IA.set(a,e),LA.set(e,a),a}(n,{selector:t,config:wve(wve({},u),o)})}({editor:r,selector:f.current,config:i,mode:u})}),[r]),n().createElement("div",{style:l,ref:f,className:c})}var Pve=u(4254),jve=u(2735),Nve=["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","|"],Ive=u(8543),Lve=(u(6974),u(2342),function(){return Lve=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},Lve.apply(this,arguments)}),Rve=n().forwardRef((function(n,o){var i=n.style,a=n.toolbarStyle,u=void 0===a?{}:a,s=n.editorStyle,l=void 0===s?{height:"300px",overflowY:"hidden"}:s,c=n.className,f=n.error,d=n.server,p=n.helperText,h=n.required,g=n.labelSign,v=n.label,y=n.labelTooltip,m=n.placeholder,b=void 0===m?"请输入内容":m,w=n.onChange,x=n.onFocus,E=n.onBlur,S=n.onDestroyed,D=n.readOnly,C=void 0!==D&&D,A=n.autoFocus,O=void 0!==A&&A,k=n.max,B=n.in18,F=n.defaultValue,T=n.value,_=n.excludeKeys,P=n.insertKeys,j=n.toolbarKeys,N=void 0===j?Nve:j,I=n.uploadImage,L=void 0===I?{base64LimitSize:5242880,timeout:15e3}:I,R=n.uploadVideo,M=void 0===R?{timeout:15e3}:R,z=(0,t.useState)(null),$=z[0],H=z[1],V=(0,t.useState)(""),U=V[0],W=V[1],q=(0,t.useState)(Ive.UUID),G=q[0],K=q[1],Y={excludeKeys:_,toolbarKeys:N,insertKeys:P},X={placeholder:b,onFocus:function(e){x&&x(e)},onBlur:function(e){E&&E(e)},onDestroyed:function(e){S&&S(e)},readOnly:C,autoFocus:O,maxLength:k,MENU_CONF:{uploadImage:Lve(Lve({},L),{server:d}),uploadVideo:Lve(Lve({},M),{server:d})}};(0,t.useEffect)((function(){B&&(console.log(B),function(e){dP.changeLanguage(e)}(B)),K(Math.random().toString(36).slice(-8))}),[_,N,P,B]),(0,t.useEffect)((function(){void 0!==F&&W(F)}),[]),(0,t.useEffect)((function(){void 0!==T&&W(T)}),[T]);var Z=function(){if($)return $.getHtml()},J=function(){if($)return $.getText()},Q=function(){$&&$.clear()},ee=function(e){$&&($.setHtml(e),setTimeout((function(){$.focus(!0)})))},te=function(){return $};(0,t.useEffect)((function(){return function(){null!=$&&($.destroy(),H(null))}}),[$]),(0,t.useImperativeHandle)(o,(function(){return{getContent:Z,getText:J,clearEditor:Q,setContent:ee,getEditor:te}}));var ne,re=(0,t.useMemo)((function(){var t;return(0,e.jsx)(r.default,Lve({label:v,required:h,labelSign:g},y,{className:(t="text-editor-label",y&&y.className&&(t+=" "+y.className),t)}))}),[v,g,h,y]);return(0,e.jsxs)("div",Lve({className:(ne=jve.W+"-text-editor",c&&(ne+=" "+c),ne),style:i},{children:[re,(0,e.jsxs)("div",Lve({className:"text-editor-content"},{children:[(0,e.jsx)(_ve,{editor:$,defaultConfig:Y,mode:"default",style:u},G),(0,e.jsx)(Tve,{defaultConfig:X,value:U,onCreated:H,onChange:function(e){void 0===n.value&&W(e.getHtml()),w&&w(e.getHtml(),e.getText())},mode:"default",style:l})]})),(0,e.jsx)(Pve.default,{className:"text-editor-error-text",error:f,helperText:p})]}))})),Mve=Rve}(),s}()}));