| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- /*!
- Build based on gin-vue-admin
- Time : 1757946830000 */
- !function(){function e(e,n,r,o){var i=t(l(1&o?e.prototype:e),n,r);return 2&o&&"function"==typeof i?function(e){return i.apply(r,e)}:i}function t(){return t="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},t.apply(null,arguments)}function n(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function r(e){return function(){var t=this,r=arguments;return new Promise(function(o,i){var a=e.apply(t,r);function u(e){n(a,o,i,u,s,"next",e)}function s(e){n(a,o,i,u,s,"throw",e)}u(void 0)})}}function o(e,t,n){return t=l(t),function(e,t){if(t&&("object"==D(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}(e,s()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(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 function(e,t,n){if(s())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&c(o,n.prototype),o}(e,arguments,l(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)},u(e)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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,x(r.key),r)}}function v(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function g(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(D(e)+" is not iterable")}function y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return m(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,u=0,s=e,d.n=n,a}};function p(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(u=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,h),u=l,s=h;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(d.n=-1),p(u,s)):d.n=s:d.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(m(t={},r,function(){return this}),t),f=c.prototype=u.prototype=Object.create(l);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,m(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,m(f,"constructor",c),m(c,"constructor",s),s.displayName="GeneratorFunction",m(c,o,"GeneratorFunction"),m(f),m(f,o,"Generator"),m(f,r,function(){return this}),m(f,"toString",function(){return"[object Generator]"}),(y=function(){return{w:i,m:d}})()}function m(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}m=function(e,t,n,r){function i(t,n){m(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},m(e,t,n,r)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||S(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t,n){return(t=x(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e){var t=function(e,t){if("object"!=D(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==D(t)?t:t+""}function E(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=S(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function C(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}System.register(["./index-legacy.C7yqTvSr.js","./image-legacy.Cpr7EmQh.js"],function(t,n){"use strict";var s,c,l,f,h,m,x,S,A,O,k,B,F,T,_,P,j,N,I,L,R,M;return{setters:[function(e){s=e.s,c=e.a_,l=e.l,f=e.a,h=e.ap,m=e.g,x=e.c,S=e.o,A=e.f,O=e.w,k=e.h,B=e.v,F=e.x,T=e.E,_=e.P,P=e.R,j=e.q,N=e.U,I=e.bv,L=e.V,R=e.W},function(e){M=e.g}],execute:function(){var n=document.createElement("style");n.textContent=':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 transparent;min-height:100%;outline:0;padding:0 10px;white-space:pre-wrap}.w-e-text-container [data-slate-editor] p{margin:15px 0}.w-e-text-container [data-slate-editor] h1,.w-e-text-container [data-slate-editor] h2,.w-e-text-container [data-slate-editor] h3,.w-e-text-container [data-slate-editor] h4,.w-e-text-container [data-slate-editor] h5{margin:20px 0}.w-e-text-container [data-slate-editor] img{cursor:default;display:inline!important;max-width:100%;min-height:20px;min-width:20px}.w-e-text-container [data-slate-editor] span{text-indent:0}.w-e-text-container [data-slate-editor] [data-selected=true]{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-placeholder{font-style:italic;left:10px;top:17px;width:90%}.w-e-max-length-info,.w-e-text-placeholder{color:var(--w-e-textarea-slight-color);pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.w-e-max-length-info{bottom:.5em;right:1em}.w-e-bar{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-color);font-size:14px;padding:0 5px}.w-e-bar svg{fill:var(--w-e-toolbar-color);height:14px;width:14px}.w-e-bar-show{display:flex}.w-e-bar-hidden{display:none}.w-e-hover-bar{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 5px rgba(0,0,0,.12);position:absolute}.w-e-toolbar{flex-wrap:wrap;position:relative}.w-e-bar-divider{background-color:var(--w-e-toolbar-border-color);display:inline-flex;height:40px;margin:0 5px;width:1px}.w-e-bar-item{display:flex;height:40px;padding:4px;position:relative;text-align:center}.w-e-bar-item,.w-e-bar-item button{align-items:center;justify-content:center}.w-e-bar-item button{background:transparent;border:none;color:var(--w-e-toolbar-color);cursor:pointer;display:inline-flex;height:32px;overflow:hidden;padding:0 8px;white-space:nowrap}.w-e-bar-item button:hover{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item button .title{margin-left:5px}.w-e-bar-item .active{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item .disabled{color:var(--w-e-toolbar-disabled-color);cursor:not-allowed}.w-e-bar-item .disabled svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-menu-tooltip-v5:before{background-color:var(--w-e-toolbar-active-color);border-radius:5px;color:var(--w-e-toolbar-bg-color);content:attr(data-tooltip);font-size:.75em;opacity:0;padding:5px 10px;position:absolute;text-align:center;top:40px;transition:opacity .6s;visibility:hidden;white-space:pre;z-index:1}.w-e-menu-tooltip-v5:after{border:5px solid transparent;border-bottom:5px solid var(--w-e-toolbar-active-color);content:"";opacity:0;position:absolute;top:30px;transition:opacity .6s;visibility:hidden}.w-e-menu-tooltip-v5:hover:after,.w-e-menu-tooltip-v5:hover:before{opacity:1;visibility:visible}.w-e-menu-tooltip-v5.tooltip-right:before{left:100%;top:10px}.w-e-menu-tooltip-v5.tooltip-right:after{border-bottom-color:transparent;border-left-color:transparent;border-right-color:var(--w-e-toolbar-active-color);border-top-color:transparent;left:100%;margin-left:-10px;top:16px}.w-e-bar-item-group .w-e-bar-item-menus-container{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px rgba(0,0,0,.12);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,.12);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,.12);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,.12);color:var(--w-e-toolbar-color);font-size:14px;min-height:40px;min-width:100px;padding:20px 15px 0;position:absolute;text-align:left;z-index:1}.w-e-modal .btn-close{cursor:pointer;line-height:1;padding:5px;position:absolute;right:8px;top:7px}.w-e-modal .btn-close svg{fill:var(--w-e-toolbar-color);height:10px;width:10px}.w-e-modal .babel-container{display:block;margin-bottom:15px}.w-e-modal .babel-container span{display:block;margin-bottom:10px}.w-e-modal .button-container{margin-bottom:15px}.w-e-modal button{background-color:var(--w-e-modal-button-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);cursor:pointer;font-weight:400;height:32px;padding:4.5px 15px;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.w-e-modal input[type=number],.w-e-modal input[type=text],.w-e-modal textarea{font-feature-settings:"tnum";background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);font-variant:tabular-nums;padding:4.5px 11px;transition:all .3s;width:100%}.w-e-modal textarea{min-height:60px}body .w-e-modal,body .w-e-modal *{box-sizing:border-box}.w-e-progress-bar{background-color:var(--w-e-textarea-handler-bg-color);height:1px;position:absolute;transition:width .3s;width:0}.w-e-full-screen-container{bottom:0!important;display:flex!important;flex-direction:column!important;height:100%!important;left:0!important;margin:0!important;padding:0!important;position:fixed;right:0!important;top:0!important;width:100%!important}.w-e-full-screen-container [data-w-e-textarea=true]{flex:1!important}.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;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;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;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;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,.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}\n/*$vite$:1*/',document.head.appendChild(n);t("c",function(e){return s({url:"/info/createInfo",method:"post",data:e})}),t("d",function(e){return s({url:"/info/deleteInfo",method:"delete",params:e})}),t("e",function(e){return s({url:"/info/deleteInfoByIds",method:"delete",params:e})}),t("u",function(e){return s({url:"/info/updateInfo",method:"put",data:e})}),t("f",function(e){return s({url:"/info/findInfo",method:"get",params:e})}),t("b",function(e){return s({url:"/info/getInfoList",method:"get",params:e})}),t("g",function(){return s({url:"/info/getInfoDataSource",method:"get"})}),t("a",Object.assign({name:"UploadCommon"},{__name:"selectFile",props:c({limit:{type:Number,default:3},accept:{type:String,default:""}},{modelValue:{type:Array},modelModifiers:{}}),emits:c(["on-success","on-error"],["update:modelValue"]),setup:function(e,t){var n=t.emit,r=l().token,o=f(!1),i=h(e,"modelValue"),a=f(i.value||[]),u=n,s=function(e){var t=e.data;if(0!==e.code)return T({type:"error",message:"上传失败"+e.msg}),void a.value.pop();i.value.push({name:t.file.name,url:t.file.url}),u("on-success",e)},c=function(e){var t=i.value.indexOf(e);t>-1&&(i.value.splice(t,1),a.value=i.value)},d=function(e){T({type:"error",message:"上传失败"}),o.value=!1,u("on-error",e)};return function(t,n){var o=m("el-button"),i=m("el-upload");return S(),x("div",null,[A(i,{"file-list":a.value,"onUpdate:fileList":n[0]||(n[0]=function(e){return a.value=e}),multiple:"",action:"".concat(B(F)(),"/fileUploadAndDownload/upload?noSave=1"),"on-error":d,"on-success":s,"on-remove":c,"show-file-list":!0,limit:e.limit,accept:e.accept,class:"upload-btn",headers:{"x-token":B(r)}},{default:O(function(){return[A(o,{type:"primary"},{default:O(function(){return C(n[1]||(n[1]=[k(" 上传文件 ",-1)]))}),_:1})]}),_:1},8,["file-list","action","limit","accept","headers"])])}}}));var z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function H(e){var t={exports:{}};return e(t,t.exports),t.exports}var V,$,U=function(e){return e&&e.Math==Math&&e},W=U("object"==("undefined"==typeof globalThis?"undefined":D(globalThis))&&globalThis)||U("object"==("undefined"==typeof window?"undefined":D(window))&&window)||U("object"==("undefined"==typeof self?"undefined":D(self))&&self)||U("object"==D(z)&&z)||function(){return this}()||Function("return this")(),G=Function.prototype,q=G.apply,K=G.bind,Y=G.call,X="object"==("undefined"==typeof Reflect?"undefined":D(Reflect))&&Reflect.apply||(K?Y.bind(q):function(){return Y.apply(q,arguments)}),Z=Function.prototype,J=Z.bind,Q=Z.call,ee=J&&J.bind(Q),te=J?function(e){return e&&ee(Q,e)}:function(e){return e&&function(){return Q.apply(e,arguments)}},ne=function(e){return"function"==typeof e},re=function(e){try{return!!e()}catch(e){return!0}},oe=!re(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),ie=Function.prototype.call,ae=ie.bind?ie.bind(ie):function(){return ie.apply(ie,arguments)},ue={}.propertyIsEnumerable,se=Object.getOwnPropertyDescriptor,ce=se&&!ue.call({1:2},1)?function(e){var t=se(this,e);return!!t&&t.enumerable}:ue,le={f:ce},fe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},de=te({}.toString),pe=te("".slice),he=function(e){return pe(de(e),8,-1)},ve=W.Object,ge=te("".split),ye=re(function(){return!ve("z").propertyIsEnumerable(0)})?function(e){return"String"==he(e)?ge(e,""):ve(e)}:ve,me=W.TypeError,be=function(e){if(null==e)throw me("Can't call method on "+e);return e},we=function(e){return ye(be(e))},xe=function(e){return"object"==D(e)?null!==e:ne(e)},Ee={},De=function(e){return ne(e)?e:void 0},Ce=function(e,t){return arguments.length<2?De(Ee[e])||De(W[e]):Ee[e]&&Ee[e][t]||W[e]&&W[e][t]},Se=te({}.isPrototypeOf),Ae=Ce("navigator","userAgent")||"",Oe=W.process,ke=W.Deno,Be=Oe&&Oe.versions||ke&&ke.version,Fe=Be&&Be.v8;Fe&&($=(V=Fe.split("."))[0]>0&&V[0]<4?1:+(V[0]+V[1])),!$&&Ae&&(!(V=Ae.match(/Edge\/(\d+)/))||V[1]>=74)&&(V=Ae.match(/Chrome\/(\d+)/))&&($=+V[1]);var Te,_e=$,Pe=!!Object.getOwnPropertySymbols&&!re(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_e&&_e<41}),je=Pe&&!Symbol.sham&&"symbol"==D(Symbol.iterator),Ne=W.Object,Ie=je?function(e){return"symbol"==D(e)}:function(e){var t=Ce("Symbol");return ne(t)&&Se(t.prototype,Ne(e))},Le=W.String,Re=function(e){try{return Le(e)}catch(e){return"Object"}},Me=W.TypeError,ze=function(e){if(ne(e))return e;throw Me(Re(e)+" is not a function")},He=function(e,t){var n=e[t];return null==n?void 0:ze(n)},Ve=W.TypeError,$e=Object.defineProperty,Ue=W["__core-js_shared__"]||function(e,t){try{$e(W,e,{value:t,configurable:!0,writable:!0})}catch(H){W[e]=t}return t}("__core-js_shared__",{}),We=H(function(e){(e.exports=function(e,t){return Ue[e]||(Ue[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Ge=W.Object,qe=function(e){return Ge(be(e))},Ke=te({}.hasOwnProperty),Ye=Object.hasOwn||function(e,t){return Ke(qe(e),t)},Xe=0,Ze=Math.random(),Je=te(1..toString),Qe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Je(++Xe+Ze,36)},et=We("wks"),tt=W.Symbol,nt=tt&&tt.for,rt=je?tt:tt&&tt.withoutSetter||Qe,ot=function(e){if(!Ye(et,e)||!Pe&&"string"!=typeof et[e]){var t="Symbol."+e;Pe&&Ye(tt,e)?et[e]=tt[e]:et[e]=je&&nt?nt(t):rt(t)}return et[e]},it=W.TypeError,at=ot("toPrimitive"),ut=function(e){var t=function(e,t){if(!xe(e)||Ie(e))return e;var n,r=He(e,at);if(r){if(n=ae(r,e,t),!xe(n)||Ie(n))return n;throw it("Can't convert object to primitive value")}return function(e){var t,n;if(ne(t=e.toString)&&!xe(n=ae(t,e)))return n;if(ne(t=e.valueOf)&&!xe(n=ae(t,e)))return n;throw Ve("Can't convert object to primitive value")}(e)}(e,"string");return Ie(t)?t:t+""},st=W.document,ct=xe(st)&&xe(st.createElement),lt=function(e){return ct?st.createElement(e):{}},ft=!oe&&!re(function(){return 7!=Object.defineProperty(lt("div"),"a",{get:function(){return 7}}).a}),dt=Object.getOwnPropertyDescriptor,pt=oe?dt:function(e,t){if(e=we(e),t=ut(t),ft)try{return dt(e,t)}catch(e){}if(Ye(e,t))return fe(!ae(le.f,e,t),e[t])},ht={f:pt},vt=/#|\.prototype\./,gt=function(e,t){var n=mt[yt(e)];return n==wt||n!=bt&&(ne(t)?re(t):!!t)},yt=gt.normalize=function(e){return String(e).replace(vt,".").toLowerCase()},mt=gt.data={},bt=gt.NATIVE="N",wt=gt.POLYFILL="P",xt=gt,Et=te(te.bind),Dt=function(e,t){return ze(e),void 0===t?e:Et?Et(e,t):function(){return e.apply(t,arguments)}},Ct=W.String,St=W.TypeError,At=function(e){if(xe(e))return e;throw St(Ct(e)+" is not an object")},Ot=W.TypeError,kt=Object.defineProperty,Bt=oe?kt:function(e,t,n){if(At(e),t=ut(t),At(n),ft)try{return kt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ot("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ft={f:Bt},Tt=oe?function(e,t,n){return Ft.f(e,t,fe(1,n))}:function(e,t,n){return e[t]=n,e},_t=ht.f,Pt=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 X(e,this,arguments)};return t.prototype=e.prototype,t},jt=function(e,t){var n,r,o,i,a,u,s,c,l=e.target,f=e.global,d=e.stat,p=e.proto,h=f?W:d?W[l]:(W[l]||{}).prototype,v=f?Ee:Ee[l]||Tt(Ee,l,{})[l],g=v.prototype;for(o in t)n=!xt(f?o:l+(d?".":"#")+o,e.forced)&&h&&Ye(h,o),a=v[o],n&&(u=e.noTargetGet?(c=_t(h,o))&&c.value:h[o]),i=n&&u?u:t[o],n&&D(a)==D(i)||(s=e.bind&&n?Dt(i,W):e.wrap&&n?Pt(i):p&&ne(i)?te(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Tt(s,"sham",!0),Tt(v,o,s),p&&(Ye(Ee,r=l+"Prototype")||Tt(Ee,r,{}),Tt(Ee[r],o,i),e.real&&g&&!g[o]&&Tt(g,o,i)))},Nt=We("keys"),It=function(e){return Nt[e]||(Nt[e]=Qe(e))},Lt=!re(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Rt=It("IE_PROTO"),Mt=W.Object,zt=Mt.prototype,Ht=Lt?Mt.getPrototypeOf:function(e){var t=qe(e);if(Ye(t,Rt))return t[Rt];var n=t.constructor;return ne(n)&&t instanceof n?n.prototype:t instanceof Mt?zt:null},Vt=W.String,$t=W.TypeError,Ut=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=te(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return At(n),function(e){if("object"==D(e)||ne(e))return e;throw $t("Can't set "+Vt(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Wt=Math.ceil,Gt=Math.floor,qt=function(e){var t=+e;return t!=t||0===t?0:(t>0?Gt:Wt)(t)},Kt=Math.max,Yt=Math.min,Xt=function(e,t){var n=qt(e);return n<0?Kt(n+t,0):Yt(n,t)},Zt=Math.min,Jt=function(e){return(t=e.length)>0?Zt(qt(t),9007199254740991):0;var t},Qt={indexOf:function(e){return function(t,n,r){var o,i=we(t),a=Jt(i),u=Xt(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}}(!1)},en={},tn=Qt.indexOf,nn=te([].push),rn=function(e,t){var n,r=we(e),o=0,i=[];for(n in r)!Ye(en,n)&&Ye(r,n)&&nn(i,n);for(;t.length>o;)Ye(r,n=t[o++])&&(~tn(i,n)||nn(i,n));return i},on=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],an=on.concat("length","prototype"),un=Object.getOwnPropertyNames||function(e){return rn(e,an)},sn={f:un},cn={f:Object.getOwnPropertySymbols},ln=te([].concat),fn=Ce("Reflect","ownKeys")||function(e){var t=sn.f(At(e)),n=cn.f;return n?ln(t,n(e)):t},dn=Object.keys||function(e){return rn(e,on)},pn=oe?Object.defineProperties:function(e,t){At(e);for(var n,r=we(t),o=dn(t),i=o.length,a=0;i>a;)Ft.f(e,n=o[a++],r[n]);return e},hn=Ce("document","documentElement"),vn=It("IE_PROTO"),gn=function(){},yn=function(e){return"<script>"+e+"<\/script>"},mn=function(e){e.write(yn("")),e.close();var t=e.parentWindow.Object;return e=null,t},bn=function(){try{Te=new ActiveXObject("htmlfile")}catch(e){}var e,t;bn="undefined"!=typeof document?document.domain&&Te?mn(Te):((t=lt("iframe")).style.display="none",hn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(yn("document.F=Object")),e.close(),e.F):mn(Te);for(var n=on.length;n--;)delete bn.prototype[on[n]];return bn()};en[vn]=!0;var wn=Object.create||function(e,t){var n;return null!==e?(gn.prototype=At(e),n=new gn,gn.prototype=null,n[vn]=e):n=bn(),void 0===t?n:pn(n,t)},xn=function(e,t,n){var r=ut(t);r in e?Ft.f(e,r,fe(0,n)):e[r]=n},En=W.Array,Dn=Math.max,Cn=function(e,t,n){for(var r=Jt(e),o=Xt(t,r),i=Xt(r,r),a=En(Dn(i-o,0)),u=0;o<i;o++,u++)xn(a,u,e[o]);return a.length=u,a},Sn=te("".replace),An=te("".split),On=te([].join),kn=String(Error("zxcasd").stack),Bn=/\n\s*at [^:]*:[^\n]*/,Fn=Bn.test(kn),Tn=/@[^\n]*\n/.test(kn)&&!/zxcasd/.test(kn),_n={},Pn=ot("iterator"),jn=Array.prototype,Nn={};Nn[ot("toStringTag")]="z";var In="[object z]"===String(Nn),Ln=ot("toStringTag"),Rn=W.Object,Mn="Arguments"==he(function(){return arguments}()),zn=In?he: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=Rn(e),Ln))?n:Mn?he(t):"Object"==(r=he(t))&&ne(t.callee)?"Arguments":r},Hn=ot("iterator"),Vn=function(e){if(null!=e)return He(e,Hn)||He(e,"@@iterator")||_n[zn(e)]},$n=W.TypeError,Un=function(e,t,n){var r,o;At(e);try{if(!(r=He(e,"return"))){if("throw"===t)throw n;return n}r=ae(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return At(r),n},Wn=W.TypeError,Gn=function(e,t){this.stopped=e,this.result=t},qn=Gn.prototype,Kn=W.String,Yn=function(e){if("Symbol"===zn(e))throw TypeError("Cannot convert a Symbol value to a string");return Kn(e)},Xn=!re(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",fe(1,7)),7!==e.stack)}),Zn=ot("toStringTag"),Jn=W.Error,Qn=[].push,er=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Se(tr,this);Ut?n=Ut(new Jn(void 0),o?Ht(this):tr):(n=o?this:wn(tr),Tt(n,Zn,"Error")),Tt(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:Yn(e)}(t,"")),Xn&&Tt(n,"stack",function(e,t){if("string"!=typeof e)return e;if(Fn)for(;t--;)e=Sn(e,Bn,"");else if(Tn)return On(Cn(An(e,"\n"),t),"\n");return e}(n.stack,1)),function(e,t){xe(t)&&"cause"in t&&Tt(e,"cause",t.cause)}(n,r);var i=[];return function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Dt(t,l),v=function(e){return r&&Un(r,"normal",e),new Gn(!0,e)},g=function(e){return f?(At(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=Vn(e)))throw Wn(Re(e)+" is not iterable");if(function(e){return void 0!==e&&(_n.Array===e||jn[Pn]===e)}(o)){for(i=0,a=Jt(e);a>i;i++)if((u=g(e[i]))&&Se(qn,u))return u;return new Gn(!1)}r=function(e,t){var n=arguments.length<2?Vn(e):t;if(ze(n))return At(ae(n,e));throw $n(Re(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=ae(s,r)).done;){try{u=g(c.value)}catch(e){Un(r,"throw",e)}if("object"==D(u)&&u&&Se(qn,u))return u}new Gn(!1)}(e,Qn,{that:i}),Tt(n,"errors",i),n};Ut?Ut(er,Jn):function(e,t){for(var n=fn(t),r=Ft.f,o=ht.f,i=0;i<n.length;i++){var a=n[i];Ye(e,a)||r(e,a,o(t,a))}}(er,Jn);var tr=er.prototype=wn(Jn.prototype,{constructor:fe(1,er),message:fe(1,""),name:fe(1,"AggregateError")});jt({global:!0},{AggregateError:er});var nr=te(Function.toString);ne(Ue.inspectSource)||(Ue.inspectSource=function(e){return nr(e)});var rr,or,ir,ar=Ue.inspectSource,ur=W.WeakMap,sr=ne(ur)&&/native code/.test(ar(ur)),cr=W.TypeError,lr=W.WeakMap;if(sr||Ue.state){var fr=Ue.state||(Ue.state=new lr),dr=te(fr.get),pr=te(fr.has),hr=te(fr.set);rr=function(e,t){if(pr(fr,e))throw new cr("Object already initialized");return t.facade=e,hr(fr,e,t),t},or=function(e){return dr(fr,e)||{}},ir=function(e){return pr(fr,e)}}else{var vr=It("state");en[vr]=!0,rr=function(e,t){if(Ye(e,vr))throw new cr("Object already initialized");return t.facade=e,Tt(e,vr,t),t},or=function(e){return Ye(e,vr)?e[vr]:{}},ir=function(e){return Ye(e,vr)}}var gr,yr,mr,br={set:rr,get:or,has:ir,enforce:function(e){return ir(e)?or(e):rr(e,{})},getterFor:function(e){return function(t){var n;if(!xe(t)||(n=or(t)).type!==e)throw cr("Incompatible receiver, "+e+" required");return n}}},wr=Function.prototype,xr=oe&&Object.getOwnPropertyDescriptor,Er=Ye(wr,"name"),Dr={PROPER:Er&&"something"===function(){}.name,CONFIGURABLE:Er&&(!oe||oe&&xr(wr,"name").configurable)},Cr=function(e,t,n,r){Tt(e,t,n)},Sr=ot("iterator"),Ar=!1;[].keys&&("next"in(mr=[].keys())?(yr=Ht(Ht(mr)))!==Object.prototype&&(gr=yr):Ar=!0);var Or=null==gr||re(function(){var e={};return gr[Sr].call(e)!==e});gr=Or?{}:wn(gr),ne(gr[Sr])||Cr(gr,Sr,function(){return this});var kr={IteratorPrototype:gr,BUGGY_SAFARI_ITERATORS:Ar},Br=In?{}.toString:function(){return"[object "+zn(this)+"]"},Fr=Ft.f,Tr=ot("toStringTag"),_r=function(e,t,n,r){if(e){var o=n?e:e.prototype;Ye(o,Tr)||Fr(o,Tr,{configurable:!0,value:t}),r&&!In&&Tt(o,"toString",Br)}},Pr=kr.IteratorPrototype,jr=function(){return this},Nr=Dr.PROPER,Ir=kr.BUGGY_SAFARI_ITERATORS,Lr=ot("iterator"),Rr=function(){return this},Mr=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=wn(Pr,{next:fe(1,n)}),_r(e,r,!1,!0),_n[r]=jr}(n,t,r);var u,s,c=function(e){if(e===o&&h)return h;if(!Ir&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},l=t+" Iterator",f=!1,d=e.prototype,p=d[Lr]||d["@@iterator"]||o&&d[o],h=!Ir&&p||c(o),v="Array"==t&&d.entries||p;return v&&(u=Ht(v.call(new e)))!==Object.prototype&&u.next&&(_r(u,l,!0,!0),_n[l]=Rr),Nr&&"values"==o&&p&&"values"!==p.name&&(f=!0,h=function(){return ae(p,this)}),o&&(s={values:c("values"),keys:c("keys"),entries:c("entries")},a||jt({target:t,proto:!0,forced:Ir||f},s)),_n[t]=h,s},zr=br.set,Hr=br.getterFor("Array Iterator");Mr(Array,"Array",function(e,t){zr(this,{type:"Array Iterator",target:we(e),index:0,kind:t})},function(){var e=Hr(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"),_n.Arguments=_n.Array;var Vr=te("".charAt),$r=te("".charCodeAt),Ur=te("".slice),Wr=function(e){return function(t,n){var r,o,i=Yn(be(t)),a=qt(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=$r(i,a))<55296||r>56319||a+1===u||(o=$r(i,a+1))<56320||o>57343?e?Vr(i,a):r:e?Ur(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),Gr=br.set,qr=br.getterFor("String Iterator");Mr(String,"String",function(e){Gr(this,{type:"String Iterator",string:Yn(e),index:0})},function(){var e,t=qr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Wr(n,r),t.index+=e.length,{value:e,done:!1})});var Kr=Ee.AggregateError,Yr=ot("toStringTag");for(var Xr in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Zr=W[Xr],Jr=Zr&&Zr.prototype;Jr&&zn(Jr)!==Yr&&Tt(Jr,Yr,Xr),_n[Xr]=_n.Array}var Qr,eo,to=Kr,no=function(e){return e&&e.Math==Math&&e},ro=no("object"==("undefined"==typeof globalThis?"undefined":D(globalThis))&&globalThis)||no("object"==("undefined"==typeof window?"undefined":D(window))&&window)||no("object"==("undefined"==typeof self?"undefined":D(self))&&self)||no("object"==D(z)&&z)||function(){return this}()||Function("return this")(),oo=function(e){try{return!!e()}catch(e){return!0}},io=!oo(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),ao=Function.prototype.call,uo=ao.bind?ao.bind(ao):function(){return ao.apply(ao,arguments)},so={}.propertyIsEnumerable,co=Object.getOwnPropertyDescriptor,lo=co&&!so.call({1:2},1)?function(e){var t=co(this,e);return!!t&&t.enumerable}:so,fo={f:lo},po=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ho=Function.prototype,vo=ho.bind,go=ho.call,yo=vo&&vo.bind(go),mo=vo?function(e){return e&&yo(go,e)}:function(e){return e&&function(){return go.apply(e,arguments)}},bo=mo({}.toString),wo=mo("".slice),xo=function(e){return wo(bo(e),8,-1)},Eo=ro.Object,Do=mo("".split),Co=oo(function(){return!Eo("z").propertyIsEnumerable(0)})?function(e){return"String"==xo(e)?Do(e,""):Eo(e)}:Eo,So=ro.TypeError,Ao=function(e){if(null==e)throw So("Can't call method on "+e);return e},Oo=function(e){return Co(Ao(e))},ko=function(e){return"function"==typeof e},Bo=function(e){return"object"==D(e)?null!==e:ko(e)},Fo=function(e,t){return arguments.length<2?function(e){return ko(e)?e:void 0}(ro[e]):ro[e]&&ro[e][t]},To=mo({}.isPrototypeOf),_o=Fo("navigator","userAgent")||"",Po=ro.process,jo=ro.Deno,No=Po&&Po.versions||jo&&jo.version,Io=No&&No.v8;Io&&(eo=(Qr=Io.split("."))[0]>0&&Qr[0]<4?1:+(Qr[0]+Qr[1])),!eo&&_o&&(!(Qr=_o.match(/Edge\/(\d+)/))||Qr[1]>=74)&&(Qr=_o.match(/Chrome\/(\d+)/))&&(eo=+Qr[1]);var Lo=eo,Ro=!!Object.getOwnPropertySymbols&&!oo(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Lo&&Lo<41}),Mo=Ro&&!Symbol.sham&&"symbol"==D(Symbol.iterator),zo=ro.Object,Ho=Mo?function(e){return"symbol"==D(e)}:function(e){var t=Fo("Symbol");return ko(t)&&To(t.prototype,zo(e))},Vo=ro.String,$o=function(e){try{return Vo(e)}catch(e){return"Object"}},Uo=ro.TypeError,Wo=function(e){if(ko(e))return e;throw Uo($o(e)+" is not a function")},Go=function(e,t){var n=e[t];return null==n?void 0:Wo(n)},qo=ro.TypeError,Ko=Object.defineProperty,Yo=function(e,t){try{Ko(ro,e,{value:t,configurable:!0,writable:!0})}catch(H){ro[e]=t}return t},Xo=ro["__core-js_shared__"]||Yo("__core-js_shared__",{}),Zo=H(function(e){(e.exports=function(e,t){return Xo[e]||(Xo[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Jo=ro.Object,Qo=function(e){return Jo(Ao(e))},ei=mo({}.hasOwnProperty),ti=Object.hasOwn||function(e,t){return ei(Qo(e),t)},ni=0,ri=Math.random(),oi=mo(1..toString),ii=function(e){return"Symbol("+(void 0===e?"":e)+")_"+oi(++ni+ri,36)},ai=Zo("wks"),ui=ro.Symbol,si=ui&&ui.for,ci=Mo?ui:ui&&ui.withoutSetter||ii,li=function(e){if(!ti(ai,e)||!Ro&&"string"!=typeof ai[e]){var t="Symbol."+e;Ro&&ti(ui,e)?ai[e]=ui[e]:ai[e]=Mo&&si?si(t):ci(t)}return ai[e]},fi=ro.TypeError,di=li("toPrimitive"),pi=function(e){var t=function(e,t){if(!Bo(e)||Ho(e))return e;var n,r=Go(e,di);if(r){if(n=uo(r,e,t),!Bo(n)||Ho(n))return n;throw fi("Can't convert object to primitive value")}return function(e){var t,n;if(ko(t=e.toString)&&!Bo(n=uo(t,e)))return n;if(ko(t=e.valueOf)&&!Bo(n=uo(t,e)))return n;throw qo("Can't convert object to primitive value")}(e)}(e,"string");return Ho(t)?t:t+""},hi=ro.document,vi=Bo(hi)&&Bo(hi.createElement),gi=function(e){return vi?hi.createElement(e):{}},yi=!io&&!oo(function(){return 7!=Object.defineProperty(gi("div"),"a",{get:function(){return 7}}).a}),mi=Object.getOwnPropertyDescriptor,bi=io?mi:function(e,t){if(e=Oo(e),t=pi(t),yi)try{return mi(e,t)}catch(e){}if(ti(e,t))return po(!uo(fo.f,e,t),e[t])},wi={f:bi},xi=ro.String,Ei=ro.TypeError,Di=function(e){if(Bo(e))return e;throw Ei(xi(e)+" is not an object")},Ci=ro.TypeError,Si=Object.defineProperty,Ai=io?Si:function(e,t,n){if(Di(e),t=pi(t),Di(n),yi)try{return Si(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ci("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Oi={f:Ai},ki=io?function(e,t,n){return Oi.f(e,t,po(1,n))}:function(e,t,n){return e[t]=n,e},Bi=mo(Function.toString);ko(Xo.inspectSource)||(Xo.inspectSource=function(e){return Bi(e)});var Fi,Ti,_i,Pi=Xo.inspectSource,ji=ro.WeakMap,Ni=ko(ji)&&/native code/.test(Pi(ji)),Ii=Zo("keys"),Li=function(e){return Ii[e]||(Ii[e]=ii(e))},Ri={},Mi=ro.TypeError,zi=ro.WeakMap;if(Ni||Xo.state){var Hi=Xo.state||(Xo.state=new zi),Vi=mo(Hi.get),$i=mo(Hi.has),Ui=mo(Hi.set);Fi=function(e,t){if($i(Hi,e))throw new Mi("Object already initialized");return t.facade=e,Ui(Hi,e,t),t},Ti=function(e){return Vi(Hi,e)||{}},_i=function(e){return $i(Hi,e)}}else{var Wi=Li("state");Ri[Wi]=!0,Fi=function(e,t){if(ti(e,Wi))throw new Mi("Object already initialized");return t.facade=e,ki(e,Wi,t),t},Ti=function(e){return ti(e,Wi)?e[Wi]:{}},_i=function(e){return ti(e,Wi)}}var Gi={set:Fi,get:Ti,has:_i,enforce:function(e){return _i(e)?Ti(e):Fi(e,{})},getterFor:function(e){return function(t){var n;if(!Bo(t)||(n=Ti(t)).type!==e)throw Mi("Incompatible receiver, "+e+" required");return n}}},qi=Function.prototype,Ki=io&&Object.getOwnPropertyDescriptor,Yi=ti(qi,"name"),Xi={PROPER:Yi&&"something"===function(){}.name,CONFIGURABLE:Yi&&(!io||io&&Ki(qi,"name").configurable)},Zi=H(function(e){var t=Xi.CONFIGURABLE,n=Gi.get,r=Gi.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;ko(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ti(i,"name")||t&&i.name!==f)&&ki(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==ro?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:ki(e,n,i)):c?e[n]=i:Yo(n,i)})(Function.prototype,"toString",function(){return ko(this)&&n(this).source||Pi(this)})}),Ji=Math.ceil,Qi=Math.floor,ea=function(e){var t=+e;return t!=t||0===t?0:(t>0?Qi:Ji)(t)},ta=Math.max,na=Math.min,ra=function(e,t){var n=ea(e);return n<0?ta(n+t,0):na(n,t)},oa=Math.min,ia=function(e){return e>0?oa(ea(e),9007199254740991):0},aa=function(e){return ia(e.length)},ua=function(e){return function(t,n,r){var o,i=Oo(t),a=aa(i),u=ra(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}}(!1),sa=mo([].push),ca=function(e,t){var n,r=Oo(e),o=0,i=[];for(n in r)!ti(Ri,n)&&ti(r,n)&&sa(i,n);for(;t.length>o;)ti(r,n=t[o++])&&(~ua(i,n)||sa(i,n));return i},la=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fa=la.concat("length","prototype"),da=Object.getOwnPropertyNames||function(e){return ca(e,fa)},pa={f:da},ha={f:Object.getOwnPropertySymbols},va=mo([].concat),ga=Fo("Reflect","ownKeys")||function(e){var t=pa.f(Di(e)),n=ha.f;return n?va(t,n(e)):t},ya=function(e,t){for(var n=ga(t),r=Oi.f,o=wi.f,i=0;i<n.length;i++){var a=n[i];ti(e,a)||r(e,a,o(t,a))}},ma=/#|\.prototype\./,ba=function(e,t){var n=xa[wa(e)];return n==Da||n!=Ea&&(ko(t)?oo(t):!!t)},wa=ba.normalize=function(e){return String(e).replace(ma,".").toLowerCase()},xa=ba.data={},Ea=ba.NATIVE="N",Da=ba.POLYFILL="P",Ca=ba,Sa=wi.f,Aa=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?ro:c?ro[u]||Yo(u,{}):(ro[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Sa(n,r))&&a.value:n[r],!Ca(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(D(i)==D(o))continue;ya(i,o)}(e.sham||o&&o.sham)&&ki(i,"sham",!0),Zi(n,r,i,e)}},Oa={};Oa[li("toStringTag")]="z";var ka,Ba="[object z]"===String(Oa),Fa=li("toStringTag"),Ta=ro.Object,_a="Arguments"==xo(function(){return arguments}()),Pa=Ba?xo: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=Ta(e),Fa))?n:_a?xo(t):"Object"==(r=xo(t))&&ko(t.callee)?"Arguments":r},ja=ro.String,Na=function(e){if("Symbol"===Pa(e))throw TypeError("Cannot convert a Symbol value to a string");return ja(e)},Ia=function(){var e=Di(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},La=ro.RegExp,Ra=oo(function(){var e=La("a","y");return e.lastIndex=2,null!=e.exec("abcd")});Ra||oo(function(){return!La("a","y").sticky});var Ma=Ra||oo(function(){var e=La("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),za={BROKEN_CARET:Ma},Ha=Object.keys||function(e){return ca(e,la)},Va=io?Object.defineProperties:function(e,t){Di(e);for(var n,r=Oo(t),o=Ha(t),i=o.length,a=0;i>a;)Oi.f(e,n=o[a++],r[n]);return e},$a=Fo("document","documentElement"),Ua=Li("IE_PROTO"),Wa=function(){},Ga=function(e){return"<script>"+e+"<\/script>"},qa=function(e){e.write(Ga("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ka=function(){try{ka=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ka="undefined"!=typeof document?document.domain&&ka?qa(ka):((t=gi("iframe")).style.display="none",$a.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ga("document.F=Object")),e.close(),e.F):qa(ka);for(var n=la.length;n--;)delete Ka.prototype[la[n]];return Ka()};Ri[Ua]=!0;var Ya,Xa,Za=Object.create||function(e,t){var n;return null!==e?(Wa.prototype=Di(e),n=new Wa,Wa.prototype=null,n[Ua]=e):n=Ka(),void 0===t?n:Va(n,t)},Ja=ro.RegExp,Qa=oo(function(){var e=Ja(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),eu=ro.RegExp,tu=oo(function(){var e=eu("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),nu=Gi.get,ru=Zo("native-string-replace",String.prototype.replace),ou=RegExp.prototype.exec,iu=ou,au=mo("".charAt),uu=mo("".indexOf),su=mo("".replace),cu=mo("".slice),lu=(Xa=/b*/g,uo(ou,Ya=/a/,"a"),uo(ou,Xa,"a"),0!==Ya.lastIndex||0!==Xa.lastIndex),fu=za.BROKEN_CARET,du=void 0!==/()??/.exec("")[1];(lu||du||fu||Qa||tu)&&(iu=function(e){var t,n,r,o,i,a,u,s=this,c=nu(s),l=Na(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=uo(iu,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=fu&&s.sticky,h=uo(Ia,s),v=s.source,g=0,y=l;if(p&&(h=su(h,"y",""),-1===uu(h,"g")&&(h+="g"),y=cu(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==au(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),du&&(n=new RegExp("^"+v+"$(?!\\s)",h)),lu&&(r=s.lastIndex),o=uo(ou,p?n:s,y),p?o?(o.input=cu(o.input,g),o[0]=cu(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:lu&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),du&&o&&o.length>1&&uo(ru,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=Za(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var pu=iu;Aa({target:"RegExp",proto:!0,forced:/./.exec!==pu},{exec:pu});li("species");var hu=RegExp.prototype,vu=mo("".charAt),gu=mo("".charCodeAt),yu=mo("".slice),mu={charAt:function(e){return function(t,n){var r,o,i=Na(Ao(t)),a=ea(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=gu(i,a))<55296||r>56319||a+1===u||(o=gu(i,a+1))<56320||o>57343?e?vu(i,a):r:e?yu(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},bu=mu.charAt,wu=function(e,t,n){return t+(n?bu(e,t).length:1)},xu=ro.TypeError,Eu=function(e,t){var n=e.exec;if(ko(n)){var r=uo(n,e,t);return null!==r&&Di(r),r}if("RegExp"===xo(e))return uo(pu,e,t);throw xu("RegExp#exec called on incompatible receiver")};!function(e){var t=li(e),n=!oo(function(){var n={};return n[t]=function(){return 7},7!=""[e](n)}),r=n&&!oo(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},n[t](""),!e});if(!n||!r){var o=mo(/./[t]),i=function(e,t,n){return[function(t){var n=Ao(this),r=null==t?void 0:Go(t,e);return r?uo(r,t,n):new RegExp(t)[e](Na(n))},function(e){var r=Di(this),o=Na(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Eu(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=Eu(r,o));){var l=Na(u[0]);s[c]=l,""===l&&(r.lastIndex=wu(o,ia(r.lastIndex),a)),c++}return 0===c?null:s}]}(t,""[e],function(e,t,r,i,a){var u=mo(e),s=t.exec;return s===pu||s===hu.exec?n&&!a?{done:!0,value:o(t,r,i)}:{done:!0,value:u(r,t,i)}:{done:!1}});Zi(String.prototype,e,i[0]),Zi(hu,t,i[1])}}("match"),Aa({global:!0},{globalThis:ro});var Du=!oo(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Cu=Li("IE_PROTO"),Su=ro.Object,Au=Su.prototype,Ou=Du?Su.getPrototypeOf:function(e){var t=Qo(e);if(ti(t,Cu))return t[Cu];var n=t.constructor;return ko(n)&&t instanceof n?n.prototype:t instanceof Su?Au:null},ku=ro.String,Bu=ro.TypeError,Fu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=mo(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Di(n),function(e){if("object"==D(e)||ko(e))return e;throw Bu("Can't set "+ku(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Tu=ro.Array,_u=Math.max,Pu=mo("".replace),ju=mo("".split),Nu=mo([].join),Iu=String(Error("zxcasd").stack),Lu=/\n\s*at [^:]*:[^\n]*/,Ru=Lu.test(Iu),Mu=/@[^\n]*\n/.test(Iu)&&!/zxcasd/.test(Iu),zu=mo(mo.bind),Hu=function(e,t){return Wo(e),void 0===t?e:zu?zu(e,t):function(){return e.apply(t,arguments)}},Vu={},$u=li("iterator"),Uu=Array.prototype,Wu=li("iterator"),Gu=function(e){if(null!=e)return Go(e,Wu)||Go(e,"@@iterator")||Vu[Pa(e)]},qu=ro.TypeError,Ku=function(e,t,n){var r,o;Di(e);try{if(!(r=Go(e,"return"))){if("throw"===t)throw n;return n}r=uo(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Di(r),n},Yu=ro.TypeError,Xu=function(e,t){this.stopped=e,this.result=t},Zu=Xu.prototype,Ju=!oo(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",po(1,7)),7!==e.stack)}),Qu=li("toStringTag"),es=ro.Error,ts=[].push,ns=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=To(rs,this);Fu?n=Fu(new es(void 0),o?Ou(this):rs):(n=o?this:Za(rs),ki(n,Qu,"Error")),ki(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:Na(e)}(t,"")),Ju&&ki(n,"stack",function(e,t){if("string"!=typeof e)return e;if(Ru)for(;t--;)e=Pu(e,Lu,"");else if(Mu)return Nu(function(e,t){for(var n,r,o,i,a=aa(e),u=ra(t,a),s=ra(a,a),c=Tu(_u(s-u,0)),l=0;u<s;u++,l++)n=c,r=l,o=e[u],(i=pi(r))in n?Oi.f(n,i,po(0,o)):n[i]=o;return c.length=l,c}(ju(e,"\n"),t),"\n");return e}(n.stack,1)),function(e,t){Bo(t)&&"cause"in t&&ki(e,"cause",t.cause)}(n,r);var i=[];return function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Hu(t,l),v=function(e){return r&&Ku(r,"normal",e),new Xu(!0,e)},g=function(e){return f?(Di(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=Gu(e)))throw Yu($o(e)+" is not iterable");if(function(e){return void 0!==e&&(Vu.Array===e||Uu[$u]===e)}(o)){for(i=0,a=aa(e);a>i;i++)if((u=g(e[i]))&&To(Zu,u))return u;return new Xu(!1)}r=function(e,t){var n=arguments.length<2?Gu(e):t;if(Wo(n))return Di(uo(n,e));throw qu($o(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=uo(s,r)).done;){try{u=g(c.value)}catch(e){Ku(r,"throw",e)}if("object"==D(u)&&u&&To(Zu,u))return u}new Xu(!1)}(e,ts,{that:i}),ki(n,"errors",i),n};Fu?Fu(ns,es):ya(ns,es);var rs=ns.prototype=Za(es.prototype,{constructor:po(1,ns),message:po(1,""),name:po(1,"AggregateError")});Aa({global:!0},{AggregateError:ns});var os=li("unscopables"),is=Array.prototype;null==is[os]&&Oi.f(is,os,{configurable:!0,value:Za(null)});var as,us,ss,cs=function(e){is[os][e]=!0},ls=li("iterator"),fs=!1;[].keys&&("next"in(ss=[].keys())?(us=Ou(Ou(ss)))!==Object.prototype&&(as=us):fs=!0);var ds=null==as||oo(function(){var e={};return as[ls].call(e)!==e});ds&&(as={}),ko(as[ls])||Zi(as,ls,function(){return this});var ps={IteratorPrototype:as,BUGGY_SAFARI_ITERATORS:fs},hs=Oi.f,vs=li("toStringTag"),gs=function(e,t,n){e&&!ti(e=n?e:e.prototype,vs)&&hs(e,vs,{configurable:!0,value:t})},ys=ps.IteratorPrototype,ms=function(){return this},bs=Xi.PROPER,ws=Xi.CONFIGURABLE,xs=ps.IteratorPrototype,Es=ps.BUGGY_SAFARI_ITERATORS,Ds=li("iterator"),Cs=function(){return this},Ss=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=Za(ys,{next:po(1,n)}),gs(e,r,!1),Vu[r]=ms}(n,t,r);var u,s,c=function(e){if(e===o&&h)return h;if(!Es&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},l=t+" Iterator",f=!1,d=e.prototype,p=d[Ds]||d["@@iterator"]||o&&d[o],h=!Es&&p||c(o),v="Array"==t&&d.entries||p;return v&&(u=Ou(v.call(new e)))!==Object.prototype&&u.next&&(Ou(u)!==xs&&(Fu?Fu(u,xs):ko(u[Ds])||Zi(u,Ds,Cs)),gs(u,l,!0)),bs&&"values"==o&&p&&"values"!==p.name&&(ws?ki(d,"name","values"):(f=!0,h=function(){return uo(p,this)})),o&&(s={values:c("values"),keys:c("keys"),entries:c("entries")},a||Aa({target:t,proto:!0,forced:Es||f},s)),d[Ds]!==h&&Zi(d,Ds,h,{name:o}),Vu[t]=h,s},As=Gi.set,Os=Gi.getterFor("Array Iterator"),ks=Ss(Array,"Array",function(e,t){As(this,{type:"Array Iterator",target:Oo(e),index:0,kind:t})},function(){var e=Os(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");Vu.Arguments=Vu.Array,cs("keys"),cs("values"),cs("entries");var Bs=mu.charAt,Fs=Gi.set,Ts=Gi.getterFor("String Iterator");Ss(String,"String",function(e){Fs(this,{type:"String Iterator",string:Na(e),index:0})},function(){var e,t=Ts(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Bs(n,r),t.index+=e.length,{value:e,done:!1})});var _s,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},js=gi("span").classList,Ns=js&&js.constructor&&js.constructor.prototype,Is=Ns===Object.prototype?void 0:Ns,Ls=li("iterator"),Rs=li("toStringTag"),Ms=ks.values,zs=function(e,t){if(e){if(e[Ls]!==Ms)try{ki(e,Ls,Ms)}catch(t){e[Ls]=Ms}if(e[Rs]||ki(e,Rs,t),Ps[t])for(var n in ks)if(e[n]!==ks[n])try{ki(e,n,ks[n])}catch(t){e[n]=ks[n]}}};for(var Hs in Ps)zs(ro[Hs]&&ro[Hs].prototype,Hs);function Vs(){"undefined"==typeof globalThis&&(window.globalThis=window)}function $s(){void 0===to&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}zs(Is,"DOMTokenList"),"undefined"==typeof global?(window,Vs(),$s()):global&&(null===(_s=global.navigator)||void 0===_s?void 0:_s.userAgent.match("QQBrowser"))&&(Vs(),$s());var Us=Array.isArray||function(e){return"Array"==he(e)},Ws=function(){},Gs=[],qs=Ce("Reflect","construct"),Ks=/^\s*(?:class|function)\b/,Ys=te(Ks.exec),Xs=!Ks.exec(Ws),Zs=function(e){if(!ne(e))return!1;try{return qs(Ws,Gs,e),!0}catch(e){return!1}},Js=!qs||re(function(){var e;return Zs(Zs.call)||!Zs(Object)||!Zs(function(){e=!0})||e})?function(e){if(!ne(e))return!1;switch(zn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Xs||!!Ys(Ks,ar(e))}:Zs,Qs=ot("species"),ec=W.Array,tc=function(e,t){return new(function(e){var t;return Us(e)&&(t=e.constructor,(Js(t)&&(t===ec||Us(t.prototype))||xe(t)&&null===(t=t[Qs]))&&(t=void 0)),void 0===t?ec:t}(e))(0===t?0:t)},nc=ot("species"),rc=ot("isConcatSpreadable"),oc=W.TypeError,ic=_e>=51||!re(function(){var e=[];return e[rc]=!1,e.concat()[0]!==e}),ac=_e>=51||!re(function(){var e=[];return(e.constructor={})[nc]=function(){return{foo:1}},1!==e.concat(Boolean).foo}),uc=function(e){if(!xe(e))return!1;var t=e[rc];return void 0!==t?!!t:Us(e)};jt({target:"Array",proto:!0,forced:!ic||!ac},{concat:function(e){var t,n,r,o,i,a=qe(this),u=tc(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(uc(i=-1===t?a:arguments[t])){if(s+(o=Jt(i))>9007199254740991)throw oc("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&xn(u,s,i[n])}else{if(s>=9007199254740991)throw oc("Maximum allowed index exceeded");xn(u,s++,i)}return u.length=s,u}});var sc=sn.f,cc="object"==("undefined"==typeof window?"undefined":D(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],lc={f:function(e){return cc&&"Window"==he(e)?function(e){try{return sc(e)}catch(e){return Cn(cc)}}(e):sc(we(e))}},fc=te([].slice),dc={f:ot},pc=Ft.f,hc=function(e){var t=Ee.Symbol||(Ee.Symbol={});Ye(t,e)||pc(t,e,{value:dc.f(e)})},vc=te([].push),gc=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=qe(s),v=ye(h),g=Dt(c,l),y=Jt(v),m=0,b=f||tc,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:vc(w,d)}else switch(e){case 4:return!1;case 7:vc(w,d)}return i?-1:r||o?o:w}}(0),yc=It("hidden"),mc=ot("toPrimitive"),bc=br.set,wc=br.getterFor("Symbol"),xc=Object.prototype,Ec=W.Symbol,Dc=Ec&&Ec.prototype,Cc=W.TypeError,Sc=W.QObject,Ac=Ce("JSON","stringify"),Oc=ht.f,kc=Ft.f,Bc=lc.f,Fc=le.f,Tc=te([].push),_c=We("symbols"),Pc=We("op-symbols"),jc=We("string-to-symbol-registry"),Nc=We("symbol-to-string-registry"),Ic=We("wks"),Lc=!Sc||!Sc.prototype||!Sc.prototype.findChild,Rc=oe&&re(function(){return 7!=wn(kc({},"a",{get:function(){return kc(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=Oc(xc,t);r&&delete xc[t],kc(e,t,n),r&&e!==xc&&kc(xc,t,r)}:kc,Mc=function(e,t){var n=_c[e]=wn(Dc);return bc(n,{type:"Symbol",tag:e,description:t}),oe||(n.description=t),n},zc=function(e,t,n){e===xc&&zc(Pc,t,n),At(e);var r=ut(t);return At(n),Ye(_c,r)?(n.enumerable?(Ye(e,yc)&&e[yc][r]&&(e[yc][r]=!1),n=wn(n,{enumerable:fe(0,!1)})):(Ye(e,yc)||kc(e,yc,fe(1,{})),e[yc][r]=!0),Rc(e,r,n)):kc(e,r,n)},Hc=function(e,t){At(e);var n=we(t),r=dn(n).concat(Wc(n));return gc(r,function(t){oe&&!ae(Vc,n,t)||zc(e,t,n[t])}),e},Vc=function(e){var t=ut(e),n=ae(Fc,this,t);return!(this===xc&&Ye(_c,t)&&!Ye(Pc,t))&&(!(n||!Ye(this,t)||!Ye(_c,t)||Ye(this,yc)&&this[yc][t])||n)},$c=function(e,t){var n=we(e),r=ut(t);if(n!==xc||!Ye(_c,r)||Ye(Pc,r)){var o=Oc(n,r);return!o||!Ye(_c,r)||Ye(n,yc)&&n[yc][r]||(o.enumerable=!0),o}},Uc=function(e){var t=Bc(we(e)),n=[];return gc(t,function(e){Ye(_c,e)||Ye(en,e)||Tc(n,e)}),n},Wc=function(e){var t=e===xc,n=Bc(t?Pc:we(e)),r=[];return gc(n,function(e){!Ye(_c,e)||t&&!Ye(xc,e)||Tc(r,_c[e])}),r};if(Pe||(Dc=(Ec=function(){if(Se(Dc,this))throw Cc("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Yn(arguments[0]):void 0,t=Qe(e),n=function(e){this===xc&&ae(n,Pc,e),Ye(this,yc)&&Ye(this[yc],t)&&(this[yc][t]=!1),Rc(this,t,fe(1,e))};return oe&&Lc&&Rc(xc,t,{configurable:!0,set:n}),Mc(t,e)}).prototype,Cr(Dc,"toString",function(){return wc(this).tag}),Cr(Ec,"withoutSetter",function(e){return Mc(Qe(e),e)}),le.f=Vc,Ft.f=zc,ht.f=$c,sn.f=lc.f=Uc,cn.f=Wc,dc.f=function(e){return Mc(ot(e),e)},oe&&kc(Dc,"description",{configurable:!0,get:function(){return wc(this).description}})),jt({global:!0,wrap:!0,forced:!Pe,sham:!Pe},{Symbol:Ec}),gc(dn(Ic),function(e){hc(e)}),jt({target:"Symbol",stat:!0,forced:!Pe},{for:function(e){var t=Yn(e);if(Ye(jc,t))return jc[t];var n=Ec(t);return jc[t]=n,Nc[n]=t,n},keyFor:function(e){if(!Ie(e))throw Cc(e+" is not a symbol");if(Ye(Nc,e))return Nc[e]},useSetter:function(){Lc=!0},useSimple:function(){Lc=!1}}),jt({target:"Object",stat:!0,forced:!Pe,sham:!oe},{create:function(e,t){return void 0===t?wn(e):Hc(wn(e),t)},defineProperty:zc,defineProperties:Hc,getOwnPropertyDescriptor:$c}),jt({target:"Object",stat:!0,forced:!Pe},{getOwnPropertyNames:Uc,getOwnPropertySymbols:Wc}),jt({target:"Object",stat:!0,forced:re(function(){cn.f(1)})},{getOwnPropertySymbols:function(e){return cn.f(qe(e))}}),Ac){var Gc=!Pe||re(function(){var e=Ec();return"[null]"!=Ac([e])||"{}"!=Ac({a:e})||"{}"!=Ac(Object(e))});jt({target:"JSON",stat:!0,forced:Gc},{stringify:function(e,t,n){var r=fc(arguments),o=t;if((xe(t)||void 0!==e)&&!Ie(e))return Us(t)||(t=function(e,t){if(ne(o)&&(t=ae(o,this,e,t)),!Ie(t))return t}),r[1]=t,X(Ac,null,r)}})}if(!Dc[mc]){var qc=Dc.valueOf;Cr(Dc,mc,function(e){return ae(qc,this)})}_r(Ec,"Symbol"),en[yc]=!0,hc("asyncIterator"),hc("hasInstance"),hc("isConcatSpreadable"),hc("iterator"),hc("match"),hc("matchAll"),hc("replace"),hc("search"),hc("species"),hc("split"),hc("toPrimitive"),hc("toStringTag"),hc("unscopables"),_r(W.JSON,"JSON",!0);var Kc=Ee.Symbol;hc("asyncDispose"),hc("dispose"),hc("matcher"),hc("metadata"),hc("observable"),hc("patternMatch"),hc("replaceAll");var Yc=Kc,Xc=dc.f("iterator"),Zc=H(function(e){function t(n){return"function"==typeof Yc&&"symbol"==D(Xc)?(e.exports=t=function(e){return D(e)},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Yc&&e.constructor===Yc&&e!==Yc.prototype?"symbol":D(e)},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),Jc=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Zc),Qc=wi.f,el=oo(function(){Qc(1)});if(Aa({target:"Object",stat:!0,forced:!io||el,sham:!io},{getOwnPropertyDescriptor:function(e,t){return Qc(Oo(e),t)}}),"object"===("undefined"==typeof global?"undefined":Jc(global))){var tl=Object.getOwnPropertyDescriptor(global,"window");global.window&&!tl.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})}
- /*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function nl(e){return"[object Object]"===Object.prototype.toString.call(e)}function rl(e){var t,n;return!1!==nl(e)&&(void 0===(t=e.constructor)||!1!==nl(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function ol(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 il(e){return!!e&&!!e[$l]}function al(e){return!!e&&(function(e){if(!e||"object"!=D(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)===Ul}(e)||Array.isArray(e)||!!e[Vl]||!!e.constructor[Vl]||fl(e)||dl(e))}function ul(e,t,n){void 0===n&&(n=!1),0===sl(e)?(n?Object.keys:Wl)(e).forEach(function(r){n&&"symbol"==D(r)||t(r,e[r],e)}):e.forEach(function(n,r){return t(r,n,e)})}function sl(e){var t=e[$l];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:fl(e)?2:dl(e)?3:0}function cl(e,t){return 2===sl(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ll(e,t,n){var r=sl(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function fl(e){return Rl&&e instanceof Map}function dl(e){return Ml&&e instanceof Set}function pl(e){return e.o||e.t}function hl(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Gl(e);delete t[$l];for(var n=Wl(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 vl(e,t){return void 0===t&&(t=!1),yl(e)||il(e)||!al(e)||(sl(e)>1&&(e.set=e.add=e.clear=e.delete=gl),Object.freeze(e),t&&ul(e,function(e,t){return vl(t,!0)},!0)),e}function gl(){ol(2)}function yl(e){return null==e||"object"!=D(e)||Object.isFrozen(e)}function ml(e){var t=ql[e];return t||ol(18,e),t}function bl(){return Il}function wl(e,t){t&&(ml("Patches"),e.u=[],e.s=[],e.v=t)}function xl(e){El(e),e.p.forEach(Cl),e.p=null}function El(e){e===Il&&(Il=e.l)}function Dl(e){return Il={p:[],l:Il,h:e,m:!0,_:0}}function Cl(e){var t=e[$l];0===t.i||1===t.i?t.j():t.O=!0}function Sl(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||ml("ES5").S(t,e,r),r?(n[$l].P&&(xl(t),ol(4)),al(e)&&(e=Al(t,e),t.l||kl(t,e)),t.u&&ml("Patches").M(n[$l],e,t.u,t.s)):e=Al(t,n,[]),xl(t),t.u&&t.v(t.u,t.s),e!==Hl?e:void 0}function Al(e,t,n){if(yl(t))return t;var r=t[$l];if(!r)return ul(t,function(o,i){return Ol(e,r,t,o,i,n)},!0),t;if(r.A!==e)return t;if(!r.P)return kl(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=hl(r.k):r.o;ul(3===r.i?new Set(o):o,function(t,i){return Ol(e,r,o,t,i,n)}),kl(e,o,!1),n&&e.u&&ml("Patches").R(r,n,e.u,e.s)}return r.o}function Ol(e,t,n,r,o,i){if(il(o)){var a=Al(e,o,i&&t&&3!==t.i&&!cl(t.D,r)?i.concat(r):void 0);if(ll(n,r,a),!il(a))return;e.m=!1}if(al(o)&&!yl(o)){if(!e.h.F&&e._<1)return;Al(e,o),t&&t.A.l||kl(e,o)}}function kl(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&vl(t,n)}function Bl(e,t){var n=e[$l];return(n?pl(n):e)[t]}function Fl(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 Tl(e){e.P||(e.P=!0,e.l&&Tl(e.l))}function _l(e){e.o||(e.o=hl(e.t))}function Pl(e,t,n){var r=fl(t)?ml("MapSet").N(t,n):dl(t)?ml("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:bl(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Kl;n&&(o=[r],i=Yl);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):ml("ES5").J(t,n);return(n?n.A:bl()).p.push(r),r}function jl(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return hl(e)}var Nl,Il,Ll="undefined"!=typeof Symbol&&"symbol"==D(Symbol("x")),Rl="undefined"!=typeof Map,Ml="undefined"!=typeof Set,zl="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Hl=Ll?Symbol.for("immer-nothing"):((Nl={})["immer-nothing"]=!0,Nl),Vl=Ll?Symbol.for("immer-draftable"):"__$immer_draftable",$l=Ll?Symbol.for("immer-state"):"__$immer_state",Ul=""+Object.prototype.constructor,Wl="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Gl=Object.getOwnPropertyDescriptors||function(e){var t={};return Wl(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},ql={},Kl={get:function(e,t){if(t===$l)return e;var n=pl(e);if(!cl(n,t))return function(e,t,n){var r,o=Fl(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||!al(r)?r:r===Bl(e.t,t)?(_l(e),e.o[t]=Pl(e.A.h,r,e)):r},has:function(e,t){return t in pl(e)},ownKeys:function(e){return Reflect.ownKeys(pl(e))},set:function(e,t,n){var r=Fl(pl(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Bl(pl(e),t),i=null==o?void 0:o[$l];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||cl(e.t,t)))return!0;_l(e),Tl(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!==Bl(e.t,t)||t in e.t?(e.D[t]=!1,_l(e),Tl(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=pl(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(){ol(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ol(12)}},Yl={};ul(Kl,function(e,t){Yl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Yl.deleteProperty=function(e,t){return Kl.deleteProperty.call(this,e[0],t)},Yl.set=function(e,t,n){return Kl.set.call(this,e[0],t,n,e[0])};var Xl=function(){function e(e){var t=this;this.g=zl,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&&ol(6),void 0!==r&&"function"!=typeof r&&ol(7),al(e)){var u=Dl(t),s=Pl(t,e,void 0),c=!0;try{a=n(s),c=!1}finally{c?xl(u):El(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then(function(e){return wl(u,r),Sl(e,u)},function(e){throw xl(u),e}):(wl(u,r),Sl(a,u))}if(!e||"object"!=D(e)){if((a=n(e))===Hl)return;return void 0===a&&(a=e),t.F&&vl(a,!0),a}ol(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){al(e)||ol(8),il(e)&&(e=function(e){return il(e)||ol(22,e),function e(t){if(!al(t))return t;var n,r=t[$l],o=sl(t);if(r){if(!r.P&&(r.i<4||!ml("ES5").K(r)))return r.t;r.I=!0,n=jl(t,o),r.I=!1}else n=jl(t,o);return ul(n,function(t,o){r&&function(e,t){return 2===sl(e)?e.get(t):e[t]}(r.t,t)===o||ll(n,t,e(o))}),3===o?new Set(n):n}(e)}(e));var t=Dl(this),n=Pl(this,e,void 0);return n[$l].C=!0,El(t),n},t.finishDraft=function(e,t){var n=(e&&e[$l]).A;return wl(n,t),Sl(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!zl&&ol(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=ml("Patches").$;return il(e)?o(e,t):this.produce(e,function(e){return o(e,t)})},e}(),Zl=new Xl,Jl=Zl.produce;Zl.produceWithPatches.bind(Zl),Zl.setAutoFreeze.bind(Zl),Zl.setUseProxies.bind(Zl),Zl.applyPatches.bind(Zl);var Ql=Zl.createDraft.bind(Zl),ef=Zl.finishDraft.bind(Zl);function tf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nf=new WeakMap,rf=new WeakMap,of=new WeakMap,af=new WeakMap,uf=new WeakMap,sf=new WeakMap;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 lf(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){tf(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 ff=function(e){switch(e.type){case"insert_text":case"remove_text":case"set_node":var t=e.path;return nd.levels(t);case"insert_node":var n=e.node,r=e.path,o=nd.levels(r),i=yd.isText(n)?[]:Array.from(Jf.nodes(n),function(e){var t=b(e,2)[1];return r.concat(t)});return[].concat(C(o),C(i));case"merge_node":var a=e.path;return[].concat(C(nd.ancestors(a)),[nd.previous(a)]);case"move_node":var u=e.path,s=e.newPath;if(nd.equals(u,s))return[];var c,l=[],f=[],d=E(nd.ancestors(u));try{for(d.s();!(c=d.n()).done;){var p=c.value,h=nd.transform(p,e);l.push(h)}}catch(O){d.e(O)}finally{d.f()}var v,g=E(nd.ancestors(s));try{for(g.s();!(v=g.n()).done;){var y=v.value,m=nd.transform(y,e);f.push(m)}}catch(O){g.e(O)}finally{g.f()}var w=f[f.length-1],x=s[s.length-1],D=w.concat(x);return[].concat(l,f,[D]);case"remove_node":var S=e.path;return C(nd.ancestors(S));case"split_node":var A=e.path;return[].concat(C(nd.levels(A)),[nd.next(A)]);default:return[]}};function df(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 pf,hf=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!n,o=n?wf(e):e,i=pf.None,a=pf.None,u=0,s=null,c=E(o);try{for(c.s();!(t=c.n()).done;){var l,f=t.value,d=f.codePointAt(0);if(!d)break;var p=_f(f,d);if(i=(l=b(r?[a,p]:[p,i],2))[0],a=l[1],Pf(i,pf.ZWJ)&&Pf(a,pf.ExtPict)&&!Lf(r?e.substring(0,u):e.substring(0,e.length-u)))break;if(Pf(i,pf.RI)&&Pf(a,pf.RI)&&!(s=null!==s?!s:!!r||Mf(e.substring(0,e.length-u))))break;if(i!==pf.None&&a!==pf.None&&Nf(i,a))break;u+=f.length}}catch(h){c.e(h)}finally{c.f()}return u||1},vf=/\s/,gf=/[\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]/,yf=/['\u2018\u2019]/,mf=function(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)]},bf=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(vf.test(t))return!1;if(yf.test(t)){var o=hf(n,r),i=b(mf(n,o,r),2);if(e(i[0],i[1],r))return!0}return!gf.test(t)},wf=y().m(function e(t){var n,r,o,i;return y().w(function(e){for(;;)switch(e.n){case 0:n=t.length-1,r=0;case 1:if(!(r<t.length)){e.n=5;break}if(o=t.charAt(n-r),!Ef(o.charCodeAt(0))){e.n=3;break}if(i=t.charAt(n-r-1),!xf(i.charCodeAt(0))){e.n=3;break}return e.n=2,i+o;case 2:return r++,e.a(3,4);case 3:return e.n=4,o;case 4:r++,e.n=1;break;case 5:return e.a(2)}},e)}),xf=function(e){return e>=55296&&e<=56319},Ef=function(e){return 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"}(pf||(pf={}));var Df=/^(?:[\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])$/,Cf=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Sf=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,Af=/^[\u1100-\u115F\uA960-\uA97C]$/,Of=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,kf=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Bf=/^[\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]$/,Tf=/^(?:[\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])$/,_f=function(e,t){var n=pf.Any;return-1!==e.search(Df)&&(n|=pf.Extend),8205===t&&(n|=pf.ZWJ),t>=127462&&t<=127487&&(n|=pf.RI),-1!==e.search(Cf)&&(n|=pf.Prepend),-1!==e.search(Sf)&&(n|=pf.SpacingMark),-1!==e.search(Af)&&(n|=pf.L),-1!==e.search(Of)&&(n|=pf.V),-1!==e.search(kf)&&(n|=pf.T),-1!==e.search(Bf)&&(n|=pf.LV),-1!==e.search(Ff)&&(n|=pf.LVT),-1!==e.search(Tf)&&(n|=pf.ExtPict),n};function Pf(e,t){return 0!=(e&t)}var jf=[[pf.L,pf.L|pf.V|pf.LV|pf.LVT],[pf.LV|pf.V,pf.V|pf.T],[pf.LVT|pf.T,pf.T],[pf.Any,pf.Extend|pf.ZWJ],[pf.Any,pf.SpacingMark],[pf.Prepend,pf.Any],[pf.ZWJ,pf.ExtPict],[pf.RI,pf.RI]];function Nf(e,t){return-1===jf.findIndex(function(n){return Pf(e,n[0])&&Pf(t,n[1])})}var If=/(?:[\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$/,Lf=function(e){return-1!==e.search(If)},Rf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Mf=function(e){var t=e.match(Rf);return null!==t&&t[0].length/2%2==1},zf=function(e){return rl(e)&&Jf.isNodeList(e.children)&&!qf.isEditor(e)},Hf={isAncestor:function(e){return rl(e)&&Jf.isNodeList(e.children)},isElement:zf,isElementList:function(e){return Array.isArray(e)&&e.every(function(e){return Hf.isElement(e)})},isElementProps:function(e){return void 0!==e.children},isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return zf(e)&&e[n]===t},matches:function(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Vf=["text"],$f=["text"];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}function Wf(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){tf(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}var Gf=new WeakMap,qf={above:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.voids,r=void 0!==n&&n,o=t.mode,i=void 0===o?"lowest":o,a=t.at,u=void 0===a?e.selection:a,s=t.match;if(u){var c,l=qf.path(e,u),f="lowest"===i,d=E(qf.levels(e,{at:l,voids:r,match:s,reverse:f}));try{for(d.s();!(c=d.n()).done;){var p=b(c.value,2),h=p[0],v=p[1];if(!yd.isText(h)&&!nd.equals(l,v))return[h,v]}}catch(g){d.e(g)}finally{d.f()}}},addMark:function(e,t,n){e.addMark(t,n)},after:function(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:qf.point(e,t,{edge:"end"}),focus:qf.end(e,[])},a=o.distance,u=void 0===a?1:a,s=0,c=E(qf.positions(e,Wf(Wf({},o),{},{at:i})));try{for(c.s();!(r=c.n()).done;){var l=r.value;if(s>u)break;0!==s&&(n=l),s++}}catch(f){c.e(f)}finally{c.f()}return n},before:function(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:qf.start(e,[]),focus:qf.point(e,t,{edge:"start"})},a=o.distance,u=void 0===a?1:a,s=0,c=E(qf.positions(e,Wf(Wf({},o),{},{at:i,reverse:!0})));try{for(c.s();!(r=c.n()).done;){var l=r.value;if(s>u)break;0!==s&&(n=l),s++}}catch(f){c.e(f)}finally{c.f()}return n},deleteBackward:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).unit,n=void 0===t?"character":t;e.deleteBackward(n)},deleteForward:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).unit,n=void 0===t?"character":t;e.deleteForward(n)},deleteFragment:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).direction,n=void 0===t?"forward":t;e.deleteFragment(n)},edges:function(e,t){return[qf.start(e,t),qf.end(e,t)]},end:function(e,t){return qf.point(e,t,{edge:"end"})},first:function(e,t){var n=qf.path(e,t,{edge:"start"});return qf.node(e,n)},fragment:function(e,t){var n=qf.range(e,t);return Jf.fragment(e,n)},hasBlocks:function(e,t){return t.children.some(function(t){return qf.isBlock(e,t)})},hasInlines:function(e,t){return t.children.some(function(t){return yd.isText(t)||qf.isInline(e,t)})},hasTexts:function(e,t){return t.children.every(function(e){return yd.isText(e)})},insertBreak:function(e){e.insertBreak()},insertFragment:function(e,t){e.insertFragment(t)},insertNode:function(e,t){e.insertNode(t)},insertText:function(e,t){e.insertText(t)},isBlock:function(e,t){return Hf.isElement(t)&&!e.isInline(t)},isEditor:function(e){if(!rl(e))return!1;var t=Gf.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||ld.isRange(e.selection))&&Jf.isNodeList(e.children)&&td.isOperationList(e.operations);return Gf.set(e,n),n},isEnd:function(e,t,n){var r=qf.end(e,n);return ad.equals(t,r)},isEdge:function(e,t,n){return qf.isStart(e,t,n)||qf.isEnd(e,t,n)},isEmpty:function(e,t){var n=t.children,r=b(n,1)[0];return 0===n.length||1===n.length&&yd.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:function(e,t){return Hf.isElement(t)&&e.isInline(t)},isNormalizing:function(e){var t=of.get(e);return void 0===t||t},isStart:function(e,t,n){if(0!==t.offset)return!1;var r=qf.start(e,n);return ad.equals(t,r)},isVoid:function(e,t){return Hf.isElement(t)&&e.isVoid(t)},last:function(e,t){var n=qf.path(e,t,{edge:"end"});return qf.node(e,n)},leaf:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=qf.path(e,t,n);return[Jf.leaf(e,r),r]},levels:y().m(function e(t){var n,r,o,i,a,u,s,c,l,f,d,p,h,v,m,w,x=arguments;return y().w(function(e){for(;;)switch(e.p=e.n){case 0:if(r=(n=x.length>1&&void 0!==x[1]?x[1]:{}).at,o=void 0===r?t.selection:r,i=n.reverse,a=void 0!==i&&i,u=n.voids,s=void 0!==u&&u,null==(c=n.match)&&(c=function(){return!0}),!o){e.n=8;break}l=[],f=qf.path(t,o),d=E(Jf.levels(t,f)),e.p=1,d.s();case 2:if((p=d.n()).done){e.n=4;break}if(h=b(p.value,2),v=h[0],m=h[1],!c(v,m)||(l.push([v,m]),s||!qf.isVoid(t,v))){e.n=3;break}return e.a(3,4);case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,w=e.v,d.e(w);case 6:return e.p=6,d.f(),e.f(6);case 7:return a&&l.reverse(),e.d(g(l),8);case 8:return e.a(2)}},e,null,[[1,5,6,7]])}),marks:function(e){var t=e.marks,n=e.selection;if(!n)return null;if(t)return t;if(ld.isExpanded(n)){var r=b(qf.nodes(e,{match:yd.isText}),1)[0];return r?df(b(r,1)[0],Vf):{}}var o=n.anchor,i=o.path,a=b(qf.leaf(e,i),1)[0];if(0===o.offset){var u=qf.previous(e,{at:i,match:yd.isText}),s=qf.above(e,{match:function(t){return qf.isBlock(e,t)}});if(u&&s){var c=b(u,2),l=c[0],f=c[1],d=b(s,2)[1];nd.isAncestor(d,f)&&(a=l)}}return df(a,$f)},next:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mode,r=void 0===n?"lowest":n,o=t.voids,i=void 0!==o&&o,a=t.match,u=t.at,s=void 0===u?e.selection:u;if(s){var c=qf.after(e,s,{voids:i});if(c){var l=b(qf.last(e,[]),2)[1],f=[c.path,l];if(nd.isPath(s)&&0===s.length)throw new Error("Cannot get the next node from the root node!");if(null==a)if(nd.isPath(s)){var d=b(qf.parent(e,s),1)[0];a=function(e){return d.children.includes(e)}}else a=function(){return!0};return b(qf.nodes(e,{at:f,match:a,mode:r,voids:i}),1)[0]}}},node:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=qf.path(e,t,n);return[Jf.get(e,r),r]},nodes:y().m(function e(t){var n,r,o,i,a,u,s,c,l,f,d,p,h,v,m,w,x,D,C,S,A,O,k,B,F,T,_,P=arguments;return y().w(function(e){for(;;)switch(e.p=e.n){case 0:if(r=(n=P.length>1&&void 0!==P[1]?P[1]:{}).at,o=void 0===r?t.selection:r,i=n.mode,a=void 0===i?"all":i,u=n.universal,s=void 0!==u&&u,c=n.reverse,l=void 0!==c&&c,f=n.voids,d=void 0!==f&&f,(p=n.match)||(p=function(){return!0}),!o){e.n=15;break}Kf.isSpan(o)?(h=o[0],v=o[1]):(m=qf.path(t,o,{edge:"start"}),w=qf.path(t,o,{edge:"end"}),h=l?w:m,v=l?m:w),D=Jf.nodes(t,{reverse:l,from:h,to:v,pass:function(e){var n=b(e,1)[0];return!d&&qf.isVoid(t,n)}}),C=[],S=E(D),e.p=1,S.s();case 2:if((A=S.n()).done){e.n=9;break}if(O=b(A.value,2),k=O[0],B=O[1],F=x&&0===nd.compare(B,x[1]),"highest"===a&&F){e.n=8;break}if(!p(k,B)){e.n=7;break}if("lowest"!==a||!F){e.n=3;break}x=[k,B],e.n=6;break;case 3:if(!(T="lowest"===a?x:[k,B])){e.n=5;break}if(!s){e.n=4;break}C.push(T),e.n=5;break;case 4:return e.n=5,T;case 5:x=[k,B];case 6:e.n=8;break;case 7:if(!s||F||!yd.isText(k)){e.n=8;break}return e.a(2);case 8:e.n=2;break;case 9:e.n=11;break;case 10:e.p=10,_=e.v,S.e(_);case 11:return e.p=11,S.f(),e.f(11);case 12:if(!("lowest"===a&&x)){e.n=14;break}if(!s){e.n=13;break}C.push(x),e.n=14;break;case 13:return e.n=14,x;case 14:if(!s){e.n=15;break}return e.d(g(C),15);case 15:return e.a(2)}},e,null,[[1,10,11,12]])}),normalize:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).force,n=void 0!==t&&t,r=function(e){return nf.get(e)||[]};if(qf.isNormalizing(e)){if(n){var o=Array.from(Jf.nodes(e),function(e){return b(e,2)[1]});nf.set(e,o)}0!==r(e).length&&qf.withoutNormalizing(e,function(){var t,n=E(r(e));try{for(n.s();!(t=n.n()).done;){var o=t.value;if(Jf.has(e,o)){var i=qf.node(e,o),a=b(i,2),u=a[0];a[1];Hf.isElement(u)&&0===u.children.length&&e.normalizeNode(i)}}}catch(d){n.e(d)}finally{n.f()}for(var s=42*r(e).length,c=0;0!==r(e).length;){if(c>s)throw new Error("\n Could not completely normalize the editor after ".concat(s," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var l=r(e).pop();if(Jf.has(e,l)){var f=qf.node(e,l);e.normalizeNode(f)}c++}})}},parent:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=qf.path(e,t,n),o=nd.parent(r);return qf.node(e,o)},path:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.depth,o=n.edge;if(nd.isPath(t))if("start"===o){t=b(Jf.first(e,t),2)[1]}else if("end"===o){t=b(Jf.last(e,t),2)[1]}return ld.isRange(t)&&(t="start"===o?ld.start(t):"end"===o?ld.end(t):nd.common(t.anchor.path,t.focus.path)),ad.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:function(e,t){return Jf.has(e,t)},pathRef:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,r={current:t,affinity:void 0===n?"forward":n,unref:function(){var t=r.current;return qf.pathRefs(e).delete(r),r.current=null,t}};return qf.pathRefs(e).add(r),r},pathRefs:function(e){var t=af.get(e);return t||(t=new Set,af.set(e,t)),t},point:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).edge,r=void 0===n?"start":n;if(nd.isPath(t)){var o;if("end"===r)o=b(Jf.last(e,t),2)[1];else o=b(Jf.first(e,t),2)[1];var i=Jf.get(e,o);if(!yd.isText(i))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?i.text.length:0}}if(ld.isRange(t)){var a=b(ld.edges(t),2),u=a[0],s=a[1];return"start"===r?u:s}return t},pointRef:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,r={current:t,affinity:void 0===n?"forward":n,unref:function(){var t=r.current;return qf.pointRefs(e).delete(r),r.current=null,t}};return qf.pointRefs(e).add(r),r},pointRefs:function(e){var t=uf.get(e);return t||(t=new Set,uf.set(e,t)),t},positions:y().m(function e(t){var n,r,o,i,a,u,s,c,l,f,d,p,h,v,g,m,w,x,D,C,S,A,O,k,B,F,T,_,P,j,N=arguments;return y().w(function(e){for(;;)switch(e.p=e.n){case 0:if(P=function(e,t,n){return"character"===t?hf(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=hf(e,t),i=b(mf(e,o,t),2),a=i[0],u=i[1];if(bf(a,u,t))r=!0,n+=o;else{if(r)break;n+=o}e=u}return n}(e,n):"line"===t||"block"===t?e.length:1},r=(n=N.length>1&&void 0!==N[1]?N[1]:{}).at,o=void 0===r?t.selection:r,i=n.unit,a=void 0===i?"offset":i,u=n.reverse,s=void 0!==u&&u,c=n.voids,l=void 0!==c&&c,!o){e.n=17;break}f=qf.range(t,o),d=ld.edges(f),p=b(d,2),h=p[0],v=p[1],g=s?v:h,m=!1,w="",x=0,D=0,C=0,S=E(qf.nodes(t,{at:o,reverse:s,voids:l})),e.p=1,S.s();case 2:if((A=S.n()).done){e.n=14;break}if(O=b(A.value,2),k=O[0],B=O[1],!Hf.isElement(k)){e.n=6;break}if(l||!t.isVoid(k)){e.n=4;break}return e.n=3,qf.start(t,B);case 3:return e.a(3,13);case 4:if(!t.isInline(k)){e.n=5;break}return e.a(3,13);case 5:qf.hasInlines(t,k)&&(F=nd.isAncestor(B,v.path)?v:qf.end(t,B),T=nd.isAncestor(B,h.path)?h:qf.start(t,B),w=qf.string(t,{anchor:T,focus:F},{voids:l}),m=!0);case 6:if(!yd.isText(k)){e.n=13;break}if((_=nd.equals(B,g.path))?(D=s?g.offset:k.text.length-g.offset,C=g.offset):(D=k.text.length,C=s?D:0),!(_||m||"offset"===a)){e.n=8;break}return e.n=7,{path:B,offset:C};case 7:m=!1;case 8:if(0!==x){e.n=10;break}if(""!==w){e.n=9;break}return e.a(3,13);case 9:x=P(w,a,s),w=mf(w,x,s)[1];case 10:if(C=s?C-x:C+x,!((D-=x)<0)){e.n=11;break}return x=-D,e.a(3,13);case 11:return x=0,e.n=12,{path:B,offset:C};case 12:e.n=8;break;case 13:e.n=2;break;case 14:e.n=16;break;case 15:e.p=15,j=e.v,S.e(j);case 16:return e.p=16,S.f(),e.f(16);case 17:return e.a(2)}},e,null,[[1,15,16,17]])}),previous:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mode,r=void 0===n?"lowest":n,o=t.voids,i=void 0!==o&&o,a=t.match,u=t.at,s=void 0===u?e.selection:u;if(s){var c=qf.before(e,s,{voids:i});if(c){var l=b(qf.first(e,[]),2)[1],f=[c.path,l];if(nd.isPath(s)&&0===s.length)throw new Error("Cannot get the previous node from the root node!");if(null==a)if(nd.isPath(s)){var d=b(qf.parent(e,s),1)[0];a=function(e){return d.children.includes(e)}}else a=function(){return!0};return b(qf.nodes(e,{reverse:!0,at:f,match:a,mode:r,voids:i}),1)[0]}}},range:function(e,t,n){return ld.isRange(t)&&!n?t:{anchor:qf.start(e,t),focus:qf.end(e,n||t)}},rangeRef:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,r={current:t,affinity:void 0===n?"forward":n,unref:function(){var t=r.current;return qf.rangeRefs(e).delete(r),r.current=null,t}};return qf.rangeRefs(e).add(r),r},rangeRefs:function(e){var t=sf.get(e);return t||(t=new Set,sf.set(e,t)),t},removeMark:function(e,t){e.removeMark(t)},setNormalizing:function(e,t){of.set(e,t)},start:function(e,t){return qf.point(e,t,{edge:"start"})},string:function(e,t){var n,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).voids,o=void 0!==r&&r,i=qf.range(e,t),a=b(ld.edges(i),2),u=a[0],s=a[1],c="",l=E(qf.nodes(e,{at:i,match:yd.isText,voids:o}));try{for(l.s();!(n=l.n()).done;){var f=b(n.value,2),d=f[0],p=f[1],h=d.text;nd.equals(p,s.path)&&(h=h.slice(0,s.offset)),nd.equals(p,u.path)&&(h=h.slice(u.offset)),c+=h}}catch(v){l.e(v)}finally{l.f()}return c},unhangRange:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).voids,r=void 0!==n&&n,o=b(ld.edges(t),2),i=o[0],a=o[1];if(0!==i.offset||0!==a.offset||ld.isCollapsed(t))return t;var u,s=qf.above(e,{at:a,match:function(t){return qf.isBlock(e,t)}}),c=s?s[1]:[],l={anchor:qf.start(e,[]),focus:a},f=!0,d=E(qf.nodes(e,{at:l,match:yd.isText,reverse:!0,voids:r}));try{for(d.s();!(u=d.n()).done;){var p=b(u.value,2),h=p[0],v=p[1];if(f)f=!1;else if(""!==h.text||nd.isBefore(v,c)){a={path:v,offset:h.text.length};break}}}catch(g){d.e(g)}finally{d.f()}return{anchor:i,focus:a}},void:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return qf.above(e,Wf(Wf({},t),{},{match:function(t){return qf.isVoid(e,t)}}))},withoutNormalizing:function(e,t){var n=qf.isNormalizing(e);qf.setNormalizing(e,!1);try{t()}finally{qf.setNormalizing(e,n)}qf.normalize(e)}},Kf={isSpan:function(e){return Array.isArray(e)&&2===e.length&&e.every(nd.isPath)}},Yf=["children"],Xf=["text"],Zf=new WeakMap,Jf={ancestor:function(e,t){var n=Jf.get(e,t);if(yd.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:y().m(function e(t,n){var r,o,i,a,u,s,c=arguments;return y().w(function(e){for(;;)switch(e.p=e.n){case 0:r=c.length>2&&void 0!==c[2]?c[2]:{},o=E(nd.ancestors(n,r)),e.p=1,o.s();case 2:if((i=o.n()).done){e.n=4;break}return a=i.value,u=[Jf.ancestor(t,a),a],e.n=3,u;case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,s=e.v,o.e(s);case 6:return e.p=6,o.f(),e.f(6);case 7:return e.a(2)}},e,null,[[1,5,6,7]])}),child:function(e,t){if(yd.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:y().m(function e(t,n){var r,o,i,a,u,s,c,l=arguments;return y().w(function(e){for(;;)switch(e.n){case 0:r=(l.length>2&&void 0!==l[2]?l[2]:{}).reverse,o=void 0!==r&&r,i=Jf.ancestor(t,n),a=i.children,u=o?a.length-1:0;case 1:if(!(o?u>=0:u<a.length)){e.n=4;break}return s=Jf.child(i,u),c=n.concat(u),e.n=2,[s,c];case 2:u=o?u-1:u+1;case 3:e.n=1;break;case 4:return e.a(2)}},e)}),common:function(e,t,n){var r=nd.common(t,n);return[Jf.get(e,r),r]},descendant:function(e,t){var n=Jf.get(e,t);if(qf.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:y().m(function e(t){var n,r,o,i,a,u,s,c=arguments;return y().w(function(e){for(;;)switch(e.p=e.n){case 0:n=c.length>1&&void 0!==c[1]?c[1]:{},r=E(Jf.nodes(t,n)),e.p=1,r.s();case 2:if((o=r.n()).done){e.n=4;break}if(i=b(o.value,2),a=i[0],u=i[1],!(0!==u.length)){e.n=3;break}return e.n=3,[a,u];case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,s=e.v,r.e(s);case 6:return e.p=6,r.f(),e.f(6);case 7:return e.a(2)}},e,null,[[1,5,6,7]])}),elements:y().m(function e(t){var n,r,o,i,a,u,s,c=arguments;return y().w(function(e){for(;;)switch(e.p=e.n){case 0:n=c.length>1&&void 0!==c[1]?c[1]:{},r=E(Jf.nodes(t,n)),e.p=1,r.s();case 2:if((o=r.n()).done){e.n=4;break}if(i=b(o.value,2),a=i[0],u=i[1],!Hf.isElement(a)){e.n=3;break}return e.n=3,[a,u];case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,s=e.v,r.e(s);case 6:return e.p=6,r.f(),e.f(6);case 7:return e.a(2)}},e,null,[[1,5,6,7]])}),extractProps:function(e){return Hf.isAncestor(e)?df(e,Yf):df(e,Xf)},first:function(e,t){for(var n=t.slice(),r=Jf.get(e,n);r&&!yd.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment:function(e,t){if(yd.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Jl({children:e.children},function(e){var n,r=b(ld.edges(t),2),o=r[0],i=r[1],a=Jf.nodes(e,{reverse:!0,pass:function(e){var n=b(e,2)[1];return!ld.includes(t,n)}}),u=E(a);try{for(u.s();!(n=u.n()).done;){var s=b(n.value,2)[1];if(!ld.includes(t,s)){var c=Jf.parent(e,s),l=s[s.length-1];c.children.splice(l,1)}if(nd.equals(s,i.path)){var f=Jf.leaf(e,s);f.text=f.text.slice(0,i.offset)}if(nd.equals(s,o.path)){var d=Jf.leaf(e,s);d.text=d.text.slice(o.offset)}}}catch(p){u.e(p)}finally{u.f()}qf.isEditor(e)&&(e.selection=null)});return n.children},get:function(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(yd.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:function(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(yd.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:function(e){return yd.isText(e)||Hf.isElement(e)||qf.isEditor(e)},isNodeList:function(e){if(!Array.isArray(e))return!1;var t=Zf.get(e);if(void 0!==t)return t;var n=e.every(function(e){return Jf.isNode(e)});return Zf.set(e,n),n},last:function(e,t){for(var n=t.slice(),r=Jf.get(e,n);r&&!yd.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf:function(e,t){var n=Jf.get(e,t);if(!yd.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:y().m(function e(t,n){var r,o,i,a,u,s,c=arguments;return y().w(function(e){for(;;)switch(e.p=e.n){case 0:r=c.length>2&&void 0!==c[2]?c[2]:{},o=E(nd.levels(n,r)),e.p=1,o.s();case 2:if((i=o.n()).done){e.n=4;break}return a=i.value,u=Jf.get(t,a),e.n=3,[u,a];case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,s=e.v,o.e(s);case 6:return e.p=6,o.f(),e.f(6);case 7:return e.a(2)}},e,null,[[1,5,6,7]])}),matches:function(e,t){return Hf.isElement(e)&&Hf.isElementProps(t)&&Hf.matches(e,t)||yd.isText(e)&&yd.isTextProps(t)&&yd.matches(e,t)},nodes:y().m(function e(t){var n,r,o,i,a,u,s,c,l,f,d,p,h=arguments;return y().w(function(e){for(;;)switch(e.n){case 0:r=(n=h.length>1&&void 0!==h[1]?h[1]:{}).pass,o=n.reverse,i=void 0!==o&&o,a=n.from,u=void 0===a?[]:a,s=n.to,c=new Set,l=[],f=t;case 1:if(s&&(i?nd.isBefore(l,s):nd.isAfter(l,s))){e.n=7;break}if(c.has(f)){e.n=2;break}return e.n=2,[f,l];case 2:if(!(c.has(f)||yd.isText(f)||0===f.children.length||null!=r&&!1!==r([f,l]))){e.n=5;break}if(0!==l.length){e.n=3;break}return e.a(3,7);case 3:if(i){e.n=4;break}if(d=nd.next(l),!Jf.has(t,d)){e.n=4;break}return l=d,f=Jf.get(t,l),e.a(3,6);case 4:i&&0!==l[l.length-1]?(l=nd.previous(l),f=Jf.get(t,l)):(l=nd.parent(l),f=Jf.get(t,l),c.add(f)),e.n=6;break;case 5:c.add(f),p=i?f.children.length-1:0,nd.isAncestor(l,u)&&(p=u[l.length]),l=l.concat(p),f=Jf.get(t,l);case 6:e.n=1;break;case 7:return e.a(2)}},e)}),parent:function(e,t){var n=nd.parent(t),r=Jf.get(e,n);if(yd.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:function(e){return yd.isText(e)?e.text:e.children.map(Jf.string).join("")},texts:y().m(function e(t){var n,r,o,i,a,u,s,c=arguments;return y().w(function(e){for(;;)switch(e.p=e.n){case 0:n=c.length>1&&void 0!==c[1]?c[1]:{},r=E(Jf.nodes(t,n)),e.p=1,r.s();case 2:if((o=r.n()).done){e.n=4;break}if(i=b(o.value,2),a=i[0],u=i[1],!yd.isText(a)){e.n=3;break}return e.n=3,[a,u];case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,s=e.v,r.e(s);case 6:return e.p=6,r.f(),e.f(6);case 7:return e.a(2)}},e,null,[[1,5,6,7]])})};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){tf(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={isNodeOperation:function(e){return td.isOperation(e)&&e.type.endsWith("_node")},isOperation:function(e){if(!rl(e))return!1;switch(e.type){case"insert_node":case"remove_node":return nd.isPath(e.path)&&Jf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&nd.isPath(e.path);case"merge_node":return"number"==typeof e.position&&nd.isPath(e.path)&&rl(e.properties);case"move_node":return nd.isPath(e.path)&&nd.isPath(e.newPath);case"set_node":return nd.isPath(e.path)&&rl(e.properties)&&rl(e.newProperties);case"set_selection":return null===e.properties&&ld.isRange(e.newProperties)||null===e.newProperties&&ld.isRange(e.properties)||rl(e.properties)&&rl(e.newProperties);case"split_node":return nd.isPath(e.path)&&"number"==typeof e.position&&rl(e.properties);default:return!1}},isOperationList:function(e){return Array.isArray(e)&&e.every(function(e){return td.isOperation(e)})},isSelectionOperation:function(e){return td.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation:function(e){return td.isOperation(e)&&e.type.endsWith("_text")},inverse:function(e){switch(e.type){case"insert_node":return ed(ed({},e),{},{type:"remove_node"});case"insert_text":return ed(ed({},e),{},{type:"remove_text"});case"merge_node":return ed(ed({},e),{},{type:"split_node",path:nd.previous(e.path)});case"move_node":var t=e.newPath,n=e.path;if(nd.equals(t,n))return e;if(nd.isSibling(n,t))return ed(ed({},e),{},{path:t,newPath:n});var r=nd.transform(n,e),o=nd.transform(nd.next(n),e);return ed(ed({},e),{},{path:r,newPath:o});case"remove_node":return ed(ed({},e),{},{type:"insert_node"});case"remove_text":return ed(ed({},e),{},{type:"insert_text"});case"set_node":var i=e.properties,a=e.newProperties;return ed(ed({},e),{},{properties:a,newProperties:i});case"set_selection":var u=e.properties,s=e.newProperties;return ed(ed({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return ed(ed({},e),{},{type:"merge_node",path:nd.next(e.path)})}}},nd={ancestors:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.reverse,r=void 0!==n&&n,o=nd.levels(e,t);return r?o.slice(1):o.slice(0,-1)},common:function(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:function(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:function(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return nd.equals(r,o)&&i>a},endsAt:function(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return nd.equals(r,o)},endsBefore:function(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return nd.equals(r,o)&&i<a},equals:function(e,t){return e.length===t.length&&e.every(function(e,n){return e===t[n]})},hasPrevious:function(e){return e[e.length-1]>0},isAfter:function(e,t){return 1===nd.compare(e,t)},isAncestor:function(e,t){return e.length<t.length&&0===nd.compare(e,t)},isBefore:function(e,t){return-1===nd.compare(e,t)},isChild:function(e,t){return e.length===t.length+1&&0===nd.compare(e,t)},isCommon:function(e,t){return e.length<=t.length&&0===nd.compare(e,t)},isDescendant:function(e,t){return e.length>t.length&&0===nd.compare(e,t)},isParent:function(e,t){return e.length+1===t.length&&0===nd.compare(e,t)},isPath:function(e){return Array.isArray(e)&&(0===e.length||"number"==typeof e[0])},isSibling:function(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]&&nd.equals(n,r)},levels:function(e){for(var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).reverse,n=void 0!==t&&t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next:function(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:function(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:function(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:function(e,t){if(!nd.isAncestor(t,e)&&!nd.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:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Jl(e,function(r){var o=n.affinity,i=void 0===o?"forward":o;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var a=t.path;(nd.equals(a,r)||nd.endsBefore(a,r)||nd.isAncestor(a,r))&&(r[a.length-1]+=1);break;case"remove_node":var u=t.path;if(nd.equals(u,r)||nd.isAncestor(u,r))return null;nd.endsBefore(u,r)&&(r[u.length-1]-=1);break;case"merge_node":var s=t.path,c=t.position;nd.equals(s,r)||nd.endsBefore(s,r)?r[s.length-1]-=1:nd.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=c);break;case"split_node":var l=t.path,f=t.position;if(nd.equals(l,r)){if("forward"===i)r[r.length-1]+=1;else if("backward"!==i)return null}else nd.endsBefore(l,r)?r[l.length-1]+=1:nd.isAncestor(l,r)&&e[l.length]>=f&&(r[l.length-1]+=1,r[l.length]-=f);break;case"move_node":var d=t.path,p=t.newPath;if(nd.equals(d,p))return;if(nd.isAncestor(d,r)||nd.equals(d,r)){var h=p.slice();return nd.endsBefore(d,p)&&d.length<p.length&&(h[d.length-1]-=1),h.concat(r.slice(d.length))}nd.isSibling(d,p)&&(nd.isAncestor(p,r)||nd.equals(p,r))?nd.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:nd.endsBefore(p,r)||nd.equals(p,r)||nd.isAncestor(p,r)?(nd.endsBefore(d,r)&&(r[d.length-1]-=1),r[p.length-1]+=1):nd.endsBefore(d,r)&&(nd.equals(p,r)&&(r[p.length-1]+=1),r[d.length-1]-=1)}}})}},rd={transform:function(e,t){var n=e.current,r=e.affinity;if(null!=n){var o=nd.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};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){tf(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={compare:function(e,t){var n=nd.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:function(e,t){return 1===ad.compare(e,t)},isBefore:function(e,t){return-1===ad.compare(e,t)},equals:function(e,t){return e.offset===t.offset&&nd.equals(e.path,t.path)},isPoint:function(e){return rl(e)&&"number"==typeof e.offset&&nd.isPath(e.path)},transform:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Jl(e,function(e){if(null===e)return null;var r=n.affinity,o=void 0===r?"forward":r,i=e.path,a=e.offset;switch(t.type){case"insert_node":case"move_node":e.path=nd.transform(i,t,n);break;case"insert_text":nd.equals(t.path,i)&&t.offset<=a&&(e.offset+=t.text.length);break;case"merge_node":nd.equals(t.path,i)&&(e.offset+=t.position),e.path=nd.transform(i,t,n);break;case"remove_text":nd.equals(t.path,i)&&t.offset<=a&&(e.offset-=Math.min(a-t.offset,t.text.length));break;case"remove_node":if(nd.equals(t.path,i)||nd.isAncestor(t.path,i))return null;e.path=nd.transform(i,t,n);break;case"split_node":if(nd.equals(t.path,i)){if(t.position===a&&null==o)return null;(t.position<a||t.position===a&&"forward"===o)&&(e.offset-=t.position,e.path=nd.transform(i,t,id(id({},n),{},{affinity:"forward"})))}else e.path=nd.transform(i,t,n)}})}},ud={transform:function(e,t){var n=e.current,r=e.affinity;if(null!=n){var o=ad.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},sd=["anchor","focus"];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}var ld={edges:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).reverse,n=void 0!==t&&t,r=e.anchor,o=e.focus;return ld.isBackward(e)===n?[r,o]:[o,r]},end:function(e){return b(ld.edges(e),2)[1]},equals:function(e,t){return ad.equals(e.anchor,t.anchor)&&ad.equals(e.focus,t.focus)},includes:function(e,t){if(ld.isRange(t)){if(ld.includes(e,t.anchor)||ld.includes(e,t.focus))return!0;var n=b(ld.edges(e),2),r=n[0],o=n[1],i=b(ld.edges(t),2),a=i[0],u=i[1];return ad.isBefore(r,a)&&ad.isAfter(o,u)}var s=b(ld.edges(e),2),c=s[0],l=s[1],f=!1,d=!1;return ad.isPoint(t)?(f=ad.compare(t,c)>=0,d=ad.compare(t,l)<=0):(f=nd.compare(t,c.path)>=0,d=nd.compare(t,l.path)<=0),f&&d},intersection:function(e,t){var n=df(e,sd),r=b(ld.edges(e),2),o=r[0],i=r[1],a=b(ld.edges(t),2),u=a[0],s=a[1],c=ad.isBefore(o,u)?u:o,l=ad.isBefore(i,s)?i:s;return ad.isBefore(l,c)?null:function(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){tf(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}({anchor:c,focus:l},n)},isBackward:function(e){var t=e.anchor,n=e.focus;return ad.isAfter(t,n)},isCollapsed:function(e){var t=e.anchor,n=e.focus;return ad.equals(t,n)},isExpanded:function(e){return!ld.isCollapsed(e)},isForward:function(e){return!ld.isBackward(e)},isRange:function(e){return rl(e)&&ad.isPoint(e.anchor)&&ad.isPoint(e.focus)},points:y().m(function e(t){return y().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,[t.anchor,"anchor"];case 1:return e.n=2,[t.focus,"focus"];case 2:return e.a(2)}},e)}),start:function(e){return b(ld.edges(e),1)[0]},transform:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Jl(e,function(e){if(null===e)return null;var r,o,i=n.affinity,a=void 0===i?"inward":i;if("inward"===a){var u=ld.isCollapsed(e);ld.isForward(e)?(r="forward",o=u?r:"backward"):(r="backward",o=u?r:"forward")}else"outward"===a?ld.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=a,o=a);var s=ad.transform(e.anchor,t,{affinity:r}),c=ad.transform(e.focus,t,{affinity:o});if(!s||!c)return null;e.anchor=s,e.focus=c})}},fd={transform:function(e,t){var n=e.current,r=e.affinity;if(null!=n){var o=ld.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},dd=function(e,t){for(var n in e){var r=e[n],o=t[n];if(rl(r)&&rl(o)){if(!dd(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},pd=["text"],hd=["anchor","focus"];function vd(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?vd(Object(n),!0).forEach(function(t){tf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var yd={equals:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).loose,r=void 0!==n&&n;function o(e){return df(e,pd)}return dd(r?o(e):e,r?o(t):t)},isText:function(e){return rl(e)&&"string"==typeof e.text},isTextList:function(e){return Array.isArray(e)&&e.every(function(e){return yd.isText(e)})},isTextProps:function(e){return void 0!==e.text},matches:function(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations:function(e,t){var n,r=[gd({},e)],o=E(t);try{for(o.s();!(n=o.n()).done;){var i,a=n.value,u=df(a,hd),s=b(ld.edges(a),2),c=s[0],l=s[1],f=[],d=0,p=E(r);try{for(p.s();!(i=p.n()).done;){var h=i.value,v=h.text.length,g=d;if(d+=v,c.offset<=g&&l.offset>=d)Object.assign(h,u),f.push(h);else if(c.offset!==l.offset&&(c.offset===d||l.offset===g)||c.offset>d||l.offset<g||l.offset===g&&0!==g)f.push(h);else{var y=h,m=void 0,w=void 0;if(l.offset<d){var x=l.offset-g;w=gd(gd({},y),{},{text:y.text.slice(x)}),y=gd(gd({},y),{},{text:y.text.slice(0,x)})}if(c.offset>g){var D=c.offset-g;m=gd(gd({},y),{},{text:y.text.slice(0,D)}),y=gd(gd({},y),{},{text:y.text.slice(D)})}Object.assign(y,u),m&&f.push(m),f.push(y),w&&f.push(w)}}}catch(C){p.e(C)}finally{p.f()}r=f}}catch(C){o.e(C)}finally{o.f()}return r}};function md(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 bd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?md(Object(n),!0).forEach(function(t){tf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):md(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var wd={transform:function(e,t){e.children=Ql(e.children);var n=e.selection&&Ql(e.selection);try{n=function(e,t,n){switch(n.type){case"insert_node":var r=n.path,o=n.node,i=Jf.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){var u,s=E(ld.points(t));try{for(s.s();!(u=s.n()).done;){var c=b(u.value,2),l=c[0];t[c[1]]=ad.transform(l,n)}}catch(Ue){s.e(Ue)}finally{s.f()}}break;case"insert_text":var f=n.path,d=n.offset,p=n.text;if(0===p.length)break;var h=Jf.leaf(e,f),v=h.text.slice(0,d),g=h.text.slice(d);if(h.text=v+p+g,t){var y,m=E(ld.points(t));try{for(m.s();!(y=m.n()).done;){var w=b(y.value,2),x=w[0];t[w[1]]=ad.transform(x,n)}}catch(Ue){m.e(Ue)}finally{m.f()}}break;case"merge_node":var D=n.path,S=Jf.get(e,D),A=nd.previous(D),O=Jf.get(e,A),k=Jf.parent(e,D),B=D[D.length-1];if(yd.isText(S)&&yd.isText(O))O.text+=S.text;else{var F;if(yd.isText(S)||yd.isText(O))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(D,"] to nodes of different interfaces: ").concat(S," ").concat(O));(F=O.children).push.apply(F,C(S.children))}if(k.children.splice(B,1),t){var T,_=E(ld.points(t));try{for(_.s();!(T=_.n()).done;){var P=b(T.value,2),j=P[0];t[P[1]]=ad.transform(j,n)}}catch(Ue){_.e(Ue)}finally{_.f()}}break;case"move_node":var N=n.path,I=n.newPath;if(nd.isAncestor(N,I))throw new Error("Cannot move a path [".concat(N,"] to new path [").concat(I,"] because the destination is inside itself."));var L=Jf.get(e,N),R=Jf.parent(e,N),M=N[N.length-1];R.children.splice(M,1);var z=nd.transform(N,n),H=Jf.get(e,nd.parent(z)),V=z[z.length-1];if(H.children.splice(V,0,L),t){var $,U=E(ld.points(t));try{for(U.s();!($=U.n()).done;){var W=b($.value,2),G=W[0];t[W[1]]=ad.transform(G,n)}}catch(Ue){U.e(Ue)}finally{U.f()}}break;case"remove_node":var q=n.path,K=q[q.length-1];if(Jf.parent(e,q).children.splice(K,1),t){var Y,X=E(ld.points(t));try{for(X.s();!(Y=X.n()).done;){var Z=b(Y.value,2),J=Z[0],Q=Z[1],ee=ad.transform(J,n);if(null!=t&&null!=ee)t[Q]=ee;else{var te,ne=void 0,re=void 0,oe=E(Jf.texts(e));try{for(oe.s();!(te=oe.n()).done;){var ie=b(te.value,2),ae=ie[0],ue=ie[1];if(-1!==nd.compare(ue,q)){re=[ae,ue];break}ne=[ae,ue]}}catch(Ue){oe.e(Ue)}finally{oe.f()}var se=!1;ne&&re&&(se=nd.equals(re[1],q)?!nd.hasPrevious(re[1]):nd.common(ne[1],q).length<nd.common(re[1],q).length),ne&&!se?(J.path=ne[1],J.offset=ne[0].text.length):re?(J.path=re[1],J.offset=0):t=null}}}catch(Ue){X.e(Ue)}finally{X.f()}}break;case"remove_text":var ce=n.path,le=n.offset,fe=n.text;if(0===fe.length)break;var de=Jf.leaf(e,ce),pe=de.text.slice(0,le),he=de.text.slice(le+fe.length);if(de.text=pe+he,t){var ve,ge=E(ld.points(t));try{for(ge.s();!(ve=ge.n()).done;){var ye=b(ve.value,2),me=ye[0];t[ye[1]]=ad.transform(me,n)}}catch(Ue){ge.e(Ue)}finally{ge.f()}}break;case"set_node":var be=n.path,we=n.properties,xe=n.newProperties;if(0===be.length)throw new Error("Cannot set properties on the root node!");var Ee=Jf.get(e,be);for(var De in xe){if("children"===De||"text"===De)throw new Error('Cannot set the "'.concat(De,'" property of nodes!'));var Ce=xe[De];null==Ce?delete Ee[De]:Ee[De]=Ce}for(var Se in we)xe.hasOwnProperty(Se)||delete Ee[Se];break;case"set_selection":var Ae=n.newProperties;if(null==Ae)t=Ae;else{if(null==t){if(!ld.isRange(Ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Ae)," when there is no current selection."));t=bd({},Ae)}for(var Oe in Ae){var ke=Ae[Oe];if(null==ke){if("anchor"===Oe||"focus"===Oe)throw new Error('Cannot remove the "'.concat(Oe,'" selection property'));delete t[Oe]}else t[Oe]=ke}}break;case"split_node":var Be=n.path,Fe=n.position,Te=n.properties;if(0===Be.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Be,"] because the root node cannot be split."));var _e,Pe=Jf.get(e,Be),je=Jf.parent(e,Be),Ne=Be[Be.length-1];if(yd.isText(Pe)){var Ie=Pe.text.slice(0,Fe),Le=Pe.text.slice(Fe);Pe.text=Ie,_e=bd(bd({},Te),{},{text:Le})}else{var Re=Pe.children.slice(0,Fe),Me=Pe.children.slice(Fe);Pe.children=Re,_e=bd(bd({},Te),{},{children:Me})}if(je.children.splice(Ne+1,0,_e),t){var ze,He=E(ld.points(t));try{for(He.s();!(ze=He.n()).done;){var Ve=b(ze.value,2),$e=Ve[0];t[Ve[1]]=ad.transform($e,n)}}catch(Ue){He.e(Ue)}finally{He.f()}}}return t}(e,n,t)}finally{e.children=ef(e.children),e.selection=n?il(n)?ef(n):n:null}}},xd=["text"],Ed=["children"];function Dd(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 Cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dd(Object(n),!0).forEach(function(t){tf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Sd={insertNodes:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};qf.withoutNormalizing(e,function(){var r=n.hanging,o=void 0!==r&&r,i=n.voids,a=void 0!==i&&i,u=n.mode,s=void 0===u?"lowest":u,c=n.at,l=n.match,f=n.select;if(Jf.isNode(t)&&(t=[t]),0!==t.length){var d=b(t,1)[0];if(c||(c=e.selection?e.selection:e.children.length>0?qf.end(e,[]):[0],f=!0),null==f&&(f=!1),ld.isRange(c))if(o||(c=qf.unhangRange(e,c)),ld.isCollapsed(c))c=c.anchor;else{var p=b(ld.edges(c),2)[1],h=qf.pointRef(e,p);Nd.delete(e,{at:c}),c=h.unref()}if(ad.isPoint(c)){null==l&&(l=yd.isText(d)?function(e){return yd.isText(e)}:e.isInline(d)?function(t){return yd.isText(t)||qf.isInline(e,t)}:function(t){return qf.isBlock(e,t)});var v=b(qf.nodes(e,{at:c.path,match:l,mode:s,voids:a}),1)[0];if(!v)return;var g=b(v,2)[1],y=qf.pathRef(e,g),m=qf.isEnd(e,c,g);Nd.splitNodes(e,{at:c,match:l,mode:s,voids:a});var w=y.unref();c=m?nd.next(w):w}var x=nd.parent(c),D=c[c.length-1];if(a||!qf.void(e,{at:x})){var C,S=E(t);try{for(S.s();!(C=S.n()).done;){var A=C.value,O=x.concat(D);D++,e.apply({type:"insert_node",path:O,node:A}),c=nd.next(c)}}catch(B){S.e(B)}finally{S.f()}if(c=nd.previous(c),f){var k=qf.end(e,c);k&&Nd.select(e,k)}}}})},liftNodes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qf.withoutNormalizing(e,function(){var n=t.at,r=void 0===n?e.selection:n,o=t.mode,i=void 0===o?"lowest":o,a=t.voids,u=void 0!==a&&a,s=t.match;if(null==s&&(s=nd.isPath(r)?kd(e,r):function(t){return qf.isBlock(e,t)}),r)for(var c=qf.nodes(e,{at:r,match:s,mode:i,voids:u}),l=Array.from(c,function(t){var n=b(t,2)[1];return qf.pathRef(e,n)}),f=0,d=l;f<d.length;f++){var p=d[f].unref();if(p.length<2)throw new Error("Cannot lift node at a path [".concat(p,"] because it has a depth of less than `2`."));var h=b(qf.node(e,nd.parent(p)),2),v=h[0],g=h[1],y=p[p.length-1],m=v.children.length;if(1===m){var w=nd.next(g);Nd.moveNodes(e,{at:p,to:w,voids:u}),Nd.removeNodes(e,{at:g,voids:u})}else if(0===y)Nd.moveNodes(e,{at:p,to:g,voids:u});else if(y===m-1){var x=nd.next(g);Nd.moveNodes(e,{at:p,to:x,voids:u})}else{var E=nd.next(p),D=nd.next(g);Nd.splitNodes(e,{at:E,voids:u}),Nd.moveNodes(e,{at:p,to:D,voids:u})}}})},mergeNodes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qf.withoutNormalizing(e,function(){var n=t.match,r=t.at,o=void 0===r?e.selection:r,i=t.hanging,a=void 0!==i&&i,u=t.voids,s=void 0!==u&&u,c=t.mode,l=void 0===c?"lowest":c;if(o){if(null==n)if(nd.isPath(o)){var f=b(qf.parent(e,o),1)[0];n=function(e){return f.children.includes(e)}}else n=function(t){return qf.isBlock(e,t)};if(!a&&ld.isRange(o)&&(o=qf.unhangRange(e,o)),ld.isRange(o))if(ld.isCollapsed(o))o=o.anchor;else{var d=b(ld.edges(o),2)[1],p=qf.pointRef(e,d);Nd.delete(e,{at:o}),o=p.unref(),null==t.at&&Nd.select(e,o)}var h=b(qf.nodes(e,{at:o,match:n,voids:s,mode:l}),1)[0],v=qf.previous(e,{at:o,match:n,voids:s,mode:l});if(h&&v){var g=b(h,2),y=g[0],m=g[1],w=b(v,2),x=w[0],E=w[1];if(0!==m.length&&0!==E.length){var D,C,S=nd.next(E),A=nd.common(m,E),O=nd.isSibling(m,E),k=Array.from(qf.levels(e,{at:m}),function(e){return b(e,1)[0]}).slice(A.length).slice(0,-1),B=qf.above(e,{at:m,mode:"highest",match:function(t){return k.includes(t)&&Ad(e,t)}}),F=B&&qf.pathRef(e,B[1]);if(yd.isText(y)&&yd.isText(x)){var T=df(y,xd);C=x.text.length,D=T}else{if(!Hf.isElement(y)||!Hf.isElement(x))throw new Error("Cannot merge the node at path [".concat(m,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(y)," ").concat(JSON.stringify(x)));T=df(y,Ed),C=x.children.length,D=T}O||Nd.moveNodes(e,{at:m,to:S,voids:s}),F&&Nd.removeNodes(e,{at:F.current,voids:s}),Hf.isElement(x)&&qf.isEmpty(e,x)||yd.isText(x)&&""===x.text&&0!==E[E.length-1]?Nd.removeNodes(e,{at:E,voids:s}):e.apply({type:"merge_node",path:S,position:C,properties:D}),F&&F.unref()}}}})},moveNodes:function(e,t){qf.withoutNormalizing(e,function(){var n=t.to,r=t.at,o=void 0===r?e.selection:r,i=t.mode,a=void 0===i?"lowest":i,u=t.voids,s=void 0!==u&&u,c=t.match;if(o){null==c&&(c=nd.isPath(o)?kd(e,o):function(t){return qf.isBlock(e,t)});for(var l=qf.pathRef(e,n),f=qf.nodes(e,{at:o,match:c,mode:a,voids:s}),d=Array.from(f,function(t){var n=b(t,2)[1];return qf.pathRef(e,n)}),p=0,h=d;p<h.length;p++){var v=h[p].unref(),g=l.current;0!==v.length&&e.apply({type:"move_node",path:v,newPath:g}),l.current&&nd.isSibling(g,v)&&nd.isAfter(g,v)&&(l.current=nd.next(l.current))}l.unref()}})},removeNodes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qf.withoutNormalizing(e,function(){var n=t.hanging,r=void 0!==n&&n,o=t.voids,i=void 0!==o&&o,a=t.mode,u=void 0===a?"lowest":a,s=t.at,c=void 0===s?e.selection:s,l=t.match;if(c){null==l&&(l=nd.isPath(c)?kd(e,c):function(t){return qf.isBlock(e,t)}),!r&&ld.isRange(c)&&(c=qf.unhangRange(e,c));for(var f=qf.nodes(e,{at:c,match:l,mode:u,voids:i}),d=Array.from(f,function(t){var n=b(t,2)[1];return qf.pathRef(e,n)}),p=0,h=d;p<h.length;p++){var v=h[p].unref();if(v){var g=b(qf.node(e,v),1)[0];e.apply({type:"remove_node",path:v,node:g})}}}})},setNodes:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};qf.withoutNormalizing(e,function(){var r=n.match,o=n.at,i=void 0===o?e.selection:o,a=n.hanging,u=void 0!==a&&a,s=n.mode,c=void 0===s?"lowest":s,l=n.split,f=void 0!==l&&l,d=n.voids,p=void 0!==d&&d;if(i){if(null==r&&(r=nd.isPath(i)?kd(e,i):function(t){return qf.isBlock(e,t)}),!u&&ld.isRange(i)&&(i=qf.unhangRange(e,i)),f&&ld.isRange(i)){if(ld.isCollapsed(i)&&qf.leaf(e,i.anchor)[0].text.length>0)return;var h=qf.rangeRef(e,i,{affinity:"inward"}),v=b(ld.edges(i),2),g=v[0],y=v[1],m="lowest"===c?"lowest":"highest",w=qf.isEnd(e,y,y.path);Nd.splitNodes(e,{at:y,match:r,mode:m,voids:p,always:!w});var x=qf.isStart(e,g,g.path);Nd.splitNodes(e,{at:g,match:r,mode:m,voids:p,always:!x}),i=h.unref(),null==n.at&&Nd.select(e,i)}var D,C=E(qf.nodes(e,{at:i,match:r,mode:c,voids:p}));try{for(C.s();!(D=C.n()).done;){var S=b(D.value,2),A=S[0],O=S[1],k={},B={};if(0!==O.length){var F=!1;for(var T in t)"children"!==T&&"text"!==T&&t[T]!==A[T]&&(F=!0,A.hasOwnProperty(T)&&(k[T]=A[T]),null!=t[T]&&(B[T]=t[T]));F&&e.apply({type:"set_node",path:O,properties:k,newProperties:B})}}}catch(_){C.e(_)}finally{C.f()}}})},splitNodes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qf.withoutNormalizing(e,function(){var n=t.mode,r=void 0===n?"lowest":n,o=t.voids,i=void 0!==o&&o,a=t.match,u=t.at,s=void 0===u?e.selection:u,c=t.height,l=void 0===c?0:c,f=t.always,d=void 0!==f&&f;if(null==a&&(a=function(t){return qf.isBlock(e,t)}),ld.isRange(s)&&(s=Od(e,s)),nd.isPath(s)){var p=s,h=qf.point(e,p),v=b(qf.parent(e,p),1)[0];a=function(e){return e===v},l=h.path.length-p.length+1,s=h,d=!0}if(s){var g=qf.pointRef(e,s,{affinity:"backward"}),y=b(qf.nodes(e,{at:s,match:a,mode:r,voids:i}),1)[0];if(y){var m=qf.void(e,{at:s,mode:"highest"});if(!i&&m){var w=b(m,2),x=w[0],D=w[1];if(Hf.isElement(x)&&e.isInline(x)){var C=qf.after(e,D);if(!C){var S=nd.next(D);Nd.insertNodes(e,{text:""},{at:S,voids:i}),C=qf.point(e,S)}s=C,d=!0}l=s.path.length-D.length+1,d=!0}var A,O=qf.pointRef(e,s),k=s.path.length-l,B=b(y,2)[1],F=s.path.slice(0,k),T=0===l?s.offset:s.path[k]+0,_=E(qf.levels(e,{at:F,reverse:!0,voids:i}));try{for(_.s();!(A=_.n()).done;){var P=b(A.value,2),j=P[0],N=P[1],I=!1;if(N.length<B.length||0===N.length||!i&&qf.isVoid(e,j))break;var L=g.current,R=qf.isEnd(e,L,N);if(d||!g||!qf.isEdge(e,L,N)){I=!0;var M=Jf.extractProps(j);e.apply({type:"split_node",path:N,position:T,properties:M})}T=N[N.length-1]+(I||R?1:0)}}catch(H){_.e(H)}finally{_.f()}if(null==t.at){var z=O.current||qf.end(e,[]);Nd.select(e,z)}g.unref(),O.unref()}}})},unsetNodes:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r,o={},i=E(t);try{for(i.s();!(r=i.n()).done;){o[r.value]=null}}catch(a){i.e(a)}finally{i.f()}Nd.setNodes(e,o,n)},unwrapNodes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qf.withoutNormalizing(e,function(){var n=t.mode,r=void 0===n?"lowest":n,o=t.split,i=void 0!==o&&o,a=t.voids,u=void 0!==a&&a,s=t.at,c=void 0===s?e.selection:s,l=t.match;if(c){null==l&&(l=nd.isPath(c)?kd(e,c):function(t){return qf.isBlock(e,t)}),nd.isPath(c)&&(c=qf.range(e,c));var f,d=ld.isRange(c)?qf.rangeRef(e,c):null,p=qf.nodes(e,{at:c,match:l,mode:r,voids:u}),h=Array.from(p,function(t){var n=b(t,2)[1];return qf.pathRef(e,n)}).reverse(),v=function(t){var n=t.unref(),r=b(qf.node(e,n),1)[0],o=qf.range(e,n);i&&d&&(o=ld.intersection(d.current,o)),Nd.liftNodes(e,{at:o,match:function(e){return Hf.isAncestor(r)&&r.children.includes(e)},voids:u})},g=E(h);try{for(g.s();!(f=g.n()).done;){v(f.value)}}catch(y){g.e(y)}finally{g.f()}d&&d.unref()}})},wrapNodes:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};qf.withoutNormalizing(e,function(){var r=n.mode,o=void 0===r?"lowest":r,i=n.split,a=void 0!==i&&i,u=n.voids,s=void 0!==u&&u,c=n.match,l=n.at,f=void 0===l?e.selection:l;if(f){if(null==c&&(c=nd.isPath(f)?kd(e,f):e.isInline(t)?function(t){return qf.isInline(e,t)||yd.isText(t)}:function(t){return qf.isBlock(e,t)}),a&&ld.isRange(f)){var d=b(ld.edges(f),2),p=d[0],h=d[1],v=qf.rangeRef(e,f,{affinity:"inward"});Nd.splitNodes(e,{at:h,match:c,voids:s}),Nd.splitNodes(e,{at:p,match:c,voids:s}),f=v.unref(),null==n.at&&Nd.select(e,f)}for(var g=Array.from(qf.nodes(e,{at:f,match:e.isInline(t)?function(t){return qf.isBlock(e,t)}:function(e){return qf.isEditor(e)},mode:"lowest",voids:s})),y=0,m=g;y<m.length;y++){var w=b(m[y],2)[1],x=ld.isRange(f)?ld.intersection(f,qf.range(e,w)):f;if(x){var E=Array.from(qf.nodes(e,{at:x,match:c,mode:o,voids:s}));if(E.length>0){var D=function(){var n=b(E,1)[0],r=E[E.length-1],o=b(n,2)[1],i=b(r,2)[1];if(0===o.length&&0===i.length)return"continue";var a=nd.equals(o,i)?nd.parent(o):nd.common(o,i),u=qf.range(e,o,i),c=b(qf.node(e,a),1)[0],l=a.length+1,f=nd.next(i.slice(0,l)),d=Cd(Cd({},t),{},{children:[]});Nd.insertNodes(e,d,{at:f,voids:s}),Nd.moveNodes(e,{at:u,match:function(e){return Hf.isAncestor(c)&&c.children.includes(e)},to:f.concat(0),voids:s})}();if("continue"===D)continue}}}}})}},Ad=function(e,t){if(Hf.isElement(t)){var n=t;return!!qf.isVoid(e,t)||1===n.children.length&&Ad(e,n.children[0])}return!qf.isEditor(t)},Od=function(e,t){if(ld.isCollapsed(t))return t.anchor;var n=b(ld.edges(t),2)[1],r=qf.pointRef(e,n);return Nd.delete(e,{at:t}),r.unref()},kd=function(e,t){var n=b(qf.node(e,t),1)[0];return function(e){return e===n}};function Bd(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?Bd(Object(n),!0).forEach(function(t){tf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Td={collapse:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).edge,n=void 0===t?"anchor":t,r=e.selection;if(r)if("anchor"===n)Nd.select(e,r.anchor);else if("focus"===n)Nd.select(e,r.focus);else if("start"===n){var o=b(ld.edges(r),1)[0];Nd.select(e,o)}else if("end"===n){var i=b(ld.edges(r),2)[1];Nd.select(e,i)}},deselect:function(e){var t=e.selection;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.selection,r=t.distance,o=void 0===r?1:r,i=t.unit,a=void 0===i?"character":i,u=t.reverse,s=void 0!==u&&u,c=t.edge,l=void 0===c?null:c;if(n){"start"===l&&(l=ld.isBackward(n)?"focus":"anchor"),"end"===l&&(l=ld.isBackward(n)?"anchor":"focus");var f=n.anchor,d=n.focus,p={distance:o,unit:a},h={};if(null==l||"anchor"===l){var v=s?qf.before(e,f,p):qf.after(e,f,p);v&&(h.anchor=v)}if(null==l||"focus"===l){var g=s?qf.before(e,d,p):qf.after(e,d,p);g&&(h.focus=g)}Nd.setSelection(e,h)}},select:function(e,t){var n=e.selection;if(t=qf.range(e,t),n)Nd.setSelection(e,t);else{if(!ld.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:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.selection,o=n.edge,i=void 0===o?"both":o;if(r){"start"===i&&(i=ld.isBackward(r)?"focus":"anchor"),"end"===i&&(i=ld.isBackward(r)?"anchor":"focus");var a=r.anchor,u=r.focus,s="anchor"===i?a:u;Nd.setSelection(e,w({},"anchor"===i?"anchor":"focus",Fd(Fd({},s),t)))}},setSelection:function(e,t){var n=e.selection,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!ad.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!ad.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})}}},_d={delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qf.withoutNormalizing(e,function(){var n=t.reverse,r=void 0!==n&&n,o=t.unit,i=void 0===o?"character":o,a=t.distance,u=void 0===a?1:a,s=t.voids,c=void 0!==s&&s,l=t.at,f=void 0===l?e.selection:l,d=t.hanging,p=void 0!==d&&d;if(f){if(ld.isRange(f)&&ld.isCollapsed(f)&&(f=f.anchor),ad.isPoint(f)){var h=qf.void(e,{at:f,mode:"highest"});if(!c&&h){f=b(h,2)[1]}else{var v={unit:i,distance:u};f={anchor:f,focus:r?qf.before(e,f,v)||qf.start(e,[]):qf.after(e,f,v)||qf.end(e,[])},p=!0}}if(nd.isPath(f))Nd.removeNodes(e,{at:f,voids:c});else if(!ld.isCollapsed(f)){if(!p){var g=b(ld.edges(f),2)[1],y=qf.end(e,[]);ad.equals(g,y)||(f=qf.unhangRange(e,f,{voids:c}))}var m=b(ld.edges(f),2),w=m[0],x=m[1],D=qf.above(e,{match:function(t){return qf.isBlock(e,t)},at:w,voids:c}),C=qf.above(e,{match:function(t){return qf.isBlock(e,t)},at:x,voids:c}),S=D&&C&&!nd.equals(D[1],C[1]),A=nd.equals(w.path,x.path),O=c?null:qf.void(e,{at:w,mode:"highest"}),k=c?null:qf.void(e,{at:x,mode:"highest"});if(O){var B=qf.before(e,w);B&&D&&nd.isAncestor(D[1],B.path)&&(w=B)}if(k){var F=qf.after(e,x);F&&C&&nd.isAncestor(C[1],F.path)&&(x=F)}var T,_,P=[],j=E(qf.nodes(e,{at:f,voids:c}));try{for(j.s();!(_=j.n()).done;){var N=_.value,I=b(N,2),L=I[0],R=I[1];T&&0===nd.compare(R,T)||(!c&&qf.isVoid(e,L)||!nd.isCommon(R,w.path)&&!nd.isCommon(R,x.path))&&(P.push(N),T=R)}}catch(ne){j.e(ne)}finally{j.f()}var M=Array.from(P,function(t){var n=b(t,2)[1];return qf.pathRef(e,n)}),z=qf.pointRef(e,w),H=qf.pointRef(e,x);if(!A&&!O){var V=z.current,$=b(qf.leaf(e,V),1)[0],U=V.path,W=w.offset,G=$.text.slice(W);G.length>0&&e.apply({type:"remove_text",path:U,offset:W,text:G})}for(var q=0,K=M;q<K.length;q++){var Y=K[q].unref();Nd.removeNodes(e,{at:Y,voids:c})}if(!k){var X=H.current,Z=b(qf.leaf(e,X),1)[0],J=X.path,Q=A?w.offset:0,ee=Z.text.slice(Q,x.offset);ee.length>0&&e.apply({type:"remove_text",path:J,offset:Q,text:ee})}!A&&S&&H.current&&z.current&&Nd.mergeNodes(e,{at:H.current,hanging:!0,voids:c});var te=r?z.unref()||H.unref():H.unref()||z.unref();null==t.at&&te&&Nd.select(e,te)}}})},insertFragment:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};qf.withoutNormalizing(e,function(){var r=n.hanging,o=void 0!==r&&r,i=n.voids,a=void 0!==i&&i,u=n.at,s=void 0===u?e.selection:u;if(t.length&&s){if(ld.isRange(s))if(o||(s=qf.unhangRange(e,s)),ld.isCollapsed(s))s=s.anchor;else{var c=b(ld.edges(s),2)[1];if(!a&&qf.void(e,{at:c}))return;var l=qf.pointRef(e,c);Nd.delete(e,{at:s}),s=l.unref()}else nd.isPath(s)&&(s=qf.start(e,s));if(a||!qf.void(e,{at:s})){var f=qf.above(e,{at:s,match:function(t){return qf.isInline(e,t)},mode:"highest",voids:a});if(f){var d=b(f,2)[1];qf.isEnd(e,s,d)?s=qf.after(e,d):qf.isStart(e,s,d)&&(s=qf.before(e,d))}var p,h=qf.above(e,{match:function(t){return qf.isBlock(e,t)},at:s,voids:a}),v=b(h,2)[1],g=qf.isStart(e,s,v),y=qf.isEnd(e,s,v),m=g&&y,w=!g||g&&y,x=!y,D=b(Jf.first({children:t},[]),2)[1],C=b(Jf.last({children:t},[]),2)[1],S=[],A=function(t){var n=b(t,2),r=n[0],o=n[1];return!(0===o.length||!m&&(w&&nd.isAncestor(o,D)&&Hf.isElement(r)&&!e.isVoid(r)&&!e.isInline(r)||x&&nd.isAncestor(o,C)&&Hf.isElement(r)&&!e.isVoid(r)&&!e.isInline(r)))},O=E(Jf.nodes({children:t},{pass:A}));try{for(O.s();!(p=O.n()).done;){var k=p.value;A(k)&&S.push(k)}}catch(K){O.e(K)}finally{O.f()}for(var B=[],F=[],T=[],_=!0,P=!1,j=0,N=S;j<N.length;j++){var I=b(N[j],1)[0];Hf.isElement(I)&&!e.isInline(I)?(_=!1,P=!0,F.push(I)):_?B.push(I):T.push(I)}var L=qf.nodes(e,{at:s,match:function(t){return yd.isText(t)||qf.isInline(e,t)},mode:"highest",voids:a}),R=b(L,1),M=b(R[0],2)[1],z=qf.isStart(e,s,M),H=qf.isEnd(e,s,M),V=qf.pathRef(e,y?nd.next(v):v),$=qf.pathRef(e,H?nd.next(M):M),U=qf.pathRef(e,v);Nd.splitNodes(e,{at:s,match:function(t){return P?qf.isBlock(e,t):yd.isText(t)||qf.isInline(e,t)},mode:P?"lowest":"highest",voids:a});var W=qf.pathRef(e,!z||z&&H?nd.next(M):M);if(Nd.insertNodes(e,B,{at:W.current,match:function(t){return yd.isText(t)||qf.isInline(e,t)},mode:"highest",voids:a}),m&&F.length&&Nd.delete(e,{at:U.unref(),voids:a}),Nd.insertNodes(e,F,{at:V.current,match:function(t){return qf.isBlock(e,t)},mode:"lowest",voids:a}),Nd.insertNodes(e,T,{at:$.current,match:function(t){return yd.isText(t)||qf.isInline(e,t)},mode:"highest",voids:a}),!n.at){var G;G=T.length>0?nd.previous($.current):F.length>0?nd.previous(V.current):nd.previous(W.current);var q=qf.end(e,G);Nd.select(e,q)}W.unref(),V.unref(),$.unref()}}})},insertText:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};qf.withoutNormalizing(e,function(){var r=n.voids,o=void 0!==r&&r,i=n.at,a=void 0===i?e.selection:i;if(a){if(nd.isPath(a)&&(a=qf.range(e,a)),ld.isRange(a))if(ld.isCollapsed(a))a=a.anchor;else{var u=ld.end(a);if(!o&&qf.void(e,{at:u}))return;var s=qf.pointRef(e,u);Nd.delete(e,{at:a,voids:o}),a=s.unref(),Nd.setSelection(e,{anchor:a,focus:a})}if(o||!qf.void(e,{at:a})){var c=a,l=c.path,f=c.offset;t.length>0&&e.apply({type:"insert_text",path:l,offset:f,text:t})}}})}};function Pd(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 jd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pd(Object(n),!0).forEach(function(t){tf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Nd=jd(jd(jd(jd({},wd),Sd),Td),_d),Id="[object Map]",Ld="[object Set]",Rd=/^\[object .+?Constructor\]$/,Md=/^(?:0|[1-9]\d*)$/,zd="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Hd="\\ud83c[\\udffb-\\udfff]",Vd="[^\\ud800-\\udfff]",$d="(?:\\ud83c[\\udde6-\\uddff]){2}",Ud="[\\ud800-\\udbff][\\udc00-\\udfff]",Wd="(?:"+zd+"|"+Hd+")?",Gd="[\\ufe0e\\ufe0f]?"+Wd+"(?:\\u200d(?:"+[Vd,$d,Ud].join("|")+")[\\ufe0e\\ufe0f]?"+Wd+")*",qd="(?:"+[Vd+zd+"?",zd,$d,Ud,"[\\ud800-\\udfff]"].join("|")+")",Kd=RegExp(Hd+"(?="+Hd+")|"+qd+Gd,"g"),Yd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Xd="object"==D(z)&&z&&z.Object===Object&&z,Zd="object"==("undefined"==typeof self?"undefined":D(self))&&self&&self.Object===Object&&self,Jd=Xd||Zd||Function("return this")();function Qd(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function ep(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var tp,np,rp=Function.prototype,op=Object.prototype,ip=Jd["__core-js_shared__"],ap=function(){var e=/[^.]+$/.exec(ip&&ip.keys&&ip.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),up=rp.toString,sp=op.hasOwnProperty,cp=op.toString,lp=RegExp("^"+up.call(sp).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fp=Jd.Symbol,dp=fp?fp.iterator:void 0,pp=op.propertyIsEnumerable,hp=(tp=Object.keys,np=Object,function(e){return tp(np(e))}),vp=Sp(Jd,"DataView"),gp=Sp(Jd,"Map"),yp=Sp(Jd,"Promise"),mp=Sp(Jd,"Set"),bp=Sp(Jd,"WeakMap"),wp=kp(vp),xp=kp(gp),Ep=kp(yp),Dp=kp(mp),Cp=kp(bp);function Sp(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!_p(e)||function(e){return!!ap&&ap in e}(e))return!1;var t=Tp(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?lp:Rd;return t.test(kp(e))}(n)?n:void 0}var Ap=function(e){return cp.call(e)};function Op(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Md.test(e))&&e>-1&&e%1==0&&e<t}function kp(e){if(null!=e){try{return up.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(vp&&"[object DataView]"!=Ap(new vp(new ArrayBuffer(1)))||gp&&Ap(new gp)!=Id||yp&&"[object Promise]"!=Ap(yp.resolve())||mp&&Ap(new mp)!=Ld||bp&&"[object WeakMap]"!=Ap(new bp))&&(Ap=function(e){var t=cp.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?kp(n):void 0;if(r)switch(r){case wp:return"[object DataView]";case xp:return Id;case Ep:return"[object Promise]";case Dp:return Ld;case Cp:return"[object WeakMap]"}return t});var Bp=Array.isArray;function Fp(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Tp(e)}function Tp(e){var t=_p(e)?cp.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function _p(e){var t=D(e);return!!e&&("object"==t||"function"==t)}function Pp(e){return!!e&&"object"==D(e)}function jp(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){var t=Bp(e)||function(e){return function(e){return Pp(e)&&Fp(e)}(e)&&sp.call(e,"callee")&&(!pp.call(e,"callee")||"[object Arguments]"==cp.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],n=t.length,r=!!n;for(var o in e)!sp.call(e,o)||r&&("length"==o||Op(o,n))||t.push(o);return t}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||op))return hp(e);var t,n,r=[];for(var o in Object(e))sp.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}(e)):[]}var Np=function(e){if(!e)return[];if(Fp(e))return function(e){return"string"==typeof e||!Bp(e)&&Pp(e)&&"[object String]"==cp.call(e)}(e)?function(e){return function(e){return Yd.test(e)}(e)?function(e){return e.match(Kd)||[]}(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(dp&&e[dp])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[dp]());var t=Ap(e);return(t==Id?Qd:t==Ld?ep:jp)(e)};function Ip(e){return null!==e&&"object"==D(e)&&"constructor"in e&&e.constructor===Object}function Lp(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach(function(n){void 0===e[n]?e[n]=t[n]:Ip(t[n])&&Ip(e[n])&&Object.keys(t[n]).length>0&&Lp(e[n],t[n])})}var Rp={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 Mp(){var e="undefined"!=typeof document?document:{};return Lp(e,Rp),e}var zp={document:Rp,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 Hp(){var e="undefined"!=typeof window?window:{};return Lp(e,zp),e}function Vp(e){return Vp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vp(e)}function $p(e,t){return $p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$p(e,t)}function Up(e,t,n){return Up=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&$p(o,n.prototype),o},Up.apply(null,arguments)}function Wp(e){var t="function"==typeof Map?new Map:void 0;return Wp=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 Up(e,arguments,Vp(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),$p(n,e)},Wp(e)}var Gp=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}(Wp(Array));function qp(e){void 0===e&&(e=[]);var t=[];return e.forEach(function(e){Array.isArray(e)?t.push.apply(t,qp(e)):t.push(e)}),t}function Kp(e,t){return Array.prototype.filter.call(e,t)}function Yp(e,t){var n=Hp(),r=Mp(),o=[];if(!t&&e instanceof Gp)return e;if(!e)return new Gp(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 Gp)return e;o=e}return new Gp(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 Xp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=qp(t.map(function(e){return e.split(" ")}));return this.forEach(function(e){var t;(t=e.classList).add.apply(t,r)}),this}function Zp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=qp(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=qp(t.map(function(e){return e.split(" ")}));return Kp(this,function(e){return r.filter(function(t){return e.classList.contains(t)}).length>0}).length>0}function Qp(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 eh(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function th(){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 nh(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 rh(){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),Yp(t).is(o))i.apply(t,n);else for(var r=Yp(t).parents(),a=0;a<r.length;a+=1)Yp(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var c,l=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(c=0;c<l.length;c+=1){var p=l[c];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(c=0;c<l.length;c+=1){var h=l[c];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 oh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var c=u[s],l=0;l<this.length;l+=1){var f=this[l],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[c]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[c]),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(c,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(c,h.proxyListener,a),d.splice(p,1))}}return this}function ih(){var e=Hp();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function ah(){var e=Hp();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function uh(){if(this.length>0){var e=Hp(),t=Mp(),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 sh(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function ch(){for(var e=Hp(),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 lh(e,t){var n,r=Hp();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 fh(e){return e?(this.forEach(function(t,n){e.apply(t,[t,n])}),this):this}function dh(e){return Yp(Kp(this,e))}function ph(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 hh(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 vh(e){var t,n,r=Hp(),o=Mp(),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=Yp(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 Gp){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function gh(){for(var e,t=Mp(),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 Gp)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function yh(e){var t,n,r=Mp();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 Gp)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 mh(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?Yp(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Yp(t)}function bh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Yp(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Yp(t)}function wh(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 Yp(t)}function xh(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&&!Yp(r[o]).is(e)||t.push(r[o]);return Yp(t)}function Eh(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Dh(){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}Yp.fn=Gp.prototype;var Ch="resize scroll".split(" ");function Sh(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)Ch.indexOf(e)<0&&(e in this[o]?this[o][e]():Yp(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Ah=Sh("click"),Oh=Sh("focus"),kh=/^(?:0|[1-9]\d*)$/;function Bh(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Fh=Object.prototype,Th=Fh.hasOwnProperty,_h=Fh.toString,Ph=Fh.propertyIsEnumerable,jh=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var Nh,Ih=(Nh=function(e,t){return e&&Lh(e,t,Hh)},function(e,t){if(null==e)return e;if(!zh(e))return Nh(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),Lh=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 Rh(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||kh.test(e))&&e>-1&&e%1==0&&e<t}var Mh=Array.isArray;function zh(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=D(e);return!!e&&("object"==t||"function"==t)}(e)?_h.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function Hh(e){return zh(e)?function(e){var t=Mh(e)||function(e){return function(e){return function(e){return!!e&&"object"==D(e)}(e)&&zh(e)}(e)&&Th.call(e,"callee")&&(!Ph.call(e,"callee")||"[object Arguments]"==_h.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],n=t.length,r=!!n;for(var o in e)!Th.call(e,o)||r&&("length"==o||Rh(o,n))||t.push(o);return t}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Fh))return jh(e);var t,n,r=[];for(var o in Object(e))Th.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function Vh(e){return e}var $h=function(e,t){return(Mh(e)?Bh:Ih)(e,"function"==typeof t?t:Vh)},Uh=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21,t="",n=crypto.getRandomValues(new Uint8Array(e));e--;){var r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},Wh=/^\s+|\s+$/g,Gh=/^[-+]0x[0-9a-f]+$/i,qh=/^0b[01]+$/i,Kh=/^0o[0-7]+$/i,Yh=parseInt,Xh="object"==D(z)&&z&&z.Object===Object&&z,Zh="object"==("undefined"==typeof self?"undefined":D(self))&&self&&self.Object===Object&&self,Jh=Xh||Zh||Function("return this")(),Qh=Object.prototype.toString,ev=Math.max,tv=Math.min,nv=function(){return Jh.Date.now()};function rv(e,t,n){var r,o,i,a,u,s,c=0,l=!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,c=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-c>=i}function v(){var e=nv();if(h(e))return g(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?tv(n,i-(e-c)):n}(e))}function g(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=nv(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return c=e,u=setTimeout(v,t),l?p(e):a}(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=iv(t)||0,ov(n)&&(l=!!n.leading,i=(f="maxWait"in n)?ev(iv(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:g(nv())},y}function ov(e){var t=D(e);return!!e&&("object"==t||"function"==t)}function iv(e){if("number"==typeof e)return e;if(function(e){return"symbol"==D(e)||function(e){return!!e&&"object"==D(e)}(e)&&"[object Symbol]"==Qh.call(e)}(e))return NaN;if(ov(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ov(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Wh,"");var n=qh.test(e);return n||Kh.test(e)?Yh(e.slice(2),n?2:8):Gh.test(e)?NaN:+e}var av=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return ov(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),rv(e,t,{leading:r,maxWait:t,trailing:o})},uv={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 sv(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}var cv=Array.isArray;function lv(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function fv(e){return void 0===e}function dv(e){return void 0!==e}var pv=sv("",{},[],void 0,void 0);function hv(e,t){var n,r,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 vv(e,t,n){for(var r,o={},i=t;i<=n;++i){var a=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==a&&(o[a]=i)}return o}var gv=["create","update","remove","destroy","pre","post"];function yv(e,t){for(var n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=uv,o=0,i=gv;o<i.length;o++){var a,u=i[o],s=E(e);try{for(s.s();!(a=s.n()).done;){var c=a.value[u];void 0!==c&&n[u].push(c)}}catch(g){s.e(g)}finally{s.f()}}function l(e,t){return function(){if(0==--t){var n=r.parentNode(e);r.removeChild(n,e)}}}function f(e,t){var o,i,a,u=e.data;if(void 0!==u){var s=null===(o=u.hook)||void 0===o?void 0:o.init;dv(s)&&(s(e),u=e.data)}var c=e.children,l=e.sel;if("!"===l)fv(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==l){var d=l.indexOf("#"),p=l.indexOf(".",d),h=d>0?d:l.length,v=p>0?p:l.length,g=-1!==d||-1!==p?l.slice(0,Math.min(h,v)):l,y=e.elm=dv(u)&&dv(a=u.ns)?r.createElementNS(a,g,u):r.createElement(g,u);for(h<v&&y.setAttribute("id",l.slice(h+1,v)),p>0&&y.setAttribute("class",l.slice(v+1).replace(/\./g," ")),a=0;a<n.create.length;++a)n.create[a](pv,e);if(cv(c))for(a=0;a<c.length;++a){var m=c[a];null!=m&&r.appendChild(y,f(m,t))}else lv(e.text)&&r.appendChild(y,r.createTextNode(e.text));var b=e.data.hook;dv(b)&&(null===(i=b.create)||void 0===i||i.call(b,pv,e),b.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function d(e,t,n,o,i,a){for(;o<=i;++o){var u=n[o];null!=u&&r.insertBefore(e,f(u,a),t)}}function p(e){var t,r,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(var i=0;i<n.destroy.length;++i)n.destroy[i](e);if(void 0!==e.children)for(var a=0;a<e.children.length;++a){var u=e.children[a];null!=u&&"string"!=typeof u&&p(u)}}}function h(e,t,o,i){for(var a,u;o<=i;++o){var s=void 0,c=void 0,f=t[o];if(null!=f)if(dv(f.sel)){p(f),s=n.remove.length+1,c=l(f.elm,s);for(var d=0;d<n.remove.length;++d)n.remove[d](f,c);var h=null===(u=null===(a=null==f?void 0:f.data)||void 0===a?void 0:a.hook)||void 0===u?void 0:u.remove;dv(h)?h(f,c):c()}else r.removeChild(e,f.elm)}}function v(e,t,o){var i,a,u,s,c,l=null===(i=t.data)||void 0===i?void 0:i.hook;null===(a=null==l?void 0:l.prepatch)||void 0===a||a.call(l,e,t);var p=t.elm=e.elm,g=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(var m=0;m<n.update.length;++m)n.update[m](e,t);null===(s=null===(u=t.data.hook)||void 0===u?void 0:u.update)||void 0===s||s.call(u,e,t)}fv(t.text)?dv(g)&&dv(y)?g!==y&&function(e,t,n,o){for(var i,a,u,s=0,c=0,l=t.length-1,p=t[0],g=t[l],y=n.length-1,m=n[0],b=n[y];s<=l&&c<=y;)null==p?p=t[++s]:null==g?g=t[--l]:null==m?m=n[++c]:null==b?b=n[--y]:hv(p,m)?(v(p,m,o),p=t[++s],m=n[++c]):hv(g,b)?(v(g,b,o),g=t[--l],b=n[--y]):hv(p,b)?(v(p,b,o),r.insertBefore(e,p.elm,r.nextSibling(g.elm)),p=t[++s],b=n[--y]):hv(g,m)?(v(g,m,o),r.insertBefore(e,g.elm,p.elm),g=t[--l],m=n[++c]):(void 0===i&&(i=vv(t,s,l)),fv(a=i[m.key])?r.insertBefore(e,f(m,o),p.elm):(u=t[a]).sel!==m.sel?r.insertBefore(e,f(m,o),p.elm):(v(u,m,o),t[a]=void 0,r.insertBefore(e,u.elm,p.elm)),m=n[++c]);(s<=l||c<=y)&&(s>l?d(e,null==n[y+1]?null:n[y+1].elm,n,c,y,o):h(e,t,s,l))}(p,g,y,o):dv(y)?(dv(e.text)&&r.setTextContent(p,""),d(p,null,y,0,y.length-1,o)):dv(g)?h(p,g,0,g.length-1):dv(e.text)&&r.setTextContent(p,""):e.text!==t.text&&(dv(g)&&h(p,g,0,g.length-1),r.setTextContent(p,t.text)),null===(c=null==l?void 0:l.postpatch)||void 0===c||c.call(l,e,t)}}return function(e,t){var o,i,a,u=[];for(o=0;o<n.pre.length;++o)n.pre[o]();for(function(e){return void 0!==e.sel}(e)||(e=function(e){var t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return sv(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),hv(e,t)?v(e,t,u):(i=e.elm,a=r.parentNode(i),f(t,u),null!==a&&(r.insertBefore(a,t.elm,r.nextSibling(i)),h(a,[e],0,0))),o=0;o<u.length;++o)u[o].data.hook.insert(u[o]);for(o=0;o<n.post.length;++o)n.post[o]();return t}}function mv(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(var r=0;r<t.length;++r){var o=t[r].data;void 0!==o&&mv(o,t[r].children,t[r].sel)}}function bv(e,t,n){var r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),cv(n)?r=n:lv(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(cv(t)?r=t:lv(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)lv(r[i])&&(r[i]=sv(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]||mv(a,r,e),sv(e,a,r,o,void 0)}function wv(e,t){var n,r=t.elm,o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{}){var a=i[n];o[n]!==a&&(!0===a?r.setAttribute(n,""):!1===a?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,a):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,a):r.setAttribute(n,a))}for(n in o)n in i||r.removeAttribute(n)}}var xv={create:wv,update:wv};function Ev(e,t){var n,r,o=t.elm,i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in a=a||{},i=i||{})i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)(n=a[r])!==i[r]&&o.classList[n?"add":"remove"](r)}}var Dv={create:Ev,update:Ev},Cv=/[A-Z]/g;function Sv(e,t){var n,r=t.elm,o=e.data.dataset,i=t.data.dataset;if((o||i)&&o!==i){o=o||{},i=i||{};var a=r.dataset;for(n in o)i[n]||(a?n in a&&delete a[n]:r.removeAttribute("data-"+n.replace(Cv,"-$&").toLowerCase()));for(n in i)o[n]!==i[n]&&(a?a[n]=i[n]:r.setAttribute("data-"+n.replace(Cv,"-$&").toLowerCase(),i[n]))}}var Av={create:Sv,update:Sv};function Ov(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==D(e))for(var r=0;r<e.length;r++)Ov(e[r],t,n)}function kv(e,t){var n=e.type,r=t.data.on;r&&r[n]&&Ov(r[n],t,e)}function Bv(e,t){var n,r=e.data.on,o=e.listener,i=e.elm,a=t&&t.data.on,u=t&&t.elm;if(r!==a){if(r&&o)if(a)for(n in r)a[n]||i.removeEventListener(n,o,!1);else for(n in r)i.removeEventListener(n,o,!1);if(a){var s=t.listener=e.listener||function e(t){kv(t,e.vnode)};if(s.vnode=t,r)for(n in a)r[n]||u.addEventListener(n,s,!1);else for(n in a)u.addEventListener(n,s,!1)}}}var Fv={create:Bv,update:Bv,destroy:Bv};function Tv(e,t){var n,r,o=t.elm,i=e.data.props,a=t.data.props;if((i||a)&&i!==a)for(n in i=i||{},a=a||{})r=a[n],i[n]===r||"value"===n&&o[n]===r||(o[n]=r)}var _v={create:Tv,update:Tv},Pv="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout,jv=!1;function Nv(e,t,n){!function(e){Pv(function(){Pv(e)})}(function(){e[t]=n})}function Iv(e,t){var n,r,o=t.elm,i=e.data.style,a=t.data.style;if((i||a)&&i!==a){a=a||{};var u="delayed"in(i=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(var s in a.delayed)n=a.delayed[s],u&&n===i.delayed[s]||Nv(o.style,s,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}}var Lv={pre:function(){jv=!1},create:Iv,update:Iv,destroy:function(e){var t,n,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){var n=e.data.style;if(n&&n.remove){var r;jv||(e.elm.offsetLeft,jv=!0);var o=e.elm,i=0,a=n.remove,u=0,s=[];for(r in a)s.push(r),o.style[r]=a[r];for(var c=getComputedStyle(o)["transition-property"].split(", ");i<c.length;++i)-1!==s.indexOf(c[i])&&u++;o.addEventListener("transitionend",function(e){e.target===o&&--u,0===u&&t()})}else t()}};function Rv(e,t){var n,r=E(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;null!=o&&!1!==o&&""!==o&&(Array.isArray(o)?Rv(o,t):"string"==typeof o||"number"==typeof o||"boolean"==typeof o?t.push(sv(void 0,void 0,void 0,String(o),void 0)):t.push(o))}}catch(i){r.e(i)}finally{r.f()}return t}function Mv(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=Rv(r,[]);return"function"==typeof e?e(t,i):1===i.length&&!i[0].sel&&i[0].text?bv(e,t,i[0].text):bv(e,t,i)}Mv||(Mv={});var zv,Hv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$v="\\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",Uv="["+$v+"]",Wv="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Gv="\\d+",qv="[a-z\\xdf-\\xf6\\xf8-\\xff]",Kv="[^\\ud800-\\udfff"+$v+Gv+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Yv="\\ud83c[\\udffb-\\udfff]",Xv="[^\\ud800-\\udfff]",Zv="(?:\\ud83c[\\udde6-\\uddff]){2}",Jv="[\\ud800-\\udbff][\\udc00-\\udfff]",Qv="[A-Z\\xc0-\\xd6\\xd8-\\xde]",eg="(?:"+qv+"|"+Kv+")",tg="(?:"+Qv+"|"+Kv+")",ng="(?:"+Wv+"|"+Yv+")?",rg="[\\ufe0e\\ufe0f]?"+ng+"(?:\\u200d(?:"+[Xv,Zv,Jv].join("|")+")[\\ufe0e\\ufe0f]?"+ng+")*",og="(?:"+["[\\u2700-\\u27bf]",Zv,Jv].join("|")+")"+rg,ig="(?:"+[Xv+Wv+"?",Wv,Zv,Jv,"[\\ud800-\\udfff]"].join("|")+")",ag=RegExp("['’]","g"),ug=RegExp(Wv,"g"),sg=RegExp(Yv+"(?="+Yv+")|"+ig+rg,"g"),cg=RegExp([Qv+"?"+qv+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Uv,Qv,"$"].join("|")+")",tg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Uv,Qv+eg,"$"].join("|")+")",Qv+"?"+eg+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Qv+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Gv,og].join("|"),"g"),lg=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),fg=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dg="object"==D(z)&&z&&z.Object===Object&&z,pg="object"==("undefined"==typeof self?"undefined":D(self))&&self&&self.Object===Object&&self,hg=dg||pg||Function("return this")(),vg=(zv={"À":"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==zv?void 0:zv[e]});function gg(e){return lg.test(e)}var yg=Object.prototype.toString,mg=hg.Symbol,bg=mg?mg.prototype:void 0,wg=bg?bg.toString:void 0;function xg(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==D(e)||function(e){return!!e&&"object"==D(e)}(e)&&"[object Symbol]"==yg.call(e)}(e))return wg?wg.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}for(var Eg,Dg=(Eg=function(e,t,n){return t=t.toLowerCase(),e+(n?Cg(xg(t).toLowerCase()):t)},function(e){return function(e,t,n){for(var r=-1,o=e?e.length:0;++r<o;)n=t(n,e[r],r,e);return n}(function(e,t){return e=xg(e),void 0===t?function(e){return fg.test(e)}(e)?function(e){return e.match(cg)||[]}(e):function(e){return e.match(Hv)||[]}(e):e.match(t)||[]}(function(e){return(e=xg(e))&&e.replace(Vv,vg).replace(ug,"")}(e).replace(ag,"")),Eg,"")}),Cg=function(e){var t=gg(e=xg(e))?function(e){return gg(e)?function(e){return e.match(sg)||[]}(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},Sg=Dg,Ag="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Og={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},kg={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Ag?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Bg={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},Fg=1;Fg<20;Fg++)Bg["f"+Fg]=111+Fg;function Tg(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 Og)r[Og[a]]=!1;var u=!0,s=!1,c=void 0;try{for(var l,f=o[Symbol.iterator]();!(u=(l=f.next()).done);u=!0){var d=l.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=Pg(d),v=Og[h];if(d.length>1&&!v&&!kg[d]&&!Bg[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&v||(n?r.key=h:r.which=_g(d)),v&&(r[v]=!p||null)}}catch(e){s=!0,c=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw c}}return r}(e,t)}),o=function(e){return r.some(function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)})};return null==n?o:o(n)}function _g(e){return e=Pg(e),Bg[e]||e.toUpperCase().charCodeAt(0)}function Pg(e){return e=e.toLowerCase(),kg[e]||e}var jg=Tg,Ng=function(e,t){return Tg(e,{byKey:!0},t)},Ig=/^\s+|\s+$/g,Lg=/^[-+]0x[0-9a-f]+$/i,Rg=/^0b[01]+$/i,Mg=/^0o[0-7]+$/i,zg=parseInt,Hg="object"==D(z)&&z&&z.Object===Object&&z,Vg="object"==("undefined"==typeof self?"undefined":D(self))&&self&&self.Object===Object&&self,$g=Hg||Vg||Function("return this")(),Ug=Object.prototype.toString,Wg=Math.max,Gg=Math.min,qg=function(){return $g.Date.now()};function Kg(e){var t=D(e);return!!e&&("object"==t||"function"==t)}function Yg(e){if("number"==typeof e)return e;if(function(e){return"symbol"==D(e)||function(e){return!!e&&"object"==D(e)}(e)&&"[object Symbol]"==Ug.call(e)}(e))return NaN;if(Kg(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Kg(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ig,"");var n=Rg.test(e);return n||Mg.test(e)?zg(e.slice(2),n?2:8):Lg.test(e)?NaN:+e}var Xg,Zg=function(e,t,n){var r,o,i,a,u,s,c=0,l=!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,c=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-c>=i}function v(){var e=qg();if(h(e))return g(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?Gg(n,i-(e-c)):n}(e))}function g(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=qg(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return c=e,u=setTimeout(v,t),l?p(e):a}(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=Yg(t)||0,Kg(n)&&(l=!!n.leading,i=(f="maxWait"in n)?Wg(Yg(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:g(qg())},y},Jg=H(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",c="[object Map]",l="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",h="[object Set]",v="[object String]",g="[object Symbol]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",E="[object Int8Array]",C="[object Int16Array]",S="[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[o]=P["[object Array]"]=P[m]=P[b]=P[i]=P[a]=P[w]=P[x]=P[E]=P[C]=P[S]=P[c]=P[l]=P[f]=P[p]=P[h]=P[v]=P[g]=P[A]=P[O]=P[k]=P[B]=!0,P["[object Error]"]=P[u]=P[y]=!1;var j="object"==D(z)&&z&&z.Object===Object&&z,N="object"==("undefined"==typeof self?"undefined":D(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 H(e,t){return e.set(t[0],t[1]),e}function V(e,t){return e.add(t),e}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 U(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function W(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function G(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 K=Array.prototype,Y=Function.prototype,X=Object.prototype,Z=I["__core-js_shared__"],J=function(){var e=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Q=Y.toString,ee=X.hasOwnProperty,te=X.toString,ne=RegExp("^"+Q.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=M?I.Buffer:void 0,oe=I.Symbol,ie=I.Uint8Array,ae=G(Object.getPrototypeOf,Object),ue=Object.create,se=X.propertyIsEnumerable,ce=K.splice,le=Object.getOwnPropertySymbols,fe=re?re.isBuffer:void 0,de=G(Object.keys,Object),pe=Ie(I,"DataView"),he=Ie(I,"Map"),ve=Ie(I,"Promise"),ge=Ie(I,"Set"),ye=Ie(I,"WeakMap"),me=Ie(Object,"create"),be=He(pe),we=He(he),xe=He(ve),Ee=He(ge),De=He(ye),Ce=oe?oe.prototype:void 0,Se=Ce?Ce.valueOf:void 0;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){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Be(e){this.__data__=new Oe(e)}function Fe(e,t,n){var r=e[t];ee.call(e,t)&&Ve(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Te(e,t){for(var n=e.length;n--;)if(Ve(e[n][0],t))return n;return-1}function _e(e,t,n,r,d,y,D){var T;if(r&&(T=y?r(e,d,y,D):r(e)),void 0!==T)return T;if(!qe(e))return e;var _=$e(e);if(_){if(T=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&ee.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=Re(e),N=j==u||j==s;if(We(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==f||j==o||N&&!y){if(U(e))return y?e:{};if(T=function(e){return"function"!=typeof e.constructor||ze(e)?{}:qe(t=ae(e))?ue(t):{};var t}(N?{}:e),!t)return function(e,t){return je(e,Le(e),t)}(e,function(e,t){return e&&je(t,Ke(t),e)}(T,e))}else{if(!P[j])return y?e:{};T=function(e,t,n,r){var o=e.constructor;switch(t){case m:return Pe(e);case i:case a:return new o(+e);case b:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case w:case x:case E:case C:case S:case A:case O:case k:case B:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case c:return function(e,t,n){return $(t?n(W(e),!0):W(e),H,new e.constructor)}(e,r,n);case l:case v:return new o(e);case p:return function(e){var t=new e.constructor(e.source,F.exec(e));return t.lastIndex=e.lastIndex,t}(e);case h:return function(e,t,n){return $(t?n(q(e),!0):q(e),V,new e.constructor)}(e,r,n);case g:return function(e){return Se?Object(Se.call(e)):{}}(e)}}(e,j,_e,t)}}D||(D=new Be);var I=D.get(e);if(I)return I;if(D.set(e,T),!_)var L=n?function(e){return function(e,t,n){var r=t(e);return $e(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ke,Le)}(e):Ke(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]),Fe(T,i,_e(o,t,n,r,i,e,D))}),T}function Pe(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function je(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o];Fe(n,a,e[a])}return n}function Ne(e,t){var n,r,o=e.__data__;return("string"==(r=D(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ie(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!!J&&J in e}(e))&&(Ge(e)||U(e)?ne:T).test(He(e))}(n)?n:void 0}Ae.prototype.clear=function(){this.__data__=me?me(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ae.prototype.get=function(e){var t=this.__data__;if(me){var r=t[e];return r===n?void 0:r}return ee.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:ee.call(t,e)},Ae.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?n:t,this},Oe.prototype.clear=function(){this.__data__=[]},Oe.prototype.delete=function(e){var t=this.__data__,n=Te(t,e);return!(n<0||(n==t.length-1?t.pop():ce.call(t,n,1),0))},Oe.prototype.get=function(e){var t=this.__data__,n=Te(t,e);return n<0?void 0:t[n][1]},Oe.prototype.has=function(e){return Te(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var n=this.__data__,r=Te(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ke.prototype.clear=function(){this.__data__={hash:new Ae,map:new(he||Oe),string:new Ae}},ke.prototype.delete=function(e){return Ne(this,e).delete(e)},ke.prototype.get=function(e){return Ne(this,e).get(e)},ke.prototype.has=function(e){return Ne(this,e).has(e)},ke.prototype.set=function(e,t){return Ne(this,e).set(e,t),this},Be.prototype.clear=function(){this.__data__=new Oe},Be.prototype.delete=function(e){return this.__data__.delete(e)},Be.prototype.get=function(e){return this.__data__.get(e)},Be.prototype.has=function(e){return this.__data__.has(e)},Be.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Oe){var r=n.__data__;if(!he||r.length<199)return r.push([e,t]),this;n=this.__data__=new ke(r)}return n.set(e,t),this};var Le=le?G(le,Object):function(){return[]},Re=function(e){return te.call(e)};function Me(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function ze(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||X)}function He(e){if(null!=e){try{return Q.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ve(e,t){return e===t||e!=e&&t!=t}(pe&&Re(new pe(new ArrayBuffer(1)))!=b||he&&Re(new he)!=c||ve&&Re(ve.resolve())!=d||ge&&Re(new ge)!=h||ye&&Re(new ye)!=y)&&(Re=function(e){var t=te.call(e),n=t==f?e.constructor:void 0,r=n?He(n):void 0;if(r)switch(r){case be:return b;case we:return c;case xe:return d;case Ee:return h;case De:return y}return t});var $e=Array.isArray;function Ue(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Ge(e)}var We=fe||function(){return!1};function Ge(e){var t=qe(e)?te.call(e):"";return t==u||t==s}function qe(e){var t=D(e);return!!e&&("object"==t||"function"==t)}function Ke(e){return Ue(e)?function(e){var t=$e(e)||function(e){return function(e){return function(e){return!!e&&"object"==D(e)}(e)&&Ue(e)}(e)&&ee.call(e,"callee")&&(!se.call(e,"callee")||te.call(e)==o)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],n=t.length,r=!!n;for(var i in e)!ee.call(e,i)||r&&("length"==i||Me(i,n))||t.push(i);return t}(e):function(e){if(!ze(e))return de(e);var t=[];for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return _e(e,!0,!0)}});function Qg(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ey=0;function ty(e,t,n){var r=[];return e.forEach(function(e){return"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(function(e,t,o){""!==e&&r.push(e),t<o.length-1&&r.push(n)})}),r
- /**
- * Takes a string with placeholder variables like `%{smart_count} file selected`
- * and replaces it with values from options `{smart_count: 5}`
- *
- * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
- * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
- *
- * @param {string} phrase that needs interpolation, with placeholders
- * @param {object} options with values that will be used to replace placeholders
- * @returns {any[]} interpolated
- */}function ny(e,t){var n=/\$/g,r=[e];if(null==t)return r;for(var o=0,i=Object.keys(t);o<i.length;o++){var a=i[o];if("_"!==a){var u=t[a];"string"==typeof u&&(u=n[Symbol.replace](u,"$$$$")),r=ty(r,new RegExp("%\\{".concat(a,"\\}"),"g"),u)}}return r}var ry=(Xg=function(e){return"__private_"+ey+++"_"+e}("apply"),function(){return v(function e(t){p(this,e),Object.defineProperty(this,Xg,{value:oy}),this.locale={strings:{},pluralize:function(e){return 1===e?0:1}},Array.isArray(t)?t.forEach(Qg(this,Xg)[Xg],this):Qg(this,Xg)[Xg](t)},[{key:"translate",value:function(e,t){return this.translateArray(e,t).join("")}},{key:"translateArray",value:function(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw new Error("missing string: ".concat(e));var n=this.locale.strings[e];if("object"==D(n)){if(t&&void 0!==t.smart_count)return ny(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 ny(n,t)}}])}());function oy(e){if(null!=e&&e.strings){var t=this.locale;this.locale=d(d({},t),{},{strings:d(d({},t.strings),e.strings)}),this.locale.pluralize=e.pluralize||t.pluralize}}var iy=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},ay={nanoid:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21,t="",n=crypto.getRandomValues(new Uint8Array(e));e--;){var r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t}},uy=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+D(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 sy(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}sy.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"==D(e))for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var cy=/[\/\+\.]/,ly=0;var fy=function(e){return"__private_"+ly+++"_"+e}("publish"),dy=function(){return v(function e(){p(this,e),Object.defineProperty(this,fy,{value:py}),this.state={},this.callbacks=[]},[{key:"getState",value:function(){return this.state}},{key:"setState",value:function(e){var t=d({},this.state),n=d(d({},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,fy)[fy](t,n,e)}},{key:"subscribe",value:function(e){var t=this;return this.callbacks.push(e),function(){t.callbacks.splice(t.callbacks.indexOf(e),1)}}}])}();function py(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(function(e){e.apply(void 0,t)})}dy.VERSION="2.0.3";var hy=function(e){var 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)}},vy={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 gy(e){var t="";return e.replace(/[^A-Z0-9]/gi,function(e){return t+="-".concat(function(e){return e.charCodeAt(0).toString(32)}(e)),"/"})+t}var yy=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;var t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;var n=b(t[1].split("."),2),r=n[0],o=n[1];return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218};function my(e){return e<10?"0".concat(e):e.toString()}var by=function(){var e=new Date;return"".concat(my(e.getHours()),":").concat(my(e.getMinutes()),":").concat(my(e.getSeconds()))},wy={justErrorsLogger:{debug:function(){},warn:function(){},error:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=console).error.apply(e,["[Uppy] [".concat(by(),"]")].concat(n))}},debugLogger:{debug:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=console).debug.apply(e,["[Uppy] [".concat(by(),"]")].concat(n))},warn:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=console).warn.apply(e,["[Uppy] [".concat(by(),"]")].concat(n))},error:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=console).error.apply(e,["[Uppy] [".concat(by(),"]")].concat(n))}}},xy={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}"}}},Ey=ay;function Dy(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 Sy(e){return"__private_"+Cy+++"_"+e}var Ay=Ey.nanoid,Oy=wy.justErrorsLogger,ky=wy.debugLogger,By=function(e){function t(){var e;return p(this,t),(e=o(this,t,arguments)).isRestriction=!0,e}return a(t,e),v(t)}(u(Error));"undefined"==typeof AggregateError&&(globalThis.AggregateError=function(e){function t(e,n){var r;return p(this,t),(r=o(this,t,[n])).errors=e,r}return a(t,e),v(t)}(u(Error)));var Fy=function(e){function t(){var e;return p(this,t),(e=o(this,t,arguments)).isRestriction=!0,e}return a(t,e),v(t)}(u(AggregateError)),Ty=Sy("plugins"),_y=Sy("storeUnsubscribe"),Py=Sy("emitter"),jy=Sy("preProcessors"),Ny=Sy("uploaders"),Iy=Sy("postProcessors"),Ly=Sy("checkRestrictions"),Ry=Sy("checkMinNumberOfFiles"),My=Sy("checkRequiredMetaFieldsOnFile"),zy=Sy("checkRequiredMetaFields"),Hy=Sy("showOrLogErrorAndThrow"),Vy=Sy("assertNewUploadAllowed"),$y=Sy("checkAndCreateFileStateObject"),Uy=Sy("startIfAutoProceed"),Wy=Sy("addListeners"),Gy=Sy("updateOnlineStatus"),qy=Sy("createUpload"),Ky=Sy("getUpload"),Yy=Sy("removeUpload"),Xy=Sy("runUpload"),Zy=function(e,t){return v(function e(t){var n=this;p(this,e),Object.defineProperty(this,Xy,{value:lm}),Object.defineProperty(this,Yy,{value:cm}),Object.defineProperty(this,Ky,{value:sm}),Object.defineProperty(this,qy,{value:um}),Object.defineProperty(this,Wy,{value:am}),Object.defineProperty(this,Uy,{value:im}),Object.defineProperty(this,$y,{value:om}),Object.defineProperty(this,Vy,{value:rm}),Object.defineProperty(this,Hy,{value:nm}),Object.defineProperty(this,zy,{value:tm}),Object.defineProperty(this,My,{value:em}),Object.defineProperty(this,Ry,{value:Qy}),Object.defineProperty(this,Ly,{value:Jy}),Object.defineProperty(this,Ty,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,_y,{writable:!0,value:void 0}),Object.defineProperty(this,Py,{writable:!0,value:iy()}),Object.defineProperty(this,jy,{writable:!0,value:new Set}),Object.defineProperty(this,Ny,{writable:!0,value:new Set}),Object.defineProperty(this,Iy,{writable:!0,value:new Set}),Object.defineProperty(this,Gy,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=xy;var r={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:function(e){return e},onBeforeUpload:function(e){return e},store:new dy,logger:Oy,infoTimeout:5e3};if(this.opts=d(d(d({},r),t),{},{restrictions:d(d({},r.restrictions),t&&t.restrictions)}),t&&t.logger&&t.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"):t&&t.debug&&(this.opts.logger=ky),this.log("Using Core v".concat(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=av(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:yy(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:d({},this.opts.meta),info:[],recoveredState:null}),Dy(this,_y)[_y]=this.store.subscribe(function(e,t,r){n.emit("state-update",e,t,r),n.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),Dy(this,Wy)[Wy]()},[{key:"emit",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=Dy(this,Py)[Py]).emit.apply(t,[e].concat(r))}},{key:"on",value:function(e,t){return Dy(this,Py)[Py].on(e,t),this}},{key:"once",value:function(e,t){return Dy(this,Py)[Py].once(e,t),this}},{key:"off",value:function(e,t){return Dy(this,Py)[Py].off(e,t),this}},{key:"updateAll",value:function(e){this.iteratePlugins(function(t){t.update(e)})}},{key:"setState",value:function(e){this.store.setState(e)}},{key:"getState",value:function(){return this.store.getState()}},{key:"state",get:function(){return this.getState()}},{key:"setFileState",value:function(e,t){if(!this.getState().files[e])throw new Error("Can’t set state for ".concat(e," (the file could have been removed)"));this.setState({files:d(d({},this.getState().files),{},w({},e,d(d({},this.getState().files[e]),t)))})}},{key:"i18nInit",value:function(){var e=new ry([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}},{key:"setOptions",value:function(e){this.opts=d(d(d({},this.opts),e),{},{restrictions:d(d({},this.opts.restrictions),e&&e.restrictions)}),e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(function(e){e.setOptions()}),this.setState()}},{key:"resetProgress",value:function(){var e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t=d({},this.getState().files),n={};Object.keys(t).forEach(function(r){var o=d({},t[r]);o.progress=d(d({},o.progress),e),n[r]=o}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}},{key:"addPreProcessor",value:function(e){Dy(this,jy)[jy].add(e)}},{key:"removePreProcessor",value:function(e){return Dy(this,jy)[jy].delete(e)}},{key:"addPostProcessor",value:function(e){Dy(this,Iy)[Iy].add(e)}},{key:"removePostProcessor",value:function(e){return Dy(this,Iy)[Iy].delete(e)}},{key:"addUploader",value:function(e){Dy(this,Ny)[Ny].add(e)}},{key:"removeUploader",value:function(e){return Dy(this,Ny)[Ny].delete(e)}},{key:"setMeta",value:function(e){var t=d(d({},this.getState().meta),e),n=d({},this.getState().files);Object.keys(n).forEach(function(t){n[t]=d(d({},n[t]),{},{meta:d(d({},n[t].meta),e)})}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}},{key:"setFileMeta",value:function(e,t){var n=d({},this.getState().files);if(n[e]){var r=d(d({},n[e].meta),t);n[e]=d(d({},n[e]),{},{meta:r}),this.setState({files:n})}else this.log("Was trying to set metadata for a file that has been removed: ",e)}},{key:"getFile",value:function(e){return this.getState().files[e]}},{key:"getFiles",value:function(){var e=this.getState().files;return Object.values(e)}},{key:"getObjectOfFilesPerState",value:function(){var e=this.getState(),t=e.files,n=e.totalProgress,r=e.error,o=Object.values(t),i=o.filter(function(e){var t=e.progress;return!t.uploadComplete&&t.uploadStarted}),a=o.filter(function(e){return!e.progress.uploadStarted}),u=o.filter(function(e){return e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess}),s=o.filter(function(e){return e.progress.uploadStarted}),c=o.filter(function(e){return e.isPaused}),l=o.filter(function(e){return e.progress.uploadComplete}),f=o.filter(function(e){return e.error}),d=i.filter(function(e){return!e.isPaused}),p=o.filter(function(e){return e.progress.preprocess||e.progress.postprocess});return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:c,completeFiles:l,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:s.length>0,isAllComplete:100===n&&l.length===o.length&&0===p.length,isAllErrored:!!r&&f.length===o.length,isAllPaused:0!==i.length&&c.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(function(e){return e.isGhost})}}},{key:"validateRestrictions",value:function(e,t){try{return Dy(this,Ly)[Ly](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}},{key:"checkIfFileAlreadyExists",value:function(e){var t=this.getState().files;return!(!t[e]||t[e].isGhost)}},{key:"addFile",value:function(e){Dy(this,Vy)[Vy](e);var t=this.getState().files,n=Dy(this,$y)[$y](t,e);return t[n.id]&&t[n.id].isGhost&&(n=d(d({},t[n.id]),{},{data:e.data,isGhost:!1}),this.log("Replaced the blob in the restored ghost file: ".concat(n.name,", ").concat(n.id))),this.setState({files:d(d({},t),{},w({},n.id,n))}),this.emit("file-added",n),this.emit("files-added",[n]),this.log("Added file: ".concat(n.name,", ").concat(n.id,", mime type: ").concat(n.type)),Dy(this,Uy)[Uy](),n.id}},{key:"addFiles",value:function(e){var t=this;Dy(this,Vy)[Vy]();for(var n=d({},this.getState().files),r=[],o=[],i=0;i<e.length;i++)try{var a=Dy(this,$y)[$y](n,e[i]);n[a.id]&&n[a.id].isGhost&&(a=d(d({},n[a.id]),{},{data:e[i].data,isGhost:!1}),this.log("Replaced blob in a ghost file: ".concat(a.name,", ").concat(a.id))),n[a.id]=a,r.push(a)}catch(e){e.isRestriction||o.push(e)}if(this.setState({files:n}),r.forEach(function(e){t.emit("file-added",e)}),this.emit("files-added",r),r.length>5?this.log("Added batch of ".concat(r.length," files")):Object.keys(r).forEach(function(e){t.log("Added file: ".concat(r[e].name,"\n id: ").concat(r[e].id,"\n type: ").concat(r[e].type))}),r.length>0&&Dy(this,Uy)[Uy](),o.length>0){var u="Multiple errors occurred while adding files:\n";if(o.forEach(function(e){u+="\n * ".concat(e.message)}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:u},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(o,u);var s=new Error(u);throw s.errors=o,s}}},{key:"removeFiles",value:function(e,t){var n=this,r=this.getState(),o=r.files,i=r.currentUploads,a=d({},o),u=d({},i),s=Object.create(null);function c(e){return void 0===s[e]}e.forEach(function(e){o[e]&&(s[e]=o[e],delete a[e])}),Object.keys(u).forEach(function(e){var t=i[e].fileIDs.filter(c);0!==t.length?u[e]=d(d({},i[e]),{},{fileIDs:t}):delete u[e]});var l={currentUploads:u,files:a};0===Object.keys(a).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();var f=Object.keys(s);f.forEach(function(e){n.emit("file-removed",s[e],t)}),f.length>5?this.log("Removed ".concat(f.length," files")):this.log("Removed files: ".concat(f.join(", ")))}},{key:"removeFile",value:function(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}},{key:"pauseResume",value:function(e){if(this.getState().capabilities.resumableUploads&&!this.getFile(e).uploadComplete){var t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}}},{key:"pauseAll",value:function(){var e=d({},this.getState().files);Object.keys(e).filter(function(t){return!e[t].progress.uploadComplete&&e[t].progress.uploadStarted}).forEach(function(t){var n=d(d({},e[t]),{},{isPaused:!0});e[t]=n}),this.setState({files:e}),this.emit("pause-all")}},{key:"resumeAll",value:function(){var e=d({},this.getState().files);Object.keys(e).filter(function(t){return!e[t].progress.uploadComplete&&e[t].progress.uploadStarted}).forEach(function(t){var n=d(d({},e[t]),{},{isPaused:!1,error:null});e[t]=n}),this.setState({files:e}),this.emit("resume-all")}},{key:"retryAll",value:function(){var e=d({},this.getState().files),t=Object.keys(e).filter(function(t){return e[t].error});if(t.forEach(function(t){var n=d(d({},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:[]});var n=Dy(this,qy)[qy](t,{forceAllowNewUpload:!0});return Dy(this,Xy)[Xy](n)}},{key:"cancelAll",value:function(){this.emit("cancel-all");var e=this.getState().files,t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}},{key:"retryUpload",value:function(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);var t=Dy(this,qy)[qy]([e],{forceAllowNewUpload:!0});return Dy(this,Xy)[Xy](t)}},{key:"reset",value:function(){this.cancelAll()}},{key:"logout",value:function(){this.iteratePlugins(function(e){e.provider&&e.provider.logout&&e.provider.logout()})}},{key:"calculateProgress",value:function(e,t){if(this.getFile(e.id)){var n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:d(d({},this.getFile(e.id).progress),{},{bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0})}),this.calculateTotalProgress()}else this.log("Not setting progress for a file that has been removed: ".concat(e.id))}},{key:"calculateTotalProgress",value:function(){var e=this.getFiles().filter(function(e){return e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess});if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});var t=e.filter(function(e){return null!=e.progress.bytesTotal}),n=e.filter(function(e){return null==e.progress.bytesTotal});if(0!==t.length){var r=t.reduce(function(e,t){return e+t.progress.bytesTotal},0),o=r/t.length;r+=o*n.length;var i=0;t.forEach(function(e){i+=e.progress.bytesUploaded}),n.forEach(function(e){i+=o*(e.progress.percentage||0)/100});var a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}else{var u=100*e.length,s=n.reduce(function(e,t){return e+t.progress.percentage},0),c=Math.round(s/u*100);this.setState({totalProgress:c})}}},{key:"updateOnlineStatus",value:function(){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)}},{key:"getID",value:function(){return this.opts.id}},{key:"use",value:function(e,t){if("function"!=typeof e)throw new TypeError("Expected a plugin class, but got ".concat(null===e?"null":D(e),". Please verify that the plugin was imported and spelled correctly."));var 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");var o=this.getPlugin(r);if(o){var i="Already found a plugin named '".concat(o.id,"'. Tried to use: '").concat(r,"'.\nUppy plugins must have unique `id` options. See https://uppy.io/docs/plugins/#id.");throw new Error(i)}return e.VERSION&&this.log("Using ".concat(r," v").concat(e.VERSION)),n.type in Dy(this,Ty)[Ty]?Dy(this,Ty)[Ty][n.type].push(n):Dy(this,Ty)[Ty][n.type]=[n],n.install(),this}},{key:"getPlugin",value:function(e){for(var t=0,n=Object.values(Dy(this,Ty)[Ty]);t<n.length;t++){var r=n[t].find(function(t){return t.id===e});if(null!=r)return r}}},{key:e,value:function(e){return Dy(this,Ty)[Ty][e]}},{key:"iteratePlugins",value:function(e){Object.values(Dy(this,Ty)[Ty]).flat(1).forEach(e)}},{key:"removePlugin",value:function(e){this.log("Removing plugin ".concat(e.id)),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();var t=Dy(this,Ty)[Ty][e.type],n=t.findIndex(function(t){return t.id===e.id});-1!==n&&t.splice(n,1);var r={plugins:d(d({},this.getState().plugins),{},w({},e.id,void 0))};this.setState(r)}},{key:"close",value:function(){var e=this;this.log("Closing Uppy instance ".concat(this.opts.id,": removing all files and uninstalling plugins")),this.reset(),Dy(this,_y)[_y](),this.iteratePlugins(function(t){e.removePlugin(t)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",Dy(this,Gy)[Gy]),window.removeEventListener("offline",Dy(this,Gy)[Gy]))}},{key:"hideInfo",value:function(){var e=this.getState().info;this.setState({info:e.slice(1)}),this.emit("info-hidden")}},{key:"info",value:function(e,t,n){var r=this;void 0===t&&(t="info"),void 0===n&&(n=3e3);var o="object"==D(e);this.setState({info:[].concat(C(this.getState().info),[{type:t,message:o?e.message:e,details:o?e.details:null}])}),setTimeout(function(){return r.hideInfo()},n),this.emit("info-visible")}},{key:"log",value:function(e,t){var n=this.opts.logger;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}},{key:"restore",value:function(e){return this.log('Core: attempting to restore upload "'.concat(e,'"')),this.getState().currentUploads[e]?Dy(this,Xy)[Xy](e):(Dy(this,Yy)[Yy](e),Promise.reject(new Error("Nonexistent upload")))}},{key:t,value:function(){var e;return(e=Dy(this,qy))[qy].apply(e,arguments)}},{key:"addResultData",value:function(e,t){if(Dy(this,Ky)[Ky](e)){var n=this.getState().currentUploads,r=d(d({},n[e]),{},{result:d(d({},n[e].result),t)});this.setState({currentUploads:d(d({},n),{},w({},e,r))})}else this.log("Not setting result for an upload that has been removed: ".concat(e))}},{key:"upload",value:function(){var e,t=this;null!=(e=Dy(this,Ty)[Ty].uploader)&&e.length||this.log("No uploader type plugins are used","warning");var n=this.getState().files,r=this.opts.onBeforeUpload(n);return!1===r?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&"object"==D(r)&&(n=r,this.setState({files:n})),Promise.resolve().then(function(){Dy(t,Ry)[Ry](n),Dy(t,zy)[zy](n)}).catch(function(e){Dy(t,Hy)[Hy](e)}).then(function(){var e=t.getState().currentUploads,r=Object.values(e).flatMap(function(e){return e.fileIDs}),o=[];Object.keys(n).forEach(function(e){var n=t.getFile(e);n.progress.uploadStarted||-1!==r.indexOf(e)||o.push(n.id)});var i=Dy(t,qy)[qy](o);return Dy(t,Xy)[Xy](i)}).catch(function(e){Dy(t,Hy)[Hy](e,{showInformer:!1})}))}}])}(Symbol.for("uppy test: getPlugins"),Symbol.for("uppy test: createUpload"));function Jy(e,t){void 0===t&&(t=this.getFiles());var n=this.opts.restrictions,r=n.maxFileSize,o=n.minFileSize,i=n.maxTotalFileSize,a=n.maxNumberOfFiles,u=n.allowedFileTypes;if(a&&t.length+1>a)throw new By("".concat(this.i18n("youCanOnlyUploadX",{smart_count:a})));if(u&&!u.some(function(t){return t.indexOf("/")>-1?!!e.type&&function(e,t){function n(t){var n=function(e,t,n){var r=new sy(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,cy);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()})){var s=u.join(", ");throw new By(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(i&&null!=e.size){var c=0;if(c+=e.size,t.forEach(function(e){c+=e.size}),c>i)throw new By(this.i18n("exceedsSize",{size:uy(i),file:e.name}))}if(r&&null!=e.size&&e.size>r)throw new By(this.i18n("exceedsSize",{size:uy(r),file:e.name}));if(o&&null!=e.size&&e.size<o)throw new By(this.i18n("inferiorSize",{size:uy(o)}))}function Qy(e){var t=this.opts.restrictions.minNumberOfFiles;if(Object.keys(e).length<t)throw new By("".concat(this.i18n("youHaveToAtLeastSelectX",{smart_count:t})))}function em(e){for(var t=this.opts.restrictions.requiredMetaFields,n=Object.prototype.hasOwnProperty,r=[],o=[],i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){var a=new By("".concat(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})));r.push(a),o.push(t[i]),Dy(this,Hy)[Hy](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function tm(e){var t=this,n=Object.keys(e).flatMap(function(e){var n=t.getFile(e);return Dy(t,My)[My](n)});if(n.length)throw new Fy(n,"".concat(this.i18n("missingRequiredMetaField")))}function nm(e,t){var n=void 0===t?{}:t,r=n.showInformer,o=void 0===r||r,i=n.file,a=void 0===i?null:i,u=n.throwErr,s=void 0===u||u,c="object"==D(e)?e.message:e,l="object"==D(e)&&e.details?e.details:"",f=c;if(l&&(f+=" ".concat(l)),e.isRestriction?(this.log(f),this.emit("restriction-failed",a,e)):this.log(f,"error"),o&&this.info({message:c,details:l},"error",this.opts.infoTimeout),s)throw"object"==D(e)?e:new Error(e)}function rm(e){!1===this.getState().allowNewUpload&&Dy(this,Hy)[Hy](new By(this.i18n("noMoreFilesAllowed")),{file:e})}function om(e,t){var n=function(e){var t;if(e.type)return e.type;var n=e.name?null==(t=hy(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in vy?vy[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?"".concat(e.split("/")[0],".").concat(e.split("/")[1]):"noname"}(n,t),o=hy(r).extension,i=Boolean(t.isRemote),a=function(e){var t="uppy";return"string"==typeof e.name&&(t+="-".concat(gy(e.name.toLowerCase()))),void 0!==e.type&&(t+="-".concat(e.type)),e.meta&&"string"==typeof e.meta.relativePath&&(t+="-".concat(gy(e.meta.relativePath.toLowerCase()))),void 0!==e.data.size&&(t+="-".concat(e.data.size)),void 0!==e.data.lastModified&&(t+="-".concat(e.data.lastModified)),t}(d(d({},t),{},{type:n}));if(this.checkIfFileAlreadyExists(a)){var u=new By(this.i18n("noDuplicates",{fileName:r}));Dy(this,Hy)[Hy](u,{file:t})}var s=t.meta||{};s.name=r,s.type=n;var c=Number.isFinite(t.data.size)?t.data.size:null,l={source:t.source||"",id:a,name:r,extension:o||"",meta:d(d({},this.getState().meta),s),type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:c,uploadComplete:!1,uploadStarted:null},size:c,isRemote:i,remote:t.remote||"",preview:t.preview},f=this.opts.onBeforeFileAdded(l,e);!1===f?Dy(this,Hy)[Hy](new By("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==D(f)&&null!==f&&(l=f);try{var p=Object.keys(e).map(function(t){return e[t]});Dy(this,Ly)[Ly](l,p)}catch(e){Dy(this,Hy)[Hy](e,{file:l})}return l}function im(){var e=this;this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(function(){e.scheduledAutoProceed=null,e.upload().catch(function(t){t.isRestriction||e.log(t.stack||t.message||t)})},4))}function am(){var e=this,t=function(t,n,r){var o=t.message||"Unknown error";t.details&&(o+=" ".concat(t.details)),e.setState({error:o}),null!=n&&n.id in e.getState().files&&e.setFileState(n.id,{error:o,response:r})};this.on("error",t),this.on("upload-error",function(n,r,o){if(t(r,n,o),"object"==D(r)&&r.message){var i=new Error(r.message);i.details=r.message,r.details&&(i.details+=" ".concat(r.details)),i.message=e.i18n("failedToUpload",{file:n.name}),Dy(e,Hy)[Hy](i,{throwErr:!1})}else Dy(e,Hy)[Hy](r,{throwErr:!1})}),this.on("upload",function(){e.setState({error:null})}),this.on("upload-started",function(t){e.getFile(t.id)?e.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):e.log("Not setting progress for a file that has been removed: ".concat(t.id))}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",function(t,n){if(e.getFile(t.id)){var r=e.getFile(t.id).progress;e.setFileState(t.id,{progress:d(d({},r),{},{postprocess:Dy(e,Iy)[Iy].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal}),response:n,uploadURL:n.uploadURL,isPaused:!1}),null==t.size&&e.setFileState(t.id,{size:n.bytesUploaded||r.bytesTotal}),e.calculateTotalProgress()}else e.log("Not setting progress for a file that has been removed: ".concat(t.id))}),this.on("preprocess-progress",function(t,n){e.getFile(t.id)?e.setFileState(t.id,{progress:d(d({},e.getFile(t.id).progress),{},{preprocess:n})}):e.log("Not setting progress for a file that has been removed: ".concat(t.id))}),this.on("preprocess-complete",function(t){if(e.getFile(t.id)){var n=d({},e.getState().files);n[t.id]=d(d({},n[t.id]),{},{progress:d({},n[t.id].progress)}),delete n[t.id].progress.preprocess,e.setState({files:n})}else e.log("Not setting progress for a file that has been removed: ".concat(t.id))}),this.on("postprocess-progress",function(t,n){e.getFile(t.id)?e.setFileState(t.id,{progress:d(d({},e.getState().files[t.id].progress),{},{postprocess:n})}):e.log("Not setting progress for a file that has been removed: ".concat(t.id))}),this.on("postprocess-complete",function(t){if(e.getFile(t.id)){var n=d({},e.getState().files);n[t.id]=d(d({},n[t.id]),{},{progress:d({},n[t.id].progress)}),delete n[t.id].progress.postprocess,e.setState({files:n})}else e.log("Not setting progress for a file that has been removed: ".concat(t.id))}),this.on("restored",function(){e.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",function(t){t&&Dy(e,My)[My](t)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",Dy(this,Gy)[Gy]),window.addEventListener("offline",Dy(this,Gy)[Gy]),setTimeout(Dy(this,Gy)[Gy],3e3))}function um(e,t){void 0===t&&(t={});var n=t.forceAllowNewUpload,r=void 0!==n&&n,o=this.getState(),i=o.allowNewUpload,a=o.currentUploads;if(!i&&!r)throw new Error("Cannot create a new upload: already uploading.");var u=Ay();return this.emit("upload",{id:u,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:d(d({},a),{},w({},u,{fileIDs:e,step:0,result:{}}))}),u}function sm(e){return this.getState().currentUploads[e]}function cm(e){var t=d({},this.getState().currentUploads);delete t[e],this.setState({currentUploads:t})}function lm(e){return fm.apply(this,arguments)}function fm(){return fm=r(y().m(function e(t){var n,r,o,i,a,u,s,c,l,f,p,h,v,g=this;return y().w(function(e){for(;;)switch(e.p=e.n){case 0:n=this.getState(),r=n.currentUploads,o=r[t],i=o.step||0,a=[].concat(C(Dy(this,jy)[jy]),C(Dy(this,Ny)[Ny]),C(Dy(this,Iy)[Iy])),e.p=1,u=i;case 2:if(!(u<a.length&&o)){e.n=5;break}return s=a[u],c=d(d({},o),{},{step:u}),this.setState({currentUploads:d(d({},r),{},w({},t,c))}),e.n=3,s(c.fileIDs,t);case 3:r=this.getState().currentUploads,o=r[t];case 4:u++,e.n=2;break;case 5:e.n=7;break;case 6:throw e.p=6,v=e.v,this.emit("error",v),Dy(this,Yy)[Yy](t),v;case 7:if(!o){e.n=9;break}return o.fileIDs.forEach(function(e){var t=g.getFile(e);t&&t.progress.postprocess&&g.emit("postprocess-complete",t)}),l=o.fileIDs.map(function(e){return g.getFile(e)}),f=l.filter(function(e){return!e.error}),p=l.filter(function(e){return e.error}),e.n=8,this.addResultData(t,{successful:f,failed:p,uploadID:t});case 8:r=this.getState().currentUploads,o=r[t];case 9:return e.a(2,(o&&(h=o.result,this.emit("complete",h),Dy(this,Yy)[Yy](t)),null==h&&this.log("Not setting result for an upload that has been removed: ".concat(t)),h))}},e,this,[[1,6]])})),fm.apply(this,arguments)}Zy.VERSION="2.1.3";var dm=Zy,pm=H(function(e,t){var n,r,o,i,a,u,s,c,l={},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 v(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return g(e,u,o,i,null)}function g(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function x(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!E.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(E)}function E(){for(var e;E.__r=a.length;)e=a.sort(function(e,t){return e.__v.__b-t.__v.__b}),a=[],e.some(function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=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 D(e,t,n,r,o,i,a,u,s,c){var d,p,h,v,m,w,x,E=r&&r.__k||f,D=E.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(v=n.__k[d]=null==(v=t[d])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?g(null,v,null,null,v):Array.isArray(v)?g(y,{children:v},null,null,null):v.__b>0?g(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(h=E[d])||h&&v.key==h.key&&v.type===h.type)E[d]=void 0;else for(p=0;p<D;p++){if((h=E[p])&&v.key==h.key&&v.type===h.type){E[p]=void 0;break}h=null}F(e,v,h=h||l,o,i,a,u,s,c),m=v.__e,(p=v.ref)&&h.ref!=p&&(x||(x=[]),h.ref&&x.push(h.ref,null,v),x.push(p,v.__c||m,v)),null!=m?(null==w&&(w=m),"function"==typeof v.type&&v.__k===h.__k?v.__d=s=C(v,s,e):s=S(e,v,h,E,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=w,d=D;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 C(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?C(r,t,n):S(n,r,r,o,r.__e,t));return t}function S(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,c){var l,f,d,h,v,g,b,w,x,E,C,S=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(l=r.__b)&&l(t);try{e:if("function"==typeof S){if(w=t.props,x=(l=S.contextType)&&o[l.__c],E=l?x?x.props.value:l.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in S&&S.prototype.render?t.__c=f=new S(w,E):(t.__c=f=new m(w,E),f.constructor=S,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!=S.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,S.getDerivedStateFromProps(w,f.__s))),h=f.props,v=f.state,d)null==S.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==S.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,E),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,E)||t.__v===n.__v){f.props=w,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,E),null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(h,v,g)})}f.context=E,f.props=w,f.state=f.__s,(l=r.__r)&&l(t),f.__d=!1,f.__v=t,f.__P=e,l=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(g=f.getSnapshotBeforeUpdate(h,v)),C=null!=l&&l.type===y&&null==l.key?l.props.children:l,D(e,Array.isArray(C)?C:[C],t,n,o,i,a,u,s,c),f.base=t.__e,t.__h=null,f.__h.length&&u.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=_(n.__e,t,n,o,i,a,u,c);(l=r.diffed)&&l(t)}catch(e){t.__v=null,(c||null!=a)&&(t.__e=s,t.__h=!!c,a[a.indexOf(s)]=null),r.__e(e,t,n)}}function 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 c,f,d,p=r.props,v=t.props,g=t.type,y=0;if("svg"===g&&(i=!0),null!=a)for(;y<a.length;y++)if((c=a[y])&&"setAttribute"in c==!!g&&(g?c.localName===g:3===c.nodeType)){e=c,a[y]=null;break}if(null==e){if(null===g)return document.createTextNode(v);e=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,v.is&&v),a=null,s=!1}if(null===g)p===v||s&&e.data===v||(e.data=v);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||l).dangerouslySetInnerHTML,d=v.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,v,p,i,s),d)t.__k=[];else if(y=t.props.children,D(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==g,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in v&&void 0!==(y=v.value)&&(y!==p.value||y!==e.value||"progress"===g&&!y)&&O(e,"value",y,p.value,!1),"checked"in v&&void 0!==(y=v.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=v(y,null,[e]),a||l,l,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),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,c=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),g(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(x)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=v,t.createRef=function(){return{current:null}},t.h=v,t.hydrate=function e(t,n){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}}),hm=function(){return v(function e(t,n){p(this,e),void 0===n&&(n={}),this.uppy=t,this.opts=n},[{key:"getPluginState",value:function(){return this.uppy.getState().plugins[this.id]||{}}},{key:"setPluginState",value:function(e){var t=this.uppy.getState().plugins;this.uppy.setState({plugins:d(d({},t),{},w({},this.id,d(d({},t[this.id]),e)))})}},{key:"setOptions",value:function(e){this.opts=d(d({},this.opts),e),this.setPluginState(),this.i18nInit()}},{key:"i18nInit",value:function(){var e=new ry([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}},{key:"addTarget",value:function(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}},{key:"install",value:function(){}},{key:"uninstall",value:function(){}},{key:"render",value:function(){throw new Error("Extend the render method to add your plugin to a DOM element")}},{key:"update",value:function(){}},{key:"afterUpdate",value:function(){}}])}();function vm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var gm=0;var ym=pm.render,mm=function(e){return"__private_"+gm+++"_"+e}("updateUI"),bm=function(e){function t(){var e;return p(this,t),e=o(this,t,arguments),Object.defineProperty(i(e),mm,{writable:!0,value:void 0}),e}return a(t,e),v(t,[{key:"mount",value:function(e,n){var r,o=this,i=n.id,a=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(a){this.isTargetDOMEl=!0;var u=document.createDocumentFragment();return vm(this,mm)[mm]=function(e){var 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(function(){return t=null,e.apply(void 0,C(n))})),t}}(function(e){o.uppy.getPlugin(o.id)&&(ym(o.render(e),u),o.afterUpdate())}),this.uppy.log("Installing ".concat(i," to a DOM element '").concat(e,"'")),this.opts.replaceTargetContent&&(a.innerHTML=""),ym(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,a.appendChild(u),this.onMount(),this.el}if("object"==D(e)&&e instanceof t)r=e;else if("function"==typeof e){var s=e;this.uppy.iteratePlugins(function(e){if(e instanceof s)return r=e,!1})}if(r)return this.uppy.log("Installing ".concat(i," to ").concat(r.id)),this.parent=r,this.el=r.addTarget(n),this.onMount(),this.el;this.uppy.log("Not installing ".concat(i));var c="Invalid target option given to ".concat(i,".");throw new Error(c+="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.")}},{key:"update",value:function(e){var t,n;null!=this.el&&(null==(t=(n=vm(this,mm))[mm])||t.call(n,e))}},{key:"unmount",value:function(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}},{key:"onMount",value:function(){}},{key:"onUnmount",value:function(){}}])}(hm),wm=dm,xm=dm,Em=bm,Dm=hm,Cm=wy.debugLogger;wm.Uppy=xm,wm.UIPlugin=Em,wm.BasePlugin=Dm,wm.debugLogger=Cm;var Sm,Am,Om,km,Bm,Fm=function(e){function t(e,n){var r;return p(this,t),void 0===n&&(n=null),(r=o(this,t,["This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."])).cause=e,r.isNetworkError=!0,r.request=n,r}return a(t,e),v(t)}(u(Error)),Tm=Fm,_m=function(){return fetch.apply(void 0,arguments).catch(function(e){throw"AbortError"===e.name?e:new Tm(e)})},Pm=function(e){function t(){var e;return p(this,t),(e=o(this,t,["Authorization required"])).name="AuthError",e.isAuthError=!0,e}return a(t,e),v(t)}(u(Error));function jm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Nm=0;function Im(e){return"__private_"+Nm+++"_"+e}function Lm(e){return Rm.apply(this,arguments)}function Rm(){return Rm=r(y().m(function e(t){var n,r,o;return y().w(function(e){for(;;)switch(e.p=e.n){case 0:if(401!==t.status){e.n=1;break}throw new Pm;case 1:if(n=t.json(),!(t.status<200||t.status>300)){e.n=5;break}return r="Failed request with status: ".concat(t.status,". ").concat(t.statusText),e.p=2,e.n=3,n;case 3:o=e.v,r=o.message?"".concat(r," message: ").concat(o.message):r,r=o.requestId?"".concat(r," request-Id: ").concat(o.requestId):r;case 4:throw e.p=4,new Error(r);case 5:return e.a(2,n)}},e,null,[[2,,4,5]])})),Rm.apply(this,arguments)}var Mm=(Am=Im("getPostResponseFunc"),Om=Im("getUrl"),km=Im("errorHandler"),Bm=Sm=function(){function e(t,n){var r=this;p(this,e),Object.defineProperty(this,km,{value:Hm}),Object.defineProperty(this,Om,{value:zm}),Object.defineProperty(this,Am,{writable:!0,value:function(e){return function(t){return e?t:r.onReceiveResponse(t)}}}),this.uppy=t,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}return v(e,[{key:"hostname",get:function(){var e=this.uppy.getState().companion,t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}},{key:"headers",value:function(){var t=this.opts.companionHeaders||{};return Promise.resolve(d(d({},e.defaultHeaders),t))}},{key:"onReceiveResponse",value:function(e){var t=this.uppy.getState().companion||{},n=this.opts.companionUrl,r=e.headers;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:d(d({},t),{},w({},n,r.get("i-am")))}),e}},{key:"preflight",value:function(e){var t=this;return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(jm(this,Om)[Om](e),{method:"OPTIONS"}).then(function(e){return e.headers.has("access-control-allow-headers")&&(t.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map(function(e){return e.trim().toLowerCase()})),t.preflightDone=!0,t.allowedHeaders.slice()}).catch(function(e){return t.uppy.log("[CompanionClient] unable to make preflight request ".concat(e),"warning"),t.preflightDone=!0,t.allowedHeaders.slice()})}},{key:"preflightAndHeaders",value:function(e){var t=this;return Promise.all([this.preflight(e),this.headers()]).then(function(e){var n=b(e,2),r=n[0],o=n[1];return Object.keys(o).forEach(function(e){r.includes(e.toLowerCase())||(t.uppy.log("[CompanionClient] excluding disallowed header ".concat(e)),delete o[e])}),o})}},{key:"get",value:function(e,t){var n=this;return this.preflightAndHeaders(e).then(function(t){return _m(jm(n,Om)[Om](e),{method:"get",headers:t,credentials:n.opts.companionCookiesRule||"same-origin"})}).then(jm(this,Am)[Am](t)).then(Lm).catch(jm(this,km)[km]("get",e))}},{key:"post",value:function(e,t,n){var r=this,o="post";return this.preflightAndHeaders(e).then(function(n){return _m(jm(r,Om)[Om](e),{method:o,headers:n,credentials:r.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)})}).then(jm(this,Am)[Am](n)).then(Lm).catch(jm(this,km)[km](o,e))}},{key:"delete",value:function(e,t,n){var r=this,o="delete";return this.preflightAndHeaders(e).then(function(n){return _m("".concat(r.hostname,"/").concat(e),{method:o,headers:n,credentials:r.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null})}).then(jm(this,Am)[Am](n)).then(Lm).catch(jm(this,km)[km](o,e))}}])}(),Sm.VERSION="2.0.4",Sm.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":"@uppy/companion-client=".concat(Sm.VERSION)},Bm);function zm(e){return/^(https?:|)\/\//.test(e)?e:"".concat(this.hostname,"/").concat(e)}function Hm(e,t){var n=this;return function(r){var o;if(null==(o=r)||!o.isAuthError){var i=new Error("Could not ".concat(e," ").concat(jm(n,Om)[Om](t)));i.cause=r,r=i}return Promise.reject(r)}}var Vm,$m,Um,Wm,Gm,qm={setItem:function(e,t){return new Promise(function(n){localStorage.setItem(e,t),n()})},getItem:function(e){return Promise.resolve(localStorage.getItem(e))},removeItem:function(e){return new Promise(function(t){localStorage.removeItem(e),t()})}};function Km(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ym=0;function Xm(e){return"__private_"+Ym+++"_"+e}var Zm,Jm,Qm=(Vm=Xm("queued"),$m=Xm("emitter"),Um=Xm("isOpen"),Wm=Xm("socket"),Gm=Xm("handleMessage"),function(e,t){return v(function e(t){var n=this;p(this,e),Object.defineProperty(this,Vm,{writable:!0,value:[]}),Object.defineProperty(this,$m,{writable:!0,value:iy()}),Object.defineProperty(this,Um,{writable:!0,value:!1}),Object.defineProperty(this,Wm,{writable:!0,value:void 0}),Object.defineProperty(this,Gm,{writable:!0,value:function(e){try{var t=JSON.parse(e.data);n.emit(t.action,t.payload)}catch(e){}}}),this.opts=t,t&&!1===t.autoOpen||this.open()},[{key:"isOpen",get:function(){return Km(this,Um)[Um]}},{key:e,value:function(){return Km(this,Wm)[Wm]}},{key:t,value:function(){return Km(this,Vm)[Vm]}},{key:"open",value:function(){var e=this;Km(this,Wm)[Wm]=new WebSocket(this.opts.target),Km(this,Wm)[Wm].onopen=function(){for(Km(e,Um)[Um]=!0;Km(e,Vm)[Vm].length>0&&Km(e,Um)[Um];){var t=Km(e,Vm)[Vm].shift();e.send(t.action,t.payload)}},Km(this,Wm)[Wm].onclose=function(){Km(e,Um)[Um]=!1},Km(this,Wm)[Wm].onmessage=Km(this,Gm)[Gm]}},{key:"close",value:function(){var e;null==(e=Km(this,Wm)[Wm])||e.close()}},{key:"send",value:function(e,t){Km(this,Um)[Um]?Km(this,Wm)[Wm].send(JSON.stringify({action:e,payload:t})):Km(this,Vm)[Vm].push({action:e,payload:t})}},{key:"on",value:function(e,t){Km(this,$m)[$m].on(e,t)}},{key:"emit",value:function(e,t){Km(this,$m)[$m].emit(e,t)}},{key:"once",value:function(e,t){Km(this,$m)[$m].once(e,t)}}])}(Symbol.for("uppy test: getSocket"),Symbol.for("uppy test: getQueued"))),eb={RequestClient:Mm,Provider:function(t){function n(e,t){var r;return p(this,n),(r=o(this,n,[e,t])).provider=t.provider,r.id=r.provider,r.name=r.opts.name||function(e){return e.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(" ")}(r.id),r.pluginId=r.opts.pluginId,r.tokenKey="companion-".concat(r.pluginId,"-auth-token"),r.companionKeysParams=r.opts.companionKeysParams,r.preAuthToken=null,r}return a(n,t),v(n,[{key:"headers",value:function(){var t=this;return Promise.all([e(n,"headers",this,3)([]),this.getAuthToken()]).then(function(e){var n=b(e,2),r=n[0],o=n[1],i={};return o&&(i["uppy-auth-token"]=o),t.companionKeysParams&&(i["uppy-credentials-params"]=btoa(JSON.stringify({params:t.companionKeysParams}))),d(d({},r),i)})}},{key:"onReceiveResponse",value:function(t){t=e(n,"onReceiveResponse",this,3)([t]);var r=this.uppy.getPlugin(this.pluginId),o=r.getPluginState().authenticated?401!==t.status:t.status<400;return r.setPluginState({authenticated:o}),t}},{key:"setAuthToken",value:function(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}},{key:"getAuthToken",value:function(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}},{key:"authUrl",value:function(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),"".concat(this.hostname,"/").concat(this.id,"/connect?").concat(new URLSearchParams(e))}},{key:"fileUrl",value:function(e){return"".concat(this.hostname,"/").concat(this.id,"/get/").concat(e)}},{key:"fetchPreAuthToken",value:function(){var e=this;return this.companionKeysParams?this.post("".concat(this.id,"/preauth/"),{params:this.companionKeysParams}).then(function(t){e.preAuthToken=t.token}).catch(function(t){e.uppy.log("[CompanionClient] unable to fetch preAuthToken ".concat(t),"warning")}):Promise.resolve()}},{key:"list",value:function(e){return this.get("".concat(this.id,"/list/").concat(e||""))}},{key:"logout",value:function(){var e=this;return this.get("".concat(this.id,"/logout")).then(function(t){return Promise.all([t,e.uppy.getPlugin(e.pluginId).storage.removeItem(e.tokenKey)])}).then(function(e){return b(e,1)[0]})}}],[{key:"initPlugin",value:function(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts=d(d({},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){var r=t.companionAllowedHosts;if(!("string"==typeof r||Array.isArray(r)||r instanceof RegExp))throw new TypeError("".concat(e.id,': the option "companionAllowedHosts" must be one of string, Array, RegExp'));e.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts="https://".concat(t.companionUrl.replace(/^\/\//,"")):e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||qm}}])}(Mm),Socket:Qm},tb=av(function(e,t,n){var r=t.progress,o=t.bytesUploaded,i=t.bytesTotal;r&&(e.uppy.log("Upload progress: ".concat(r)),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function nb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var rb=0;function ob(e){return"__private_"+rb+++"_"+e}var ib=(Zm=ob("emitter"),Jm=ob("events"),function(){return v(function e(t){p(this,e),Object.defineProperty(this,Zm,{writable:!0,value:void 0}),Object.defineProperty(this,Jm,{writable:!0,value:[]}),nb(this,Zm)[Zm]=t},[{key:"on",value:function(e,t){return nb(this,Jm)[Jm].push([e,t]),nb(this,Zm)[Zm].on(e,t)}},{key:"remove",value:function(){var e,t=E(nb(this,Jm)[Jm].splice(0));try{for(t.s();!(e=t.n()).done;){var n=b(e.value,2),r=n[0],o=n[1];nb(this,Zm)[Zm].off(r,o)}}catch(i){t.e(i)}finally{t.f()}}}])}());function ab(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ub=0;function sb(e){return"__private_"+ub+++"_"+e}var cb=sb("aliveTimer"),lb=sb("isDone"),fb=sb("onTimedOut"),db=sb("timeout"),pb=function(){return v(function e(t,n){p(this,e),Object.defineProperty(this,cb,{writable:!0,value:void 0}),Object.defineProperty(this,lb,{writable:!0,value:!1}),Object.defineProperty(this,fb,{writable:!0,value:void 0}),Object.defineProperty(this,db,{writable:!0,value:void 0}),ab(this,db)[db]=t,ab(this,fb)[fb]=n},[{key:"progress",value:function(){ab(this,lb)[lb]||ab(this,db)[db]>0&&(clearTimeout(ab(this,cb)[cb]),ab(this,cb)[cb]=setTimeout(ab(this,fb)[fb],ab(this,db)[db]))}},{key:"done",value:function(){ab(this,lb)[lb]||(clearTimeout(ab(this,cb)[cb]),ab(this,cb)[cb]=null,ab(this,lb)[lb]=!0)}}])}();function hb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var vb=0;function gb(e){return"__private_"+vb+++"_"+e}var yb=gb("activeRequests"),mb=gb("queuedHandlers"),bb=gb("call"),wb=gb("queueNext"),xb=gb("next"),Eb=gb("queue"),Db=gb("dequeue");function Cb(e){var t=this;hb(this,yb)[yb]+=1;var n,r=!1;try{n=e()}catch(e){throw hb(this,yb)[yb]-=1,e}return{abort:function(){r||(r=!0,hb(t,yb)[yb]-=1,n(),hb(t,wb)[wb]())},done:function(){r||(r=!0,hb(t,yb)[yb]-=1,hb(t,wb)[wb]())}}}function Sb(){var e=this;queueMicrotask(function(){return hb(e,xb)[xb]()})}function Ab(){if(!(hb(this,yb)[yb]>=this.limit)&&0!==hb(this,mb)[mb].length){var e=hb(this,mb)[mb].shift(),t=hb(this,bb)[bb](e.fn);e.abort=t.abort,e.done=t.done}}function Ob(e,t){var n=this;void 0===t&&(t={});var r={fn:e,priority:t.priority||0,abort:function(){hb(n,Db)[Db](r)},done:function(){throw new Error("Cannot mark a queued request as done: this indicates a bug")}},o=hb(this,mb)[mb].findIndex(function(e){return r.priority>e.priority});return-1===o?hb(this,mb)[mb].push(r):hb(this,mb)[mb].splice(o,0,r),r}function kb(e){var t=hb(this,mb)[mb].indexOf(e);-1!==t&&hb(this,mb)[mb].splice(t,1)}var Bb,Fb,Tb={RateLimitedQueue:function(){return v(function e(t){p(this,e),Object.defineProperty(this,Db,{value:kb}),Object.defineProperty(this,Eb,{value:Ob}),Object.defineProperty(this,xb,{value:Ab}),Object.defineProperty(this,wb,{value:Sb}),Object.defineProperty(this,bb,{value:Cb}),Object.defineProperty(this,yb,{writable:!0,value:0}),Object.defineProperty(this,mb,{writable:!0,value:[]}),this.limit="number"!=typeof t||0===t?1/0:t},[{key:"run",value:function(e,t){return hb(this,yb)[yb]<this.limit?hb(this,bb)[bb](e):hb(this,Eb)[Eb](e,t)}},{key:"wrapPromiseFunction",value:function(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];var a,u=new Promise(function(r,i){a=n.run(function(){var t,n;try{n=Promise.resolve(e.apply(void 0,o))}catch(e){n=Promise.reject(e)}return n.then(function(e){t?i(t):(a.done(),r(e))},function(e){t?i(t):(a.done(),i(e))}),function(){t=new Error("Cancelled")}},t)});return u.abort=function(){a.abort()},u}}}])}(),internalRateLimitedQueue:Symbol("__queue")},_b=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Pb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}},jb=Ey.nanoid,Nb=eb.Provider,Ib=eb.RequestClient,Lb=eb.Socket,Rb=Tb.RateLimitedQueue,Mb=Tb.internalRateLimitedQueue;function zb(e,t){var 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})),_b(e)?n=new Tm(n,e):(n.request=e,n)}function Hb(e){return e.data.slice(0,e.data.size,e.meta.type)}var Vb=(Fb=Bb=function(e){function t(e,n){var r;p(this,t),(r=o(this,t,[e,n])).type="uploader",r.id=r.opts.id||"XHRUpload",r.title="XHRUpload",r.defaultLocale=Pb;var i={formData:!0,fieldName:n.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData:function(t){var n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError:function(e,t){var n=new Error("Upload error");return _b(t)&&(n=new Tm(n,t)),n},validateStatus:function(e){return e>=200&&e<300}};if(r.opts=d(d({},i),n),r.i18nInit(),r.handleUpload=r.handleUpload.bind(r),Mb in r.opts?r.requests=r.opts[Mb]:r.requests=new Rb(r.opts.limit),r.opts.bundle&&!r.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");return r.uploaderEvents=Object.create(null),r}return a(t,e),v(t,[{key:"getOptions",value:function(e){var t=this.uppy.getState().xhrUpload,n=this.opts.headers,r=d(d(d(d({},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}},{key:"addMetadata",value:function(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach(function(n){e.append(n,t[n])})}},{key:"createFormDataUpload",value:function(e,t){var n=new FormData;this.addMetadata(n,e.meta,t);var r=Hb(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}},{key:"createBundledUpload",value:function(e,t){var n=this,r=new FormData,o=this.uppy.getState().meta;return this.addMetadata(r,o,t),e.forEach(function(e){var t=n.getOptions(e),o=Hb(e);e.name?r.append(t.fieldName,o,e.name):r.append(t.fieldName,o)}),r}},{key:"upload",value:function(e,t,n){var r=this,o=this.getOptions(e);return this.uppy.log("uploading ".concat(t," of ").concat(n)),new Promise(function(t,n){r.uppy.emit("upload-started",e);var i=o.formData?r.createFormDataUpload(e,o):e.data,a=new XMLHttpRequest;r.uploaderEvents[e.id]=new ib(r.uppy);var u=new pb(o.timeout,function(){a.abort(),c.done();var t=new Error(r.i18n("timedOut",{seconds:Math.ceil(o.timeout/1e3)}));r.uppy.emit("upload-error",e,t),n(t)}),s=jb();a.upload.addEventListener("loadstart",function(){r.uppy.log("[XHRUpload] ".concat(s," started"))}),a.upload.addEventListener("progress",function(t){r.uppy.log("[XHRUpload] ".concat(s," progress: ").concat(t.loaded," / ").concat(t.total)),u.progress(),t.lengthComputable&&r.uppy.emit("upload-progress",e,{uploader:r,bytesUploaded:t.loaded,bytesTotal:t.total})}),a.addEventListener("load",function(i){if(r.uppy.log("[XHRUpload] ".concat(s," finished")),u.done(),c.done(),r.uploaderEvents[e.id]&&(r.uploaderEvents[e.id].remove(),r.uploaderEvents[e.id]=null),o.validateStatus(i.target.status,a.responseText,a)){var l=o.getResponseData(a.responseText,a),f=l[o.responseUrlFieldName],d={status:i.target.status,body:l,uploadURL:f};return r.uppy.emit("upload-success",e,d),f&&r.uppy.log("Download ".concat(e.name," from ").concat(f)),t(e)}var p=o.getResponseData(a.responseText,a),h=zb(a,o.getResponseError(a.responseText,a)),v={status:i.target.status,body:p};return r.uppy.emit("upload-error",e,h,v),n(h)}),a.addEventListener("error",function(){r.uppy.log("[XHRUpload] ".concat(s," errored")),u.done(),c.done(),r.uploaderEvents[e.id]&&(r.uploaderEvents[e.id].remove(),r.uploaderEvents[e.id]=null);var t=zb(a,o.getResponseError(a.responseText,a));return r.uppy.emit("upload-error",e,t),n(t)}),a.open(o.method.toUpperCase(),o.endpoint,!0),a.withCredentials=o.withCredentials,""!==o.responseType&&(a.responseType=o.responseType);var c=r.requests.run(function(){r.uppy.emit("upload-started",e);var t=r.getOptions(e);return Object.keys(t.headers).forEach(function(e){a.setRequestHeader(e,t.headers[e])}),a.send(i),function(){u.done(),a.abort()}});r.onFileRemove(e.id,function(){c.abort(),n(new Error("File removed"))}),r.onCancelAll(e.id,function(){c.abort(),n(new Error("Upload cancelled"))})})}},{key:"uploadRemote",value:function(e){var t=this,n=this.getOptions(e);return new Promise(function(r,o){t.uppy.emit("upload-started",e);var i={};(Array.isArray(n.metaFields)?n.metaFields:Object.keys(e.meta)).forEach(function(t){i[t]=e.meta[t]}),new(e.remote.providerOptions.provider?Nb:Ib)(t.uppy,e.remote.providerOptions).post(e.remote.url,d(d({},e.remote.body),{},{endpoint:n.endpoint,size:e.data.size,fieldname:n.fieldName,metadata:i,httpMethod:n.method,useFormData:n.formData,headers:n.headers})).then(function(i){var a=i.token,u=function(e){var t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return"".concat(/^http:\/\//i.test(e)?"ws":"wss","://").concat(t)}(e.remote.companionUrl),s=new Lb({target:"".concat(u,"/api/").concat(a),autoOpen:!1});t.uploaderEvents[e.id]=new ib(t.uppy),t.onFileRemove(e.id,function(){s.send("cancel",{}),c.abort(),r("upload ".concat(e.id," was removed"))}),t.onCancelAll(e.id,function(){s.send("cancel",{}),c.abort(),r("upload ".concat(e.id," was canceled"))}),t.onRetry(e.id,function(){s.send("pause",{}),s.send("resume",{})}),t.onRetryAll(e.id,function(){s.send("pause",{}),s.send("resume",{})}),s.on("progress",function(n){return tb(t,n,e)}),s.on("success",function(o){var i=n.getResponseData(o.response.responseText,o.response),a=i[n.responseUrlFieldName],u={status:o.response.status,body:i,uploadURL:a};return t.uppy.emit("upload-success",e,u),c.done(),t.uploaderEvents[e.id]&&(t.uploaderEvents[e.id].remove(),t.uploaderEvents[e.id]=null),r()}),s.on("error",function(r){var i=r.response,a=i?n.getResponseError(i.responseText,i):Object.assign(new Error(r.error.message),{cause:r.error});t.uppy.emit("upload-error",e,a),c.done(),t.uploaderEvents[e.id]&&(t.uploaderEvents[e.id].remove(),t.uploaderEvents[e.id]=null),o(a)});var c=t.requests.run(function(){return s.open(),e.isPaused&&s.send("pause",{}),function(){return s.close()}})}).catch(function(n){t.uppy.emit("upload-error",e,n),o(n)})})}},{key:"uploadBundle",value:function(e){var t=this;return new Promise(function(n,r){var o=t.opts.endpoint,i=t.opts.method,a=t.uppy.getState().xhrUpload,u=t.createBundledUpload(e,d(d({},t.opts),a||{})),s=new XMLHttpRequest,c=new pb(t.opts.timeout,function(){s.abort();var e=new Error(t.i18n("timedOut",{seconds:Math.ceil(t.opts.timeout/1e3)}));l(e),r(e)}),l=function(n){e.forEach(function(e){t.uppy.emit("upload-error",e,n)})};s.upload.addEventListener("loadstart",function(){t.uppy.log("[XHRUpload] started uploading bundle"),c.progress()}),s.upload.addEventListener("progress",function(n){c.progress(),n.lengthComputable&&e.forEach(function(e){t.uppy.emit("upload-progress",e,{uploader:t,bytesUploaded:n.loaded/n.total*e.size,bytesTotal:e.size})})}),s.addEventListener("load",function(o){if(c.done(),t.opts.validateStatus(o.target.status,s.responseText,s)){var i=t.opts.getResponseData(s.responseText,s),a={status:o.target.status,body:i};return e.forEach(function(e){t.uppy.emit("upload-success",e,a)}),n()}var u=t.opts.getResponseError(s.responseText,s)||new Error("Upload error");return u.request=s,l(u),r(u)}),s.addEventListener("error",function(){c.done();var e=t.opts.getResponseError(s.responseText,s)||new Error("Upload error");return l(e),r(e)}),t.uppy.on("cancel-all",function(){c.done(),s.abort()}),s.open(i.toUpperCase(),o,!0),s.withCredentials=t.opts.withCredentials,""!==t.opts.responseType&&(s.responseType=t.opts.responseType),Object.keys(t.opts.headers).forEach(function(e){s.setRequestHeader(e,t.opts.headers[e])}),s.send(u),e.forEach(function(e){t.uppy.emit("upload-started",e)})})}},{key:"uploadFiles",value:function(e){var t=this,n=e.map(function(n,r){var o=parseInt(r,10)+1,i=e.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?t.uploadRemote(n,o,i):t.upload(n,o,i)});return function(e){var t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map(function(e){return e.then(r,o)})).then(function(){return{successful:t,failed:n}})}(n)}},{key:"onFileRemove",value:function(e,t){this.uploaderEvents[e].on("file-removed",function(n){e===n.id&&t(n.id)})}},{key:"onRetry",value:function(e,t){this.uploaderEvents[e].on("upload-retry",function(n){e===n&&t()})}},{key:"onRetryAll",value:function(e,t){var n=this;this.uploaderEvents[e].on("retry-all",function(){n.uppy.getFile(e)&&t()})}},{key:"onCancelAll",value:function(e,t){var n=this;this.uploaderEvents[e].on("cancel-all",function(){n.uppy.getFile(e)&&t()})}},{key:"handleUpload",value:function(e){var t=this;if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[Mb]||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...");var n=e.map(function(e){return t.uppy.getFile(e)});if(this.opts.bundle){if(n.some(function(e){return 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(n)}return this.uploadFiles(n).then(function(){return null})}},{key:"install",value:function(){if(this.opts.bundle){var e=this.uppy.getState().capabilities;this.uppy.setState({capabilities:d(d({},e),{},{individualCancellation:!1})})}this.uppy.addUploader(this.handleUpload)}},{key:"uninstall",value:function(){if(this.opts.bundle){var e=this.uppy.getState().capabilities;this.uppy.setState({capabilities:d(d({},e),{},{individualCancellation:!0})})}this.uppy.removeUploader(this.handleUpload)}}])}(hm),Bb.VERSION="2.0.6",Fb),$b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ub(e){var t={exports:{}};return e(t,t.exports),t.exports}var Wb,Gb,qb=function(e){return e&&e.Math==Math&&e},Kb=qb("object"==("undefined"==typeof globalThis?"undefined":D(globalThis))&&globalThis)||qb("object"==("undefined"==typeof window?"undefined":D(window))&&window)||qb("object"==("undefined"==typeof self?"undefined":D(self))&&self)||qb("object"==D($b)&&$b)||function(){return this}()||Function("return this")(),Yb=Object.defineProperty,Xb=function(e,t){try{Yb(Kb,e,{value:t,configurable:!0,writable:!0})}catch(H){Kb[e]=t}return t},Zb=Kb["__core-js_shared__"]||Xb("__core-js_shared__",{}),Jb=Ub(function(e){(e.exports=function(e,t){return Zb[e]||(Zb[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Qb=Function.prototype,ew=Qb.bind,tw=Qb.call,nw=ew&&ew.bind(tw),rw=ew?function(e){return e&&nw(tw,e)}:function(e){return e&&function(){return tw.apply(e,arguments)}},ow=Kb.TypeError,iw=function(e){if(null==e)throw ow("Can't call method on "+e);return e},aw=Kb.Object,uw=function(e){return aw(iw(e))},sw=rw({}.hasOwnProperty),cw=Object.hasOwn||function(e,t){return sw(uw(e),t)},lw=0,fw=Math.random(),dw=rw(1..toString),pw=function(e){return"Symbol("+(void 0===e?"":e)+")_"+dw(++lw+fw,36)},hw=function(e){return"function"==typeof e},vw=function(e,t){return arguments.length<2?function(e){return hw(e)?e:void 0}(Kb[e]):Kb[e]&&Kb[e][t]},gw=vw("navigator","userAgent")||"",yw=Kb.process,mw=Kb.Deno,bw=yw&&yw.versions||mw&&mw.version,ww=bw&&bw.v8;ww&&(Gb=(Wb=ww.split("."))[0]>0&&Wb[0]<4?1:+(Wb[0]+Wb[1])),!Gb&&gw&&(!(Wb=gw.match(/Edge\/(\d+)/))||Wb[1]>=74)&&(Wb=gw.match(/Chrome\/(\d+)/))&&(Gb=+Wb[1]);var xw=Gb,Ew=function(e){try{return!!e()}catch(e){return!0}},Dw=!!Object.getOwnPropertySymbols&&!Ew(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&xw&&xw<41}),Cw=Dw&&!Symbol.sham&&"symbol"==D(Symbol.iterator),Sw=Jb("wks"),Aw=Kb.Symbol,Ow=Aw&&Aw.for,kw=Cw?Aw:Aw&&Aw.withoutSetter||pw,Bw=function(e){if(!cw(Sw,e)||!Dw&&"string"!=typeof Sw[e]){var t="Symbol."+e;Dw&&cw(Aw,e)?Sw[e]=Aw[e]:Sw[e]=Cw&&Ow?Ow(t):kw(t)}return Sw[e]},Fw={};Fw[Bw("toStringTag")]="z";var Tw="[object z]"===String(Fw),_w=!Ew(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Pw=function(e){return"object"==D(e)?null!==e:hw(e)},jw=Kb.document,Nw=Pw(jw)&&Pw(jw.createElement),Iw=function(e){return Nw?jw.createElement(e):{}},Lw=!_w&&!Ew(function(){return 7!=Object.defineProperty(Iw("div"),"a",{get:function(){return 7}}).a}),Rw=Kb.String,Mw=Kb.TypeError,zw=function(e){if(Pw(e))return e;throw Mw(Rw(e)+" is not an object")},Hw=Function.prototype.call,Vw=Hw.bind?Hw.bind(Hw):function(){return Hw.apply(Hw,arguments)},$w=rw({}.isPrototypeOf),Uw=Kb.Object,Ww=Cw?function(e){return"symbol"==D(e)}:function(e){var t=vw("Symbol");return hw(t)&&$w(t.prototype,Uw(e))},Gw=Kb.String,qw=function(e){try{return Gw(e)}catch(e){return"Object"}},Kw=Kb.TypeError,Yw=function(e){if(hw(e))return e;throw Kw(qw(e)+" is not a function")},Xw=function(e,t){var n=e[t];return null==n?void 0:Yw(n)},Zw=Kb.TypeError,Jw=Kb.TypeError,Qw=Bw("toPrimitive"),ex=function(e){var t=function(e){if(!Pw(e)||Ww(e))return e;var t,n=Xw(e,Qw);if(n){if(t=Vw(n,e,"string"),!Pw(t)||Ww(t))return t;throw Jw("Can't convert object to primitive value")}return function(e){var t,n;if(hw(t=e.toString)&&!Pw(n=Vw(t,e)))return n;if(hw(t=e.valueOf)&&!Pw(n=Vw(t,e)))return n;throw Zw("Can't convert object to primitive value")}(e)}(e);return Ww(t)?t:t+""},tx=Kb.TypeError,nx=Object.defineProperty,rx={f:_w?nx:function(e,t,n){if(zw(e),t=ex(t),zw(n),Lw)try{return nx(e,t,n)}catch(e){}if("get"in n||"set"in n)throw tx("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ox=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ix=_w?function(e,t,n){return rx.f(e,t,ox(1,n))}:function(e,t,n){return e[t]=n,e},ax=rw(Function.toString);hw(Zb.inspectSource)||(Zb.inspectSource=function(e){return ax(e)});var ux,sx,cx,lx=Zb.inspectSource,fx=Kb.WeakMap,dx=hw(fx)&&/native code/.test(lx(fx)),px=Jb("keys"),hx=function(e){return px[e]||(px[e]=pw(e))},vx={},gx=Kb.TypeError,yx=Kb.WeakMap;if(dx||Zb.state){var mx=Zb.state||(Zb.state=new yx),bx=rw(mx.get),wx=rw(mx.has),xx=rw(mx.set);ux=function(e,t){if(wx(mx,e))throw new gx("Object already initialized");return t.facade=e,xx(mx,e,t),t},sx=function(e){return bx(mx,e)||{}},cx=function(e){return wx(mx,e)}}else{var Ex=hx("state");vx[Ex]=!0,ux=function(e,t){if(cw(e,Ex))throw new gx("Object already initialized");return t.facade=e,ix(e,Ex,t),t},sx=function(e){return cw(e,Ex)?e[Ex]:{}},cx=function(e){return cw(e,Ex)}}var Dx={set:ux,get:sx,has:cx,enforce:function(e){return cx(e)?sx(e):ux(e,{})},getterFor:function(e){return function(t){var n;if(!Pw(t)||(n=sx(t)).type!==e)throw gx("Incompatible receiver, "+e+" required");return n}}},Cx=Function.prototype,Sx=_w&&Object.getOwnPropertyDescriptor,Ax=cw(Cx,"name"),Ox={EXISTS:Ax,PROPER:Ax&&"something"===function(){}.name,CONFIGURABLE:Ax&&(!_w||_w&&Sx(Cx,"name").configurable)},kx=Ub(function(e){var t=Ox.CONFIGURABLE,n=Dx.get,r=Dx.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;hw(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!cw(i,"name")||t&&i.name!==f)&&ix(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Kb?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:ix(e,n,i)):c?e[n]=i:Xb(n,i)})(Function.prototype,"toString",function(){return hw(this)&&n(this).source||lx(this)})}),Bx=rw({}.toString),Fx=rw("".slice),Tx=function(e){return Fx(Bx(e),8,-1)},_x=Bw("toStringTag"),Px=Kb.Object,jx="Arguments"==Tx(function(){return arguments}()),Nx=Tw?Tx: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=Px(e),_x))?n:jx?Tx(t):"Object"==(r=Tx(t))&&hw(t.callee)?"Arguments":r},Ix=Tw?{}.toString:function(){return"[object "+Nx(this)+"]"};Tw||kx(Object.prototype,"toString",Ix,{unsafe:!0});var Lx={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},Rx=Iw("span").classList,Mx=Rx&&Rx.constructor&&Rx.constructor.prototype,zx=Mx===Object.prototype?void 0:Mx,Hx=rw(rw.bind),Vx=function(e,t){return Yw(e),void 0===t?e:Hx?Hx(e,t):function(){return e.apply(t,arguments)}},$x=Kb.Object,Ux=rw("".split),Wx=Ew(function(){return!$x("z").propertyIsEnumerable(0)})?function(e){return"String"==Tx(e)?Ux(e,""):$x(e)}:$x,Gx=Math.ceil,qx=Math.floor,Kx=function(e){var t=+e;return t!=t||0===t?0:(t>0?qx:Gx)(t)},Yx=Math.min,Xx=function(e){return e>0?Yx(Kx(e),9007199254740991):0},Zx=function(e){return Xx(e.length)},Jx=Array.isArray||function(e){return"Array"==Tx(e)},Qx=function(){},eE=[],tE=vw("Reflect","construct"),nE=/^\s*(?:class|function)\b/,rE=rw(nE.exec),oE=!nE.exec(Qx),iE=function(e){if(!hw(e))return!1;try{return tE(Qx,eE,e),!0}catch(e){return!1}},aE=!tE||Ew(function(){var e;return iE(iE.call)||!iE(Object)||!iE(function(){e=!0})||e})?function(e){if(!hw(e))return!1;switch(Nx(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return oE||!!rE(nE,lx(e))}:iE,uE=Bw("species"),sE=Kb.Array,cE=function(e,t){return new(function(e){var t;return Jx(e)&&(t=e.constructor,(aE(t)&&(t===sE||Jx(t.prototype))||Pw(t)&&null===(t=t[uE]))&&(t=void 0)),void 0===t?sE:t}(e))(0===t?0:t)},lE=rw([].push),fE=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=uw(s),v=Wx(h),g=Vx(c,l),y=Zx(v),m=0,b=f||cE,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:lE(w,d)}else switch(e){case 4:return!1;case 7:lE(w,d)}return i?-1:r||o?o:w}},dE={forEach:fE(0),map:fE(1),filter:fE(2),find:fE(5),findIndex:fE(6)},pE=function(e,t){var n=[][e];return!!n&&Ew(function(){n.call(null,t||function(){throw 1},1)})},hE=dE.forEach,vE=pE("forEach")?[].forEach:function(e){return hE(this,e,arguments.length>1?arguments[1]:void 0)},gE=function(e){if(e&&e.forEach!==vE)try{ix(e,"forEach",vE)}catch(t){e.forEach=vE}};for(var yE in Lx)Lx[yE]&&gE(Kb[yE]&&Kb[yE].prototype);gE(zx);var mE={}.propertyIsEnumerable,bE=Object.getOwnPropertyDescriptor,wE=bE&&!mE.call({1:2},1)?function(e){var t=bE(this,e);return!!t&&t.enumerable}:mE,xE={f:wE},EE=function(e){return Wx(iw(e))},DE=Object.getOwnPropertyDescriptor,CE={f:_w?DE:function(e,t){if(e=EE(e),t=ex(t),Lw)try{return DE(e,t)}catch(e){}if(cw(e,t))return ox(!Vw(xE.f,e,t),e[t])}},SE=Math.max,AE=Math.min,OE=function(e,t){var n=Kx(e);return n<0?SE(n+t,0):AE(n,t)},kE=function(e){return function(t,n,r){var o,i=EE(t),a=Zx(i),u=OE(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},BE={includes:kE(!0),indexOf:kE(!1)},FE=BE.indexOf,TE=rw([].push),_E=function(e,t){var n,r=EE(e),o=0,i=[];for(n in r)!cw(vx,n)&&cw(r,n)&&TE(i,n);for(;t.length>o;)cw(r,n=t[o++])&&(~FE(i,n)||TE(i,n));return i},PE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jE=PE.concat("length","prototype"),NE={f:Object.getOwnPropertyNames||function(e){return _E(e,jE)}},IE={f:Object.getOwnPropertySymbols},LE=rw([].concat),RE=vw("Reflect","ownKeys")||function(e){var t=NE.f(zw(e)),n=IE.f;return n?LE(t,n(e)):t},ME=function(e,t){for(var n=RE(t),r=rx.f,o=CE.f,i=0;i<n.length;i++){var a=n[i];cw(e,a)||r(e,a,o(t,a))}},zE=/#|\.prototype\./,HE=function(e,t){var n=$E[VE(e)];return n==WE||n!=UE&&(hw(t)?Ew(t):!!t)},VE=HE.normalize=function(e){return String(e).replace(zE,".").toLowerCase()},$E=HE.data={},UE=HE.NATIVE="N",WE=HE.POLYFILL="P",GE=HE,qE=CE.f,KE=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?Kb:c?Kb[u]||Xb(u,{}):(Kb[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=qE(n,r))&&a.value:n[r],!GE(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(D(i)==D(o))continue;ME(i,o)}(e.sham||o&&o.sham)&&ix(i,"sham",!0),kx(n,r,i,e)}},YE=Object.keys||function(e){return _E(e,PE)},XE=Ew(function(){YE(1)});
- /*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function ZE(e){return"[object Object]"===Object.prototype.toString.call(e)}KE({target:"Object",stat:!0,forced:XE},{keys:function(e){return YE(uw(e))}});var JE=function(e){return!1!==ZE(t=e)&&(void 0===(n=t.constructor)||!1!==ZE(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||td.isOperationList(e.redos[0]))&&(0===e.undos.length||td.isOperationList(e.undos[0]));var t,n,r},QE=new WeakMap,eD=new WeakMap,tD={isHistoryEditor:function(e){return JE(e.history)&&qf.isEditor(e)},isMerging:function(e){return eD.get(e)},isSaving:function(e){return QE.get(e)},redo:function(e){e.redo()},undo:function(e){e.undo()},withoutMerging:function(e,t){var n=tD.isMerging(e);eD.set(e,!1),t(),eD.set(e,n)},withoutSaving:function(e,t){var n=tD.isSaving(e);QE.set(e,!1),t(),QE.set(e,n)}},nD=Kb.String,rD=function(e){if("Symbol"===Nx(e))throw TypeError("Cannot convert a Symbol value to a string");return nD(e)},oD=function(){var e=zw(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},iD=Ox.PROPER,aD=RegExp.prototype,uD=aD.toString,sD=rw(oD),cD=Ew(function(){return"/a/b"!=uD.call({source:"a",flags:"b"})}),lD=iD&&"toString"!=uD.name;(cD||lD)&&kx(RegExp.prototype,"toString",function(){var e=zw(this),t=rD(e.source),n=e.flags;return"/"+t+"/"+rD(void 0===n&&$w(aD,e)&&!("flags"in aD)?sD(e):n)},{unsafe:!0});var fD,dD=_w?Object.defineProperties:function(e,t){zw(e);for(var n,r=EE(t),o=YE(t),i=o.length,a=0;i>a;)rx.f(e,n=o[a++],r[n]);return e},pD=vw("document","documentElement"),hD=hx("IE_PROTO"),vD=function(){},gD=function(e){return"<script>"+e+"<\/script>"},yD=function(e){e.write(gD("")),e.close();var t=e.parentWindow.Object;return e=null,t},mD=function(){try{fD=new ActiveXObject("htmlfile")}catch(e){}var e,t;mD="undefined"!=typeof document?document.domain&&fD?yD(fD):((t=Iw("iframe")).style.display="none",pD.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(gD("document.F=Object")),e.close(),e.F):yD(fD);for(var n=PE.length;n--;)delete mD.prototype[PE[n]];return mD()};vx[hD]=!0;var bD=Object.create||function(e,t){var n;return null!==e?(vD.prototype=zw(e),n=new vD,vD.prototype=null,n[hD]=e):n=mD(),void 0===t?n:dD(n,t)},wD=Bw("unscopables"),xD=Array.prototype;null==xD[wD]&&rx.f(xD,wD,{configurable:!0,value:bD(null)});var ED=function(e){xD[wD][e]=!0},DD=BE.includes;KE({target:"Array",proto:!0},{includes:function(e){return DD(this,e,arguments.length>1?arguments[1]:void 0)}}),ED("includes");var CD=Bw("match"),SD=function(e){var t;return Pw(e)&&(void 0!==(t=e[CD])?!!t:"RegExp"==Tx(e))},AD=Kb.TypeError,OD=function(e){if(SD(e))throw AD("The method doesn't accept regular expressions");return e},kD=Bw("match"),BD=function(e){var t=/./;try{"/./"[e](t)}catch(H){try{return t[kD]=!1,"/./"[e](t)}catch(e){}}return!1},FD=rw("".indexOf);KE({target:"String",proto:!0,forced:!BD("includes")},{includes:function(e){return!!~FD(rD(iw(this)),rD(OD(e)),arguments.length>1?arguments[1]:void 0)}});var TD=/"/g,_D=rw("".replace);KE({target:"String",proto:!0,forced:Ew(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=rD(iw(this)),r="<a",(r+=' name="'+_D(rD(t),TD,""")+'"')+">"+n+"</a>";var t,n,r}});var PD=function(e,t,n){var r,o;zw(e);try{if(!(r=Xw(e,"return"))){if("throw"===t)throw n;return n}r=Vw(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return zw(r),n},jD=function(e,t,n,r){try{return r?t(zw(n)[0],n[1]):t(n)}catch(t){PD(e,"throw",t)}},ND={},ID=Bw("iterator"),LD=Array.prototype,RD=function(e){return void 0!==e&&(ND.Array===e||LD[ID]===e)},MD=function(e,t,n){var r=ex(t);r in e?rx.f(e,r,ox(0,n)):e[r]=n},zD=Bw("iterator"),HD=function(e){if(null!=e)return Xw(e,zD)||Xw(e,"@@iterator")||ND[Nx(e)]},VD=Kb.TypeError,$D=function(e,t){var n=arguments.length<2?HD(e):t;if(Yw(n))return zw(Vw(n,e));throw VD(qw(e)+" is not iterable")},UD=Kb.Array,WD=Bw("iterator"),GD=!1;try{var qD=0,KD={next:function(){return{done:!!qD++}},return:function(){GD=!0}};KD[WD]=function(){return this},Array.from(KD,function(){throw 2})}catch(yO){}var YD=function(e,t){if(!GD)return!1;var n=!1;try{var r={};r[WD]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},XD=!YD(function(e){Array.from(e)});KE({target:"Array",stat:!0,forced:XD},{from:function(e){var t=uw(e),n=aE(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Vx(o,r>2?arguments[2]:void 0));var a,u,s,c,l,f,d=HD(t),p=0;if(!d||this==UD&&RD(d))for(a=Zx(t),u=n?new this(a):UD(a);a>p;p++)f=i?o(t[p],p):t[p],MD(u,p,f);else for(l=(c=$D(t,d)).next,u=n?new this:[];!(s=Vw(l,c)).done;p++)f=i?jD(c,o,[s.value,p],!0):s.value,MD(u,p,f);return u.length=p,u}});var ZD,JD,QD,eC=rw("".charAt),tC=rw("".charCodeAt),nC=rw("".slice),rC={charAt:function(e){return function(t,n){var r,o,i=rD(iw(t)),a=Kx(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=tC(i,a))<55296||r>56319||a+1===u||(o=tC(i,a+1))<56320||o>57343?e?eC(i,a):r:e?nC(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},oC=!Ew(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),iC=hx("IE_PROTO"),aC=Kb.Object,uC=aC.prototype,sC=oC?aC.getPrototypeOf:function(e){var t=uw(e);if(cw(t,iC))return t[iC];var n=t.constructor;return hw(n)&&t instanceof n?n.prototype:t instanceof aC?uC:null},cC=Bw("iterator"),lC=!1;[].keys&&("next"in(QD=[].keys())?(JD=sC(sC(QD)))!==Object.prototype&&(ZD=JD):lC=!0);var fC=null==ZD||Ew(function(){var e={};return ZD[cC].call(e)!==e});fC&&(ZD={}),hw(ZD[cC])||kx(ZD,cC,function(){return this});var dC={IteratorPrototype:ZD,BUGGY_SAFARI_ITERATORS:lC},pC=rx.f,hC=Bw("toStringTag"),vC=function(e,t,n){e&&!cw(e=n?e:e.prototype,hC)&&pC(e,hC,{configurable:!0,value:t})},gC=dC.IteratorPrototype,yC=function(){return this},mC=Kb.String,bC=Kb.TypeError,wC=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=rw(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return zw(n),function(e){if("object"==D(e)||hw(e))return e;throw bC("Can't set "+mC(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),xC=Ox.PROPER,EC=Ox.CONFIGURABLE,DC=dC.IteratorPrototype,CC=dC.BUGGY_SAFARI_ITERATORS,SC=Bw("iterator"),AC=function(){return this},OC=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=bD(gC,{next:ox(1,n)}),vC(e,r,!1),ND[r]=yC}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!CC&&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[SC]||p["@@iterator"]||o&&p[o],v=!CC&&h||l(o),g="Array"==t&&p.entries||h;if(g&&(u=sC(g.call(new e)))!==Object.prototype&&u.next&&(sC(u)!==DC&&(wC?wC(u,DC):hw(u[SC])||kx(u,SC,AC)),vC(u,f,!0)),xC&&"values"==o&&h&&"values"!==h.name&&(EC?ix(p,"name","values"):(d=!0,v=function(){return Vw(h,this)})),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(CC||d||!(c in p))&&kx(p,c,s[c]);else KE({target:t,proto:!0,forced:CC||d},s);return p[SC]!==v&&kx(p,SC,v,{name:o}),ND[t]=v,s},kC=rC.charAt,BC=Dx.set,FC=Dx.getterFor("String Iterator");OC(String,"String",function(e){BC(this,{type:"String Iterator",string:rD(e),index:0})},function(){var e,t=FC(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=kC(n,r),t.index+=e.length,{value:e,done:!1})});var TC,_C=CE.f,PC=rw("".endsWith),jC=rw("".slice),NC=Math.min,IC=BD("endsWith"),LC=!(IC||(TC=_C(String.prototype,"endsWith"),!TC||TC.writable));KE({target:"String",proto:!0,forced:!LC&&!IC},{endsWith:function(e){var t=rD(iw(this));OD(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:NC(Xx(n),r),i=rD(e);return PC?PC(t,i,o):jC(t,o-i.length,o)===i}});var RC=rw([].join),MC=Wx!=Object,zC=pE("join",",");KE({target:"Array",proto:!0,forced:MC||!zC},{join:function(e){return RC(EE(this),void 0===e?",":e)}});var HC=Bw("species"),VC=function(e){return xw>=51||!Ew(function(){var t=[];return(t.constructor={})[HC]=function(){return{foo:1}},1!==t[e](Boolean).foo})},$C=dE.map,UC=VC("map");KE({target:"Array",proto:!0,forced:!UC},{map:function(e){return $C(this,e,arguments.length>1?arguments[1]:void 0)}});var WC=Kb.RegExp,GC=Ew(function(){var e=WC("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),qC=GC||Ew(function(){return!WC("a","y").sticky}),KC={BROKEN_CARET:GC||Ew(function(){var e=WC("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:qC,UNSUPPORTED_Y:GC},YC=Kb.RegExp,XC=Ew(function(){var e=YC(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),ZC=Kb.RegExp,JC=Ew(function(){var e=ZC("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),QC=Dx.get,eS=Jb("native-string-replace",String.prototype.replace),tS=RegExp.prototype.exec,nS=tS,rS=rw("".charAt),oS=rw("".indexOf),iS=rw("".replace),aS=rw("".slice),uS=function(){var e=/a/,t=/b*/g;return Vw(tS,e,"a"),Vw(tS,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),sS=KC.BROKEN_CARET,cS=void 0!==/()??/.exec("")[1];(uS||cS||sS||XC||JC)&&(nS=function(e){var t,n,r,o,i,a,u,s=this,c=QC(s),l=rD(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=Vw(nS,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=sS&&s.sticky,h=Vw(oD,s),v=s.source,g=0,y=l;if(p&&(h=iS(h,"y",""),-1===oS(h,"g")&&(h+="g"),y=aS(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==rS(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),cS&&(n=new RegExp("^"+v+"$(?!\\s)",h)),uS&&(r=s.lastIndex),o=Vw(tS,p?n:s,y),p?o?(o.input=aS(o.input,g),o[0]=aS(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:uS&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),cS&&o&&o.length>1&&Vw(eS,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=bD(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var lS=nS;KE({target:"RegExp",proto:!0,forced:/./.exec!==lS},{exec:lS});var fS=Function.prototype,dS=fS.apply,pS=fS.bind,hS=fS.call,vS="object"==("undefined"==typeof Reflect?"undefined":D(Reflect))&&Reflect.apply||(pS?hS.bind(dS):function(){return hS.apply(dS,arguments)}),gS=Bw("species"),yS=RegExp.prototype,mS=function(e,t,n,r){var o=Bw(e),i=!Ew(function(){var t={};return t[o]=function(){return 7},7!=""[e](t)}),a=i&&!Ew(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[gS]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t});if(!i||!a||n){var u=rw(/./[o]),s=t(o,""[e],function(e,t,n,r,o){var a=rw(e),s=t.exec;return s===lS||s===yS.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}});kx(String.prototype,e,s[0]),kx(yS,o,s[1])}r&&ix(yS[o],"sham",!0)},bS=rC.charAt,wS=function(e,t,n){return t+(n?bS(e,t).length:1)},xS=Math.floor,ES=rw("".charAt),DS=rw("".replace),CS=rw("".slice),SS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,AS=/\$([$&'`]|\d{1,2})/g,OS=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=AS;return void 0!==o&&(o=uw(o),s=SS),DS(i,s,function(i,s){var c;switch(ES(s,0)){case"$":return"$";case"&":return e;case"`":return CS(t,0,n);case"'":return CS(t,a);case"<":c=o[CS(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=xS(l/10);return 0===f?i:f<=u?void 0===r[f-1]?ES(s,1):r[f-1]+ES(s,1):i}c=r[l-1]}return void 0===c?"":c})},kS=Kb.TypeError,BS=function(e,t){var n=e.exec;if(hw(n)){var r=Vw(n,e,t);return null!==r&&zw(r),r}if("RegExp"===Tx(e))return Vw(lS,e,t);throw kS("RegExp#exec called on incompatible receiver")},FS=Bw("replace"),TS=Math.max,_S=Math.min,PS=rw([].concat),jS=rw([].push),NS=rw("".indexOf),IS=rw("".slice),LS="$0"==="a".replace(/./,"$0"),RS=!!/./[FS]&&""===/./[FS]("a","$0");mS("replace",function(e,t,n){var r=RS?"$":"$0";return[function(e,n){var r=iw(this),o=null==e?void 0:Xw(e,FS);return o?Vw(o,e,r,n):Vw(t,rD(r),e,n)},function(e,o){var i=zw(this),a=rD(e);if("string"==typeof o&&-1===NS(o,r)&&-1===NS(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=hw(o);s||(o=rD(o));var c=i.global;if(c){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var d=BS(i,a);if(null===d)break;if(jS(f,d),!c)break;""===rD(d[0])&&(i.lastIndex=wS(a,Xx(i.lastIndex),l))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=rD((d=f[g])[0]),m=TS(_S(Kx(d.index),a.length),0),b=[],w=1;w<d.length;w++)jS(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=PS([y],b,m,a);void 0!==x&&jS(E,x);var D=rD(vS(o,void 0,E))}else D=OS(y,a,m,b,x,o);m>=v&&(h+=IS(a,v,m)+D,v=m+y.length)}return h+IS(a,v)}]},!!Ew(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!LS||RS);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var MS=function(e,t){return MS=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])},MS(e,t)};function zS(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}MS(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var HS=function(){return HS=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},HS.apply(this,arguments)};function VS(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 $S(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 US(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var WS=0,GS=function(){this.id=""+WS++},qS=Dx.set,KS=Dx.getterFor("Array Iterator"),YS=OC(Array,"Array",function(e,t){qS(this,{type:"Array Iterator",target:EE(e),index:0,kind:t})},function(){var e=KS(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");ND.Arguments=ND.Array,ED("keys"),ED("values"),ED("entries");var XS=function(e,t,n){for(var r in t)kx(e,r,t[r],n);return e},ZS=Kb.Array,JS=Math.max,QS=function(e,t,n){for(var r=Zx(e),o=OE(t,r),i=OE(void 0===n?r:n,r),a=ZS(JS(i-o,0)),u=0;o<i;o++,u++)MD(a,u,e[o]);return a.length=u,a},eA=NE.f,tA="object"==("undefined"==typeof window?"undefined":D(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],nA={f:function(e){return tA&&"Window"==Tx(e)?function(e){try{return eA(e)}catch(e){return QS(tA)}}(e):eA(EE(e))}},rA=Ew(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),oA=Object.isExtensible,iA=Ew(function(){oA(1)})||rA?function(e){return!!Pw(e)&&(!rA||"ArrayBuffer"!=Tx(e))&&(!oA||oA(e))}:oA,aA=!Ew(function(){return Object.isExtensible(Object.preventExtensions({}))}),uA=Ub(function(e){var t=rx.f,n=!1,r=pw("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=NE.f,t=rw([].splice),o={};o[r]=1,e(o).length&&(NE.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},KE({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:nA.f}))},fastKey:function(e,t){if(!Pw(e))return"symbol"==D(e)?e:("string"==typeof e?"S":"P")+e;if(!cw(e,r)){if(!iA(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!cw(e,r)){if(!iA(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return aA&&n&&iA(e)&&!cw(e,r)&&i(e),e}};vx[r]=!0}),sA=Kb.TypeError,cA=function(e,t){this.stopped=e,this.result=t},lA=cA.prototype,fA=function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Vx(t,l),v=function(e){return r&&PD(r,"normal",e),new cA(!0,e)},g=function(e){return f?(zw(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=HD(e)))throw sA(qw(e)+" is not iterable");if(RD(o)){for(i=0,a=Zx(e);a>i;i++)if((u=g(e[i]))&&$w(lA,u))return u;return new cA(!1)}r=$D(e,o)}for(s=r.next;!(c=Vw(s,r)).done;){try{u=g(c.value)}catch(e){PD(r,"throw",e)}if("object"==D(u)&&u&&$w(lA,u))return u}return new cA(!1)},dA=Kb.TypeError,pA=function(e,t){if($w(t,e))return e;throw dA("Incorrect invocation")},hA=function(e,t,n){var r,o;return wC&&hw(r=t.constructor)&&r!==n&&Pw(o=r.prototype)&&o!==n.prototype&&wC(e,o),e},vA=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Kb[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=rw(u[e]);kx(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Pw(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Pw(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Pw(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(GE(e,!hw(a)||!(o||u.forEach&&!Ew(function(){(new a).entries().next()}))))s=n.getConstructor(t,e,r,i),uA.enable();else if(GE(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Ew(function(){f.has(1)}),h=YD(function(e){new a(e)}),v=!o&&Ew(function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)});h||((s=t(function(e,t){pA(e,u);var n=hA(new a,e,s);return null!=t&&fA(t,n[i],{that:n,AS_ENTRIES:r}),n})).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,KE({global:!0,forced:s!=a},c),vC(s,e),o||n.setStrong(s,e,r),s},gA=uA.getWeakData,yA=Dx.set,mA=Dx.getterFor,bA=dE.find,wA=dE.findIndex,xA=rw([].splice),EA=0,DA=function(e){return e.frozen||(e.frozen=new CA)},CA=function(){this.entries=[]},SA=function(e,t){return bA(e.entries,function(e){return e[0]===t})};CA.prototype={get:function(e){var t=SA(this,e);if(t)return t[1]},has:function(e){return!!SA(this,e)},set:function(e,t){var n=SA(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=wA(this.entries,function(t){return t[0]===e});return~t&&xA(this.entries,t,1),!!~t}};var AA,OA={getConstructor:function(e,t,n,r){var o=e(function(e,o){pA(e,i),yA(e,{type:t,id:EA++,frozen:void 0}),null!=o&&fA(o,e[r],{that:e,AS_ENTRIES:n})}),i=o.prototype,a=mA(t),u=function(e,t,n){var r=a(e),o=gA(zw(t),!0);return!0===o?DA(r).set(t,n):o[r.id]=n,e};return XS(i,{delete:function(e){var t=a(this);if(!Pw(e))return!1;var n=gA(e);return!0===n?DA(t).delete(e):n&&cw(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Pw(e))return!1;var n=gA(e);return!0===n?DA(t).has(e):n&&cw(n,t.id)}}),XS(i,n?{get:function(e){var t=a(this);if(Pw(e)){var n=gA(e);return!0===n?DA(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}},kA=Dx.enforce,BA=!Kb.ActiveXObject&&"ActiveXObject"in Kb,FA=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},TA=vA("WeakMap",FA,OA);if(dx&&BA){AA=OA.getConstructor(FA,"WeakMap",!0),uA.enable();var _A=TA.prototype,PA=rw(_A.delete),jA=rw(_A.has),NA=rw(_A.get),IA=rw(_A.set);XS(_A,{delete:function(e){if(Pw(e)&&!iA(e)){var t=kA(this);return t.frozen||(t.frozen=new AA),PA(this,e)||t.frozen.delete(e)}return PA(this,e)},has:function(e){if(Pw(e)&&!iA(e)){var t=kA(this);return t.frozen||(t.frozen=new AA),jA(this,e)||t.frozen.has(e)}return jA(this,e)},get:function(e){if(Pw(e)&&!iA(e)){var t=kA(this);return t.frozen||(t.frozen=new AA),jA(this,e)?NA(this,e):t.frozen.get(e)}return NA(this,e)},set:function(e,t){if(Pw(e)&&!iA(e)){var n=kA(this);n.frozen||(n.frozen=new AA),jA(this,e)?IA(this,e,t):n.frozen.set(e,t)}else IA(this,e,t);return this}})}var LA=Bw("iterator"),RA=Bw("toStringTag"),MA=YS.values,zA=function(e,t){if(e){if(e[LA]!==MA)try{ix(e,LA,MA)}catch(t){e[LA]=MA}if(e[RA]||ix(e,RA,t),Lx[t])for(var n in YS)if(e[n]!==YS[n])try{ix(e,n,YS[n])}catch(t){e[n]=YS[n]}}};for(var HA in Lx)zA(Kb[HA]&&Kb[HA].prototype,HA);zA(zx,"DOMTokenList");var VA=new WeakMap,$A=new WeakMap,UA=new WeakMap,WA=new WeakMap,GA=new WeakMap,qA=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=new WeakMap,aO=new WeakMap,uO=new WeakMap,sO=new WeakMap,cO=new WeakMap,lO=new WeakMap,fO=new WeakMap,dO=new WeakMap,pO=dE.find,hO=!0;"find"in[]&&Array(1).find(function(){hO=!1}),KE({target:"Array",proto:!0,forced:hO},{find:function(e){return pO(this,e,arguments.length>1?arguments[1]:void 0)}}),ED("find"),KE({global:!0},{globalThis:Kb});var vO=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];lh&&(Yp.fn.css=lh),gh&&(Yp.fn.append=gh),Xp&&(Yp.fn.addClass=Xp),Zp&&(Yp.fn.removeClass=Zp),Jp&&(Yp.fn.hasClass=Jp),rh&&(Yp.fn.on=rh),Oh&&(Yp.fn.focus=Oh),Qp&&(Yp.fn.attr=Qp),eh&&(Yp.fn.removeAttr=eh),sh&&(Yp.fn.hide=sh),ch&&(Yp.fn.show=ch),uh&&(Yp.fn.offset=uh),ih&&(Yp.fn.width=ih),ah&&(Yp.fn.height=ah),mh&&(Yp.fn.parent=mh),bh&&(Yp.fn.parents=bh),vh&&(Yp.fn.is=vh),th&&(Yp.fn.dataset=th),nh&&(Yp.fn.val=nh),hh&&(Yp.fn.text=hh),ph&&(Yp.fn.html=ph),xh&&(Yp.fn.children=xh),Eh&&(Yp.fn.remove=Eh),wh&&(Yp.fn.find=wh),fh&&(Yp.fn.each=fh),Dh&&(Yp.fn.empty=Dh);var gO,yO,mO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},bO=function(e){return wO(e)&&1===e.nodeType},wO=function(e){var t=mO(e);return!!t&&e instanceof t.Node},xO=function(e){var t=e&&e.anchorNode&&mO(e.anchorNode);return!!t&&e instanceof t.Selection},EO=function(e){return wO(e)&&3===e.nodeType},DO=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},CO=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(wO(r=i)&&8===r.nodeType||bO(i)&&0===i.childNodes.length||bO(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]},SO=function(e,t,n){return $S(CO(e,t,n),1)[0]},AO=function e(t){var n,r,o="";if(EO(t)&&t.nodeValue)return t.nodeValue;if(bO(t)){try{for(var i=VS(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 OO(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||OO(o,t)}}function kO(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==gO.ELEMENT_NODE?"":t.tagName.toLowerCase()}(yO=gO||(gO={}))[yO.ELEMENT_NODE=1]="ELEMENT_NODE",yO[yO.TEXT_NODE=3]="TEXT_NODE",yO[yO.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",yO[yO.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",yO[yO.COMMENT_NODE=8]="COMMENT_NODE",yO[yO.DOCUMENT_NODE=9]="DOCUMENT_NODE",yO[yO.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",yO[yO.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var BO="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),FO="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),TO="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),_O="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),PO="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),jO="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),NO=!PO&&!_O&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,IO={getWindow:function(e){var t=sO.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=uO.get(t);return n||(n=new GS,uO.set(t,n)),n},setNewKey:function(e){var t=new GS;uO.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=nO.get(r);if(null==o){if(qf.isEditor(r))return n;break}var i=tO.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=IO.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return nO.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=IO.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[IO.findPath(e,t)[0]];return Jf.get(e,n)},toDOMNode:function(e,t){var n;if(qf.isEditor(t))n=rO.get(e);else{var r=IO.findKey(e,t);n=iO.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=IO.toDOMNode(e,e);try{r=bO(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=ld.isBackward(t),i=IO.toDOMPoint(e,n),a=ld.isCollapsed(t)?i:IO.toDOMPoint(e,r),u=IO.getWindow(e).document.createRange(),s=$S(o?a:i,2),c=s[0],l=s[1],f=$S(o?i:a,2),d=f[0],p=f[1],h=!!(bO(c)?c:c.parentElement).getAttribute("data-slate-zero-width"),v=!!(bO(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(c,h?1:l),u.setEnd(d,v?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=$S(qf.node(e,t.path),1)[0],a=IO.toDOMNode(e,i);qf.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var c=VS(u),l=c.next();!l.done;l=c.next()){var f=l.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),v=s+(null==h?p:parseInt(h,10));if(t.offset<=v){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=v}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=bO(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?oO.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=IO.toSlateNode(e,t.target),u=IO.findPath(e,a);if(qf.isVoid(e,a)){var s=o.getBoundingClientRect(),c=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,l=qf.point(e,u,{edge:c?"start":"end"}),f=c?qf.before(e,l):qf.after(e,l);if(f)return qf.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 IO.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,c=n.suppressThrow;if((xO(t)?t.anchorNode:t.startContainer)&&(xO(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=jO&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var l=IO.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:c});if(!l)return null;var f=u?l:IO.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:c});if(!f)return null;var d={anchor:l,focus:f};return ld.isExpanded(d)&&ld.isForward(d)&&bO(i)&&qf.void(e,{at:d.focus,mode:"highest"})&&(d=qf.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=$S(o?t:function(e){var t,n=$S(e,2),r=n[0],o=n[1];if(bO(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=$S(CO(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;bO(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=SO(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],c=u.parentNode,l=null,f=0;if(c){var d=c.closest('[data-slate-void="true"]'),p=c.closest("[data-slate-leaf]"),h=null;if(p){l=p.closest('[data-slate-node="text"]');var v=IO.getWindow(e).document.createRange();v.setStart(l,0),v.setEnd(u,s);var g=v.cloneContents();US(US([],$S(Np(g.querySelectorAll("[data-slate-zero-width]")))),$S(Np(g.querySelectorAll("[contenteditable=false]")))).forEach(function(e){e.parentNode.removeChild(e)}),f=g.textContent.length,h=l}else d&&((p=d.querySelector("[data-slate-leaf]"))?(l=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&&(c.hasAttribute("data-slate-zero-width")||FO&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!l){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=IO.toSlateNode(e,l);return{path:IO.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return qf.hasPath(e,n.path)&&qf.hasPath(e,r.path)},getNodeType:function(e){return Hf.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(e){return Jf.string(e)}).join("")},getSelectedElems:function(e){var t,n,r=[],o=qf.nodes(e,{universal:!0});try{for(var i=VS(o),a=i.next();!a.done;a=i.next()){var u=$S(a.value,1)[0];Hf.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=$S(qf.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=$S(qf.nodes(e,{match:function(e){return yd.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=$S(qf.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&$S(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(qf.isEnd(e,n.anchor,t)||qf.isEnd(e,n.focus,t))},getTextarea:function(e){var t=VA.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return WA.get(e)||null},getHoverbar:function(e){return qA.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=IO.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=VS(Array.from(a)),s=u.next();!s.done;s=u.next()){var c=s.value;if(3!==c.nodeType)break;c.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var l=qf.nodes(e,{match:function(t){return!(!Hf.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=VS(l),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];OO(IO.toDOMNode(e,h),function(e,t){var n=Yp(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=qf.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=VS(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(ld.isExpanded(t))return!1;var n=IO.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=qf.node(e,t);if(null==n)return!1;var r=$S(n,1)[0].children;return 1===r.length&&""===r[0].text}},LO=1,RO={},MO={},zO=dE.filter,HO=VC("filter");KE({target:"Array",proto:!0,forced:!HO},{filter:function(e){return zO(this,e,arguments.length>1?arguments[1]:void 0)}});var VO="\t\n\v\f\r \u2028\u2029\ufeff",$O=rw("".replace),UO="["+VO+"]",WO=RegExp("^"+UO+UO+"*"),GO=RegExp(UO+UO+"*$"),qO={trim:function(e){return function(t){var n=rD(iw(t));return 1&e&&(n=$O(n,WO,"")),2&e&&(n=$O(n,GO,"")),n}}(3)},KO=Ox.PROPER,YO=qO.trim;KE({target:"String",proto:!0,forced:function(e){return Ew(function(){return!!VO[e]()||"
"!=="
"[e]()||KO&&VO[e].name!==e})}("trim")},{trim:function(){return YO(this)}});var XO=[],ZO={};function JO(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var QO,ek,tk,nk,rk=Kb.Promise,ok=Bw("species"),ik=function(e){var t=vw(e),n=rx.f;_w&&t&&!t[ok]&&n(t,ok,{configurable:!0,get:function(){return this}})},ak=Kb.TypeError,uk=Bw("species"),sk=function(e,t){var n,r=zw(e).constructor;return void 0===r||null==(n=zw(r)[uk])?t:function(e){if(aE(e))return e;throw ak(qw(e)+" is not a constructor")}(n)},ck=rw([].slice),lk=/(?:ipad|iphone|ipod).*applewebkit/i.test(gw),fk="process"==Tx(Kb.process),dk=Kb.setImmediate,pk=Kb.clearImmediate,hk=Kb.process,vk=Kb.Dispatch,gk=Kb.Function,yk=Kb.MessageChannel,mk=Kb.String,bk=0,wk={};try{QO=Kb.location}catch(yO){}var xk=function(e){if(cw(wk,e)){var t=wk[e];delete wk[e],t()}},Ek=function(e){return function(){xk(e)}},Dk=function(e){xk(e.data)},Ck=function(e){Kb.postMessage(mk(e),QO.protocol+"//"+QO.host)};dk&&pk||(dk=function(e){var t=ck(arguments,1);return wk[++bk]=function(){vS(hw(e)?e:gk(e),void 0,t)},ek(bk),bk},pk=function(e){delete wk[e]},fk?ek=function(e){hk.nextTick(Ek(e))}:vk&&vk.now?ek=function(e){vk.now(Ek(e))}:yk&&!lk?(nk=(tk=new yk).port2,tk.port1.onmessage=Dk,ek=Vx(nk.postMessage,nk)):Kb.addEventListener&&hw(Kb.postMessage)&&!Kb.importScripts&&QO&&"file:"!==QO.protocol&&!Ew(Ck)?(ek=Ck,Kb.addEventListener("message",Dk,!1)):ek="onreadystatechange"in Iw("script")?function(e){pD.appendChild(Iw("script")).onreadystatechange=function(){pD.removeChild(this),xk(e)}}:function(e){setTimeout(Ek(e),0)});var Sk,Ak,Ok,kk,Bk,Fk,Tk,_k,Pk={set:dk},jk=/ipad|iphone|ipod/i.test(gw)&&void 0!==Kb.Pebble,Nk=/web0s(?!.*chrome)/i.test(gw),Ik=CE.f,Lk=Pk.set,Rk=Kb.MutationObserver||Kb.WebKitMutationObserver,Mk=Kb.document,zk=Kb.process,Hk=Kb.Promise,Vk=Ik(Kb,"queueMicrotask"),$k=Vk&&Vk.value;$k||(Sk=function(){var e,t;for(fk&&(e=zk.domain)&&e.exit();Ak;){t=Ak.fn,Ak=Ak.next;try{t()}catch(e){throw Ak?kk():Ok=void 0,e}}Ok=void 0,e&&e.enter()},lk||fk||Nk||!Rk||!Mk?!jk&&Hk&&Hk.resolve?((Tk=Hk.resolve(void 0)).constructor=Hk,_k=Vx(Tk.then,Tk),kk=function(){_k(Sk)}):fk?kk=function(){zk.nextTick(Sk)}:(Lk=Vx(Lk,Kb),kk=function(){Lk(Sk)}):(Bk=!0,Fk=Mk.createTextNode(""),new Rk(Sk).observe(Fk,{characterData:!0}),kk=function(){Fk.data=Bk=!Bk}));var Uk,Wk,Gk,qk,Kk=$k||function(e){var t={fn:e,next:void 0};Ok&&(Ok.next=t),Ak||(Ak=t,kk()),Ok=t},Yk=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=Yw(t),this.reject=Yw(n)},Xk={f:function(e){return new Yk(e)}},Zk=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Jk="object"==("undefined"==typeof window?"undefined":D(window)),Qk=Pk.set,eB=Bw("species"),tB="Promise",nB=Dx.getterFor(tB),rB=Dx.set,oB=Dx.getterFor(tB),iB=rk&&rk.prototype,aB=rk,uB=iB,sB=Kb.TypeError,cB=Kb.document,lB=Kb.process,fB=Xk.f,dB=fB,pB=!!(cB&&cB.createEvent&&Kb.dispatchEvent),hB=hw(Kb.PromiseRejectionEvent),vB=!1,gB=GE(tB,function(){var e=lx(aB),t=e!==String(aB);if(!t&&66===xw)return!0;if(xw>=51&&/native code/.test(e))return!1;var n=new aB(function(e){e(1)}),r=function(e){e(function(){},function(){})};return(n.constructor={})[eB]=r,!(vB=n.then(function(){})instanceof r)||!t&&Jk&&!hB}),yB=gB||!YD(function(e){aB.all(e).catch(function(){})}),mB=function(e){var t;return!(!Pw(e)||!hw(t=e.then))&&t},bB=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Kk(function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,c=n[i++],l=o?c.ok:c.fail,f=c.resolve,d=c.reject,p=c.domain;try{l?(o||(2===e.rejection&&DB(e),e.rejection=1),!0===l?a=r:(p&&p.enter(),a=l(r),p&&(p.exit(),s=!0)),a===c.promise?d(sB("Promise-chain cycle")):(u=mB(a))?Vw(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&xB(e)})}},wB=function(e,t,n){var r,o;pB?((r=cB.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Kb.dispatchEvent(r)):r={promise:t,reason:n},!hB&&(o=Kb["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Kb.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},xB=function(e){Vw(Qk,Kb,function(){var t,n=e.facade,r=e.value;if(EB(e)&&(t=Zk(function(){fk?lB.emit("unhandledRejection",r,n):wB("unhandledrejection",n,r)}),e.rejection=fk||EB(e)?2:1,t.error))throw t.value})},EB=function(e){return 1!==e.rejection&&!e.parent},DB=function(e){Vw(Qk,Kb,function(){var t=e.facade;fk?lB.emit("rejectionHandled",t):wB("rejectionhandled",t,e.value)})},CB=function(e,t,n){return function(r){e(t,r,n)}},SB=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,bB(e,!0))},AB=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw sB("Promise can't be resolved itself");var r=mB(t);r?Kk(function(){var n={done:!1};try{Vw(r,t,CB(AB,n,e),CB(SB,n,e))}catch(t){SB(n,t,e)}}):(e.value=t,e.state=1,bB(e,!1))}catch(t){SB({done:!1},t,e)}}};if(gB&&(uB=(aB=function(e){pA(this,uB),Yw(e),Vw(Uk,this);var t=nB(this);try{e(CB(AB,t),CB(SB,t))}catch(e){SB(t,e)}}).prototype,(Uk=function(e){rB(this,{type:tB,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=XS(uB,{then:function(e,t){var n=oB(this),r=n.reactions,o=fB(sk(this,aB));return o.ok=!hw(e)||e,o.fail=hw(t)&&t,o.domain=fk?lB.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&bB(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Wk=function(){var e=new Uk,t=nB(e);this.promise=e,this.resolve=CB(AB,t),this.reject=CB(SB,t)},Xk.f=fB=function(e){return e===aB||e===Gk?new Wk(e):dB(e)},hw(rk)&&iB!==Object.prototype)){qk=iB.then,vB||(kx(iB,"then",function(e,t){var n=this;return new aB(function(e,t){Vw(qk,n,e,t)}).then(e,t)},{unsafe:!0}),kx(iB,"catch",uB.catch,{unsafe:!0}));try{delete iB.constructor}catch(yO){}wC&&wC(iB,uB)}KE({global:!0,wrap:!0,forced:gB},{Promise:aB}),vC(aB,tB,!1),ik(tB),Gk=vw(tB),KE({target:tB,stat:!0,forced:gB},{reject:function(e){var t=fB(this);return Vw(t.reject,void 0,e),t.promise}}),KE({target:tB,stat:!0,forced:gB},{resolve:function(e){return function(e,t){if(zw(e),Pw(t)&&t.constructor===e)return t;var n=Xk.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),KE({target:tB,stat:!0,forced:yB},{all:function(e){var t=this,n=fB(t),r=n.resolve,o=n.reject,i=Zk(function(){var n=Yw(t.resolve),i=[],a=0,u=1;fA(e,function(e){var s=a++,c=!1;u++,Vw(n,t,e).then(function(e){c||(c=!0,i[s]=e,--u||r(i))},o)}),--u||r(i)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=fB(t),r=n.reject,o=Zk(function(){var o=Yw(t.resolve);fA(e,function(e){Vw(o,t,e).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var OB=KC.UNSUPPORTED_Y,kB=Math.min,BB=[].push,FB=rw(/./.exec),TB=rw(BB),_B=rw("".slice);function PB(e){Promise.resolve().then(e)}function jB(e,t){return Hf.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=qf.isVoid(t,e),u="";a||(u=i.map(function(e){return jB(e,t)}).join(""));var s=function(e){return ZO[e]||JO}(r),c=s(e,u,t),l="";if(l="string"==typeof c?c:c.html||"",a||XO.forEach(function(t){return l=t(e,l)}),"string"==typeof c)return l;var f=c.prefix,d=void 0===f?"":f,p=c.suffix,h=void 0===p?"":p;return d&&(l=d+l),h&&(l+=h),l}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(r);var o=IO.getParentsNodes(t,e).some(function(e){return"pre"===IO.getNodeType(e)});if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=IO.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return XO.forEach(function(t){return r=t(e,r)}),r}(e,t)}function NB(e){return"w-e-element-"+e}mS("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=rD(iw(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!SD(e))return Vw(t,r,e,o);for(var i,a,u,s=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,f=new RegExp(e.source,c+"g");(i=Vw(lS,f,r))&&!((a=f.lastIndex)>l&&(TB(s,_B(r,l,i.index)),i.length>1&&i.index<r.length&&vS(BB,s,QS(i,1)),u=i[0].length,l=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return l===r.length?!u&&FB(f,"")||TB(s,""):TB(s,_B(r,l)),s.length>o?QS(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Vw(t,this,e,n)}:t,[function(t,n){var o=iw(this),i=null==t?void 0:Xw(t,e);return i?Vw(i,t,o,n):Vw(r,rD(o),t,n)},function(e,o){var i=zw(this),a=rD(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=sk(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(OB?"g":"y"),f=new s(OB?"^(?:"+i.source+")":i,l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===BS(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=OB?0:h;var g,y=BS(f,OB?_B(a,h):a);if(null===y||(g=kB(Xx(f.lastIndex+(OB?h:0)),a.length))===p)h=wS(a,h,c);else{if(TB(v,_B(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(TB(v,y[m]),v.length===d)return v;h=p=g}}return TB(v,_B(a,p)),v}]},!!Ew(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]}),OB);var IB=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},LB=function(e,t,n){var r=IO.toDOMRange(e,t).getBoundingClientRect(),o=IO.toDOMRange(e,n).getBoundingClientRect();return IB(r,o)&&IB(o,r)},RB=["span","b","strong","i","em","s","strike","u","font","sub","sup"],MB=[],zB=[],HB={},VB=rx.f,$B=NE.f,UB=Dx.enforce,WB=Bw("match"),GB=Kb.RegExp,qB=GB.prototype,KB=Kb.SyntaxError,YB=rw(oD),XB=rw(qB.exec),ZB=rw("".charAt),JB=rw("".replace),QB=rw("".indexOf),eF=rw("".slice),tF=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,nF=/a/g,rF=/a/g,oF=new GB(nF)!==nF,iF=KC.MISSED_STICKY,aF=KC.UNSUPPORTED_Y,uF=_w&&(!oF||iF||XC||JC||Ew(function(){return rF[WB]=!1,GB(nF)!=nF||GB(rF)==rF||"/a/i"!=GB(nF,"i")}));if(GE("RegExp",uF)){for(var sF=function(e,t){var n,r,o,i,a,u,s=$w(qB,this),c=SD(e),l=void 0===t,f=[],d=e;if(!s&&c&&l&&e.constructor===sF)return e;if((c||$w(qB,e))&&(e=e.source,l&&(t="flags"in d?d.flags:YB(d))),e=void 0===e?"":rD(e),t=void 0===t?"":rD(t),d=e,XC&&"dotAll"in nF&&(r=!!t&&QB(t,"s")>-1)&&(t=JB(t,/s/g,"")),n=t,iF&&"sticky"in nF&&(o=!!t&&QB(t,"y")>-1)&&aF&&(t=JB(t,/y/g,"")),JC&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,c=0,l="";r<=n;r++){if("\\"===(t=ZB(e,r)))t+=ZB(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:XB(tF,eF(e,r+1))&&(r+=2,s=!0),o+=t,c++;continue;case">"===t&&s:if(""===l||cw(a,l))throw new KB("Invalid capture group name");a[l]=!0,i[i.length]=[l,c],s=!1,l="";continue}s?l+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=hA(GB(e,t),s?this:qB,sF),(r||o||f.length)&&(u=UB(a),r&&(u.dotAll=!0,u.raw=sF(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=ZB(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+ZB(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{ix(a,"source",""===d?"(?:)":d)}catch(e){}return a},cF=function(e){e in sF||VB(sF,e,{configurable:!0,get:function(){return GB[e]},set:function(t){GB[e]=t}})},lF=$B(GB),fF=0;lF.length>fF;)cF(lF[fF++]);qB.constructor=sF,sF.prototype=qB,kx(Kb,"RegExp",sF)}ik("RegExp");var dF=new RegExp(String.fromCharCode(160),"g");function pF(e){return e.replace(dF," ")}function hF(e,t){var n=e.length;if(n){var r=e[n-1];if(yd.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function vF(e,t,n){return{type:"paragraph",children:[{text:Yp(e).text().replace(/\s+/gm," ")}]}}function gF(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!==gO.ELEMENT_NODE)if(e.nodeType!==gO.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=pF(r),hF(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(hF(n,"\n")||n.push({text:"\n"}));var o=mF(Yp(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 HB)if(e[0].matches(t))return HB[t];return vF}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach(function(r){qf.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),zB.forEach(function(n){r=n(e[0],r,t)}))}),o}function yF(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=function(e){return e.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(n);var r={text:n=pF(n)};return zB.forEach(function(n){r=n(e[0],r,t)}),r}function mF(e,t){MB.forEach(function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Yp(r(e[0])))});var n=kO(e);return"span"===n?e.attr("data-w-e-type")?gF(e,t):yF(e,t):"code"===n?"pre"===kO(e.parent())?gF(e,t):yF(e,t):RB.includes(n)?yF(e,t):gF(e,t)}function bF(e,t,n){var r=Yp(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function wF(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=Yp("<div>"+t+"</div>");return Array.from(r.children()).forEach(function(t){var r=mF(Yp(t),e);Array.isArray(r)?r.forEach(function(e){return n.push(e)}):n.push(r)}),n}var xF=rx.f,EF=uA.fastKey,DF=Dx.set,CF=Dx.getterFor,SF={getConstructor:function(e,t,n,r){var o=e(function(e,o){pA(e,i),DF(e,{type:t,index:bD(null),first:void 0,last:void 0,size:0}),_w||(e.size=0),null!=o&&fA(o,e[r],{that:e,AS_ENTRIES:n})}),i=o.prototype,a=CF(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=EF(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),_w?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=EF(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return XS(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,_w?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),_w?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=Vx(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)}}),XS(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)}}),_w&&xF(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=CF(t),i=CF(r);OC(e,t,function(e,t){DF(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),ik(t)}};vA("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},SF);var AF=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function OF(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):Nd.insertNodes(e,t,{mode:"highest"})}var kF=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=$S(ld.edges(n),2),o=r[0],i=r[1],a=qf.void(t,{at:o.path}),u=qf.void(t,{at:i.path});if(!ld.isCollapsed(n)||a){var s=IO.toDOMRange(t,n),c=s.cloneContents(),l=c.childNodes[0];if(c.childNodes.forEach(function(e){e.textContent&&""!==e.textContent.trim()&&(l=e)}),u){var f=$S(u,1)[0],d=s.cloneRange(),p=IO.toDOMNode(t,f);d.setEndAfter(p),c=d.cloneContents()}if(a&&(l=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEach(function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""}),EO(l)){var h=l.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(l),c.appendChild(h),l=h}var v=t.getFragment(),g=JSON.stringify(v),y=window.btoa(encodeURIComponent(g));l.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=c.ownerDocument.createElement("div");return m.appendChild(c),m.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",AO(m)),c.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);t.insertFragment(u)}else{var s=e.getData("text/plain"),c=e.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(s){var l=s.split(/\r\n|\r|\n/),f=!1;try{for(var d=VS(l),p=d.next();!p.done;p=d.next()){var h=p.value;f&&Nd.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},BF=function(e){return null!=e},FF={object:!0,function:!0,undefined:!0},TF=/^\s*class[\s{/}]/,_F=Function.prototype.toString,PF=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!!BF(e)&&hasOwnProperty.call(FF,D(e))}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!TF.test(_F.call(e))},jF=function(e){return null!=e},NF=Object.keys,IF=function(){try{return Object.keys("primitive"),!0}catch(z){return!1}}()?Object.keys:function(e){return NF(jF(e)?Object(e):e)},LF=Math.max,RF=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=LF(arguments.length,2);for(e=Object(function(e){if(!jF(e))throw new TypeError("Cannot use null or undefined");return e}(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)IF(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},MF=Array.prototype.forEach,zF=Object.create,HF=function(e){var t=zF(null);return MF.call(arguments,function(e){jF(e)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(e),t)}),t},VF="razdwatrzy",$F=String.prototype.indexOf,UF="function"==typeof VF.contains&&!0===VF.contains("dwa")&&!1===VF.contains("foo")?String.prototype.contains:function(e){return $F.call(this,e,arguments[1])>-1},WF=Ub(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],BF(e)?(n=UF.call(e,"c"),r=UF.call(e,"e"),o=UF.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?RF(HF(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],BF(t)?PF(t)?BF(n)?PF(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,BF(e)?(r=UF.call(e,"c"),o=UF.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?RF(HF(i),a):a}}),GF=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},qF=Ub(function(e,t){var n,r,o,i,a,u,s,c=Function.prototype.apply,l=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return GF(t),h.call(this,"__ee__")?n=this.__ee__:(n=v.value=f(null),d(this,"__ee__",v),v.value=null),n[e]?"object"==D(n[e])?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,i;return GF(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),c.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(GF(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==D(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"==D(o)){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)c.call(r,this,i)}else switch(arguments.length){case 1:l.call(o,this);break;case 2:l.call(o,this,arguments[1]);break;case 3:l.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];c.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},u={on:WF(n),once:WF(r),off:WF(o),emit:WF(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a});function KF(e){var t=fO.get(e);return null==t&&(t=qF(),fO.set(e,t)),t}var YF=new WeakMap;function XF(e,t){var n=YF.get(e);null==n&&(n=new Set,YF.set(e,n)),n.add(t)}function ZF(e){var t=IO.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function JF(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=ZF(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=IO.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var c=s.height,l={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;l.right=p+5+"px"}else l.left=d+5+"px";if(f>u/2){var h=u-f;l.bottom=h+5+"px"}else{var v=f+c;v<0&&(v=0),l.top=v+5+"px"}return l}function QF(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=Hf.isElement(t)&&e.isVoid(t),i=Hf.isElement(t)&&e.isInline(t),a=aO.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,c=u.left,l=u.height,f=u.width;if(o){var 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(vO.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,l=p.height}}var h=ZF(e);if(null==h)return r;var v,g=h.top,y=h.left,m=h.width,b=h.height,w={},x=s-g,E=c-y;if("bar"===n)return w.left=E+"px",x>40?w.bottom=b-x+5+"px":w.top=x+l+5+"px",w;if("modal"===n)return o?i?E>(m-f)/2?w.right=m-E+5+"px":w.left=E+f+5+"px":w.left="20px":w.left=E+"px",o?((v=x)<0&&(v=0),w.top=v+"px"):x>(b-l)/2?w.bottom=b-x+5+"px":((v=x+l)<0&&(v=0),w.top=v+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function eT(e,t){PB(function(){var n=ZF(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),c=s.top,l=s.left,f=t.width(),d=t.height(),p=c-o,h=l-i,v=t.attr("style");if(v.indexOf("top")>=0&&(r=p+d-u)>0){var g=t.css("top"),y=parseInt(g.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(v.indexOf("bottom")>=0&&c<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(c);t.css("bottom",b+"px")}if(v.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),x=parseInt(w.toString())-r;x<0&&(x=0),t.css("left",x+"px")}if(v.indexOf("right")>=0&&l<0){var E=t.css("right"),D=parseInt(E.toString())-Math.abs(l);t.css("right",D+"px")}}})}var tT=VC("slice"),nT=Bw("species"),rT=Kb.Array,oT=Math.max;KE({target:"Array",proto:!0,forced:!tT},{slice:function(e,t){var n,r,o,i=EE(this),a=Zx(i),u=OE(e,a),s=OE(void 0===t?a:t,a);if(Jx(i)&&(n=i.constructor,(aE(n)&&(n===rT||Jx(n.prototype))||Pw(n)&&null===(n=n[nT]))&&(n=void 0),n===rT||void 0===n))return ck(i,u,s);for(r=new(void 0===n?rT:n)(oT(s-u,0)),o=0;u<s;u++,o++)u in i&&MD(r,o,i[u]);return r.length=o,r}});var iT=CE.f,aT=rw("".startsWith),uT=rw("".slice),sT=Math.min,cT=BD("startsWith"),lT=!cT&&!!function(){var e=iT(String.prototype,"startsWith");return e&&!e.writable}();KE({target:"String",proto:!0,forced:!lT&&!cT},{startsWith:function(e){var t=rD(iw(this));OD(e);var n=Xx(sT(arguments.length>1?arguments[1]:void 0,t.length)),r=rD(e);return aT?aT(t,r,n):uT(t,n,n+r.length)===r}});var fT=Object.assign,dT=Object.defineProperty,pT=rw([].concat),hT=!fT||Ew(function(){if(_w&&1!==fT({b:1},fT(dT({},"a",{enumerable:!0,get:function(){dT(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!=fT({},e)[n]||YE(fT({},t)).join("")!=r})?function(e,t){for(var n=uw(e),r=arguments.length,o=1,i=IE.f,a=xE.f;r>o;)for(var u,s=Wx(arguments[o++]),c=i?pT(YE(s),i(s)):YE(s),l=c.length,f=0;l>f;)u=c[f++],_w&&!Vw(a,s,u)||(n[u]=s[u]);return n}:fT;KE({target:"Object",stat:!0,forced:Object.assign!==hT},{assign:hT});var vT=["props","attrs","style","dataset","on","hook"];function gT(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(!vT.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=Sg(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&&gT(e)})}var yT=[],mT={};function bT(e,t,n){return Mv(n.isInline(e)?"span":"div",null,t)}function wT(e,t){return void 0===t&&(t=!1),Mv("span",{"data-slate-string":!0},t?e+"\n":e)}function xT(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),Mv("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?Mv("br",null):null)}function ET(e,t,n,r){return tO.set(e,t),nO.set(e,n),Hf.isElement(e)?function(e,t){var n,r=IO.findKey(t,e),o=t.isInline(e),i=qf.isVoid(t,e),a=NB(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,c=e.children,l=void 0===c?[]:c,f=function(e){return mT[e]||bT}(s);n=i?null:l.map(function(n,r){return ET(n,r,e,t)});var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=$S(Jf.texts(e),1),v=$S(h[0],1)[0],g=Mv(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},ET(v,0,e,t));d=Mv(p,{style:{position:"relative"}},d,g),tO.set(v,0),nO.set(v,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return yT.forEach(function(r){n=r(e,t)}),n}(e,d)),PB(function(){var t=DO(a);null!=t&&(iO.set(r,t),aO.set(e,t),oO.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=IO.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=IO.findPath(n,e),a=o([e,i]),u=yd.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=IO.findPath(o,n),u=nd.parent(a);if(qf.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?xT(Jf.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==qf.string(o,u)?""===i?xT():t&&"\n"===i.slice(-1)?wT(i,!0):wT(i):xT(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return yT.forEach(function(t){n=t(e,n)}),n}(r,i),Mv("span",{"data-slate-leaf":!0},i)}),c=function(e){return"w-e-text-"+e}(r.id),l=Mv("span",{"data-slate-node":"text",id:c,key:r.id},s);return PB(function(){var t=DO(c);null!=t&&(iO.set(r,t),aO.set(e,t),oO.set(t,e))}),l}(e,n,r)}function DT(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),bv("div#"+e,{props:{contentEditable:!t}})}(o,a),c=t.children||[];s.children=c.map(function(e,n){var r=ET(e,n,t,t);return gT(r),r});var l=JA.get(e);if(null==l&&(l=!0),l){var f=function(e){return Yp('<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=yv([Dv,_v,Lv,Av,Fv,xv]))(n,s),JA.set(e,!1),QA.set(e,p)}else{var d=eO.get(e),p=QA.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=DO(o))){if((l?u:t.isFocused())&&n.focus({preventScroll:!0}),l){var h=mO(n);h&&sO.set(t,h)}rO.set(t,n),aO.set(t,n),oO.set(n,t),eO.set(e,s)}}function CT(e){return"object"==D(e)&&null!=e&&1===e.nodeType}function ST(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function AT(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return ST(n.overflowY,t)||ST(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 OT(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 kT(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(!CT(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,l=[],f=e;CT(f)&&s(f);){if((f=f.parentElement)===c){l.push(f);break}null!=f&&f===document.body&&AT(f)&&!AT(document.documentElement)||null!=f&&AT(f,u)&&l.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,m=g.width,b=g.top,w=g.right,x=g.bottom,E=g.left,D="start"===o||"nearest"===o?b:"end"===o?x:b+y/2,C="center"===i?E+m/2:"end"===i?w:E,S=[],A=0;A<l.length;A++){var O=l[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 S;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,H=0,V="offsetWidth"in O?O.offsetWidth-O.clientWidth-I-R:0,$="offsetHeight"in O?O.offsetHeight-O.clientHeight-L-M:0;if(c===O)z="start"===o?D:"end"===o?D-p:"nearest"===o?OT(v,v+p,p,L,M,v+D,v+D+y,y):D-p/2,H="start"===i?C:"center"===i?C-d/2:"end"===i?C-d:OT(h,h+d,d,I,R,h+C,h+C+m,m),z=Math.max(0,z+v),H=Math.max(0,H+h);else{z="start"===o?D-T-L:"end"===o?D-P+M+$:"nearest"===o?OT(T,P,B,L,M+$,D,D+y,y):D-(T+B/2)+$/2,H="start"===i?C-j-I:"center"===i?C-(j+F/2)+V/2:"end"===i?C-_+R+V:OT(j,_,F,I,R+V,C,C+m,m);var U=O.scrollLeft,W=O.scrollTop;D+=W-(z=Math.max(0,Math.min(W+z,O.scrollHeight-B+$))),C+=U-(H=Math.max(0,Math.min(U+H,O.scrollWidth-F+V)))}S.push({el:O,top:z,left:H})}return S}function BT(e){return e===Object(e)&&0!==Object.keys(e).length}function FT(e,t){return wO(t)&&IO.hasDOMNode(e,t,{editable:!0})}function TT(e,t){if(e.getConfig().readOnly)return!1;var n=_T(e,t)&&IO.toSlateNode(e,t);return qf.isVoid(e,n)}function _T(e,t){return wO(t)&&IO.hasDOMNode(e,t)}function PT(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=IO.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=rO.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var c=IO.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(c&&ld.equals(c,r)){var l=!0;if(ld.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")&&(l=!1),(h=p[d-1])&&h.matches("table")&&(l=!1)}}if(l)return}}if(!r||IO.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&IO.toDOMRange(t,r);if(v){ld.isBackward(r)?i.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):i.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var g=v.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(BT(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:kT(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:BT(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)})}(kT(e,r),r.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){v&&FO&&u.focus(),e.isUpdatingSelection=!1})}else t.selection=IO.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var jT=new WeakMap,NT=new WeakMap,IT={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"},LT={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"},RT={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},MT=function(e){var t=IT[e],n=LT[e],r=RT[e],o=t&&Ng(t),i=n&&Ng(n),a=r&&Ng(r);return function(e){return!(!o||!o(e))||!!(BO&&i&&i(e))||!(BO||!a||!a(e))}},zT={isBold:MT("bold"),isCompose:MT("compose"),isMoveBackward:MT("moveBackward"),isMoveForward:MT("moveForward"),isDeleteBackward:MT("deleteBackward"),isDeleteForward:MT("deleteForward"),isDeleteLineBackward:MT("deleteLineBackward"),isDeleteLineForward:MT("deleteLineForward"),isDeleteWordBackward:MT("deleteWordBackward"),isDeleteWordForward:MT("deleteWordForward"),isExtendBackward:MT("extendBackward"),isExtendForward:MT("extendForward"),isExtendLineBackward:MT("extendLineBackward"),isExtendLineForward:MT("extendLineForward"),isItalic:MT("italic"),isMoveLineBackward:MT("moveLineBackward"),isMoveLineForward:MT("moveLineForward"),isMoveWordBackward:MT("moveWordBackward"),isMoveWordForward:MT("moveWordForward"),isRedo:MT("redo"),isSplitBlock:MT("splitBlock"),isTransposeCharacter:MT("transposeCharacter"),isUndo:MT("undo"),isTab:MT("tab"),isSelectAll:MT("selectAll")};function HT(e){e.preventDefault()}var VT={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(NO&&!o&&FT(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=$S(r.getTargetRanges(),1)[0];if(s){var c=IO.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&ld.equals(i,c)||Nd.select(n,c)}}if(i&&ld.isExpanded(i)&&a.startsWith("delete")){var l=a.endsWith("Backward")?"backward":"forward";qf.deleteFragment(n,{direction:l})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":qf.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":qf.deleteForward(n);break;case"deleteContentBackward":qf.deleteBackward(n);break;case"deleteEntireSoftLine":qf.deleteBackward(n,{unit:"line"}),qf.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":qf.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":qf.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":qf.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":qf.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":qf.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":qf.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":qf.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!dO.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&qf.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&FT(n,r.target)){var a=IO.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===IO.toDOMNode(n,n)||bO(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&wO(u)&&IO.hasDOMNode(n,u)){var s=IO.toSlateNode(n,u);if(Hf.isElement(s)&&!n.isVoid(s))return}if(TO){var c=a.getSelection();null==c||c.removeAllRanges()}cO.delete(n)}}}},focus:function(e,t,n){var r=IO.toDOMNode(n,n),o=IO.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,FO&&e.target!==r?r.focus():cO.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&_T(n,e.target)&&wO(e.target)){var r=IO.toSlateNode(n,e.target),o=IO.findPath(n,r);if(qf.hasPath(n,o)&&Jf.get(n,o)===r){var i=qf.start(n,o),a=qf.end(n,o),u=qf.void(n,{at:i}),s=qf.void(n,{at:a});if(u&&s&&nd.equals(u[1],s[1])){var c=qf.range(n,i);Nd.select(n,c)}}}},compositionstart:function(e,t,n){if(FT(n,e.target)){var r=n.selection;if(r&&ld.isExpanded(r)&&(qf.deleteFragment(n),Promise.resolve().then(function(){PT(t,n,!0)})),r&&ld.isCollapsed(r)){var o=IO.toDOMRange(n,r).startContainer,i=o.textContent||"";jT.set(n,i),NT.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(FT(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(jO||FO)&&IO.cleanExposedTexNodeInSelectionBlock(n);for(var i=ld.isBackward(o)?o.focus:o.anchor,a=$S(qf.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=$S(qf.node(n,i.path.slice(0,u+1)),1)[0];if(Hf.isElement(s)&&((TO||FO)&&"link"===s.type||"code"===s.type)){IO.setNewKey(a);break}}var c=r.data;if(c){if(n.getConfig().maxLength){var l=IO.getLeftLengthOfMaxLength(n);l<c.length?(IO.toDOMRange(n,o).startContainer.textContent=jT.get(n)||"",l>0&&qf.insertText(n,c.slice(0,l)),t.changeViewState()):qf.insertText(n,c)}else qf.insertText(n,c);TO||setTimeout(function(){var e=n.selection;if(null!=e){var t=NT.get(n);null!=t&&IO.toDOMRange(n,e).startContainer!==t&&(t.textContent=jT.get(n)||"")}})}}}},compositionupdate:function(e,t,n){FT(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&FT(n,r.target)){if(function(e,t){var n=WA.get(e),r=n&&n.getMenus(),o=qA.get(e),i=o&&o.getMenus(),a=HS(HS({},r),i);for(var u in a){var s=a[u],c=s.hotkey;if(c&&jg(c,t)&&!s.isDisabled(e)){var l=s.getValue(e);s.exec(e,l)}}}(n,r),zT.isTab(r))return HT(r),void n.handleTab();if(zT.isRedo(r))return HT(r),void("function"==typeof n.redo&&n.redo());if(zT.isUndo(r))return HT(r),void("function"==typeof n.undo&&n.undo());if(zT.isMoveLineBackward(r))return HT(r),void Nd.move(n,{unit:"line",reverse:!0});if(zT.isMoveLineForward(r))return HT(r),void Nd.move(n,{unit:"line"});if(zT.isExtendLineBackward(r))return HT(r),void Nd.move(n,{unit:"line",edge:"focus",reverse:!0});if(zT.isExtendLineForward(r))return HT(r),void Nd.move(n,{unit:"line",edge:"focus"});if(zT.isMoveBackward(r))return HT(r),void(o&&ld.isCollapsed(o)?Nd.move(n,{reverse:!0}):Nd.collapse(n,{edge:"start"}));if(zT.isMoveForward(r))return HT(r),void(o&&ld.isCollapsed(o)?Nd.move(n):Nd.collapse(n,{edge:"end"}));if(zT.isMoveWordBackward(r))return HT(r),o&&ld.isExpanded(o)&&Nd.collapse(n,{edge:"focus"}),void Nd.move(n,{unit:"word",reverse:!0});if(zT.isMoveWordForward(r))return HT(r),o&&ld.isExpanded(o)&&Nd.collapse(n,{edge:"focus"}),void Nd.move(n,{unit:"word"});if(zT.isSelectAll(r))return HT(r),void n.selectAll();if(NO){if((jO||TO)&&o&&(zT.isDeleteBackward(r)||zT.isDeleteForward(r))&&ld.isCollapsed(o)){var i=Jf.parent(n,o.anchor.path);if(Hf.isElement(i)&&qf.isVoid(n,i)&&qf.isInline(n,i))return r.preventDefault(),void Nd.delete(n,{unit:"block"})}}else{if(zT.isBold(r)||zT.isItalic(r)||zT.isTransposeCharacter(r))return void HT(r);if(zT.isSplitBlock(r))return HT(r),void qf.insertBreak(n);if(zT.isDeleteBackward(r))return HT(r),void(o&&ld.isExpanded(o)?qf.deleteFragment(n,{direction:"backward"}):qf.deleteBackward(n));if(zT.isDeleteForward(r))return HT(r),void(o&&ld.isExpanded(o)?qf.deleteFragment(n,{direction:"forward"}):qf.deleteForward(n));if(zT.isDeleteLineBackward(r))return HT(r),void(o&&ld.isExpanded(o)?qf.deleteFragment(n,{direction:"backward"}):qf.deleteBackward(n,{unit:"line"}));if(zT.isDeleteLineForward(r))return HT(r),void(o&&ld.isExpanded(o)?qf.deleteFragment(n,{direction:"forward"}):qf.deleteForward(n,{unit:"line"}));if(zT.isDeleteWordBackward(r))return HT(r),void(o&&ld.isExpanded(o)?qf.deleteFragment(n,{direction:"backward"}):qf.deleteBackward(n,{unit:"word"}));if(zT.isDeleteWordForward(r))return HT(r),void(o&&ld.isExpanded(o)?qf.deleteFragment(n,{direction:"forward"}):qf.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!NO&&!n.getConfig().readOnly&&FT(n,e.target)){e.preventDefault();var r=e.key;qf.insertText(n,r)}},copy:function(e,t,n){var r=e;if(FT(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&&FT(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(ld.isExpanded(o))qf.deleteFragment(n);else{var a=Jf.parent(n,o.anchor.path);qf.isVoid(n,a)&&Nd.delete(n)}}},paste:function(e,t,n){dO.set(n,!0);var r=e;if(!n.getConfig().readOnly&&FT(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void dO.set(n,!1);if(!NO||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(_T(n,e.target)){var r=IO.toSlateNode(n,e.target);qf.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(_T(n,r.target)&&!n.getConfig().readOnly){var o=IO.toSlateNode(n,r.target),i=IO.findPath(n,o);if(qf.isVoid(n,o)||qf.void(n,{at:i,voids:!0})){var a=qf.range(n,i);Nd.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&&_T(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&_T(n,r.target)&&null!=o&&!(NO&&TO&&o.files.length>0)){r.preventDefault();var i=n.selection,a=IO.findEventRange(n,r);Nd.select(n,a),t.isDraggingInternally&&(i&&Nd.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},$T=1,UT=function(){function e(e){var t=this;this.id=$T++,this.$textArea=null,this.$progressBar=Yp('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Yp('<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=av(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=IO.findDocumentOrShadowRoot(t),a=i.activeElement,u=IO.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,cO.set(t,!0)):cO.delete(t),!s)return Nd.deselect(t);var c=s.anchorNode,l=s.focusNode,f=FT(t,c)||TT(t,c),d=FT(t,l)||TT(t,l);if(f&&d){var p=IO.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});Nd.select(t,p)}else Nd.deselect(t)}}(t,e)},100);var n=Yp(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=Yp('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Yp('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,PB(function(){var e=t.editorInstance,n=IO.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=$A.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&&($h(VT,function(n,o){t.on(o,function(t){n(t,e,r)})}),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",av(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-IO.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;DT(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=Yp('<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),PB(function(){PT(e,t)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function WT(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&&WT(t)}function GT(){return Yp('<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 qT(){return Yp('<div class="w-e-bar-divider"></div>')}function KT(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=BO?"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")}}}mS("match",function(e,t,n){return[function(t){var n=iw(this),r=null==t?void 0:Xw(t,e);return r?Vw(r,t,n):new RegExp(t)[e](rD(n))},function(e){var r=zw(this),o=rD(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return BS(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=BS(r,o));){var l=rD(u[0]);s[c]=l,""===l&&(r.lastIndex=wS(o,Xx(r.lastIndex),a)),c++}return 0===c?null:s}]});var YT=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Yp('<div class="w-e-bar-item"></div>'),this.$button=Yp('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,c=t.iconSvg,l=void 0===c?"":c,f=this.$button;if(l){var d=Yp(l);WT(d),f.append(d)}else f.text(a);KT(f,l,a,s,n),n&&l&&f.append(Yp('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),PB(function(){return r.init()})}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(t){t.preventDefault(),s_(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},e.prototype.exec=function(){var e=s_(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=s_(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=s_(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}(),XT=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return zS(t,e),t.prototype.onButtonClick=function(){},t}(YT),ZT=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=YA.get(e);null==t&&(t=new Set,YA.set(e,t)),t.add(this),XA.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=XA.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=XA.get(this);e&&e.emit("modalOrPanelHide")}},e}(),JT=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=Yp('<div class="w-e-drop-panel"></div>'),n}return zS(t,e),t.prototype.genSelfElem=function(){return null},t}(ZT),QT=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=GT();o.$button.append(i)}return o}return zS(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=s_(this);if(null==this.dropPanel){var n=new JT(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}(YT),e_=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=Yp('<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 zS(t,e),t.prototype.genSelfElem=function(){var e=this,t=Yp('<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=XA.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}(ZT);function t_(e,t,n){var r=Yp('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Yp('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function n_(e,t){var n=Yp('<div class="button-container"></div>'),r=Yp('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var r_=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=Yp("body"),o.modal=null,o.menu=n,o}return zS(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=s_(this),t=this.menu.getModalPositionNode(e);return Hf.isElement(t)?QF(e,t,"modal"):JF(e)},t.prototype.handleModal=function(){var e=s_(this),t=this.menu;if(null==this.modal){var n=new e_(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=s_(this),r=this.menu;if(null!=r.getModalContentElem){var o=IO.getTextarea(n),i=IO.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||eT(n,e.$elem),setTimeout(function(){n.blur()})}},t}(YT),o_=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=Yp('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",function(e){e.stopPropagation()}),r}return zS(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=Yp("<ul></ul>");e.forEach(function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Yp('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=Yp('<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(Yp('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)}),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(ZT),i_=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Yp('<div class="w-e-bar-item"></div>'),this.$button=Yp('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,c=t.hotkey,l=void 0===c?"":c;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),KT(f,s,i,l,n),this.$elem.append(f),this.menu=t,PB(function(){return r.init()})}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(t){t.preventDefault(),s_(e).hidePanelOrModal(),e.trigger()})},e.prototype.trigger=function(){var e=this,t=s_(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new o_(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=Yp(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=s_(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=s_(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=GT();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=s_(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}(),a_=function(){function e(e){this.$elem=Yp('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Yp('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Yp('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=Yp(n);WT(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=GT();i.append(u),o.append(i);var s=this.$container;o.append(s);var c=this.createObserver();this.observe(c)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver(function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each(function(e){Yp(e).hasClass("disabled")&&a++}),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}});return r},e}(),u_=new WeakMap;function s_(e){var t=KA.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function c_(e,t,n){void 0===n&&(n=!1);var r=u_.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new QT(e,t,n):a?new r_(e,t,n):new XT(e,t,n)}if("select"===o&&(r=new i_(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return u_.set(t,r),r}function l_(e,t){var n=e.selection;return null!=n&&!ld.isCollapsed(n)&&!IO.getSelectedElems(e).some(function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0})&&!!yd.isText(t)}var f_=function(){function e(){var e=this;this.$elem=Yp('<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=Zg(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&&Hf.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)},200),PB(function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",function(e){return e.preventDefault()},{passive:!1}),IO.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;PB(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=qT();n.append(r)}})},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=MO[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=c_(e,r);this.hoverbarItems.push(i),KA.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Hf.isElement(e)){var r=QF(t,e,"bar");return n.css(r),void eT(t,n)}if(yd.isText(e))return r=JF(t),n.css(r),void eT(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,c=a||function(e,t){return IO.checkNodeType(t,o)},l=$S(qf.nodes(e,{match:function(t){return c(e,t)},universal:!0}),1),f=l[0];if(null!=f)return n=f[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=GA.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=l_),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=IO.findPath(null,e),r=IO.findPath(null,t);return nd.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function d_(e,t,n,r){if(tO.set(e,t),nO.set(e,n),Hf.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach(function(t,n){return d_(t,n,e,r)}),qf.isVoid(r,e)){var i=$S(Jf.texts(e),1),a=$S(i[0],1)[0];tO.set(a,0),nO.set(a,e)}}}function p_(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,u=e.plugins,s=void 0===u?[]:u,c=function(e){var t=e,n=t.apply;return t.history={undos:[],redos:[]},t.redo=function(){var e=t.history,n=e.redos;if(n.length>0){var r=n[n.length-1];tD.withoutSaving(t,function(){qf.withoutNormalizing(t,function(){var e,n=E(r);try{for(n.s();!(e=n.n()).done;){var o=e.value;t.apply(o)}}catch(i){n.e(i)}finally{n.f()}})}),e.redos.pop(),e.undos.push(r)}},t.undo=function(){var e=t.history,n=e.undos;if(n.length>0){var r=n[n.length-1];tD.withoutSaving(t,function(){qf.withoutNormalizing(t,function(){var e,n=E(r.map(td.inverse).reverse());try{for(n.s();!(e=n.n()).done;){var o=e.value;t.apply(o)}}catch(i){n.e(i)}finally{n.f()}})}),e.redos.push(r),e.undos.pop()}},t.apply=function(e){var r=t.operations,o=t.history,i=o.undos,a=i[i.length-1],u=a&&a[a.length-1],s=function(e,t){return!(!t||"set_selection"!==e.type||"set_selection"!==t.type)}(e,u),c=tD.isSaving(t),l=tD.isMerging(t);if(null==c&&(c=function(e){return"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties}(e)),c){if(null==l&&(l=null!=a&&(0!==r.length||function(e,t){return"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!nd.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!nd.equals(e.path,t.path))}(e,u)||s)),a&&l)s&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();(function(e){return"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=IO.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=IO.getLeftLengthOfMaxLength(t);n<=0||n<Jf.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(IO.getLeftLengthOfMaxLength(t)<Jf.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=IO.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===gO.TEXT_NODE?e+(t.textContent||""):n===gO.ELEMENT_NODE?AF.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=KF(t);if(r.on(e,n),"destroyed"===e&&XF(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),XF(t,o)}},t.once=function(e,n){KF(t).once(e,n)},t.off=function(e,n){KF(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=KF(t);o.emit.apply(o,US([e],$S(n))),"destroyed"===e&&(function(e){return YF.get(e)||new Set}(t).forEach(function(e){return o.off("destroyed",e)}),function(e){YF.set(e,new Set)}(t))},t}(function(e){var t=e;return t.select=function(e){Nd.select(t,e)},t.deselect=function(){var n=t.selection,r=IO.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&Nd.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||Nd.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=lO.get(t);null!=e&&(t.focus(),Nd.select(t,e))},t.getSelectionPosition=function(){return JF(t)},t.getNodePosition=function(e){return QF(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=$S(ld.edges(e),2),r=n[0],o=n[1],i=$S(qf.edges(t,[]),2),a=i[0],u=i[1];return!(!ad.equals(r,a)||!ad.equals(o,u))},t.selectAll=function(){var e=qf.start(t,[]),n=qf.end(t,[]);Nd.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,c,l,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=VS(qf.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=$S(p.value,2),v=h[0],g=h[1],y=IO.findKey(t,v);f.push([g,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=VS(qf.levels(t,{at:nd.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=$S(b.value,2);v=w[0],g=w[1],y=IO.findKey(t,v),f.push([g,y])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var x=VS(qf.levels(t,{at:nd.common(nd.parent(e.path),nd.parent(e.newPath))})),E=x.next();!E.done;E=x.next()){var D=$S(E.value,2);v=D[0],g=D[1],y=IO.findKey(t,v),f.push([g,y])}}catch(e){u={error:e}}finally{try{E&&!E.done&&(s=x.return)&&s.call(x)}finally{if(u)throw u.error}}}o(e);try{for(var C=VS(f),S=C.next();!S.done;S=C.next()){var A=$S(S.value,2);g=A[0],y=A[1],v=$S(qf.node(t,g),1)[0],uO.set(v,y)}}catch(e){c={error:e}}finally{try{S&&!S.done&&(l=C.return)&&l.call(C)}finally{if(c)throw c.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&ld.isCollapsed(e.selection)){var r=qf.above(e,{match:function(t){return qf.isBlock(e,t)},at:e.selection});if(r){var o=$S(r,2)[1],a=qf.range(e,o,e.selection.anchor),u=function(e,t){var n=qf.range(e,ld.end(t)),r=Array.from(qf.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(LB(e,qf.range(e,r[o]),n))return qf.range(e,r[o],n);if(r.length<2)return qf.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)LB(e,qf.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return qf.range(e,r[i],n)}(t,a);ld.isCollapsed(u)||Nd.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&lO.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 jB(e,t)}).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map(function(e){return Jf.string(e)}).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":qf.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=qf.nodes(t,{at:[],universal:!0});try{for(var u=VS(a),s=u.next();!s.done;s=u.next()){var c=$S(s.value,1)[0];if(Hf.isElement(c)&&(n?c.type.indexOf(e)>=0:c.type===e)){var l=NB(IO.findKey(t,c).id);i.push(HS(HS({},c),{id:l}))}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(Hf.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(yd.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){Nd.delete(t,{at:{anchor:qf.start(t,[]),focus:qf.end(t,[])}}),0===t.children.length&&Nd.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return IO.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===gO.TEXT_NODE||t===gO.ELEMENT_NODE&&!AF.has(n.toLowerCase())}),0!==o.length){var i=t.selection;if(null!=i){var a=null;IO.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!==gO.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(RB.includes(r.toLowerCase()))s=!0;else for(var c in HB)if(a.matches(c)){s=!0;break}if(s){var l=mF(Yp(a),t);return Array.isArray(l)?(l.forEach(function(e){return OF(t,e)}),u++):(OF(t,l),u++),void(IO.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;IO.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&&IO.isEmptyPath(t,a)&&Nd.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=wF(t,e);if(Nd.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(qf.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in MO)e.push(t);return e},t.getConfig=function(){var e=ZA.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(){var e=kF(function(){var e={children:[],operations:[],selection:null,marks:null,isInline:function(){return!1},isVoid:function(){return!1},onChange:function(){},apply:function(t){var n,r=E(qf.pathRefs(e));try{for(r.s();!(n=r.n()).done;){var o=n.value;rd.transform(o,t)}}catch(x){r.e(x)}finally{r.f()}var i,a=E(qf.pointRefs(e));try{for(a.s();!(i=a.n()).done;){var u=i.value;ud.transform(u,t)}}catch(x){a.e(x)}finally{a.f()}var s,c=E(qf.rangeRefs(e));try{for(c.s();!(s=c.n()).done;){var l=s.value;fd.transform(l,t)}}catch(x){c.e(x)}finally{c.f()}var f,d=new Set,p=[],h=function(e){if(e){var t=e.join(",");d.has(t)||(d.add(t),p.push(e))}},v=nf.get(e)||[],g=ff(t),y=E(v);try{for(y.s();!(f=y.n()).done;){var m=f.value;h(nd.transform(m,t))}}catch(x){y.e(x)}finally{y.f()}var b,w=E(g);try{for(w.s();!(b=w.n()).done;)h(b.value)}catch(x){w.e(x)}finally{w.f()}nf.set(e,p),Nd.transform(e,t),e.operations.push(t),qf.normalize(e),"set_selection"===t.type&&(e.marks=null),rf.get(e)||(rf.set(e,!0),Promise.resolve().then(function(){rf.set(e,!1),e.onChange(),e.operations=[]}))},addMark:function(t,n){var r=e.selection;if(r)if(ld.isExpanded(r))Nd.setNodes(e,w({},t,n),{match:yd.isText,split:!0});else{var o=lf(lf({},qf.marks(e)||{}),{},w({},t,n));e.marks=o,rf.get(e)||e.onChange()}},deleteBackward:function(t){var n=e.selection;n&&ld.isCollapsed(n)&&Nd.delete(e,{unit:t,reverse:!0})},deleteForward:function(t){var n=e.selection;n&&ld.isCollapsed(n)&&Nd.delete(e,{unit:t})},deleteFragment:function(t){var n=e.selection;n&&ld.isExpanded(n)&&Nd.delete(e,{reverse:"backward"===t})},getFragment:function(){var t=e.selection;return t?Jf.fragment(e,t):[]},insertBreak:function(){Nd.splitNodes(e,{always:!0})},insertFragment:function(t){Nd.insertFragment(e,t)},insertNode:function(t){Nd.insertNodes(e,t)},insertText:function(t){var n=e.selection,r=e.marks;if(n){if(r){var o=lf({text:t},r);Nd.insertNodes(e,o)}else Nd.insertText(e,t);e.marks=null}},normalizeNode:function(t){var n=b(t,2),r=n[0],o=n[1];if(!yd.isText(r))if(Hf.isElement(r)&&0===r.children.length)Nd.insertNodes(e,{text:""},{at:o.concat(0),voids:!0});else for(var i=!qf.isEditor(r)&&Hf.isElement(r)&&(e.isInline(r)||0===r.children.length||yd.isText(r.children[0])||e.isInline(r.children[0])),a=0,u=0;u<r.children.length;u++,a++){var s=Jf.get(e,o);if(!yd.isText(s)){var c=r.children[u],l=s.children[a-1],f=u===r.children.length-1;(yd.isText(c)||Hf.isElement(c)&&e.isInline(c))!==i?(Nd.removeNodes(e,{at:o.concat(a),voids:!0}),a--):Hf.isElement(c)?e.isInline(c)&&(null!=l&&yd.isText(l)?f&&(Nd.insertNodes(e,{text:""},{at:o.concat(a+1),voids:!0}),a++):(Nd.insertNodes(e,{text:""},{at:o.concat(a),voids:!0}),a++)):null!=l&&yd.isText(l)&&(yd.equals(c,l,{loose:!0})?(Nd.mergeNodes(e,{at:o.concat(a),voids:!0}),a--):""===l.text?(Nd.removeNodes(e,{at:o.concat(a-1),voids:!0}),a--):""===c.text&&(Nd.removeNodes(e,{at:o.concat(a),voids:!0}),a--))}}},removeMark:function(t){var n=e.selection;if(n)if(ld.isExpanded(n))Nd.unsetNodes(e,t,{match:yd.isText,split:!0});else{var r=lf({},qf.marks(e)||{});delete r[t],e.marks=r,rf.get(e)||e.onChange()}}};return e}());return e.id="wangEditor-"+LO++,e.isDestroyed=!1,e.isFullScreen=!1,e.focus=function(t){if(IO.toDOMNode(e,e).focus({preventScroll:!0}),cO.set(e,!0),t){var n=qf.end(e,[]);Nd.select(e,n)}else{var r=lO.get(e);r?Nd.select(e,r):Nd.select(e,qf.start(e,[]))}},e.isFocused=function(){return!!cO.get(e)},e.blur=function(){IO.toDOMNode(e,e).blur(),Nd.deselect(e),cO.set(e,!1)},e.updateView=function(){IO.getTextarea(e).changeViewState();var t=IO.getToolbar(e);t&&t.changeToolbarState();var n=IO.getHoverbar(e);n&&n.changeHoverbarState()},e.destroy=function(){if(!e.isDestroyed){var t=IO.getTextarea(e);t.destroy(),VA.delete(e),$A.delete(t);var n=IO.getToolbar(e);n&&(n.destroy(),WA.delete(e),UA.delete(n));var r=IO.getHoverbar(e);r&&(r.destroy(),qA.delete(e),GA.delete(r)),e.isDestroyed=!0,e.emit("destroyed")}},e.scrollToElem=function(t){if(e.getConfig().scroll){var n=Yp("#"+t);if(0!==n.length){var r=n[0];if(!IO.hasDOMNode(e,r))return void 0;var o=IO.getTextarea(e),i=o.$textAreaContainer,a=o.$scroll,u=n.offset().top,s=i.offset().top;a[0].scrollBy({top:u-s,behavior:"smooth"})}}else{0}},e.showProgressBar=function(t){t<1||IO.getTextarea(e).changeProgress(t)},e.hidePanelOrModal=function(){var t=YA.get(e);null!=t&&t.forEach(function(e){return e.hide()})},e.enable=function(){e.getConfig().readOnly=!1,e.updateView()},e.disable=function(){e.getConfig().readOnly=!0,e.updateView()},e.isDisabled=function(){return e.getConfig().readOnly},e.toDOMNode=function(t){return IO.toDOMNode(e,t)},e.fullScreen=function(){if(!e.isFullScreen){var t=null,n=IO.getToolbar(e);n&&(t=n.$box);var r=IO.getTextarea(e).$box.parent();if(t&&t.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()),e.isFullScreen=!0,e.emit("fullScreen")}},e.unFullScreen=function(){if(e.isFullScreen){var t=IO.getTextarea(e).$box.parent();setTimeout(function(){t.removeClass("w-e-full-screen-container"),e.isFullScreen=!1,e.emit("unFullScreen")},200)}},e.getEditableContainer=function(){return IO.getTextarea(e).$textAreaContainer[0]},e}()))))));if(n&&function(e,t){return bF(e,"data-w-e-textarea",t)}(c,n))throw new Error("Repeated create editor by selector '"+n+"'");var l=function(e){void 0===e&&(e={});var t=Jg(RO),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return $h(t,function(e,t){n[t]=HS(HS({},e),o[t]||{})}),delete e.MENU_CONF,HS({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);ZA.set(c,l);var f=l.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach(function(e){c=e(c)}),null!=a&&(c.children=wF(c,a)),i&&i.length&&(c.children=i),0===c.children.length&&(c.children=[{type:"paragraph",children:[{text:""}]}]),IO.normalizeContent(c),n){var p=new UT(n);VA.set(c,p),$A.set(p,c),p.changeViewState(),PB(function(){var e=p.$scroll;null!=e&&e.height()});var h=void 0;Object.keys(d).length>0&&(h=new f_,GA.set(h,c),qA.set(c,h)),c.on("change",function(){c.hidePanelOrModal()}),c.on("scroll",function(){c.hidePanelOrModal()})}else c.children.forEach(function(e,t){return d_(e,t,c,c)});var v=l.onCreated,g=l.onDestroyed;return v&&c.on("created",function(){return v(c)}),g&&c.on("destroyed",function(){return g(c)}),PB(function(){return c.emit("created")}),c}var h_=VC("splice"),v_=Kb.TypeError,g_=Math.max,y_=Math.min;KE({target:"Array",proto:!0,forced:!h_},{splice:function(e,t){var n,r,o,i,a,u,s=uw(this),c=Zx(s),l=OE(e,c),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=c-l):(n=f-2,r=y_(g_(Kx(t),0),c-l)),c+n-r>9007199254740991)throw v_("Maximum allowed length exceeded");for(o=cE(s,r),i=0;i<r;i++)(a=l+i)in s&&MD(o,i,s[a]);if(o.length=r,n<r){for(i=l;i<c-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=c;i>c-r+n;i--)delete s[i-1]}else if(n>r)for(i=c-r;i>l;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+l]=arguments[i+2];return s.length=c-r+n,o}});var m_=function(){function e(e,t){var n=this;this.$toolbar=Yp('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Zg(function(){n.toolbarItems.forEach(function(e){e.changeMenuState()})},200),this.config=t;var r=Yp(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),PB(function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,c=void 0===s?[]:s,l=Jg(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach(function(e,t){l.splice(u.index+t,0,e)}));var f=l.filter(function(e){if("string"==typeof e){if(c.includes(e))return!1}else if(c.includes(e.key))return!1;return!0}),d=f.length;f.forEach(function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=qT();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 a_(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 a_,o=this.menus,i=o[e];if(null==i){var a=MO[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}var u=c_(e,i,r);this.toolbarItems.push(u),KA.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=UA.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}(),b_=Ox.EXISTS,w_=rx.f,x_=Function.prototype,E_=rw(x_.toString),D_=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,C_=rw(D_.exec);function S_(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,c=e.meta,l=void 0===c?{}:c,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,v=e.withCredentials,g=void 0!==v&&v,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,x=e.onSuccess,E=void 0===x?function(e,t){}:x,D=e.onError,C=void 0===D?function(e,t,n){}:D,S=e.onProgress,A=void 0===S?function(e){}:S;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=$S(e.split("#"),2),r=n[0],o=n[1],i=[];$h(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,l));var k=new wm({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:l}).use(Vb,{endpoint:O,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:m});return k.on("upload-success",function(e,t){var n=t.body,r=void 0===n?{}:n;try{E(e,r)}catch(e){}k.removeFile(e.id)}),k.on("progress",function(e){e<1||A(e)}),k.on("upload-error",function(e,t,n){try{C(e,t,n)}catch(e){}k.removeFile(e.id)}),k.on("restriction-failed",function(e,t){try{C(e,t)}catch(e){}k.removeFile(e.id)}),k}function A_(e){return A_="function"==typeof Symbol&&"symbol"==D(Symbol.iterator)?function(e){return D(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":D(e)},A_(e)}function O_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k_(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){O_(e,t,n[t])})}return e}function B_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F_(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 T_(e,t,n){return t&&F_(e.prototype,t),n&&F_(e,n),e}function __(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P_(e,t){if(t&&("object"===A_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return __(e)}function j_(e){return j_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},j_(e)}function N_(e,t){return N_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},N_(e,t)}function I_(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&N_(e,t)}_w&&!b_&&w_(x_,"name",{configurable:!0,get:function(){try{return C_(D_,E_(this))[1]}catch(z){return""}}});var L_={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]}},R_=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};B_(this,e),this.init(t,n)}return T_(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||L_,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,k_({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),M_=function(){function e(){B_(this,e),this.observers={}}return T_(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];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)});this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function z_(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}function H_(e){return null==e?"":""+e}function V_(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=V_(e,t,Object);r.obj[r.k]=n}function U_(e,t){var n=V_(e,t),r=n.obj,o=n.k;if(r)return r[o]}function W_(e,t,n){var r=U_(e,n);return void 0!==r?r:U_(t,n)}function G_(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]):G_(e[r],t[r],n):e[r]=t[r]);return e}function q_(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var K_={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Y_(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return K_[e]}):e}var X_="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function Z_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var c=r.slice(i+a).join(n);return c?Z_(s,c,n):void 0}o=o[r[i]]}return o}}var J_=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return B_(this,e),n=P_(this,j_(e).call(this)),X_&&M_.call(__(n)),n.data=t||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return I_(e,M_),T_(e,[{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=U_(this.data,a);return u||!i||"string"!=typeof n?u:Z_(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=U_(this.data,a)||{};r?G_(u,n,o):u=k_({},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?k_({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),e}(),Q_={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}},eP={},tP=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return B_(this,e),n=P_(this,j_(e).call(this)),X_&&M_.call(__(n)),function(e,t,n){e.forEach(function(e){t[e]&&(n[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,__(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=R_.create("translator"),n}return I_(e,M_),T_(e,[{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(t,n,r){var o=this;if("object"!==A_(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(t[t.length-1],n),u=a.key,s=a.namespaces,c=s[s.length-1],l=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return c+d+u}return u}var p=this.resolve(t,n),h=p&&p.res,v=p&&p.usedKey||u,g=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&h&&("string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof m||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,h,k_({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var w="[object Array]"===y,x=w?[]:{},E=w?g:v;for(var D in h)if(Object.prototype.hasOwnProperty.call(h,D)){var C="".concat(E).concat(i).concat(D);x[D]=this.translate(C,k_({},n,{joinArrays:!1,ns:s})),x[D]===C&&(x[D]=h[D])}h=x}}else if(b&&"string"==typeof m&&"[object Array]"===y)(h=h.join(m))&&(h=this.extendTranslation(h,t,n,r));else{var S=!1,A=!1,O=void 0!==n.count&&"string"!=typeof n.count,k=e.hasDefaultValue(n),B=O?this.pluralResolver.getSuffix(l,n.count):"",F=n["defaultValue".concat(B)]||n.defaultValue;!this.isValidLookup(h)&&k&&(S=!0,h=F),this.isValidLookup(h)||(A=!0,h=u);var T=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&A?void 0:h,_=k&&F!==h&&this.options.updateMissing;if(A||S||_){if(this.logger.log(_?"updateKey":"missingKey",l,c,u,_?F:h),i){var P=this.resolve(u,k_({},n,{keySeparator:!1}));P&&P.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 j=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var I=0;I<N.length;I++)j.push(N[I]);else"all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);var L=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,c,t,_?r:T,_,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,c,t,_?r:T,_,n),o.emit("missingKey",e,c,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?j.forEach(function(e){o.pluralResolver.getSuffixes(e).forEach(function(t){L([e],u+t,n["defaultValue".concat(t)]||F)})}):L(j,u,F))}h=this.extendTranslation(h,t,n,p,r),A&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(u)),(A||S)&&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(k_({},n,{interpolation:k_({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=k_({},this.options.interpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),u){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=Q_.handle(d,e,t,this.options&&this.options.postProcessPassResolved?k_({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),c=s.key;n=c;var l=s.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,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);l.forEach(function(e){a.isValidLookup(t)||(i=e,!eP["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(eP["".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,l=c,p=[l];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,c,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(l+i),d&&p.push(l+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(l+=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,12)&&void 0!==e[n])return!0;return!1}}]),e}();function nP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var rP=function(){function e(t){B_(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=R_.create("languageUtils")}return T_(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]=nP(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]=nP(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=nP(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}(),oP=[{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}],iP={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)}};var aP=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};B_(this,e),this.languageUtils=t,this.options=n,this.logger=R_.create("pluralResolver"),this.rules=function(){var e={};return oP.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:iP[t.fc]}})}),e}()}return T_(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}(),uP=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};B_(this,e),this.logger=R_.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return T_(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:Y_,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?q_(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?q_(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?q_(t.nestingPrefix):t.nestingPrefixEscaped||q_("$t("),this.nestingSuffix=t.nestingSuffix?q_(t.nestingSuffix):t.nestingSuffixEscaped||q_(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(u.formatSeparator)<0){var o=W_(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,k_({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),c=i.join(u.formatSeparator).trim();return u.format(W_(t,s,a),c,n,k_({},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 c(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?c(u.escape(e)):c(e)}}];return p.forEach(function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=l(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(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=H_(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=k_({},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=k_({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=l.shift(),s=l,c=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=H_(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=s.reduce(function(e,t){return o.format(e,t,i.lng,k_({},i,{interpolationkey:n[1].trim()}))},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),sP=function(){function e(t,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return B_(this,e),o=P_(this,j_(e).call(this)),X_&&M_.call(__(o)),o.backend=t,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=R_.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return I_(e,M_),T_(e,[{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){var r=V_(e,t,Object),o=r.obj,i=r.k;o[i]=o[i]||[],o[i].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,k_({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),e}();function cP(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 lP(){}var fP=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(B_(this,e),t=P_(this,j_(e).call(this)),X_&&M_.call(__(t)),t.options=cP(n),t.services={},t.logger=R_,t.modules={external:[]},r&&!t.isInitialized&&!n.isClone){if(!t.options.initImmediate)return t.init(n,r),P_(t,__(t));setTimeout(function(){t.init(n,r)},0)}return t}return I_(e,M_),T_(e,[{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=k_({},{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"===A_(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===A_(e[2])||"object"===A_(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}},this.options,cP(t)),this.format=this.options.interpolation.format,n||(n=lP),!this.options.isClone){this.modules.logger?R_.init(r(this.modules.logger),this.options):R_.init(null,this.options);var o=new rP(this.options);this.store=new J_(this.options.resources,this.options);var i=this.services;i.logger=R_,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new aP(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new uP(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new sP(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 tP(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");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var u=z_(),s=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),u.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?s():setTimeout(s,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lP,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(r)i(r);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return i(e)});this.options.preload&&this.options.preload.forEach(function(e){return i(e)}),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=z_();return e||(e=this.languages),t||(t=this.options.ns),n||(n=lP),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&&Q_.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=z_();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"!==A_(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=k_({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var c=r.options.keySeparator||".",l=n?"".concat(n).concat(c).concat(t):t;return r.t(l,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=z_();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=z_();"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(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lP,o=k_({},this.options,n,{isClone:!0}),i=new e(o);return["store","services","language"].forEach(function(e){i[e]=t[e]}),i.services=k_({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new tP(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}}}]),e}(),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 vP=Ba?{}.toString:function(){return"[object "+Pa(this)+"]"};Ba||Zi(Object.prototype,"toString",vP,{unsafe:!0});var gP=Array.isArray||function(e){return"Array"==xo(e)},yP=function(){},mP=[],bP=Fo("Reflect","construct"),wP=/^\s*(?:class|function)\b/,xP=mo(wP.exec),EP=!wP.exec(yP),DP=function(e){if(!ko(e))return!1;try{return bP(yP,mP,e),!0}catch(e){return!1}},CP=!bP||oo(function(){var e;return DP(DP.call)||!DP(Object)||!DP(function(){e=!0})||e})?function(e){if(!ko(e))return!1;switch(Pa(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return EP||!!xP(wP,Pi(e))}:DP,SP=li("species"),AP=ro.Array,OP=function(e,t){return new(function(e){var t;return gP(e)&&(t=e.constructor,(CP(t)&&(t===AP||gP(t.prototype))||Bo(t)&&null===(t=t[SP]))&&(t=void 0)),void 0===t?AP:t}(e))(0===t?0:t)},kP=mo([].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,c,l,f){for(var d,p,h=Qo(s),v=Co(h),g=Hu(c,l),y=aa(v),m=0,b=f||OP,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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}}(0),FP=function(){var e=[].forEach;return!!e&&oo(function(){e.call(null,function(){throw 1},1)})}(),TP=FP?[].forEach:function(e){return BP(this,e,arguments.length>1?arguments[1]:void 0)},_P=function(e){if(e&&e.forEach!==TP)try{ki(e,"forEach",TP)}catch(t){e.forEach=TP}};for(var PP in Ps)Ps[PP]&&_P(ro[PP]&&ro[PP].prototype);_P(Is),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 jP={type:"paragraph",renderElem:function(e,t,n){return Mv("p",null,t)}},NP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function IP(e){var t={exports:{}};return e(t,t.exports),t.exports}var LP,RP,MP=function(e){return e&&e.Math==Math&&e},zP=MP("object"==("undefined"==typeof globalThis?"undefined":D(globalThis))&&globalThis)||MP("object"==("undefined"==typeof window?"undefined":D(window))&&window)||MP("object"==("undefined"==typeof self?"undefined":D(self))&&self)||MP("object"==D(NP)&&NP)||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]}),$P=Function.prototype.call,UP=$P.bind?$P.bind($P):function(){return $P.apply($P,arguments)},WP={}.propertyIsEnumerable,GP=Object.getOwnPropertyDescriptor,qP=GP&&!WP.call({1:2},1)?function(e){var t=GP(this,e);return!!t&&t.enumerable}:WP,KP={f:qP},YP=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},XP=Function.prototype,ZP=XP.bind,JP=XP.call,QP=ZP&&ZP.bind(JP),ej=ZP?function(e){return e&&QP(JP,e)}:function(e){return e&&function(){return JP.apply(e,arguments)}},tj=ej({}.toString),nj=ej("".slice),rj=function(e){return nj(tj(e),8,-1)},oj=zP.Object,ij=ej("".split),aj=HP(function(){return!oj("z").propertyIsEnumerable(0)})?function(e){return"String"==rj(e)?ij(e,""):oj(e)}:oj,uj=zP.TypeError,sj=function(e){if(null==e)throw uj("Can't call method on "+e);return e},cj=function(e){return aj(sj(e))},lj=function(e){return"function"==typeof e},fj=function(e){return"object"==D(e)?null!==e:lj(e)},dj=function(e,t){return arguments.length<2?function(e){return lj(e)?e:void 0}(zP[e]):zP[e]&&zP[e][t]},pj=ej({}.isPrototypeOf),hj=dj("navigator","userAgent")||"",vj=zP.process,gj=zP.Deno,yj=vj&&vj.versions||gj&&gj.version,mj=yj&&yj.v8;mj&&(RP=(LP=mj.split("."))[0]>0&&LP[0]<4?1:+(LP[0]+LP[1])),!RP&&hj&&(!(LP=hj.match(/Edge\/(\d+)/))||LP[1]>=74)&&(LP=hj.match(/Chrome\/(\d+)/))&&(RP=+LP[1]);var bj=RP,wj=!!Object.getOwnPropertySymbols&&!HP(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bj&&bj<41}),xj=wj&&!Symbol.sham&&"symbol"==D(Symbol.iterator),Ej=zP.Object,Dj=xj?function(e){return"symbol"==D(e)}:function(e){var t=dj("Symbol");return lj(t)&&pj(t.prototype,Ej(e))},Cj=zP.String,Sj=function(e){try{return Cj(e)}catch(e){return"Object"}},Aj=zP.TypeError,Oj=function(e){if(lj(e))return e;throw Aj(Sj(e)+" is not a function")},kj=function(e,t){var n=e[t];return null==n?void 0:Oj(n)},Bj=zP.TypeError,Fj=Object.defineProperty,Tj=function(e,t){try{Fj(zP,e,{value:t,configurable:!0,writable:!0})}catch(H){zP[e]=t}return t},_j=zP["__core-js_shared__"]||Tj("__core-js_shared__",{}),Pj=IP(function(e){(e.exports=function(e,t){return _j[e]||(_j[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),jj=zP.Object,Nj=function(e){return jj(sj(e))},Ij=ej({}.hasOwnProperty),Lj=Object.hasOwn||function(e,t){return Ij(Nj(e),t)},Rj=0,Mj=Math.random(),zj=ej(1..toString),Hj=function(e){return"Symbol("+(void 0===e?"":e)+")_"+zj(++Rj+Mj,36)},Vj=Pj("wks"),$j=zP.Symbol,Uj=$j&&$j.for,Wj=xj?$j:$j&&$j.withoutSetter||Hj,Gj=function(e){if(!Lj(Vj,e)||!wj&&"string"!=typeof Vj[e]){var t="Symbol."+e;wj&&Lj($j,e)?Vj[e]=$j[e]:Vj[e]=xj&&Uj?Uj(t):Wj(t)}return Vj[e]},qj=zP.TypeError,Kj=Gj("toPrimitive"),Yj=function(e){var t=function(e){if(!fj(e)||Dj(e))return e;var t,n=kj(e,Kj);if(n){if(t=UP(n,e,"string"),!fj(t)||Dj(t))return t;throw qj("Can't convert object to primitive value")}return function(e){var t,n;if(lj(t=e.toString)&&!fj(n=UP(t,e)))return n;if(lj(t=e.valueOf)&&!fj(n=UP(t,e)))return n;throw Bj("Can't convert object to primitive value")}(e)}(e);return Dj(t)?t:t+""},Xj=zP.document,Zj=fj(Xj)&&fj(Xj.createElement),Jj=function(e){return Zj?Xj.createElement(e):{}},Qj=!VP&&!HP(function(){return 7!=Object.defineProperty(Jj("div"),"a",{get:function(){return 7}}).a}),eN=Object.getOwnPropertyDescriptor,tN={f:VP?eN:function(e,t){if(e=cj(e),t=Yj(t),Qj)try{return eN(e,t)}catch(e){}if(Lj(e,t))return YP(!UP(KP.f,e,t),e[t])}},nN=zP.String,rN=zP.TypeError,oN=function(e){if(fj(e))return e;throw rN(nN(e)+" is not an object")},iN=zP.TypeError,aN=Object.defineProperty,uN={f:VP?aN:function(e,t,n){if(oN(e),t=Yj(t),oN(n),Qj)try{return aN(e,t,n)}catch(e){}if("get"in n||"set"in n)throw iN("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},sN=VP?function(e,t,n){return uN.f(e,t,YP(1,n))}:function(e,t,n){return e[t]=n,e},cN=ej(Function.toString);lj(_j.inspectSource)||(_j.inspectSource=function(e){return cN(e)});var lN,fN,dN,pN=_j.inspectSource,hN=zP.WeakMap,vN=lj(hN)&&/native code/.test(pN(hN)),gN=Pj("keys"),yN=function(e){return gN[e]||(gN[e]=Hj(e))},mN={},bN=zP.TypeError,wN=zP.WeakMap;if(vN||_j.state){var xN=_j.state||(_j.state=new wN),EN=ej(xN.get),DN=ej(xN.has),CN=ej(xN.set);lN=function(e,t){if(DN(xN,e))throw new bN("Object already initialized");return t.facade=e,CN(xN,e,t),t},fN=function(e){return EN(xN,e)||{}},dN=function(e){return DN(xN,e)}}else{var SN=yN("state");mN[SN]=!0,lN=function(e,t){if(Lj(e,SN))throw new bN("Object already initialized");return t.facade=e,sN(e,SN,t),t},fN=function(e){return Lj(e,SN)?e[SN]:{}},dN=function(e){return Lj(e,SN)}}var AN={get:fN,enforce:function(e){return dN(e)?fN(e):lN(e,{})}},ON=Function.prototype,kN=VP&&Object.getOwnPropertyDescriptor,BN=Lj(ON,"name"),FN={EXISTS:BN,PROPER:BN&&"something"===function(){}.name,CONFIGURABLE:BN&&(!VP||VP&&kN(ON,"name").configurable)},TN=IP(function(e){var t=FN.CONFIGURABLE,n=AN.get,r=AN.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;lj(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Lj(i,"name")||t&&i.name!==f)&&sN(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==zP?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:sN(e,n,i)):c?e[n]=i:Tj(n,i)})(Function.prototype,"toString",function(){return lj(this)&&n(this).source||pN(this)})}),_N=Math.ceil,PN=Math.floor,jN=function(e){var t=+e;return t!=t||0===t?0:(t>0?PN:_N)(t)},NN=Math.max,IN=Math.min,LN=function(e,t){var n=jN(e);return n<0?NN(n+t,0):IN(n,t)},RN=Math.min,MN=function(e){return e>0?RN(jN(e),9007199254740991):0},zN=function(e){return MN(e.length)},HN=function(e){return function(t,n,r){var o,i=cj(t),a=zN(i),u=LN(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},VN={includes:HN(!0),indexOf:HN(!1)},$N=VN.indexOf,UN=ej([].push),WN=function(e,t){var n,r=cj(e),o=0,i=[];for(n in r)!Lj(mN,n)&&Lj(r,n)&&UN(i,n);for(;t.length>o;)Lj(r,n=t[o++])&&(~$N(i,n)||UN(i,n));return i},GN=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qN=GN.concat("length","prototype"),KN={f:Object.getOwnPropertyNames||function(e){return WN(e,qN)}},YN={f:Object.getOwnPropertySymbols},XN=ej([].concat),ZN=dj("Reflect","ownKeys")||function(e){var t=KN.f(oN(e)),n=YN.f;return n?XN(t,n(e)):t},JN=function(e,t){for(var n=ZN(t),r=uN.f,o=tN.f,i=0;i<n.length;i++){var a=n[i];Lj(e,a)||r(e,a,o(t,a))}},QN=/#|\.prototype\./,eI=function(e,t){var n=nI[tI(e)];return n==oI||n!=rI&&(lj(t)?HP(t):!!t)},tI=eI.normalize=function(e){return String(e).replace(QN,".").toLowerCase()},nI=eI.data={},rI=eI.NATIVE="N",oI=eI.POLYFILL="P",iI=eI,aI=tN.f,uI=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?zP:c?zP[u]||Tj(u,{}):(zP[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=aI(n,r))&&a.value:n[r],!iI(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(D(i)==D(o))continue;JN(i,o)}(e.sham||o&&o.sham)&&sN(i,"sham",!0),TN(n,r,i,e)}},sI=ej(ej.bind),cI=Array.isArray||function(e){return"Array"==rj(e)},lI={};lI[Gj("toStringTag")]="z";var fI="[object z]"===String(lI),dI=Gj("toStringTag"),pI=zP.Object,hI="Arguments"==rj(function(){return arguments}()),vI=fI?rj: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=pI(e),dI))?n:hI?rj(t):"Object"==(r=rj(t))&&lj(t.callee)?"Arguments":r},gI=function(){},yI=[],mI=dj("Reflect","construct"),bI=/^\s*(?:class|function)\b/,wI=ej(bI.exec),xI=!bI.exec(gI),EI=function(e){if(!lj(e))return!1;try{return mI(gI,yI,e),!0}catch(e){return!1}},DI=!mI||HP(function(){var e;return EI(EI.call)||!EI(Object)||!EI(function(){e=!0})||e})?function(e){if(!lj(e))return!1;switch(vI(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return xI||!!wI(bI,pN(e))}:EI,CI=Gj("species"),SI=zP.Array,AI=function(e,t){return new(function(e){var t;return cI(e)&&(t=e.constructor,(DI(t)&&(t===SI||cI(t.prototype))||fj(t)&&null===(t=t[CI]))&&(t=void 0)),void 0===t?SI:t}(e))(0===t?0:t)},OI=ej([].push),kI=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=Nj(s),v=aj(h),g=function(e,t){return Oj(e),void 0===t?e:sI?sI(e,t):function(){return e.apply(t,arguments)}}(c,l),y=zN(v),m=0,b=f||AI,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:OI(w,d)}else switch(e){case 4:return!1;case 7:OI(w,d)}return i?-1:r||o?o:w}},BI={forEach:kI(0),map:kI(1),filter:kI(2),find:kI(5)},FI=Gj("species"),TI=function(e){return bj>=51||!HP(function(){var t=[];return(t.constructor={})[FI]=function(){return{foo:1}},1!==t[e](Boolean).foo})},_I=BI.filter;uI({target:"Array",proto:!0,forced:!TI("filter")},{filter:function(e){return _I(this,e,arguments.length>1?arguments[1]:void 0)}});var PI=fI?{}.toString:function(){return"[object "+vI(this)+"]"};fI||TN(Object.prototype,"toString",PI,{unsafe:!0});var jI,NI=zP.String,II=function(e){if("Symbol"===vI(e))throw TypeError("Cannot convert a Symbol value to a string");return NI(e)},LI=function(){var e=oN(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},RI=zP.RegExp,MI=HP(function(){var e=RI("a","y");return e.lastIndex=2,null!=e.exec("abcd")});MI||HP(function(){return!RI("a","y").sticky});var zI={BROKEN_CARET:MI||HP(function(){var e=RI("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),UNSUPPORTED_Y:MI},HI=Object.keys||function(e){return WN(e,GN)},VI=VP?Object.defineProperties:function(e,t){oN(e);for(var n,r=cj(t),o=HI(t),i=o.length,a=0;i>a;)uN.f(e,n=o[a++],r[n]);return e},$I=dj("document","documentElement"),UI=yN("IE_PROTO"),WI=function(){},GI=function(e){return"<script>"+e+"<\/script>"},qI=function(e){e.write(GI("")),e.close();var t=e.parentWindow.Object;return e=null,t},KI=function(){try{jI=new ActiveXObject("htmlfile")}catch(e){}var e,t;KI="undefined"!=typeof document?document.domain&&jI?qI(jI):((t=Jj("iframe")).style.display="none",$I.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(GI("document.F=Object")),e.close(),e.F):qI(jI);for(var n=GN.length;n--;)delete KI.prototype[GN[n]];return KI()};mN[UI]=!0;var YI,XI,ZI=Object.create||function(e,t){var n;return null!==e?(WI.prototype=oN(e),n=new WI,WI.prototype=null,n[UI]=e):n=KI(),void 0===t?n:VI(n,t)},JI=zP.RegExp,QI=HP(function(){var e=JI(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),eL=zP.RegExp,tL=HP(function(){var e=eL("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),nL=AN.get,rL=Pj("native-string-replace",String.prototype.replace),oL=RegExp.prototype.exec,iL=oL,aL=ej("".charAt),uL=ej("".indexOf),sL=ej("".replace),cL=ej("".slice),lL=(XI=/b*/g,UP(oL,YI=/a/,"a"),UP(oL,XI,"a"),0!==YI.lastIndex||0!==XI.lastIndex),fL=zI.BROKEN_CARET,dL=void 0!==/()??/.exec("")[1];(lL||dL||fL||QI||tL)&&(iL=function(e){var t,n,r,o,i,a,u,s=this,c=nL(s),l=II(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=UP(iL,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=fL&&s.sticky,h=UP(LI,s),v=s.source,g=0,y=l;if(p&&(h=sL(h,"y",""),-1===uL(h,"g")&&(h+="g"),y=cL(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==aL(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),dL&&(n=new RegExp("^"+v+"$(?!\\s)",h)),lL&&(r=s.lastIndex),o=UP(oL,p?n:s,y),p?o?(o.input=cL(o.input,g),o[0]=cL(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:lL&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),dL&&o&&o.length>1&&UP(rL,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=ZI(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var pL=iL;uI({target:"RegExp",proto:!0,forced:/./.exec!==pL},{exec:pL});var hL=Function.prototype,vL=hL.apply,gL=hL.bind,yL=hL.call,mL="object"==("undefined"==typeof Reflect?"undefined":D(Reflect))&&Reflect.apply||(gL?yL.bind(vL):function(){return yL.apply(vL,arguments)}),bL=Gj("species"),wL=RegExp.prototype,xL=function(e,t,n,r){var o=Gj(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[bL]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t});if(!i||!a||n){var u=ej(/./[o]),s=t(o,""[e],function(e,t,n,r,o){var a=ej(e),s=t.exec;return s===pL||s===wL.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}});TN(String.prototype,e,s[0]),TN(wL,o,s[1])}r&&sN(wL[o],"sham",!0)},EL=ej("".charAt),DL=ej("".charCodeAt),CL=ej("".slice),SL=function(e){return function(t,n){var r,o,i=II(sj(t)),a=jN(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=DL(i,a))<55296||r>56319||a+1===u||(o=DL(i,a+1))<56320||o>57343?e?EL(i,a):r:e?CL(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),AL=function(e,t,n){return t+(n?SL(e,t).length:1)},OL=Math.floor,kL=ej("".charAt),BL=ej("".replace),FL=ej("".slice),TL=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,_L=/\$([$&'`]|\d{1,2})/g,PL=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=_L;return void 0!==o&&(o=Nj(o),s=TL),BL(i,s,function(i,s){var c;switch(kL(s,0)){case"$":return"$";case"&":return e;case"`":return FL(t,0,n);case"'":return FL(t,a);case"<":c=o[FL(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=OL(l/10);return 0===f?i:f<=u?void 0===r[f-1]?kL(s,1):r[f-1]+kL(s,1):i}c=r[l-1]}return void 0===c?"":c})},jL=zP.TypeError,NL=function(e,t){var n=e.exec;if(lj(n)){var r=UP(n,e,t);return null!==r&&oN(r),r}if("RegExp"===rj(e))return UP(pL,e,t);throw jL("RegExp#exec called on incompatible receiver")},IL=Gj("replace"),LL=Math.max,RL=Math.min,ML=ej([].concat),zL=ej([].push),HL=ej("".indexOf),VL=ej("".slice),$L="$0"==="a".replace(/./,"$0"),UL=!!/./[IL]&&""===/./[IL]("a","$0");xL("replace",function(e,t,n){var r=UL?"$":"$0";return[function(e,n){var r=sj(this),o=null==e?void 0:kj(e,IL);return o?UP(o,e,r,n):UP(t,II(r),e,n)},function(e,o){var i=oN(this),a=II(e);if("string"==typeof o&&-1===HL(o,r)&&-1===HL(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=lj(o);s||(o=II(o));var c=i.global;if(c){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var d=NL(i,a);if(null===d)break;if(zL(f,d),!c)break;""===II(d[0])&&(i.lastIndex=AL(a,MN(i.lastIndex),l))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=II((d=f[g])[0]),m=LL(RL(jN(d.index),a.length),0),b=[],w=1;w<d.length;w++)zL(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=ML([y],b,m,a);void 0!==x&&zL(E,x);var D=II(mL(o,void 0,E))}else D=PL(y,a,m,b,x,o);m>=v&&(h+=VL(a,v,m)+D,v=m+y.length)}return h+VL(a,v)}]},!!HP(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!$L||UL);var WL=Gj("unscopables"),GL=Array.prototype;null==GL[WL]&&uN.f(GL,WL,{configurable:!0,value:ZI(null)});var qL=function(e){GL[WL][e]=!0},KL=BI.find,YL=!0;"find"in[]&&Array(1).find(function(){YL=!1}),uI({target:"Array",proto:!0,forced:YL},{find:function(e){return KL(this,e,arguments.length>1?arguments[1]:void 0)}}),qL("find");var XL=Gj("match"),ZL=function(e){var t;return fj(e)&&(void 0!==(t=e[XL])?!!t:"RegExp"==rj(e))},JL=zP.TypeError,QL=Gj("species"),eR=function(e,t,n){var r=Yj(t);r in e?uN.f(e,r,YP(0,n)):e[r]=n},tR=zP.Array,nR=Math.max,rR=function(e,t,n){for(var r=zN(e),o=LN(t,r),i=LN(void 0===n?r:n,r),a=tR(nR(i-o,0)),u=0;o<i;o++,u++)eR(a,u,e[o]);return a.length=u,a},oR=zI.UNSUPPORTED_Y,iR=Math.min,aR=[].push,uR=ej(/./.exec),sR=ej(aR),cR=ej("".slice);xL("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=II(sj(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!ZL(e))return UP(t,r,e,o);for(var i,a,u,s=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,f=new RegExp(e.source,c+"g");(i=UP(pL,f,r))&&!((a=f.lastIndex)>l&&(sR(s,cR(r,l,i.index)),i.length>1&&i.index<r.length&&mL(aR,s,rR(i,1)),u=i[0].length,l=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return l===r.length?!u&&uR(f,"")||sR(s,""):sR(s,cR(r,l)),s.length>o?rR(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:UP(t,this,e,n)}:t,[function(t,n){var o=sj(this),i=null==t?void 0:kj(t,e);return i?UP(i,t,o,n):UP(r,II(o),t,n)},function(e,o){var i=oN(this),a=II(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=oN(e).constructor;return void 0===r||null==(n=oN(r)[QL])?t:function(e){if(DI(e))return e;throw JL(Sj(e)+" is not a constructor")}(n)}(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(oR?"g":"y"),f=new s(oR?"^(?:"+i.source+")":i,l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===NL(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=oR?0:h;var g,y=NL(f,oR?cR(a,h):a);if(null===y||(g=iR(MN(f.lastIndex+(oR?h:0)),a.length))===p)h=AL(a,h,c);else{if(sR(v,cR(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(sR(v,y[m]),v.length===d)return v;h=p=g}}return sR(v,cR(a,p)),v}]},!!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]}),oR);var lR="\t\n\v\f\r \u2028\u2029\ufeff",fR=ej("".replace),dR="["+lR+"]",pR=RegExp("^"+dR+dR+"*"),hR=RegExp(dR+dR+"*$"),vR={trim:function(e){return function(t){var n=II(sj(t));return 1&e&&(n=fR(n,pR,"")),2&e&&(n=fR(n,hR,"")),n}}(3)},gR=FN.PROPER,yR=vR.trim;function mR(e){return 0===Yp("<div>"+e+"</div>").children().filter(function(e){return"BR"!==e.tagName}).length}function bR(e){return 0===e.length?"":e[0].outerHTML}function wR(e){return e.length?e[0].tagName.toLowerCase():""}function xR(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}uI({target:"String",proto:!0,forced:HP(function(){return!!lR.trim()||"
"!=="
".trim()||gR&&"trim"!==lR.trim.name})},{trim:function(){return yR(this)}}),uI({global:!0},{globalThis:zP}),lh&&(Yp.fn.css=lh),gh&&(Yp.fn.append=gh),yh&&(Yp.fn.prepend=yh),Xp&&(Yp.fn.addClass=Xp),Zp&&(Yp.fn.removeClass=Zp),Jp&&(Yp.fn.hasClass=Jp),rh&&(Yp.fn.on=rh),oh&&(Yp.fn.off=oh),Oh&&(Yp.fn.focus=Oh),Qp&&(Yp.fn.attr=Qp),eh&&(Yp.fn.removeAttr=eh),sh&&(Yp.fn.hide=sh),ch&&(Yp.fn.show=ch),bh&&(Yp.fn.parents=bh),th&&(Yp.fn.dataset=th),nh&&(Yp.fn.val=nh),hh&&(Yp.fn.text=hh),ph&&(Yp.fn.html=ph),xh&&(Yp.fn.children=xh),Eh&&(Yp.fn.remove=Eh),wh&&(Yp.fn.find=wh),ih&&(Yp.fn.width=ih),ah&&(Yp.fn.height=ah),dh&&(Yp.fn.filter=dh),Dh&&(Yp.fn.empty=Dh);var ER={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Yp(e);return 0===(t=t.filter(function(e){return!!yd.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},DR=function(e,t){return DR=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])},DR(e,t);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function CR(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}DR(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var SR=function(){return SR=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},SR.apply(this,arguments)};function AR(e,t,n,r){return new(n||(n=Promise))(function(t,o){function i(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n(function(e){e(r)})).then(i,a)}u((r=r.apply(e,[])).next())})}function OR(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 kR(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 BR(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function FR(e){var t=BR(qf.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!Hf.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Jf.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!yd.isText(o[0])&&(Nd.setNodes(e,{type:"paragraph"}),!0)}var TR={renderElems:[jP],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[ER],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){FR(r)||t(e)},r.deleteForward=function(e){FR(r)||n(e)},r}},_R=/"/g,PR=ej("".replace),jR=function(e,t,n,r){var o=II(sj(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+PR(II(r),_R,""")+'"'),i+">"+o+"</"+t+">"},NR=function(e){return HP(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function IR(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 LR(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}uI({target:"String",proto:!0,forced:NR("bold")},{bold:function(){return jR(this,"b","","")}}),uI({target:"String",proto:!0,forced:NR("italics")},{italics:function(){return jR(this,"i","","")}}),uI({target:"String",proto:!0,forced:NR("sub")},{sub:function(){return jR(this,"sub","","")}}),uI({target:"String",proto:!0,forced:NR("sup")},{sup:function(){return jR(this,"sup","","")}});var RR={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},MR=Jj("span").classList,zR=MR&&MR.constructor&&MR.constructor.prototype,HR=zR===Object.prototype?void 0:zR,VR=function(e,t){var n=[][e];return!!n&&HP(function(){n.call(null,t||function(){throw 1},1)})},$R=BI.forEach,UR=VR("forEach")?[].forEach:function(e){return $R(this,e,arguments.length>1?arguments[1]:void 0)},WR=function(e){if(e&&e.forEach!==UR)try{sN(e,"forEach",UR)}catch(t){e.forEach=UR}};for(var GR in RR)RR[GR]&&WR(zP[GR]&&zP[GR].prototype);function qR(e,t){return null==e.selection||!!BR(qf.nodes(e,{match:function(t){return"pre"===IO.getNodeType(t)||!!qf.isVoid(e,t)},universal:!0}),1)[0]}function KR(e,t){Object.keys(t).forEach(function(t){"text"!==t&&qf.removeMark(e,t)})}WR(HR),uI({target:"Object",stat:!0,forced:HP(function(){HI(1)})},{keys:function(e){return HI(Nj(e))}});var YR=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=qf.marks(e);return n?n[t]:!!BR(qf.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 qR(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}(),XR='<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>',ZR='<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>',JR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=hP("textStyle.bold"),t.iconSvg='<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>',t.hotkey="mod+b",t}return CR(t,e),t}(YR),QR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=hP("textStyle.code"),t.iconSvg='<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>',t.hotkey="mod+e",t}return CR(t,e),t}(YR),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='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',t.hotkey="mod+i",t}return CR(t,e),t}(YR),tM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=hP("textStyle.through"),t.iconSvg='<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>',t.hotkey="mod+shift+x",t}return CR(t,e),t}(YR),nM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=hP("textStyle.underline"),t.iconSvg='<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>',t.hotkey="mod+u",t}return CR(t,e),t}(YR),rM=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='<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>',t.hotkey="",t}return CR(t,e),t}(YR),oM=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='<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>',t.hotkey="",t}return CR(t,e),t}(YR),iM=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 qR(e)},e.prototype.exec=function(e,t){var n,r,o=qf.nodes(e,{match:function(e){return yd.isText(e)},universal:!0});try{for(var i=kR(o),a=i.next();!a.done;a=i.next())KR(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),aM={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,c=n.sup,l=t;return r&&(l=Mv("strong",null,l)),a&&(l=Mv("code",null,l)),o&&(l=Mv("em",null,l)),i&&(l=Mv("u",null,l)),u&&(l=Mv("s",null,l)),s&&(l=Mv("sub",null,l)),c&&(l=Mv("sup",null,l)),l},menus:[{key:"bold",factory:function(){return new JR}},{key:"underline",factory:function(){return new nM}},{key:"italic",factory:function(){return new eM}},{key:"through",factory:function(){return new tM}},{key:"code",factory:function(){return new QR}},{key:"sub",factory:function(){return new rM}},{key:"sup",factory:function(){return new oM}},{key:"clearStyle",factory:function(){return new iM}}],styleToHtml:function(e,t){if(!yd.isText(e))return t;if(mR(t))return IR(e,t);var n=Yp(t);if("br"===wR(n))return IR(e,"<br>");var r=n.html();return r=IR(e,r),n.html(r),bR(n)},parseStyleHtml:function(e,t,n){var r=Yp(e);if(!yd.isText(t))return t;var o=t;return LR(r,"b,strong")&&(o.bold=!0),LR(r,"i,em")&&(o.italic=!0),LR(r,"u")&&(o.underline=!0),LR(r,"s,strike")&&(o.through=!0),LR(r,"sub")&&(o.sub=!0),LR(r,"sup")&&(o.sup=!0),LR(r,"code")&&(o.code=!0),o}};function uM(e){return function(t,n,r){return Mv("h"+e,null,n)}}var sM={type:"header1",renderElem:uM(1)},cM={type:"header2",renderElem:uM(2)},lM={type:"header3",renderElem:uM(3)},fM={type:"header4",renderElem:uM(4)},dM={type:"header5",renderElem:uM(5)},pM=FN.PROPER,hM=RegExp.prototype,vM=hM.toString,gM=ej(LI),yM=HP(function(){return"/a/b"!=vM.call({source:"a",flags:"b"})}),mM=pM&&"toString"!=vM.name;(yM||mM)&&TN(RegExp.prototype,"toString",function(){var e=oN(this),t=II(e.source),n=e.flags;return"/"+t+"/"+II(void 0===n&&pj(hM,e)&&!("flags"in hM)?gM(e):n)},{unsafe:!0});var bM,wM=zP.TypeError,xM=function(e){if(ZL(e))throw wM("The method doesn't accept regular expressions");return e},EM=Gj("match"),DM=function(e){var t=/./;try{"/./"[e](t)}catch(H){try{return t[EM]=!1,"/./"[e](t)}catch(e){}}return!1},CM=tN.f,SM=ej("".startsWith),AM=ej("".slice),OM=Math.min,kM=DM("startsWith");function BM(e){var t=BR(qf.nodes(e,{match:function(e){return IO.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=BR(n,1)[0];return IO.getNodeType(r)}function FM(e){return null==e.selection||!BR(qf.nodes(e,{match:function(e){var t=IO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function TM(e,t){t&&Nd.setNodes(e,{type:t})}uI({target:"String",proto:!0,forced:!(!kM&&(bM=CM(String.prototype,"startsWith"),bM&&!bM.writable)||kM)},{startsWith:function(e){var t=II(sj(this));xM(e);var n=MN(OM(arguments.length>1?arguments[1]:void 0,t.length)),r=II(e);return SM?SM(t,r,n):AM(t,n,n+r.length)===r}});var _M=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 BM(e)},e.prototype.isDisabled=function(e){return FM(e)},e.prototype.exec=function(e,t){TM(e,t.toString())},e}(),PM=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return BM(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return FM(e)},e.prototype.exec=function(e,t){var n=this.type;TM(e,t===n?"paragraph":n)},e}(),jM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return CR(t,e),t}(PM),NM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return CR(t,e),t}(PM),IM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return CR(t,e),t}(PM),LM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return CR(t,e),t}(PM),RM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return CR(t,e),t}(PM),MM={key:"headerSelect",factory:function(){return new _M}},zM={key:"header1",factory:function(){return new jM}},HM={key:"header2",factory:function(){return new NM}},VM={key:"header3",factory:function(){return new IM}},$M={key:"header4",factory:function(){return new LM}},UM={key:"header5",factory:function(){return new RM}};function WM(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function GM(e){return function(t,n,r){var o=Yp(t);return 0===(n=n.filter(function(e){return!!yd.isText(e)||!!r.isInline(e)})).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var qM={renderElems:[sM,cM,lM,fM,dM],elemsToHtml:[{type:"header1",elemToHtml:WM(1)},{type:"header2",elemToHtml:WM(2)},{type:"header3",elemToHtml:WM(3)},{type:"header4",elemToHtml:WM(4)},{type:"header5",elemToHtml:WM(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:GM(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:GM(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:GM(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:GM(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:GM(5)}],menus:[MM,zM,HM,VM,$M,UM],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=BR(qf.nodes(n,{match:function(e){return IO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&IO.isSelectionAtLineEnd(e,r[1])?Nd.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},KM=Object.assign,YM=Object.defineProperty,XM=ej([].concat),ZM=!KM||HP(function(){if(VP&&1!==KM({b:1},KM(YM({},"a",{enumerable:!0,get:function(){YM(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!=KM({},e)[n]||HI(KM({},t)).join("")!=r})?function(e,t){for(var n=Nj(e),r=arguments.length,o=1,i=YN.f,a=KP.f;r>o;)for(var u,s=aj(arguments[o++]),c=i?XM(HI(s),i(s)):HI(s),l=c.length,f=0;l>f;)u=c[f++],VP&&!UP(a,s,u)||(n[u]=s[u]);return n}:KM;function JM(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}uI({target:"Object",stat:!0,forced:Object.assign!==ZM},{assign:ZM});var QM={selector:"font",preParseHtml:function(e){var t=Yp(e);if("font"!==wR(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=qf.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||!!BR(qf.nodes(e,{match:function(t){return"pre"===IO.getNodeType(t)||!!qf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Yp('<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=Yp(r).attr("data-value");"0"===o?qf.removeMark(e,t):qf.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=Yp('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=Yp('<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=Yp('\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}(),tz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("color.color"),t.iconSvg='<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>',t.mark="color",t}return CR(t,e),t}(ez),nz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("color.bgColor"),t.iconSvg='<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>',t.mark="bgColor",t}return CR(t,e),t}(ez),rz=["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)"],oz={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&JM(i,{color:r}),o&&JM(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!yd.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((mR(t)||"span"!==wR(n=Yp(t)))&&(n=Yp("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),bR(n)):t},preParseHtml:[QM],parseStyleHtml:function(e,t,n){var r=Yp(e);if(!yd.isText(t))return t;var o=t,i=xR(r,"color");i&&(o.color=i);var a=xR(r,"background-color");return a||(a=xR(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new tz},config:{colors:rz}},{key:"bgColor",factory:function(){return new nz},config:{colors:rz}}]},iz=/^(?:\w+:)?\/\/(\S+)$/,az=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,uz=/^[^\s\.]+\.\S{2,}$/,sz=VN.includes;function cz(e){return void 0===e&&(e="r"),e+"-"+Uh()}function lz(e){return e.replace(/</g,"<").replace(/>/g,">")}function fz(e,t,n,r){return AR(this,0,void 0,function(){var o,i;return OR(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 dz(e,t,n){return AR(this,0,void 0,function(){var r;return OR(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 pz(e){return null==e.selection||!!IO.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function hz(e,t){return{type:"link",url:lz(e),children:t?[{text:t}]:[]}}function vz(e,t,n){return AR(this,0,void 0,function(){var r,o,i;return OR(this,function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),pz(e)?[2]:[4,fz("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,dz("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(ld.isCollapsed(o)?(e.insertText(" "),i=hz(r,t),Nd.insertNodes(e,i),e.insertFragment([{text:" "}])):qf.string(e,o)!==t?(e.deleteFragment(),i=hz(r,t),Nd.insertNodes(e,i)):(i=hz(r),Nd.wrapNodes(e,i,{split:!0}),Nd.collapse(e,{edge:"end"}))),[2]}})})}uI({target:"Array",proto:!0},{includes:function(e){return sz(this,e,arguments.length>1?arguments[1]:void 0)}}),qL("includes");var gz={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Mv("a",{href:o,target:void 0===i?"_blank":i},t)}},yz={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Yp(e);return 0===(t=t.filter(function(e){return!!yd.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function mz(){return cz("w-e-insert-link")}var bz=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=mz(),this.urlInputId=mz(),this.buttonId=mz()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return pz(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=BR(t_(hP("link.text"),r),2),u=a[0],s=Yp(a[1]),c=BR(t_(hP("link.url"),o),2),l=c[0],f=Yp(c[1]),d=BR(n_(i,hP("common.ok")),1)[0];if(null==this.$content){var p=Yp("<div></div>");p.on("click","#"+i,function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();vz(e,n,i),e.hidePanelOrModal()}),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(l),h.append(d),null==t||ld.isCollapsed(t))s.val("");else{var v=qf.string(e,t);s.val(v)}return f.val(""),setTimeout(function(){s.focus()}),h[0]},e}();function wz(){return cz("w-e-update-link")}var xz=function(){function e(){this.title=hP("link.edit"),this.iconSvg=XR,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=wz(),this.buttonId=wz()}return e.prototype.getSelectedLinkElem=function(e){var t=IO.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 IO.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=BR(t_(hP("link.url"),t),2),o=r[0],i=Yp(r[1]),a=BR(n_(n,hP("common.ok")),1)[0];if(null==this.$content){var u=Yp("<div></div>");u.on("click","button",function(n){n.preventDefault(),e.restoreSelection();var r=IO.getSelectedNodeByType(e,"link"),o=r?Jf.string(r):"",i=u.find("#"+t).val();!function(e,t,n){AR(this,0,void 0,function(){var r,o;return OR(this,function(i){switch(i.label){case 0:return n?[4,fz("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,dz("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:lz(r)},Nd.setNodes(e,o,{match:function(e){return IO.checkNodeType(e,"link")}}),[2]}})})}(e,o,i),e.hidePanelOrModal()}),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var c=this.getValue(e);return i.val(c),setTimeout(function(){i.focus()}),s[0]},e}(),Ez=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==IO.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||Nd.unwrapNodes(e,{match:function(e){return IO.checkNodeType(e,"link")}})},e}(),Dz=function(){function e(){this.title=hP("link.view"),this.iconSvg=ZR,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=IO.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}(),Cz={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Sz={renderElems:[gz],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:[yz],menus:[{key:"insertLink",factory:function(){return new bz},config:Cz},{key:"editLink",factory:function(){return new xz},config:Cz},{key:"unLink",factory:function(){return new Ez}},{key:"viewLink",factory:function(){return new Dz}}],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(iz);if(!t)return!1;var n=t[1];return!(!n||!az.test(n)&&!uz.test(n))}(t)){if(!pz(o)){var r=o.selection;if(null!=r){var i=qf.string(o,r);vz(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=BR(e,2),n=t[0],i=t[1];return"link"!==IO.getNodeType(n)?r([n,i]):""===Jf.string(n)?Nd.removeNodes(o,{at:i}):r([n,i])},o}},Az=ej(1..valueOf),Oz=zP.RangeError,kz=zP.RangeError,Bz=zP.String,Fz=Math.floor,Tz=ej(function(e){var t=II(sj(this)),n="",r=jN(e);if(r<0||r==1/0)throw Oz("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),_z=ej("".slice),Pz=ej(1..toFixed),jz=function(e,t,n){return 0===t?n:t%2==1?jz(e,t-1,n*e):jz(e*e,t/2,n)},Nz=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=Fz(o/1e7)},Iz=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=Fz(r/t),r=r%t*1e7},Lz=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=Bz(e[t]);n=""===n?r:n+Tz("0",7-r.length)+r}return n};function Rz(e,t){return"w-e-image-container-"+IO.findKey(e,t).id}uI({target:"Number",proto:!0,forced:HP(function(){return"0.000"!==Pz(8e-5,3)||"1"!==Pz(.9,0)||"1.25"!==Pz(1.255,2)||"1000000000000000128"!==Pz(0xde0b6b3a7640080,0)})||!HP(function(){Pz({})})},{toFixed:function(e){var t,n,r,o,i=Az(this),a=jN(e),u=[0,0,0,0,0,0],s="",c="0";if(a<0||a>20)throw kz("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return Bz(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*jz(2,69,1))-69)<0?i*jz(2,-t,1):i/jz(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Nz(u,0,n),r=a;r>=7;)Nz(u,1e7,0),r-=7;for(Nz(u,jz(10,r,1),0),r=t-1;r>=23;)Iz(u,1<<23),r-=23;Iz(u,1<<r),Nz(u,1,1),Iz(u,2),c=Lz(u)}else Nz(u,0,n),Nz(u,1<<-t,0),c=Lz(u)+Tz("0",a);return a>0?s+((o=c.length)<=a?"0."+Tz("0",a-o)+c:_z(c,0,o-a)+"."+_z(c,o-a)):s+c}});var Mz={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,c=r.style,l=void 0===c?{}:c,f=l.width,d=void 0===f?"":f,p=l.height,h=void 0===p?"":p,v=IO.isNodeSelected(n,e),g={};d&&(g.width="100%"),h&&(g.height="100%");var y=Mv("img",{style:g,src:o,alt:a,"data-href":s}),m=n.isDisabled();return v&&!m?function(e,t,n,r){var o=Yp("body"),i=Rz(e,t),a=r.width,u=r.height,s=0,c=0,l=0,f=!1,d=null;function p(t){d=function(){var e=Yp("#"+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");c=n.width(),l=n.height(),o.on("mousemove",h),o.on("mouseup",v);var r=IO.getHoverbar(e);r&&r.hideAndClean()}var h=av(function(e){e.preventDefault();var t=e.clientX,n=c+(f?s-t:t-s),r=l*(n/c);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))},100);function v(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:SR(SR({},t.style),{width:r+"px",height:i+"px"})};Nd.setNodes(e,a,{at:IO.findPath(e,t)}),o.off("mouseup",v)}}var g={};return a&&(g.width=a),u&&(g.height=u),Mv("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=Yp(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),p(e.clientX))}}},n,Mv("div",{className:"w-e-image-dragger left-top"}),Mv("div",{className:"w-e-image-dragger right-top"}),Mv("div",{className:"w-e-image-dragger left-bottom"}),Mv("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),Mv("div",{id:Rz(e,t),style:a,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},zz={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Yp(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:xR(r,"width"),height:xR(r,"height")},children:[{text:""}]}}};function Hz(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),AR(this,0,void 0,function(){var i,a;return OR(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 Vz(e,t,n){return AR(this,0,void 0,function(){var r;return OR(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 $z(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),AR(this,0,void 0,function(){var o,i,a;return OR(this,function(u){switch(u.label){case 0:return[4,Hz("insertImage",e,t,n,r)];case 1:return u.sent()?[4,Vz("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:lz(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),IO.getSelectedNodeByType(e,"image")&&e.move(1),Uz(e)||(Nd.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function Uz(e){var t=e.selection;return null==t||!ld.isCollapsed(t)||!!BR(qf.nodes(e,{match:function(t){var n=IO.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!qf.isVoid(e,t)},universal:!0}),1)[0]}function Wz(){return cz("w-e-insert-image")}var Gz=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=Wz(),this.altInputId=Wz(),this.hrefInputId=Wz(),this.buttonId=Wz()}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 Uz(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=BR(t_(hP("image.src"),r),2),s=u[0],c=Yp(u[1]),l=BR(t_(hP("image.desc"),o),2),f=l[0],d=Yp(l[1]),p=BR(t_(hP("image.link"),i),2),h=p[0],v=Yp(p[1]),g=BR(n_(a,hP("common.ok")),1)[0];if(null==this.$content){var y=Yp("<div></div>");y.on("click","#"+a,function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()}),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(g),c.val(""),d.val(""),v.val(""),setTimeout(function(){c.focus()}),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||$z(e,t,n,r))},e}(),qz=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==IO.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||Nd.removeNodes(e,{match:function(e){return IO.checkNodeType(e,"image")}})},e}();function Kz(){return cz("w-e-edit-image")}var Yz=function(){function e(){this.title=hP("image.edit"),this.iconSvg=XR,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Kz(),this.altInputId=Kz(),this.hrefInputId=Kz(),this.buttonId=Kz()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return IO.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||!ld.isCollapsed(t)||null==IO.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=BR(t_(hP("image.src"),r),2),c=s[0],l=Yp(s[1]),f=BR(t_(hP("image.desc"),o),2),d=f[0],p=Yp(f[1]),h=BR(t_(hP("image.link"),i),2),v=h[0],g=Yp(h[1]),y=BR(n_(a,hP("common.ok")),1)[0];if(null==this.$content){var m=Yp("<div></div>");m.on("click","#"+a,function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()}),this.$content=m}var b=this.$content;b.empty(),b.append(c),b.append(d),b.append(v),b.append(y);var w=u,x=w.src,E=w.alt,D=void 0===E?"":E,C=w.href,S=void 0===C?"":C;return l.val(x),p.val(D),g.val(S),setTimeout(function(){l.focus()}),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),AR(this,0,void 0,function(){var i,a,u,s,c,l;return OR(this,function(f){switch(f.label){case 0:return[4,Hz("editImage",e,t,n,r)];case 1:return f.sent()?[4,Vz("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=IO.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:SR(SR({},void 0===u?{}:u),o)},Nd.setNodes(e,s,{match:function(e){return IO.checkNodeType(e,"image")}}),c=IO.getSelectedNodeByType(e,"image"),(l=e.getMenuConfig("editImage").onUpdatedImage)&&l(c)),[2]}})})}(e,t,n,r,o))},e}(),Xz=function(){function e(){this.title=hP("image.viewLink"),this.iconSvg=ZR,this.tag="button"}return e.prototype.getValue=function(e){var t=IO.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}(),Zz=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 IO.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=IO.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:SR(SR({},void 0===o?{}:o),{width:this.value,height:""})};Nd.setNodes(e,i,{match:function(e){return IO.checkNodeType(e,"image")}})}}},e}(),Jz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return CR(t,e),t}(Zz),Qz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return CR(t,e),t}(Zz),eH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return CR(t,e),t}(Zz),tH={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},nH={renderElems:[Mz],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.style,c=void 0===s?{}:s,l=c.width,f=void 0===l?"":l,d=c.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:[zz],menus:[{key:"insertImage",factory:function(){return new Gz},config:tH},{key:"deleteImage",factory:function(){return new qz}},{key:"editImage",factory:function(){return new Yz},config:tH},{key:"viewImageLink",factory:function(){return new Xz}},{key:"imageWidth30",factory:function(){return new Jz}},{key:"imageWidth50",factory:function(){return new Qz}},{key:"imageWidth100",factory:function(){return new eH}}],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}},rH={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=Mv("div",{style:{margin:"5px 0"}},Mv("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Mv("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=IO.findPath(n,e),o={checked:t.target.checked};Nd.setNodes(n,o,{at:r})}}})),Mv("span",null,t));return o}},oH=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!!IO.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!IO.getSelectedElems(e).some(function(t){if(qf.isVoid(e,t)&&qf.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);Nd.setNodes(e,{type:n?"paragraph":"todo"})},e}(),iH={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Yp(e);0===(t=t.filter(function(e){return!!yd.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},aH={renderElems:[rH],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=Yp(e).find("li"),n=Yp('<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:[iH],menus:[{key:"todo",factory:function(){return new oH}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&ld.isCollapsed(r)){var o=IO.getSelectedNodeByType(e,"todo");if(o&&0===Jf.string(o).length)return void Nd.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},uH={type:"blockquote",renderElem:function(e,t,n){return Mv("blockquote",null,t)}},sH={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Yp(e);return 0===(t=t.filter(function(e){return!!yd.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},cH=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!!IO.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!BR(qf.nodes(e,{match:function(e){var t=IO.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";Nd.setNodes(e,{type:n},{mode:"highest"})}},e}(),lH={key:"blockquote",factory:function(){return new cH}},fH=ej([].slice),dH=TI("slice"),pH=Gj("species"),hH=zP.Array,vH=Math.max;uI({target:"Array",proto:!0,forced:!dH},{slice:function(e,t){var n,r,o,i=cj(this),a=zN(i),u=LN(e,a),s=LN(void 0===t?a:t,a);if(cI(i)&&(n=i.constructor,(DI(n)&&(n===hH||cI(n.prototype))||fj(n)&&null===(n=n[pH]))&&(n=void 0),n===hH||void 0===n))return fH(i,u,s);for(r=new(void 0===n?hH:n)(vH(s-u,0)),o=0;u<s;u++,o++)u in i&&eR(r,o,i[u]);return r.length=o,r}});var gH={renderElems:[uH],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[sH],menus:[lH],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=BR(qf.nodes(e,{match:function(e){return IO.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=IO.findPath(e,a),s=qf.end(e,u);if(ad.equals(s,o.focus)){var c=Jf.string(a);if(c&&"\n"===c.slice(-1))return e.deleteBackward("character"),void Nd.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},yH=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||!!BR(qf.nodes(e,{match:function(t){return"pre"===IO.getNodeType(t)||!!qf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Yp('<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=Yp(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=Yp("<li>"+e+"</li>");n.append(t)}),n[0]},e}(),mH={menus:[{key:"emotion",factory:function(){return new yH},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},bH={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},wH={selector:"font",preParseHtml:function(e){var t=Yp(e);if("font"!==wR(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",bH[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},xH=ej("".indexOf);uI({target:"String",proto:!0,forced:!DM("includes")},{includes:function(e){return!!~xH(II(sj(this)),II(xM(e)),arguments.length>1?arguments[1]:void 0)}});var EH,DH,CH=function(e){return e&&e.Math==Math&&e},SH=CH("object"==("undefined"==typeof globalThis?"undefined":D(globalThis))&&globalThis)||CH("object"==("undefined"==typeof window?"undefined":D(window))&&window)||CH("object"==("undefined"==typeof self?"undefined":D(self))&&self)||CH("object"==D(NP)&&NP)||function(){return this}()||Function("return this")(),AH=Function.prototype,OH=AH.apply,kH=AH.bind,BH=AH.call,FH="object"==("undefined"==typeof Reflect?"undefined":D(Reflect))&&Reflect.apply||(kH?BH.bind(OH):function(){return BH.apply(OH,arguments)}),TH=Function.prototype,_H=TH.bind,PH=TH.call,jH=_H&&_H.bind(PH),NH=_H?function(e){return e&&jH(PH,e)}:function(e){return e&&function(){return PH.apply(e,arguments)}},IH=function(e){return"function"==typeof e},LH=function(e){try{return!!e()}catch(e){return!0}},RH=!LH(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),MH=Function.prototype.call,zH=MH.bind?MH.bind(MH):function(){return MH.apply(MH,arguments)},HH={}.propertyIsEnumerable,VH=Object.getOwnPropertyDescriptor,$H=VH&&!HH.call({1:2},1)?function(e){var t=VH(this,e);return!!t&&t.enumerable}:HH,UH={f:$H},WH=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},GH=NH({}.toString),qH=NH("".slice),KH=function(e){return qH(GH(e),8,-1)},YH=SH.Object,XH=NH("".split),ZH=LH(function(){return!YH("z").propertyIsEnumerable(0)})?function(e){return"String"==KH(e)?XH(e,""):YH(e)}:YH,JH=SH.TypeError,QH=function(e){if(null==e)throw JH("Can't call method on "+e);return e},eV=function(e){return ZH(QH(e))},tV=function(e){return"object"==D(e)?null!==e:IH(e)},nV={},rV=function(e){return IH(e)?e:void 0},oV=function(e,t){return arguments.length<2?rV(nV[e])||rV(SH[e]):nV[e]&&nV[e][t]||SH[e]&&SH[e][t]},iV=NH({}.isPrototypeOf),aV=oV("navigator","userAgent")||"",uV=SH.process,sV=SH.Deno,cV=uV&&uV.versions||sV&&sV.version,lV=cV&&cV.v8;lV&&(DH=(EH=lV.split("."))[0]>0&&EH[0]<4?1:+(EH[0]+EH[1])),!DH&&aV&&(!(EH=aV.match(/Edge\/(\d+)/))||EH[1]>=74)&&(EH=aV.match(/Chrome\/(\d+)/))&&(DH=+EH[1]);var fV=DH,dV=!!Object.getOwnPropertySymbols&&!LH(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&fV&&fV<41}),pV=dV&&!Symbol.sham&&"symbol"==D(Symbol.iterator),hV=SH.Object,vV=pV?function(e){return"symbol"==D(e)}:function(e){var t=oV("Symbol");return IH(t)&&iV(t.prototype,hV(e))},gV=SH.String,yV=SH.TypeError,mV=function(e){if(IH(e))return e;throw yV(function(e){try{return gV(e)}catch(e){return"Object"}}(e)+" is not a function")},bV=SH.TypeError,wV=Object.defineProperty,xV=SH["__core-js_shared__"]||function(e,t){try{wV(SH,e,{value:t,configurable:!0,writable:!0})}catch(H){SH[e]=t}return t}("__core-js_shared__",{}),EV=IP(function(e){(e.exports=function(e,t){return xV[e]||(xV[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),DV=SH.Object,CV=function(e){return DV(QH(e))},SV=NH({}.hasOwnProperty),AV=Object.hasOwn||function(e,t){return SV(CV(e),t)},OV=0,kV=Math.random(),BV=NH(1..toString),FV=function(e){return"Symbol("+(void 0===e?"":e)+")_"+BV(++OV+kV,36)},TV=EV("wks"),_V=SH.Symbol,PV=_V&&_V.for,jV=pV?_V:_V&&_V.withoutSetter||FV,NV=function(e){if(!AV(TV,e)||!dV&&"string"!=typeof TV[e]){var t="Symbol."+e;dV&&AV(_V,e)?TV[e]=_V[e]:TV[e]=pV&&PV?PV(t):jV(t)}return TV[e]},IV=SH.TypeError,LV=NV("toPrimitive"),RV=function(e){var t=function(e){if(!tV(e)||vV(e))return e;var t,n,r=null==(t=e[LV])?void 0:mV(t);if(r){if(n=zH(r,e,"string"),!tV(n)||vV(n))return n;throw IV("Can't convert object to primitive value")}return function(e){var t,n;if(IH(t=e.toString)&&!tV(n=zH(t,e)))return n;if(IH(t=e.valueOf)&&!tV(n=zH(t,e)))return n;throw bV("Can't convert object to primitive value")}(e)}(e);return vV(t)?t:t+""},MV=SH.document,zV=tV(MV)&&tV(MV.createElement),HV=function(e){return zV?MV.createElement(e):{}},VV=!RH&&!LH(function(){return 7!=Object.defineProperty(HV("div"),"a",{get:function(){return 7}}).a}),$V=Object.getOwnPropertyDescriptor,UV={f:RH?$V:function(e,t){if(e=eV(e),t=RV(t),VV)try{return $V(e,t)}catch(e){}if(AV(e,t))return WH(!zH(UH.f,e,t),e[t])}},WV=/#|\.prototype\./,GV=function(e,t){var n=KV[qV(e)];return n==XV||n!=YV&&(IH(t)?LH(t):!!t)},qV=GV.normalize=function(e){return String(e).replace(WV,".").toLowerCase()},KV=GV.data={},YV=GV.NATIVE="N",XV=GV.POLYFILL="P",ZV=GV,JV=NH(NH.bind),QV=function(e,t){return mV(e),void 0===t?e:JV?JV(e,t):function(){return e.apply(t,arguments)}},e$=SH.String,t$=SH.TypeError,n$=function(e){if(tV(e))return e;throw t$(e$(e)+" is not an object")},r$=SH.TypeError,o$=Object.defineProperty,i$={f:RH?o$:function(e,t,n){if(n$(e),t=RV(t),n$(n),VV)try{return o$(e,t,n)}catch(e){}if("get"in n||"set"in n)throw r$("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},a$=RH?function(e,t,n){return i$.f(e,t,WH(1,n))}:function(e,t,n){return e[t]=n,e},u$=UV.f,s$=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 FH(e,this,arguments)};return t.prototype=e.prototype,t},c$=function(e,t){var n,r,o,i,a,u,s,c,l=e.target,f=e.global,d=e.stat,p=e.proto,h=f?SH:d?SH[l]:(SH[l]||{}).prototype,v=f?nV:nV[l]||a$(nV,l,{})[l],g=v.prototype;for(o in t)n=!ZV(f?o:l+(d?".":"#")+o,e.forced)&&h&&AV(h,o),a=v[o],n&&(u=e.noTargetGet?(c=u$(h,o))&&c.value:h[o]),i=n&&u?u:t[o],n&&D(a)==D(i)||(s=e.bind&&n?QV(i,SH):e.wrap&&n?s$(i):p&&IH(i)?NH(i):i,(e.sham||i&&i.sham||a&&a.sham)&&a$(s,"sham",!0),a$(v,o,s),p&&(AV(nV,r=l+"Prototype")||a$(nV,r,{}),a$(nV[r],o,i),e.real&&g&&!g[o]&&a$(g,o,i)))},l$=Array.isArray||function(e){return"Array"==KH(e)},f$=Math.ceil,d$=Math.floor,p$=function(e){var t=+e;return t!=t||0===t?0:(t>0?d$:f$)(t)},h$=Math.min,v$=function(e){return(t=e.length)>0?h$(p$(t),9007199254740991):0;var t},g$=function(e,t,n){var r=RV(t);r in e?i$.f(e,r,WH(0,n)):e[r]=n},y$={};y$[NV("toStringTag")]="z";var m$="[object z]"===String(y$),b$=NV("toStringTag"),w$=SH.Object,x$="Arguments"==KH(function(){return arguments}()),E$=m$?KH: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=w$(e),b$))?n:x$?KH(t):"Object"==(r=KH(t))&&IH(t.callee)?"Arguments":r},D$=NH(Function.toString);IH(xV.inspectSource)||(xV.inspectSource=function(e){return D$(e)});var C$=xV.inspectSource,S$=function(){},A$=[],O$=oV("Reflect","construct"),k$=/^\s*(?:class|function)\b/,B$=NH(k$.exec),F$=!k$.exec(S$),T$=function(e){if(!IH(e))return!1;try{return O$(S$,A$,e),!0}catch(e){return!1}},_$=!O$||LH(function(){var e;return T$(T$.call)||!T$(Object)||!T$(function(){e=!0})||e})?function(e){if(!IH(e))return!1;switch(E$(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return F$||!!B$(k$,C$(e))}:T$,P$=NV("species"),j$=SH.Array,N$=function(e,t){return new(function(e){var t;return l$(e)&&(t=e.constructor,(_$(t)&&(t===j$||l$(t.prototype))||tV(t)&&null===(t=t[P$]))&&(t=void 0)),void 0===t?j$:t}(e))(0===t?0:t)},I$=NV("species"),L$=NV("isConcatSpreadable"),R$=SH.TypeError,M$=fV>=51||!LH(function(){var e=[];return e[L$]=!1,e.concat()[0]!==e}),z$=fV>=51||!LH(function(){var e=[];return(e.constructor={})[I$]=function(){return{foo:1}},1!==e.concat(Boolean).foo}),H$=function(e){if(!tV(e))return!1;var t=e[L$];return void 0!==t?!!t:l$(e)};c$({target:"Array",proto:!0,forced:!M$||!z$},{concat:function(e){var t,n,r,o,i,a=CV(this),u=N$(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(H$(i=-1===t?a:arguments[t])){if(s+(o=v$(i))>9007199254740991)throw R$("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&g$(u,s,i[n])}else{if(s>=9007199254740991)throw R$("Maximum allowed index exceeded");g$(u,s++,i)}return u.length=s,u}});var V$,$$=SH.String,U$=function(e){if("Symbol"===E$(e))throw TypeError("Cannot convert a Symbol value to a string");return $$(e)},W$=Math.max,G$=Math.min,q$=function(e,t){var n=p$(e);return n<0?W$(n+t,0):G$(n,t)},K$={indexOf:function(e){return function(t,n,r){var o,i=eV(t),a=v$(i),u=q$(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}}(!1)},Y$={},X$=K$.indexOf,Z$=NH([].push),J$=function(e,t){var n,r=eV(e),o=0,i=[];for(n in r)!AV(Y$,n)&&AV(r,n)&&Z$(i,n);for(;t.length>o;)AV(r,n=t[o++])&&(~X$(i,n)||Z$(i,n));return i},Q$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],eU=Object.keys||function(e){return J$(e,Q$)},tU=RH?Object.defineProperties:function(e,t){n$(e);for(var n,r=eV(t),o=eU(t),i=o.length,a=0;i>a;)i$.f(e,n=o[a++],r[n]);return e},nU=oV("document","documentElement"),rU=EV("keys"),oU=function(e){return rU[e]||(rU[e]=FV(e))},iU=oU("IE_PROTO"),aU=function(){},uU=function(e){return"<script>"+e+"<\/script>"},sU=function(e){e.write(uU("")),e.close();var t=e.parentWindow.Object;return e=null,t},cU=function(){try{V$=new ActiveXObject("htmlfile")}catch(e){}var e,t;cU="undefined"!=typeof document?document.domain&&V$?sU(V$):((t=HV("iframe")).style.display="none",nU.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(uU("document.F=Object")),e.close(),e.F):sU(V$);for(var n=Q$.length;n--;)delete cU.prototype[Q$[n]];return cU()};Y$[iU]=!0;var lU,fU,dU,pU=Object.create||function(e,t){var n;return null!==e?(aU.prototype=n$(e),n=new aU,aU.prototype=null,n[iU]=e):n=cU(),void 0===t?n:tU(n,t)},hU=Q$.concat("length","prototype"),vU={f:Object.getOwnPropertyNames||function(e){return J$(e,hU)}},gU=SH.Array,yU=Math.max,mU=vU.f,bU="object"==("undefined"==typeof window?"undefined":D(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],wU={f:function(e){return bU&&"Window"==KH(e)?function(e){try{return mU(e)}catch(e){return function(e){for(var t=v$(e),n=q$(void 0,t),r=q$(t,t),o=gU(yU(r-n,0)),i=0;n<r;n++,i++)g$(o,i,e[n]);return o.length=i,o}(bU)}}(e):mU(eV(e))}},xU={f:Object.getOwnPropertySymbols},EU=NH([].slice),DU=function(e,t,n,r){a$(e,t,n)},CU={f:NV},SU=i$.f,AU=function(e){var t=nV.Symbol||(nV.Symbol={});AV(t,e)||SU(t,e,{value:CU.f(e)})},OU=m$?{}.toString:function(){return"[object "+E$(this)+"]"},kU=i$.f,BU=NV("toStringTag"),FU=function(e,t,n,r){if(e){var o=n?e:e.prototype;AV(o,BU)||kU(o,BU,{configurable:!0,value:t}),r&&!m$&&a$(o,"toString",OU)}},TU=SH.WeakMap,_U=IH(TU)&&/native code/.test(C$(TU)),PU=SH.TypeError,jU=SH.WeakMap;if(_U||xV.state){var NU=xV.state||(xV.state=new jU),IU=NH(NU.get),LU=NH(NU.has),RU=NH(NU.set);lU=function(e,t){if(LU(NU,e))throw new PU("Object already initialized");return t.facade=e,RU(NU,e,t),t},fU=function(e){return IU(NU,e)||{}},dU=function(e){return LU(NU,e)}}else{var MU=oU("state");Y$[MU]=!0,lU=function(e,t){if(AV(e,MU))throw new PU("Object already initialized");return t.facade=e,a$(e,MU,t),t},fU=function(e){return AV(e,MU)?e[MU]:{}},dU=function(e){return AV(e,MU)}}var zU={set:lU,get:fU,has:dU,enforce:function(e){return dU(e)?fU(e):lU(e,{})},getterFor:function(e){return function(t){var n;if(!tV(t)||(n=fU(t)).type!==e)throw PU("Incompatible receiver, "+e+" required");return n}}},HU=NH([].push),VU=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=CV(s),v=ZH(h),g=QV(c,l),y=v$(v),m=0,b=f||N$,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:HU(w,d)}else switch(e){case 4:return!1;case 7:HU(w,d)}return i?-1:r||o?o:w}},$U=[VU(0),VU(1),VU(2),VU(3),VU(4),VU(5),VU(6),VU(7)][0],UU=oU("hidden"),WU=NV("toPrimitive"),GU=zU.set,qU=zU.getterFor("Symbol"),KU=Object.prototype,YU=SH.Symbol,XU=YU&&YU.prototype,ZU=SH.TypeError,JU=SH.QObject,QU=oV("JSON","stringify"),eW=UV.f,tW=i$.f,nW=wU.f,rW=UH.f,oW=NH([].push),iW=EV("symbols"),aW=EV("op-symbols"),uW=EV("string-to-symbol-registry"),sW=EV("symbol-to-string-registry"),cW=EV("wks"),lW=!JU||!JU.prototype||!JU.prototype.findChild,fW=RH&&LH(function(){return 7!=pU(tW({},"a",{get:function(){return tW(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=eW(KU,t);r&&delete KU[t],tW(e,t,n),r&&e!==KU&&tW(KU,t,r)}:tW,dW=function(e,t){var n=iW[e]=pU(XU);return GU(n,{type:"Symbol",tag:e,description:t}),RH||(n.description=t),n},pW=function(e,t,n){e===KU&&pW(aW,t,n),n$(e);var r=RV(t);return n$(n),AV(iW,r)?(n.enumerable?(AV(e,UU)&&e[UU][r]&&(e[UU][r]=!1),n=pU(n,{enumerable:WH(0,!1)})):(AV(e,UU)||tW(e,UU,WH(1,{})),e[UU][r]=!0),fW(e,r,n)):tW(e,r,n)},hW=function(e,t){n$(e);var n=eV(t),r=eU(n).concat(mW(n));return $U(r,function(t){RH&&!zH(vW,n,t)||pW(e,t,n[t])}),e},vW=function(e){var t=RV(e),n=zH(rW,this,t);return!(this===KU&&AV(iW,t)&&!AV(aW,t))&&(!(n||!AV(this,t)||!AV(iW,t)||AV(this,UU)&&this[UU][t])||n)},gW=function(e,t){var n=eV(e),r=RV(t);if(n!==KU||!AV(iW,r)||AV(aW,r)){var o=eW(n,r);return!o||!AV(iW,r)||AV(n,UU)&&n[UU][r]||(o.enumerable=!0),o}},yW=function(e){var t=nW(eV(e)),n=[];return $U(t,function(e){AV(iW,e)||AV(Y$,e)||oW(n,e)}),n},mW=function(e){var t=e===KU,n=nW(t?aW:eV(e)),r=[];return $U(n,function(e){!AV(iW,e)||t&&!AV(KU,e)||oW(r,iW[e])}),r};if(dV||(XU=(YU=function(){if(iV(XU,this))throw ZU("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?U$(arguments[0]):void 0,t=FV(e),n=function(e){this===KU&&zH(n,aW,e),AV(this,UU)&&AV(this[UU],t)&&(this[UU][t]=!1),fW(this,t,WH(1,e))};return RH&&lW&&fW(KU,t,{configurable:!0,set:n}),dW(t,e)}).prototype,DU(XU,"toString",function(){return qU(this).tag}),DU(YU,"withoutSetter",function(e){return dW(FV(e),e)}),UH.f=vW,i$.f=pW,UV.f=gW,vU.f=wU.f=yW,xU.f=mW,CU.f=function(e){return dW(NV(e),e)},RH&&tW(XU,"description",{configurable:!0,get:function(){return qU(this).description}})),c$({global:!0,wrap:!0,forced:!dV,sham:!dV},{Symbol:YU}),$U(eU(cW),function(e){AU(e)}),c$({target:"Symbol",stat:!0,forced:!dV},{for:function(e){var t=U$(e);if(AV(uW,t))return uW[t];var n=YU(t);return uW[t]=n,sW[n]=t,n},keyFor:function(e){if(!vV(e))throw ZU(e+" is not a symbol");if(AV(sW,e))return sW[e]},useSetter:function(){lW=!0},useSimple:function(){lW=!1}}),c$({target:"Object",stat:!0,forced:!dV,sham:!RH},{create:function(e,t){return void 0===t?pU(e):hW(pU(e),t)},defineProperty:pW,defineProperties:hW,getOwnPropertyDescriptor:gW}),c$({target:"Object",stat:!0,forced:!dV},{getOwnPropertyNames:yW,getOwnPropertySymbols:mW}),c$({target:"Object",stat:!0,forced:LH(function(){xU.f(1)})},{getOwnPropertySymbols:function(e){return xU.f(CV(e))}}),QU){var bW=!dV||LH(function(){var e=YU();return"[null]"!=QU([e])||"{}"!=QU({a:e})||"{}"!=QU(Object(e))});c$({target:"JSON",stat:!0,forced:bW},{stringify:function(e,t,n){var r=EU(arguments),o=t;if((tV(t)||void 0!==e)&&!vV(e))return l$(t)||(t=function(e,t){if(IH(o)&&(t=zH(o,this,e,t)),!vV(t))return t}),r[1]=t,FH(QU,null,r)}})}if(!XU[WU]){var wW=XU.valueOf;DU(XU,WU,function(e){return zH(wW,this)})}FU(YU,"Symbol"),Y$[UU]=!0,AU("asyncIterator"),AU("hasInstance"),AU("isConcatSpreadable"),AU("iterator"),AU("match"),AU("matchAll"),AU("replace"),AU("search"),AU("species"),AU("split"),AU("toPrimitive"),AU("toStringTag"),AU("unscopables"),FU(SH.JSON,"JSON",!0);var xW,EW,DW,CW=nV.Symbol,SW={},AW=Function.prototype,OW=RH&&Object.getOwnPropertyDescriptor,kW=AV(AW,"name"),BW={PROPER:kW&&"something"===function(){}.name,CONFIGURABLE:kW&&(!RH||RH&&OW(AW,"name").configurable)},FW=!LH(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),TW=oU("IE_PROTO"),_W=SH.Object,PW=_W.prototype,jW=FW?_W.getPrototypeOf:function(e){var t=CV(e);if(AV(t,TW))return t[TW];var n=t.constructor;return IH(n)&&t instanceof n?n.prototype:t instanceof _W?PW:null},NW=NV("iterator"),IW=!1;[].keys&&("next"in(DW=[].keys())?(EW=jW(jW(DW)))!==Object.prototype&&(xW=EW):IW=!0);var LW=null==xW||LH(function(){var e={};return xW[NW].call(e)!==e});xW=LW?{}:pU(xW),IH(xW[NW])||DU(xW,NW,function(){return this});var RW={IteratorPrototype:xW,BUGGY_SAFARI_ITERATORS:IW},MW=RW.IteratorPrototype,zW=function(){return this};SH.String,SH.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{NH(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(e){}}();var HW=BW.PROPER,VW=RW.BUGGY_SAFARI_ITERATORS,$W=NV("iterator"),UW=function(){return this},WW=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=pU(MW,{next:WH(1,n)}),FU(e,r,!1,!0),SW[r]=zW}(n,t,r);var u,s,c=function(e){if(e===o&&h)return h;if(!VW&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},l=t+" Iterator",f=!1,d=e.prototype,p=d[$W]||d["@@iterator"]||o&&d[o],h=!VW&&p||c(o),v="Array"==t&&d.entries||p;return v&&(u=jW(v.call(new e)))!==Object.prototype&&u.next&&(FU(u,l,!0,!0),SW[l]=UW),HW&&"values"==o&&p&&"values"!==p.name&&(f=!0,h=function(){return zH(p,this)}),o&&(s={values:c("values"),keys:c("keys"),entries:c("entries")},a||c$({target:t,proto:!0,forced:VW||f},s)),SW[t]=h,s},GW=zU.set,qW=zU.getterFor("Array Iterator");WW(Array,"Array",function(e,t){GW(this,{type:"Array Iterator",target:eV(e),index:0,kind:t})},function(){var e=qW(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"),SW.Arguments=SW.Array;var KW=NV("toStringTag");for(var YW in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var XW=SH[YW],ZW=XW&&XW.prototype;ZW&&E$(ZW)!==KW&&a$(ZW,KW,YW),SW[YW]=SW.Array}var JW=CW;AU("asyncDispose"),AU("dispose"),AU("matcher"),AU("metadata"),AU("observable"),AU("patternMatch"),AU("replaceAll");var QW=JW,eG=NH("".charAt),tG=NH("".charCodeAt),nG=NH("".slice),rG=function(e){return function(t,n){var r,o,i=U$(QH(t)),a=p$(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=tG(i,a))<55296||r>56319||a+1===u||(o=tG(i,a+1))<56320||o>57343?e?eG(i,a):r:e?nG(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),oG=zU.set,iG=zU.getterFor("String Iterator");WW(String,"String",function(e){oG(this,{type:"String Iterator",string:U$(e),index:0})},function(){var e,t=iG(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=rG(n,r),t.index+=e.length,{value:e,done:!1})});var aG=CU.f("iterator"),uG=IP(function(e){function t(n){return"function"==typeof QW&&"symbol"==D(aG)?(e.exports=t=function(e){return D(e)},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof QW&&e.constructor===QW&&e!==QW.prototype?"symbol":D(e)},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),sG=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(uG),cG=FN.EXISTS,lG=uN.f,fG=Function.prototype,dG=ej(fG.toString),pG=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,hG=ej(pG.exec);VP&&!cG&&lG(fG,"name",{configurable:!0,get:function(){try{return hG(pG,dG(this))[1]}catch(z){return""}}});var vG=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=qf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!BR(qf.nodes(e,{match:function(t){return"pre"===IO.getNodeType(t)||!!qf.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}(),gG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("fontSize.title"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',t.mark="fontSize",t}return CR(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"===sG(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}(vG),yG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("fontFamily.title"),t.iconSvg='<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>',t.mark="fontFamily",t.selectPanelWidth=150,t}return CR(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"===sG(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}(vG),mG={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&JM(i,{fontSize:r}),o&&JM(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!yd.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((mR(t)||"span"!==wR(n=Yp(t)))&&(n=Yp("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),bR(n)):t},preParseHtml:[wH],parseStyleHtml:function(e,t,n){var r=Yp(e);if(!yd.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=xR(r,"font-size"),s=a.find(function(e){return e.value&&e.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var c=n.getMenuConfig("fontFamily").fontFamilyList,l=void 0===c?[]:c,f=xR(r,"font-family").replace(/"/g,""),d=l.find(function(e){return e.value&&e.value===f})||l.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new gG},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 yG},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},bG={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Yp(e),n=xR(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]}},wG=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=BR(qf.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":BR(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=BR(qf.nodes(e,{match:function(e){var t=IO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),xG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("indent.decrease"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',t}return CR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){Nd.setNodes(e,{indent:null},{match:function(e){return Hf.isElement(e)}})},t}(wG),EG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("indent.increase"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',t}return CR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){Nd.setNodes(e,{indent:"2em"},{match:function(e){return Hf.isElement(e)},mode:"highest"})},t}(wG),DG={renderStyle:function(e,t){if(!Hf.isElement(e))return t;var n=e.indent,r=t;return n&&JM(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!Hf.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Yp(t);return r.css("text-indent",n),bR(r)},preParseHtml:[bG],parseStyleHtml:function(e,t,n){var r=Yp(e);if(!Hf.isElement(t))return t;var o=t,i=xR(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new EG}},{key:"delIndent",factory:function(){return new xG}}]},CG=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=BR(qf.nodes(e,{match:function(e){var t=IO.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||!!IO.getSelectedElems(e).some(function(t){if(qf.isVoid(e,t)&&qf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0})},e}(),SG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("justify.left"),t.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>',t}return CR(t,e),t.prototype.exec=function(e,t){Nd.setNodes(e,{textAlign:"left"},{match:function(t){return Hf.isElement(t)&&!e.isInline(t)}})},t}(CG),AG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("justify.right"),t.iconSvg='<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>',t}return CR(t,e),t.prototype.exec=function(e,t){Nd.setNodes(e,{textAlign:"right"},{match:function(t){return Hf.isElement(t)&&!e.isInline(t)}})},t}(CG),OG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("justify.center"),t.iconSvg='<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>',t}return CR(t,e),t.prototype.exec=function(e,t){Nd.setNodes(e,{textAlign:"center"},{match:function(t){return Hf.isElement(t)&&!e.isInline(t)}})},t}(CG),kG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=hP("justify.justify"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',t}return CR(t,e),t.prototype.exec=function(e,t){Nd.setNodes(e,{textAlign:"justify"},{match:function(t){return Hf.isElement(t)&&!e.isInline(t)}})},t}(CG),BG={renderStyle:function(e,t){if(!Hf.isElement(e))return t;var n=e.textAlign,r=t;return n&&JM(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!Hf.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Yp(t);return r.css("text-align",n),bR(r)},parseStyleHtml:function(e,t,n){var r=Yp(e);if(!Hf.isElement(t))return t;var o=t,i=xR(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new SG}},{key:"justifyRight",factory:function(){return new AG}},{key:"justifyCenter",factory:function(){return new OG}},{key:"justifyJustify",factory:function(){return new kG}}]},FG=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=BR(qf.nodes(e,{match:function(e){var t=IO.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?"":Hf.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){Nd.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),TG={renderStyle:function(e,t){if(!Hf.isElement(e))return t;var n=e.lineHeight,r=t;return n&&JM(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!Hf.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Yp(t);return r.css("line-height",n),bR(r)},parseStyleHtml:function(e,t,n){var r=Yp(e);if(!Hf.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=xR(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new FG},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},_G=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}(),PG=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}(),jG={menus:[{key:"redo",factory:function(){return new _G}},{key:"undo",factory:function(){return new PG}}]},NG={type:"divider",renderElem:function(e,t,n){return bv("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:IO.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[bv("hr")])}},IG=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||!!IO.getSelectedElems(e).some(function(t){if(e.isVoid(t))return!0;var n=IO.getNodeType(t);return"table"===n||"pre"===n||void 0})},e.prototype.exec=function(e,t){Nd.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),LG={renderElems:[NG],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new IG}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=BR(e,2),o=t[0],i=t[1];if("divider"!==IO.getNodeType(o))return n([o,i]);IO.isLastNode(r,o)&&Nd.insertNodes(r,IO.genEmptyParagraph(),{at:[i[0]+1]})},r}},RG=BI.map;uI({target:"Array",proto:!0,forced:!TI("map")},{map:function(e){return RG(this,e,arguments.length>1?arguments[1]:void 0)}});var MG=ej([].join),zG=aj!=Object,HG=VR("join",",");uI({target:"Array",proto:!0,forced:zG||!HG},{join:function(e){return MG(cj(this),void 0===e?",":e)}});var VG=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=IO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=IO.getParentNode(e,t);return null==n||"pre"!==IO.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=IO.getSelectedElems(e);return!!t.some(function(t){return e.isVoid(t)})||!t.some(function(e){var t=IO.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=Jf.string(t);Nd.removeNodes(e,{mode:"highest"});var r=n.split("\n").map(function(e){return{type:"paragraph",children:[{text:e}]}});Nd.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=qf.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=kR(i),u=a.next();!u.done;u=a.next()){var s=BR(u.value,1)[0];s&&o.push(Jf.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}Nd.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};Nd.insertNodes(e,c,{mode:"highest"})},e}(),$G={key:"codeBlock",factory:function(){return new VG}};uI({target:"String",proto:!0,forced:NR("anchor")},{anchor:function(e){return jR(this,"a","name",e)}}),xL("match",function(e,t,n){return[function(t){var n=sj(this),r=null==t?void 0:kj(t,e);return r?UP(r,t,n):new RegExp(t)[e](II(n))},function(e){var r=oN(this),o=II(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return NL(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=NL(r,o));){var l=II(u[0]);s[c]=l,""===l&&(r.lastIndex=AL(o,MN(r.lastIndex),a)),c++}return 0===c?null:s}]});var UG={type:"pre",renderElem:function(e,t,n){return Mv("pre",null,t)}},WG={type:"code",renderElem:function(e,t,n){return Mv("code",null,t)}},GG={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Yp(e);return 0===(t=t.filter(function(e){return"code"===IO.getNodeType(e)})).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(e){return"code"===IO.getNodeType(e)})}}},qG={menus:[$G],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=IO.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Jf.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=BR(e,2),r=t[0],i=t[1],a=IO.getNodeType(r);return"code"===a&&i.length<=1&&Nd.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(IO.isLastNode(o,r)&&Nd.insertNodes(o,IO.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==IO.getNodeType(r.children[0])&&(Nd.unwrapNodes(o),Nd.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=IO.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");qf.insertText(o,t)}else r(e)},o},renderElems:[UG,WG],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=Yp(e);if("code"!==wR(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:Yp(e)[0].textContent||""}]}}},GG]},KG=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}(),YG={menus:[{key:"fullScreen",factory:function(){return new KG}}]},XG=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||!!ld.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];Nd.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(qf.start(e,r))}},e}(),ZG=[aM,oz,mG,DG,BG,TG,nH,LG,mH,Sz,qG,gH,qM,TR,aH,jG,YG,{menus:[{key:"enter",factory:function(){return new XG}}]}];pP("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),pP("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var JG="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function QG(e){var t={exports:{}};return e(t,t.exports),t.exports}var eq,tq,nq=function(e){return e&&e.Math==Math&&e},rq=nq("object"==("undefined"==typeof globalThis?"undefined":D(globalThis))&&globalThis)||nq("object"==("undefined"==typeof window?"undefined":D(window))&&window)||nq("object"==("undefined"==typeof self?"undefined":D(self))&&self)||nq("object"==D(JG)&&JG)||function(){return this}()||Function("return this")(),oq=Function.prototype,iq=oq.bind,aq=oq.call,uq=iq&&iq.bind(aq),sq=iq?function(e){return e&&uq(aq,e)}:function(e){return e&&function(){return aq.apply(e,arguments)}},cq=function(e){try{return!!e()}catch(e){return!0}},lq=sq({}.toString),fq=sq("".slice),dq=function(e){return fq(lq(e),8,-1)},pq=rq.Object,hq=sq("".split),vq=cq(function(){return!pq("z").propertyIsEnumerable(0)})?function(e){return"String"==dq(e)?hq(e,""):pq(e)}:pq,gq=rq.TypeError,yq=function(e){if(null==e)throw gq("Can't call method on "+e);return e},mq=function(e){return vq(yq(e))},bq=Object.defineProperty,wq=function(e,t){try{bq(rq,e,{value:t,configurable:!0,writable:!0})}catch(H){rq[e]=t}return t},xq=rq["__core-js_shared__"]||wq("__core-js_shared__",{}),Eq=QG(function(e){(e.exports=function(e,t){return xq[e]||(xq[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Dq=rq.Object,Cq=function(e){return Dq(yq(e))},Sq=sq({}.hasOwnProperty),Aq=Object.hasOwn||function(e,t){return Sq(Cq(e),t)},Oq=0,kq=Math.random(),Bq=sq(1..toString),Fq=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Bq(++Oq+kq,36)},Tq=function(e){return"function"==typeof e},_q=function(e,t){return arguments.length<2?function(e){return Tq(e)?e:void 0}(rq[e]):rq[e]&&rq[e][t]},Pq=_q("navigator","userAgent")||"",jq=rq.process,Nq=rq.Deno,Iq=jq&&jq.versions||Nq&&Nq.version,Lq=Iq&&Iq.v8;Lq&&(tq=(eq=Lq.split("."))[0]>0&&eq[0]<4?1:+(eq[0]+eq[1])),!tq&&Pq&&(!(eq=Pq.match(/Edge\/(\d+)/))||eq[1]>=74)&&(eq=Pq.match(/Chrome\/(\d+)/))&&(tq=+eq[1]);var Rq,Mq=tq,zq=!!Object.getOwnPropertySymbols&&!cq(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Mq&&Mq<41}),Hq=zq&&!Symbol.sham&&"symbol"==D(Symbol.iterator),Vq=Eq("wks"),$q=rq.Symbol,Uq=$q&&$q.for,Wq=Hq?$q:$q&&$q.withoutSetter||Fq,Gq=function(e){if(!Aq(Vq,e)||!zq&&"string"!=typeof Vq[e]){var t="Symbol."+e;zq&&Aq($q,e)?Vq[e]=$q[e]:Vq[e]=Hq&&Uq?Uq(t):Wq(t)}return Vq[e]},qq=function(e){return"object"==D(e)?null!==e:Tq(e)},Kq=rq.String,Yq=rq.TypeError,Xq=function(e){if(qq(e))return e;throw Yq(Kq(e)+" is not an object")},Zq=!cq(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Jq=rq.document,Qq=qq(Jq)&&qq(Jq.createElement),eK=function(e){return Qq?Jq.createElement(e):{}},tK=!Zq&&!cq(function(){return 7!=Object.defineProperty(eK("div"),"a",{get:function(){return 7}}).a}),nK=Function.prototype.call,rK=nK.bind?nK.bind(nK):function(){return nK.apply(nK,arguments)},oK=sq({}.isPrototypeOf),iK=rq.Object,aK=Hq?function(e){return"symbol"==D(e)}:function(e){var t=_q("Symbol");return Tq(t)&&oK(t.prototype,iK(e))},uK=rq.String,sK=function(e){try{return uK(e)}catch(e){return"Object"}},cK=rq.TypeError,lK=function(e){if(Tq(e))return e;throw cK(sK(e)+" is not a function")},fK=function(e,t){var n=e[t];return null==n?void 0:lK(n)},dK=rq.TypeError,pK=rq.TypeError,hK=Gq("toPrimitive"),vK=function(e){var t=function(e){if(!qq(e)||aK(e))return e;var t,n=fK(e,hK);if(n){if(t=rK(n,e,"string"),!qq(t)||aK(t))return t;throw pK("Can't convert object to primitive value")}return function(e){var t,n;if(Tq(t=e.toString)&&!qq(n=rK(t,e)))return n;if(Tq(t=e.valueOf)&&!qq(n=rK(t,e)))return n;throw dK("Can't convert object to primitive value")}(e)}(e);return aK(t)?t:t+""},gK=rq.TypeError,yK=Object.defineProperty,mK={f:Zq?yK:function(e,t,n){if(Xq(e),t=vK(t),Xq(n),tK)try{return yK(e,t,n)}catch(e){}if("get"in n||"set"in n)throw gK("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},bK=Math.ceil,wK=Math.floor,xK=function(e){var t=+e;return t!=t||0===t?0:(t>0?wK:bK)(t)},EK=Math.max,DK=Math.min,CK=function(e,t){var n=xK(e);return n<0?EK(n+t,0):DK(n,t)},SK=Math.min,AK=function(e){return e>0?SK(xK(e),9007199254740991):0},OK=function(e){return AK(e.length)},kK=function(e){return function(t,n,r){var o,i=mq(t),a=OK(i),u=CK(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}},BK={includes:kK(!0),indexOf:kK(!1)},FK={},TK=BK.indexOf,_K=sq([].push),PK=function(e,t){var n,r=mq(e),o=0,i=[];for(n in r)!Aq(FK,n)&&Aq(r,n)&&_K(i,n);for(;t.length>o;)Aq(r,n=t[o++])&&(~TK(i,n)||_K(i,n));return i},jK=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],NK=Object.keys||function(e){return PK(e,jK)},IK=Zq?Object.defineProperties:function(e,t){Xq(e);for(var n,r=mq(t),o=NK(t),i=o.length,a=0;i>a;)mK.f(e,n=o[a++],r[n]);return e},LK=_q("document","documentElement"),RK=Eq("keys"),MK=function(e){return RK[e]||(RK[e]=Fq(e))},zK=MK("IE_PROTO"),HK=function(){},VK=function(e){return"<script>"+e+"<\/script>"},$K=function(e){e.write(VK("")),e.close();var t=e.parentWindow.Object;return e=null,t},UK=function(){try{Rq=new ActiveXObject("htmlfile")}catch(e){}var e,t;UK="undefined"!=typeof document?document.domain&&Rq?$K(Rq):((t=eK("iframe")).style.display="none",LK.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(VK("document.F=Object")),e.close(),e.F):$K(Rq);for(var n=jK.length;n--;)delete UK.prototype[jK[n]];return UK()};FK[zK]=!0;var WK=Object.create||function(e,t){var n;return null!==e?(HK.prototype=Xq(e),n=new HK,HK.prototype=null,n[zK]=e):n=UK(),void 0===t?n:IK(n,t)},GK=Gq("unscopables"),qK=Array.prototype;null==qK[GK]&&mK.f(qK,GK,{configurable:!0,value:WK(null)});var KK=function(e){qK[GK][e]=!0},YK={},XK=sq(Function.toString);Tq(xq.inspectSource)||(xq.inspectSource=function(e){return XK(e)});var ZK,JK,QK,eY=xq.inspectSource,tY=rq.WeakMap,nY=Tq(tY)&&/native code/.test(eY(tY)),rY=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},oY=Zq?function(e,t,n){return mK.f(e,t,rY(1,n))}:function(e,t,n){return e[t]=n,e},iY=rq.TypeError,aY=rq.WeakMap;if(nY||xq.state){var uY=xq.state||(xq.state=new aY),sY=sq(uY.get),cY=sq(uY.has),lY=sq(uY.set);ZK=function(e,t){if(cY(uY,e))throw new iY("Object already initialized");return t.facade=e,lY(uY,e,t),t},JK=function(e){return sY(uY,e)||{}},QK=function(e){return cY(uY,e)}}else{var fY=MK("state");FK[fY]=!0,ZK=function(e,t){if(Aq(e,fY))throw new iY("Object already initialized");return t.facade=e,oY(e,fY,t),t},JK=function(e){return Aq(e,fY)?e[fY]:{}},QK=function(e){return Aq(e,fY)}}var dY,pY,hY,vY={set:ZK,get:JK,has:QK,enforce:function(e){return QK(e)?JK(e):ZK(e,{})},getterFor:function(e){return function(t){var n;if(!qq(t)||(n=JK(t)).type!==e)throw iY("Incompatible receiver, "+e+" required");return n}}},gY={}.propertyIsEnumerable,yY=Object.getOwnPropertyDescriptor,mY={f:yY&&!gY.call({1:2},1)?function(e){var t=yY(this,e);return!!t&&t.enumerable}:gY},bY=Object.getOwnPropertyDescriptor,wY={f:Zq?bY:function(e,t){if(e=mq(e),t=vK(t),tK)try{return bY(e,t)}catch(e){}if(Aq(e,t))return rY(!rK(mY.f,e,t),e[t])}},xY=Function.prototype,EY=Zq&&Object.getOwnPropertyDescriptor,DY=Aq(xY,"name"),CY={PROPER:DY&&"something"===function(){}.name,CONFIGURABLE:DY&&(!Zq||Zq&&EY(xY,"name").configurable)},SY=QG(function(e){var t=CY.CONFIGURABLE,n=vY.get,r=vY.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Tq(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Aq(i,"name")||t&&i.name!==f)&&oY(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==rq?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:oY(e,n,i)):c?e[n]=i:wq(n,i)})(Function.prototype,"toString",function(){return Tq(this)&&n(this).source||eY(this)})}),AY=jK.concat("length","prototype"),OY={f:Object.getOwnPropertyNames||function(e){return PK(e,AY)}},kY={f:Object.getOwnPropertySymbols},BY=sq([].concat),FY=_q("Reflect","ownKeys")||function(e){var t=OY.f(Xq(e)),n=kY.f;return n?BY(t,n(e)):t},TY=function(e,t){for(var n=FY(t),r=mK.f,o=wY.f,i=0;i<n.length;i++){var a=n[i];Aq(e,a)||r(e,a,o(t,a))}},_Y=/#|\.prototype\./,PY=function(e,t){var n=NY[jY(e)];return n==LY||n!=IY&&(Tq(t)?cq(t):!!t)},jY=PY.normalize=function(e){return String(e).replace(_Y,".").toLowerCase()},NY=PY.data={},IY=PY.NATIVE="N",LY=PY.POLYFILL="P",RY=PY,MY=wY.f,zY=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?rq:c?rq[u]||wq(u,{}):(rq[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=MY(n,r))&&a.value:n[r],!RY(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(D(i)==D(o))continue;TY(i,o)}(e.sham||o&&o.sham)&&oY(i,"sham",!0),SY(n,r,i,e)}},HY=!cq(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),VY=MK("IE_PROTO"),$Y=rq.Object,UY=$Y.prototype,WY=HY?$Y.getPrototypeOf:function(e){var t=Cq(e);if(Aq(t,VY))return t[VY];var n=t.constructor;return Tq(n)&&t instanceof n?n.prototype:t instanceof $Y?UY:null},GY=Gq("iterator"),qY=!1;[].keys&&("next"in(hY=[].keys())?(pY=WY(WY(hY)))!==Object.prototype&&(dY=pY):qY=!0);var KY=null==dY||cq(function(){var e={};return dY[GY].call(e)!==e});KY&&(dY={}),Tq(dY[GY])||SY(dY,GY,function(){return this});var YY={IteratorPrototype:dY,BUGGY_SAFARI_ITERATORS:qY},XY=mK.f,ZY=Gq("toStringTag"),JY=function(e,t,n){e&&!Aq(e=n?e:e.prototype,ZY)&&XY(e,ZY,{configurable:!0,value:t})},QY=YY.IteratorPrototype,eX=function(){return this},tX=rq.String,nX=rq.TypeError,rX=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=sq(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Xq(n),function(e){if("object"==D(e)||Tq(e))return e;throw nX("Can't set "+tX(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),oX=CY.PROPER,iX=CY.CONFIGURABLE,aX=YY.IteratorPrototype,uX=YY.BUGGY_SAFARI_ITERATORS,sX=Gq("iterator"),cX=function(){return this},lX=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=WK(QY,{next:rY(1,n)}),JY(e,r,!1),YK[r]=eX}(n,t,r);var u,s,c=function(e){if(e===o&&h)return h;if(!uX&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},l=t+" Iterator",f=!1,d=e.prototype,p=d[sX]||d["@@iterator"]||o&&d[o],h=!uX&&p||c(o),v="Array"==t&&d.entries||p;return v&&(u=WY(v.call(new e)))!==Object.prototype&&u.next&&(WY(u)!==aX&&(rX?rX(u,aX):Tq(u[sX])||SY(u,sX,cX)),JY(u,l,!0)),oX&&"values"==o&&p&&"values"!==p.name&&(iX?oY(d,"name","values"):(f=!0,h=function(){return rK(p,this)})),o&&(s={values:c("values"),keys:c("keys"),entries:c("entries")},a||zY({target:t,proto:!0,forced:uX||f},s)),d[sX]!==h&&SY(d,sX,h,{name:o}),YK[t]=h,s},fX=vY.set,dX=vY.getterFor("Array Iterator"),pX=lX(Array,"Array",function(e,t){fX(this,{type:"Array Iterator",target:mq(e),index:0,kind:t})},function(){var e=dX(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");YK.Arguments=YK.Array,KK("keys"),KK("values"),KK("entries");var hX={};hX[Gq("toStringTag")]="z";var vX="[object z]"===String(hX),gX=Gq("toStringTag"),yX=rq.Object,mX="Arguments"==dq(function(){return arguments}()),bX=vX?dq: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=yX(e),gX))?n:mX?dq(t):"Object"==(r=dq(t))&&Tq(t.callee)?"Arguments":r},wX=vX?{}.toString:function(){return"[object "+bX(this)+"]"};vX||SY(Object.prototype,"toString",wX,{unsafe:!0});var xX=rq.String,EX=function(e){if("Symbol"===bX(e))throw TypeError("Cannot convert a Symbol value to a string");return xX(e)},DX=sq("".charAt),CX=sq("".charCodeAt),SX=sq("".slice),AX={charAt:function(e){return function(t,n){var r,o,i=EX(yq(t)),a=xK(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=CX(i,a))<55296||r>56319||a+1===u||(o=CX(i,a+1))<56320||o>57343?e?DX(i,a):r:e?SX(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},OX=AX.charAt,kX=vY.set,BX=vY.getterFor("String Iterator");lX(String,"String",function(e){kX(this,{type:"String Iterator",string:EX(e),index:0})},function(){var e,t=BX(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=OX(n,r),t.index+=e.length,{value:e,done:!1})});var FX=function(e,t,n){for(var r in t)SY(e,r,t[r],n);return e},TX=rq.Array,_X=Math.max,PX=OY.f,jX="object"==("undefined"==typeof window?"undefined":D(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],NX={f:function(e){return jX&&"Window"==dq(e)?function(e){try{return PX(e)}catch(e){return function(e){for(var t,n,r,o,i=OK(e),a=CK(void 0,i),u=CK(i,i),s=TX(_X(u-a,0)),c=0;a<u;a++,c++)t=s,n=c,r=e[a],(o=vK(n))in t?mK.f(t,o,rY(0,r)):t[o]=r;return s.length=c,s}(jX)}}(e):PX(mq(e))}},IX=cq(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),LX=Object.isExtensible,RX=cq(function(){LX(1)})||IX?function(e){return!!qq(e)&&(!IX||"ArrayBuffer"!=dq(e))&&(!LX||LX(e))}:LX,MX=!cq(function(){return Object.isExtensible(Object.preventExtensions({}))}),zX=QG(function(e){var t=mK.f,n=!1,r=Fq("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=OY.f,t=sq([].splice),o={};o[r]=1,e(o).length&&(OY.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},zY({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:NX.f}))},fastKey:function(e,t){if(!qq(e))return"symbol"==D(e)?e:("string"==typeof e?"S":"P")+e;if(!Aq(e,r)){if(!RX(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Aq(e,r)){if(!RX(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return MX&&n&&RX(e)&&!Aq(e,r)&&i(e),e}};FK[r]=!0}),HX=sq(sq.bind),VX=function(e,t){return lK(e),void 0===t?e:HX?HX(e,t):function(){return e.apply(t,arguments)}},$X=Gq("iterator"),UX=Array.prototype,WX=Gq("iterator"),GX=function(e){if(null!=e)return fK(e,WX)||fK(e,"@@iterator")||YK[bX(e)]},qX=rq.TypeError,KX=function(e,t,n){var r,o;Xq(e);try{if(!(r=fK(e,"return"))){if("throw"===t)throw n;return n}r=rK(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Xq(r),n},YX=rq.TypeError,XX=function(e,t){this.stopped=e,this.result=t},ZX=XX.prototype,JX=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=VX(t,f),g=function(e){return r&&KX(r,"normal",e),new XX(!0,e)},y=function(e){return d?(Xq(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=GX(e)))throw YX(sK(e)+" is not iterable");if(void 0!==(l=o)&&(YK.Array===l||UX[$X]===l)){for(i=0,a=OK(e);a>i;i++)if((u=y(e[i]))&&oK(ZX,u))return u;return new XX(!1)}r=function(e,t){var n=arguments.length<2?GX(e):t;if(lK(n))return Xq(rK(n,e));throw qX(sK(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=rK(s,r)).done;){try{u=y(c.value)}catch(e){KX(r,"throw",e)}if("object"==D(u)&&u&&oK(ZX,u))return u}return new XX(!1)},QX=rq.TypeError,eZ=function(e,t){if(oK(t,e))return e;throw QX("Incorrect invocation")},tZ=Gq("iterator"),nZ=!1;try{var rZ=0,oZ={next:function(){return{done:!!rZ++}},return:function(){nZ=!0}};oZ[tZ]=function(){return this},Array.from(oZ,function(){throw 2})}catch(il){}var iZ=Array.isArray||function(e){return"Array"==dq(e)},aZ=function(){},uZ=[],sZ=_q("Reflect","construct"),cZ=/^\s*(?:class|function)\b/,lZ=sq(cZ.exec),fZ=!cZ.exec(aZ),dZ=function(e){if(!Tq(e))return!1;try{return sZ(aZ,uZ,e),!0}catch(e){return!1}},pZ=!sZ||cq(function(){var e;return dZ(dZ.call)||!dZ(Object)||!dZ(function(){e=!0})||e})?function(e){if(!Tq(e))return!1;switch(bX(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return fZ||!!lZ(cZ,eY(e))}:dZ,hZ=Gq("species"),vZ=rq.Array,gZ=function(e,t){return new(function(e){var t;return iZ(e)&&(t=e.constructor,(pZ(t)&&(t===vZ||iZ(t.prototype))||qq(t)&&null===(t=t[hZ]))&&(t=void 0)),void 0===t?vZ:t}(e))(0===t?0:t)},yZ=sq([].push),mZ=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=Cq(s),v=vq(h),g=VX(c,l),y=OK(v),m=0,b=f||gZ,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:yZ(w,d)}else switch(e){case 4:return!1;case 7:yZ(w,d)}return i?-1:r||o?o:w}},bZ={filter:mZ(2),find:mZ(5),findIndex:mZ(6)},wZ=zX.getWeakData,xZ=vY.set,EZ=vY.getterFor,DZ=bZ.find,CZ=bZ.findIndex,SZ=sq([].splice),AZ=0,OZ=function(e){return e.frozen||(e.frozen=new kZ)},kZ=function(){this.entries=[]},BZ=function(e,t){return DZ(e.entries,function(e){return e[0]===t})};kZ.prototype={get:function(e){var t=BZ(this,e);if(t)return t[1]},has:function(e){return!!BZ(this,e)},set:function(e,t){var n=BZ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=CZ(this.entries,function(t){return t[0]===e});return~t&&SZ(this.entries,t,1),!!~t}};var FZ,TZ={getConstructor:function(e,t,n,r){var o=e(function(e,o){eZ(e,i),xZ(e,{type:t,id:AZ++,frozen:void 0}),null!=o&&JX(o,e[r],{that:e,AS_ENTRIES:n})}),i=o.prototype,a=EZ(t),u=function(e,t,n){var r=a(e),o=wZ(Xq(t),!0);return!0===o?OZ(r).set(t,n):o[r.id]=n,e};return FX(i,{delete:function(e){var t=a(this);if(!qq(e))return!1;var n=wZ(e);return!0===n?OZ(t).delete(e):n&&Aq(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!qq(e))return!1;var n=wZ(e);return!0===n?OZ(t).has(e):n&&Aq(n,t.id)}}),FX(i,n?{get:function(e){var t=a(this);if(qq(e)){var n=wZ(e);return!0===n?OZ(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}},_Z=vY.enforce,PZ=!rq.ActiveXObject&&"ActiveXObject"in rq,jZ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},NZ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=rq[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=sq(u[e]);SY(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!qq(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!qq(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!qq(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(RY(e,!Tq(a)||!(o||u.forEach&&!cq(function(){(new a).entries().next()}))))s=n.getConstructor(t,e,r,i),zX.enable();else if(RY(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=cq(function(){f.has(1)}),h=function(){if(!nZ)return!1;var t=!1;try{var n={};n[tZ]=function(){return{next:function(){return{done:t=!0}}}},function(e){new a(e)}(n)}catch(e){}return t}(),v=!o&&cq(function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)});h||((s=t(function(e,t){eZ(e,u);var n=function(e,t,n){var r,o;return rX&&Tq(r=t.constructor)&&r!==n&&qq(o=r.prototype)&&o!==n.prototype&&rX(e,o),e}(new a,e,s);return null!=t&&JX(t,n[i],{that:n,AS_ENTRIES:r}),n})).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,zY({global:!0,forced:s!=a},c),JY(s,e),o||n.setStrong(s,e,r),s}("WeakMap",jZ,TZ);if(nY&&PZ){FZ=TZ.getConstructor(jZ,"WeakMap",!0),zX.enable();var IZ=NZ.prototype,LZ=sq(IZ.delete),RZ=sq(IZ.has),MZ=sq(IZ.get),zZ=sq(IZ.set);FX(IZ,{delete:function(e){if(qq(e)&&!RX(e)){var t=_Z(this);return t.frozen||(t.frozen=new FZ),LZ(this,e)||t.frozen.delete(e)}return LZ(this,e)},has:function(e){if(qq(e)&&!RX(e)){var t=_Z(this);return t.frozen||(t.frozen=new FZ),RZ(this,e)||t.frozen.has(e)}return RZ(this,e)},get:function(e){if(qq(e)&&!RX(e)){var t=_Z(this);return t.frozen||(t.frozen=new FZ),RZ(this,e)?MZ(this,e):t.frozen.get(e)}return MZ(this,e)},set:function(e,t){if(qq(e)&&!RX(e)){var n=_Z(this);n.frozen||(n.frozen=new FZ),RZ(this,e)?zZ(this,e,t):n.frozen.set(e,t)}else zZ(this,e,t);return this}})}var HZ={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},VZ=eK("span").classList,$Z=VZ&&VZ.constructor&&VZ.constructor.prototype,UZ=$Z===Object.prototype?void 0:$Z,WZ=Gq("iterator"),GZ=Gq("toStringTag"),qZ=pX.values,KZ=function(e,t){if(e){if(e[WZ]!==qZ)try{oY(e,WZ,qZ)}catch(t){e[WZ]=qZ}if(e[GZ]||oY(e,GZ,t),HZ[t])for(var n in pX)if(e[n]!==pX[n])try{oY(e,n,pX[n])}catch(t){e[n]=pX[n]}}};for(var YZ in HZ)KZ(rq[YZ]&&rq[YZ].prototype,YZ);KZ(UZ,"DOMTokenList");var XZ=new WeakMap,ZZ={type:"list-item",renderElem:function(e,t,n){XZ.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(void 0!==a&&a){var c=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,c=t,l=IO.findPath(e,c);if(0===l[0])return 1;for(;l[0]>0;){var f=nd.previous(l),d=qf.node(e,f);if(null==d)break;var p=d[0],h=p.level,v=void 0===h?0:h,g=p.type,y=p.ordered;if(g!==r)break;if(v<i)break;if(v===i){if(y!==u)break;s++}c=p,l=f}return s}(n,e);s=c+"."}else s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);var l=function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];yd.isText(i)&&(t=i)}return null==t?"":t.color||""}(e);return Mv("div",{style:u},Mv("span",{contentEditable:!1,style:{marginRight:"0.5em",color:l},"data-w-e-reserve":!0},s),Mv("span",null,t))}},JZ=function(e,t){return JZ=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])},JZ(e,t);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function QZ(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}JZ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function eJ(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 tJ(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 nJ(e){return qf.nodes(e,{at:e.selection||void 0,match:function(t){return 1===IO.findPath(e,t).length}})}var rJ=BK.includes;zY({target:"Array",proto:!0},{includes:function(e){return rJ(this,e,arguments.length>1?arguments[1]:void 0)}}),KK("includes");var oJ,iJ,aJ=function(){var e=Xq(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},uJ=rq.RegExp,sJ=cq(function(){var e=uJ("a","y");return e.lastIndex=2,null!=e.exec("abcd")});sJ||cq(function(){return!uJ("a","y").sticky});var cJ={BROKEN_CARET:sJ||cq(function(){var e=uJ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},lJ=rq.RegExp,fJ=cq(function(){var e=lJ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),dJ=rq.RegExp,pJ=cq(function(){var e=dJ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),hJ=vY.get,vJ=Eq("native-string-replace",String.prototype.replace),gJ=RegExp.prototype.exec,yJ=gJ,mJ=sq("".charAt),bJ=sq("".indexOf),wJ=sq("".replace),xJ=sq("".slice),EJ=(iJ=/b*/g,rK(gJ,oJ=/a/,"a"),rK(gJ,iJ,"a"),0!==oJ.lastIndex||0!==iJ.lastIndex),DJ=cJ.BROKEN_CARET,CJ=void 0!==/()??/.exec("")[1];(EJ||CJ||DJ||fJ||pJ)&&(yJ=function(e){var t,n,r,o,i,a,u,s=this,c=hJ(s),l=EX(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=rK(yJ,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=DJ&&s.sticky,h=rK(aJ,s),v=s.source,g=0,y=l;if(p&&(h=wJ(h,"y",""),-1===bJ(h,"g")&&(h+="g"),y=xJ(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==mJ(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),CJ&&(n=new RegExp("^"+v+"$(?!\\s)",h)),EJ&&(r=s.lastIndex),o=rK(gJ,p?n:s,y),p?o?(o.input=xJ(o.input,g),o[0]=xJ(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:EJ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),CJ&&o&&o.length>1&&rK(vJ,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=WK(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var SJ=yJ;zY({target:"RegExp",proto:!0,forced:/./.exec!==SJ},{exec:SJ});var AJ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return IO.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||!!IO.getSelectedElems(e).some(function(t){if(qf.isVoid(e,t)&&qf.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)?Nd.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):Nd.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),OJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=hP("listModule.unOrderedList"),t.iconSvg='<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>',t}return QZ(t,e),t}(AJ),kJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=hP("listModule.orderedList"),t.iconSvg='<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>',t}return QZ(t,e),t}(AJ),BJ={key:"bulletedList",factory:function(){return new OJ}},FJ={key:"numberedList",factory:function(){return new kJ}},TJ=[],_J={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=XZ.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=IO.findPath(t,e);if(0===s[0])return u+1;var c=nd.previous(s),l=qf.node(t,c);if(!l)return 0;var f=tJ(l,1)[0];if(IO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?u-g:g>u?0:g===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",TJ.push(i);var s=function(e){var t=XZ.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=IO.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var c=nd.next(s),l=qf.node(t,c);if(!l)return 0;var f=tJ(l,1)[0];if(IO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?u-g:g>u?0:g===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+TJ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},PJ=Gq("species"),jJ=bZ.filter,NJ=Mq>=51||!cq(function(){var e=[];return(e.constructor={})[PJ]=function(){return{foo:1}},1!==e.filter(Boolean).foo});zY({target:"Array",proto:!0,forced:!NJ},{filter:function(e){return jJ(this,e,arguments.length>1?arguments[1]:void 0)}});var IJ=Function.prototype,LJ=IJ.apply,RJ=IJ.bind,MJ=IJ.call,zJ="object"==("undefined"==typeof Reflect?"undefined":D(Reflect))&&Reflect.apply||(RJ?MJ.bind(LJ):function(){return MJ.apply(LJ,arguments)}),HJ=(Gq("species"),RegExp.prototype),VJ=AX.charAt,$J=function(e,t,n){return t+(n?VJ(e,t).length:1)},UJ=Math.floor,WJ=sq("".charAt),GJ=sq("".replace),qJ=sq("".slice),KJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,YJ=/\$([$&'`]|\d{1,2})/g,XJ=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=YJ;return void 0!==o&&(o=Cq(o),s=KJ),GJ(i,s,function(i,s){var c;switch(WJ(s,0)){case"$":return"$";case"&":return e;case"`":return qJ(t,0,n);case"'":return qJ(t,a);case"<":c=o[qJ(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=UJ(l/10);return 0===f?i:f<=u?void 0===r[f-1]?WJ(s,1):r[f-1]+WJ(s,1):i}c=r[l-1]}return void 0===c?"":c})},ZJ=rq.TypeError,JJ=function(e,t){var n=e.exec;if(Tq(n)){var r=rK(n,e,t);return null!==r&&Xq(r),r}if("RegExp"===dq(e))return rK(SJ,e,t);throw ZJ("RegExp#exec called on incompatible receiver")},QJ=Gq("replace"),eQ=Math.max,tQ=Math.min,nQ=sq([].concat),rQ=sq([].push),oQ=sq("".indexOf),iQ=sq("".slice),aQ="$0"==="a".replace(/./,"$0"),uQ=!!/./[QJ]&&""===/./[QJ]("a","$0");!function(e,t,n){var r=Gq(e),o=!cq(function(){var t={};return t[r]=function(){return 7},7!=""[e](t)}),i=o&&!cq(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[r](""),!e});if(!o||!i||n){var a=sq(/./[r]),u=function(e,t,n){var r=uQ?"$":"$0";return[function(e,n){var r=yq(this),o=null==e?void 0:fK(e,QJ);return o?rK(o,e,r,n):rK(t,EX(r),e,n)},function(e,o){var i=Xq(this),a=EX(e);if("string"==typeof o&&-1===oQ(o,r)&&-1===oQ(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Tq(o);s||(o=EX(o));var c=i.global;if(c){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var d=JJ(i,a);if(null===d)break;if(rQ(f,d),!c)break;""===EX(d[0])&&(i.lastIndex=$J(a,AK(i.lastIndex),l))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=EX((d=f[g])[0]),m=eQ(tQ(xK(d.index),a.length),0),b=[],w=1;w<d.length;w++)rQ(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=nQ([y],b,m,a);void 0!==x&&rQ(E,x);var D=EX(zJ(o,void 0,E))}else D=XJ(y,a,m,b,x,o);m>=v&&(h+=iQ(a,v,m)+D,v=m+y.length)}return h+iQ(a,v)}]}(0,""[e],function(e,t,n,r,i){var u=sq(e),s=t.exec;return s===SJ||s===HJ.exec?o&&!i?{done:!0,value:a(t,n,r)}:{done:!0,value:u(n,t,r)}:{done:!1}});SY(String.prototype,e,u[0]),SY(HJ,r,u[1])}}("replace",0,!!cq(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!aQ||uQ);var sQ=rq.TypeError,cQ=function(e,t,n,r,o,i,a,u){for(var s,c,l=o,f=0,d=!!a&&VX(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&iZ(s))c=OK(s),l=cQ(e,t,s,c,l,i-1)-1;else{if(l>=9007199254740991)throw sQ("Exceed the acceptable array length");e[l]=s}l++}f++}return l},lQ=cQ;function fQ(e){return e.length?e[0].tagName.toLowerCase():""}zY({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Cq(this),n=OK(t),r=gZ(t,0);return r.length=lQ(r,t,t,n,0,void 0===e?1:xK(e)),r}}),KK("flat"),zY({global:!0},{globalThis:rq}),gh&&(Yp.fn.append=gh),Qp&&(Yp.fn.attr=Qp),mh&&(Yp.fn.parent=mh);var dQ={renderElems:[ZZ],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(ld.isExpanded(n))t(e);else{var r=IO.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?Nd.setNodes(o,{level:a-1}):Nd.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(ld.isCollapsed(a)){var u=IO.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,c=void 0===s?0:s;return void Nd.setNodes(o,{level:c+1})}}if(ld.isExpanded(a)){var l=0,f=!1;try{for(var d=eJ(nJ(o)),p=d.next();!p.done;p=d.next()){var h=tJ(p.value,1)[0];"list-item"===IO.getNodeType(h)?l++: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||l<=1)return void n();try{for(var v=eJ(nJ(o)),g=v.next();!g.done;g=v.next()){var y=tJ(g.value,2),m=(h=y[0],y[1]),b=h.level;c=void 0===b?0:b,Nd.setNodes(o,{level:c+1},{at:m})}}catch(e){r={error:e}}finally{try{g&&!g.done&&(i=v.return)&&i.call(v)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=tJ(e,2),n=t[0],i=t[1],a=IO.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||Nd.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[BJ,FJ],elemsToHtml:[_J],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=Yp(e);0===(t=t.filter(function(e){return!!yd.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===fQ(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=fQ(n);"ul"===r||"ol"===r;)r=fQ(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},pQ=H(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",c="[object Function]",l="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",v="[object Set]",g="[object String]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,E={};E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E[o]=E[i]=E[m]=E[a]=E[b]=E[u]=E[s]=E[c]=E[l]=E[f]=E[d]=E[h]=E[v]=E[g]=E[y]=!1;var C="object"==D(z)&&z&&z.Object===Object&&z,S="object"==("undefined"==typeof self?"undefined":D(self))&&self&&self.Object===Object&&self,A=C||S||Function("return this")(),O=t&&!t.nodeType&&t,k=O&&e&&!e.nodeType&&e,B=k&&k.exports===O,F=B&&C.process,T=function(){try{return F&&F.binding&&F.binding("util")}catch(z){}}(),_=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__"],H=L.toString,V=R.hasOwnProperty,$=function(){var e=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),U=R.toString,W=RegExp("^"+H.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=B?A.Buffer:void 0,q=A.Symbol,K=A.Uint8Array,Y=R.propertyIsEnumerable,X=I.splice,Z=q?q.toStringTag:void 0,J=Object.getOwnPropertySymbols,Q=G?G.isBuffer:void 0,ee=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),te=Ae(A,"DataView"),ne=Ae(A,"Map"),re=Ae(A,"Promise"),oe=Ae(A,"Set"),ie=Ae(A,"WeakMap"),ae=Ae(Object,"create"),ue=Fe(te),se=Fe(ne),ce=Fe(re),le=Fe(oe),fe=Fe(ie),de=q?q.prototype:void 0,pe=de?de.valueOf:void 0;function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ge;++t<n;)this.add(e[t])}function me(e){var t=this.__data__=new ve(e);this.size=t.size}function be(e,t){for(var n=e.length;n--;)if(Te(e[n][0],t))return n;return-1}function we(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=V.call(e,Z),n=e[Z];try{e[Z]=void 0;var r=!0}catch(e){}var o=U.call(e);return r&&(t?e[Z]=n:delete e[Z]),o}(e):function(e){return U.call(e)}(e)}function xe(e){return Re(e)&&we(e)==o}function Ee(e,t,n,r,c){return e===t||(null==e||null==t||!Re(e)&&!Re(t)?e!=e&&t!=t:function(e,t,n,r,c,p){var y=Pe(e),w=Pe(t),x=y?i:ke(e),E=w?i:ke(t),D=(x=x==o?d:x)==d,C=(E=E==o?d:E)==d,S=x==E;if(S&&je(e)){if(!je(t))return!1;y=!0,D=!1}if(S&&!D)return p||(p=new me),y||Me(e)?De(e,t,n,r,c,p):function(e,t,n,r,o,i,c){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case m:return!(e.byteLength!=t.byteLength||!i(new K(e),new K(t)));case a:case u:case f:return Te(+e,+t);case s:return e.name==t.name&&e.message==t.message;case h:case g:return e==t+"";case l:var d=j;case v:var p=1&r;if(d||(d=N),e.size!=t.size&&!p)return!1;var y=c.get(e);if(y)return y==t;r|=2,c.set(e,t);var w=De(d(e),d(t),r,o,i,c);return c.delete(e),w;case"[object Symbol]":if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,x,n,r,c,p);if(!(1&n)){var A=D&&V.call(e,"__wrapped__"),O=C&&V.call(t,"__wrapped__");if(A||O){var k=A?e.value():e,B=O?t.value():t;return p||(p=new me),c(k,B,n,r,p)}}return!!S&&(p||(p=new me),function(e,t,n,r,o,i){var a=1&n,u=Ce(e),s=u.length;if(s!=Ce(t).length&&!a)return!1;for(var c=s;c--;){var l=u[c];if(!(a?l in t:V.call(t,l)))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;++c<s;){var h=e[l=u[c]],v=t[l];if(r)var g=a?r(v,h,l,t,e,i):r(h,v,l,e,t,i);if(!(void 0===g?h===v||o(h,v,n,r,i):g)){d=!1;break}p||(p="constructor"==l)}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,c,p))}(e,t,n,r,Ee,c))}function De(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var l=-1,f=!0,d=2&n?new ye:void 0;for(i.set(e,t),i.set(t,e);++l<u;){var p=e[l],h=t[l];if(r)var v=a?r(h,p,l,t,e,i):r(p,h,l,e,t,i);if(void 0!==v){if(v)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 Ce(e){return function(e,t,n){var r=t(e);return Pe(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,ze,Oe)}function Se(e,t){var n,r,o=e.__data__;return("string"==(r=D(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ae(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Le(e)||function(e){return!!$&&$ in e}(e))&&(Ne(e)?W:w).test(Fe(e))}(n)?n:void 0}he.prototype.clear=function(){this.__data__=ae?ae(null):{},this.size=0},he.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},he.prototype.get=function(e){var t=this.__data__;if(ae){var r=t[e];return r===n?void 0:r}return V.call(t,e)?t[e]:void 0},he.prototype.has=function(e){var t=this.__data__;return ae?void 0!==t[e]:V.call(t,e)},he.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ae&&void 0===t?n:t,this},ve.prototype.clear=function(){this.__data__=[],this.size=0},ve.prototype.delete=function(e){var t=this.__data__,n=be(t,e);return!(n<0||(n==t.length-1?t.pop():X.call(t,n,1),--this.size,0))},ve.prototype.get=function(e){var t=this.__data__,n=be(t,e);return n<0?void 0:t[n][1]},ve.prototype.has=function(e){return be(this.__data__,e)>-1},ve.prototype.set=function(e,t){var n=this.__data__,r=be(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 he,map:new(ne||ve),string:new he}},ge.prototype.delete=function(e){var t=Se(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return Se(this,e).get(e)},ge.prototype.has=function(e){return Se(this,e).has(e)},ge.prototype.set=function(e,t){var n=Se(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,n),this},ye.prototype.has=function(e){return this.__data__.has(e)},me.prototype.clear=function(){this.__data__=new ve,this.size=0},me.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},me.prototype.get=function(e){return this.__data__.get(e)},me.prototype.has=function(e){return this.__data__.has(e)},me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ve){var r=n.__data__;if(!ne||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 Oe=J?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}(J(e),function(t){return Y.call(e,t)}))}:function(){return[]},ke=we;function Be(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||x.test(e))&&e>-1&&e%1==0&&e<t}function Fe(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Te(e,t){return e===t||e!=e&&t!=t}(te&&ke(new te(new ArrayBuffer(1)))!=b||ne&&ke(new ne)!=l||re&&ke(re.resolve())!=p||oe&&ke(new oe)!=v||ie&&ke(new ie)!=y)&&(ke=function(e){var t=we(e),n=t==d?e.constructor:void 0,r=n?Fe(n):"";if(r)switch(r){case ue:return b;case se:return l;case ce:return p;case le:return v;case fe:return y}return t});var _e=xe(function(){return arguments}())?xe:function(e){return Re(e)&&V.call(e,"callee")&&!Y.call(e,"callee")},Pe=Array.isArray,je=Q||function(){return!1};function Ne(e){if(!Le(e))return!1;var t=we(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ie(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Le(e){var t=D(e);return null!=e&&("object"==t||"function"==t)}function Re(e){return null!=e&&"object"==D(e)}var Me=_?function(e){return function(t){return e(t)}}(_):function(e){return Re(e)&&Ie(e.length)&&!!E[we(e)]};function ze(e){return null!=(t=e)&&Ie(t.length)&&!Ne(t)?function(e){var t=Pe(e),n=!t&&_e(e),r=!t&&!n&&je(e),o=!t&&!n&&!r&&Me(e),i=t||n||r||o,a=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=a.length;for(var s in e)!V.call(e,s)||i&&("length"==s||r&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Be(s,u))||a.push(s);return a}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||R))return ee(e);var t,n,r=[];for(var o in Object(e))V.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return Ee(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 hQ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function vQ(e){var t={exports:{}};return e(t,t.exports),t.exports}var gQ,yQ,mQ=function(e){return e&&e.Math==Math&&e},bQ=mQ("object"==("undefined"==typeof globalThis?"undefined":D(globalThis))&&globalThis)||mQ("object"==("undefined"==typeof window?"undefined":D(window))&&window)||mQ("object"==("undefined"==typeof self?"undefined":D(self))&&self)||mQ("object"==D(hQ)&&hQ)||function(){return this}()||Function("return this")(),wQ=function(e){try{return!!e()}catch(e){return!0}},xQ=!wQ(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),EQ=Function.prototype.call,DQ=EQ.bind?EQ.bind(EQ):function(){return EQ.apply(EQ,arguments)},CQ={}.propertyIsEnumerable,SQ=Object.getOwnPropertyDescriptor,AQ={f:SQ&&!CQ.call({1:2},1)?function(e){var t=SQ(this,e);return!!t&&t.enumerable}:CQ},OQ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},kQ=Function.prototype,BQ=kQ.bind,FQ=kQ.call,TQ=BQ&&BQ.bind(FQ),_Q=BQ?function(e){return e&&TQ(FQ,e)}:function(e){return e&&function(){return FQ.apply(e,arguments)}},PQ=_Q({}.toString),jQ=_Q("".slice),NQ=function(e){return jQ(PQ(e),8,-1)},IQ=bQ.Object,LQ=_Q("".split),RQ=wQ(function(){return!IQ("z").propertyIsEnumerable(0)})?function(e){return"String"==NQ(e)?LQ(e,""):IQ(e)}:IQ,MQ=bQ.TypeError,zQ=function(e){if(null==e)throw MQ("Can't call method on "+e);return e},HQ=function(e){return RQ(zQ(e))},VQ=function(e){return"function"==typeof e},$Q=function(e){return"object"==D(e)?null!==e:VQ(e)},UQ=function(e,t){return arguments.length<2?function(e){return VQ(e)?e:void 0}(bQ[e]):bQ[e]&&bQ[e][t]},WQ=_Q({}.isPrototypeOf),GQ=UQ("navigator","userAgent")||"",qQ=bQ.process,KQ=bQ.Deno,YQ=qQ&&qQ.versions||KQ&&KQ.version,XQ=YQ&&YQ.v8;XQ&&(yQ=(gQ=XQ.split("."))[0]>0&&gQ[0]<4?1:+(gQ[0]+gQ[1])),!yQ&&GQ&&(!(gQ=GQ.match(/Edge\/(\d+)/))||gQ[1]>=74)&&(gQ=GQ.match(/Chrome\/(\d+)/))&&(yQ=+gQ[1]);var ZQ=yQ,JQ=!!Object.getOwnPropertySymbols&&!wQ(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ZQ&&ZQ<41}),QQ=JQ&&!Symbol.sham&&"symbol"==D(Symbol.iterator),e0=bQ.Object,t0=QQ?function(e){return"symbol"==D(e)}:function(e){var t=UQ("Symbol");return VQ(t)&&WQ(t.prototype,e0(e))},n0=bQ.String,r0=function(e){try{return n0(e)}catch(e){return"Object"}},o0=bQ.TypeError,i0=function(e){if(VQ(e))return e;throw o0(r0(e)+" is not a function")},a0=function(e,t){var n=e[t];return null==n?void 0:i0(n)},u0=bQ.TypeError,s0=Object.defineProperty,c0=function(e,t){try{s0(bQ,e,{value:t,configurable:!0,writable:!0})}catch(H){bQ[e]=t}return t},l0=bQ["__core-js_shared__"]||c0("__core-js_shared__",{}),f0=vQ(function(e){(e.exports=function(e,t){return l0[e]||(l0[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),d0=bQ.Object,p0=function(e){return d0(zQ(e))},h0=_Q({}.hasOwnProperty),v0=Object.hasOwn||function(e,t){return h0(p0(e),t)},g0=0,y0=Math.random(),m0=_Q(1..toString),b0=function(e){return"Symbol("+(void 0===e?"":e)+")_"+m0(++g0+y0,36)},w0=f0("wks"),x0=bQ.Symbol,E0=x0&&x0.for,D0=QQ?x0:x0&&x0.withoutSetter||b0,C0=function(e){if(!v0(w0,e)||!JQ&&"string"!=typeof w0[e]){var t="Symbol."+e;JQ&&v0(x0,e)?w0[e]=x0[e]:w0[e]=QQ&&E0?E0(t):D0(t)}return w0[e]},S0=bQ.TypeError,A0=C0("toPrimitive"),O0=function(e){var t=function(e){if(!$Q(e)||t0(e))return e;var t,n=a0(e,A0);if(n){if(t=DQ(n,e,"string"),!$Q(t)||t0(t))return t;throw S0("Can't convert object to primitive value")}return function(e){var t,n;if(VQ(t=e.toString)&&!$Q(n=DQ(t,e)))return n;if(VQ(t=e.valueOf)&&!$Q(n=DQ(t,e)))return n;throw u0("Can't convert object to primitive value")}(e)}(e);return t0(t)?t:t+""},k0=bQ.document,B0=$Q(k0)&&$Q(k0.createElement),F0=function(e){return B0?k0.createElement(e):{}},T0=!xQ&&!wQ(function(){return 7!=Object.defineProperty(F0("div"),"a",{get:function(){return 7}}).a}),_0=Object.getOwnPropertyDescriptor,P0={f:xQ?_0:function(e,t){if(e=HQ(e),t=O0(t),T0)try{return _0(e,t)}catch(e){}if(v0(e,t))return OQ(!DQ(AQ.f,e,t),e[t])}},j0=bQ.String,N0=bQ.TypeError,I0=function(e){if($Q(e))return e;throw N0(j0(e)+" is not an object")},L0=bQ.TypeError,R0=Object.defineProperty,M0={f:xQ?R0:function(e,t,n){if(I0(e),t=O0(t),I0(n),T0)try{return R0(e,t,n)}catch(e){}if("get"in n||"set"in n)throw L0("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},z0=xQ?function(e,t,n){return M0.f(e,t,OQ(1,n))}:function(e,t,n){return e[t]=n,e},H0=_Q(Function.toString);VQ(l0.inspectSource)||(l0.inspectSource=function(e){return H0(e)});var V0,$0,U0,W0=l0.inspectSource,G0=bQ.WeakMap,q0=VQ(G0)&&/native code/.test(W0(G0)),K0=f0("keys"),Y0=function(e){return K0[e]||(K0[e]=b0(e))},X0={},Z0=bQ.TypeError,J0=bQ.WeakMap;if(q0||l0.state){var Q0=l0.state||(l0.state=new J0),e1=_Q(Q0.get),t1=_Q(Q0.has),n1=_Q(Q0.set);V0=function(e,t){if(t1(Q0,e))throw new Z0("Object already initialized");return t.facade=e,n1(Q0,e,t),t},$0=function(e){return e1(Q0,e)||{}},U0=function(e){return t1(Q0,e)}}else{var r1=Y0("state");X0[r1]=!0,V0=function(e,t){if(v0(e,r1))throw new Z0("Object already initialized");return t.facade=e,z0(e,r1,t),t},$0=function(e){return v0(e,r1)?e[r1]:{}},U0=function(e){return v0(e,r1)}}var o1={get:$0,enforce:function(e){return U0(e)?$0(e):V0(e,{})}},i1=Function.prototype,a1=xQ&&Object.getOwnPropertyDescriptor,u1=v0(i1,"name"),s1={PROPER:u1&&"something"===function(){}.name,CONFIGURABLE:u1&&(!xQ||xQ&&a1(i1,"name").configurable)},c1=vQ(function(e){var t=s1.CONFIGURABLE,n=o1.get,r=o1.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;VQ(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!v0(i,"name")||t&&i.name!==f)&&z0(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==bQ?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:z0(e,n,i)):c?e[n]=i:c0(n,i)})(Function.prototype,"toString",function(){return VQ(this)&&n(this).source||W0(this)})}),l1=Math.ceil,f1=Math.floor,d1=function(e){var t=+e;return t!=t||0===t?0:(t>0?f1:l1)(t)},p1=Math.max,h1=Math.min,v1=function(e,t){var n=d1(e);return n<0?p1(n+t,0):h1(n,t)},g1=Math.min,y1=function(e){return e>0?g1(d1(e),9007199254740991):0},m1=function(e){return y1(e.length)},b1=function(e){return function(t,n,r){var o,i=HQ(t),a=m1(i),u=v1(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}}(!1),w1=_Q([].push),x1=function(e,t){var n,r=HQ(e),o=0,i=[];for(n in r)!v0(X0,n)&&v0(r,n)&&w1(i,n);for(;t.length>o;)v0(r,n=t[o++])&&(~b1(i,n)||w1(i,n));return i},E1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],D1=E1.concat("length","prototype"),C1={f:Object.getOwnPropertyNames||function(e){return x1(e,D1)}},S1={f:Object.getOwnPropertySymbols},A1=_Q([].concat),O1=UQ("Reflect","ownKeys")||function(e){var t=C1.f(I0(e)),n=S1.f;return n?A1(t,n(e)):t},k1=function(e,t){for(var n=O1(t),r=M0.f,o=P0.f,i=0;i<n.length;i++){var a=n[i];v0(e,a)||r(e,a,o(t,a))}},B1=/#|\.prototype\./,F1=function(e,t){var n=_1[T1(e)];return n==j1||n!=P1&&(VQ(t)?wQ(t):!!t)},T1=F1.normalize=function(e){return String(e).replace(B1,".").toLowerCase()},_1=F1.data={},P1=F1.NATIVE="N",j1=F1.POLYFILL="P",N1=F1,I1=P0.f,L1=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?bQ:c?bQ[u]||c0(u,{}):(bQ[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=I1(n,r))&&a.value:n[r],!N1(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(D(i)==D(o))continue;k1(i,o)}(e.sham||o&&o.sham)&&z0(i,"sham",!0),c1(n,r,i,e)}},R1={};R1[C0("toStringTag")]="z";var M1="[object z]"===String(R1),z1=C0("toStringTag"),H1=bQ.Object,V1="Arguments"==NQ(function(){return arguments}()),$1=M1?NQ: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=H1(e),z1))?n:V1?NQ(t):"Object"==(r=NQ(t))&&VQ(t.callee)?"Arguments":r},U1=bQ.String,W1=function(e){if("Symbol"===$1(e))throw TypeError("Cannot convert a Symbol value to a string");return U1(e)},G1=/"/g,q1=_Q("".replace);L1({target:"String",proto:!0,forced:wQ(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=W1(zQ(this)),r="<a",(r+=' name="'+q1(W1(t),G1,""")+'"')+">"+n+"</a>";var t,n,r}});var K1,Y1=function(){var e=I0(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},X1=bQ.RegExp,Z1=wQ(function(){var e=X1("a","y");return e.lastIndex=2,null!=e.exec("abcd")});Z1||wQ(function(){return!X1("a","y").sticky});var J1={BROKEN_CARET:Z1||wQ(function(){var e=X1("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),UNSUPPORTED_Y:Z1},Q1=Object.keys||function(e){return x1(e,E1)},e2=xQ?Object.defineProperties:function(e,t){I0(e);for(var n,r=HQ(t),o=Q1(t),i=o.length,a=0;i>a;)M0.f(e,n=o[a++],r[n]);return e},t2=UQ("document","documentElement"),n2=Y0("IE_PROTO"),r2=function(){},o2=function(e){return"<script>"+e+"<\/script>"},i2=function(e){e.write(o2("")),e.close();var t=e.parentWindow.Object;return e=null,t},a2=function(){try{K1=new ActiveXObject("htmlfile")}catch(e){}var e,t;a2="undefined"!=typeof document?document.domain&&K1?i2(K1):((t=F0("iframe")).style.display="none",t2.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(o2("document.F=Object")),e.close(),e.F):i2(K1);for(var n=E1.length;n--;)delete a2.prototype[E1[n]];return a2()};X0[n2]=!0;var u2,s2,c2=Object.create||function(e,t){var n;return null!==e?(r2.prototype=I0(e),n=new r2,r2.prototype=null,n[n2]=e):n=a2(),void 0===t?n:e2(n,t)},l2=bQ.RegExp,f2=wQ(function(){var e=l2(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),d2=bQ.RegExp,p2=wQ(function(){var e=d2("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),h2=o1.get,v2=f0("native-string-replace",String.prototype.replace),g2=RegExp.prototype.exec,y2=g2,m2=_Q("".charAt),b2=_Q("".indexOf),w2=_Q("".replace),x2=_Q("".slice),E2=(s2=/b*/g,DQ(g2,u2=/a/,"a"),DQ(g2,s2,"a"),0!==u2.lastIndex||0!==s2.lastIndex),D2=J1.BROKEN_CARET,C2=void 0!==/()??/.exec("")[1];(E2||C2||D2||f2||p2)&&(y2=function(e){var t,n,r,o,i,a,u,s=this,c=h2(s),l=W1(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=DQ(y2,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=D2&&s.sticky,h=DQ(Y1,s),v=s.source,g=0,y=l;if(p&&(h=w2(h,"y",""),-1===b2(h,"g")&&(h+="g"),y=x2(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==m2(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),C2&&(n=new RegExp("^"+v+"$(?!\\s)",h)),E2&&(r=s.lastIndex),o=DQ(g2,p?n:s,y),p?o?(o.input=x2(o.input,g),o[0]=x2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:E2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),C2&&o&&o.length>1&&DQ(v2,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=c2(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var S2=y2;L1({target:"RegExp",proto:!0,forced:/./.exec!==S2},{exec:S2});var A2=Array.isArray||function(e){return"Array"==NQ(e)},O2=function(){},k2=[],B2=UQ("Reflect","construct"),F2=/^\s*(?:class|function)\b/,T2=_Q(F2.exec),_2=!F2.exec(O2),P2=function(e){if(!VQ(e))return!1;try{return B2(O2,k2,e),!0}catch(e){return!1}},j2=!B2||wQ(function(){var e;return P2(P2.call)||!P2(Object)||!P2(function(){e=!0})||e})?function(e){if(!VQ(e))return!1;switch($1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return _2||!!T2(F2,W0(e))}:P2,N2=function(e,t,n){var r=O0(t);r in e?M0.f(e,r,OQ(0,n)):e[r]=n},I2=C0("species"),L2=function(e){return ZQ>=51||!wQ(function(){var t=[];return(t.constructor={})[I2]=function(){return{foo:1}},1!==t[e](Boolean).foo})},R2=_Q([].slice),M2=L2("slice"),z2=C0("species"),H2=bQ.Array,V2=Math.max;function $2(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 U2(e){var t=e.selection;if(null==t)return!1;var n=$2(qf.nodes(e,{match:function(e){return IO.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=$2(n,2)[1],o=qf.start(e,r);if(ad.equals(t.anchor,o))return!0}return!1}function W2(e,t){var n,r,o=qf.nodes(e,{at:t,match:function(e){return"table"===IO.getNodeType(e)}}),i=!1;try{for(var a=
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- 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}L1({target:"Array",proto:!0,forced:!M2},{slice:function(e,t){var n,r,o,i=HQ(this),a=m1(i),u=v1(e,a),s=v1(void 0===t?a:t,a);if(A2(i)&&(n=i.constructor,(j2(n)&&(n===H2||A2(n.prototype))||$Q(n)&&null===(n=n[z2]))&&(n=void 0),n===H2||void 0===n))return R2(i,u,s);for(r=new(void 0===n?H2:n)(V2(s-u,0)),o=0;u<s;u++,o++)u in i&&N2(r,o,i[u]);return r.length=o,r}});var G2=_Q(_Q.bind),q2=C0("species"),K2=bQ.Array,Y2=function(e,t){return new(function(e){var t;return A2(e)&&(t=e.constructor,(j2(t)&&(t===K2||A2(t.prototype))||$Q(t)&&null===(t=t[q2]))&&(t=void 0)),void 0===t?K2:t}(e))(0===t?0:t)},X2=_Q([].push),Z2=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=p0(s),v=RQ(h),g=function(e,t){return i0(e),void 0===t?e:G2?G2(e,t):function(){return e.apply(t,arguments)}}(c,l),y=m1(v),m=0,b=f||Y2,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:X2(w,d)}else switch(e){case 4:return!1;case 7:X2(w,d)}return i?-1:r||o?o:w}},J2={forEach:Z2(0),map:Z2(1),filter:Z2(2),find:Z2(5)},Q2=J2.map;L1({target:"Array",proto:!0,forced:!L2("map")},{map:function(e){return Q2(this,e,arguments.length>1?arguments[1]:void 0)}});var e4=M1?{}.toString:function(){return"[object "+$1(this)+"]"};function t4(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function n4(e){return t4(e).every(function(e){return!!e.isHeader})}M1||c1(Object.prototype,"toString",e4,{unsafe:!0});var r4=s1.PROPER,o4=RegExp.prototype,i4=o4.toString,a4=_Q(Y1),u4=wQ(function(){return"/a/b"!=i4.call({source:"a",flags:"b"})}),s4=r4&&"toString"!=i4.name;(u4||s4)&&c1(RegExp.prototype,"toString",function(){var e=I0(this),t=W1(e.source),n=e.flags;return"/"+t+"/"+W1(void 0===n&&WQ(o4,e)&&!("flags"in o4)?a4(e):n)},{unsafe:!0});var c4=C0("unscopables"),l4=Array.prototype;null==l4[c4]&&M0.f(l4,c4,{configurable:!0,value:c2(null)});var f4=J2.find,d4=!0;"find"in[]&&Array(1).find(function(){d4=!1}),L1({target:"Array",proto:!0,forced:d4},{find:function(e){return f4(this,e,arguments.length>1?arguments[1]:void 0)}}),l4[c4].find=!0;var p4=Function.prototype,h4=p4.apply,v4=p4.bind,g4=p4.call,y4="object"==("undefined"==typeof Reflect?"undefined":D(Reflect))&&Reflect.apply||(v4?g4.bind(h4):function(){return g4.apply(h4,arguments)}),m4=C0("species"),b4=RegExp.prototype,w4=function(e,t,n,r){var o=C0(e),i=!wQ(function(){var t={};return t[o]=function(){return 7},7!=""[e](t)}),a=i&&!wQ(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[m4]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t});if(!i||!a||n){var u=_Q(/./[o]),s=t(o,""[e],function(e,t,n,r,o){var a=_Q(e),s=t.exec;return s===S2||s===b4.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}});c1(String.prototype,e,s[0]),c1(b4,o,s[1])}r&&z0(b4[o],"sham",!0)},x4=C0("match"),E4=bQ.TypeError,D4=C0("species"),C4=_Q("".charAt),S4=_Q("".charCodeAt),A4=_Q("".slice),O4=function(e){return function(t,n){var r,o,i=W1(zQ(t)),a=d1(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=S4(i,a))<55296||r>56319||a+1===u||(o=S4(i,a+1))<56320||o>57343?e?C4(i,a):r:e?A4(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),k4=function(e,t,n){return t+(n?O4(e,t).length:1)},B4=bQ.Array,F4=Math.max,T4=function(e,t,n){for(var r=m1(e),o=v1(t,r),i=v1(void 0===n?r:n,r),a=B4(F4(i-o,0)),u=0;o<i;o++,u++)N2(a,u,e[o]);return a.length=u,a},_4=bQ.TypeError,P4=function(e,t){var n=e.exec;if(VQ(n)){var r=DQ(n,e,t);return null!==r&&I0(r),r}if("RegExp"===NQ(e))return DQ(S2,e,t);throw _4("RegExp#exec called on incompatible receiver")},j4=J1.UNSUPPORTED_Y,N4=Math.min,I4=[].push,L4=_Q(/./.exec),R4=_Q(I4),M4=_Q("".slice);w4("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=W1(zQ(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!$Q(r=e)||!(void 0!==(o=r[x4])?o:"RegExp"==NQ(r)))return DQ(t,i,e,a);for(var u,s,c,l=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=DQ(S2,p,i))&&!((s=p.lastIndex)>d&&(R4(l,M4(i,d,u.index)),u.length>1&&u.index<i.length&&y4(I4,l,T4(u,1)),c=u[0].length,d=s,l.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!c&&L4(p,"")||R4(l,""):R4(l,M4(i,d)),l.length>a?T4(l,0,a):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:DQ(t,this,e,n)}:t,[function(t,n){var o=zQ(this),i=null==t?void 0:a0(t,e);return i?DQ(i,t,o,n):DQ(r,W1(o),t,n)},function(e,o){var i=I0(this),a=W1(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=I0(e).constructor;return void 0===r||null==(n=I0(r)[D4])?t:function(e){if(j2(e))return e;throw E4(r0(e)+" is not a constructor")}(n)}(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(j4?"g":"y"),f=new s(j4?"^(?:"+i.source+")":i,l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===P4(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=j4?0:h;var g,y=P4(f,j4?M4(a,h):a);if(null===y||(g=N4(y1(f.lastIndex+(j4?h:0)),a.length))===p)h=k4(a,h,c);else{if(R4(v,M4(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(R4(v,y[m]),v.length===d)return v;h=p=g}}return R4(v,M4(a,p)),v}]},!!wQ(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]}),j4);var z4="\t\n\v\f\r \u2028\u2029\ufeff",H4=_Q("".replace),V4="["+z4+"]",$4=RegExp("^"+V4+V4+"*"),U4=RegExp(V4+V4+"*$"),W4={trim:function(e){return function(t){var n=W1(zQ(t));return 1&e&&(n=H4(n,$4,"")),2&e&&(n=H4(n,U4,"")),n}}(3)},G4=s1.PROPER,q4=W4.trim;function K4(e){return e.length?e[0].tagName.toLowerCase():""}L1({target:"String",proto:!0,forced:function(e){return wQ(function(){return!!z4[e]()||"
"!=="
"[e]()||G4&&z4[e].name!==e})}("trim")},{trim:function(){return q4(this)}}),L1({global:!0},{globalThis:bQ}),gh&&(Yp.fn.append=gh),rh&&(Yp.fn.on=rh),Oh&&(Yp.fn.focus=Oh),Qp&&(Yp.fn.attr=Qp),nh&&(Yp.fn.val=nh),ph&&(Yp.fn.html=ph),th&&(Yp.fn.dataset=th),Xp&&(Yp.fn.addClass=Xp),Zp&&(Yp.fn.removeClass=Zp),xh&&(Yp.fn.children=xh),fh&&(Yp.fn.each=fh),wh&&(Yp.fn.find=wh);var Y4=!1,X4=0,Z4=0,J4=null,Q4=null,e3=Yp("body");function t3(e){Y4=!1,Q4=null,J4=null,e3.off("mousemove",n3),e3.off("mouseup",t3)}e3.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(),Y4=!0;var n=e.clientX;X4=n;var r=t.getBoundingClientRect().width;Z4=r,e3.on("mousemove",n3),e3.on("mouseup",t3)}});var n3=av(function(e){if(Y4&&null!=Q4&&null!=J4){e.preventDefault();var t=e.clientX,n=Z4+(t-X4);(n=Math.floor(100*n)/100)<30&&(n=30),Nd.setNodes(Q4,{width:n.toString()},{at:J4})}},100),r3={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(ld.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=IO.findPath(e,t),a=qf.start(e,i),u=qf.end(e,i),s=ad.compare(r,u)<=0&&ad.compare(r,a)>=0,c=ad.compare(o,u)<=0&&ad.compare(o,a)>=0;return!!(s&&c&&nd.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o,a=Mv("div",{className:"table-container","data-selected":IO.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=IO.findPath(n,e),o=qf.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},Mv("table",{width:i,contentEditable:r},Mv("colgroup",null,t4(e).map(function(e){var t=e.width;return Mv("col",{width:void 0===t?"auto":t})})),Mv("tbody",null,t)));return a}},o3={type:"table-row",renderElem:function(e,t,n){return Mv("tr",null,t)}},i3={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=IO.getParentNode(e,t);if(null==n)return!1;var r=IO.getParentNode(e,n);return null!=r&&t4(r).some(function(e){return e===t})}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,c=o.isHeader,l=void 0!==c&&c;if(!r)return Mv("td",{colSpan:a,rowSpan:s},t);var f=Mv(l?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:av(function(t){var r=this.elm;if(null!=r){var o=r.getBoundingClientRect(),i=o.left,a=o.width,u=o.top,s=o.height,c=t.clientX,l=t.clientY;Y4||(c>i+a-5&&c<i+a&&l>u&&l<u+s?(r.style.cursor="col-resize",Q4=n,J4=IO.findPath(n,e)):Y4||(r.style.cursor="auto",Q4=null,J4=null))}},100)}},t);return f}},a3={selector:"table",preParseHtml:function(e){var t=Yp(e);if("table"!==K4(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]}},u3=J2.filter;L1({target:"Array",proto:!0,forced:!L2("filter")},{filter:function(e){return u3(this,e,arguments.length>1?arguments[1]:void 0)}});var s3=Math.floor,c3=_Q("".charAt),l3=_Q("".replace),f3=_Q("".slice),d3=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,p3=/\$([$&'`]|\d{1,2})/g,h3=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=p3;return void 0!==o&&(o=p0(o),s=d3),l3(i,s,function(i,s){var c;switch(c3(s,0)){case"$":return"$";case"&":return e;case"`":return f3(t,0,n);case"'":return f3(t,a);case"<":c=o[f3(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=s3(l/10);return 0===f?i:f<=u?void 0===r[f-1]?c3(s,1):r[f-1]+c3(s,1):i}c=r[l-1]}return void 0===c?"":c})},v3=C0("replace"),g3=Math.max,y3=Math.min,m3=_Q([].concat),b3=_Q([].push),w3=_Q("".indexOf),x3=_Q("".slice),E3="$0"==="a".replace(/./,"$0"),D3=!!/./[v3]&&""===/./[v3]("a","$0");w4("replace",function(e,t,n){var r=D3?"$":"$0";return[function(e,n){var r=zQ(this),o=null==e?void 0:a0(e,v3);return o?DQ(o,e,r,n):DQ(t,W1(r),e,n)},function(e,o){var i=I0(this),a=W1(e);if("string"==typeof o&&-1===w3(o,r)&&-1===w3(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=VQ(o);s||(o=W1(o));var c=i.global;if(c){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var d=P4(i,a);if(null===d)break;if(b3(f,d),!c)break;""===W1(d[0])&&(i.lastIndex=k4(a,y1(i.lastIndex),l))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=W1((d=f[g])[0]),m=g3(y3(d1(d.index),a.length),0),b=[],w=1;w<d.length;w++)b3(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=m3([y],b,m,a);void 0!==x&&b3(E,x);var D=W1(y4(o,void 0,E))}else D=h3(y,a,m,b,x,o);m>=v&&(h+=x3(a,v,m)+D,v=m+y.length)}return h+x3(a,v)}]},!!wQ(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!E3||D3);var C3={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Yp(e);0===(t=t.filter(function(e){return!!yd.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"===K4(r),colSpan:o,rowSpan:i,width:a,children:t}}},S3={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter(function(e){return"table-cell"===IO.getNodeType(e)})}}},A3={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Yp(e),o="auto";return"100%"===function(e){for(var t="",n=(e.attr("style")||"").split(";"),r=n.length,o=0;o<r;o++){var i=n[o];if(i){var a=i.split(":");"width"===a[0].trim()&&(t=a[1].trim())}}return t}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter(function(e){return"table-row"===IO.getNodeType(e)})}}},O3=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||!ld.isCollapsed(t)||!!IO.getSelectedElems(e).some(function(t){var n=IO.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=Yp('<div class="w-e-panel-content-table"></div>'),r=Yp("<span>0 × 0</span>"),o=Yp("<table></table>"),i=0;i<10;i++){for(var a=Yp("<tr></tr>"),u=0;u<10;u++){var s=Yp("<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=Yp(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each(function(e){Yp(e).children().each(function(e){var t=Yp(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=Yp(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)){IO.isSelectedEmptyParagraph(e)&&Nd.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);Nd.insertNodes(e,i,{mode:"highest"})}},e}(),k3=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==IO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||Nd.removeNodes(e,{mode:"highest"})},e}(),B3=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||!ld.isCollapsed(t)||null==IO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=$2(qf.nodes(e,{match:function(e){return IO.checkNodeType(e,"table-cell")},universal:!0}),1),r=$2(n[0],2),o=r[0],i=r[1],a=IO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var s={type:"table-row",children:[]},c=0;c<u;c++)s.children.push({type:"table-cell",children:[{text:""}]});var l=nd.parent(i),f=nd.next(l);Nd.insertNodes(e,s,{at:f})}}},e}(),F3=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||!ld.isCollapsed(t)||null==IO.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=$2(qf.nodes(e,{match:function(e){return IO.checkNodeType(e,"table-row")},universal:!0}),1),r=$2(n[0],2),o=r[0],i=r[1],a=IO.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?Nd.removeNodes(e,{mode:"highest"}):Nd.removeNodes(e,{at:i})}},e}(),T3={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},_3=F0("span").classList,P3=_3&&_3.constructor&&_3.constructor.prototype,j3=P3===Object.prototype?void 0:P3,N3=J2.forEach,I3=function(){var e=[].forEach;return!!e&&wQ(function(){e.call(null,function(){throw 1},1)})}(),L3=I3?[].forEach:function(e){return N3(this,e,arguments.length>1?arguments[1]:void 0)},R3=function(e){if(e&&e.forEach!==L3)try{z0(e,"forEach",L3)}catch(t){e.forEach=L3}};for(var M3 in T3)T3[M3]&&R3(bQ[M3]&&bQ[M3].prototype);R3(j3);var z3=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||!ld.isCollapsed(t)||null==IO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=$2(qf.nodes(e,{match:function(e){return IO.checkNodeType(e,"table-cell")},universal:!0}),1),r=$2(n[0],2),o=r[0],i=r[1],a=IO.getParentNode(e,o);if(null!=a){var u=IO.getParentNode(e,a);null!=u&&(u.children||[]).forEach(function(t,n){Hf.isElement(t)&&(t.children||[]).forEach(function(t){var r=IO.findPath(e,t);if(r.length===i.length&&pQ(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&n4(u)&&(o.isHeader=!0),Nd.insertNodes(e,o,{at:r})}})})}}},e}(),H3=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||!ld.isCollapsed(t)||null==IO.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=$2(qf.nodes(e,{match:function(e){return IO.checkNodeType(e,"table-cell")},universal:!0}),1),r=$2(n[0],2),o=r[0],i=r[1],a=IO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)Nd.removeNodes(e,{mode:"highest"});else{var s=IO.getParentNode(e,a);null!=s&&(s.children||[]).forEach(function(t){Hf.isElement(t)&&(t.children||[]).forEach(function(t){var n=IO.findPath(e,t);n.length===i.length&&pQ(n.slice(-1),i.slice(-1))&&Nd.removeNodes(e,{at:n})})})}}},e}(),V3=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=IO.getSelectedNodeByType(e,"table");return null!=t&&n4(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!ld.isCollapsed(t)||null==IO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=IO.getSelectedNodeByType(e,"table");null!=r&&t4(r).forEach(function(t){return Nd.setNodes(e,{isHeader:n},{at:IO.findPath(e,t)})})}},e}(),$3=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=IO.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||!ld.isCollapsed(t)||null==IO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};Nd.setNodes(e,n,{mode:"highest"})}},e}(),U3={renderElems:[r3,o3,i3],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,c=n.width,l=s?"th":"td";return"<"+l+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===c?"auto":c)+'">'+t+"</"+l+">"}}],preParseHtml:[a3],parseElemsHtml:[C3,S3,A3],menus:[{key:"insertTable",factory:function(){return new O3}},{key:"deleteTable",factory:function(){return new k3}},{key:"insertTableRow",factory:function(){return new B3}},{key:"deleteTableRow",factory:function(){return new F3}},{key:"insertTableCol",factory:function(){return new z3}},{key:"deleteTableCol",factory:function(){return new H3}},{key:"tableHeader",factory:function(){return new V3}},{key:"tableFullWidth",factory:function(){return new $3}}],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==IO.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!U2(s)){var t=s.selection;if(t){var r=qf.before(s,t);if(r){var o=W2(s,r),i=W2(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(IO.getSelectedNodeByType(s,"table")){var n=qf.above(e);IO.checkNodeType(n[0],"table-cell")&&Nd.select(e,n[1]);var r=qf.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=qf.above(e,{at:r[1]}))&&void 0!==t?t:r),Nd.select(e,r[1]);else{var o=s.children||[],i=o.length;if(IO.checkNodeType(o[i-1],"table")){var u=IO.genEmptyParagraph();Nd.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){U2(s)||r(e)},s.normalizeNode=function(e){var t=$2(e,2),n=t[0],r=t[1];if("table"!==IO.getNodeType(n))return o([n,r]);if(IO.isLastNode(s,n)){var i=IO.genEmptyParagraph();Nd.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=IO.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):qf.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=IO.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(nd.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Jf.string(t).length){var o=IO.findPath(s,t),i={anchor:qf.start(s,o),focus:qf.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:"高度"}});
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var W3=function(){return W3=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},W3.apply(this,arguments)};function G3(e,t,n,r){return new(n||(n=Promise))(function(t,o){function i(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n(function(e){e(r)})).then(i,a)}u((r=r.apply(e,[])).next())})}function q3(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 Y3="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function X3(e){var t={exports:{}};return e(t,t.exports),t.exports}var Z3,J3,Q3=function(e){return e&&e.Math==Math&&e},e6=Q3("object"==("undefined"==typeof globalThis?"undefined":D(globalThis))&&globalThis)||Q3("object"==("undefined"==typeof window?"undefined":D(window))&&window)||Q3("object"==("undefined"==typeof self?"undefined":D(self))&&self)||Q3("object"==D(Y3)&&Y3)||function(){return this}()||Function("return this")(),t6=function(e){try{return!!e()}catch(e){return!0}},n6=!t6(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),r6=Function.prototype.call,o6=r6.bind?r6.bind(r6):function(){return r6.apply(r6,arguments)},i6={}.propertyIsEnumerable,a6=Object.getOwnPropertyDescriptor,u6={f:a6&&!i6.call({1:2},1)?function(e){var t=a6(this,e);return!!t&&t.enumerable}:i6},s6=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},c6=Function.prototype,l6=c6.bind,f6=c6.call,d6=l6&&l6.bind(f6),p6=l6?function(e){return e&&d6(f6,e)}:function(e){return e&&function(){return f6.apply(e,arguments)}},h6=p6({}.toString),v6=p6("".slice),g6=function(e){return v6(h6(e),8,-1)},y6=e6.Object,m6=p6("".split),b6=t6(function(){return!y6("z").propertyIsEnumerable(0)})?function(e){return"String"==g6(e)?m6(e,""):y6(e)}:y6,w6=e6.TypeError,x6=function(e){if(null==e)throw w6("Can't call method on "+e);return e},E6=function(e){return b6(x6(e))},D6=function(e){return"function"==typeof e},C6=function(e){return"object"==D(e)?null!==e:D6(e)},S6=function(e,t){return arguments.length<2?function(e){return D6(e)?e:void 0}(e6[e]):e6[e]&&e6[e][t]},A6=p6({}.isPrototypeOf),O6=S6("navigator","userAgent")||"",k6=e6.process,B6=e6.Deno,F6=k6&&k6.versions||B6&&B6.version,T6=F6&&F6.v8;T6&&(J3=(Z3=T6.split("."))[0]>0&&Z3[0]<4?1:+(Z3[0]+Z3[1])),!J3&&O6&&(!(Z3=O6.match(/Edge\/(\d+)/))||Z3[1]>=74)&&(Z3=O6.match(/Chrome\/(\d+)/))&&(J3=+Z3[1]);var _6=J3,P6=!!Object.getOwnPropertySymbols&&!t6(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_6&&_6<41}),j6=P6&&!Symbol.sham&&"symbol"==D(Symbol.iterator),N6=e6.Object,I6=j6?function(e){return"symbol"==D(e)}:function(e){var t=S6("Symbol");return D6(t)&&A6(t.prototype,N6(e))},L6=e6.String,R6=function(e){try{return L6(e)}catch(e){return"Object"}},M6=e6.TypeError,z6=function(e){if(D6(e))return e;throw M6(R6(e)+" is not a function")},H6=function(e,t){var n=e[t];return null==n?void 0:z6(n)},V6=e6.TypeError,$6=Object.defineProperty,U6=function(e,t){try{$6(e6,e,{value:t,configurable:!0,writable:!0})}catch(H){e6[e]=t}return t},W6=e6["__core-js_shared__"]||U6("__core-js_shared__",{}),G6=X3(function(e){(e.exports=function(e,t){return W6[e]||(W6[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),q6=e6.Object,K6=function(e){return q6(x6(e))},Y6=p6({}.hasOwnProperty),X6=Object.hasOwn||function(e,t){return Y6(K6(e),t)},Z6=0,J6=Math.random(),Q6=p6(1..toString),e5=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Q6(++Z6+J6,36)},t5=G6("wks"),n5=e6.Symbol,r5=n5&&n5.for,o5=j6?n5:n5&&n5.withoutSetter||e5,i5=function(e){if(!X6(t5,e)||!P6&&"string"!=typeof t5[e]){var t="Symbol."+e;P6&&X6(n5,e)?t5[e]=n5[e]:t5[e]=j6&&r5?r5(t):o5(t)}return t5[e]},a5=e6.TypeError,u5=i5("toPrimitive"),s5=function(e){var t=function(e){if(!C6(e)||I6(e))return e;var t,n=H6(e,u5);if(n){if(t=o6(n,e,"string"),!C6(t)||I6(t))return t;throw a5("Can't convert object to primitive value")}return function(e){var t,n;if(D6(t=e.toString)&&!C6(n=o6(t,e)))return n;if(D6(t=e.valueOf)&&!C6(n=o6(t,e)))return n;throw V6("Can't convert object to primitive value")}(e)}(e);return I6(t)?t:t+""},c5=e6.document,l5=C6(c5)&&C6(c5.createElement),f5=function(e){return l5?c5.createElement(e):{}},d5=!n6&&!t6(function(){return 7!=Object.defineProperty(f5("div"),"a",{get:function(){return 7}}).a}),p5=Object.getOwnPropertyDescriptor,h5={f:n6?p5:function(e,t){if(e=E6(e),t=s5(t),d5)try{return p5(e,t)}catch(e){}if(X6(e,t))return s6(!o6(u6.f,e,t),e[t])}},v5=e6.String,g5=e6.TypeError,y5=function(e){if(C6(e))return e;throw g5(v5(e)+" is not an object")},m5=e6.TypeError,b5=Object.defineProperty,w5={f:n6?b5:function(e,t,n){if(y5(e),t=s5(t),y5(n),d5)try{return b5(e,t,n)}catch(e){}if("get"in n||"set"in n)throw m5("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},x5=n6?function(e,t,n){return w5.f(e,t,s6(1,n))}:function(e,t,n){return e[t]=n,e},E5=p6(Function.toString);D6(W6.inspectSource)||(W6.inspectSource=function(e){return E5(e)});var D5,C5,S5,A5=W6.inspectSource,O5=e6.WeakMap,k5=D6(O5)&&/native code/.test(A5(O5)),B5=G6("keys"),F5=function(e){return B5[e]||(B5[e]=e5(e))},T5={},_5=e6.TypeError,P5=e6.WeakMap;if(k5||W6.state){var j5=W6.state||(W6.state=new P5),N5=p6(j5.get),I5=p6(j5.has),L5=p6(j5.set);D5=function(e,t){if(I5(j5,e))throw new _5("Object already initialized");return t.facade=e,L5(j5,e,t),t},C5=function(e){return N5(j5,e)||{}},S5=function(e){return I5(j5,e)}}else{var R5=F5("state");T5[R5]=!0,D5=function(e,t){if(X6(e,R5))throw new _5("Object already initialized");return t.facade=e,x5(e,R5,t),t},C5=function(e){return X6(e,R5)?e[R5]:{}},S5=function(e){return X6(e,R5)}}var M5={set:D5,get:C5,has:S5,enforce:function(e){return S5(e)?C5(e):D5(e,{})},getterFor:function(e){return function(t){var n;if(!C6(t)||(n=C5(t)).type!==e)throw _5("Incompatible receiver, "+e+" required");return n}}},z5=Function.prototype,H5=n6&&Object.getOwnPropertyDescriptor,V5=X6(z5,"name"),$5={EXISTS:V5,PROPER:V5&&"something"===function(){}.name,CONFIGURABLE:V5&&(!n6||n6&&H5(z5,"name").configurable)},U5=X3(function(e){var t=$5.CONFIGURABLE,n=M5.get,r=M5.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;D6(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!X6(i,"name")||t&&i.name!==f)&&x5(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==e6?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:x5(e,n,i)):c?e[n]=i:U6(n,i)})(Function.prototype,"toString",function(){return D6(this)&&n(this).source||A5(this)})}),W5=Math.ceil,G5=Math.floor,q5=function(e){var t=+e;return t!=t||0===t?0:(t>0?G5:W5)(t)},K5=Math.max,Y5=Math.min,X5=function(e,t){var n=q5(e);return n<0?K5(n+t,0):Y5(n,t)},Z5=Math.min,J5=function(e){return e>0?Z5(q5(e),9007199254740991):0},Q5=function(e){return J5(e.length)},e8=function(e){return function(t,n,r){var o,i=E6(t),a=Q5(i),u=X5(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}},t8={includes:e8(!0),indexOf:e8(!1)},n8=t8.indexOf,r8=p6([].push),o8=function(e,t){var n,r=E6(e),o=0,i=[];for(n in r)!X6(T5,n)&&X6(r,n)&&r8(i,n);for(;t.length>o;)X6(r,n=t[o++])&&(~n8(i,n)||r8(i,n));return i},i8=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],a8=i8.concat("length","prototype"),u8={f:Object.getOwnPropertyNames||function(e){return o8(e,a8)}},s8={f:Object.getOwnPropertySymbols},c8=p6([].concat),l8=S6("Reflect","ownKeys")||function(e){var t=u8.f(y5(e)),n=s8.f;return n?c8(t,n(e)):t},f8=function(e,t){for(var n=l8(t),r=w5.f,o=h5.f,i=0;i<n.length;i++){var a=n[i];X6(e,a)||r(e,a,o(t,a))}},d8=/#|\.prototype\./,p8=function(e,t){var n=v8[h8(e)];return n==y8||n!=g8&&(D6(t)?t6(t):!!t)},h8=p8.normalize=function(e){return String(e).replace(d8,".").toLowerCase()},v8=p8.data={},g8=p8.NATIVE="N",y8=p8.POLYFILL="P",m8=p8,b8=h5.f,w8=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?e6:c?e6[u]||U6(u,{}):(e6[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=b8(n,r))&&a.value:n[r],!m8(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(D(i)==D(o))continue;f8(i,o)}(e.sham||o&&o.sham)&&x5(i,"sham",!0),U5(n,r,i,e)}},x8={};x8[i5("toStringTag")]="z";var E8="[object z]"===String(x8),D8=i5("toStringTag"),C8=e6.Object,S8="Arguments"==g6(function(){return arguments}()),A8=E8?g6: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=C8(e),D8))?n:S8?g6(t):"Object"==(r=g6(t))&&D6(t.callee)?"Arguments":r},O8=e6.String,k8=function(e){if("Symbol"===A8(e))throw TypeError("Cannot convert a Symbol value to a string");return O8(e)},B8="\t\n\v\f\r \u2028\u2029\ufeff",F8=p6("".replace),T8="["+B8+"]",_8=RegExp("^"+T8+T8+"*"),P8=RegExp(T8+T8+"*$"),j8={trim:function(e){return function(t){var n=k8(x6(t));return 1&e&&(n=F8(n,_8,"")),2&e&&(n=F8(n,P8,"")),n}}(3)},N8=$5.PROPER,I8=j8.trim;function L8(e){return e.length?e[0].tagName.toLowerCase():""}function R8(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=Yp(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}w8({target:"String",proto:!0,forced:t6(function(){return!!B8.trim()||"
"!=="
".trim()||N8&&"trim"!==B8.trim.name})},{trim:function(){return I8(this)}}),w8({global:!0},{globalThis:e6}),gh&&(Yp.fn.append=gh),rh&&(Yp.fn.on=rh),Oh&&(Yp.fn.focus=Oh),Qp&&(Yp.fn.attr=Qp),nh&&(Yp.fn.val=nh),ph&&(Yp.fn.html=ph),mh&&(Yp.fn.parent=mh),Jp&&(Yp.fn.hasClass=Jp),Dh&&(Yp.fn.empty=Dh);var M8,z8={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,c=o.width,l=void 0===c?"auto":c,f=o.height,d=void 0===f?"auto":f,p=IO.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=Mv("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:R8(a,l,d)});else{var h=Mv("video",{poster:s,controls:!0},Mv("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==l&&(h.data.width=l),"auto"!==d&&(h.data.height=d),r=Mv("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return bv("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},H8={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,c=n.height,l=void 0===c?"auto":c,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=R8(o,s,l):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+l+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},V8=Object.keys||function(e){return o8(e,i8)},$8=n6?Object.defineProperties:function(e,t){y5(e);for(var n,r=E6(t),o=V8(t),i=o.length,a=0;i>a;)w5.f(e,n=o[a++],r[n]);return e},U8=S6("document","documentElement"),W8=F5("IE_PROTO"),G8=function(){},q8=function(e){return"<script>"+e+"<\/script>"},K8=function(e){e.write(q8("")),e.close();var t=e.parentWindow.Object;return e=null,t},Y8=function(){try{M8=new ActiveXObject("htmlfile")}catch(e){}var e,t;Y8="undefined"!=typeof document?document.domain&&M8?K8(M8):((t=f5("iframe")).style.display="none",U8.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(q8("document.F=Object")),e.close(),e.F):K8(M8);for(var n=i8.length;n--;)delete Y8.prototype[i8[n]];return Y8()};T5[W8]=!0;var X8=Object.create||function(e,t){var n;return null!==e?(G8.prototype=y5(e),n=new G8,G8.prototype=null,n[W8]=e):n=Y8(),void 0===t?n:$8(n,t)},Z8=i5("unscopables"),J8=Array.prototype;null==J8[Z8]&&w5.f(J8,Z8,{configurable:!0,value:X8(null)});var Q8=function(e){J8[Z8][e]=!0},e7=t8.includes;w8({target:"Array",proto:!0},{includes:function(e){return e7(this,e,arguments.length>1?arguments[1]:void 0)}}),Q8("includes");var t7={selector:"iframe,video,p",preParseHtml:function(e){var t=Yp(e),n=t;if("p"===L8(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Yp(o))}}var a=L8(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=Yp('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},n7=p6(p6.bind),r7=function(e,t){return z6(e),void 0===t?e:n7?n7(e,t):function(){return e.apply(t,arguments)}},o7=Array.isArray||function(e){return"Array"==g6(e)},i7=function(){},a7=[],u7=S6("Reflect","construct"),s7=/^\s*(?:class|function)\b/,c7=p6(s7.exec),l7=!s7.exec(i7),f7=function(e){if(!D6(e))return!1;try{return u7(i7,a7,e),!0}catch(e){return!1}},d7=!u7||t6(function(){var e;return f7(f7.call)||!f7(Object)||!f7(function(){e=!0})||e})?function(e){if(!D6(e))return!1;switch(A8(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return l7||!!c7(s7,A5(e))}:f7,p7=i5("species"),h7=e6.Array,v7=function(e,t){return new(function(e){var t;return o7(e)&&(t=e.constructor,(d7(t)&&(t===h7||o7(t.prototype))||C6(t)&&null===(t=t[p7]))&&(t=void 0)),void 0===t?h7:t}(e))(0===t?0:t)},g7=p6([].push),y7=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=K6(s),v=b6(h),g=r7(c,l),y=Q5(v),m=0,b=f||v7,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:g7(w,d)}else switch(e){case 4:return!1;case 7:g7(w,d)}return i?-1:r||o?o:w}},m7={find:y7(5),findIndex:y7(6)},b7=m7.find,w7=!0;"find"in[]&&Array(1).find(function(){w7=!1}),w8({target:"Array",proto:!0,forced:w7},{find:function(e){return b7(this,e,arguments.length>1?arguments[1]:void 0)}}),Q8("find");var x7=E8?{}.toString:function(){return"[object "+A8(this)+"]"};function E7(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:""}]}}E8||U5(Object.prototype,"toString",x7,{unsafe:!0});var D7,C7,S7={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Yp(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",E7(o=s[0].outerHTML,i,a,u);var c=r.find("video");return(o=c.attr("src")||"")||c.length>0&&(o=c.find("source").attr("src")||""),a=c.attr("width")||"auto",u=c.attr("height")||"auto",E7(o,i=c.attr("poster")||"",a,u)}},A7=function(){var e=y5(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},O7=e6.RegExp,k7=t6(function(){var e=O7("a","y");return e.lastIndex=2,null!=e.exec("abcd")});k7||t6(function(){return!O7("a","y").sticky});var B7={BROKEN_CARET:k7||t6(function(){var e=O7("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},F7=e6.RegExp,T7=t6(function(){var e=F7(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),_7=e6.RegExp,P7=t6(function(){var e=_7("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),j7=M5.get,N7=G6("native-string-replace",String.prototype.replace),I7=RegExp.prototype.exec,L7=I7,R7=p6("".charAt),M7=p6("".indexOf),z7=p6("".replace),H7=p6("".slice),V7=(C7=/b*/g,o6(I7,D7=/a/,"a"),o6(I7,C7,"a"),0!==D7.lastIndex||0!==C7.lastIndex),$7=B7.BROKEN_CARET,U7=void 0!==/()??/.exec("")[1];(V7||U7||$7||T7||P7)&&(L7=function(e){var t,n,r,o,i,a,u,s=this,c=j7(s),l=k8(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=o6(L7,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=$7&&s.sticky,h=o6(A7,s),v=s.source,g=0,y=l;if(p&&(h=z7(h,"y",""),-1===M7(h,"g")&&(h+="g"),y=H7(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==R7(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),U7&&(n=new RegExp("^"+v+"$(?!\\s)",h)),V7&&(r=s.lastIndex),o=o6(I7,p?n:s,y),p?o?(o.input=H7(o.input,g),o[0]=H7(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:V7&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),U7&&o&&o.length>1&&o6(N7,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=X8(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var W7=L7;w8({target:"RegExp",proto:!0,forced:/./.exec!==W7},{exec:W7});var G7=Function.prototype,q7=G7.apply,K7=G7.bind,Y7=G7.call,X7="object"==("undefined"==typeof Reflect?"undefined":D(Reflect))&&Reflect.apply||(K7?Y7.bind(q7):function(){return Y7.apply(q7,arguments)}),Z7=(i5("species"),RegExp.prototype),J7=p6("".charAt),Q7=p6("".charCodeAt),e9=p6("".slice),t9={charAt:function(e){return function(t,n){var r,o,i=k8(x6(t)),a=q5(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Q7(i,a))<55296||r>56319||a+1===u||(o=Q7(i,a+1))<56320||o>57343?e?J7(i,a):r:e?e9(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},n9=t9.charAt,r9=function(e,t,n){return t+(n?n9(e,t).length:1)},o9=Math.floor,i9=p6("".charAt),a9=p6("".replace),u9=p6("".slice),s9=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c9=/\$([$&'`]|\d{1,2})/g,l9=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=c9;return void 0!==o&&(o=K6(o),s=s9),a9(i,s,function(i,s){var c;switch(i9(s,0)){case"$":return"$";case"&":return e;case"`":return u9(t,0,n);case"'":return u9(t,a);case"<":c=o[u9(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=o9(l/10);return 0===f?i:f<=u?void 0===r[f-1]?i9(s,1):r[f-1]+i9(s,1):i}c=r[l-1]}return void 0===c?"":c})},f9=e6.TypeError,d9=function(e,t){var n=e.exec;if(D6(n)){var r=o6(n,e,t);return null!==r&&y5(r),r}if("RegExp"===g6(e))return o6(W7,e,t);throw f9("RegExp#exec called on incompatible receiver")},p9=i5("replace"),h9=Math.max,v9=Math.min,g9=p6([].concat),y9=p6([].push),m9=p6("".indexOf),b9=p6("".slice),w9="$0"==="a".replace(/./,"$0"),x9=!!/./[p9]&&""===/./[p9]("a","$0");function E9(e){return e+"-"+Uh()}!function(e,t,n){var r=i5(e),o=!t6(function(){var t={};return t[r]=function(){return 7},7!=""[e](t)}),i=o&&!t6(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[r](""),!e});if(!o||!i||n){var a=p6(/./[r]),u=function(e,t,n){var r=x9?"$":"$0";return[function(e,n){var r=x6(this),o=null==e?void 0:H6(e,p9);return o?o6(o,e,r,n):o6(t,k8(r),e,n)},function(e,o){var i=y5(this),a=k8(e);if("string"==typeof o&&-1===m9(o,r)&&-1===m9(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=D6(o);s||(o=k8(o));var c=i.global;if(c){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var d=d9(i,a);if(null===d)break;if(y9(f,d),!c)break;""===k8(d[0])&&(i.lastIndex=r9(a,J5(i.lastIndex),l))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=k8((d=f[g])[0]),m=h9(v9(q5(d.index),a.length),0),b=[],w=1;w<d.length;w++)y9(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=g9([y],b,m,a);void 0!==x&&y9(E,x);var D=k8(X7(o,void 0,E))}else D=l9(y,a,m,b,x,o);m>=v&&(h+=b9(a,v,m)+D,v=m+y.length)}return h+b9(a,v)}]}(0,""[e],function(e,t,n,r,i){var u=p6(e),s=t.exec;return s===W7||s===Z7.exec?o&&!i?{done:!0,value:a(t,n,r)}:{done:!0,value:u(n,t,r)}:{done:!1}});U5(String.prototype,e,u[0]),U5(Z7,r,u[1])}}("replace",0,!!t6(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!w9||x9);var D9=e6.Promise,C9=function(e,t,n){for(var r in t)U5(e,r,t[r],n);return e},S9=e6.String,A9=e6.TypeError,O9=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=p6(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return y5(n),function(e){if("object"==D(e)||D6(e))return e;throw A9("Can't set "+S9(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),k9=w5.f,B9=i5("toStringTag"),F9=function(e,t,n){e&&!X6(e=n?e:e.prototype,B9)&&k9(e,B9,{configurable:!0,value:t})},T9=i5("species"),_9=e6.TypeError,P9=function(e,t){if(A6(t,e))return e;throw _9("Incorrect invocation")},j9={},N9=i5("iterator"),I9=Array.prototype,L9=i5("iterator"),R9=function(e){if(null!=e)return H6(e,L9)||H6(e,"@@iterator")||j9[A8(e)]},M9=e6.TypeError,z9=function(e,t,n){var r,o;y5(e);try{if(!(r=H6(e,"return"))){if("throw"===t)throw n;return n}r=o6(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return y5(r),n},H9=e6.TypeError,V9=function(e,t){this.stopped=e,this.result=t},$9=V9.prototype,U9=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=r7(t,f),g=function(e){return r&&z9(r,"normal",e),new V9(!0,e)},y=function(e){return d?(y5(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=R9(e)))throw H9(R6(e)+" is not iterable");if(void 0!==(l=o)&&(j9.Array===l||I9[N9]===l)){for(i=0,a=Q5(e);a>i;i++)if((u=y(e[i]))&&A6($9,u))return u;return new V9(!1)}r=function(e,t){var n=arguments.length<2?R9(e):t;if(z6(n))return y5(o6(n,e));throw M9(R6(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=o6(s,r)).done;){try{u=y(c.value)}catch(e){z9(r,"throw",e)}if("object"==D(u)&&u&&A6($9,u))return u}return new V9(!1)},W9=i5("iterator"),G9=!1;try{var q9=0,K9={next:function(){return{done:!!q9++}},return:function(){G9=!0}};K9[W9]=function(){return this},Array.from(K9,function(){throw 2})}catch(il){}var Y9,X9,Z9,J9,Q9=function(e,t){if(!G9)return!1;var n=!1;try{var r={};r[W9]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},eee=e6.TypeError,tee=i5("species"),nee=p6([].slice),ree=/(?:ipad|iphone|ipod).*applewebkit/i.test(O6),oee="process"==g6(e6.process),iee=e6.setImmediate,aee=e6.clearImmediate,uee=e6.process,see=e6.Dispatch,cee=e6.Function,lee=e6.MessageChannel,fee=e6.String,dee=0,pee={};try{Y9=e6.location}catch(il){}var hee=function(e){if(X6(pee,e)){var t=pee[e];delete pee[e],t()}},vee=function(e){return function(){hee(e)}},gee=function(e){hee(e.data)},yee=function(e){e6.postMessage(fee(e),Y9.protocol+"//"+Y9.host)};iee&&aee||(iee=function(e){var t=nee(arguments,1);return pee[++dee]=function(){X7(D6(e)?e:cee(e),void 0,t)},X9(dee),dee},aee=function(e){delete pee[e]},oee?X9=function(e){uee.nextTick(vee(e))}:see&&see.now?X9=function(e){see.now(vee(e))}:lee&&!ree?(J9=(Z9=new lee).port2,Z9.port1.onmessage=gee,X9=r7(J9.postMessage,J9)):e6.addEventListener&&D6(e6.postMessage)&&!e6.importScripts&&Y9&&"file:"!==Y9.protocol&&!t6(yee)?(X9=yee,e6.addEventListener("message",gee,!1)):X9="onreadystatechange"in f5("script")?function(e){U8.appendChild(f5("script")).onreadystatechange=function(){U8.removeChild(this),hee(e)}}:function(e){setTimeout(vee(e),0)});var mee,bee,wee,xee,Eee,Dee,Cee,See,Aee={set:iee},Oee=/ipad|iphone|ipod/i.test(O6)&&void 0!==e6.Pebble,kee=/web0s(?!.*chrome)/i.test(O6),Bee=h5.f,Fee=Aee.set,Tee=e6.MutationObserver||e6.WebKitMutationObserver,_ee=e6.document,Pee=e6.process,jee=e6.Promise,Nee=Bee(e6,"queueMicrotask"),Iee=Nee&&Nee.value;Iee||(mee=function(){var e,t;for(oee&&(e=Pee.domain)&&e.exit();bee;){t=bee.fn,bee=bee.next;try{t()}catch(e){throw bee?xee():wee=void 0,e}}wee=void 0,e&&e.enter()},ree||oee||kee||!Tee||!_ee?!Oee&&jee&&jee.resolve?((Cee=jee.resolve(void 0)).constructor=jee,See=r7(Cee.then,Cee),xee=function(){See(mee)}):oee?xee=function(){Pee.nextTick(mee)}:(Fee=r7(Fee,e6),xee=function(){Fee(mee)}):(Eee=!0,Dee=_ee.createTextNode(""),new Tee(mee).observe(Dee,{characterData:!0}),xee=function(){Dee.data=Eee=!Eee}));var Lee,Ree,Mee,zee,Hee=Iee||function(e){var t={fn:e,next:void 0};wee&&(wee.next=t),bee||(bee=t,xee()),wee=t},Vee=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=z6(t),this.reject=z6(n)},$ee={f:function(e){return new Vee(e)}},Uee=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Wee="object"==("undefined"==typeof window?"undefined":D(window)),Gee=Aee.set,qee=i5("species"),Kee="Promise",Yee=M5.getterFor(Kee),Xee=M5.set,Zee=M5.getterFor(Kee),Jee=D9&&D9.prototype,Qee=D9,ete=Jee,tte=e6.TypeError,nte=e6.document,rte=e6.process,ote=$ee.f,ite=ote,ate=!!(nte&&nte.createEvent&&e6.dispatchEvent),ute=D6(e6.PromiseRejectionEvent),ste=!1,cte=m8(Kee,function(){var e=A5(Qee),t=e!==String(Qee);if(!t&&66===_6)return!0;if(_6>=51&&/native code/.test(e))return!1;var n=new Qee(function(e){e(1)}),r=function(e){e(function(){},function(){})};return(n.constructor={})[qee]=r,!(ste=n.then(function(){})instanceof r)||!t&&Wee&&!ute}),lte=cte||!Q9(function(e){Qee.all(e).catch(function(){})}),fte=function(e){var t;return!(!C6(e)||!D6(t=e.then))&&t},dte=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Hee(function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,c=n[i++],l=o?c.ok:c.fail,f=c.resolve,d=c.reject,p=c.domain;try{l?(o||(2===e.rejection&>e(e),e.rejection=1),!0===l?a=r:(p&&p.enter(),a=l(r),p&&(p.exit(),s=!0)),a===c.promise?d(tte("Promise-chain cycle")):(u=fte(a))?o6(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&hte(e)})}},pte=function(e,t,n){var r,o;ate?((r=nte.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),e6.dispatchEvent(r)):r={promise:t,reason:n},!ute&&(o=e6["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=e6.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},hte=function(e){o6(Gee,e6,function(){var t,n=e.facade,r=e.value;if(vte(e)&&(t=Uee(function(){oee?rte.emit("unhandledRejection",r,n):pte("unhandledrejection",n,r)}),e.rejection=oee||vte(e)?2:1,t.error))throw t.value})},vte=function(e){return 1!==e.rejection&&!e.parent},gte=function(e){o6(Gee,e6,function(){var t=e.facade;oee?rte.emit("rejectionHandled",t):pte("rejectionhandled",t,e.value)})},yte=function(e,t,n){return function(r){e(t,r,n)}},mte=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,dte(e,!0))},bte=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw tte("Promise can't be resolved itself");var r=fte(t);r?Hee(function(){var n={done:!1};try{o6(r,t,yte(bte,n,e),yte(mte,n,e))}catch(t){mte(n,t,e)}}):(e.value=t,e.state=1,dte(e,!1))}catch(t){mte({done:!1},t,e)}}};if(cte&&(ete=(Qee=function(e){P9(this,ete),z6(e),o6(Lee,this);var t=Yee(this);try{e(yte(bte,t),yte(mte,t))}catch(e){mte(t,e)}}).prototype,(Lee=function(e){Xee(this,{type:Kee,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=C9(ete,{then:function(e,t){var n=Zee(this),r=n.reactions,o=ote(function(e,t){var n,r=y5(e).constructor;return void 0===r||null==(n=y5(r)[tee])?t:function(e){if(d7(e))return e;throw eee(R6(e)+" is not a constructor")}(n)}(this,Qee));return o.ok=!D6(e)||e,o.fail=D6(t)&&t,o.domain=oee?rte.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&dte(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Ree=function(){var e=new Lee,t=Yee(e);this.promise=e,this.resolve=yte(bte,t),this.reject=yte(mte,t)},$ee.f=ote=function(e){return e===Qee||e===Mee?new Ree(e):ite(e)},D6(D9)&&Jee!==Object.prototype)){zee=Jee.then,ste||(U5(Jee,"then",function(e,t){var n=this;return new Qee(function(e,t){o6(zee,n,e,t)}).then(e,t)},{unsafe:!0}),U5(Jee,"catch",ete.catch,{unsafe:!0}));try{delete Jee.constructor}catch(il){}O9&&O9(Jee,ete)}function wte(e,t,n){return void 0===n&&(n=""),G3(this,0,void 0,function(){var r,o,i,a,u,s,c;return q3(this,function(l){switch(l.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=l.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=l.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"<").replace(/>/g,">")),c={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then(function(){Nd.insertNodes(e,c)}),o(c),[2]}})})}function xte(){return E9("w-e-insert-video")}w8({global:!0,wrap:!0,forced:cte},{Promise:Qee}),F9(Qee,Kee,!1),function(){var e=S6("Promise"),t=w5.f;n6&&e&&!e[T9]&&t(e,T9,{configurable:!0,get:function(){return this}})}(),Mee=S6(Kee),w8({target:Kee,stat:!0,forced:cte},{reject:function(e){var t=ote(this);return o6(t.reject,void 0,e),t.promise}}),w8({target:Kee,stat:!0,forced:cte},{resolve:function(e){return function(e,t){if(y5(e),C6(t)&&t.constructor===e)return t;var n=$ee.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),w8({target:Kee,stat:!0,forced:lte},{all:function(e){var t=this,n=ote(t),r=n.resolve,o=n.reject,i=Uee(function(){var n=z6(t.resolve),i=[],a=0,u=1;U9(e,function(e){var s=a++,c=!1;u++,o6(n,t,e).then(function(e){c||(c=!0,i[s]=e,--u||r(i))},o)}),--u||r(i)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=ote(t),r=n.reject,o=Uee(function(){var o=z6(t.resolve);U9(e,function(e){o6(o,t,e).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Ete=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=xte(),this.posterInputId=xte(),this.buttonId=xte()}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||!ld.isCollapsed(t)||!!IO.getSelectedElems(e).some(function(t){var n=IO.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(t_(hP("videoModule.videoSrc"),r,hP("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],c=K3(t_(hP("videoModule.videoPoster"),o,hP("videoModule.videoPosterPlaceHolder")),2),l=c[0],f=c[1],d=Yp(s),p=Yp(f),h=K3(n_(i,hP("videoModule.ok")),1)[0];if(null==this.$content){var v=Yp("<div></div>");v.on("click","#"+i,function(n){return G3(t,0,void 0,function(){var t,i;return q3(this,function(a){switch(a.label){case 0:return n.preventDefault(),t=v.find("#"+r).val().trim(),i=v.find("#"+o).val().trim(),[4,wte(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=v}var g=this.$content;return g.empty(),g.append(u),g.append(l),g.append(h),d.val(""),p.val(""),setTimeout(function(){d.focus()}),g[0]},e}(),Dte=p6([].join),Cte=b6!=Object,Ste=function(){var e=[].join;return!!e&&t6(function(){e.call(null,",",1)})}();w8({target:"Array",proto:!0,forced:Cte||!Ste},{join:function(e){return Dte(E6(this),void 0===e?",":e)}});var Ate,Ote,kte,Bte=!t6(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Fte=F5("IE_PROTO"),Tte=e6.Object,_te=Tte.prototype,Pte=Bte?Tte.getPrototypeOf:function(e){var t=K6(e);if(X6(t,Fte))return t[Fte];var n=t.constructor;return D6(n)&&t instanceof n?n.prototype:t instanceof Tte?_te:null},jte=i5("iterator"),Nte=!1;[].keys&&("next"in(kte=[].keys())?(Ote=Pte(Pte(kte)))!==Object.prototype&&(Ate=Ote):Nte=!0);var Ite=null==Ate||t6(function(){var e={};return Ate[jte].call(e)!==e});Ite&&(Ate={}),D6(Ate[jte])||U5(Ate,jte,function(){return this});var Lte={IteratorPrototype:Ate,BUGGY_SAFARI_ITERATORS:Nte},Rte=Lte.IteratorPrototype,Mte=function(){return this},zte=$5.PROPER,Hte=$5.CONFIGURABLE,Vte=Lte.IteratorPrototype,$te=Lte.BUGGY_SAFARI_ITERATORS,Ute=i5("iterator"),Wte=function(){return this},Gte=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=X8(Rte,{next:s6(1,n)}),F9(e,r,!1),j9[r]=Mte}(n,t,r);var u,s,c=function(e){if(e===o&&h)return h;if(!$te&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},l=t+" Iterator",f=!1,d=e.prototype,p=d[Ute]||d["@@iterator"]||o&&d[o],h=!$te&&p||c(o),v="Array"==t&&d.entries||p;return v&&(u=Pte(v.call(new e)))!==Object.prototype&&u.next&&(Pte(u)!==Vte&&(O9?O9(u,Vte):D6(u[Ute])||U5(u,Ute,Wte)),F9(u,l,!0)),zte&&"values"==o&&p&&"values"!==p.name&&(Hte?x5(d,"name","values"):(f=!0,h=function(){return o6(p,this)})),o&&(s={values:c("values"),keys:c("keys"),entries:c("entries")},a||w8({target:t,proto:!0,forced:$te||f},s)),d[Ute]!==h&&U5(d,Ute,h,{name:o}),j9[t]=h,s},qte=M5.set,Kte=M5.getterFor("Array Iterator"),Yte=Gte(Array,"Array",function(e,t){qte(this,{type:"Array Iterator",target:E6(e),index:0,kind:t})},function(){var e=Kte(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");j9.Arguments=j9.Array,Q8("keys"),Q8("values"),Q8("entries");var Xte=t9.charAt,Zte=M5.set,Jte=M5.getterFor("String Iterator");Gte(String,"String",function(e){Zte(this,{type:"String Iterator",string:k8(e),index:0})},function(){var e,t=Jte(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Xte(n,r),t.index+=e.length,{value:e,done:!1})});var Qte=function(e,t,n){var r=s5(t);r in e?w5.f(e,r,s6(0,n)):e[r]=n},ene=e6.Array,tne=Math.max,nne=u8.f,rne="object"==("undefined"==typeof window?"undefined":D(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],one={f:function(e){return rne&&"Window"==g6(e)?function(e){try{return nne(e)}catch(e){return function(e){for(var t=Q5(e),n=X5(void 0,t),r=X5(t,t),o=ene(tne(r-n,0)),i=0;n<r;n++,i++)Qte(o,i,e[n]);return o.length=i,o}(rne)}}(e):nne(E6(e))}},ine=t6(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),ane=Object.isExtensible,une=t6(function(){ane(1)})||ine?function(e){return!!C6(e)&&(!ine||"ArrayBuffer"!=g6(e))&&(!ane||ane(e))}:ane,sne=!t6(function(){return Object.isExtensible(Object.preventExtensions({}))}),cne=X3(function(e){var t=w5.f,n=!1,r=e5("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=u8.f,t=p6([].splice),o={};o[r]=1,e(o).length&&(u8.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},w8({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:one.f}))},fastKey:function(e,t){if(!C6(e))return"symbol"==D(e)?e:("string"==typeof e?"S":"P")+e;if(!X6(e,r)){if(!une(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!X6(e,r)){if(!une(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return sne&&n&&une(e)&&!X6(e,r)&&i(e),e}};T5[r]=!0}),lne=cne.getWeakData,fne=M5.set,dne=M5.getterFor,pne=m7.find,hne=m7.findIndex,vne=p6([].splice),gne=0,yne=function(e){return e.frozen||(e.frozen=new mne)},mne=function(){this.entries=[]},bne=function(e,t){return pne(e.entries,function(e){return e[0]===t})};mne.prototype={get:function(e){var t=bne(this,e);if(t)return t[1]},has:function(e){return!!bne(this,e)},set:function(e,t){var n=bne(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=hne(this.entries,function(t){return t[0]===e});return~t&&vne(this.entries,t,1),!!~t}};var wne,xne={getConstructor:function(e,t,n,r){var o=e(function(e,o){P9(e,i),fne(e,{type:t,id:gne++,frozen:void 0}),null!=o&&U9(o,e[r],{that:e,AS_ENTRIES:n})}),i=o.prototype,a=dne(t),u=function(e,t,n){var r=a(e),o=lne(y5(t),!0);return!0===o?yne(r).set(t,n):o[r.id]=n,e};return C9(i,{delete:function(e){var t=a(this);if(!C6(e))return!1;var n=lne(e);return!0===n?yne(t).delete(e):n&&X6(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!C6(e))return!1;var n=lne(e);return!0===n?yne(t).has(e):n&&X6(n,t.id)}}),C9(i,n?{get:function(e){var t=a(this);if(C6(e)){var n=lne(e);return!0===n?yne(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}},Ene=M5.enforce,Dne=!e6.ActiveXObject&&"ActiveXObject"in e6,Cne=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Sne=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=e6[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=p6(u[e]);U5(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!C6(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!C6(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!C6(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(m8(e,!D6(a)||!(o||u.forEach&&!t6(function(){(new a).entries().next()}))))s=n.getConstructor(t,e,r,i),cne.enable();else if(m8(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=t6(function(){f.has(1)}),h=Q9(function(e){new a(e)}),v=!o&&t6(function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)});h||((s=t(function(e,t){P9(e,u);var n=function(e,t,n){var r,o;return O9&&D6(r=t.constructor)&&r!==n&&C6(o=r.prototype)&&o!==n.prototype&&O9(e,o),e}(new a,e,s);return null!=t&&U9(t,n[i],{that:n,AS_ENTRIES:r}),n})).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,w8({global:!0,forced:s!=a},c),F9(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Cne,xne);if(k5&&Dne){wne=xne.getConstructor(Cne,"WeakMap",!0),cne.enable();var Ane=Sne.prototype,One=p6(Ane.delete),kne=p6(Ane.has),Bne=p6(Ane.get),Fne=p6(Ane.set);C9(Ane,{delete:function(e){if(C6(e)&&!une(e)){var t=Ene(this);return t.frozen||(t.frozen=new wne),One(this,e)||t.frozen.delete(e)}return One(this,e)},has:function(e){if(C6(e)&&!une(e)){var t=Ene(this);return t.frozen||(t.frozen=new wne),kne(this,e)||t.frozen.has(e)}return kne(this,e)},get:function(e){if(C6(e)&&!une(e)){var t=Ene(this);return t.frozen||(t.frozen=new wne),kne(this,e)?Bne(this,e):t.frozen.get(e)}return Bne(this,e)},set:function(e,t){if(C6(e)&&!une(e)){var n=Ene(this);n.frozen||(n.frozen=new wne),kne(this,e)?Fne(this,e,t):n.frozen.set(e,t)}else Fne(this,e,t);return this}})}var Tne={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},_ne=f5("span").classList,Pne=_ne&&_ne.constructor&&_ne.constructor.prototype,jne=Pne===Object.prototype?void 0:Pne,Nne=i5("iterator"),Ine=i5("toStringTag"),Lne=Yte.values,Rne=function(e,t){if(e){if(e[Nne]!==Lne)try{x5(e,Nne,Lne)}catch(t){e[Nne]=Lne}if(e[Ine]||x5(e,Ine,t),Tne[t])for(var n in Yte)if(e[n]!==Yte[n])try{x5(e,n,Yte[n])}catch(t){e[n]=Yte[n]}}};for(var Mne in Tne)Rne(e6[Mne]&&e6[Mne].prototype,Mne);Rne(jne,"DOMTokenList");var zne=$5.EXISTS,Hne=w5.f,Vne=Function.prototype,$ne=p6(Vne.toString),Une=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Wne=p6(Une.exec);n6&&!zne&&Hne(Vne,"name",{configurable:!0,get:function(){try{return Wne(Une,$ne(this))[1]}catch(z){return""}}});var Gne=i5("species"),qne=_6>=51||!t6(function(){var e=[];return(e.constructor={})[Gne]=function(){return{foo:1}},1!==e.slice(Boolean).foo}),Kne=i5("species"),Yne=e6.Array,Xne=Math.max;function Zne(e){return e.getMenuConfig("uploadVideo")}w8({target:"Array",proto:!0,forced:!qne},{slice:function(e,t){var n,r,o,i=E6(this),a=Q5(i),u=X5(e,a),s=X5(void 0===t?a:t,a);if(o7(i)&&(n=i.constructor,(d7(n)&&(n===Yne||o7(n.prototype))||C6(n)&&null===(n=n[Kne]))&&(n=void 0),n===Yne||void 0===n))return nee(i,u,s);for(r=new(void 0===n?Yne:n)(Xne(s-u,0)),o=0;u<s;u++,o++)u in i&&Qte(r,o,i[u]);return r.length=o,r}});var Jne=new WeakMap;function Qne(e,t){return G3(this,0,void 0,function(){var n,r,o,i;return q3(this,function(a){switch(a.label){case 0:return n=function(e){var t=Jne.get(e);if(null!=t)return t;var n=Zne(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=S_(W3(W3({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,function(t,n){return wte(e,t,n)}),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,c=void 0===s?{}:s;if(0===u){var l=c.url,f=void 0===l?"":l,d=c.poster;wte(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Jne.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 ere=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 wte(e,t,n)});else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Yp("body"),s=Yp('<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;G3(this,0,void 0,function(){var o,i,a,u,s,c;return q3(this,function(l){switch(l.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Zne(e).customUpload,l.label=1;case 1:l.trys.push([1,9,10,15]),a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,o,(t=e[n](t)).done,t.value)})}}}(o),l.label=2;case 2:return[4,a.next()];case 3:return(u=l.sent()).done?[3,8]:(s=u.value,i?[4,i(s,function(t,n){return wte(e,t,n)})]:[3,5]);case 4:return l.sent(),[3,7];case 5:return[4,Qne(e,s)];case 6:l.sent(),l.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return c=l.sent(),n={error:c},[3,15];case 10:return l.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:l.sent(),l.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}})})}(e,t)})}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!ld.isCollapsed(t)||!!IO.getSelectedElems(e).some(function(t){var n=IO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)})},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),tre=$5.PROPER,nre=RegExp.prototype,rre=nre.toString,ore=p6(A7),ire=t6(function(){return"/a/b"!=rre.call({source:"a",flags:"b"})}),are=tre&&"toString"!=rre.name;function ure(){return E9("w-e-insert-video")}(ire||are)&&U5(RegExp.prototype,"toString",function(){var e=y5(this),t=k8(e.source),n=e.flags;return"/"+t+"/"+k8(void 0===n&&A6(nre,e)&&!("flags"in nre)?ore(e):n)},{unsafe:!0});var sre=function(){function e(){this.title=hP("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=ure(),this.heightInputId=ure(),this.buttonId=ure()}return e.prototype.getSelectedVideoNode=function(e){return IO.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(t_(hP("videoModule.width"),n,"auto"),2),a=i[0],u=Yp(i[1]),s=K3(t_(hP("videoModule.height"),r,"auto"),2),c=s[0],l=Yp(s[1]),f=K3(n_(o,hP("videoModule.ok")),1)[0];if(null==this.$content){var d=Yp("<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",c=u?u.toString():"auto";e.restoreSelection(),Nd.setNodes(e,{width:s,height:c},{match:function(e){return IO.checkNodeType(e,"video")}}),e.hidePanelOrModal()}),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(c),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var v=h.width,g=void 0===v?"auto":v,y=h.height,m=void 0===y?"auto":y;return u.val(g),l.val(m),setTimeout(function(){u.focus()}),p[0]},e}(),cre={renderElems:[z8],elemsToHtml:[H8],preParseHtml:[t7],parseElemsHtml:[S7],menus:[{key:"insertVideo",factory:function(){return new Ete},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new ere},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){},onError:function(e,t,n){}}},{key:"editVideoSize",factory:function(){return new sre}}],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"===IO.getNodeType(o)&&IO.isLastNode(r,o)&&Nd.insertNodes(r,IO.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 lre="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function fre(e){var t={exports:{}};return e(t,t.exports),t.exports}var dre,pre,hre=function(e){return e&&e.Math==Math&&e},vre=hre("object"==("undefined"==typeof globalThis?"undefined":D(globalThis))&&globalThis)||hre("object"==("undefined"==typeof window?"undefined":D(window))&&window)||hre("object"==("undefined"==typeof self?"undefined":D(self))&&self)||hre("object"==D(lre)&&lre)||function(){return this}()||Function("return this")(),gre=function(e){try{return!!e()}catch(e){return!0}},yre=!gre(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),mre=Function.prototype.call,bre=mre.bind?mre.bind(mre):function(){return mre.apply(mre,arguments)},wre={}.propertyIsEnumerable,xre=Object.getOwnPropertyDescriptor,Ere={f:xre&&!wre.call({1:2},1)?function(e){var t=xre(this,e);return!!t&&t.enumerable}:wre},Dre=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Cre=Function.prototype,Sre=Cre.bind,Are=Cre.call,Ore=Sre&&Sre.bind(Are),kre=Sre?function(e){return e&&Ore(Are,e)}:function(e){return e&&function(){return Are.apply(e,arguments)}},Bre=kre({}.toString),Fre=kre("".slice),Tre=function(e){return Fre(Bre(e),8,-1)},_re=vre.Object,Pre=kre("".split),jre=gre(function(){return!_re("z").propertyIsEnumerable(0)})?function(e){return"String"==Tre(e)?Pre(e,""):_re(e)}:_re,Nre=vre.TypeError,Ire=function(e){if(null==e)throw Nre("Can't call method on "+e);return e},Lre=function(e){return jre(Ire(e))},Rre=function(e){return"function"==typeof e},Mre=function(e){return"object"==D(e)?null!==e:Rre(e)},zre=function(e,t){return arguments.length<2?function(e){return Rre(e)?e:void 0}(vre[e]):vre[e]&&vre[e][t]},Hre=kre({}.isPrototypeOf),Vre=zre("navigator","userAgent")||"",$re=vre.process,Ure=vre.Deno,Wre=$re&&$re.versions||Ure&&Ure.version,Gre=Wre&&Wre.v8;Gre&&(pre=(dre=Gre.split("."))[0]>0&&dre[0]<4?1:+(dre[0]+dre[1])),!pre&&Vre&&(!(dre=Vre.match(/Edge\/(\d+)/))||dre[1]>=74)&&(dre=Vre.match(/Chrome\/(\d+)/))&&(pre=+dre[1]);var qre=pre,Kre=!!Object.getOwnPropertySymbols&&!gre(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qre&&qre<41}),Yre=Kre&&!Symbol.sham&&"symbol"==D(Symbol.iterator),Xre=vre.Object,Zre=Yre?function(e){return"symbol"==D(e)}:function(e){var t=zre("Symbol");return Rre(t)&&Hre(t.prototype,Xre(e))},Jre=vre.String,Qre=function(e){try{return Jre(e)}catch(e){return"Object"}},eoe=vre.TypeError,toe=function(e){if(Rre(e))return e;throw eoe(Qre(e)+" is not a function")},noe=function(e,t){var n=e[t];return null==n?void 0:toe(n)},roe=vre.TypeError,ooe=Object.defineProperty,ioe=function(e,t){try{ooe(vre,e,{value:t,configurable:!0,writable:!0})}catch(H){vre[e]=t}return t},aoe=vre["__core-js_shared__"]||ioe("__core-js_shared__",{}),uoe=fre(function(e){(e.exports=function(e,t){return aoe[e]||(aoe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),soe=vre.Object,coe=function(e){return soe(Ire(e))},loe=kre({}.hasOwnProperty),foe=Object.hasOwn||function(e,t){return loe(coe(e),t)},doe=0,poe=Math.random(),hoe=kre(1..toString),voe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+hoe(++doe+poe,36)},goe=uoe("wks"),yoe=vre.Symbol,moe=yoe&&yoe.for,boe=Yre?yoe:yoe&&yoe.withoutSetter||voe,woe=function(e){if(!foe(goe,e)||!Kre&&"string"!=typeof goe[e]){var t="Symbol."+e;Kre&&foe(yoe,e)?goe[e]=yoe[e]:goe[e]=Yre&&moe?moe(t):boe(t)}return goe[e]},xoe=vre.TypeError,Eoe=woe("toPrimitive"),Doe=function(e){var t=function(e){if(!Mre(e)||Zre(e))return e;var t,n=noe(e,Eoe);if(n){if(t=bre(n,e,"string"),!Mre(t)||Zre(t))return t;throw xoe("Can't convert object to primitive value")}return function(e){var t,n;if(Rre(t=e.toString)&&!Mre(n=bre(t,e)))return n;if(Rre(t=e.valueOf)&&!Mre(n=bre(t,e)))return n;throw roe("Can't convert object to primitive value")}(e)}(e);return Zre(t)?t:t+""},Coe=vre.document,Soe=Mre(Coe)&&Mre(Coe.createElement),Aoe=function(e){return Soe?Coe.createElement(e):{}},Ooe=!yre&&!gre(function(){return 7!=Object.defineProperty(Aoe("div"),"a",{get:function(){return 7}}).a}),koe=Object.getOwnPropertyDescriptor,Boe={f:yre?koe:function(e,t){if(e=Lre(e),t=Doe(t),Ooe)try{return koe(e,t)}catch(e){}if(foe(e,t))return Dre(!bre(Ere.f,e,t),e[t])}},Foe=vre.String,Toe=vre.TypeError,_oe=function(e){if(Mre(e))return e;throw Toe(Foe(e)+" is not an object")},Poe=vre.TypeError,joe=Object.defineProperty,Noe={f:yre?joe:function(e,t,n){if(_oe(e),t=Doe(t),_oe(n),Ooe)try{return joe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Poe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ioe=yre?function(e,t,n){return Noe.f(e,t,Dre(1,n))}:function(e,t,n){return e[t]=n,e},Loe=kre(Function.toString);Rre(aoe.inspectSource)||(aoe.inspectSource=function(e){return Loe(e)});var Roe,Moe,zoe,Hoe=aoe.inspectSource,Voe=vre.WeakMap,$oe=Rre(Voe)&&/native code/.test(Hoe(Voe)),Uoe=uoe("keys"),Woe=function(e){return Uoe[e]||(Uoe[e]=voe(e))},Goe={},qoe=vre.TypeError,Koe=vre.WeakMap;if($oe||aoe.state){var Yoe=aoe.state||(aoe.state=new Koe),Xoe=kre(Yoe.get),Zoe=kre(Yoe.has),Joe=kre(Yoe.set);Roe=function(e,t){if(Zoe(Yoe,e))throw new qoe("Object already initialized");return t.facade=e,Joe(Yoe,e,t),t},Moe=function(e){return Xoe(Yoe,e)||{}},zoe=function(e){return Zoe(Yoe,e)}}else{var Qoe=Woe("state");Goe[Qoe]=!0,Roe=function(e,t){if(foe(e,Qoe))throw new qoe("Object already initialized");return t.facade=e,Ioe(e,Qoe,t),t},Moe=function(e){return foe(e,Qoe)?e[Qoe]:{}},zoe=function(e){return foe(e,Qoe)}}var eie={set:Roe,get:Moe,has:zoe,enforce:function(e){return zoe(e)?Moe(e):Roe(e,{})},getterFor:function(e){return function(t){var n;if(!Mre(t)||(n=Moe(t)).type!==e)throw qoe("Incompatible receiver, "+e+" required");return n}}},tie=Function.prototype,nie=yre&&Object.getOwnPropertyDescriptor,rie=foe(tie,"name"),oie={EXISTS:rie,PROPER:rie&&"something"===function(){}.name,CONFIGURABLE:rie&&(!yre||yre&&nie(tie,"name").configurable)},iie=fre(function(e){var t=oie.CONFIGURABLE,n=eie.get,r=eie.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Rre(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!foe(i,"name")||t&&i.name!==f)&&Ioe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==vre?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:Ioe(e,n,i)):c?e[n]=i:ioe(n,i)})(Function.prototype,"toString",function(){return Rre(this)&&n(this).source||Hoe(this)})}),aie=Math.ceil,uie=Math.floor,sie=function(e){var t=+e;return t!=t||0===t?0:(t>0?uie:aie)(t)},cie=Math.max,lie=Math.min,fie=function(e,t){var n=sie(e);return n<0?cie(n+t,0):lie(n,t)},die=Math.min,pie=function(e){return e>0?die(sie(e),9007199254740991):0},hie=function(e){return pie(e.length)},vie=function(e){return function(t,n,r){var o,i=Lre(t),a=hie(i),u=fie(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}}(!1),gie=kre([].push),yie=function(e,t){var n,r=Lre(e),o=0,i=[];for(n in r)!foe(Goe,n)&&foe(r,n)&&gie(i,n);for(;t.length>o;)foe(r,n=t[o++])&&(~vie(i,n)||gie(i,n));return i},mie=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bie=mie.concat("length","prototype"),wie={f:Object.getOwnPropertyNames||function(e){return yie(e,bie)}},xie={f:Object.getOwnPropertySymbols},Eie=kre([].concat),Die=zre("Reflect","ownKeys")||function(e){var t=wie.f(_oe(e)),n=xie.f;return n?Eie(t,n(e)):t},Cie=function(e,t){for(var n=Die(t),r=Noe.f,o=Boe.f,i=0;i<n.length;i++){var a=n[i];foe(e,a)||r(e,a,o(t,a))}},Sie=/#|\.prototype\./,Aie=function(e,t){var n=kie[Oie(e)];return n==Fie||n!=Bie&&(Rre(t)?gre(t):!!t)},Oie=Aie.normalize=function(e){return String(e).replace(Sie,".").toLowerCase()},kie=Aie.data={},Bie=Aie.NATIVE="N",Fie=Aie.POLYFILL="P",Tie=Aie,_ie=Boe.f,Pie=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?vre:c?vre[u]||ioe(u,{}):(vre[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=_ie(n,r))&&a.value:n[r],!Tie(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(D(i)==D(o))continue;Cie(i,o)}(e.sham||o&&o.sham)&&Ioe(i,"sham",!0),iie(n,r,i,e)}},jie=Array.isArray||function(e){return"Array"==Tre(e)},Nie={};Nie[woe("toStringTag")]="z";var Iie="[object z]"===String(Nie),Lie=woe("toStringTag"),Rie=vre.Object,Mie="Arguments"==Tre(function(){return arguments}()),zie=Iie?Tre: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=Rie(e),Lie))?n:Mie?Tre(t):"Object"==(r=Tre(t))&&Rre(t.callee)?"Arguments":r},Hie=function(){},Vie=[],$ie=zre("Reflect","construct"),Uie=/^\s*(?:class|function)\b/,Wie=kre(Uie.exec),Gie=!Uie.exec(Hie),qie=function(e){if(!Rre(e))return!1;try{return $ie(Hie,Vie,e),!0}catch(e){return!1}},Kie=!$ie||gre(function(){var e;return qie(qie.call)||!qie(Object)||!qie(function(){e=!0})||e})?function(e){if(!Rre(e))return!1;switch(zie(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Gie||!!Wie(Uie,Hoe(e))}:qie,Yie=function(e,t,n){var r=Doe(t);r in e?Noe.f(e,r,Dre(0,n)):e[r]=n},Xie=woe("species"),Zie=kre([].slice),Jie=qre>=51||!gre(function(){var e=[];return(e.constructor={})[Xie]=function(){return{foo:1}},1!==e.slice(Boolean).foo}),Qie=woe("species"),eae=vre.Array,tae=Math.max;Pie({target:"Array",proto:!0,forced:!Jie},{slice:function(e,t){var n,r,o,i=Lre(this),a=hie(i),u=fie(e,a),s=fie(void 0===t?a:t,a);if(jie(i)&&(n=i.constructor,(Kie(n)&&(n===eae||jie(n.prototype))||Mre(n)&&null===(n=n[Qie]))&&(n=void 0),n===eae||void 0===n))return Zie(i,u,s);for(r=new(void 0===n?eae:n)(tae(s-u,0)),o=0;u<s;u++,o++)u in i&&Yie(r,o,i[u]);return r.length=o,r}});var nae=Iie?{}.toString:function(){return"[object "+zie(this)+"]"};Iie||iie(Object.prototype,"toString",nae,{unsafe:!0});var rae,oae=vre.String,iae=function(e){if("Symbol"===zie(e))throw TypeError("Cannot convert a Symbol value to a string");return oae(e)},aae=function(){var e=_oe(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},uae=vre.RegExp,sae=gre(function(){var e=uae("a","y");return e.lastIndex=2,null!=e.exec("abcd")});sae||gre(function(){return!uae("a","y").sticky});var cae={BROKEN_CARET:sae||gre(function(){var e=uae("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),UNSUPPORTED_Y:sae},lae=Object.keys||function(e){return yie(e,mie)},fae=yre?Object.defineProperties:function(e,t){_oe(e);for(var n,r=Lre(t),o=lae(t),i=o.length,a=0;i>a;)Noe.f(e,n=o[a++],r[n]);return e},dae=zre("document","documentElement"),pae=Woe("IE_PROTO"),hae=function(){},vae=function(e){return"<script>"+e+"<\/script>"},gae=function(e){e.write(vae("")),e.close();var t=e.parentWindow.Object;return e=null,t},yae=function(){try{rae=new ActiveXObject("htmlfile")}catch(e){}var e,t;yae="undefined"!=typeof document?document.domain&&rae?gae(rae):((t=Aoe("iframe")).style.display="none",dae.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(vae("document.F=Object")),e.close(),e.F):gae(rae);for(var n=mie.length;n--;)delete yae.prototype[mie[n]];return yae()};Goe[pae]=!0;var mae,bae,wae=Object.create||function(e,t){var n;return null!==e?(hae.prototype=_oe(e),n=new hae,hae.prototype=null,n[pae]=e):n=yae(),void 0===t?n:fae(n,t)},xae=vre.RegExp,Eae=gre(function(){var e=xae(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),Dae=vre.RegExp,Cae=gre(function(){var e=Dae("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),Sae=eie.get,Aae=uoe("native-string-replace",String.prototype.replace),Oae=RegExp.prototype.exec,kae=Oae,Bae=kre("".charAt),Fae=kre("".indexOf),Tae=kre("".replace),_ae=kre("".slice),Pae=(bae=/b*/g,bre(Oae,mae=/a/,"a"),bre(Oae,bae,"a"),0!==mae.lastIndex||0!==bae.lastIndex),jae=cae.BROKEN_CARET,Nae=void 0!==/()??/.exec("")[1];(Pae||Nae||jae||Eae||Cae)&&(kae=function(e){var t,n,r,o,i,a,u,s=this,c=Sae(s),l=iae(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=bre(kae,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=jae&&s.sticky,h=bre(aae,s),v=s.source,g=0,y=l;if(p&&(h=Tae(h,"y",""),-1===Fae(h,"g")&&(h+="g"),y=_ae(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Bae(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Nae&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Pae&&(r=s.lastIndex),o=bre(Oae,p?n:s,y),p?o?(o.input=_ae(o.input,g),o[0]=_ae(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Pae&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Nae&&o&&o.length>1&&bre(Aae,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=wae(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Iae=kae;Pie({target:"RegExp",proto:!0,forced:/./.exec!==Iae},{exec:Iae});var Lae=Function.prototype,Rae=Lae.apply,Mae=Lae.bind,zae=Lae.call,Hae="object"==("undefined"==typeof Reflect?"undefined":D(Reflect))&&Reflect.apply||(Mae?zae.bind(Rae):function(){return zae.apply(Rae,arguments)}),Vae=woe("species"),$ae=RegExp.prototype,Uae=woe("match"),Wae=vre.TypeError,Gae=woe("species"),qae=function(e,t){var n,r=_oe(e).constructor;return void 0===r||null==(n=_oe(r)[Gae])?t:function(e){if(Kie(e))return e;throw Wae(Qre(e)+" is not a constructor")}(n)},Kae=kre("".charAt),Yae=kre("".charCodeAt),Xae=kre("".slice),Zae={charAt:function(e){return function(t,n){var r,o,i=iae(Ire(t)),a=sie(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Yae(i,a))<55296||r>56319||a+1===u||(o=Yae(i,a+1))<56320||o>57343?e?Kae(i,a):r:e?Xae(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},Jae=Zae.charAt,Qae=function(e,t,n){return t+(n?Jae(e,t).length:1)},eue=vre.Array,tue=Math.max,nue=function(e,t,n){for(var r=hie(e),o=fie(t,r),i=fie(void 0===n?r:n,r),a=eue(tue(i-o,0)),u=0;o<i;o++,u++)Yie(a,u,e[o]);return a.length=u,a},rue=vre.TypeError,oue=function(e,t){var n=e.exec;if(Rre(n)){var r=bre(n,e,t);return null!==r&&_oe(r),r}if("RegExp"===Tre(e))return bre(Iae,e,t);throw rue("RegExp#exec called on incompatible receiver")},iue=cae.UNSUPPORTED_Y,aue=Math.min,uue=[].push,sue=kre(/./.exec),cue=kre(uue),lue=kre("".slice);!function(e,t,n,r){var o=woe(e),i=!gre(function(){var t={};return t[o]=function(){return 7},7!=""[e](t)}),a=i&&!gre(function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Vae]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e});if(!i||!a||n){var u=kre(/./[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=iae(Ire(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Mre(r=e)||!(void 0!==(o=r[Uae])?o:"RegExp"==Tre(r)))return bre(t,i,e,a);for(var u,s,c,l=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=bre(Iae,p,i))&&!((s=p.lastIndex)>d&&(cue(l,lue(i,d,u.index)),u.length>1&&u.index<i.length&&Hae(uue,l,nue(u,1)),c=u[0].length,d=s,l.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!c&&sue(p,"")||cue(l,""):cue(l,lue(i,d)),l.length>a?nue(l,0,a):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:bre(t,this,e,n)}:t,[function(t,n){var o=Ire(this),i=null==t?void 0:noe(t,e);return i?bre(i,t,o,n):bre(r,iae(o),t,n)},function(e,o){var i=_oe(this),a=iae(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=qae(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(iue?"g":"y"),f=new s(iue?"^(?:"+i.source+")":i,l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===oue(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=iue?0:h;var g,y=oue(f,iue?lue(a,h):a);if(null===y||(g=aue(pie(f.lastIndex+(iue?h:0)),a.length))===p)h=Qae(a,h,c);else{if(cue(v,lue(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(cue(v,y[m]),v.length===d)return v;h=p=g}}return cue(v,lue(a,p)),v}]}(o,""[e],function(e,t,n,r,o){var a=kre(e),s=t.exec;return s===Iae||s===$ae.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}});iie(String.prototype,e,s[0]),iie($ae,o,s[1])}r&&Ioe($ae[o],"sham",!0)}("split",0,!!gre(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]}),iue);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var fue=function(){return fue=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},fue.apply(this,arguments)};function due(e,t,n,r){return new(n||(n=Promise))(function(t,o){function i(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n(function(e){e(r)})).then(i,a)}u((r=r.apply(e,[])).next())})}function pue(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 hue=woe("unscopables"),vue=Array.prototype;null==vue[hue]&&Noe.f(vue,hue,{configurable:!0,value:wae(null)});var gue,yue,mue,bue=function(e){vue[hue][e]=!0},wue={},xue=!gre(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Eue=Woe("IE_PROTO"),Due=vre.Object,Cue=Due.prototype,Sue=xue?Due.getPrototypeOf:function(e){var t=coe(e);if(foe(t,Eue))return t[Eue];var n=t.constructor;return Rre(n)&&t instanceof n?n.prototype:t instanceof Due?Cue:null},Aue=woe("iterator"),Oue=!1;[].keys&&("next"in(mue=[].keys())?(yue=Sue(Sue(mue)))!==Object.prototype&&(gue=yue):Oue=!0);var kue=null==gue||gre(function(){var e={};return gue[Aue].call(e)!==e});kue&&(gue={}),Rre(gue[Aue])||iie(gue,Aue,function(){return this});var Bue={IteratorPrototype:gue,BUGGY_SAFARI_ITERATORS:Oue},Fue=Noe.f,Tue=woe("toStringTag"),_ue=function(e,t,n){e&&!foe(e=n?e:e.prototype,Tue)&&Fue(e,Tue,{configurable:!0,value:t})},Pue=Bue.IteratorPrototype,jue=function(){return this},Nue=vre.String,Iue=vre.TypeError,Lue=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=kre(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return _oe(n),function(e){if("object"==D(e)||Rre(e))return e;throw Iue("Can't set "+Nue(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Rue=oie.PROPER,Mue=oie.CONFIGURABLE,zue=Bue.IteratorPrototype,Hue=Bue.BUGGY_SAFARI_ITERATORS,Vue=woe("iterator"),$ue=function(){return this},Uue=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=wae(Pue,{next:Dre(1,n)}),_ue(e,r,!1),wue[r]=jue}(n,t,r);var u,s,c=function(e){if(e===o&&h)return h;if(!Hue&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},l=t+" Iterator",f=!1,d=e.prototype,p=d[Vue]||d["@@iterator"]||o&&d[o],h=!Hue&&p||c(o),v="Array"==t&&d.entries||p;return v&&(u=Sue(v.call(new e)))!==Object.prototype&&u.next&&(Sue(u)!==zue&&(Lue?Lue(u,zue):Rre(u[Vue])||iie(u,Vue,$ue)),_ue(u,l,!0)),Rue&&"values"==o&&p&&"values"!==p.name&&(Mue?Ioe(d,"name","values"):(f=!0,h=function(){return bre(p,this)})),o&&(s={values:c("values"),keys:c("keys"),entries:c("entries")},a||Pie({target:t,proto:!0,forced:Hue||f},s)),d[Vue]!==h&&iie(d,Vue,h,{name:o}),wue[t]=h,s},Wue=eie.set,Gue=eie.getterFor("Array Iterator"),que=Uue(Array,"Array",function(e,t){Wue(this,{type:"Array Iterator",target:Lre(e),index:0,kind:t})},function(){var e=Gue(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");wue.Arguments=wue.Array,bue("keys"),bue("values"),bue("entries");var Kue=Zae.charAt,Yue=eie.set,Xue=eie.getterFor("String Iterator");Uue(String,"String",function(e){Yue(this,{type:"String Iterator",string:iae(e),index:0})},function(){var e,t=Xue(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Kue(n,r),t.index+=e.length,{value:e,done:!1})});var Zue=function(e,t,n){for(var r in t)iie(e,r,t[r],n);return e},Jue=wie.f,Que="object"==("undefined"==typeof window?"undefined":D(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ese={f:function(e){return Que&&"Window"==Tre(e)?function(e){try{return Jue(e)}catch(e){return nue(Que)}}(e):Jue(Lre(e))}},tse=gre(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),nse=Object.isExtensible,rse=gre(function(){nse(1)})||tse?function(e){return!!Mre(e)&&(!tse||"ArrayBuffer"!=Tre(e))&&(!nse||nse(e))}:nse,ose=!gre(function(){return Object.isExtensible(Object.preventExtensions({}))}),ise=fre(function(e){var t=Noe.f,n=!1,r=voe("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=wie.f,t=kre([].splice),o={};o[r]=1,e(o).length&&(wie.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},Pie({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ese.f}))},fastKey:function(e,t){if(!Mre(e))return"symbol"==D(e)?e:("string"==typeof e?"S":"P")+e;if(!foe(e,r)){if(!rse(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!foe(e,r)){if(!rse(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return ose&&n&&rse(e)&&!foe(e,r)&&i(e),e}};Goe[r]=!0}),ase=kre(kre.bind),use=function(e,t){return toe(e),void 0===t?e:ase?ase(e,t):function(){return e.apply(t,arguments)}},sse=woe("iterator"),cse=Array.prototype,lse=woe("iterator"),fse=function(e){if(null!=e)return noe(e,lse)||noe(e,"@@iterator")||wue[zie(e)]},dse=vre.TypeError,pse=function(e,t,n){var r,o;_oe(e);try{if(!(r=noe(e,"return"))){if("throw"===t)throw n;return n}r=bre(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return _oe(r),n},hse=vre.TypeError,vse=function(e,t){this.stopped=e,this.result=t},gse=vse.prototype,yse=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=use(t,f),g=function(e){return r&&pse(r,"normal",e),new vse(!0,e)},y=function(e){return d?(_oe(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=fse(e)))throw hse(Qre(e)+" is not iterable");if(void 0!==(l=o)&&(wue.Array===l||cse[sse]===l)){for(i=0,a=hie(e);a>i;i++)if((u=y(e[i]))&&Hre(gse,u))return u;return new vse(!1)}r=function(e,t){var n=arguments.length<2?fse(e):t;if(toe(n))return _oe(bre(n,e));throw dse(Qre(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=bre(s,r)).done;){try{u=y(c.value)}catch(e){pse(r,"throw",e)}if("object"==D(u)&&u&&Hre(gse,u))return u}return new vse(!1)},mse=vre.TypeError,bse=function(e,t){if(Hre(t,e))return e;throw mse("Incorrect invocation")},wse=woe("iterator"),xse=!1;try{var Ese=0,Dse={next:function(){return{done:!!Ese++}},return:function(){xse=!0}};Dse[wse]=function(){return this},Array.from(Dse,function(){throw 2})}catch(il){}var Cse=function(e,t){if(!xse)return!1;var n=!1;try{var r={};r[wse]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Sse=woe("species"),Ase=vre.Array,Ose=function(e,t){return new(function(e){var t;return jie(e)&&(t=e.constructor,(Kie(t)&&(t===Ase||jie(t.prototype))||Mre(t)&&null===(t=t[Sse]))&&(t=void 0)),void 0===t?Ase:t}(e))(0===t?0:t)},kse=kre([].push),Bse=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=coe(s),v=jre(h),g=use(c,l),y=hie(v),m=0,b=f||Ose,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:kse(w,d)}else switch(e){case 4:return!1;case 7:kse(w,d)}return i?-1:r||o?o:w}},Fse={forEach:Bse(0),find:Bse(5),findIndex:Bse(6)},Tse=ise.getWeakData,_se=eie.set,Pse=eie.getterFor,jse=Fse.find,Nse=Fse.findIndex,Ise=kre([].splice),Lse=0,Rse=function(e){return e.frozen||(e.frozen=new Mse)},Mse=function(){this.entries=[]},zse=function(e,t){return jse(e.entries,function(e){return e[0]===t})};Mse.prototype={get:function(e){var t=zse(this,e);if(t)return t[1]},has:function(e){return!!zse(this,e)},set:function(e,t){var n=zse(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Nse(this.entries,function(t){return t[0]===e});return~t&&Ise(this.entries,t,1),!!~t}};var Hse,Vse={getConstructor:function(e,t,n,r){var o=e(function(e,o){bse(e,i),_se(e,{type:t,id:Lse++,frozen:void 0}),null!=o&&yse(o,e[r],{that:e,AS_ENTRIES:n})}),i=o.prototype,a=Pse(t),u=function(e,t,n){var r=a(e),o=Tse(_oe(t),!0);return!0===o?Rse(r).set(t,n):o[r.id]=n,e};return Zue(i,{delete:function(e){var t=a(this);if(!Mre(e))return!1;var n=Tse(e);return!0===n?Rse(t).delete(e):n&&foe(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Mre(e))return!1;var n=Tse(e);return!0===n?Rse(t).has(e):n&&foe(n,t.id)}}),Zue(i,n?{get:function(e){var t=a(this);if(Mre(e)){var n=Tse(e);return!0===n?Rse(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}},$se=eie.enforce,Use=!vre.ActiveXObject&&"ActiveXObject"in vre,Wse=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Gse=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=vre[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=kre(u[e]);iie(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Mre(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Mre(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Mre(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Tie(e,!Rre(a)||!(o||u.forEach&&!gre(function(){(new a).entries().next()}))))s=n.getConstructor(t,e,r,i),ise.enable();else if(Tie(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=gre(function(){f.has(1)}),h=Cse(function(e){new a(e)}),v=!o&&gre(function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)});h||((s=t(function(e,t){bse(e,u);var n=function(e,t,n){var r,o;return Lue&&Rre(r=t.constructor)&&r!==n&&Mre(o=r.prototype)&&o!==n.prototype&&Lue(e,o),e}(new a,e,s);return null!=t&&yse(t,n[i],{that:n,AS_ENTRIES:r}),n})).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,Pie({global:!0,forced:s!=a},c),_ue(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Wse,Vse);if($oe&&Use){Hse=Vse.getConstructor(Wse,"WeakMap",!0),ise.enable();var qse=Gse.prototype,Kse=kre(qse.delete),Yse=kre(qse.has),Xse=kre(qse.get),Zse=kre(qse.set);Zue(qse,{delete:function(e){if(Mre(e)&&!rse(e)){var t=$se(this);return t.frozen||(t.frozen=new Hse),Kse(this,e)||t.frozen.delete(e)}return Kse(this,e)},has:function(e){if(Mre(e)&&!rse(e)){var t=$se(this);return t.frozen||(t.frozen=new Hse),Yse(this,e)||t.frozen.has(e)}return Yse(this,e)},get:function(e){if(Mre(e)&&!rse(e)){var t=$se(this);return t.frozen||(t.frozen=new Hse),Yse(this,e)?Xse(this,e):t.frozen.get(e)}return Xse(this,e)},set:function(e,t){if(Mre(e)&&!rse(e)){var n=$se(this);n.frozen||(n.frozen=new Hse),Yse(this,e)?Zse(this,e,t):n.frozen.set(e,t)}else Zse(this,e,t);return this}})}var Jse={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},Qse=Aoe("span").classList,ece=Qse&&Qse.constructor&&Qse.constructor.prototype,tce=ece===Object.prototype?void 0:ece,nce=woe("iterator"),rce=woe("toStringTag"),oce=que.values,ice=function(e,t){if(e){if(e[nce]!==oce)try{Ioe(e,nce,oce)}catch(t){e[nce]=oce}if(e[rce]||Ioe(e,rce,t),Jse[t])for(var n in que)if(e[n]!==que[n])try{Ioe(e,n,que[n])}catch(t){e[n]=que[n]}}};for(var ace in Jse)ice(vre[ace]&&vre[ace].prototype,ace);ice(tce,"DOMTokenList");var uce=function(e,t){var n=[][e];return!!n&&gre(function(){n.call(null,t||function(){throw 1},1)})},sce=Fse.forEach,cce=uce("forEach")?[].forEach:function(e){return sce(this,e,arguments.length>1?arguments[1]:void 0)},lce=function(e){if(e&&e.forEach!==cce)try{Ioe(e,"forEach",cce)}catch(t){e.forEach=cce}};for(var fce in Jse)Jse[fce]&&lce(vre[fce]&&vre[fce].prototype);lce(tce);var dce,pce,hce,vce,gce=vre.Promise,yce=woe("species"),mce=/(?:ipad|iphone|ipod).*applewebkit/i.test(Vre),bce="process"==Tre(vre.process),wce=vre.setImmediate,xce=vre.clearImmediate,Ece=vre.process,Dce=vre.Dispatch,Cce=vre.Function,Sce=vre.MessageChannel,Ace=vre.String,Oce=0,kce={};try{dce=vre.location}catch(il){}var Bce=function(e){if(foe(kce,e)){var t=kce[e];delete kce[e],t()}},Fce=function(e){return function(){Bce(e)}},Tce=function(e){Bce(e.data)},_ce=function(e){vre.postMessage(Ace(e),dce.protocol+"//"+dce.host)};wce&&xce||(wce=function(e){var t=Zie(arguments,1);return kce[++Oce]=function(){Hae(Rre(e)?e:Cce(e),void 0,t)},pce(Oce),Oce},xce=function(e){delete kce[e]},bce?pce=function(e){Ece.nextTick(Fce(e))}:Dce&&Dce.now?pce=function(e){Dce.now(Fce(e))}:Sce&&!mce?(vce=(hce=new Sce).port2,hce.port1.onmessage=Tce,pce=use(vce.postMessage,vce)):vre.addEventListener&&Rre(vre.postMessage)&&!vre.importScripts&&dce&&"file:"!==dce.protocol&&!gre(_ce)?(pce=_ce,vre.addEventListener("message",Tce,!1)):pce="onreadystatechange"in Aoe("script")?function(e){dae.appendChild(Aoe("script")).onreadystatechange=function(){dae.removeChild(this),Bce(e)}}:function(e){setTimeout(Fce(e),0)});var Pce,jce,Nce,Ice,Lce,Rce,Mce,zce,Hce={set:wce},Vce=/ipad|iphone|ipod/i.test(Vre)&&void 0!==vre.Pebble,$ce=/web0s(?!.*chrome)/i.test(Vre),Uce=Boe.f,Wce=Hce.set,Gce=vre.MutationObserver||vre.WebKitMutationObserver,qce=vre.document,Kce=vre.process,Yce=vre.Promise,Xce=Uce(vre,"queueMicrotask"),Zce=Xce&&Xce.value;Zce||(Pce=function(){var e,t;for(bce&&(e=Kce.domain)&&e.exit();jce;){t=jce.fn,jce=jce.next;try{t()}catch(e){throw jce?Ice():Nce=void 0,e}}Nce=void 0,e&&e.enter()},mce||bce||$ce||!Gce||!qce?!Vce&&Yce&&Yce.resolve?((Mce=Yce.resolve(void 0)).constructor=Yce,zce=use(Mce.then,Mce),Ice=function(){zce(Pce)}):bce?Ice=function(){Kce.nextTick(Pce)}:(Wce=use(Wce,vre),Ice=function(){Wce(Pce)}):(Lce=!0,Rce=qce.createTextNode(""),new Gce(Pce).observe(Rce,{characterData:!0}),Ice=function(){Rce.data=Lce=!Lce}));var Jce,Qce,ele,tle,nle=Zce||function(e){var t={fn:e,next:void 0};Nce&&(Nce.next=t),jce||(jce=t,Ice()),Nce=t},rle=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=toe(t),this.reject=toe(n)},ole={f:function(e){return new rle(e)}},ile=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},ale="object"==("undefined"==typeof window?"undefined":D(window)),ule=Hce.set,sle=woe("species"),cle="Promise",lle=eie.getterFor(cle),fle=eie.set,dle=eie.getterFor(cle),ple=gce&&gce.prototype,hle=gce,vle=ple,gle=vre.TypeError,yle=vre.document,mle=vre.process,ble=ole.f,wle=ble,xle=!!(yle&&yle.createEvent&&vre.dispatchEvent),Ele=Rre(vre.PromiseRejectionEvent),Dle=!1,Cle=Tie(cle,function(){var e=Hoe(hle),t=e!==String(hle);if(!t&&66===qre)return!0;if(qre>=51&&/native code/.test(e))return!1;var n=new hle(function(e){e(1)}),r=function(e){e(function(){},function(){})};return(n.constructor={})[sle]=r,!(Dle=n.then(function(){})instanceof r)||!t&&ale&&!Ele}),Sle=Cle||!Cse(function(e){hle.all(e).catch(function(){})}),Ale=function(e){var t;return!(!Mre(e)||!Rre(t=e.then))&&t},Ole=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;nle(function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,c=n[i++],l=o?c.ok:c.fail,f=c.resolve,d=c.reject,p=c.domain;try{l?(o||(2===e.rejection&&Tle(e),e.rejection=1),!0===l?a=r:(p&&p.enter(),a=l(r),p&&(p.exit(),s=!0)),a===c.promise?d(gle("Promise-chain cycle")):(u=Ale(a))?bre(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Ble(e)})}},kle=function(e,t,n){var r,o;xle?((r=yle.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),vre.dispatchEvent(r)):r={promise:t,reason:n},!Ele&&(o=vre["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=vre.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Ble=function(e){bre(ule,vre,function(){var t,n=e.facade,r=e.value;if(Fle(e)&&(t=ile(function(){bce?mle.emit("unhandledRejection",r,n):kle("unhandledrejection",n,r)}),e.rejection=bce||Fle(e)?2:1,t.error))throw t.value})},Fle=function(e){return 1!==e.rejection&&!e.parent},Tle=function(e){bre(ule,vre,function(){var t=e.facade;bce?mle.emit("rejectionHandled",t):kle("rejectionhandled",t,e.value)})},_le=function(e,t,n){return function(r){e(t,r,n)}},Ple=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Ole(e,!0))},jle=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw gle("Promise can't be resolved itself");var r=Ale(t);r?nle(function(){var n={done:!1};try{bre(r,t,_le(jle,n,e),_le(Ple,n,e))}catch(t){Ple(n,t,e)}}):(e.value=t,e.state=1,Ole(e,!1))}catch(t){Ple({done:!1},t,e)}}};if(Cle&&(vle=(hle=function(e){bse(this,vle),toe(e),bre(Jce,this);var t=lle(this);try{e(_le(jle,t),_le(Ple,t))}catch(e){Ple(t,e)}}).prototype,(Jce=function(e){fle(this,{type:cle,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Zue(vle,{then:function(e,t){var n=dle(this),r=n.reactions,o=ble(qae(this,hle));return o.ok=!Rre(e)||e,o.fail=Rre(t)&&t,o.domain=bce?mle.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Ole(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Qce=function(){var e=new Jce,t=lle(e);this.promise=e,this.resolve=_le(jle,t),this.reject=_le(Ple,t)},ole.f=ble=function(e){return e===hle||e===ele?new Qce(e):wle(e)},Rre(gce)&&ple!==Object.prototype)){tle=ple.then,Dle||(iie(ple,"then",function(e,t){var n=this;return new hle(function(e,t){bre(tle,n,e,t)}).then(e,t)},{unsafe:!0}),iie(ple,"catch",vle.catch,{unsafe:!0}));try{delete ple.constructor}catch(il){}Lue&&Lue(ple,vle)}Pie({global:!0,wrap:!0,forced:Cle},{Promise:hle}),_ue(hle,cle,!1),function(){var e=zre("Promise"),t=Noe.f;yre&&e&&!e[yce]&&t(e,yce,{configurable:!0,get:function(){return this}})}(),ele=zre(cle),Pie({target:cle,stat:!0,forced:Cle},{reject:function(e){var t=ble(this);return bre(t.reject,void 0,e),t.promise}}),Pie({target:cle,stat:!0,forced:Cle},{resolve:function(e){return function(e,t){if(_oe(e),Mre(t)&&t.constructor===e)return t;var n=ole.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Pie({target:cle,stat:!0,forced:Sle},{all:function(e){var t=this,n=ble(t),r=n.resolve,o=n.reject,i=ile(function(){var n=toe(t.resolve),i=[],a=0,u=1;yse(e,function(e){var s=a++,c=!1;u++,bre(n,t,e).then(function(e){c||(c=!0,i[s]=e,--u||r(i))},o)}),--u||r(i)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=ble(t),r=n.reject,o=ile(function(){var o=toe(t.resolve);yse(e,function(e){bre(o,t,e).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Nle=oie.PROPER,Ile=RegExp.prototype,Lle=Ile.toString,Rle=kre(aae),Mle=gre(function(){return"/a/b"!=Lle.call({source:"a",flags:"b"})}),zle=Nle&&"toString"!=Lle.name;(Mle||zle)&&iie(RegExp.prototype,"toString",function(){var e=_oe(this),t=iae(e.source),n=e.flags;return"/"+t+"/"+iae(void 0===n&&Hre(Ile,e)&&!("flags"in Ile)?Rle(e):n)},{unsafe:!0});var Hle=oie.EXISTS,Vle=Noe.f,$le=Function.prototype,Ule=kre($le.toString),Wle=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Gle=kre(Wle.exec);yre&&!Hle&&Vle($le,"name",{configurable:!0,get:function(){try{return Gle(Wle,Ule(this))[1]}catch(z){return""}}});var qle=new WeakMap;function Kle(e){return e.getMenuConfig("uploadImage")}function Yle(e,t){return due(this,0,void 0,function(){return pue(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;$z(e,i,t.name,a),n("ok")}}})]})})}function Xle(e,t){return due(this,0,void 0,function(){var n,r,o,i;return pue(this,function(a){switch(a.label){case 0:return n=function(e){var t=qle.get(e);if(null!=t)return t;var n=Kle(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=S_(fue(fue({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,function(t,n,r){return $z(e,t,n,r)}),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,c=void 0===s?{}:s;if(0===u){if(Array.isArray(c))c.forEach(function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;$z(e,r,i,void 0===a?"":a)});else{var l=c.url,f=void 0===l?"":l,d=c.alt,p=void 0===d?"":d,h=c.href;$z(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),qle.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 Zle(e,t){var n,r;return due(this,0,void 0,function(){var o,i,a,u,s,c,l,f,d;return pue(this,function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Kle(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(c=p.sent()).done?[3,10]:(l=c.value,f=l.size,u&&f<=u?[4,Yle(e,l)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(l,function(t,n,r){return $z(e,t,n,r)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Xle(e,l)];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]),c&&!c.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 Jle=kre([].join),Qle=jre!=Object,efe=uce("join",",");Pie({target:"Array",proto:!0,forced:Qle||!efe},{join:function(e){return Jle(Lre(this),void 0===e?",":e)}}),gh&&(Yp.fn.append=gh),rh&&(Yp.fn.on=rh),Eh&&(Yp.fn.remove=Eh),nh&&(Yp.fn.val=nh),Ah&&(Yp.fn.click=Ah),sh&&(Yp.fn.hide=sh);var tfe=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 Uz(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 $z(e,t,n,r)});else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Yp("body"),s=Yp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",function(){var t=s[0].files;Zle(e,t)})}},e}(),nfe={menus:[{key:"uploadImage",factory:function(){return new tfe},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){},onError:function(e,t,n){},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(Uz(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]})?Zle(e,o):t(r)}},n}};pP("en",{highLightModule:{selectLang:"Language"}}),pP("zh-CN",{highLightModule:{selectLang:"选择语言"}});var rfe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ofe(e){var t={exports:{}};return e(t,t.exports),t.exports}var ife,afe,ufe=function(e){return e&&e.Math==Math&&e},sfe=ufe("object"==("undefined"==typeof globalThis?"undefined":D(globalThis))&&globalThis)||ufe("object"==("undefined"==typeof window?"undefined":D(window))&&window)||ufe("object"==("undefined"==typeof self?"undefined":D(self))&&self)||ufe("object"==D(rfe)&&rfe)||function(){return this}()||Function("return this")(),cfe=Object.defineProperty,lfe=function(e,t){try{cfe(sfe,e,{value:t,configurable:!0,writable:!0})}catch(H){sfe[e]=t}return t},ffe=sfe["__core-js_shared__"]||lfe("__core-js_shared__",{}),dfe=ofe(function(e){(e.exports=function(e,t){return ffe[e]||(ffe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),pfe=Function.prototype,hfe=pfe.bind,vfe=pfe.call,gfe=hfe&&hfe.bind(vfe),yfe=hfe?function(e){return e&&gfe(vfe,e)}:function(e){return e&&function(){return vfe.apply(e,arguments)}},mfe=sfe.TypeError,bfe=function(e){if(null==e)throw mfe("Can't call method on "+e);return e},wfe=sfe.Object,xfe=function(e){return wfe(bfe(e))},Efe=yfe({}.hasOwnProperty),Dfe=Object.hasOwn||function(e,t){return Efe(xfe(e),t)},Cfe=0,Sfe=Math.random(),Afe=yfe(1..toString),Ofe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Afe(++Cfe+Sfe,36)},kfe=function(e){return"function"==typeof e},Bfe=function(e,t){return arguments.length<2?function(e){return kfe(e)?e:void 0}(sfe[e]):sfe[e]&&sfe[e][t]},Ffe=Bfe("navigator","userAgent")||"",Tfe=sfe.process,_fe=sfe.Deno,Pfe=Tfe&&Tfe.versions||_fe&&_fe.version,jfe=Pfe&&Pfe.v8;jfe&&(afe=(ife=jfe.split("."))[0]>0&&ife[0]<4?1:+(ife[0]+ife[1])),!afe&&Ffe&&(!(ife=Ffe.match(/Edge\/(\d+)/))||ife[1]>=74)&&(ife=Ffe.match(/Chrome\/(\d+)/))&&(afe=+ife[1]);var Nfe=afe,Ife=function(e){try{return!!e()}catch(e){return!0}},Lfe=!!Object.getOwnPropertySymbols&&!Ife(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Nfe&&Nfe<41}),Rfe=Lfe&&!Symbol.sham&&"symbol"==D(Symbol.iterator),Mfe=dfe("wks"),zfe=sfe.Symbol,Hfe=zfe&&zfe.for,Vfe=Rfe?zfe:zfe&&zfe.withoutSetter||Ofe,$fe=function(e){if(!Dfe(Mfe,e)||!Lfe&&"string"!=typeof Mfe[e]){var t="Symbol."+e;Lfe&&Dfe(zfe,e)?Mfe[e]=zfe[e]:Mfe[e]=Rfe&&Hfe?Hfe(t):Vfe(t)}return Mfe[e]},Ufe={};Ufe[$fe("toStringTag")]="z";var Wfe="[object z]"===String(Ufe),Gfe=!Ife(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),qfe=function(e){return"object"==D(e)?null!==e:kfe(e)},Kfe=sfe.document,Yfe=qfe(Kfe)&&qfe(Kfe.createElement),Xfe=function(e){return Yfe?Kfe.createElement(e):{}},Zfe=!Gfe&&!Ife(function(){return 7!=Object.defineProperty(Xfe("div"),"a",{get:function(){return 7}}).a}),Jfe=sfe.String,Qfe=sfe.TypeError,ede=function(e){if(qfe(e))return e;throw Qfe(Jfe(e)+" is not an object")},tde=Function.prototype.call,nde=tde.bind?tde.bind(tde):function(){return tde.apply(tde,arguments)},rde=yfe({}.isPrototypeOf),ode=sfe.Object,ide=Rfe?function(e){return"symbol"==D(e)}:function(e){var t=Bfe("Symbol");return kfe(t)&&rde(t.prototype,ode(e))},ade=sfe.String,ude=function(e){try{return ade(e)}catch(e){return"Object"}},sde=sfe.TypeError,cde=function(e){if(kfe(e))return e;throw sde(ude(e)+" is not a function")},lde=function(e,t){var n=e[t];return null==n?void 0:cde(n)},fde=sfe.TypeError,dde=sfe.TypeError,pde=$fe("toPrimitive"),hde=function(e){var t=function(e){if(!qfe(e)||ide(e))return e;var t,n=lde(e,pde);if(n){if(t=nde(n,e,"string"),!qfe(t)||ide(t))return t;throw dde("Can't convert object to primitive value")}return function(e){var t,n;if(kfe(t=e.toString)&&!qfe(n=nde(t,e)))return n;if(kfe(t=e.valueOf)&&!qfe(n=nde(t,e)))return n;throw fde("Can't convert object to primitive value")}(e)}(e);return ide(t)?t:t+""},vde=sfe.TypeError,gde=Object.defineProperty,yde={f:Gfe?gde:function(e,t,n){if(ede(e),t=hde(t),ede(n),Zfe)try{return gde(e,t,n)}catch(e){}if("get"in n||"set"in n)throw vde("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},mde=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},bde=Gfe?function(e,t,n){return yde.f(e,t,mde(1,n))}:function(e,t,n){return e[t]=n,e},wde=yfe(Function.toString);kfe(ffe.inspectSource)||(ffe.inspectSource=function(e){return wde(e)});var xde,Ede,Dde,Cde=ffe.inspectSource,Sde=sfe.WeakMap,Ade=kfe(Sde)&&/native code/.test(Cde(Sde)),Ode=dfe("keys"),kde=function(e){return Ode[e]||(Ode[e]=Ofe(e))},Bde={},Fde=sfe.TypeError,Tde=sfe.WeakMap;if(Ade||ffe.state){var _de=ffe.state||(ffe.state=new Tde),Pde=yfe(_de.get),jde=yfe(_de.has),Nde=yfe(_de.set);xde=function(e,t){if(jde(_de,e))throw new Fde("Object already initialized");return t.facade=e,Nde(_de,e,t),t},Ede=function(e){return Pde(_de,e)||{}},Dde=function(e){return jde(_de,e)}}else{var Ide=kde("state");Bde[Ide]=!0,xde=function(e,t){if(Dfe(e,Ide))throw new Fde("Object already initialized");return t.facade=e,bde(e,Ide,t),t},Ede=function(e){return Dfe(e,Ide)?e[Ide]:{}},Dde=function(e){return Dfe(e,Ide)}}var Lde={get:Ede,enforce:function(e){return Dde(e)?Ede(e):xde(e,{})}},Rde=Function.prototype,Mde=Gfe&&Object.getOwnPropertyDescriptor,zde=Dfe(Rde,"name"),Hde={PROPER:zde&&"something"===function(){}.name,CONFIGURABLE:zde&&(!Gfe||Gfe&&Mde(Rde,"name").configurable)},Vde=ofe(function(e){var t=Hde.CONFIGURABLE,n=Lde.get,r=Lde.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;kfe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Dfe(i,"name")||t&&i.name!==f)&&bde(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==sfe?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:bde(e,n,i)):c?e[n]=i:lfe(n,i)})(Function.prototype,"toString",function(){return kfe(this)&&n(this).source||Cde(this)})}),$de=yfe({}.toString),Ude=yfe("".slice),Wde=function(e){return Ude($de(e),8,-1)},Gde=$fe("toStringTag"),qde=sfe.Object,Kde="Arguments"==Wde(function(){return arguments}()),Yde=Wfe?Wde: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=qde(e),Gde))?n:Kde?Wde(t):"Object"==(r=Wde(t))&&kfe(t.callee)?"Arguments":r},Xde=Wfe?{}.toString:function(){return"[object "+Yde(this)+"]"};Wfe||Vde(Object.prototype,"toString",Xde,{unsafe:!0});var Zde,Jde={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},Qde=Xfe("span").classList,epe=Qde&&Qde.constructor&&Qde.constructor.prototype,tpe=epe===Object.prototype?void 0:epe,npe=yfe(yfe.bind),rpe=sfe.Object,ope=yfe("".split),ipe=Ife(function(){return!rpe("z").propertyIsEnumerable(0)})?function(e){return"String"==Wde(e)?ope(e,""):rpe(e)}:rpe,ape=Math.ceil,upe=Math.floor,spe=function(e){var t=+e;return t!=t||0===t?0:(t>0?upe:ape)(t)},cpe=Math.min,lpe=function(e){return e>0?cpe(spe(e),9007199254740991):0},fpe=function(e){return lpe(e.length)},dpe=Array.isArray||function(e){return"Array"==Wde(e)},ppe=function(){},hpe=[],vpe=Bfe("Reflect","construct"),gpe=/^\s*(?:class|function)\b/,ype=yfe(gpe.exec),mpe=!gpe.exec(ppe),bpe=function(e){if(!kfe(e))return!1;try{return vpe(ppe,hpe,e),!0}catch(e){return!1}},wpe=!vpe||Ife(function(){var e;return bpe(bpe.call)||!bpe(Object)||!bpe(function(){e=!0})||e})?function(e){if(!kfe(e))return!1;switch(Yde(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return mpe||!!ype(gpe,Cde(e))}:bpe,xpe=$fe("species"),Epe=sfe.Array,Dpe=function(e,t){return new(function(e){var t;return dpe(e)&&(t=e.constructor,(wpe(t)&&(t===Epe||dpe(t.prototype))||qfe(t)&&null===(t=t[xpe]))&&(t=void 0)),void 0===t?Epe:t}(e))(0===t?0:t)},Cpe=yfe([].push),Spe=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=xfe(s),v=ipe(h),g=function(e,t){return cde(e),void 0===t?e:npe?npe(e,t):function(){return e.apply(t,arguments)}}(c,l),y=fpe(v),m=0,b=f||Dpe,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:Cpe(w,d)}else switch(e){case 4:return!1;case 7:Cpe(w,d)}return i?-1:r||o?o:w}},Ape=[Spe(0),Spe(1),Spe(2),Spe(3),Spe(4),Spe(5),Spe(6),Spe(7)][0],Ope=(Zde=[].forEach)&&Ife(function(){Zde.call(null,function(){throw 1},1)})?[].forEach:function(e){return Ape(this,e,arguments.length>1?arguments[1]:void 0)},kpe=function(e){if(e&&e.forEach!==Ope)try{bde(e,"forEach",Ope)}catch(t){e.forEach=Ope}};for(var Bpe in Jde)Jde[Bpe]&&kpe(sfe[Bpe]&&sfe[Bpe].prototype);kpe(tpe);var Fpe={}.propertyIsEnumerable,Tpe=Object.getOwnPropertyDescriptor,_pe={f:Tpe&&!Fpe.call({1:2},1)?function(e){var t=Tpe(this,e);return!!t&&t.enumerable}:Fpe},Ppe=function(e){return ipe(bfe(e))},jpe=Object.getOwnPropertyDescriptor,Npe={f:Gfe?jpe:function(e,t){if(e=Ppe(e),t=hde(t),Zfe)try{return jpe(e,t)}catch(e){}if(Dfe(e,t))return mde(!nde(_pe.f,e,t),e[t])}},Ipe=Math.max,Lpe=Math.min,Rpe=function(e,t){var n=spe(e);return n<0?Ipe(n+t,0):Lpe(n,t)},Mpe=function(e){return function(t,n,r){var o,i=Ppe(t),a=fpe(i),u=Rpe(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}}(!1),zpe=yfe([].push),Hpe=function(e,t){var n,r=Ppe(e),o=0,i=[];for(n in r)!Dfe(Bde,n)&&Dfe(r,n)&&zpe(i,n);for(;t.length>o;)Dfe(r,n=t[o++])&&(~Mpe(i,n)||zpe(i,n));return i},Vpe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$pe=Vpe.concat("length","prototype"),Upe={f:Object.getOwnPropertyNames||function(e){return Hpe(e,$pe)}},Wpe={f:Object.getOwnPropertySymbols},Gpe=yfe([].concat),qpe=Bfe("Reflect","ownKeys")||function(e){var t=Upe.f(ede(e)),n=Wpe.f;return n?Gpe(t,n(e)):t},Kpe=function(e,t){for(var n=qpe(t),r=yde.f,o=Npe.f,i=0;i<n.length;i++){var a=n[i];Dfe(e,a)||r(e,a,o(t,a))}},Ype=/#|\.prototype\./,Xpe=function(e,t){var n=Jpe[Zpe(e)];return n==ehe||n!=Qpe&&(kfe(t)?Ife(t):!!t)},Zpe=Xpe.normalize=function(e){return String(e).replace(Ype,".").toLowerCase()},Jpe=Xpe.data={},Qpe=Xpe.NATIVE="N",ehe=Xpe.POLYFILL="P",the=Xpe,nhe=Npe.f,rhe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?sfe:c?sfe[u]||lfe(u,{}):(sfe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=nhe(n,r))&&a.value:n[r],!the(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(D(i)==D(o))continue;Kpe(i,o)}(e.sham||o&&o.sham)&&bde(i,"sham",!0),Vde(n,r,i,e)}},ohe=Object.keys||function(e){return Hpe(e,Vpe)},ihe=Object.assign,ahe=Object.defineProperty,uhe=yfe([].concat),she=!ihe||Ife(function(){if(Gfe&&1!==ihe({b:1},ihe(ahe({},"a",{enumerable:!0,get:function(){ahe(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!=ihe({},e)[n]||ohe(ihe({},t)).join("")!=r})?function(e,t){for(var n=xfe(e),r=arguments.length,o=1,i=Wpe.f,a=_pe.f;r>o;)for(var u,s=ipe(arguments[o++]),c=i?uhe(ohe(s),i(s)):ohe(s),l=c.length,f=0;l>f;)u=c[f++],Gfe&&!nde(a,s,u)||(n[u]=s[u]);return n}:ihe;rhe({target:"Object",stat:!0,forced:Object.assign!==she},{assign:she});var che=ofe(function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(t,o){r[o]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var c=r[e];return r[e]=a,o.languages.DFS(o.languages,function(t,n){n===c&&t!=e&&(this[t]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],c=o.util.type(s);"Object"!==c||i[a(s)]?"Array"!==c||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var c={element:n,language:a,grammar:u,code:n.textContent};function l(e){c.highlightedCode=e,o.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,o.hooks.run("after-highlight",c),o.hooks.run("complete",c),i&&i.call(c.element)}if(o.hooks.run("before-sanity-check",c),(s=c.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!c.code)return o.hooks.run("complete",c),void(i&&i.call(c.element));if(o.hooks.run("before-highlight",c),c.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){l(e.data)},f.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(o.highlight(c.code,c.grammar,c.language));else l(o.util.encode(c.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return c(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var 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 v=p[h],g=v.inside,y=!!v.lookbehind,m=!!v.greedy,b=v.alias;if(m&&!v.pattern.global){var w=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,w+"g")}for(var x=v.pattern||v,E=r.next,D=s;E!==t.tail&&!(f&&D>=f.reach);D+=E.value.length,E=E.next){var C=E.value;if(t.length>e.length)return;if(!(C instanceof i)){var S,A=1;if(m){if(!(S=a(x,D,e,y)))break;var O=S.index,k=S.index+S[0].length,B=D;for(B+=E.value.length;O>=B;)B+=(E=E.next).value.length;if(D=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--,C=e.slice(D,B),S.index-=D}else if(!(S=a(x,0,C,y)))continue;O=S.index;var T=S[0],_=C.slice(0,O),P=C.slice(O+T.length),j=D+C.length;f&&j>f.reach&&(f.reach=j);var N=E.prev;if(_&&(N=c(t,N,_),D+=_.length),l(t,N,A),E=c(t,N,new i(d,g?o.tokenize(T,g):T,b,T)),P&&c(t,E,P),A>1){var I={cause:d+","+h,reach:j};u(e,t,n,E.prev,D,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 c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function l(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()},!1),o):o;var f=o.util.currentScript();function 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:{});
- /**
- * Prism: Lightweight, robust, elegant syntax highlighting
- *
- * @license MIT <https://opensource.org/licenses/MIT>
- * @author Lea Verou <https://lea.verou.me>
- * @namespace
- * @public
- */e.exports&&(e.exports=t),void 0!==rfe&&(rfe.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",function(e){e.selector+=", "+r}),t.hooks.add("before-sanity-check",function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),c=o.language;if("none"===c){var l=(/\.(\w+)$/.exec(s)||[,"none"])[1];c=e[l]||l}a(u,c),a(i,c);var f=t.plugins.autoloader;f&&f.loadLanguages(c);var 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||(i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()});!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)})}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,r){return RegExp(t(e,n),"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,function(){return"(?:"+e+")"});return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=s(i),l=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[v,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),x=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),E=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,y,m]),D={keyword:l,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\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,[S]),lookbehind:!0,greedy:!0},{pattern:RegExp(C),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,E]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,g]),lookbehind:!0,inside:D},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:D},{pattern:n(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:D},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[E,d,v]),inside:D}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:D},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[E,y]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[E]),lookbehind:!0,inside:D,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,p]),inside:{function:n(/^<<0>>/.source,[v]),generic:{pattern:RegExp(p),alias:"class-name",inside:D}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,g,v,E,l.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:l,"class-name":{pattern:RegExp(E),greedy:!0,inside:D},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=S+"|"+C,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],c=/language-(.+)/.exec(i);if(c){n=c[1];break}}var l=e.languages[n];if(l)t.content=e.highlight(function(e){return e.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e})}(t.content),l,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}});var lhe=["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 fhe(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce(function(e,t){return e+fhe(t)},0)}var dhe,phe=sfe.String,hhe=function(e){if("Symbol"===Yde(e))throw TypeError("Cannot convert a Symbol value to a string");return phe(e)},vhe=function(){var e=ede(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},ghe=sfe.RegExp,yhe=Ife(function(){var e=ghe("a","y");return e.lastIndex=2,null!=e.exec("abcd")});yhe||Ife(function(){return!ghe("a","y").sticky});var mhe={BROKEN_CARET:yhe||Ife(function(){var e=ghe("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),UNSUPPORTED_Y:yhe},bhe=Gfe?Object.defineProperties:function(e,t){ede(e);for(var n,r=Ppe(t),o=ohe(t),i=o.length,a=0;i>a;)yde.f(e,n=o[a++],r[n]);return e},whe=Bfe("document","documentElement"),xhe=kde("IE_PROTO"),Ehe=function(){},Dhe=function(e){return"<script>"+e+"<\/script>"},Che=function(e){e.write(Dhe("")),e.close();var t=e.parentWindow.Object;return e=null,t},She=function(){try{dhe=new ActiveXObject("htmlfile")}catch(e){}var e,t;She="undefined"!=typeof document?document.domain&&dhe?Che(dhe):((t=Xfe("iframe")).style.display="none",whe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Dhe("document.F=Object")),e.close(),e.F):Che(dhe);for(var n=Vpe.length;n--;)delete She.prototype[Vpe[n]];return She()};Bde[xhe]=!0;var Ahe,Ohe,khe=Object.create||function(e,t){var n;return null!==e?(Ehe.prototype=ede(e),n=new Ehe,Ehe.prototype=null,n[xhe]=e):n=She(),void 0===t?n:bhe(n,t)},Bhe=sfe.RegExp,Fhe=Ife(function(){var e=Bhe(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),The=sfe.RegExp,_he=Ife(function(){var e=The("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),Phe=Lde.get,jhe=dfe("native-string-replace",String.prototype.replace),Nhe=RegExp.prototype.exec,Ihe=Nhe,Lhe=yfe("".charAt),Rhe=yfe("".indexOf),Mhe=yfe("".replace),zhe=yfe("".slice),Hhe=(Ohe=/b*/g,nde(Nhe,Ahe=/a/,"a"),nde(Nhe,Ohe,"a"),0!==Ahe.lastIndex||0!==Ohe.lastIndex),Vhe=mhe.BROKEN_CARET,$he=void 0!==/()??/.exec("")[1];(Hhe||$he||Vhe||Fhe||_he)&&(Ihe=function(e){var t,n,r,o,i,a,u,s=this,c=Phe(s),l=hhe(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=nde(Ihe,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=Vhe&&s.sticky,h=nde(vhe,s),v=s.source,g=0,y=l;if(p&&(h=Mhe(h,"y",""),-1===Rhe(h,"g")&&(h+="g"),y=zhe(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Lhe(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),$he&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Hhe&&(r=s.lastIndex),o=nde(Nhe,p?n:s,y),p?o?(o.input=zhe(o.input,g),o[0]=zhe(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Hhe&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),$he&&o&&o.length>1&&nde(jhe,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=khe(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Uhe=Ihe;rhe({target:"RegExp",proto:!0,forced:/./.exec!==Uhe},{exec:Uhe});var Whe=Function.prototype,Ghe=Whe.apply,qhe=Whe.bind,Khe=Whe.call,Yhe="object"==("undefined"==typeof Reflect?"undefined":D(Reflect))&&Reflect.apply||(qhe?Khe.bind(Ghe):function(){return Khe.apply(Ghe,arguments)}),Xhe=$fe("species"),Zhe=RegExp.prototype,Jhe=$fe("match"),Qhe=sfe.TypeError,eve=$fe("species"),tve=yfe("".charAt),nve=yfe("".charCodeAt),rve=yfe("".slice),ove=function(e){return function(t,n){var r,o,i=hhe(bfe(t)),a=spe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=nve(i,a))<55296||r>56319||a+1===u||(o=nve(i,a+1))<56320||o>57343?e?tve(i,a):r:e?rve(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),ive=function(e,t,n){return t+(n?ove(e,t).length:1)},ave=sfe.Array,uve=Math.max,sve=function(e,t,n){for(var r,o,i,a,u=fpe(e),s=Rpe(t,u),c=Rpe(void 0===n?u:n,u),l=ave(uve(c-s,0)),f=0;s<c;s++,f++)r=l,o=f,i=e[s],(a=hde(o))in r?yde.f(r,a,mde(0,i)):r[a]=i;return l.length=f,l},cve=sfe.TypeError,lve=function(e,t){var n=e.exec;if(kfe(n)){var r=nde(n,e,t);return null!==r&&ede(r),r}if("RegExp"===Wde(e))return nde(Uhe,e,t);throw cve("RegExp#exec called on incompatible receiver")},fve=mhe.UNSUPPORTED_Y,dve=Math.min,pve=[].push,hve=yfe(/./.exec),vve=yfe(pve),gve=yfe("".slice);!function(e,t,n,r){var o=$fe(e),i=!Ife(function(){var t={};return t[o]=function(){return 7},7!=""[e](t)}),a=i&&!Ife(function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Xhe]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e});if(!i||!a||n){var u=yfe(/./[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=hhe(bfe(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!qfe(r=e)||!(void 0!==(o=r[Jhe])?o:"RegExp"==Wde(r)))return nde(t,i,e,a);for(var u,s,c,l=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=nde(Uhe,p,i))&&!((s=p.lastIndex)>d&&(vve(l,gve(i,d,u.index)),u.length>1&&u.index<i.length&&Yhe(pve,l,sve(u,1)),c=u[0].length,d=s,l.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!c&&hve(p,"")||vve(l,""):vve(l,gve(i,d)),l.length>a?sve(l,0,a):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:nde(t,this,e,n)}:t,[function(t,n){var o=bfe(this),i=null==t?void 0:lde(t,e);return i?nde(i,t,o,n):nde(r,hhe(o),t,n)},function(e,o){var i=ede(this),a=hhe(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=ede(e).constructor;return void 0===r||null==(n=ede(r)[eve])?t:function(e){if(wpe(e))return e;throw Qhe(ude(e)+" is not a constructor")}(n)}(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(fve?"g":"y"),f=new s(fve?"^(?:"+i.source+")":i,l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===lve(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=fve?0:h;var g,y=lve(f,fve?gve(a,h):a);if(null===y||(g=dve(lpe(f.lastIndex+(fve?h:0)),a.length))===p)h=ive(a,h,c);else{if(vve(v,gve(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(vve(v,y[m]),v.length===d)return v;h=p=g}}return vve(v,gve(a,p)),v}]}(o,""[e],function(e,t,n,r,o){var a=yfe(e),s=t.exec;return s===Uhe||s===Zhe.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}});Vde(String.prototype,e,s[0]),Vde(Zhe,o,s[1])}r&&bde(Zhe[o],"sham",!0)}("split",0,!!Ife(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]}),fve),rhe({global:!0},{globalThis:sfe}),Qp&&(Yp.fn.attr=Qp);var yve=Hde.PROPER,mve=RegExp.prototype,bve=mve.toString,wve=yfe(vhe),xve=Ife(function(){return"/a/b"!=bve.call({source:"a",flags:"b"})}),Eve=yve&&"toString"!=bve.name;(xve||Eve)&&Vde(RegExp.prototype,"toString",function(){var e=ede(this),t=hhe(e.source),n=e.flags;return"/"+t+"/"+hhe(void 0===n&&rde(mve,e)&&!("flags"in mve)?wve(e):n)},{unsafe:!0});var Dve=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(!Hf.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()};Nd.setNodes(e,n,{match:function(e){return IO.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=IO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=IO.getParentNode(e,t);return Hf.isElement(n)?"pre"!==n.type?null:t:null},e}(),Cve={renderStyle:function(e,t){var n=e,r=t,o="";return lhe.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=Yp(e);if(!Hf.isElement(t))return t;if("code"!==IO.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 Dve},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>"}}]},Sve=/"/g,Ave=yfe("".replace);rhe({target:"String",proto:!0,forced:Ife(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=hhe(bfe(this)),r="<a",(r+=' name="'+Ave(hhe(t),Sve,""")+'"')+">"+n+"</a>";var t,n,r}});var Ove=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(!yd.isText(e))return null;var t=IO.getParentNode(null,e);if(t&&"code"===IO.getNodeType(t)){var n=IO.getParentNode(null,t);if(n&&"pre"===IO.getNodeType(n))return t}return null}(i);if(null==s)return u;var c=s.language,l=void 0===c?"":c;if(!l)return u;var f=function(e,t){if(!t)return[];var n=che.languages[t];return n?che.tokenize(e.text,n):[]}(i,l),d=0;try{for(var p=
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- 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 v=h.value,g=d+fhe(v);"string"!=typeof v&&u.push(((r={})[v.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:g},r)),d=g}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},kve=function(){return kve=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},kve.apply(this,arguments)},Bve=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=kve(kve({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=kve(kve({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=kve(kve({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=kve(kve({},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=HS(HS({},o),t||{});if(null!=MO[n])throw new Error("Duplicated key '"+n+"' in menu items");MO[n]=r,function(e,t){null!=t&&(RO[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;mT[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){yT.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;ZO[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){XO.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){MB.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;HB[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){zB.push(e)}(e)},e.registerModule=function(e){Fve(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function Fve(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,c=e.editorPlugin;t&&t.forEach(function(e){return Bve.registerMenu(e)}),n&&n.forEach(function(e){return Bve.registerRenderElem(e)}),r&&Bve.registerRenderStyle(r),o&&o.forEach(function(e){return Bve.registerElemToHtml(e)}),i&&Bve.registerStyleToHtml(i),a&&a.forEach(function(e){return Bve.registerPreParseHtml(e)}),u&&u.forEach(function(e){return Bve.registerParseElemHtml(e)}),s&&Bve.registerParseStyleHtml(s),c&&Bve.registerPlugin(c)}ZG.forEach(function(e){return Fve(e)}),Fve(dQ),Fve(U3),Fve(cre),Fve(nfe),Fve(Cve);var Tve='<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>',_ve={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"]}},Pve={hoverbarKeys:kve(kve({},_ve),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Bve.setEditorConfig(kve(kve({},Pve),{decorate:Ove}));var jve={hoverbarKeys:_ve};Bve.setSimpleEditorConfig(kve(kve({},jve),{decorate:Ove}));var Nve={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:Tve,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"]};Bve.setToolbarConfig(Nve);var Ive={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:Tve,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};Bve.setSimpleToolbarConfig(Ive);var Lve=Object.defineProperty,Rve=Object.defineProperties,Mve=Object.getOwnPropertyDescriptors,zve=Object.getOwnPropertySymbols,Hve=Object.prototype.hasOwnProperty,Vve=Object.prototype.propertyIsEnumerable,$ve=function(e,t,n){return t in e?Lve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Uve=function(e,t){for(var n in t||(t={}))Hve.call(t,n)&&$ve(e,n,t[n]);if(zve){var r,o=E(zve(t));try{for(o.s();!(r=o.n()).done;){n=r.value;Vve.call(t,n)&&$ve(e,n,t[n])}}catch(i){o.e(i)}finally{o.f()}}return e},Wve=function(e,t){return Rve(e,Mve(t))};function Gve(e){var t="请使用 '@".concat(e,"' 事件,不要放在 props 中");return t+="\nPlease use '@".concat(e,"' event instead of props")}var qve=function(e,t){var n,r=E(t);try{for(r.s();!(n=r.n()).done;){var o=b(n.value,2),i=o[0],a=o[1];e[i]=a}}catch(u){r.e(u)}finally{r.f()}return e},Kve=_({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup:function(e,t){var n=f(null),r=P(null),o=f(""),i=function(){if(n.value){var i=I(e.defaultContent);!function(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,c="simple"===(void 0===s?"default":s)?Bve.simpleEditorConfig:Bve.editorConfig,l=kve(kve({},c.hoverbarKeys||{}),u.hoverbarKeys||{});p_({selector:n,config:kve(kve(kve({},c),u),{hoverbarKeys:l}),content:o,html:i,plugins:Bve.plugins})}({selector:n.value,mode:e.mode,content:i||[],html:e.defaultHtml||e.modelValue||"",config:Wve(Uve({},e.defaultConfig),{onCreated:function(n){if(r.value=n,t.emit("onCreated",n),e.defaultConfig.onCreated){var o=Gve("onCreated");throw new Error(o)}},onChange:function(n){var r=n.getHtml();if(o.value=r,t.emit("update:modelValue",r),t.emit("onChange",n),e.defaultConfig.onChange){var i=Gve("onChange");throw new Error(i)}},onDestroyed:function(n){if(t.emit("onDestroyed",n),e.defaultConfig.onDestroyed){var r=Gve("onDestroyed");throw new Error(r)}},onMaxLength:function(n){if(t.emit("onMaxLength",n),e.defaultConfig.onMaxLength){var r=Gve("onMaxLength");throw new Error(r)}},onFocus:function(n){if(t.emit("onFocus",n),e.defaultConfig.onFocus){var r=Gve("onFocus");throw new Error(r)}},onBlur:function(n){if(t.emit("onBlur",n),e.defaultConfig.onBlur){var r=Gve("onBlur");throw new Error(r)}},customAlert:function(n,r){if(t.emit("customAlert",n,r),e.defaultConfig.customAlert){var o=Gve("customAlert");throw new Error(o)}},customPaste:function(n,r){if(e.defaultConfig.customPaste){var o=Gve("customPaste");throw new Error(o)}var i;return t.emit("customPaste",n,r,function(e){i=e}),i}})})}};return j(function(){i()}),N(function(){return e.modelValue},function(e){var t,n;e!==o.value&&(t=e,null!=(n=r.value)&&n.setHtml(t))}),{box:n}}}),Yve={ref:"box",style:{height:"100%"}};var Xve=qve(Kve,[["render",function(e,t,n,r,o,i){return S(),x("div",Yve,null,512)}]]),Zve=_({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup:function(e){var t=f(null),n=function(n){if(t.value){if(null==n)throw new Error("Not found instance of Editor when create <Toolbar/> component");IO.getToolbar(n)||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?Bve.simpleToolbarConfig:Bve.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 bF(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=HS({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new m_(n,i);return UA.set(a,e),WA.set(e,a),a}(n,{selector:t,config:kve(kve({},u),o)})}({editor:n,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return L(function(){var t=e.editor;null!=t&&n(t)}),{selector:t}}}),Jve={ref:"selector"};var Qve=qve(Zve,[["render",function(e,t,n,r,o,i){return S(),x("div",Jve,null,512)}]]),ege={class:"border border-solid border-gray-100 h-full z-10"};t("_",{__name:"rich-edit",props:{modelValue:{type:String,default:""}},emits:["change","update:modelValue"],setup:function(e,t){var n=t.emit,r=function(e){n("change",e),n("update:modelValue",u.value)},o=l(),i=e,a=P(),u=f(""),s={},c={placeholder:"请输入内容...",MENU_CONF:{}};c.MENU_CONF.uploadImage={fieldName:"file",server:"/api/fileUploadAndDownload/upload?noSave=1",headers:{"x-token":o.token},customInsert:function(e,t){0!==e.code?T.error(e.msg):t(M(e.data.file.url),e.data.file.name)}},R(function(){var e=a.value;null!=e&&e.destroy()});var d=function(e){a.value=e,u.value=i.modelValue};return N(function(){return i.modelValue},function(){u.value=i.modelValue}),function(e,t){return S(),x("div",ege,[A(B(Qve),{editor:a.value,"default-config":s,mode:"default"},null,8,["editor"]),A(B(Xve),{modelValue:u.value,"onUpdate:modelValue":t[0]||(t[0]=function(e){return u.value=e}),class:"overflow-y-hidden mt-0.5",style:{height:"18rem"},"default-config":c,mode:"default",onOnCreated:d,onOnChange:r},null,8,["modelValue"])])}}})}}})}();
|