@wangeditor-next/editor 5.2.8 → 5.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/index.esm.js +13 -13
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -50,7 +50,7 @@ var Gi=function(e,t){return Gi=Object.setPrototypeOf||{__proto__:[]}instanceof A
|
|
|
50
50
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
51
51
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
52
52
|
PERFORMANCE OF THIS SOFTWARE.
|
|
53
|
-
***************************************************************************** */};function go(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}vo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var yo=function(){return yo=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},yo.apply(this,arguments)};function mo(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function bo(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 Eo(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 wo(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 So(e){var t=wo(o.Editor.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!o.Element.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==o.Node.string(n))return!1;var r=n.children,i=void 0===r?[]:r;return!!o.Text.isText(i[0])&&(o.Transforms.setNodes(e,{type:"paragraph"}),!0)}var Do={renderElems:[f],elemsToHtml:[d],parseElemsHtml:[{selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=l.default(e);return 0===(t=t.filter((function(e){return!!o.Text.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}}],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){So(r)||t(e)},r.deleteForward=function(e){So(r)||n(e)},r}},Co=/"/g,Ao=P("".replace),xo=function(e,t,n,r){var o=En(H(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+Ao(En(r),Co,""")+'"'),i+">"+o+"</"+t+">"},Oo=function(e){return E((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function To(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 No(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}Vt({target:"String",proto:!0,forced:Oo("bold")},{bold:function(){return xo(this,"b","","")}}),Vt({target:"String",proto:!0,forced:Oo("italics")},{italics:function(){return xo(this,"i","","")}}),Vt({target:"String",proto:!0,forced:Oo("sub")},{sub:function(){return xo(this,"sub","","")}}),Vt({target:"String",proto:!0,forced:Oo("sup")},{sup:function(){return xo(this,"sup","","")}});var ko={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},Io=Fe("span").classList,Bo=Io&&Io.constructor&&Io.constructor.prototype,Po=Bo===Object.prototype?void 0:Bo,Fo=function(e,t){var n=[][e];return!!n&&E((function(){n.call(null,t||function(){throw 1},1)}))},_o=pn.forEach,Ro=Fo("forEach")?[].forEach:function(e){return _o(this,e,arguments.length>1?arguments[1]:void 0)},jo=function(e){if(e&&e.forEach!==Ro)try{Ve(e,"forEach",Ro)}catch(t){e.forEach=Ro}};for(var Lo in ko)ko[Lo]&&jo(b[Lo]&&b[Lo].prototype);function Mo(e,t){return null==e.selection||!!wo(o.Editor.nodes(e,{match:function(t){return"pre"===n.DomEditor.getNodeType(t)||!!o.Editor.isVoid(e,t)},universal:!0}),1)[0]}function zo(e,t){Object.keys(t).forEach((function(t){"text"!==t&&o.Editor.removeMark(e,t)}))}jo(Po),Vt({target:"Object",stat:!0,forced:E((function(){xn(1)}))},{keys:function(e){return xn(ge(e))}});var Ho=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=o.Editor.marks(e);return n?n[t]:!!wo(o.Editor.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 Mo(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}(),Uo='<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>',$o='<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>',Vo='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Go='<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>',Wo='<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>',qo='<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>',Ko='<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>',Yo='<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>',Xo='<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>',Zo='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',Jo='<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>',Qo='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',ei='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',ti='<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>',ni='<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>',ri='<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>',oi='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',ii='<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>',ai='<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>',ui=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=n.t("textStyle.bold"),t.iconSvg=Uo,t.hotkey="mod+b",t}return go(t,e),t}(Ho),si=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=n.t("textStyle.code"),t.iconSvg=Wo,t.hotkey="mod+e",t}return go(t,e),t}(Ho),li=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=n.t("textStyle.italic"),t.iconSvg=Vo,t.hotkey="mod+i",t}return go(t,e),t}(Ho),ci=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=n.t("textStyle.through"),t.iconSvg=Go,t.hotkey="mod+shift+x",t}return go(t,e),t}(Ho),fi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=n.t("textStyle.underline"),t.iconSvg=$o,t.hotkey="mod+u",t}return go(t,e),t}(Ho),di=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=n.t("textStyle.sub"),t.iconSvg=ai,t.hotkey="",t}return go(t,e),t}(Ho),pi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=n.t("textStyle.sup"),t.iconSvg=ii,t.hotkey="",t}return go(t,e),t}(Ho),hi=function(){function e(){this.title=n.t("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 Mo(e)},e.prototype.exec=function(e,t){var n,r,i=o.Editor.nodes(e,{match:function(e){return o.Text.isText(e)},universal:!0});try{for(var a=Eo(i),u=a.next();!u.done;u=a.next())zo(e,u.value[0])}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},e}(),vi={renderStyle:function(e,t){var n=e,o=n.bold,i=n.italic,a=n.underline,u=n.code,s=n.through,l=n.sub,c=n.sup,f=t;return o&&(f=r.jsx("strong",null,f)),u&&(f=r.jsx("code",null,f)),i&&(f=r.jsx("em",null,f)),a&&(f=r.jsx("u",null,f)),s&&(f=r.jsx("s",null,f)),l&&(f=r.jsx("sub",null,f)),c&&(f=r.jsx("sup",null,f)),f},menus:[{key:"bold",factory:function(){return new ui}},{key:"underline",factory:function(){return new fi}},{key:"italic",factory:function(){return new li}},{key:"through",factory:function(){return new ci}},{key:"code",factory:function(){return new si}},{key:"sub",factory:function(){return new di}},{key:"sup",factory:function(){return new pi}},{key:"clearStyle",factory:function(){return new hi}}],styleToHtml:function(e,t){if(!o.Text.isText(e))return t;if(co(t))return To(e,t);var n=l.default(t);if("br"===po(n))return To(e,"<br>");var r=n.html();return r=To(e,r),n.html(r),fo(n)},parseStyleHtml:function(e,t,n){var r=l.default(e);if(!o.Text.isText(t))return t;var i=t;return No(r,"b,strong")&&(i.bold=!0),No(r,"i,em")&&(i.italic=!0),No(r,"u")&&(i.underline=!0),No(r,"s,strike")&&(i.through=!0),No(r,"sub")&&(i.sub=!0),No(r,"sup")&&(i.sup=!0),No(r,"code")&&(i.code=!0),i}};function gi(e){return function(t,n,o){var i="h"+e;return r.jsx(i,null,n)}}var yi={type:"header1",renderElem:gi(1)},mi={type:"header2",renderElem:gi(2)},bi={type:"header3",renderElem:gi(3)},Ei={type:"header4",renderElem:gi(4)},wi={type:"header5",renderElem:gi(5)},Si=pt.PROPER,Di="toString",Ci=RegExp.prototype,Ai=Ci.toString,xi=P(wn),Oi=E((function(){return"/a/b"!=Ai.call({source:"a",flags:"b"})})),Ti=Si&&Ai.name!=Di;(Oi||Ti)&&ht(RegExp.prototype,Di,(function(){var e=ze(this),t=En(e.source),n=e.flags;return"/"+t+"/"+En(void 0===n&&q(Ci,e)&&!("flags"in Ci)?xi(e):n)}),{unsafe:!0});var Ni,ki=b.TypeError,Ii=function(e){if(Lr(e))throw ki("The method doesn't accept regular expressions");return e},Bi=Oe("match"),Pi=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Bi]=!1,"/./"[e](t)}catch(e){}}return!1},Fi=je.f,_i=P("".startsWith),Ri=P("".slice),ji=Math.min,Li=Pi("startsWith");function Mi(e){var t=wo(o.Editor.nodes(e,{match:function(e){return n.DomEditor.getNodeType(e).startsWith("header")},universal:!0}),1),r=t[0];if(null==r)return"paragraph";var i=wo(r,1)[0];return n.DomEditor.getNodeType(i)}function zi(e){return null==e.selection||!wo(o.Editor.nodes(e,{match:function(e){var t=n.DomEditor.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function Hi(e,t){t&&o.Transforms.setNodes(e,{type:t})}Vt({target:"String",proto:!0,forced:!(!Li&&(Ni=Fi(String.prototype,"startsWith"),Ni&&!Ni.writable)||Li)},{startsWith:function(e){var t=En(H(this));Ii(e);var n=St(ji(arguments.length>1?arguments[1]:void 0,t.length)),r=En(e);return _i?_i(t,r,n):Ri(t,n,n+r.length)===r}});var Ui=function(){function e(){this.title=n.t("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:n.t("header.text")}],r=this.getValue(e).toString();return t.forEach((function(e){e.value===r?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return Mi(e)},e.prototype.isDisabled=function(e){return zi(e)},e.prototype.exec=function(e,t){Hi(e,t.toString())},e}(),$i=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return Mi(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return zi(e)},e.prototype.exec=function(e,t){var n=this.type;Hi(e,t===n?"paragraph":n)},e}(),Vi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return go(t,e),t}($i),Gi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return go(t,e),t}($i),Wi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return go(t,e),t}($i),qi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return go(t,e),t}($i),Ki=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return go(t,e),t}($i),Yi={key:"headerSelect",factory:function(){return new Ui}},Xi={key:"header1",factory:function(){return new Vi}},Zi={key:"header2",factory:function(){return new Gi}},Ji={key:"header3",factory:function(){return new Wi}},Qi={key:"header4",factory:function(){return new qi}},ea={key:"header5",factory:function(){return new Ki}};function ta(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function na(e){return function(t,n,r){var i=l.default(t);return 0===(n=n.filter((function(e){return!!o.Text.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:i.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var ra={renderElems:[yi,mi,bi,Ei,wi],elemsToHtml:[{type:"header1",elemToHtml:ta(1)},{type:"header2",elemToHtml:ta(2)},{type:"header3",elemToHtml:ta(3)},{type:"header4",elemToHtml:ta(4)},{type:"header5",elemToHtml:ta(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:na(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:na(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:na(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:na(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:na(5)}],menus:[Yi,Xi,Zi,Ji,Qi,ea],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var r=e;return r.insertBreak=function(){var i=wo(o.Editor.nodes(r,{match:function(e){return n.DomEditor.getNodeType(e).startsWith("header")},universal:!0}),1)[0];i&&n.DomEditor.isSelectionAtLineEnd(e,i[1])?o.Transforms.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},r}},oa=Object.assign,ia=Object.defineProperty,aa=P([].concat),ua=!oa||E((function(){if(w&&1!==oa({b:1},oa(ia({},"a",{enumerable:!0,get:function(){ia(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!=oa({},e)[n]||xn(oa({},t)).join("")!=r}))?function(e,t){for(var n=ge(e),r=arguments.length,o=1,i=Bt.f,a=O.f;r>o;)for(var u,s=M(arguments[o++]),l=i?aa(xn(s),i(s)):xn(s),c=l.length,f=0;c>f;)u=l[f++],w&&!D(a,s,u)||(n[u]=s[u]);return n}:oa;function sa(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}Vt({target:"Object",stat:!0,forced:Object.assign!==ua},{assign:ua});var la={selector:"font",preParseHtml:function(e){var t=l.default(e);if("font"!==po(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},ca=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=o.Editor.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||!!wo(o.Editor.nodes(e,{match:function(t){return"pre"===n.DomEditor.getNodeType(t)||!!o.Editor.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var r=l.default('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var i=l.default(r).attr("data-value");"0"===i?o.Editor.removeMark(e,t):o.Editor.addMark(e,t,i)}})),this.$content=r}var i=this.$content;if(null==i)return document.createElement("ul");i.empty();var a=this.getValue(e),u=e.getMenuConfig(t).colors;(void 0===u?[]:u).forEach((function(e){var t=l.default('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=l.default('<li data-value="'+e+'"></li>');a===e&&n.addClass("active"),n.append(t),i.append(n)}));var s="";"color"===t&&(s=n.t("color.default")),"bgColor"===t&&(s=n.t("color.clear"));var c=l.default('\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 '+s+"\n </li>\n ");return i.prepend(c),i[0]},e}(),fa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("color.color"),t.iconSvg=Yo,t.mark="color",t}return go(t,e),t}(ca),da=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("color.bgColor"),t.iconSvg=Xo,t.mark="bgColor",t}return go(t,e),t}(ca),pa=["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)"],ha={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&sa(i,{color:r}),o&&sa(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!o.Text.isText(e))return t;var n,r=e,i=r.color,a=r.bgColor;return i||a?((co(t)||"span"!==po(n=l.default(t)))&&(n=l.default("<span>"+t+"</span>")),i&&n.css("color",i),a&&n.css("background-color",a),fo(n)):t},preParseHtml:[la],parseStyleHtml:function(e,t,n){var r=l.default(e);if(!o.Text.isText(t))return t;var i=t,a=ho(r,"color");a&&(i.color=a);var u=ho(r,"background-color");return u||(u=ho(r,"background")),u&&(i.bgColor=u),i},menus:[{key:"color",factory:function(){return new fa},config:{colors:pa}},{key:"bgColor",factory:function(){return new da},config:{colors:pa}}]},va=function(e){if("string"!=typeof e)return!1;var t=e.match(ga);if(!t)return!1;var n=t[1];return!(!n||!ya.test(n)&&!ma.test(n))},ga=/^(?:\w+:)?\/\/(\S+)$/,ya=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,ma=/^[^\s\.]+\.\S{2,}$/,ba=At.includes;function Ea(e){return void 0===e&&(e="r"),e+"-"+a.nanoid()}function wa(e){return e.replace(/</g,"<").replace(/>/g,">")}function Sa(e,t,n,r){return mo(this,void 0,void 0,(function(){var o,i;return bo(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 Da(e,t,n){return mo(this,void 0,void 0,(function(){var r;return bo(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 Ca(e){return null==e.selection||!!n.DomEditor.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function Aa(e,t){return{type:"link",url:wa(e),children:t?[{text:t}]:[]}}function xa(e,t,n){return mo(this,void 0,void 0,(function(){var r,i,a;return bo(this,(function(u){switch(u.label){case 0:return n?(t||(t=n),e.restoreSelection(),Ca(e)?[2]:[4,Sa("insertLink",e,t,n)]):[2];case 1:return u.sent()?[4,Da("insertLink",e,n)]:[2];case 2:return r=u.sent(),null==(i=e.selection)||(o.Range.isCollapsed(i)?(e.insertText(" "),a=Aa(r,t),o.Transforms.insertNodes(e,a),e.insertFragment([{text:" "}])):o.Editor.string(e,i)!==t?(e.deleteFragment(),a=Aa(r,t),o.Transforms.insertNodes(e,a)):(a=Aa(r),o.Transforms.wrapNodes(e,a,{split:!0}),o.Transforms.collapse(e,{edge:"end"}))),[2]}}))}))}Vt({target:"Array",proto:!0},{includes:function(e){return ba(this,e,arguments.length>1?arguments[1]:void 0)}}),Pr("includes");var Oa={type:"link",renderElem:function(e,t,n){var o=e,i=o.url,a=o.target,u=void 0===a?"_blank":a;return r.jsx("a",{href:i,target:u},t)}},Ta={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>"}},Na={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=l.default(e);return 0===(t=t.filter((function(e){return!!o.Text.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 ka(){return Ea("w-e-insert-link")}var Ia=function(){function e(){this.title=n.t("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=ka(),this.urlInputId=ka(),this.buttonId=ka()}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 Ca(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,r=this,i=r.textInputId,a=r.urlInputId,u=r.buttonId,s=wo(n.genModalInputElems(n.t("link.text"),i),2),c=s[0],f=s[1],d=l.default(f),p=wo(n.genModalInputElems(n.t("link.url"),a),2),h=p[0],v=p[1],g=l.default(v),y=wo(n.genModalButtonElems(u,n.t("common.ok")),1)[0];if(null==this.$content){var m=l.default("<div></div>");m.on("click","#"+u,(function(t){t.preventDefault();var n=m.find("#"+i).val(),r=m.find("#"+a).val();xa(e,n,r),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;if(b.empty(),b.append(c),b.append(h),b.append(y),null==t||o.Range.isCollapsed(t))d.val("");else{var E=o.Editor.string(e,t);d.val(E)}return g.val(""),setTimeout((function(){d.focus()})),b[0]},e}();function Ba(){return Ea("w-e-update-link")}var Pa=function(){function e(){this.title=n.t("link.edit"),this.iconSvg=qo,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=Ba(),this.buttonId=Ba()}return e.prototype.getSelectedLinkElem=function(e){var t=n.DomEditor.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 n.DomEditor.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,r=this.buttonId,i=wo(n.genModalInputElems(n.t("link.url"),t),2),a=i[0],u=i[1],s=l.default(u),c=wo(n.genModalButtonElems(r,n.t("common.ok")),1)[0];if(null==this.$content){var f=l.default("<div></div>");f.on("click","button",(function(r){r.preventDefault(),e.restoreSelection();var i=n.DomEditor.getSelectedNodeByType(e,"link"),a=i?o.Node.string(i):"",u=f.find("#"+t).val();!function(e,t,r){mo(this,void 0,void 0,(function(){var i,a;return bo(this,(function(u){switch(u.label){case 0:return r?[4,Sa("editLink",e,t,r)]:[2];case 1:return u.sent()?[4,Da("editLink",e,r)]:[2];case 2:return i=u.sent(),a={url:wa(i)},o.Transforms.setNodes(e,a,{match:function(e){return n.DomEditor.checkNodeType(e,"link")}}),[2]}}))}))}(e,a,u),e.hidePanelOrModal()})),this.$content=f}var d=this.$content;d.empty(),d.append(a),d.append(c);var p=this.getValue(e);return s.val(p),setTimeout((function(){s.focus()})),d[0]},e}(),Fa=function(){function e(){this.title=n.t("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==n.DomEditor.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||o.Transforms.unwrapNodes(e,{match:function(e){return n.DomEditor.checkNodeType(e,"link")}})},e}(),_a=function(){function e(){this.title=n.t("link.view"),this.iconSvg=Ko,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=n.DomEditor.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}(),Ra={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},ja={renderElems:[Oa],elemsToHtml:[Ta],parseElemsHtml:[Na],menus:[{key:"insertLink",factory:function(){return new Ia},config:Ra},{key:"editLink",factory:function(){return new Pa},config:Ra},{key:"unLink",factory:function(){return new Fa}},{key:"viewLink",factory:function(){return new _a}}],editorPlugin:function(e){var t=e.isInline,r=e.insertData,i=e.normalizeNode;e.insertNode,e.insertText;var a=e;return a.isInline=function(e){return"link"===e.type||t(e)},a.insertData=function(e){var t=e.getData("text/plain");if(va(t)){if(!Ca(a)){var n=a.selection;if(null!=n){var i=o.Editor.string(a,n);xa(a,i,t)}}}else r(e)},a.normalizeNode=function(e){var t=wo(e,2),r=t[0],u=t[1];return"link"!==n.DomEditor.getNodeType(r)?i([r,u]):""===o.Node.string(r)?o.Transforms.removeNodes(a,{at:u}):i([r,u])},a}},La=P(1..valueOf),Ma=b.RangeError,za=b.RangeError,Ha=b.String,Ua=Math.floor,$a=P((function(e){var t=En(H(this)),n="",r=yt(e);if(r<0||r==1/0)throw Ma("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),Va=P("".slice),Ga=P(1..toFixed),Wa=function(e,t,n){return 0===t?n:t%2==1?Wa(e,t-1,n*e):Wa(e*e,t/2,n)},qa=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=Ua(o/1e7)},Ka=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=Ua(r/t),r=r%t*1e7},Ya=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=Ha(e[t]);n=""===n?r:n+$a("0",7-r.length)+r}return n};function Xa(e,t){return"w-e-image-container-"+n.DomEditor.findKey(e,t).id}function Za(e,t,i,a){var u=l.default("body"),s=Xa(e,t),f=a.width,d=a.height,p=0,h=0,v=0,g=!1,y=null;function m(t){y=function(){var e=l.default("#"+s);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),p=t;var r=y.find("img");if(0===r.length)throw new Error("Cannot find image elem");h=r.width(),v=r.height(),u.on("mousemove",b),u.on("mouseup",E);var o=n.DomEditor.getHoverbar(e);o&&o.hideAndClean()}var b=c.default((function(e){e.preventDefault();var t=e.clientX,n=h+(g?p-t:t-p),r=v*(n/h);null!=y&&(n<=15||r<=15||(y.css("width",n+"px"),y.css("height",r+"px")))}),100);function E(r){if(u.off("mousemove",b),null!=y){var i=y.width().toFixed(2),a=y.height().toFixed(2),s={style:yo(yo({},t.style),{width:i+"px",height:a+"px"})};o.Transforms.setNodes(e,s,{at:n.DomEditor.findPath(e,t)}),u.off("mouseup",E)}}var w={};return f&&(w.width=f),d&&(w.height=d),r.jsx("div",{id:s,style:w,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=l.default(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(g=!0),m(e.clientX))}}},i,r.jsx("div",{className:"w-e-image-dragger left-top"}),r.jsx("div",{className:"w-e-image-dragger right-top"}),r.jsx("div",{className:"w-e-image-dragger left-bottom"}),r.jsx("div",{className:"w-e-image-dragger right-bottom"}))}Vt({target:"Number",proto:!0,forced:E((function(){return"0.000"!==Ga(8e-5,3)||"1"!==Ga(.9,0)||"1.25"!==Ga(1.255,2)||"1000000000000000128"!==Ga(0xde0b6b3a7640080,0)}))||!E((function(){Ga({})}))},{toFixed:function(e){var t,n,r,o,i=La(this),a=yt(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw za("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return Ha(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*Wa(2,69,1))-69)<0?i*Wa(2,-t,1):i/Wa(2,t,1),n*=4503599627370496,(t=52-t)>0){for(qa(u,0,n),r=a;r>=7;)qa(u,1e7,0),r-=7;for(qa(u,Wa(10,r,1),0),r=t-1;r>=23;)Ka(u,1<<23),r-=23;Ka(u,1<<r),qa(u,1,1),Ka(u,2),l=Ya(u)}else qa(u,0,n),qa(u,1<<-t,0),l=Ya(u)+$a("0",a);return a>0?s+((o=l.length)<=a?"0."+$a("0",a-o)+l:Va(l,0,o-a)+"."+Va(l,o-a)):s+l}});var Ja={type:"image",renderElem:function(e,t,o){var i=e,a=i.src,u=i.alt,s=void 0===u?"":u,l=i.href,c=void 0===l?"":l,f=i.style,d=void 0===f?{}:f,p=d.width,h=void 0===p?"":p,v=d.height,g=void 0===v?"":v,y=n.DomEditor.isNodeSelected(o,e),m={};h&&(m.width="100%"),g&&(m.height="100%");var b=r.jsx("img",{style:m,src:a,alt:s,"data-href":c}),E=o.isDisabled();return y&&!E?Za(o,e,b,{width:h,height:g}):function(e,t,n,o){var i=o.width,a=o.height,u={};i&&(u.width=i),a&&(u.height=a);var s=Xa(e,t);return r.jsx("div",{id:s,style:u,className:"w-e-image-container"},n)}(o,e,b,{width:h,height:g})}},Qa={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.width,l=void 0===s?"":s,c=n.height,f=void 0===c?"":c,d=n.style,p=void 0===d?{}:d,h=p.width,v=void 0===h?"":h,g=p.height,y=void 0===g?"":g,m="";return v&&(m+="width: "+v+";"),y&&(m+="height: "+y+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" width="'+l+'" height="'+f+'" style="'+m+'"/>'}},eu={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=l.default(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:ho(r,"width"),height:ho(r,"height")},width:r.attr("width")||"",height:r.attr("height")||"",children:[{text:""}]}}};function tu(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),mo(this,void 0,void 0,(function(){var i,a;return bo(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 nu(e,t,n){return mo(this,void 0,void 0,(function(){var r;return bo(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 ru(e,t,r,i){return void 0===r&&(r=""),void 0===i&&(i=""),mo(this,void 0,void 0,(function(){var a,u,s;return bo(this,(function(l){switch(l.label){case 0:return[4,tu("insertImage",e,t,r,i)];case 1:return l.sent()?[4,nu("insertImage",e,t)]:[2];case 2:return a=l.sent(),u={type:"image",src:wa(a),href:i,alt:r,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),n.DomEditor.getSelectedNodeByType(e,"image")&&e.move(1),iu(e)||(o.Transforms.insertNodes(e,u),(s=e.getMenuConfig("insertImage").onInsertedImage)&&s(u)),[2]}}))}))}function ou(e,t,r,i,a){return void 0===r&&(r=""),void 0===i&&(i=""),void 0===a&&(a={}),mo(this,void 0,void 0,(function(){var u,s,l,c,f,d;return bo(this,(function(p){switch(p.label){case 0:return[4,tu("editImage",e,t,r,i)];case 1:return p.sent()?[4,nu("editImage",e,t)]:[2];case 2:return u=p.sent(),null==(s=n.DomEditor.getSelectedNodeByType(e,"image"))||(l=s.style,c={src:u,alt:r,href:i,style:yo(yo({},void 0===l?{}:l),a)},o.Transforms.setNodes(e,c,{match:function(e){return n.DomEditor.checkNodeType(e,"image")}}),f=n.DomEditor.getSelectedNodeByType(e,"image"),(d=e.getMenuConfig("editImage").onUpdatedImage)&&d(f)),[2]}}))}))}function iu(e){var t=e.selection;return null==t||!o.Range.isCollapsed(t)||!!wo(o.Editor.nodes(e,{match:function(t){var r=n.DomEditor.getNodeType(t);return"code"===r||"pre"===r||"link"===r||"list-item"===r||!!r.startsWith("header")||"blockquote"===r||!!o.Editor.isVoid(e,t)},universal:!0}),1)[0]}function au(){return Ea("w-e-insert-image")}var uu=function(){function e(){this.title=n.t("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=au(),this.altInputId=au(),this.hrefInputId=au(),this.buttonId=au()}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 iu(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=wo(n.genModalInputElems(n.t("image.src"),o),2),c=s[0],f=s[1],d=l.default(f),p=wo(n.genModalInputElems(n.t("image.desc"),i),2),h=p[0],v=p[1],g=l.default(v),y=wo(n.genModalInputElems(n.t("image.link"),a),2),m=y[0],b=y[1],E=l.default(b),w=wo(n.genModalButtonElems(u,n.t("common.ok")),1)[0];if(null==this.$content){var S=l.default("<div></div>");S.on("click","#"+u,(function(n){n.preventDefault();var r=S.find("#"+o).val().trim(),u=S.find("#"+i).val().trim(),s=S.find("#"+a).val().trim();t.insertImage(e,r,u,s),e.hidePanelOrModal()})),this.$content=S}var D=this.$content;return D.empty(),D.append(c),D.append(h),D.append(m),D.append(w),d.val(""),g.val(""),E.val(""),setTimeout((function(){d.focus()})),D[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||ru(e,t,n,r))},e}(),su=function(){function e(){this.title=n.t("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==n.DomEditor.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||o.Transforms.removeNodes(e,{match:function(e){return n.DomEditor.checkNodeType(e,"image")}})},e}();function lu(){return Ea("w-e-edit-image")}var cu=function(){function e(){this.title=n.t("image.edit"),this.iconSvg=qo,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=lu(),this.altInputId=lu(),this.hrefInputId=lu(),this.buttonId=lu()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return n.DomEditor.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||!o.Range.isCollapsed(t)||null==n.DomEditor.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(e);if(null==s)throw new Error("Not found selected image node");var c=wo(n.genModalInputElems(n.t("image.src"),o),2),f=c[0],d=c[1],p=l.default(d),h=wo(n.genModalInputElems(n.t("image.desc"),i),2),v=h[0],g=h[1],y=l.default(g),m=wo(n.genModalInputElems(n.t("image.link"),a),2),b=m[0],E=m[1],w=l.default(E),S=wo(n.genModalButtonElems(u,n.t("common.ok")),1)[0];if(null==this.$content){var D=l.default("<div></div>");D.on("click","#"+u,(function(n){n.preventDefault();var r=D.find("#"+o).val(),u=D.find("#"+i).val(),s=D.find("#"+a).val();t.updateImage(e,r,u,s),e.hidePanelOrModal()})),this.$content=D}var C=this.$content;C.empty(),C.append(f),C.append(v),C.append(b),C.append(S);var A=s,x=A.src,O=A.alt,T=void 0===O?"":O,N=A.href,k=void 0===N?"":N;return p.val(x),y.val(T),w.val(k),setTimeout((function(){p.focus()})),C[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)||ou(e,t,n,r,o))},e}(),fu=function(){function e(){this.title=n.t("image.viewLink"),this.iconSvg=Ko,this.tag="button"}return e.prototype.getValue=function(e){var t=n.DomEditor.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}(),du=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 n.DomEditor.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 r=this.getSelectedNode(e);if(null!=r){var i=n.DomEditor.getHoverbar(e);i&&i.hideAndClean();var a=r.style,u={style:yo(yo({},void 0===a?{}:a),{width:this.value,height:""})};o.Transforms.setNodes(e,u,{match:function(e){return n.DomEditor.checkNodeType(e,"image")}})}}},e}(),pu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return go(t,e),t}(du),hu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return go(t,e),t}(du),vu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return go(t,e),t}(du);function gu(){return Ea("w-e-insert-image")}var yu=function(){function e(){this.title=n.t("image.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=gu(),this.heightInputId=gu(),this.buttonId=gu()}return e.prototype.getSelectedImageNode=function(e){return n.DomEditor.getSelectedNodeByType(e,"image")},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.getSelectedImageNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,r=t.widthInputId,i=t.heightInputId,a=t.buttonId,u=wo(n.genModalInputElems(n.t("image.width"),r,"auto"),2),s=u[0],c=u[1],f=l.default(c),d=wo(n.genModalInputElems(n.t("image.height"),i,"auto"),2),p=d[0],h=d[1],v=l.default(h),g=wo(n.genModalButtonElems(a,n.t("image.ok")),1)[0];if(null==this.$content){var y=l.default("<div></div>");y.on("click","#"+a,(function(t){t.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+i).val().trim(),s=function(e){return/^\d+(\.\d+)?%$/.test(e)},l=function(e){return/^\d+(\.\d+)?$/.test(e)},c="auto",f="auto";s(a)?c=a:l(a)&&(c=parseInt(a)+"px"),s(u)?f=u:l(u)&&(f=parseInt(u)+"px");var d=b.style,p=void 0===d?{}:d;e.restoreSelection();var h=yo(yo({},p),{style:{width:c,height:f}});o.Transforms.setNodes(e,h,{match:function(e){return n.DomEditor.checkNodeType(e,"image")}}),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;m.empty(),m.append(s),m.append(p),m.append(g);var b=this.getSelectedImageNode(e);if(null==b)return m[0];var E=b.width,w=void 0===E?"auto":E,S=b.height,D=void 0===S?"auto":S;return f.val(w),v.val(D),setTimeout((function(){f.focus()})),m[0]},e}(),mu={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},bu={renderElems:[Ja],elemsToHtml:[Qa],parseElemsHtml:[eu],menus:[{key:"insertImage",factory:function(){return new uu},config:mu},{key:"deleteImage",factory:function(){return new su}},{key:"editImage",factory:function(){return new cu},config:mu},{key:"viewImageLink",factory:function(){return new fu}},{key:"imageWidth30",factory:function(){return new pu}},{key:"imageWidth50",factory:function(){return new hu}},{key:"imageWidth100",factory:function(){return new vu}},{key:"editorImageSizeMenu",factory:function(){return new yu}}],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}},Eu={type:"todo",renderElem:function(e,t,i){var a=!1;i.isDisabled()&&(a=!0);var u=e.checked,s=r.jsx("div",{style:{margin:"5px 0"}},r.jsx("span",{contentEditable:!1,style:{marginRight:"0.5em"}},r.jsx("input",{type:"checkbox",checked:u,disabled:a,on:{change:function(t){var r=n.DomEditor.findPath(i,e),a={checked:t.target.checked};o.Transforms.setNodes(i,a,{at:r})}}})),r.jsx("span",null,t));return s}},wu=function(){function e(){this.title=n.t("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!!n.DomEditor.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!n.DomEditor.getSelectedElems(e).some((function(t){if(o.Editor.isVoid(e,t)&&o.Editor.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);o.Transforms.setNodes(e,{type:n?"paragraph":"todo"})},e}(),Su={renderElems:[Eu],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=l.default(e).find("li"),n=l.default('<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:[{selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=l.default(e);0===(t=t.filter((function(e){return!!o.Text.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(i=!0),{type:"todo",checked:i,children:t}}}],menus:[{key:"todo",factory:function(){return new wu}}],editorPlugin:function(e){var t=e.deleteBackward,r=e;return r.deleteBackward=function(r){var i=e.selection;if(i&&o.Range.isCollapsed(i)){var a=n.DomEditor.getSelectedNodeByType(e,"todo");if(a&&0===o.Node.string(a).length)return void o.Transforms.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},r}},Du={type:"blockquote",renderElem:function(e,t,n){return r.jsx("blockquote",null,t)}},Cu={type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}},Au={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=l.default(e);return 0===(t=t.filter((function(e){return!!o.Text.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},xu=function(){function e(){this.title=n.t("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!!n.DomEditor.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!wo(o.Editor.nodes(e,{match:function(e){var t=n.DomEditor.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";o.Transforms.setNodes(e,{type:n},{mode:"highest"})}},e}(),Ou={key:"blockquote",factory:function(){return new xu}},Tu=P([].slice),Nu=vn("slice"),ku=Oe("species"),Iu=b.Array,Bu=Math.max;Vt({target:"Array",proto:!0,forced:!Nu},{slice:function(e,t){var n,r,o,i=U(this),a=Dt(i),u=Et(e,a),s=Et(void 0===t?a:t,a);if(Wt(i)&&(n=i.constructor,(un(n)&&(n===Iu||Wt(n.prototype))||V(n)&&null===(n=n[ku]))&&(n=void 0),n===Iu||void 0===n))return Tu(i,u,s);for(r=new(void 0===n?Iu:n)(Bu(s-u,0)),o=0;u<s;u++,o++)u in i&&Ur(r,o,i[u]);return r.length=o,r}});var Pu={renderElems:[Du],elemsToHtml:[Cu],parseElemsHtml:[Au],menus:[Ou],editorPlugin:function(e){var t=e.insertBreak,r=e.insertText,i=e;return i.insertBreak=function(){var a=i.selection;if(null==a)return t();var u=wo(o.Editor.nodes(e,{match:function(e){return n.DomEditor.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!u)return t();var s=u[0],l=n.DomEditor.findPath(e,s),c=o.Editor.end(e,l);if(o.Point.equals(c,a.focus)){var f=o.Node.string(s);if(f&&"\n"===f.slice(-1))return e.deleteBackward("character"),void o.Transforms.insertNodes(i,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}r("\n")},i}},Fu=function(){function e(){this.title=n.t("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||!!wo(o.Editor.nodes(e,{match:function(t){return"pre"===n.DomEditor.getNodeType(t)||!!o.Editor.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=l.default('<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=l.default(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=l.default("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),_u={menus:[{key:"emotion",factory:function(){return new Fu},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Ru={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},ju={selector:"font",preParseHtml:function(e){var t=l.default(e);if("font"!==po(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",Ru[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},Lu=P("".indexOf);Vt({target:"String",proto:!0,forced:!Pi("includes")},{includes:function(e){return!!~Lu(En(H(this)),En(Ii(e)),arguments.length>1?arguments[1]:void 0)}});var Mu,zu,Hu=function(e){return e&&e.Math==Math&&e},Uu=Hu("object"==typeof globalThis&&globalThis)||Hu("object"==typeof window&&window)||Hu("object"==typeof self&&self)||Hu("object"==typeof p&&p)||function(){return this}()||Function("return this")(),$u=Function.prototype,Vu=$u.apply,Gu=$u.bind,Wu=$u.call,qu="object"==typeof Reflect&&Reflect.apply||(Gu?Wu.bind(Vu):function(){return Wu.apply(Vu,arguments)}),Ku=Function.prototype,Yu=Ku.bind,Xu=Ku.call,Zu=Yu&&Yu.bind(Xu),Ju=Yu?function(e){return e&&Zu(Xu,e)}:function(e){return e&&function(){return Xu.apply(e,arguments)}},Qu=function(e){return"function"==typeof e},es=function(e){try{return!!e()}catch(e){return!0}},ts=!es((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ns=Function.prototype.call,rs=ns.bind?ns.bind(ns):function(){return ns.apply(ns,arguments)},os={}.propertyIsEnumerable,is=Object.getOwnPropertyDescriptor,as=is&&!os.call({1:2},1)?function(e){var t=is(this,e);return!!t&&t.enumerable}:os,us={f:as},ss=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ls=Ju({}.toString),cs=Ju("".slice),fs=function(e){return cs(ls(e),8,-1)},ds=Uu.Object,ps=Ju("".split),hs=es((function(){return!ds("z").propertyIsEnumerable(0)}))?function(e){return"String"==fs(e)?ps(e,""):ds(e)}:ds,vs=Uu.TypeError,gs=function(e){if(null==e)throw vs("Can't call method on "+e);return e},ys=function(e){return hs(gs(e))},ms=function(e){return"object"==typeof e?null!==e:Qu(e)},bs={},Es=function(e){return Qu(e)?e:void 0},ws=function(e,t){return arguments.length<2?Es(bs[e])||Es(Uu[e]):bs[e]&&bs[e][t]||Uu[e]&&Uu[e][t]},Ss=Ju({}.isPrototypeOf),Ds=ws("navigator","userAgent")||"",Cs=Uu.process,As=Uu.Deno,xs=Cs&&Cs.versions||As&&As.version,Os=xs&&xs.v8;Os&&(zu=(Mu=Os.split("."))[0]>0&&Mu[0]<4?1:+(Mu[0]+Mu[1])),!zu&&Ds&&(!(Mu=Ds.match(/Edge\/(\d+)/))||Mu[1]>=74)&&(Mu=Ds.match(/Chrome\/(\d+)/))&&(zu=+Mu[1]);var Ts=zu,Ns=!!Object.getOwnPropertySymbols&&!es((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ts&&Ts<41})),ks=Ns&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Is=Uu.Object,Bs=ks?function(e){return"symbol"==typeof e}:function(e){var t=ws("Symbol");return Qu(t)&&Ss(t.prototype,Is(e))},Ps=Uu.String,Fs=Uu.TypeError,_s=function(e){if(Qu(e))return e;throw Fs(function(e){try{return Ps(e)}catch(e){return"Object"}}(e)+" is not a function")},Rs=Uu.TypeError,js=Object.defineProperty,Ls="__core-js_shared__",Ms=Uu[Ls]||function(e,t){try{js(Uu,e,{value:t,configurable:!0,writable:!0})}catch(n){Uu[e]=t}return t}(Ls,{}),zs=v((function(e){(e.exports=function(e,t){return Ms[e]||(Ms[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Hs=Uu.Object,Us=function(e){return Hs(gs(e))},$s=Ju({}.hasOwnProperty),Vs=Object.hasOwn||function(e,t){return $s(Us(e),t)},Gs=0,Ws=Math.random(),qs=Ju(1..toString),Ks=function(e){return"Symbol("+(void 0===e?"":e)+")_"+qs(++Gs+Ws,36)},Ys=zs("wks"),Xs=Uu.Symbol,Zs=Xs&&Xs.for,Js=ks?Xs:Xs&&Xs.withoutSetter||Ks,Qs=function(e){if(!Vs(Ys,e)||!Ns&&"string"!=typeof Ys[e]){var t="Symbol."+e;Ns&&Vs(Xs,e)?Ys[e]=Xs[e]:Ys[e]=ks&&Zs?Zs(t):Js(t)}return Ys[e]},el=Uu.TypeError,tl=Qs("toPrimitive"),nl=function(e,t){if(!ms(e)||Bs(e))return e;var n,r,o=null==(n=e[tl])?void 0:_s(n);if(o){if(void 0===t&&(t="default"),r=rs(o,e,t),!ms(r)||Bs(r))return r;throw el("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Qu(n=e.toString)&&!ms(r=rs(n,e)))return r;if(Qu(n=e.valueOf)&&!ms(r=rs(n,e)))return r;if("string"!==t&&Qu(n=e.toString)&&!ms(r=rs(n,e)))return r;throw Rs("Can't convert object to primitive value")}(e,t)},rl=function(e){var t=nl(e,"string");return Bs(t)?t:t+""},ol=Uu.document,il=ms(ol)&&ms(ol.createElement),al=function(e){return il?ol.createElement(e):{}},ul=!ts&&!es((function(){return 7!=Object.defineProperty(al("div"),"a",{get:function(){return 7}}).a})),sl=Object.getOwnPropertyDescriptor,ll={f:ts?sl:function(e,t){if(e=ys(e),t=rl(t),ul)try{return sl(e,t)}catch(e){}if(Vs(e,t))return ss(!rs(us.f,e,t),e[t])}},cl=/#|\.prototype\./,fl=function(e,t){var n=pl[dl(e)];return n==vl||n!=hl&&(Qu(t)?es(t):!!t)},dl=fl.normalize=function(e){return String(e).replace(cl,".").toLowerCase()},pl=fl.data={},hl=fl.NATIVE="N",vl=fl.POLYFILL="P",gl=fl,yl=Ju(Ju.bind),ml=function(e,t){return _s(e),void 0===t?e:yl?yl(e,t):function(){return e.apply(t,arguments)}},bl=Uu.String,El=Uu.TypeError,wl=function(e){if(ms(e))return e;throw El(bl(e)+" is not an object")},Sl=Uu.TypeError,Dl=Object.defineProperty,Cl={f:ts?Dl:function(e,t,n){if(wl(e),t=rl(t),wl(n),ul)try{return Dl(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Sl("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Al=ts?function(e,t,n){return Cl.f(e,t,ss(1,n))}:function(e,t,n){return e[t]=n,e},xl=ll.f,Ol=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 qu(e,this,arguments)};return t.prototype=e.prototype,t},Tl=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?Uu:d?Uu[c]:(Uu[c]||{}).prototype,v=f?bs:bs[c]||Al(bs,c,{})[c],g=v.prototype;for(o in t)n=!gl(f?o:c+(d?".":"#")+o,e.forced)&&h&&Vs(h,o),a=v[o],n&&(u=e.noTargetGet?(l=xl(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?ml(i,Uu):e.wrap&&n?Ol(i):p&&Qu(i)?Ju(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Al(s,"sham",!0),Al(v,o,s),p&&(Vs(bs,r=c+"Prototype")||Al(bs,r,{}),Al(bs[r],o,i),e.real&&g&&!g[o]&&Al(g,o,i)))},Nl=Array.isArray||function(e){return"Array"==fs(e)},kl=Math.ceil,Il=Math.floor,Bl=function(e){var t=+e;return t!=t||0===t?0:(t>0?Il:kl)(t)},Pl=Math.min,Fl=function(e){return(t=e.length)>0?Pl(Bl(t),9007199254740991):0;var t},_l=function(e,t,n){var r=rl(t);r in e?Cl.f(e,r,ss(0,n)):e[r]=n},Rl={};Rl[Qs("toStringTag")]="z";var jl="[object z]"===String(Rl),Ll=Qs("toStringTag"),Ml=Uu.Object,zl="Arguments"==fs(function(){return arguments}()),Hl=jl?fs: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=Ml(e),Ll))?n:zl?fs(t):"Object"==(r=fs(t))&&Qu(t.callee)?"Arguments":r},Ul=Ju(Function.toString);Qu(Ms.inspectSource)||(Ms.inspectSource=function(e){return Ul(e)});var $l=Ms.inspectSource,Vl=function(){},Gl=[],Wl=ws("Reflect","construct"),ql=/^\s*(?:class|function)\b/,Kl=Ju(ql.exec),Yl=!ql.exec(Vl),Xl=function(e){if(!Qu(e))return!1;try{return Wl(Vl,Gl,e),!0}catch(e){return!1}},Zl=!Wl||es((function(){var e;return Xl(Xl.call)||!Xl(Object)||!Xl((function(){e=!0}))||e}))?function(e){if(!Qu(e))return!1;switch(Hl(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Yl||!!Kl(ql,$l(e))}:Xl,Jl=Qs("species"),Ql=Uu.Array,ec=function(e,t){return new(function(e){var t;return Nl(e)&&(t=e.constructor,(Zl(t)&&(t===Ql||Nl(t.prototype))||ms(t)&&null===(t=t[Jl]))&&(t=void 0)),void 0===t?Ql:t}(e))(0===t?0:t)},tc=Qs("species"),nc=Qs("isConcatSpreadable"),rc=9007199254740991,oc="Maximum allowed index exceeded",ic=Uu.TypeError,ac=Ts>=51||!es((function(){var e=[];return e[nc]=!1,e.concat()[0]!==e})),uc=function(e){return Ts>=51||!es((function(){var t=[];return(t.constructor={})[tc]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}("concat"),sc=function(e){if(!ms(e))return!1;var t=e[nc];return void 0!==t?!!t:Nl(e)};Tl({target:"Array",proto:!0,forced:!ac||!uc},{concat:function(e){var t,n,r,o,i,a=Us(this),u=ec(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(sc(i=-1===t?a:arguments[t])){if(s+(o=Fl(i))>rc)throw ic(oc);for(n=0;n<o;n++,s++)n in i&&_l(u,s,i[n])}else{if(s>=rc)throw ic(oc);_l(u,s++,i)}return u.length=s,u}});var lc,cc=Uu.String,fc=function(e){if("Symbol"===Hl(e))throw TypeError("Cannot convert a Symbol value to a string");return cc(e)},dc=Math.max,pc=Math.min,hc=function(e,t){var n=Bl(e);return n<0?dc(n+t,0):pc(n,t)},vc=function(e){return function(t,n,r){var o,i=ys(t),a=Fl(i),u=hc(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}},gc={includes:vc(!0),indexOf:vc(!1)},yc={},mc=gc.indexOf,bc=Ju([].push),Ec=function(e,t){var n,r=ys(e),o=0,i=[];for(n in r)!Vs(yc,n)&&Vs(r,n)&&bc(i,n);for(;t.length>o;)Vs(r,n=t[o++])&&(~mc(i,n)||bc(i,n));return i},wc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sc=Object.keys||function(e){return Ec(e,wc)},Dc=ts?Object.defineProperties:function(e,t){wl(e);for(var n,r=ys(t),o=Sc(t),i=o.length,a=0;i>a;)Cl.f(e,n=o[a++],r[n]);return e},Cc=ws("document","documentElement"),Ac=zs("keys"),xc=function(e){return Ac[e]||(Ac[e]=Ks(e))},Oc=xc("IE_PROTO"),Tc=function(){},Nc=function(e){return"<script>"+e+"<\/script>"},kc=function(e){e.write(Nc("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ic=function(){try{lc=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ic="undefined"!=typeof document?document.domain&&lc?kc(lc):((t=al("iframe")).style.display="none",Cc.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Nc("document.F=Object")),e.close(),e.F):kc(lc);for(var n=wc.length;n--;)delete Ic.prototype[wc[n]];return Ic()};yc[Oc]=!0;var Bc,Pc,Fc,_c=Object.create||function(e,t){var n;return null!==e?(Tc.prototype=wl(e),n=new Tc,Tc.prototype=null,n[Oc]=e):n=Ic(),void 0===t?n:Dc(n,t)},Rc=wc.concat("length","prototype"),jc={f:Object.getOwnPropertyNames||function(e){return Ec(e,Rc)}},Lc=Uu.Array,Mc=Math.max,zc=jc.f,Hc="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Uc=function(e){try{return zc(e)}catch(e){return function(e,t,n){for(var r=Fl(e),o=hc(t,r),i=hc(void 0===n?r:n,r),a=Lc(Mc(i-o,0)),u=0;o<i;o++,u++)_l(a,u,e[o]);return a.length=u,a}(Hc)}},$c={f:function(e){return Hc&&"Window"==fs(e)?Uc(e):zc(ys(e))}},Vc={f:Object.getOwnPropertySymbols},Gc=Ju([].slice),Wc=function(e,t,n,r){r&&r.enumerable?e[t]=n:Al(e,t,n)},qc={f:Qs},Kc=Cl.f,Yc=function(e){var t=bs.Symbol||(bs.Symbol={});Vs(t,e)||Kc(t,e,{value:qc.f(e)})},Xc=jl?{}.toString:function(){return"[object "+Hl(this)+"]"},Zc=Cl.f,Jc=Qs("toStringTag"),Qc=function(e,t,n,r){if(e){var o=n?e:e.prototype;Vs(o,Jc)||Zc(o,Jc,{configurable:!0,value:t}),r&&!jl&&Al(o,"toString",Xc)}},ef=Uu.WeakMap,tf=Qu(ef)&&/native code/.test($l(ef)),nf="Object already initialized",rf=Uu.TypeError,of=Uu.WeakMap;if(tf||Ms.state){var af=Ms.state||(Ms.state=new of),uf=Ju(af.get),sf=Ju(af.has),lf=Ju(af.set);Bc=function(e,t){if(sf(af,e))throw new rf(nf);return t.facade=e,lf(af,e,t),t},Pc=function(e){return uf(af,e)||{}},Fc=function(e){return sf(af,e)}}else{var cf=xc("state");yc[cf]=!0,Bc=function(e,t){if(Vs(e,cf))throw new rf(nf);return t.facade=e,Al(e,cf,t),t},Pc=function(e){return Vs(e,cf)?e[cf]:{}},Fc=function(e){return Vs(e,cf)}}var ff={set:Bc,get:Pc,has:Fc,enforce:function(e){return Fc(e)?Pc(e):Bc(e,{})},getterFor:function(e){return function(t){var n;if(!ms(t)||(n=Pc(t)).type!==e)throw rf("Incompatible receiver, "+e+" required");return n}}},df=Ju([].push),pf=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Us(s),v=hs(h),g=ml(l,c),y=Fl(v),m=0,b=f||ec,E=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)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:df(E,d)}else switch(e){case 4:return!1;case 7:df(E,d)}return i?-1:r||o?o:E}},hf=[pf(0),pf(1),pf(2),pf(3),pf(4),pf(5),pf(6),pf(7)][0],vf=xc("hidden"),gf="Symbol",yf=Qs("toPrimitive"),mf=ff.set,bf=ff.getterFor(gf),Ef=Object.prototype,wf=Uu.Symbol,Sf=wf&&wf.prototype,Df=Uu.TypeError,Cf=Uu.QObject,Af=ws("JSON","stringify"),xf=ll.f,Of=Cl.f,Tf=$c.f,Nf=us.f,kf=Ju([].push),If=zs("symbols"),Bf=zs("op-symbols"),Pf=zs("string-to-symbol-registry"),Ff=zs("symbol-to-string-registry"),_f=zs("wks"),Rf=!Cf||!Cf.prototype||!Cf.prototype.findChild,jf=ts&&es((function(){return 7!=_c(Of({},"a",{get:function(){return Of(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=xf(Ef,t);r&&delete Ef[t],Of(e,t,n),r&&e!==Ef&&Of(Ef,t,r)}:Of,Lf=function(e,t){var n=If[e]=_c(Sf);return mf(n,{type:gf,tag:e,description:t}),ts||(n.description=t),n},Mf=function(e,t,n){e===Ef&&Mf(Bf,t,n),wl(e);var r=rl(t);return wl(n),Vs(If,r)?(n.enumerable?(Vs(e,vf)&&e[vf][r]&&(e[vf][r]=!1),n=_c(n,{enumerable:ss(0,!1)})):(Vs(e,vf)||Of(e,vf,ss(1,{})),e[vf][r]=!0),jf(e,r,n)):Of(e,r,n)},zf=function(e,t){wl(e);var n=ys(t),r=Sc(n).concat(Vf(n));return hf(r,(function(t){ts&&!rs(Hf,n,t)||Mf(e,t,n[t])})),e},Hf=function(e){var t=rl(e),n=rs(Nf,this,t);return!(this===Ef&&Vs(If,t)&&!Vs(Bf,t))&&(!(n||!Vs(this,t)||!Vs(If,t)||Vs(this,vf)&&this[vf][t])||n)},Uf=function(e,t){var n=ys(e),r=rl(t);if(n!==Ef||!Vs(If,r)||Vs(Bf,r)){var o=xf(n,r);return!o||!Vs(If,r)||Vs(n,vf)&&n[vf][r]||(o.enumerable=!0),o}},$f=function(e){var t=Tf(ys(e)),n=[];return hf(t,(function(e){Vs(If,e)||Vs(yc,e)||kf(n,e)})),n},Vf=function(e){var t=e===Ef,n=Tf(t?Bf:ys(e)),r=[];return hf(n,(function(e){!Vs(If,e)||t&&!Vs(Ef,e)||kf(r,If[e])})),r};if(Ns||(wf=function(){if(Ss(Sf,this))throw Df("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?fc(arguments[0]):void 0,t=Ks(e),n=function(e){this===Ef&&rs(n,Bf,e),Vs(this,vf)&&Vs(this[vf],t)&&(this[vf][t]=!1),jf(this,t,ss(1,e))};return ts&&Rf&&jf(Ef,t,{configurable:!0,set:n}),Lf(t,e)},Sf=wf.prototype,Wc(Sf,"toString",(function(){return bf(this).tag})),Wc(wf,"withoutSetter",(function(e){return Lf(Ks(e),e)})),us.f=Hf,Cl.f=Mf,ll.f=Uf,jc.f=$c.f=$f,Vc.f=Vf,qc.f=function(e){return Lf(Qs(e),e)},ts&&Of(Sf,"description",{configurable:!0,get:function(){return bf(this).description}})),Tl({global:!0,wrap:!0,forced:!Ns,sham:!Ns},{Symbol:wf}),hf(Sc(_f),(function(e){Yc(e)})),Tl({target:gf,stat:!0,forced:!Ns},{for:function(e){var t=fc(e);if(Vs(Pf,t))return Pf[t];var n=wf(t);return Pf[t]=n,Ff[n]=t,n},keyFor:function(e){if(!Bs(e))throw Df(e+" is not a symbol");if(Vs(Ff,e))return Ff[e]},useSetter:function(){Rf=!0},useSimple:function(){Rf=!1}}),Tl({target:"Object",stat:!0,forced:!Ns,sham:!ts},{create:function(e,t){return void 0===t?_c(e):zf(_c(e),t)},defineProperty:Mf,defineProperties:zf,getOwnPropertyDescriptor:Uf}),Tl({target:"Object",stat:!0,forced:!Ns},{getOwnPropertyNames:$f,getOwnPropertySymbols:Vf}),Tl({target:"Object",stat:!0,forced:es((function(){Vc.f(1)}))},{getOwnPropertySymbols:function(e){return Vc.f(Us(e))}}),Af){var Gf=!Ns||es((function(){var e=wf();return"[null]"!=Af([e])||"{}"!=Af({a:e})||"{}"!=Af(Object(e))}));Tl({target:"JSON",stat:!0,forced:Gf},{stringify:function(e,t,n){var r=Gc(arguments),o=t;if((ms(t)||void 0!==e)&&!Bs(e))return Nl(t)||(t=function(e,t){if(Qu(o)&&(t=rs(o,this,e,t)),!Bs(t))return t}),r[1]=t,qu(Af,null,r)}})}if(!Sf[yf]){var Wf=Sf.valueOf;Wc(Sf,yf,(function(e){return rs(Wf,this)}))}Qc(wf,gf),yc[vf]=!0,Yc("asyncIterator"),Yc("hasInstance"),Yc("isConcatSpreadable"),Yc("iterator"),Yc("match"),Yc("matchAll"),Yc("replace"),Yc("search"),Yc("species"),Yc("split"),Yc("toPrimitive"),Yc("toStringTag"),Yc("unscopables"),Qc(Uu.JSON,"JSON",!0);var qf,Kf,Yf,Xf=bs.Symbol,Zf={},Jf=Function.prototype,Qf=ts&&Object.getOwnPropertyDescriptor,ed=Vs(Jf,"name"),td={EXISTS:ed,PROPER:ed&&"something"===function(){}.name,CONFIGURABLE:ed&&(!ts||ts&&Qf(Jf,"name").configurable)},nd=!es((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),rd=xc("IE_PROTO"),od=Uu.Object,id=od.prototype,ad=nd?od.getPrototypeOf:function(e){var t=Us(e);if(Vs(t,rd))return t[rd];var n=t.constructor;return Qu(n)&&t instanceof n?n.prototype:t instanceof od?id:null},ud=Qs("iterator"),sd=!1;[].keys&&("next"in(Yf=[].keys())?(Kf=ad(ad(Yf)))!==Object.prototype&&(qf=Kf):sd=!0);var ld=null==qf||es((function(){var e={};return qf[ud].call(e)!==e}));qf=ld?{}:_c(qf),Qu(qf[ud])||Wc(qf,ud,(function(){return this}));var cd={IteratorPrototype:qf,BUGGY_SAFARI_ITERATORS:sd},fd=cd.IteratorPrototype,dd=function(){return this};Uu.String,Uu.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{Ju(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(e){}}();var pd=td.PROPER,hd=cd.BUGGY_SAFARI_ITERATORS,vd=Qs("iterator"),gd="keys",yd="values",md="entries",bd=function(){return this},Ed=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=_c(fd,{next:ss(+!r,n)}),Qc(e,o,!1,!0),Zf[o]=dd}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!hd&&e in p)return p[e];switch(e){case gd:case yd:case md:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[vd]||p["@@iterator"]||o&&p[o],v=!hd&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=ad(g.call(new e)))!==Object.prototype&&u.next&&(Qc(u,f,!0,!0),Zf[f]=bd),pd&&o==yd&&h&&h.name!==yd&&(d=!0,v=function(){return rs(h,this)}),o)if(s={values:c(yd),keys:i?v:c(gd),entries:c(md)},a)for(l in s)(hd||d||!(l in p))&&Wc(p,l,s[l]);else Tl({target:t,proto:!0,forced:hd||d},s);return a&&p[vd]!==v&&Wc(p,vd,v,{name:o}),Zf[t]=v,s},wd="Array Iterator",Sd=ff.set,Dd=ff.getterFor(wd);Ed(Array,"Array",(function(e,t){Sd(this,{type:wd,target:ys(e),index:0,kind:t})}),(function(){var e=Dd(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"),Zf.Arguments=Zf.Array;var Cd=Qs("toStringTag");for(var Ad 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 xd=Uu[Ad],Od=xd&&xd.prototype;Od&&Hl(Od)!==Cd&&Al(Od,Cd,Ad),Zf[Ad]=Zf.Array}var Td=Xf;Yc("asyncDispose"),Yc("dispose"),Yc("matcher"),Yc("metadata"),Yc("observable"),Yc("patternMatch"),Yc("replaceAll");var Nd=Td,kd=Ju("".charAt),Id=Ju("".charCodeAt),Bd=Ju("".slice),Pd=function(e){return function(t,n){var r,o,i=fc(gs(t)),a=Bl(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Id(i,a))<55296||r>56319||a+1===u||(o=Id(i,a+1))<56320||o>57343?e?kd(i,a):r:e?Bd(i,a,a+2):o-56320+(r-55296<<10)+65536}},Fd=(Pd(!1),Pd(!0)),_d="String Iterator",Rd=ff.set,jd=ff.getterFor(_d);Ed(String,"String",(function(e){Rd(this,{type:_d,string:fc(e),index:0})}),(function(){var e,t=jd(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Fd(n,r),t.index+=e.length,{value:e,done:!1})}));var Ld=qc.f("iterator"),Md=v((function(e){function t(n){return"function"==typeof Nd&&"symbol"==typeof Ld?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Nd&&e.constructor===Nd&&e!==Nd.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),zd=h(Md),Hd=pt.EXISTS,Ud=$e.f,$d=Function.prototype,Vd=P($d.toString),Gd=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Wd=P(Gd.exec);w&&!Hd&&Ud($d,"name",{configurable:!0,get:function(){try{return Wd(Gd,Vd(this))[1]}catch(e){return""}}});var qd=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=o.Editor.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!wo(o.Editor.nodes(e,{match:function(t){return"pre"===n.DomEditor.getNodeType(t)||!!o.Editor.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}(),Kd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("fontSize.title"),t.iconSvg=Zo,t.mark="fontSize",t}return go(t,e),t.prototype.getOptions=function(e){var t=[],r=e.getMenuConfig(this.mark).fontSizeList,o=void 0===r?[]:r;t.push({text:n.t("fontSize.default"),value:""}),o.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===zd(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},t}(qd),Yd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("fontFamily.title"),t.iconSvg=Jo,t.mark="fontFamily",t.selectPanelWidth=150,t}return go(t,e),t.prototype.getOptions=function(e){var t=[],r=e.getMenuConfig(this.mark).fontFamilyList,o=void 0===r?[]:r;t.push({text:n.t("fontFamily.default"),value:""}),o.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===zd(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},t}(qd),Xd={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&sa(i,{fontSize:r}),o&&sa(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!o.Text.isText(e))return t;var n,r=e,i=r.fontSize,a=r.fontFamily;return i||a?((co(t)||"span"!==po(n=l.default(t)))&&(n=l.default("<span>"+t+"</span>")),i&&n.css("font-size",i),a&&n.css("font-family",a),fo(n)):t},preParseHtml:[ju],parseStyleHtml:function(e,t,n){var r=l.default(e);if(!o.Text.isText(t))return t;var i=t,a=n.getMenuConfig("fontSize").fontSizeList,u=void 0===a?[]:a,s=ho(r,"font-size"),c=u.find((function(e){return e.value&&e.value===s}))||u.includes(s);s&&c&&(i.fontSize=s);var f=n.getMenuConfig("fontFamily").fontFamilyList,d=void 0===f?[]:f,p=ho(r,"font-family").replace(/"/g,""),h=d.find((function(e){return e.value&&e.value===p}))||d.includes(p);return p&&h&&(i.fontFamily=p),i},menus:[{key:"fontSize",factory:function(){return new Kd},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 Yd},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Zd={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=l.default(e),n=ho(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]}},Jd=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=wo(o.Editor.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":wo(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=wo(o.Editor.nodes(e,{match:function(e){var t=n.DomEditor.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),Qd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("indent.decrease"),t.iconSvg=Qo,t}return go(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){o.Transforms.setNodes(e,{indent:null},{match:function(e){return o.Element.isElement(e)}})},t}(Jd),ep=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("indent.increase"),t.iconSvg=ei,t.DEFAULT_INDENT_VALUE="2em",t}return go(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.getIndentValue=function(e){var t=this.getMatchNode(e);if(!t)return this.DEFAULT_INDENT_VALUE;var n=t.children.filter(o.Text.isText)[0];if(!n||!n.fontSize)return this.DEFAULT_INDENT_VALUE;var r=n.fontSize,i=parseInt(n.fontSize);return""+2*i+r.replace(""+i,"")},t.prototype.exec=function(e,t){var n=this.getIndentValue(e);o.Transforms.setNodes(e,{indent:n},{match:function(e){return o.Element.isElement(e)},mode:"highest"})},t}(Jd),tp={renderStyle:function(e,t){if(!o.Element.isElement(e))return t;var n=e.indent,r=t;return n&&sa(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!o.Element.isElement(e))return t;var n=e.indent;if(!n)return t;var r=l.default(t);return r.css("text-indent",n),fo(r)},preParseHtml:[Zd],parseStyleHtml:function(e,t,n){var r=l.default(e);if(!o.Element.isElement(t))return t;var i=t,a=ho(r,"text-indent"),u=parseInt(a,10);return a&&u>0&&(i.indent=a),i},menus:[{key:"indent",factory:function(){return new ep}},{key:"delIndent",factory:function(){return new Qd}}]},np=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=wo(o.Editor.nodes(e,{match:function(e){var t=n.DomEditor.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||!!n.DomEditor.getSelectedElems(e).some((function(t){var n=t.type;return!(!o.Editor.isVoid(e,t)||!o.Editor.isBlock(e,t)||"video"===n)||!!["pre","code"].includes(n)||void 0}))},e}(),rp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("justify.left"),t.iconSvg=ti,t}return go(t,e),t.prototype.exec=function(e,t){o.Transforms.setNodes(e,{textAlign:"left"},{match:function(t){return o.Element.isElement(t)&&!e.isInline(t)}})},t}(np),op=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("justify.right"),t.iconSvg=ni,t}return go(t,e),t.prototype.exec=function(e,t){o.Transforms.setNodes(e,{textAlign:"right"},{match:function(t){return o.Element.isElement(t)&&!e.isInline(t)}})},t}(np),ip=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("justify.center"),t.iconSvg=ri,t}return go(t,e),t.prototype.exec=function(e,t){o.Transforms.setNodes(e,{textAlign:"center"},{match:function(t){return o.Element.isElement(t)&&!e.isInline(t)}})},t}(np),ap=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("justify.justify"),t.iconSvg=oi,t}return go(t,e),t.prototype.exec=function(e,t){o.Transforms.setNodes(e,{textAlign:"justify"},{match:function(t){return o.Element.isElement(t)&&!e.isInline(t)}})},t}(np),up={renderStyle:function(e,t){if(!o.Element.isElement(e))return t;var n=e.textAlign,r=t;return n&&sa(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!o.Element.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=l.default(t);return r.css("text-align",n),fo(r)},parseStyleHtml:function(e,t,n){var r=l.default(e);if(!o.Element.isElement(t))return t;var i=t,a=ho(r,"text-align");return a&&(i.textAlign=a),i},menus:[{key:"justifyLeft",factory:function(){return new rp}},{key:"justifyRight",factory:function(){return new op}},{key:"justifyCenter",factory:function(){return new ip}},{key:"justifyJustify",factory:function(){return new ap}}]},sp=function(){function e(){this.title=n.t("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=[],r=e.getMenuConfig("lineHeight").lineHeightList,o=void 0===r?[]:r;t.push({text:n.t("lineHeight.default"),value:""}),o.forEach((function(e){t.push({text:e,value:e})}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=wo(o.Editor.nodes(e,{match:function(e){var t=n.DomEditor.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?"":o.Element.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){o.Transforms.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),lp={renderStyle:function(e,t){if(!o.Element.isElement(e))return t;var n=e.lineHeight,r=t;return n&&sa(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!o.Element.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=l.default(t);return r.css("line-height",n),fo(r)},parseStyleHtml:function(e,t,n){var r=l.default(e);if(!o.Element.isElement(t))return t;var i=t,a=n.getMenuConfig("lineHeight").lineHeightList,u=void 0===a?[]:a,s=ho(r,"line-height");return s&&u.includes(s)&&(i.lineHeight=s),i},menus:[{key:"lineHeight",factory:function(){return new sp},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},cp=function(){function e(){this.title=n.t("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}(),fp=function(){function e(){this.title=n.t("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}(),dp={menus:[{key:"redo",factory:function(){return new cp}},{key:"undo",factory:function(){return new fp}}]},pp={type:"divider",renderElem:function(e,t,o){var i=n.DomEditor.isNodeSelected(o,e);return r.h("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:i?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[r.h("hr")])}},hp={type:"divider",elemToHtml:function(e,t){return"<hr/>"}},vp={selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}},gp=function(){function e(){this.title=n.t("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||!!n.DomEditor.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var r=n.DomEditor.getNodeType(t);return"table"===r||"pre"===r||void 0}))},e.prototype.exec=function(e,t){o.Transforms.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),yp={renderElems:[pp],elemsToHtml:[hp],parseElemsHtml:[vp],menus:[{key:"divider",factory:function(){return new gp}}],editorPlugin:function(e){var t=e.isVoid,r=e.normalizeNode,i=e;return i.isVoid=function(e){return"divider"===e.type||t(e)},i.normalizeNode=function(e){var t=wo(e,2),a=t[0],u=t[1];if("divider"!==n.DomEditor.getNodeType(a))return r([a,u]);n.DomEditor.isLastNode(i,a)&&o.Transforms.insertNodes(i,n.DomEditor.genEmptyParagraph(),{at:[u[0]+1]})},i}},mp=pn.map;Vt({target:"Array",proto:!0,forced:!vn("map")},{map:function(e){return mp(this,e,arguments.length>1?arguments[1]:void 0)}});var bp=P([].join),Ep=M!=Object,wp=Fo("join",",");Vt({target:"Array",proto:!0,forced:Ep||!wp},{join:function(e){return bp(U(this),void 0===e?",":e)}});var Sp=function(){function e(){this.title=n.t("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=n.DomEditor.getSelectedNodeByType(e,"code");if(null==t)return null;var r=n.DomEditor.getParentNode(e,t);return null==r||"pre"!==n.DomEditor.getNodeType(r)?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=n.DomEditor.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=n.DomEditor.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=o.Node.string(t);o.Transforms.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));o.Transforms.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,i=[],a=o.Editor.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var u=Eo(a),s=u.next();!s.done;s=u.next()){var l=wo(s.value,1)[0];l&&i.push(o.Node.string(l))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}o.Transforms.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:t,children:[{text:i.join("\n")}]}]};o.Transforms.insertNodes(e,c,{mode:"highest"})},e}(),Dp={key:"codeBlock",factory:function(){return new Sp}};Vt({target:"String",proto:!0,forced:Oo("anchor")},{anchor:function(e){return xo(this,"a","name",e)}}),ar("match",(function(e,t,n){return[function(t){var n=H(this),r=null==t?void 0:se(t,e);return r?D(r,t,n):new RegExp(t)[e](En(n))},function(e){var r=ze(this),o=En(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return wr(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=wr(r,o));){var c=En(u[0]);s[l]=c,""===c&&(r.lastIndex=dr(o,St(r.lastIndex),a)),l++}return 0===l?null:s}]}));var Cp={menus:[Dp],editorPlugin:function(e){var t=e.insertBreak,r=e.normalizeNode,i=e.insertData;e.insertNode;var a=e;return a.insertBreak=function(){var e=n.DomEditor.getSelectedNodeByType(a,"code");if(null!=e){var r=function(e,t){var n=t.selection;if(null==n)return"";var r=o.Node.string(e),i=n.anchor.offset,a=r.slice(0,i).split("\n"),u=a.length;return 0===u?"":a[u-1]}(e,a);if(r){var i=r.match(/^\s+/);if(null!=i&&null!=i[0]){var u=i[0];return void a.insertText("\n"+u)}}a.insertText("\n")}else t()},a.normalizeNode=function(e){var t=wo(e,2),i=t[0],u=t[1],s=n.DomEditor.getNodeType(i);return"code"===s&&u.length<=1&&o.Transforms.setNodes(a,{type:"paragraph"},{at:u}),"pre"===s&&(n.DomEditor.isLastNode(a,i)&&o.Transforms.insertNodes(a,n.DomEditor.genEmptyParagraph(),{at:[u[0]+1]}),"code"!==n.DomEditor.getNodeType(i.children[0])&&(o.Transforms.unwrapNodes(a),o.Transforms.setNodes(a,{type:"paragraph"},{mode:"highest"}))),r([i,u])},a.insertData=function(e){if(null!=n.DomEditor.getSelectedNodeByType(a,"code")){var t=e.getData("text/plain");o.Editor.insertText(a,t)}else i(e)},a},renderElems:[{type:"pre",renderElem:function(e,t,n){return r.jsx("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return r.jsx("code",null,t)}}],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=l.default(e);if("code"!==po(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:l.default(e)[0].textContent||""}]}}},{selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,r){var o=l.default(e);return 0===(t=t.filter((function(e){return"code"===n.DomEditor.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:o[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===n.DomEditor.getNodeType(e)}))}}}]},Ap=function(){function e(){this.title=n.t("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}(),xp={menus:[{key:"fullScreen",factory:function(){return new Ap}}]},Op=function(){function e(){this.title=n.t("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||!!o.Range.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];o.Transforms.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(o.Editor.start(e,r))}},e}(),Tp=[vi,ha,Xd,tp,up,lp,bu,yp,_u,ja,Cp,Pu,ra,Do,Su,dp,xp,{menus:[{key:"enter",factory:function(){return new Op}}]}];e.default=Tp,e.insertImageNode=ru,e.isInsertImageMenuDisabled=iu,e.updateImageNode=ou,Object.defineProperty(e,"__esModule",{value:!0})}(n,kw,Nw,Ow,Tw,Jm,zg)})),Jw=n(Zw),Qw=r((function(e,n){e.exports=function(e,n,r,o){function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(o);e.i18nAddResources("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),e.i18nAddResources("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function s(e){var t={exports:{}};return e(t,t.exports),t.exports}var l,c,f=function(e){return e&&e.Math==Math&&e},d=f("object"==typeof globalThis&&globalThis)||f("object"==typeof window&&window)||f("object"==typeof self&&self)||f("object"==typeof u&&u)||function(){return this}()||Function("return this")(),p=Function.prototype,h=p.bind,v=p.call,g=h&&h.bind(v),y=h?function(e){return e&&g(v,e)}:function(e){return e&&function(){return v.apply(e,arguments)}},m=function(e){try{return!!e()}catch(e){return!0}},b=y({}.toString),E=y("".slice),w=function(e){return E(b(e),8,-1)},S=d.Object,D=y("".split),C=m((function(){return!S("z").propertyIsEnumerable(0)}))?function(e){return"String"==w(e)?D(e,""):S(e)}:S,A=d.TypeError,x=function(e){if(null==e)throw A("Can't call method on "+e);return e},O=function(e){return C(x(e))},T=Object.defineProperty,N=function(e,t){try{T(d,e,{value:t,configurable:!0,writable:!0})}catch(n){d[e]=t}return t},k="__core-js_shared__",I=d[k]||N(k,{}),B=s((function(e){(e.exports=function(e,t){return I[e]||(I[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),P=d.Object,F=function(e){return P(x(e))},_=y({}.hasOwnProperty),R=Object.hasOwn||function(e,t){return _(F(e),t)},j=0,L=Math.random(),M=y(1..toString),z=function(e){return"Symbol("+(void 0===e?"":e)+")_"+M(++j+L,36)},H=function(e){return"function"==typeof e},U=function(e){return H(e)?e:void 0},$=function(e,t){return arguments.length<2?U(d[e]):d[e]&&d[e][t]},V=$("navigator","userAgent")||"",G=d.process,W=d.Deno,q=G&&G.versions||W&&W.version,K=q&&q.v8;K&&(c=(l=K.split("."))[0]>0&&l[0]<4?1:+(l[0]+l[1])),!c&&V&&(!(l=V.match(/Edge\/(\d+)/))||l[1]>=74)&&(l=V.match(/Chrome\/(\d+)/))&&(c=+l[1]);var Y,X=c,Z=!!Object.getOwnPropertySymbols&&!m((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&X&&X<41})),J=Z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Q=B("wks"),ee=d.Symbol,te=ee&&ee.for,ne=J?ee:ee&&ee.withoutSetter||z,re=function(e){if(!R(Q,e)||!Z&&"string"!=typeof Q[e]){var t="Symbol."+e;Z&&R(ee,e)?Q[e]=ee[e]:Q[e]=J&&te?te(t):ne(t)}return Q[e]},oe=function(e){return"object"==typeof e?null!==e:H(e)},ie=d.String,ae=d.TypeError,ue=function(e){if(oe(e))return e;throw ae(ie(e)+" is not an object")},se=!m((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),le=d.document,ce=oe(le)&&oe(le.createElement),fe=function(e){return ce?le.createElement(e):{}},de=!se&&!m((function(){return 7!=Object.defineProperty(fe("div"),"a",{get:function(){return 7}}).a})),pe=Function.prototype.call,he=pe.bind?pe.bind(pe):function(){return pe.apply(pe,arguments)},ve=y({}.isPrototypeOf),ge=d.Object,ye=J?function(e){return"symbol"==typeof e}:function(e){var t=$("Symbol");return H(t)&&ve(t.prototype,ge(e))},me=d.String,be=function(e){try{return me(e)}catch(e){return"Object"}},Ee=d.TypeError,we=function(e){if(H(e))return e;throw Ee(be(e)+" is not a function")},Se=function(e,t){var n=e[t];return null==n?void 0:we(n)},De=d.TypeError,Ce=d.TypeError,Ae=re("toPrimitive"),xe=function(e,t){if(!oe(e)||ye(e))return e;var n,r=Se(e,Ae);if(r){if(void 0===t&&(t="default"),n=he(r,e,t),!oe(n)||ye(n))return n;throw Ce("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&H(n=e.toString)&&!oe(r=he(n,e)))return r;if(H(n=e.valueOf)&&!oe(r=he(n,e)))return r;if("string"!==t&&H(n=e.toString)&&!oe(r=he(n,e)))return r;throw De("Can't convert object to primitive value")}(e,t)},Oe=function(e){var t=xe(e,"string");return ye(t)?t:t+""},Te=d.TypeError,Ne=Object.defineProperty,ke={f:se?Ne:function(e,t,n){if(ue(e),t=Oe(t),ue(n),de)try{return Ne(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Te("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ie=Math.ceil,Be=Math.floor,Pe=function(e){var t=+e;return t!=t||0===t?0:(t>0?Be:Ie)(t)},Fe=Math.max,_e=Math.min,Re=function(e,t){var n=Pe(e);return n<0?Fe(n+t,0):_e(n,t)},je=Math.min,Le=function(e){return e>0?je(Pe(e),9007199254740991):0},Me=function(e){return Le(e.length)},ze=function(e){return function(t,n,r){var o,i=O(t),a=Me(i),u=Re(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}},He={includes:ze(!0),indexOf:ze(!1)},Ue={},$e=He.indexOf,Ve=y([].push),Ge=function(e,t){var n,r=O(e),o=0,i=[];for(n in r)!R(Ue,n)&&R(r,n)&&Ve(i,n);for(;t.length>o;)R(r,n=t[o++])&&(~$e(i,n)||Ve(i,n));return i},We=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qe=Object.keys||function(e){return Ge(e,We)},Ke=se?Object.defineProperties:function(e,t){ue(e);for(var n,r=O(t),o=qe(t),i=o.length,a=0;i>a;)ke.f(e,n=o[a++],r[n]);return e},Ye=$("document","documentElement"),Xe=B("keys"),Ze=function(e){return Xe[e]||(Xe[e]=z(e))},Je=Ze("IE_PROTO"),Qe=function(){},et=function(e){return"<script>"+e+"<\/script>"},tt=function(e){e.write(et("")),e.close();var t=e.parentWindow.Object;return e=null,t},nt=function(){try{Y=new ActiveXObject("htmlfile")}catch(e){}var e,t;nt="undefined"!=typeof document?document.domain&&Y?tt(Y):((t=fe("iframe")).style.display="none",Ye.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(et("document.F=Object")),e.close(),e.F):tt(Y);for(var n=We.length;n--;)delete nt.prototype[We[n]];return nt()};Ue[Je]=!0;var rt=Object.create||function(e,t){var n;return null!==e?(Qe.prototype=ue(e),n=new Qe,Qe.prototype=null,n[Je]=e):n=nt(),void 0===t?n:Ke(n,t)},ot=re("unscopables"),it=Array.prototype;null==it[ot]&&ke.f(it,ot,{configurable:!0,value:rt(null)});var at=function(e){it[ot][e]=!0},ut={},st=y(Function.toString);H(I.inspectSource)||(I.inspectSource=function(e){return st(e)});var lt,ct,ft,dt=I.inspectSource,pt=d.WeakMap,ht=H(pt)&&/native code/.test(dt(pt)),vt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},gt=se?function(e,t,n){return ke.f(e,t,vt(1,n))}:function(e,t,n){return e[t]=n,e},yt="Object already initialized",mt=d.TypeError,bt=d.WeakMap;if(ht||I.state){var Et=I.state||(I.state=new bt),wt=y(Et.get),St=y(Et.has),Dt=y(Et.set);lt=function(e,t){if(St(Et,e))throw new mt(yt);return t.facade=e,Dt(Et,e,t),t},ct=function(e){return wt(Et,e)||{}},ft=function(e){return St(Et,e)}}else{var Ct=Ze("state");Ue[Ct]=!0,lt=function(e,t){if(R(e,Ct))throw new mt(yt);return t.facade=e,gt(e,Ct,t),t},ct=function(e){return R(e,Ct)?e[Ct]:{}},ft=function(e){return R(e,Ct)}}var At,xt,Ot,Tt={set:lt,get:ct,has:ft,enforce:function(e){return ft(e)?ct(e):lt(e,{})},getterFor:function(e){return function(t){var n;if(!oe(t)||(n=ct(t)).type!==e)throw mt("Incompatible receiver, "+e+" required");return n}}},Nt={}.propertyIsEnumerable,kt=Object.getOwnPropertyDescriptor,It={f:kt&&!Nt.call({1:2},1)?function(e){var t=kt(this,e);return!!t&&t.enumerable}:Nt},Bt=Object.getOwnPropertyDescriptor,Pt={f:se?Bt:function(e,t){if(e=O(e),t=Oe(t),de)try{return Bt(e,t)}catch(e){}if(R(e,t))return vt(!he(It.f,e,t),e[t])}},Ft=Function.prototype,_t=se&&Object.getOwnPropertyDescriptor,Rt=R(Ft,"name"),jt={EXISTS:Rt,PROPER:Rt&&"something"===function(){}.name,CONFIGURABLE:Rt&&(!se||se&&_t(Ft,"name").configurable)},Lt=s((function(e){var t=jt.CONFIGURABLE,n=Tt.get,r=Tt.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;H(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!R(i,"name")||t&&i.name!==f)&>(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==d?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:gt(e,n,i)):l?e[n]=i:N(n,i)})(Function.prototype,"toString",(function(){return H(this)&&n(this).source||dt(this)}))})),Mt=We.concat("length","prototype"),zt={f:Object.getOwnPropertyNames||function(e){return Ge(e,Mt)}},Ht={f:Object.getOwnPropertySymbols},Ut=y([].concat),$t=$("Reflect","ownKeys")||function(e){var t=zt.f(ue(e)),n=Ht.f;return n?Ut(t,n(e)):t},Vt=function(e,t){for(var n=$t(t),r=ke.f,o=Pt.f,i=0;i<n.length;i++){var a=n[i];R(e,a)||r(e,a,o(t,a))}},Gt=/#|\.prototype\./,Wt=function(e,t){var n=Kt[qt(e)];return n==Xt||n!=Yt&&(H(t)?m(t):!!t)},qt=Wt.normalize=function(e){return String(e).replace(Gt,".").toLowerCase()},Kt=Wt.data={},Yt=Wt.NATIVE="N",Xt=Wt.POLYFILL="P",Zt=Wt,Jt=Pt.f,Qt=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?d:l?d[u]||N(u,{}):(d[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Jt(n,r))&&a.value:n[r],!Zt(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Vt(i,o)}(e.sham||o&&o.sham)&>(i,"sham",!0),Lt(n,r,i,e)}},en=!m((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),tn=Ze("IE_PROTO"),nn=d.Object,rn=nn.prototype,on=en?nn.getPrototypeOf:function(e){var t=F(e);if(R(t,tn))return t[tn];var n=t.constructor;return H(n)&&t instanceof n?n.prototype:t instanceof nn?rn:null},an=re("iterator"),un=!1;[].keys&&("next"in(Ot=[].keys())?(xt=on(on(Ot)))!==Object.prototype&&(At=xt):un=!0);var sn=null==At||m((function(){var e={};return At[an].call(e)!==e}));sn&&(At={}),H(At[an])||Lt(At,an,(function(){return this}));var ln={IteratorPrototype:At,BUGGY_SAFARI_ITERATORS:un},cn=ke.f,fn=re("toStringTag"),dn=function(e,t,n){e&&!R(e=n?e:e.prototype,fn)&&cn(e,fn,{configurable:!0,value:t})},pn=ln.IteratorPrototype,hn=function(){return this},vn=d.String,gn=d.TypeError,yn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=y(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return ue(n),function(e){if("object"==typeof e||H(e))return e;throw gn("Can't set "+vn(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),mn=jt.PROPER,bn=jt.CONFIGURABLE,En=ln.IteratorPrototype,wn=ln.BUGGY_SAFARI_ITERATORS,Sn=re("iterator"),Dn="keys",Cn="values",An="entries",xn=function(){return this},On=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=rt(pn,{next:vt(+!r,n)}),dn(e,o,!1),ut[o]=hn}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!wn&&e in p)return p[e];switch(e){case Dn:case Cn:case An:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Sn]||p["@@iterator"]||o&&p[o],v=!wn&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=on(g.call(new e)))!==Object.prototype&&u.next&&(on(u)!==En&&(yn?yn(u,En):H(u[Sn])||Lt(u,Sn,xn)),dn(u,f,!0)),mn&&o==Cn&&h&&h.name!==Cn&&(bn?gt(p,"name",Cn):(d=!0,v=function(){return he(h,this)})),o)if(s={values:c(Cn),keys:i?v:c(Dn),entries:c(An)},a)for(l in s)(wn||d||!(l in p))&&Lt(p,l,s[l]);else Qt({target:t,proto:!0,forced:wn||d},s);return p[Sn]!==v&&Lt(p,Sn,v,{name:o}),ut[t]=v,s},Tn="Array Iterator",Nn=Tt.set,kn=Tt.getterFor(Tn),In=On(Array,"Array",(function(e,t){Nn(this,{type:Tn,target:O(e),index:0,kind:t})}),(function(){var e=kn(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");ut.Arguments=ut.Array,at("keys"),at("values"),at("entries");var Bn={};Bn[re("toStringTag")]="z";var Pn="[object z]"===String(Bn),Fn=re("toStringTag"),_n=d.Object,Rn="Arguments"==w(function(){return arguments}()),jn=Pn?w: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=_n(e),Fn))?n:Rn?w(t):"Object"==(r=w(t))&&H(t.callee)?"Arguments":r},Ln=Pn?{}.toString:function(){return"[object "+jn(this)+"]"};Pn||Lt(Object.prototype,"toString",Ln,{unsafe:!0});var Mn=d.String,zn=function(e){if("Symbol"===jn(e))throw TypeError("Cannot convert a Symbol value to a string");return Mn(e)},Hn=y("".charAt),Un=y("".charCodeAt),$n=y("".slice),Vn=function(e){return function(t,n){var r,o,i=zn(x(t)),a=Pe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Un(i,a))<55296||r>56319||a+1===u||(o=Un(i,a+1))<56320||o>57343?e?Hn(i,a):r:e?$n(i,a,a+2):o-56320+(r-55296<<10)+65536}},Gn={codeAt:Vn(!1),charAt:Vn(!0)},Wn=Gn.charAt,qn="String Iterator",Kn=Tt.set,Yn=Tt.getterFor(qn);On(String,"String",(function(e){Kn(this,{type:qn,string:zn(e),index:0})}),(function(){var e,t=Yn(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Wn(n,r),t.index+=e.length,{value:e,done:!1})}));var Xn=function(e,t,n){for(var r in t)Lt(e,r,t[r],n);return e},Zn=d.Array,Jn=Math.max,Qn=zt.f,er="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tr=function(e){try{return Qn(e)}catch(e){return function(e,t,n){for(var r,o,i,a,u=Me(e),s=Re(t,u),l=Re(void 0===n?u:n,u),c=Zn(Jn(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],a=void 0,(a=Oe(o))in r?ke.f(r,a,vt(0,i)):r[a]=i;return c.length=f,c}(er)}},nr={f:function(e){return er&&"Window"==w(e)?tr(e):Qn(O(e))}},rr=m((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),or=Object.isExtensible,ir=m((function(){or(1)}))||rr?function(e){return!!oe(e)&&(!rr||"ArrayBuffer"!=w(e))&&(!or||or(e))}:or,ar=!m((function(){return Object.isExtensible(Object.preventExtensions({}))})),ur=s((function(e){var t=ke.f,n=!1,r=z("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=zt.f,t=y([].splice),o={};o[r]=1,e(o).length&&(zt.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},Qt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:nr.f}))},fastKey:function(e,t){if(!oe(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!R(e,r)){if(!ir(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!R(e,r)){if(!ir(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return ar&&n&&ir(e)&&!R(e,r)&&i(e),e}};Ue[r]=!0})),sr=y(y.bind),lr=function(e,t){return we(e),void 0===t?e:sr?sr(e,t):function(){return e.apply(t,arguments)}},cr=re("iterator"),fr=Array.prototype,dr=re("iterator"),pr=function(e){if(null!=e)return Se(e,dr)||Se(e,"@@iterator")||ut[jn(e)]},hr=d.TypeError,vr=function(e,t,n){var r,o;ue(e);try{if(!(r=Se(e,"return"))){if("throw"===t)throw n;return n}r=he(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return ue(r),n},gr=d.TypeError,yr=function(e,t){this.stopped=e,this.result=t},mr=yr.prototype,br=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=lr(t,f),g=function(e){return r&&vr(r,"normal",e),new yr(!0,e)},y=function(e){return d?(ue(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=pr(e)))throw gr(be(e)+" is not iterable");if(void 0!==(c=o)&&(ut.Array===c||fr[cr]===c)){for(i=0,a=Me(e);a>i;i++)if((u=y(e[i]))&&ve(mr,u))return u;return new yr(!1)}r=function(e,t){var n=arguments.length<2?pr(e):t;if(we(n))return ue(he(n,e));throw hr(be(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=he(s,r)).done;){try{u=y(l.value)}catch(e){vr(r,"throw",e)}if("object"==typeof u&&u&&ve(mr,u))return u}return new yr(!1)},Er=d.TypeError,wr=function(e,t){if(ve(t,e))return e;throw Er("Incorrect invocation")},Sr=re("iterator"),Dr=!1;try{var Cr=0,Ar={next:function(){return{done:!!Cr++}},return:function(){Dr=!0}};Ar[Sr]=function(){return this},Array.from(Ar,(function(){throw 2}))}catch(e){}var xr=Array.isArray||function(e){return"Array"==w(e)},Or=function(){},Tr=[],Nr=$("Reflect","construct"),kr=/^\s*(?:class|function)\b/,Ir=y(kr.exec),Br=!kr.exec(Or),Pr=function(e){if(!H(e))return!1;try{return Nr(Or,Tr,e),!0}catch(e){return!1}},Fr=!Nr||m((function(){var e;return Pr(Pr.call)||!Pr(Object)||!Pr((function(){e=!0}))||e}))?function(e){if(!H(e))return!1;switch(jn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Br||!!Ir(kr,dt(e))}:Pr,_r=re("species"),Rr=d.Array,jr=function(e,t){return new(function(e){var t;return xr(e)&&(t=e.constructor,(Fr(t)&&(t===Rr||xr(t.prototype))||oe(t)&&null===(t=t[_r]))&&(t=void 0)),void 0===t?Rr:t}(e))(0===t?0:t)},Lr=y([].push),Mr=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=F(s),v=C(h),g=lr(l,c),y=Me(v),m=0,b=f||jr,E=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)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Lr(E,d)}else switch(e){case 4:return!1;case 7:Lr(E,d)}return i?-1:r||o?o:E}},zr={forEach:Mr(0),map:Mr(1),filter:Mr(2),some:Mr(3),every:Mr(4),find:Mr(5),findIndex:Mr(6),filterReject:Mr(7)},Hr=ur.getWeakData,Ur=Tt.set,$r=Tt.getterFor,Vr=zr.find,Gr=zr.findIndex,Wr=y([].splice),qr=0,Kr=function(e){return e.frozen||(e.frozen=new Yr)},Yr=function(){this.entries=[]},Xr=function(e,t){return Vr(e.entries,(function(e){return e[0]===t}))};Yr.prototype={get:function(e){var t=Xr(this,e);if(t)return t[1]},has:function(e){return!!Xr(this,e)},set:function(e,t){var n=Xr(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Gr(this.entries,(function(t){return t[0]===e}));return~t&&Wr(this.entries,t,1),!!~t}};var Zr,Jr={getConstructor:function(e,t,n,r){var o=e((function(e,o){wr(e,i),Ur(e,{type:t,id:qr++,frozen:void 0}),null!=o&&br(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=$r(t),u=function(e,t,n){var r=a(e),o=Hr(ue(t),!0);return!0===o?Kr(r).set(t,n):o[r.id]=n,e};return Xn(i,{delete:function(e){var t=a(this);if(!oe(e))return!1;var n=Hr(e);return!0===n?Kr(t).delete(e):n&&R(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!oe(e))return!1;var n=Hr(e);return!0===n?Kr(t).has(e):n&&R(n,t.id)}}),Xn(i,n?{get:function(e){var t=a(this);if(oe(e)){var n=Hr(e);return!0===n?Kr(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}},Qr=Tt.enforce,eo=!d.ActiveXObject&&"ActiveXObject"in d,to=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},no=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=d[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=y(u[e]);Lt(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!oe(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!oe(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!oe(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Zt(e,!H(a)||!(o||u.forEach&&!m((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),ur.enable();else if(Zt(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,h=m((function(){f.has(1)})),v=function(e,t){if(!Dr)return!1;var n=!1;try{var r={};r[Sr]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){new a(e)})),g=!o&&m((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));v||((s=t((function(e,t){wr(e,u);var n=function(e,t,n){var r,o;return yn&&H(r=t.constructor)&&r!==n&&oe(o=r.prototype)&&o!==n.prototype&&yn(e,o),e}(new a,e,s);return null!=t&&br(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(h||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Qt({global:!0,forced:s!=a},l),dn(s,e),o||n.setStrong(s,e,r),s}("WeakMap",to,Jr);if(ht&&eo){Zr=Jr.getConstructor(to,"WeakMap",!0),ur.enable();var ro=no.prototype,oo=y(ro.delete),io=y(ro.has),ao=y(ro.get),uo=y(ro.set);Xn(ro,{delete:function(e){if(oe(e)&&!ir(e)){var t=Qr(this);return t.frozen||(t.frozen=new Zr),oo(this,e)||t.frozen.delete(e)}return oo(this,e)},has:function(e){if(oe(e)&&!ir(e)){var t=Qr(this);return t.frozen||(t.frozen=new Zr),io(this,e)||t.frozen.has(e)}return io(this,e)},get:function(e){if(oe(e)&&!ir(e)){var t=Qr(this);return t.frozen||(t.frozen=new Zr),io(this,e)?ao(this,e):t.frozen.get(e)}return ao(this,e)},set:function(e,t){if(oe(e)&&!ir(e)){var n=Qr(this);n.frozen||(n.frozen=new Zr),io(this,e)?uo(this,e,t):n.frozen.set(e,t)}else uo(this,e,t);return this}})}var so={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},lo=fe("span").classList,co=lo&&lo.constructor&&lo.constructor.prototype,fo=co===Object.prototype?void 0:co,po=re("iterator"),ho=re("toStringTag"),vo=In.values,go=function(e,t){if(e){if(e[po]!==vo)try{gt(e,po,vo)}catch(t){e[po]=vo}if(e[ho]||gt(e,ho,t),so[t])for(var n in In)if(e[n]!==In[n])try{gt(e,n,In[n])}catch(t){e[n]=In[n]}}};for(var yo in so)go(d[yo]&&d[yo].prototype,yo);go(fo,"DOMTokenList");var mo=new WeakMap,bo={type:"list-item",renderElem:function(t,o,i){mo.set(t,i);var a=t,u=a.level,s=void 0===u?0:u,l=a.ordered,c={margin:"5px 0 5px "+20*s+"px"},f="";if(void 0!==l&&l){var d=function(t,r){var o=r,i=o.type,a=o.level,u=void 0===a?0:a,s=o.ordered,l=void 0!==s&&s;if(!l)return-1;var c=1,f=r,d=e.DomEditor.findPath(t,f);if(0===d[0])return 1;for(;d[0]>0;){var p=n.Path.previous(d),h=n.Editor.node(t,p);if(null==h)break;var v=h[0],g=v.level,y=void 0===g?0:g,m=v.type,b=v.ordered;if(m!==i)break;if(y<u)break;if(y===u){if(b!==l)break;c++}f=v,d=p}return c}(i,t);f=d+"."}else f=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(s);var p=function(e){var t,r=e.children||[],o=r.length;if(0===o)return"";for(var i=0;i<o&&!t;i++){var a=r[i];n.Text.isText(a)&&(t=a)}return null==t?"":t.color||""}(t);return r.jsx("div",{style:c},r.jsx("span",{contentEditable:!1,style:{marginRight:"0.5em",color:p},"data-w-e-reserve":!0},f),r.jsx("span",null,o))}},Eo=function(e,t){return Eo=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])},Eo(e,t)
|
|
53
|
+
***************************************************************************** */};function go(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}vo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var yo=function(){return yo=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},yo.apply(this,arguments)};function mo(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function bo(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 Eo(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 wo(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 So(e){var t=wo(o.Editor.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!o.Element.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==o.Node.string(n))return!1;var r=n.children,i=void 0===r?[]:r;return!!o.Text.isText(i[0])&&(o.Transforms.setNodes(e,{type:"paragraph"}),!0)}var Do={renderElems:[f],elemsToHtml:[d],parseElemsHtml:[{selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=l.default(e);return 0===(t=t.filter((function(e){return!!o.Text.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}}],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){So(r)||t(e)},r.deleteForward=function(e){So(r)||n(e)},r}},Co=/"/g,Ao=P("".replace),xo=function(e,t,n,r){var o=En(H(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+Ao(En(r),Co,""")+'"'),i+">"+o+"</"+t+">"},Oo=function(e){return E((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function To(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 No(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}Vt({target:"String",proto:!0,forced:Oo("bold")},{bold:function(){return xo(this,"b","","")}}),Vt({target:"String",proto:!0,forced:Oo("italics")},{italics:function(){return xo(this,"i","","")}}),Vt({target:"String",proto:!0,forced:Oo("sub")},{sub:function(){return xo(this,"sub","","")}}),Vt({target:"String",proto:!0,forced:Oo("sup")},{sup:function(){return xo(this,"sup","","")}});var ko={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},Io=Fe("span").classList,Bo=Io&&Io.constructor&&Io.constructor.prototype,Po=Bo===Object.prototype?void 0:Bo,Fo=function(e,t){var n=[][e];return!!n&&E((function(){n.call(null,t||function(){throw 1},1)}))},_o=pn.forEach,Ro=Fo("forEach")?[].forEach:function(e){return _o(this,e,arguments.length>1?arguments[1]:void 0)},jo=function(e){if(e&&e.forEach!==Ro)try{Ve(e,"forEach",Ro)}catch(t){e.forEach=Ro}};for(var Lo in ko)ko[Lo]&&jo(b[Lo]&&b[Lo].prototype);function Mo(e,t){return null==e.selection||!!wo(o.Editor.nodes(e,{match:function(t){return"pre"===n.DomEditor.getNodeType(t)||!!o.Editor.isVoid(e,t)},universal:!0}),1)[0]}function zo(e,t){Object.keys(t).forEach((function(t){"text"!==t&&o.Editor.removeMark(e,t)}))}jo(Po),Vt({target:"Object",stat:!0,forced:E((function(){xn(1)}))},{keys:function(e){return xn(ge(e))}});var Ho=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=o.Editor.marks(e);return n?n[t]:!!wo(o.Editor.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 Mo(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}(),Uo='<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>',$o='<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>',Vo='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Go='<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>',Wo='<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>',qo='<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>',Ko='<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>',Yo='<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>',Xo='<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>',Zo='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',Jo='<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>',Qo='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',ei='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',ti='<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>',ni='<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>',ri='<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>',oi='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',ii='<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>',ai='<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>',ui=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=n.t("textStyle.bold"),t.iconSvg=Uo,t.hotkey="mod+b",t}return go(t,e),t}(Ho),si=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=n.t("textStyle.code"),t.iconSvg=Wo,t.hotkey="mod+e",t}return go(t,e),t}(Ho),li=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=n.t("textStyle.italic"),t.iconSvg=Vo,t.hotkey="mod+i",t}return go(t,e),t}(Ho),ci=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=n.t("textStyle.through"),t.iconSvg=Go,t.hotkey="mod+shift+x",t}return go(t,e),t}(Ho),fi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=n.t("textStyle.underline"),t.iconSvg=$o,t.hotkey="mod+u",t}return go(t,e),t}(Ho),di=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=n.t("textStyle.sub"),t.iconSvg=ai,t.hotkey="",t}return go(t,e),t}(Ho),pi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=n.t("textStyle.sup"),t.iconSvg=ii,t.hotkey="",t}return go(t,e),t}(Ho),hi=function(){function e(){this.title=n.t("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 Mo(e)},e.prototype.exec=function(e,t){var n,r,i=o.Editor.nodes(e,{match:function(e){return o.Text.isText(e)},universal:!0});try{for(var a=Eo(i),u=a.next();!u.done;u=a.next())zo(e,u.value[0])}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},e}(),vi={renderStyle:function(e,t){var n=e,o=n.bold,i=n.italic,a=n.underline,u=n.code,s=n.through,l=n.sub,c=n.sup,f=t;return o&&(f=r.jsx("strong",null,f)),u&&(f=r.jsx("code",null,f)),i&&(f=r.jsx("em",null,f)),a&&(f=r.jsx("u",null,f)),s&&(f=r.jsx("s",null,f)),l&&(f=r.jsx("sub",null,f)),c&&(f=r.jsx("sup",null,f)),f},menus:[{key:"bold",factory:function(){return new ui}},{key:"underline",factory:function(){return new fi}},{key:"italic",factory:function(){return new li}},{key:"through",factory:function(){return new ci}},{key:"code",factory:function(){return new si}},{key:"sub",factory:function(){return new di}},{key:"sup",factory:function(){return new pi}},{key:"clearStyle",factory:function(){return new hi}}],styleToHtml:function(e,t){if(!o.Text.isText(e))return t;if(co(t))return To(e,t);var n=l.default(t);if("br"===po(n))return To(e,"<br>");var r=n.html();return r=To(e,r),n.html(r),fo(n)},parseStyleHtml:function(e,t,n){var r=l.default(e);if(!o.Text.isText(t))return t;var i=t;return No(r,"b,strong")&&(i.bold=!0),No(r,"i,em")&&(i.italic=!0),No(r,"u")&&(i.underline=!0),No(r,"s,strike")&&(i.through=!0),No(r,"sub")&&(i.sub=!0),No(r,"sup")&&(i.sup=!0),No(r,"code")&&(i.code=!0),i}};function gi(e){return function(t,n,o){var i="h"+e;return r.jsx(i,null,n)}}var yi={type:"header1",renderElem:gi(1)},mi={type:"header2",renderElem:gi(2)},bi={type:"header3",renderElem:gi(3)},Ei={type:"header4",renderElem:gi(4)},wi={type:"header5",renderElem:gi(5)},Si=pt.PROPER,Di="toString",Ci=RegExp.prototype,Ai=Ci.toString,xi=P(wn),Oi=E((function(){return"/a/b"!=Ai.call({source:"a",flags:"b"})})),Ti=Si&&Ai.name!=Di;(Oi||Ti)&&ht(RegExp.prototype,Di,(function(){var e=ze(this),t=En(e.source),n=e.flags;return"/"+t+"/"+En(void 0===n&&q(Ci,e)&&!("flags"in Ci)?xi(e):n)}),{unsafe:!0});var Ni,ki=b.TypeError,Ii=function(e){if(Lr(e))throw ki("The method doesn't accept regular expressions");return e},Bi=Oe("match"),Pi=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Bi]=!1,"/./"[e](t)}catch(e){}}return!1},Fi=je.f,_i=P("".startsWith),Ri=P("".slice),ji=Math.min,Li=Pi("startsWith");function Mi(e){var t=wo(o.Editor.nodes(e,{match:function(e){return n.DomEditor.getNodeType(e).startsWith("header")},universal:!0}),1),r=t[0];if(null==r)return"paragraph";var i=wo(r,1)[0];return n.DomEditor.getNodeType(i)}function zi(e){return null==e.selection||!wo(o.Editor.nodes(e,{match:function(e){var t=n.DomEditor.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function Hi(e,t){t&&o.Transforms.setNodes(e,{type:t})}Vt({target:"String",proto:!0,forced:!(!Li&&(Ni=Fi(String.prototype,"startsWith"),Ni&&!Ni.writable)||Li)},{startsWith:function(e){var t=En(H(this));Ii(e);var n=St(ji(arguments.length>1?arguments[1]:void 0,t.length)),r=En(e);return _i?_i(t,r,n):Ri(t,n,n+r.length)===r}});var Ui=function(){function e(){this.title=n.t("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:n.t("header.text")}],r=this.getValue(e).toString();return t.forEach((function(e){e.value===r?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return Mi(e)},e.prototype.isDisabled=function(e){return zi(e)},e.prototype.exec=function(e,t){Hi(e,t.toString())},e}(),$i=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return Mi(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return zi(e)},e.prototype.exec=function(e,t){var n=this.type;Hi(e,t===n?"paragraph":n)},e}(),Vi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return go(t,e),t}($i),Gi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return go(t,e),t}($i),Wi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return go(t,e),t}($i),qi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return go(t,e),t}($i),Ki=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return go(t,e),t}($i),Yi={key:"headerSelect",factory:function(){return new Ui}},Xi={key:"header1",factory:function(){return new Vi}},Zi={key:"header2",factory:function(){return new Gi}},Ji={key:"header3",factory:function(){return new Wi}},Qi={key:"header4",factory:function(){return new qi}},ea={key:"header5",factory:function(){return new Ki}};function ta(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function na(e){return function(t,n,r){var i=l.default(t);return 0===(n=n.filter((function(e){return!!o.Text.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:i.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var ra={renderElems:[yi,mi,bi,Ei,wi],elemsToHtml:[{type:"header1",elemToHtml:ta(1)},{type:"header2",elemToHtml:ta(2)},{type:"header3",elemToHtml:ta(3)},{type:"header4",elemToHtml:ta(4)},{type:"header5",elemToHtml:ta(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:na(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:na(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:na(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:na(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:na(5)}],menus:[Yi,Xi,Zi,Ji,Qi,ea],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var r=e;return r.insertBreak=function(){var i=wo(o.Editor.nodes(r,{match:function(e){return n.DomEditor.getNodeType(e).startsWith("header")},universal:!0}),1)[0];i&&n.DomEditor.isSelectionAtLineEnd(e,i[1])?o.Transforms.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},r}},oa=Object.assign,ia=Object.defineProperty,aa=P([].concat),ua=!oa||E((function(){if(w&&1!==oa({b:1},oa(ia({},"a",{enumerable:!0,get:function(){ia(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!=oa({},e)[n]||xn(oa({},t)).join("")!=r}))?function(e,t){for(var n=ge(e),r=arguments.length,o=1,i=Bt.f,a=O.f;r>o;)for(var u,s=M(arguments[o++]),l=i?aa(xn(s),i(s)):xn(s),c=l.length,f=0;c>f;)u=l[f++],w&&!D(a,s,u)||(n[u]=s[u]);return n}:oa;function sa(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}Vt({target:"Object",stat:!0,forced:Object.assign!==ua},{assign:ua});var la={selector:"font",preParseHtml:function(e){var t=l.default(e);if("font"!==po(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},ca=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=o.Editor.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||!!wo(o.Editor.nodes(e,{match:function(t){return"pre"===n.DomEditor.getNodeType(t)||!!o.Editor.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var r=l.default('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var i=l.default(r).attr("data-value");"0"===i?o.Editor.removeMark(e,t):o.Editor.addMark(e,t,i)}})),this.$content=r}var i=this.$content;if(null==i)return document.createElement("ul");i.empty();var a=this.getValue(e),u=e.getMenuConfig(t).colors;(void 0===u?[]:u).forEach((function(e){var t=l.default('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=l.default('<li data-value="'+e+'"></li>');a===e&&n.addClass("active"),n.append(t),i.append(n)}));var s="";"color"===t&&(s=n.t("color.default")),"bgColor"===t&&(s=n.t("color.clear"));var c=l.default('\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 '+s+"\n </li>\n ");return i.prepend(c),i[0]},e}(),fa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("color.color"),t.iconSvg=Yo,t.mark="color",t}return go(t,e),t}(ca),da=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("color.bgColor"),t.iconSvg=Xo,t.mark="bgColor",t}return go(t,e),t}(ca),pa=["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)"],ha={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&sa(i,{color:r}),o&&sa(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!o.Text.isText(e))return t;var n,r=e,i=r.color,a=r.bgColor;return i||a?((co(t)||"span"!==po(n=l.default(t)))&&(n=l.default("<span>"+t+"</span>")),i&&n.css("color",i),a&&n.css("background-color",a),fo(n)):t},preParseHtml:[la],parseStyleHtml:function(e,t,n){var r=l.default(e);if(!o.Text.isText(t))return t;var i=t,a=ho(r,"color");a&&(i.color=a);var u=ho(r,"background-color");return u||(u=ho(r,"background")),u&&(i.bgColor=u),i},menus:[{key:"color",factory:function(){return new fa},config:{colors:pa}},{key:"bgColor",factory:function(){return new da},config:{colors:pa}}]},va=function(e){if("string"!=typeof e)return!1;var t=e.match(ga);if(!t)return!1;var n=t[1];return!(!n||!ya.test(n)&&!ma.test(n))},ga=/^(?:\w+:)?\/\/(\S+)$/,ya=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,ma=/^[^\s\.]+\.\S{2,}$/,ba=At.includes;Vt({target:"Array",proto:!0},{includes:function(e){return ba(this,e,arguments.length>1?arguments[1]:void 0)}}),Pr("includes");var Ea=P([].slice),wa=vn("slice"),Sa=Oe("species"),Da=b.Array,Ca=Math.max;function Aa(e){return void 0===e&&(e="r"),e+"-"+a.nanoid()}function xa(e){return e.replace(/</g,"<").replace(/>/g,">")}function Oa(e,t,n,r){return mo(this,void 0,void 0,(function(){var o,i;return bo(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 Ta(e,t,n){return mo(this,void 0,void 0,(function(){var r;return bo(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 Na(e){return null==e.selection||!!n.DomEditor.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function ka(e,t){return{type:"link",url:xa(e),children:t?[{text:t}]:[]}}function Ia(e,t,r){return mo(this,void 0,void 0,(function(){var i,a,u,s,l;return bo(this,(function(c){switch(c.label){case 0:return r?(t||(t=r),e.restoreSelection(),Na(e)?[2]:[4,Oa("insertLink",e,t,r)]):[2];case 1:return c.sent()?[4,Ta("insertLink",e,r)]:[2];case 2:if(i=c.sent(),null==(a=e.selection))return[2];if(o.Range.isCollapsed(a)){if((s=n.DomEditor.getLeftLengthOfMaxLength(e))<=0)return[2];e.insertText(" "),s<t.length+1&&(t=t.slice(0,s-1)),l=ka(i,t),o.Transforms.insertNodes(e,l),e.insertFragment([{text:" "}])}else if((u=o.Editor.string(e,a))!==t){if((s=n.DomEditor.getLeftLengthOfMaxLength(e))<=0)return[2];s<u.length-t.length&&(t=t.slice(0,s)),e.deleteFragment(),l=ka(i,t),o.Transforms.insertNodes(e,l)}else l=ka(i),o.Transforms.wrapNodes(e,l,{split:!0}),o.Transforms.collapse(e,{edge:"end"});return[2]}}))}))}Vt({target:"Array",proto:!0,forced:!wa},{slice:function(e,t){var n,r,o,i=U(this),a=Dt(i),u=Et(e,a),s=Et(void 0===t?a:t,a);if(Wt(i)&&(n=i.constructor,(un(n)&&(n===Da||Wt(n.prototype))||V(n)&&null===(n=n[Sa]))&&(n=void 0),n===Da||void 0===n))return Ea(i,u,s);for(r=new(void 0===n?Da:n)(Ca(s-u,0)),o=0;u<s;u++,o++)u in i&&Ur(r,o,i[u]);return r.length=o,r}});var Ba={type:"link",renderElem:function(e,t,n){var o=e,i=o.url,a=o.target,u=void 0===a?"_blank":a;return r.jsx("a",{href:i,target:u},t)}},Pa={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>"}},Fa={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=l.default(e);return 0===(t=t.filter((function(e){return!!o.Text.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 _a(){return Aa("w-e-insert-link")}var Ra=function(){function e(){this.title=n.t("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=_a(),this.urlInputId=_a(),this.buttonId=_a()}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 Na(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,r=this,i=r.textInputId,a=r.urlInputId,u=r.buttonId,s=wo(n.genModalInputElems(n.t("link.text"),i),2),c=s[0],f=s[1],d=l.default(f),p=wo(n.genModalInputElems(n.t("link.url"),a),2),h=p[0],v=p[1],g=l.default(v),y=wo(n.genModalButtonElems(u,n.t("common.ok")),1)[0];if(null==this.$content){var m=l.default("<div></div>");m.on("click","#"+u,(function(t){t.preventDefault();var n=m.find("#"+i).val(),r=m.find("#"+a).val();Ia(e,n,r),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;if(b.empty(),b.append(c),b.append(h),b.append(y),null==t||o.Range.isCollapsed(t))d.val("");else{var E=o.Editor.string(e,t);d.val(E)}return g.val(""),setTimeout((function(){d.focus()})),b[0]},e}();function ja(){return Aa("w-e-update-link")}var La=function(){function e(){this.title=n.t("link.edit"),this.iconSvg=qo,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=ja(),this.buttonId=ja()}return e.prototype.getSelectedLinkElem=function(e){var t=n.DomEditor.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 n.DomEditor.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,r=this.buttonId,i=wo(n.genModalInputElems(n.t("link.url"),t),2),a=i[0],u=i[1],s=l.default(u),c=wo(n.genModalButtonElems(r,n.t("common.ok")),1)[0];if(null==this.$content){var f=l.default("<div></div>");f.on("click","button",(function(r){r.preventDefault(),e.restoreSelection();var i=n.DomEditor.getSelectedNodeByType(e,"link"),a=i?o.Node.string(i):"",u=f.find("#"+t).val();!function(e,t,r){mo(this,void 0,void 0,(function(){var i,a;return bo(this,(function(u){switch(u.label){case 0:return r?[4,Oa("editLink",e,t,r)]:[2];case 1:return u.sent()?[4,Ta("editLink",e,r)]:[2];case 2:return i=u.sent(),a={url:xa(i)},o.Transforms.setNodes(e,a,{match:function(e){return n.DomEditor.checkNodeType(e,"link")}}),[2]}}))}))}(e,a,u),e.hidePanelOrModal()})),this.$content=f}var d=this.$content;d.empty(),d.append(a),d.append(c);var p=this.getValue(e);return s.val(p),setTimeout((function(){s.focus()})),d[0]},e}(),Ma=function(){function e(){this.title=n.t("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==n.DomEditor.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||o.Transforms.unwrapNodes(e,{match:function(e){return n.DomEditor.checkNodeType(e,"link")}})},e}(),za=function(){function e(){this.title=n.t("link.view"),this.iconSvg=Ko,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=n.DomEditor.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}(),Ha={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Ua={renderElems:[Ba],elemsToHtml:[Pa],parseElemsHtml:[Fa],menus:[{key:"insertLink",factory:function(){return new Ra},config:Ha},{key:"editLink",factory:function(){return new La},config:Ha},{key:"unLink",factory:function(){return new Ma}},{key:"viewLink",factory:function(){return new za}}],editorPlugin:function(e){var t=e.isInline,r=e.insertData,i=e.normalizeNode;e.insertNode,e.insertText;var a=e;return a.isInline=function(e){return"link"===e.type||t(e)},a.insertData=function(e){var t=e.getData("text/plain");if(va(t)){if(!Na(a)){var n=a.selection;if(null!=n){var i=o.Editor.string(a,n);Ia(a,i,t)}}}else r(e)},a.normalizeNode=function(e){var t=wo(e,2),r=t[0],u=t[1];return"link"!==n.DomEditor.getNodeType(r)?i([r,u]):""===o.Node.string(r)?o.Transforms.removeNodes(a,{at:u}):i([r,u])},a}},$a=P(1..valueOf),Va=b.RangeError,Ga=b.RangeError,Wa=b.String,qa=Math.floor,Ka=P((function(e){var t=En(H(this)),n="",r=yt(e);if(r<0||r==1/0)throw Va("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),Ya=P("".slice),Xa=P(1..toFixed),Za=function(e,t,n){return 0===t?n:t%2==1?Za(e,t-1,n*e):Za(e*e,t/2,n)},Ja=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=qa(o/1e7)},Qa=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=qa(r/t),r=r%t*1e7},eu=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=Wa(e[t]);n=""===n?r:n+Ka("0",7-r.length)+r}return n};function tu(e,t){return"w-e-image-container-"+n.DomEditor.findKey(e,t).id}function nu(e,t,i,a){var u=l.default("body"),s=tu(e,t),f=a.width,d=a.height,p=0,h=0,v=0,g=!1,y=null;function m(t){y=function(){var e=l.default("#"+s);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),p=t;var r=y.find("img");if(0===r.length)throw new Error("Cannot find image elem");h=r.width(),v=r.height(),u.on("mousemove",b),u.on("mouseup",E);var o=n.DomEditor.getHoverbar(e);o&&o.hideAndClean()}var b=c.default((function(e){e.preventDefault();var t=e.clientX,n=h+(g?p-t:t-p),r=v*(n/h);null!=y&&(n<=15||r<=15||(y.css("width",n+"px"),y.css("height",r+"px")))}),100);function E(r){if(u.off("mousemove",b),null!=y){var i=y.width().toFixed(2),a=y.height().toFixed(2),s={style:yo(yo({},t.style),{width:i+"px",height:a+"px"})};o.Transforms.setNodes(e,s,{at:n.DomEditor.findPath(e,t)}),u.off("mouseup",E)}}var w={};return f&&(w.width=f),d&&(w.height=d),r.jsx("div",{id:s,style:w,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=l.default(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(g=!0),m(e.clientX))}}},i,r.jsx("div",{className:"w-e-image-dragger left-top"}),r.jsx("div",{className:"w-e-image-dragger right-top"}),r.jsx("div",{className:"w-e-image-dragger left-bottom"}),r.jsx("div",{className:"w-e-image-dragger right-bottom"}))}Vt({target:"Number",proto:!0,forced:E((function(){return"0.000"!==Xa(8e-5,3)||"1"!==Xa(.9,0)||"1.25"!==Xa(1.255,2)||"1000000000000000128"!==Xa(0xde0b6b3a7640080,0)}))||!E((function(){Xa({})}))},{toFixed:function(e){var t,n,r,o,i=$a(this),a=yt(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw Ga("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return Wa(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*Za(2,69,1))-69)<0?i*Za(2,-t,1):i/Za(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Ja(u,0,n),r=a;r>=7;)Ja(u,1e7,0),r-=7;for(Ja(u,Za(10,r,1),0),r=t-1;r>=23;)Qa(u,1<<23),r-=23;Qa(u,1<<r),Ja(u,1,1),Qa(u,2),l=eu(u)}else Ja(u,0,n),Ja(u,1<<-t,0),l=eu(u)+Ka("0",a);return a>0?s+((o=l.length)<=a?"0."+Ka("0",a-o)+l:Ya(l,0,o-a)+"."+Ya(l,o-a)):s+l}});var ru={type:"image",renderElem:function(e,t,o){var i=e,a=i.src,u=i.alt,s=void 0===u?"":u,l=i.href,c=void 0===l?"":l,f=i.style,d=void 0===f?{}:f,p=d.width,h=void 0===p?"":p,v=d.height,g=void 0===v?"":v,y=n.DomEditor.isNodeSelected(o,e),m={};h&&(m.width="100%"),g&&(m.height="100%");var b=r.jsx("img",{style:m,src:a,alt:s,"data-href":c}),E=o.isDisabled();return y&&!E?nu(o,e,b,{width:h,height:g}):function(e,t,n,o){var i=o.width,a=o.height,u={};i&&(u.width=i),a&&(u.height=a);var s=tu(e,t);return r.jsx("div",{id:s,style:u,className:"w-e-image-container"},n)}(o,e,b,{width:h,height:g})}},ou={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.width,l=void 0===s?"":s,c=n.height,f=void 0===c?"":c,d=n.style,p=void 0===d?{}:d,h=p.width,v=void 0===h?"":h,g=p.height,y=void 0===g?"":g,m="";return v&&(m+="width: "+v+";"),y&&(m+="height: "+y+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" width="'+l+'" height="'+f+'" style="'+m+'"/>'}},iu={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=l.default(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:ho(r,"width"),height:ho(r,"height")},width:r.attr("width")||"",height:r.attr("height")||"",children:[{text:""}]}}};function au(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),mo(this,void 0,void 0,(function(){var i,a;return bo(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 uu(e,t,n){return mo(this,void 0,void 0,(function(){var r;return bo(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 su(e,t,r,i){return void 0===r&&(r=""),void 0===i&&(i=""),mo(this,void 0,void 0,(function(){var a,u,s;return bo(this,(function(l){switch(l.label){case 0:return[4,au("insertImage",e,t,r,i)];case 1:return l.sent()?[4,uu("insertImage",e,t)]:[2];case 2:return a=l.sent(),u={type:"image",src:xa(a),href:i,alt:r,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),n.DomEditor.getSelectedNodeByType(e,"image")&&e.move(1),cu(e)||(o.Transforms.insertNodes(e,u),(s=e.getMenuConfig("insertImage").onInsertedImage)&&s(u)),[2]}}))}))}function lu(e,t,r,i,a){return void 0===r&&(r=""),void 0===i&&(i=""),void 0===a&&(a={}),mo(this,void 0,void 0,(function(){var u,s,l,c,f,d;return bo(this,(function(p){switch(p.label){case 0:return[4,au("editImage",e,t,r,i)];case 1:return p.sent()?[4,uu("editImage",e,t)]:[2];case 2:return u=p.sent(),null==(s=n.DomEditor.getSelectedNodeByType(e,"image"))||(l=s.style,c={src:u,alt:r,href:i,style:yo(yo({},void 0===l?{}:l),a)},o.Transforms.setNodes(e,c,{match:function(e){return n.DomEditor.checkNodeType(e,"image")}}),f=n.DomEditor.getSelectedNodeByType(e,"image"),(d=e.getMenuConfig("editImage").onUpdatedImage)&&d(f)),[2]}}))}))}function cu(e){var t=e.selection;return null==t||!o.Range.isCollapsed(t)||!!wo(o.Editor.nodes(e,{match:function(t){var r=n.DomEditor.getNodeType(t);return"code"===r||"pre"===r||"link"===r||"list-item"===r||!!r.startsWith("header")||"blockquote"===r||!!o.Editor.isVoid(e,t)},universal:!0}),1)[0]}function fu(){return Aa("w-e-insert-image")}var du=function(){function e(){this.title=n.t("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=fu(),this.altInputId=fu(),this.hrefInputId=fu(),this.buttonId=fu()}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 cu(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=wo(n.genModalInputElems(n.t("image.src"),o),2),c=s[0],f=s[1],d=l.default(f),p=wo(n.genModalInputElems(n.t("image.desc"),i),2),h=p[0],v=p[1],g=l.default(v),y=wo(n.genModalInputElems(n.t("image.link"),a),2),m=y[0],b=y[1],E=l.default(b),w=wo(n.genModalButtonElems(u,n.t("common.ok")),1)[0];if(null==this.$content){var S=l.default("<div></div>");S.on("click","#"+u,(function(n){n.preventDefault();var r=S.find("#"+o).val().trim(),u=S.find("#"+i).val().trim(),s=S.find("#"+a).val().trim();t.insertImage(e,r,u,s),e.hidePanelOrModal()})),this.$content=S}var D=this.$content;return D.empty(),D.append(c),D.append(h),D.append(m),D.append(w),d.val(""),g.val(""),E.val(""),setTimeout((function(){d.focus()})),D[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||su(e,t,n,r))},e}(),pu=function(){function e(){this.title=n.t("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==n.DomEditor.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||o.Transforms.removeNodes(e,{match:function(e){return n.DomEditor.checkNodeType(e,"image")}})},e}();function hu(){return Aa("w-e-edit-image")}var vu=function(){function e(){this.title=n.t("image.edit"),this.iconSvg=qo,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=hu(),this.altInputId=hu(),this.hrefInputId=hu(),this.buttonId=hu()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return n.DomEditor.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||!o.Range.isCollapsed(t)||null==n.DomEditor.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(e);if(null==s)throw new Error("Not found selected image node");var c=wo(n.genModalInputElems(n.t("image.src"),o),2),f=c[0],d=c[1],p=l.default(d),h=wo(n.genModalInputElems(n.t("image.desc"),i),2),v=h[0],g=h[1],y=l.default(g),m=wo(n.genModalInputElems(n.t("image.link"),a),2),b=m[0],E=m[1],w=l.default(E),S=wo(n.genModalButtonElems(u,n.t("common.ok")),1)[0];if(null==this.$content){var D=l.default("<div></div>");D.on("click","#"+u,(function(n){n.preventDefault();var r=D.find("#"+o).val(),u=D.find("#"+i).val(),s=D.find("#"+a).val();t.updateImage(e,r,u,s),e.hidePanelOrModal()})),this.$content=D}var C=this.$content;C.empty(),C.append(f),C.append(v),C.append(b),C.append(S);var A=s,x=A.src,O=A.alt,T=void 0===O?"":O,N=A.href,k=void 0===N?"":N;return p.val(x),y.val(T),w.val(k),setTimeout((function(){p.focus()})),C[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)||lu(e,t,n,r,o))},e}(),gu=function(){function e(){this.title=n.t("image.viewLink"),this.iconSvg=Ko,this.tag="button"}return e.prototype.getValue=function(e){var t=n.DomEditor.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}(),yu=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 n.DomEditor.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 r=this.getSelectedNode(e);if(null!=r){var i=n.DomEditor.getHoverbar(e);i&&i.hideAndClean();var a=r.style,u={style:yo(yo({},void 0===a?{}:a),{width:this.value,height:""})};o.Transforms.setNodes(e,u,{match:function(e){return n.DomEditor.checkNodeType(e,"image")}})}}},e}(),mu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return go(t,e),t}(yu),bu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return go(t,e),t}(yu),Eu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return go(t,e),t}(yu);function wu(){return Aa("w-e-insert-image")}var Su=function(){function e(){this.title=n.t("image.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=wu(),this.heightInputId=wu(),this.buttonId=wu()}return e.prototype.getSelectedImageNode=function(e){return n.DomEditor.getSelectedNodeByType(e,"image")},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.getSelectedImageNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,r=t.widthInputId,i=t.heightInputId,a=t.buttonId,u=wo(n.genModalInputElems(n.t("image.width"),r,"auto"),2),s=u[0],c=u[1],f=l.default(c),d=wo(n.genModalInputElems(n.t("image.height"),i,"auto"),2),p=d[0],h=d[1],v=l.default(h),g=wo(n.genModalButtonElems(a,n.t("image.ok")),1)[0];if(null==this.$content){var y=l.default("<div></div>");y.on("click","#"+a,(function(t){t.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+i).val().trim(),s=function(e){return/^\d+(\.\d+)?%$/.test(e)},l=function(e){return/^\d+(\.\d+)?$/.test(e)},c="auto",f="auto";s(a)?c=a:l(a)&&(c=parseInt(a)+"px"),s(u)?f=u:l(u)&&(f=parseInt(u)+"px");var d=b.style,p=void 0===d?{}:d;e.restoreSelection();var h=yo(yo({},p),{style:{width:c,height:f}});o.Transforms.setNodes(e,h,{match:function(e){return n.DomEditor.checkNodeType(e,"image")}}),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;m.empty(),m.append(s),m.append(p),m.append(g);var b=this.getSelectedImageNode(e);if(null==b)return m[0];var E=b.style,w=void 0===E?{}:E,S=w.width,D=void 0===S?"auto":S,C=w.height,A=void 0===C?"auto":C;return f.val(D),v.val(A),setTimeout((function(){f.focus()})),m[0]},e}(),Du={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},Cu={renderElems:[ru],elemsToHtml:[ou],parseElemsHtml:[iu],menus:[{key:"insertImage",factory:function(){return new du},config:Du},{key:"deleteImage",factory:function(){return new pu}},{key:"editImage",factory:function(){return new vu},config:Du},{key:"viewImageLink",factory:function(){return new gu}},{key:"imageWidth30",factory:function(){return new mu}},{key:"imageWidth50",factory:function(){return new bu}},{key:"imageWidth100",factory:function(){return new Eu}},{key:"editorImageSizeMenu",factory:function(){return new Su}}],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}},Au={type:"todo",renderElem:function(e,t,i){var a=!1;i.isDisabled()&&(a=!0);var u=e.checked,s=r.jsx("div",{style:{margin:"5px 0"}},r.jsx("span",{contentEditable:!1,style:{marginRight:"0.5em"}},r.jsx("input",{type:"checkbox",checked:u,disabled:a,on:{change:function(t){var r=n.DomEditor.findPath(i,e),a={checked:t.target.checked};o.Transforms.setNodes(i,a,{at:r})}}})),r.jsx("span",null,t));return s}},xu=function(){function e(){this.title=n.t("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!!n.DomEditor.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!n.DomEditor.getSelectedElems(e).some((function(t){if(o.Editor.isVoid(e,t)&&o.Editor.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);o.Transforms.setNodes(e,{type:n?"paragraph":"todo"})},e}(),Ou={renderElems:[Au],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=l.default(e).find("li"),n=l.default('<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:[{selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=l.default(e);0===(t=t.filter((function(e){return!!o.Text.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(i=!0),{type:"todo",checked:i,children:t}}}],menus:[{key:"todo",factory:function(){return new xu}}],editorPlugin:function(e){var t=e.deleteBackward,r=e;return r.deleteBackward=function(r){var i=e.selection;if(i&&o.Range.isCollapsed(i)){var a=n.DomEditor.getSelectedNodeByType(e,"todo");if(a&&0===o.Node.string(a).length)return void o.Transforms.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},r}},Tu={type:"blockquote",renderElem:function(e,t,n){return r.jsx("blockquote",null,t)}},Nu={type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}},ku={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=l.default(e);return 0===(t=t.filter((function(e){return!!o.Text.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},Iu=function(){function e(){this.title=n.t("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!!n.DomEditor.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!wo(o.Editor.nodes(e,{match:function(e){var t=n.DomEditor.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";o.Transforms.setNodes(e,{type:n},{mode:"highest"})}},e}(),Bu={renderElems:[Tu],elemsToHtml:[Nu],parseElemsHtml:[ku],menus:[{key:"blockquote",factory:function(){return new Iu}}],editorPlugin:function(e){var t=e.insertBreak,r=e.insertText,i=e;return i.insertBreak=function(){var a=i.selection;if(null==a)return t();var u=wo(o.Editor.nodes(e,{match:function(e){return n.DomEditor.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!u)return t();var s=u[0],l=n.DomEditor.findPath(e,s),c=o.Editor.end(e,l);if(o.Point.equals(c,a.focus)){var f=o.Node.string(s);if(f&&"\n"===f.slice(-1))return e.deleteBackward("character"),void o.Transforms.insertNodes(i,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}r("\n")},i}},Pu=function(){function e(){this.title=n.t("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||!!wo(o.Editor.nodes(e,{match:function(t){return"pre"===n.DomEditor.getNodeType(t)||!!o.Editor.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=l.default('<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=l.default(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=l.default("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),Fu={menus:[{key:"emotion",factory:function(){return new Pu},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},_u={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Ru={selector:"font",preParseHtml:function(e){var t=l.default(e);if("font"!==po(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",_u[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},ju=P("".indexOf);Vt({target:"String",proto:!0,forced:!Pi("includes")},{includes:function(e){return!!~ju(En(H(this)),En(Ii(e)),arguments.length>1?arguments[1]:void 0)}});var Lu,Mu,zu=function(e){return e&&e.Math==Math&&e},Hu=zu("object"==typeof globalThis&&globalThis)||zu("object"==typeof window&&window)||zu("object"==typeof self&&self)||zu("object"==typeof p&&p)||function(){return this}()||Function("return this")(),Uu=Function.prototype,$u=Uu.apply,Vu=Uu.bind,Gu=Uu.call,Wu="object"==typeof Reflect&&Reflect.apply||(Vu?Gu.bind($u):function(){return Gu.apply($u,arguments)}),qu=Function.prototype,Ku=qu.bind,Yu=qu.call,Xu=Ku&&Ku.bind(Yu),Zu=Ku?function(e){return e&&Xu(Yu,e)}:function(e){return e&&function(){return Yu.apply(e,arguments)}},Ju=function(e){return"function"==typeof e},Qu=function(e){try{return!!e()}catch(e){return!0}},es=!Qu((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ts=Function.prototype.call,ns=ts.bind?ts.bind(ts):function(){return ts.apply(ts,arguments)},rs={}.propertyIsEnumerable,os=Object.getOwnPropertyDescriptor,is=os&&!rs.call({1:2},1)?function(e){var t=os(this,e);return!!t&&t.enumerable}:rs,as={f:is},us=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ss=Zu({}.toString),ls=Zu("".slice),cs=function(e){return ls(ss(e),8,-1)},fs=Hu.Object,ds=Zu("".split),ps=Qu((function(){return!fs("z").propertyIsEnumerable(0)}))?function(e){return"String"==cs(e)?ds(e,""):fs(e)}:fs,hs=Hu.TypeError,vs=function(e){if(null==e)throw hs("Can't call method on "+e);return e},gs=function(e){return ps(vs(e))},ys=function(e){return"object"==typeof e?null!==e:Ju(e)},ms={},bs=function(e){return Ju(e)?e:void 0},Es=function(e,t){return arguments.length<2?bs(ms[e])||bs(Hu[e]):ms[e]&&ms[e][t]||Hu[e]&&Hu[e][t]},ws=Zu({}.isPrototypeOf),Ss=Es("navigator","userAgent")||"",Ds=Hu.process,Cs=Hu.Deno,As=Ds&&Ds.versions||Cs&&Cs.version,xs=As&&As.v8;xs&&(Mu=(Lu=xs.split("."))[0]>0&&Lu[0]<4?1:+(Lu[0]+Lu[1])),!Mu&&Ss&&(!(Lu=Ss.match(/Edge\/(\d+)/))||Lu[1]>=74)&&(Lu=Ss.match(/Chrome\/(\d+)/))&&(Mu=+Lu[1]);var Os=Mu,Ts=!!Object.getOwnPropertySymbols&&!Qu((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Os&&Os<41})),Ns=Ts&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ks=Hu.Object,Is=Ns?function(e){return"symbol"==typeof e}:function(e){var t=Es("Symbol");return Ju(t)&&ws(t.prototype,ks(e))},Bs=Hu.String,Ps=Hu.TypeError,Fs=function(e){if(Ju(e))return e;throw Ps(function(e){try{return Bs(e)}catch(e){return"Object"}}(e)+" is not a function")},_s=Hu.TypeError,Rs=Object.defineProperty,js="__core-js_shared__",Ls=Hu[js]||function(e,t){try{Rs(Hu,e,{value:t,configurable:!0,writable:!0})}catch(n){Hu[e]=t}return t}(js,{}),Ms=v((function(e){(e.exports=function(e,t){return Ls[e]||(Ls[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),zs=Hu.Object,Hs=function(e){return zs(vs(e))},Us=Zu({}.hasOwnProperty),$s=Object.hasOwn||function(e,t){return Us(Hs(e),t)},Vs=0,Gs=Math.random(),Ws=Zu(1..toString),qs=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ws(++Vs+Gs,36)},Ks=Ms("wks"),Ys=Hu.Symbol,Xs=Ys&&Ys.for,Zs=Ns?Ys:Ys&&Ys.withoutSetter||qs,Js=function(e){if(!$s(Ks,e)||!Ts&&"string"!=typeof Ks[e]){var t="Symbol."+e;Ts&&$s(Ys,e)?Ks[e]=Ys[e]:Ks[e]=Ns&&Xs?Xs(t):Zs(t)}return Ks[e]},Qs=Hu.TypeError,el=Js("toPrimitive"),tl=function(e,t){if(!ys(e)||Is(e))return e;var n,r,o=null==(n=e[el])?void 0:Fs(n);if(o){if(void 0===t&&(t="default"),r=ns(o,e,t),!ys(r)||Is(r))return r;throw Qs("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Ju(n=e.toString)&&!ys(r=ns(n,e)))return r;if(Ju(n=e.valueOf)&&!ys(r=ns(n,e)))return r;if("string"!==t&&Ju(n=e.toString)&&!ys(r=ns(n,e)))return r;throw _s("Can't convert object to primitive value")}(e,t)},nl=function(e){var t=tl(e,"string");return Is(t)?t:t+""},rl=Hu.document,ol=ys(rl)&&ys(rl.createElement),il=function(e){return ol?rl.createElement(e):{}},al=!es&&!Qu((function(){return 7!=Object.defineProperty(il("div"),"a",{get:function(){return 7}}).a})),ul=Object.getOwnPropertyDescriptor,sl={f:es?ul:function(e,t){if(e=gs(e),t=nl(t),al)try{return ul(e,t)}catch(e){}if($s(e,t))return us(!ns(as.f,e,t),e[t])}},ll=/#|\.prototype\./,cl=function(e,t){var n=dl[fl(e)];return n==hl||n!=pl&&(Ju(t)?Qu(t):!!t)},fl=cl.normalize=function(e){return String(e).replace(ll,".").toLowerCase()},dl=cl.data={},pl=cl.NATIVE="N",hl=cl.POLYFILL="P",vl=cl,gl=Zu(Zu.bind),yl=function(e,t){return Fs(e),void 0===t?e:gl?gl(e,t):function(){return e.apply(t,arguments)}},ml=Hu.String,bl=Hu.TypeError,El=function(e){if(ys(e))return e;throw bl(ml(e)+" is not an object")},wl=Hu.TypeError,Sl=Object.defineProperty,Dl={f:es?Sl:function(e,t,n){if(El(e),t=nl(t),El(n),al)try{return Sl(e,t,n)}catch(e){}if("get"in n||"set"in n)throw wl("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Cl=es?function(e,t,n){return Dl.f(e,t,us(1,n))}:function(e,t,n){return e[t]=n,e},Al=sl.f,xl=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 Wu(e,this,arguments)};return t.prototype=e.prototype,t},Ol=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?Hu:d?Hu[c]:(Hu[c]||{}).prototype,v=f?ms:ms[c]||Cl(ms,c,{})[c],g=v.prototype;for(o in t)n=!vl(f?o:c+(d?".":"#")+o,e.forced)&&h&&$s(h,o),a=v[o],n&&(u=e.noTargetGet?(l=Al(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?yl(i,Hu):e.wrap&&n?xl(i):p&&Ju(i)?Zu(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Cl(s,"sham",!0),Cl(v,o,s),p&&($s(ms,r=c+"Prototype")||Cl(ms,r,{}),Cl(ms[r],o,i),e.real&&g&&!g[o]&&Cl(g,o,i)))},Tl=Array.isArray||function(e){return"Array"==cs(e)},Nl=Math.ceil,kl=Math.floor,Il=function(e){var t=+e;return t!=t||0===t?0:(t>0?kl:Nl)(t)},Bl=Math.min,Pl=function(e){return(t=e.length)>0?Bl(Il(t),9007199254740991):0;var t},Fl=function(e,t,n){var r=nl(t);r in e?Dl.f(e,r,us(0,n)):e[r]=n},_l={};_l[Js("toStringTag")]="z";var Rl="[object z]"===String(_l),jl=Js("toStringTag"),Ll=Hu.Object,Ml="Arguments"==cs(function(){return arguments}()),zl=Rl?cs: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=Ll(e),jl))?n:Ml?cs(t):"Object"==(r=cs(t))&&Ju(t.callee)?"Arguments":r},Hl=Zu(Function.toString);Ju(Ls.inspectSource)||(Ls.inspectSource=function(e){return Hl(e)});var Ul=Ls.inspectSource,$l=function(){},Vl=[],Gl=Es("Reflect","construct"),Wl=/^\s*(?:class|function)\b/,ql=Zu(Wl.exec),Kl=!Wl.exec($l),Yl=function(e){if(!Ju(e))return!1;try{return Gl($l,Vl,e),!0}catch(e){return!1}},Xl=!Gl||Qu((function(){var e;return Yl(Yl.call)||!Yl(Object)||!Yl((function(){e=!0}))||e}))?function(e){if(!Ju(e))return!1;switch(zl(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Kl||!!ql(Wl,Ul(e))}:Yl,Zl=Js("species"),Jl=Hu.Array,Ql=function(e,t){return new(function(e){var t;return Tl(e)&&(t=e.constructor,(Xl(t)&&(t===Jl||Tl(t.prototype))||ys(t)&&null===(t=t[Zl]))&&(t=void 0)),void 0===t?Jl:t}(e))(0===t?0:t)},ec=Js("species"),tc=Js("isConcatSpreadable"),nc=9007199254740991,rc="Maximum allowed index exceeded",oc=Hu.TypeError,ic=Os>=51||!Qu((function(){var e=[];return e[tc]=!1,e.concat()[0]!==e})),ac=function(e){return Os>=51||!Qu((function(){var t=[];return(t.constructor={})[ec]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}("concat"),uc=function(e){if(!ys(e))return!1;var t=e[tc];return void 0!==t?!!t:Tl(e)};Ol({target:"Array",proto:!0,forced:!ic||!ac},{concat:function(e){var t,n,r,o,i,a=Hs(this),u=Ql(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(uc(i=-1===t?a:arguments[t])){if(s+(o=Pl(i))>nc)throw oc(rc);for(n=0;n<o;n++,s++)n in i&&Fl(u,s,i[n])}else{if(s>=nc)throw oc(rc);Fl(u,s++,i)}return u.length=s,u}});var sc,lc=Hu.String,cc=function(e){if("Symbol"===zl(e))throw TypeError("Cannot convert a Symbol value to a string");return lc(e)},fc=Math.max,dc=Math.min,pc=function(e,t){var n=Il(e);return n<0?fc(n+t,0):dc(n,t)},hc=function(e){return function(t,n,r){var o,i=gs(t),a=Pl(i),u=pc(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}},vc={includes:hc(!0),indexOf:hc(!1)},gc={},yc=vc.indexOf,mc=Zu([].push),bc=function(e,t){var n,r=gs(e),o=0,i=[];for(n in r)!$s(gc,n)&&$s(r,n)&&mc(i,n);for(;t.length>o;)$s(r,n=t[o++])&&(~yc(i,n)||mc(i,n));return i},Ec=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wc=Object.keys||function(e){return bc(e,Ec)},Sc=es?Object.defineProperties:function(e,t){El(e);for(var n,r=gs(t),o=wc(t),i=o.length,a=0;i>a;)Dl.f(e,n=o[a++],r[n]);return e},Dc=Es("document","documentElement"),Cc=Ms("keys"),Ac=function(e){return Cc[e]||(Cc[e]=qs(e))},xc=Ac("IE_PROTO"),Oc=function(){},Tc=function(e){return"<script>"+e+"<\/script>"},Nc=function(e){e.write(Tc("")),e.close();var t=e.parentWindow.Object;return e=null,t},kc=function(){try{sc=new ActiveXObject("htmlfile")}catch(e){}var e,t;kc="undefined"!=typeof document?document.domain&&sc?Nc(sc):((t=il("iframe")).style.display="none",Dc.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Tc("document.F=Object")),e.close(),e.F):Nc(sc);for(var n=Ec.length;n--;)delete kc.prototype[Ec[n]];return kc()};gc[xc]=!0;var Ic,Bc,Pc,Fc=Object.create||function(e,t){var n;return null!==e?(Oc.prototype=El(e),n=new Oc,Oc.prototype=null,n[xc]=e):n=kc(),void 0===t?n:Sc(n,t)},_c=Ec.concat("length","prototype"),Rc={f:Object.getOwnPropertyNames||function(e){return bc(e,_c)}},jc=Hu.Array,Lc=Math.max,Mc=Rc.f,zc="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Hc=function(e){try{return Mc(e)}catch(e){return function(e,t,n){for(var r=Pl(e),o=pc(t,r),i=pc(void 0===n?r:n,r),a=jc(Lc(i-o,0)),u=0;o<i;o++,u++)Fl(a,u,e[o]);return a.length=u,a}(zc)}},Uc={f:function(e){return zc&&"Window"==cs(e)?Hc(e):Mc(gs(e))}},$c={f:Object.getOwnPropertySymbols},Vc=Zu([].slice),Gc=function(e,t,n,r){r&&r.enumerable?e[t]=n:Cl(e,t,n)},Wc={f:Js},qc=Dl.f,Kc=function(e){var t=ms.Symbol||(ms.Symbol={});$s(t,e)||qc(t,e,{value:Wc.f(e)})},Yc=Rl?{}.toString:function(){return"[object "+zl(this)+"]"},Xc=Dl.f,Zc=Js("toStringTag"),Jc=function(e,t,n,r){if(e){var o=n?e:e.prototype;$s(o,Zc)||Xc(o,Zc,{configurable:!0,value:t}),r&&!Rl&&Cl(o,"toString",Yc)}},Qc=Hu.WeakMap,ef=Ju(Qc)&&/native code/.test(Ul(Qc)),tf="Object already initialized",nf=Hu.TypeError,rf=Hu.WeakMap;if(ef||Ls.state){var of=Ls.state||(Ls.state=new rf),af=Zu(of.get),uf=Zu(of.has),sf=Zu(of.set);Ic=function(e,t){if(uf(of,e))throw new nf(tf);return t.facade=e,sf(of,e,t),t},Bc=function(e){return af(of,e)||{}},Pc=function(e){return uf(of,e)}}else{var lf=Ac("state");gc[lf]=!0,Ic=function(e,t){if($s(e,lf))throw new nf(tf);return t.facade=e,Cl(e,lf,t),t},Bc=function(e){return $s(e,lf)?e[lf]:{}},Pc=function(e){return $s(e,lf)}}var cf={set:Ic,get:Bc,has:Pc,enforce:function(e){return Pc(e)?Bc(e):Ic(e,{})},getterFor:function(e){return function(t){var n;if(!ys(t)||(n=Bc(t)).type!==e)throw nf("Incompatible receiver, "+e+" required");return n}}},ff=Zu([].push),df=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Hs(s),v=ps(h),g=yl(l,c),y=Pl(v),m=0,b=f||Ql,E=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)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:ff(E,d)}else switch(e){case 4:return!1;case 7:ff(E,d)}return i?-1:r||o?o:E}},pf=[df(0),df(1),df(2),df(3),df(4),df(5),df(6),df(7)][0],hf=Ac("hidden"),vf="Symbol",gf=Js("toPrimitive"),yf=cf.set,mf=cf.getterFor(vf),bf=Object.prototype,Ef=Hu.Symbol,wf=Ef&&Ef.prototype,Sf=Hu.TypeError,Df=Hu.QObject,Cf=Es("JSON","stringify"),Af=sl.f,xf=Dl.f,Of=Uc.f,Tf=as.f,Nf=Zu([].push),kf=Ms("symbols"),If=Ms("op-symbols"),Bf=Ms("string-to-symbol-registry"),Pf=Ms("symbol-to-string-registry"),Ff=Ms("wks"),_f=!Df||!Df.prototype||!Df.prototype.findChild,Rf=es&&Qu((function(){return 7!=Fc(xf({},"a",{get:function(){return xf(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Af(bf,t);r&&delete bf[t],xf(e,t,n),r&&e!==bf&&xf(bf,t,r)}:xf,jf=function(e,t){var n=kf[e]=Fc(wf);return yf(n,{type:vf,tag:e,description:t}),es||(n.description=t),n},Lf=function(e,t,n){e===bf&&Lf(If,t,n),El(e);var r=nl(t);return El(n),$s(kf,r)?(n.enumerable?($s(e,hf)&&e[hf][r]&&(e[hf][r]=!1),n=Fc(n,{enumerable:us(0,!1)})):($s(e,hf)||xf(e,hf,us(1,{})),e[hf][r]=!0),Rf(e,r,n)):xf(e,r,n)},Mf=function(e,t){El(e);var n=gs(t),r=wc(n).concat($f(n));return pf(r,(function(t){es&&!ns(zf,n,t)||Lf(e,t,n[t])})),e},zf=function(e){var t=nl(e),n=ns(Tf,this,t);return!(this===bf&&$s(kf,t)&&!$s(If,t))&&(!(n||!$s(this,t)||!$s(kf,t)||$s(this,hf)&&this[hf][t])||n)},Hf=function(e,t){var n=gs(e),r=nl(t);if(n!==bf||!$s(kf,r)||$s(If,r)){var o=Af(n,r);return!o||!$s(kf,r)||$s(n,hf)&&n[hf][r]||(o.enumerable=!0),o}},Uf=function(e){var t=Of(gs(e)),n=[];return pf(t,(function(e){$s(kf,e)||$s(gc,e)||Nf(n,e)})),n},$f=function(e){var t=e===bf,n=Of(t?If:gs(e)),r=[];return pf(n,(function(e){!$s(kf,e)||t&&!$s(bf,e)||Nf(r,kf[e])})),r};if(Ts||(Ef=function(){if(ws(wf,this))throw Sf("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?cc(arguments[0]):void 0,t=qs(e),n=function(e){this===bf&&ns(n,If,e),$s(this,hf)&&$s(this[hf],t)&&(this[hf][t]=!1),Rf(this,t,us(1,e))};return es&&_f&&Rf(bf,t,{configurable:!0,set:n}),jf(t,e)},wf=Ef.prototype,Gc(wf,"toString",(function(){return mf(this).tag})),Gc(Ef,"withoutSetter",(function(e){return jf(qs(e),e)})),as.f=zf,Dl.f=Lf,sl.f=Hf,Rc.f=Uc.f=Uf,$c.f=$f,Wc.f=function(e){return jf(Js(e),e)},es&&xf(wf,"description",{configurable:!0,get:function(){return mf(this).description}})),Ol({global:!0,wrap:!0,forced:!Ts,sham:!Ts},{Symbol:Ef}),pf(wc(Ff),(function(e){Kc(e)})),Ol({target:vf,stat:!0,forced:!Ts},{for:function(e){var t=cc(e);if($s(Bf,t))return Bf[t];var n=Ef(t);return Bf[t]=n,Pf[n]=t,n},keyFor:function(e){if(!Is(e))throw Sf(e+" is not a symbol");if($s(Pf,e))return Pf[e]},useSetter:function(){_f=!0},useSimple:function(){_f=!1}}),Ol({target:"Object",stat:!0,forced:!Ts,sham:!es},{create:function(e,t){return void 0===t?Fc(e):Mf(Fc(e),t)},defineProperty:Lf,defineProperties:Mf,getOwnPropertyDescriptor:Hf}),Ol({target:"Object",stat:!0,forced:!Ts},{getOwnPropertyNames:Uf,getOwnPropertySymbols:$f}),Ol({target:"Object",stat:!0,forced:Qu((function(){$c.f(1)}))},{getOwnPropertySymbols:function(e){return $c.f(Hs(e))}}),Cf){var Vf=!Ts||Qu((function(){var e=Ef();return"[null]"!=Cf([e])||"{}"!=Cf({a:e})||"{}"!=Cf(Object(e))}));Ol({target:"JSON",stat:!0,forced:Vf},{stringify:function(e,t,n){var r=Vc(arguments),o=t;if((ys(t)||void 0!==e)&&!Is(e))return Tl(t)||(t=function(e,t){if(Ju(o)&&(t=ns(o,this,e,t)),!Is(t))return t}),r[1]=t,Wu(Cf,null,r)}})}if(!wf[gf]){var Gf=wf.valueOf;Gc(wf,gf,(function(e){return ns(Gf,this)}))}Jc(Ef,vf),gc[hf]=!0,Kc("asyncIterator"),Kc("hasInstance"),Kc("isConcatSpreadable"),Kc("iterator"),Kc("match"),Kc("matchAll"),Kc("replace"),Kc("search"),Kc("species"),Kc("split"),Kc("toPrimitive"),Kc("toStringTag"),Kc("unscopables"),Jc(Hu.JSON,"JSON",!0);var Wf,qf,Kf,Yf=ms.Symbol,Xf={},Zf=Function.prototype,Jf=es&&Object.getOwnPropertyDescriptor,Qf=$s(Zf,"name"),ed={EXISTS:Qf,PROPER:Qf&&"something"===function(){}.name,CONFIGURABLE:Qf&&(!es||es&&Jf(Zf,"name").configurable)},td=!Qu((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),nd=Ac("IE_PROTO"),rd=Hu.Object,od=rd.prototype,id=td?rd.getPrototypeOf:function(e){var t=Hs(e);if($s(t,nd))return t[nd];var n=t.constructor;return Ju(n)&&t instanceof n?n.prototype:t instanceof rd?od:null},ad=Js("iterator"),ud=!1;[].keys&&("next"in(Kf=[].keys())?(qf=id(id(Kf)))!==Object.prototype&&(Wf=qf):ud=!0);var sd=null==Wf||Qu((function(){var e={};return Wf[ad].call(e)!==e}));Wf=sd?{}:Fc(Wf),Ju(Wf[ad])||Gc(Wf,ad,(function(){return this}));var ld={IteratorPrototype:Wf,BUGGY_SAFARI_ITERATORS:ud},cd=ld.IteratorPrototype,fd=function(){return this};Hu.String,Hu.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{Zu(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(e){}}();var dd=ed.PROPER,pd=ld.BUGGY_SAFARI_ITERATORS,hd=Js("iterator"),vd="keys",gd="values",yd="entries",md=function(){return this},bd=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Fc(cd,{next:us(+!r,n)}),Jc(e,o,!1,!0),Xf[o]=fd}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!pd&&e in p)return p[e];switch(e){case vd:case gd:case yd:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[hd]||p["@@iterator"]||o&&p[o],v=!pd&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=id(g.call(new e)))!==Object.prototype&&u.next&&(Jc(u,f,!0,!0),Xf[f]=md),dd&&o==gd&&h&&h.name!==gd&&(d=!0,v=function(){return ns(h,this)}),o)if(s={values:c(gd),keys:i?v:c(vd),entries:c(yd)},a)for(l in s)(pd||d||!(l in p))&&Gc(p,l,s[l]);else Ol({target:t,proto:!0,forced:pd||d},s);return a&&p[hd]!==v&&Gc(p,hd,v,{name:o}),Xf[t]=v,s},Ed="Array Iterator",wd=cf.set,Sd=cf.getterFor(Ed);bd(Array,"Array",(function(e,t){wd(this,{type:Ed,target:gs(e),index:0,kind:t})}),(function(){var e=Sd(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"),Xf.Arguments=Xf.Array;var Dd=Js("toStringTag");for(var Cd 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 Ad=Hu[Cd],xd=Ad&&Ad.prototype;xd&&zl(xd)!==Dd&&Cl(xd,Dd,Cd),Xf[Cd]=Xf.Array}var Od=Yf;Kc("asyncDispose"),Kc("dispose"),Kc("matcher"),Kc("metadata"),Kc("observable"),Kc("patternMatch"),Kc("replaceAll");var Td=Od,Nd=Zu("".charAt),kd=Zu("".charCodeAt),Id=Zu("".slice),Bd=function(e){return function(t,n){var r,o,i=cc(vs(t)),a=Il(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=kd(i,a))<55296||r>56319||a+1===u||(o=kd(i,a+1))<56320||o>57343?e?Nd(i,a):r:e?Id(i,a,a+2):o-56320+(r-55296<<10)+65536}},Pd=(Bd(!1),Bd(!0)),Fd="String Iterator",_d=cf.set,Rd=cf.getterFor(Fd);bd(String,"String",(function(e){_d(this,{type:Fd,string:cc(e),index:0})}),(function(){var e,t=Rd(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Pd(n,r),t.index+=e.length,{value:e,done:!1})}));var jd=Wc.f("iterator"),Ld=v((function(e){function t(n){return"function"==typeof Td&&"symbol"==typeof jd?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Td&&e.constructor===Td&&e!==Td.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Md=h(Ld),zd=pt.EXISTS,Hd=$e.f,Ud=Function.prototype,$d=P(Ud.toString),Vd=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Gd=P(Vd.exec);w&&!zd&&Hd(Ud,"name",{configurable:!0,get:function(){try{return Gd(Vd,$d(this))[1]}catch(e){return""}}});var Wd=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=o.Editor.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!wo(o.Editor.nodes(e,{match:function(t){return"pre"===n.DomEditor.getNodeType(t)||!!o.Editor.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}(),qd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("fontSize.title"),t.iconSvg=Zo,t.mark="fontSize",t}return go(t,e),t.prototype.getOptions=function(e){var t=[],r=e.getMenuConfig(this.mark).fontSizeList,o=void 0===r?[]:r;t.push({text:n.t("fontSize.default"),value:""}),o.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===Md(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},t}(Wd),Kd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("fontFamily.title"),t.iconSvg=Jo,t.mark="fontFamily",t.selectPanelWidth=150,t}return go(t,e),t.prototype.getOptions=function(e){var t=[],r=e.getMenuConfig(this.mark).fontFamilyList,o=void 0===r?[]:r;t.push({text:n.t("fontFamily.default"),value:""}),o.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===Md(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},t}(Wd),Yd={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&sa(i,{fontSize:r}),o&&sa(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!o.Text.isText(e))return t;var n,r=e,i=r.fontSize,a=r.fontFamily;return i||a?((co(t)||"span"!==po(n=l.default(t)))&&(n=l.default("<span>"+t+"</span>")),i&&n.css("font-size",i),a&&n.css("font-family",a),fo(n)):t},preParseHtml:[Ru],parseStyleHtml:function(e,t,n){var r=l.default(e);if(!o.Text.isText(t))return t;var i=t,a=n.getMenuConfig("fontSize").fontSizeList,u=void 0===a?[]:a,s=ho(r,"font-size"),c=u.find((function(e){return e.value&&e.value===s}))||u.includes(s);s&&c&&(i.fontSize=s);var f=n.getMenuConfig("fontFamily").fontFamilyList,d=void 0===f?[]:f,p=ho(r,"font-family").replace(/"/g,""),h=d.find((function(e){return e.value&&e.value===p}))||d.includes(p);return p&&h&&(i.fontFamily=p),i},menus:[{key:"fontSize",factory:function(){return new qd},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 Kd},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Xd={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=l.default(e),n=ho(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]}},Zd=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=wo(o.Editor.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":wo(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=wo(o.Editor.nodes(e,{match:function(e){var t=n.DomEditor.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),Jd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("indent.decrease"),t.iconSvg=Qo,t}return go(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){o.Transforms.setNodes(e,{indent:null},{match:function(e){return o.Element.isElement(e)}})},t}(Zd),Qd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("indent.increase"),t.iconSvg=ei,t.DEFAULT_INDENT_VALUE="2em",t}return go(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.getIndentValue=function(e){var t=this.getMatchNode(e);if(!t)return this.DEFAULT_INDENT_VALUE;var n=t.children.filter(o.Text.isText)[0];if(!n||!n.fontSize)return this.DEFAULT_INDENT_VALUE;var r=n.fontSize,i=parseInt(n.fontSize);return""+2*i+r.replace(""+i,"")},t.prototype.exec=function(e,t){var n=this.getIndentValue(e);o.Transforms.setNodes(e,{indent:n},{match:function(e){return o.Element.isElement(e)},mode:"highest"})},t}(Zd),ep={renderStyle:function(e,t){if(!o.Element.isElement(e))return t;var n=e.indent,r=t;return n&&sa(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!o.Element.isElement(e))return t;var n=e.indent;if(!n)return t;var r=l.default(t);return r.css("text-indent",n),fo(r)},preParseHtml:[Xd],parseStyleHtml:function(e,t,n){var r=l.default(e);if(!o.Element.isElement(t))return t;var i=t,a=ho(r,"text-indent"),u=parseInt(a,10);return a&&u>0&&(i.indent=a),i},menus:[{key:"indent",factory:function(){return new Qd}},{key:"delIndent",factory:function(){return new Jd}}]},tp=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=wo(o.Editor.nodes(e,{match:function(e){var t=n.DomEditor.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||!!n.DomEditor.getSelectedElems(e).some((function(t){var n=t.type;return!(!o.Editor.isVoid(e,t)||!o.Editor.isBlock(e,t)||"video"===n)||!!["pre","code"].includes(n)||void 0}))},e}(),np=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("justify.left"),t.iconSvg=ti,t}return go(t,e),t.prototype.exec=function(e,t){o.Transforms.setNodes(e,{textAlign:"left"},{match:function(t){return o.Element.isElement(t)&&!e.isInline(t)}})},t}(tp),rp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("justify.right"),t.iconSvg=ni,t}return go(t,e),t.prototype.exec=function(e,t){o.Transforms.setNodes(e,{textAlign:"right"},{match:function(t){return o.Element.isElement(t)&&!e.isInline(t)}})},t}(tp),op=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("justify.center"),t.iconSvg=ri,t}return go(t,e),t.prototype.exec=function(e,t){o.Transforms.setNodes(e,{textAlign:"center"},{match:function(t){return o.Element.isElement(t)&&!e.isInline(t)}})},t}(tp),ip=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=n.t("justify.justify"),t.iconSvg=oi,t}return go(t,e),t.prototype.exec=function(e,t){o.Transforms.setNodes(e,{textAlign:"justify"},{match:function(t){return o.Element.isElement(t)&&!e.isInline(t)}})},t}(tp),ap={renderStyle:function(e,t){if(!o.Element.isElement(e))return t;var n=e.textAlign,r=t;return n&&sa(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!o.Element.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=l.default(t);return r.css("text-align",n),fo(r)},parseStyleHtml:function(e,t,n){var r=l.default(e);if(!o.Element.isElement(t))return t;var i=t,a=ho(r,"text-align");return a&&(i.textAlign=a),i},menus:[{key:"justifyLeft",factory:function(){return new np}},{key:"justifyRight",factory:function(){return new rp}},{key:"justifyCenter",factory:function(){return new op}},{key:"justifyJustify",factory:function(){return new ip}}]},up=function(){function e(){this.title=n.t("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=[],r=e.getMenuConfig("lineHeight").lineHeightList,o=void 0===r?[]:r;t.push({text:n.t("lineHeight.default"),value:""}),o.forEach((function(e){t.push({text:e,value:e})}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=wo(o.Editor.nodes(e,{match:function(e){var t=n.DomEditor.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?"":o.Element.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){o.Transforms.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),sp={renderStyle:function(e,t){if(!o.Element.isElement(e))return t;var n=e.lineHeight,r=t;return n&&sa(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!o.Element.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=l.default(t);return r.css("line-height",n),fo(r)},parseStyleHtml:function(e,t,n){var r=l.default(e);if(!o.Element.isElement(t))return t;var i=t,a=n.getMenuConfig("lineHeight").lineHeightList,u=void 0===a?[]:a,s=ho(r,"line-height");return s&&u.includes(s)&&(i.lineHeight=s),i},menus:[{key:"lineHeight",factory:function(){return new up},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},lp=function(){function e(){this.title=n.t("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}(),cp=function(){function e(){this.title=n.t("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}(),fp={menus:[{key:"redo",factory:function(){return new lp}},{key:"undo",factory:function(){return new cp}}]},dp={type:"divider",renderElem:function(e,t,o){var i=n.DomEditor.isNodeSelected(o,e);return r.h("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:i?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[r.h("hr")])}},pp={type:"divider",elemToHtml:function(e,t){return"<hr/>"}},hp={selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}},vp=function(){function e(){this.title=n.t("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||!!n.DomEditor.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var r=n.DomEditor.getNodeType(t);return"table"===r||"pre"===r||void 0}))},e.prototype.exec=function(e,t){o.Transforms.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),gp={renderElems:[dp],elemsToHtml:[pp],parseElemsHtml:[hp],menus:[{key:"divider",factory:function(){return new vp}}],editorPlugin:function(e){var t=e.isVoid,r=e.normalizeNode,i=e;return i.isVoid=function(e){return"divider"===e.type||t(e)},i.normalizeNode=function(e){var t=wo(e,2),a=t[0],u=t[1];if("divider"!==n.DomEditor.getNodeType(a))return r([a,u]);n.DomEditor.isLastNode(i,a)&&o.Transforms.insertNodes(i,n.DomEditor.genEmptyParagraph(),{at:[u[0]+1]})},i}},yp=pn.map;Vt({target:"Array",proto:!0,forced:!vn("map")},{map:function(e){return yp(this,e,arguments.length>1?arguments[1]:void 0)}});var mp=P([].join),bp=M!=Object,Ep=Fo("join",",");Vt({target:"Array",proto:!0,forced:bp||!Ep},{join:function(e){return mp(U(this),void 0===e?",":e)}});var wp=function(){function e(){this.title=n.t("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=n.DomEditor.getSelectedNodeByType(e,"code");if(null==t)return null;var r=n.DomEditor.getParentNode(e,t);return null==r||"pre"!==n.DomEditor.getNodeType(r)?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=n.DomEditor.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=n.DomEditor.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=o.Node.string(t);o.Transforms.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));o.Transforms.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,i=[],a=o.Editor.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var u=Eo(a),s=u.next();!s.done;s=u.next()){var l=wo(s.value,1)[0];l&&i.push(o.Node.string(l))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}o.Transforms.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:t,children:[{text:i.join("\n")}]}]};o.Transforms.insertNodes(e,c,{mode:"highest"})},e}(),Sp={key:"codeBlock",factory:function(){return new wp}};Vt({target:"String",proto:!0,forced:Oo("anchor")},{anchor:function(e){return xo(this,"a","name",e)}}),ar("match",(function(e,t,n){return[function(t){var n=H(this),r=null==t?void 0:se(t,e);return r?D(r,t,n):new RegExp(t)[e](En(n))},function(e){var r=ze(this),o=En(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return wr(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=wr(r,o));){var c=En(u[0]);s[l]=c,""===c&&(r.lastIndex=dr(o,St(r.lastIndex),a)),l++}return 0===l?null:s}]}));var Dp={menus:[Sp],editorPlugin:function(e){var t=e.insertBreak,r=e.normalizeNode,i=e.insertData;e.insertNode;var a=e;return a.insertBreak=function(){var e=n.DomEditor.getSelectedNodeByType(a,"code");if(null!=e){var r=function(e,t){var n=t.selection;if(null==n)return"";var r=o.Node.string(e),i=n.anchor.offset,a=r.slice(0,i).split("\n"),u=a.length;return 0===u?"":a[u-1]}(e,a);if(r){var i=r.match(/^\s+/);if(null!=i&&null!=i[0]){var u=i[0];return void a.insertText("\n"+u)}}a.insertText("\n")}else t()},a.normalizeNode=function(e){var t=wo(e,2),i=t[0],u=t[1],s=n.DomEditor.getNodeType(i);return"code"===s&&u.length<=1&&o.Transforms.setNodes(a,{type:"paragraph"},{at:u}),"pre"===s&&(n.DomEditor.isLastNode(a,i)&&o.Transforms.insertNodes(a,n.DomEditor.genEmptyParagraph(),{at:[u[0]+1]}),"code"!==n.DomEditor.getNodeType(i.children[0])&&(o.Transforms.unwrapNodes(a),o.Transforms.setNodes(a,{type:"paragraph"},{mode:"highest"}))),r([i,u])},a.insertData=function(e){if(null!=n.DomEditor.getSelectedNodeByType(a,"code")){var t=e.getData("text/plain");o.Editor.insertText(a,t)}else i(e)},a},renderElems:[{type:"pre",renderElem:function(e,t,n){return r.jsx("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return r.jsx("code",null,t)}}],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=l.default(e);if("code"!==po(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:l.default(e)[0].textContent||""}]}}},{selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,r){var o=l.default(e);return 0===(t=t.filter((function(e){return"code"===n.DomEditor.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:o[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===n.DomEditor.getNodeType(e)}))}}}]},Cp=function(){function e(){this.title=n.t("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}(),Ap={menus:[{key:"fullScreen",factory:function(){return new Cp}}]},xp=function(){function e(){this.title=n.t("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||!!o.Range.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];o.Transforms.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(o.Editor.start(e,r))}},e}(),Op=[vi,ha,Yd,ep,ap,sp,Cu,gp,Fu,Ua,Dp,Bu,ra,Do,Ou,fp,Ap,{menus:[{key:"enter",factory:function(){return new xp}}]}];e.default=Op,e.insertImageNode=su,e.isInsertImageMenuDisabled=cu,e.updateImageNode=lu,Object.defineProperty(e,"__esModule",{value:!0})}(n,kw,Nw,Ow,Tw,Jm,zg)})),Jw=n(Zw),Qw=r((function(e,n){e.exports=function(e,n,r,o){function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(o);e.i18nAddResources("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),e.i18nAddResources("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function s(e){var t={exports:{}};return e(t,t.exports),t.exports}var l,c,f=function(e){return e&&e.Math==Math&&e},d=f("object"==typeof globalThis&&globalThis)||f("object"==typeof window&&window)||f("object"==typeof self&&self)||f("object"==typeof u&&u)||function(){return this}()||Function("return this")(),p=Function.prototype,h=p.bind,v=p.call,g=h&&h.bind(v),y=h?function(e){return e&&g(v,e)}:function(e){return e&&function(){return v.apply(e,arguments)}},m=function(e){try{return!!e()}catch(e){return!0}},b=y({}.toString),E=y("".slice),w=function(e){return E(b(e),8,-1)},S=d.Object,D=y("".split),C=m((function(){return!S("z").propertyIsEnumerable(0)}))?function(e){return"String"==w(e)?D(e,""):S(e)}:S,A=d.TypeError,x=function(e){if(null==e)throw A("Can't call method on "+e);return e},O=function(e){return C(x(e))},T=Object.defineProperty,N=function(e,t){try{T(d,e,{value:t,configurable:!0,writable:!0})}catch(n){d[e]=t}return t},k="__core-js_shared__",I=d[k]||N(k,{}),B=s((function(e){(e.exports=function(e,t){return I[e]||(I[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),P=d.Object,F=function(e){return P(x(e))},_=y({}.hasOwnProperty),R=Object.hasOwn||function(e,t){return _(F(e),t)},j=0,L=Math.random(),M=y(1..toString),z=function(e){return"Symbol("+(void 0===e?"":e)+")_"+M(++j+L,36)},H=function(e){return"function"==typeof e},U=function(e){return H(e)?e:void 0},$=function(e,t){return arguments.length<2?U(d[e]):d[e]&&d[e][t]},V=$("navigator","userAgent")||"",G=d.process,W=d.Deno,q=G&&G.versions||W&&W.version,K=q&&q.v8;K&&(c=(l=K.split("."))[0]>0&&l[0]<4?1:+(l[0]+l[1])),!c&&V&&(!(l=V.match(/Edge\/(\d+)/))||l[1]>=74)&&(l=V.match(/Chrome\/(\d+)/))&&(c=+l[1]);var Y,X=c,Z=!!Object.getOwnPropertySymbols&&!m((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&X&&X<41})),J=Z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Q=B("wks"),ee=d.Symbol,te=ee&&ee.for,ne=J?ee:ee&&ee.withoutSetter||z,re=function(e){if(!R(Q,e)||!Z&&"string"!=typeof Q[e]){var t="Symbol."+e;Z&&R(ee,e)?Q[e]=ee[e]:Q[e]=J&&te?te(t):ne(t)}return Q[e]},oe=function(e){return"object"==typeof e?null!==e:H(e)},ie=d.String,ae=d.TypeError,ue=function(e){if(oe(e))return e;throw ae(ie(e)+" is not an object")},se=!m((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),le=d.document,ce=oe(le)&&oe(le.createElement),fe=function(e){return ce?le.createElement(e):{}},de=!se&&!m((function(){return 7!=Object.defineProperty(fe("div"),"a",{get:function(){return 7}}).a})),pe=Function.prototype.call,he=pe.bind?pe.bind(pe):function(){return pe.apply(pe,arguments)},ve=y({}.isPrototypeOf),ge=d.Object,ye=J?function(e){return"symbol"==typeof e}:function(e){var t=$("Symbol");return H(t)&&ve(t.prototype,ge(e))},me=d.String,be=function(e){try{return me(e)}catch(e){return"Object"}},Ee=d.TypeError,we=function(e){if(H(e))return e;throw Ee(be(e)+" is not a function")},Se=function(e,t){var n=e[t];return null==n?void 0:we(n)},De=d.TypeError,Ce=d.TypeError,Ae=re("toPrimitive"),xe=function(e,t){if(!oe(e)||ye(e))return e;var n,r=Se(e,Ae);if(r){if(void 0===t&&(t="default"),n=he(r,e,t),!oe(n)||ye(n))return n;throw Ce("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&H(n=e.toString)&&!oe(r=he(n,e)))return r;if(H(n=e.valueOf)&&!oe(r=he(n,e)))return r;if("string"!==t&&H(n=e.toString)&&!oe(r=he(n,e)))return r;throw De("Can't convert object to primitive value")}(e,t)},Oe=function(e){var t=xe(e,"string");return ye(t)?t:t+""},Te=d.TypeError,Ne=Object.defineProperty,ke={f:se?Ne:function(e,t,n){if(ue(e),t=Oe(t),ue(n),de)try{return Ne(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Te("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ie=Math.ceil,Be=Math.floor,Pe=function(e){var t=+e;return t!=t||0===t?0:(t>0?Be:Ie)(t)},Fe=Math.max,_e=Math.min,Re=function(e,t){var n=Pe(e);return n<0?Fe(n+t,0):_e(n,t)},je=Math.min,Le=function(e){return e>0?je(Pe(e),9007199254740991):0},Me=function(e){return Le(e.length)},ze=function(e){return function(t,n,r){var o,i=O(t),a=Me(i),u=Re(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}},He={includes:ze(!0),indexOf:ze(!1)},Ue={},$e=He.indexOf,Ve=y([].push),Ge=function(e,t){var n,r=O(e),o=0,i=[];for(n in r)!R(Ue,n)&&R(r,n)&&Ve(i,n);for(;t.length>o;)R(r,n=t[o++])&&(~$e(i,n)||Ve(i,n));return i},We=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qe=Object.keys||function(e){return Ge(e,We)},Ke=se?Object.defineProperties:function(e,t){ue(e);for(var n,r=O(t),o=qe(t),i=o.length,a=0;i>a;)ke.f(e,n=o[a++],r[n]);return e},Ye=$("document","documentElement"),Xe=B("keys"),Ze=function(e){return Xe[e]||(Xe[e]=z(e))},Je=Ze("IE_PROTO"),Qe=function(){},et=function(e){return"<script>"+e+"<\/script>"},tt=function(e){e.write(et("")),e.close();var t=e.parentWindow.Object;return e=null,t},nt=function(){try{Y=new ActiveXObject("htmlfile")}catch(e){}var e,t;nt="undefined"!=typeof document?document.domain&&Y?tt(Y):((t=fe("iframe")).style.display="none",Ye.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(et("document.F=Object")),e.close(),e.F):tt(Y);for(var n=We.length;n--;)delete nt.prototype[We[n]];return nt()};Ue[Je]=!0;var rt=Object.create||function(e,t){var n;return null!==e?(Qe.prototype=ue(e),n=new Qe,Qe.prototype=null,n[Je]=e):n=nt(),void 0===t?n:Ke(n,t)},ot=re("unscopables"),it=Array.prototype;null==it[ot]&&ke.f(it,ot,{configurable:!0,value:rt(null)});var at=function(e){it[ot][e]=!0},ut={},st=y(Function.toString);H(I.inspectSource)||(I.inspectSource=function(e){return st(e)});var lt,ct,ft,dt=I.inspectSource,pt=d.WeakMap,ht=H(pt)&&/native code/.test(dt(pt)),vt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},gt=se?function(e,t,n){return ke.f(e,t,vt(1,n))}:function(e,t,n){return e[t]=n,e},yt="Object already initialized",mt=d.TypeError,bt=d.WeakMap;if(ht||I.state){var Et=I.state||(I.state=new bt),wt=y(Et.get),St=y(Et.has),Dt=y(Et.set);lt=function(e,t){if(St(Et,e))throw new mt(yt);return t.facade=e,Dt(Et,e,t),t},ct=function(e){return wt(Et,e)||{}},ft=function(e){return St(Et,e)}}else{var Ct=Ze("state");Ue[Ct]=!0,lt=function(e,t){if(R(e,Ct))throw new mt(yt);return t.facade=e,gt(e,Ct,t),t},ct=function(e){return R(e,Ct)?e[Ct]:{}},ft=function(e){return R(e,Ct)}}var At,xt,Ot,Tt={set:lt,get:ct,has:ft,enforce:function(e){return ft(e)?ct(e):lt(e,{})},getterFor:function(e){return function(t){var n;if(!oe(t)||(n=ct(t)).type!==e)throw mt("Incompatible receiver, "+e+" required");return n}}},Nt={}.propertyIsEnumerable,kt=Object.getOwnPropertyDescriptor,It={f:kt&&!Nt.call({1:2},1)?function(e){var t=kt(this,e);return!!t&&t.enumerable}:Nt},Bt=Object.getOwnPropertyDescriptor,Pt={f:se?Bt:function(e,t){if(e=O(e),t=Oe(t),de)try{return Bt(e,t)}catch(e){}if(R(e,t))return vt(!he(It.f,e,t),e[t])}},Ft=Function.prototype,_t=se&&Object.getOwnPropertyDescriptor,Rt=R(Ft,"name"),jt={EXISTS:Rt,PROPER:Rt&&"something"===function(){}.name,CONFIGURABLE:Rt&&(!se||se&&_t(Ft,"name").configurable)},Lt=s((function(e){var t=jt.CONFIGURABLE,n=Tt.get,r=Tt.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;H(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!R(i,"name")||t&&i.name!==f)&>(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==d?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:gt(e,n,i)):l?e[n]=i:N(n,i)})(Function.prototype,"toString",(function(){return H(this)&&n(this).source||dt(this)}))})),Mt=We.concat("length","prototype"),zt={f:Object.getOwnPropertyNames||function(e){return Ge(e,Mt)}},Ht={f:Object.getOwnPropertySymbols},Ut=y([].concat),$t=$("Reflect","ownKeys")||function(e){var t=zt.f(ue(e)),n=Ht.f;return n?Ut(t,n(e)):t},Vt=function(e,t){for(var n=$t(t),r=ke.f,o=Pt.f,i=0;i<n.length;i++){var a=n[i];R(e,a)||r(e,a,o(t,a))}},Gt=/#|\.prototype\./,Wt=function(e,t){var n=Kt[qt(e)];return n==Xt||n!=Yt&&(H(t)?m(t):!!t)},qt=Wt.normalize=function(e){return String(e).replace(Gt,".").toLowerCase()},Kt=Wt.data={},Yt=Wt.NATIVE="N",Xt=Wt.POLYFILL="P",Zt=Wt,Jt=Pt.f,Qt=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?d:l?d[u]||N(u,{}):(d[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Jt(n,r))&&a.value:n[r],!Zt(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Vt(i,o)}(e.sham||o&&o.sham)&>(i,"sham",!0),Lt(n,r,i,e)}},en=!m((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),tn=Ze("IE_PROTO"),nn=d.Object,rn=nn.prototype,on=en?nn.getPrototypeOf:function(e){var t=F(e);if(R(t,tn))return t[tn];var n=t.constructor;return H(n)&&t instanceof n?n.prototype:t instanceof nn?rn:null},an=re("iterator"),un=!1;[].keys&&("next"in(Ot=[].keys())?(xt=on(on(Ot)))!==Object.prototype&&(At=xt):un=!0);var sn=null==At||m((function(){var e={};return At[an].call(e)!==e}));sn&&(At={}),H(At[an])||Lt(At,an,(function(){return this}));var ln={IteratorPrototype:At,BUGGY_SAFARI_ITERATORS:un},cn=ke.f,fn=re("toStringTag"),dn=function(e,t,n){e&&!R(e=n?e:e.prototype,fn)&&cn(e,fn,{configurable:!0,value:t})},pn=ln.IteratorPrototype,hn=function(){return this},vn=d.String,gn=d.TypeError,yn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=y(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return ue(n),function(e){if("object"==typeof e||H(e))return e;throw gn("Can't set "+vn(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),mn=jt.PROPER,bn=jt.CONFIGURABLE,En=ln.IteratorPrototype,wn=ln.BUGGY_SAFARI_ITERATORS,Sn=re("iterator"),Dn="keys",Cn="values",An="entries",xn=function(){return this},On=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=rt(pn,{next:vt(+!r,n)}),dn(e,o,!1),ut[o]=hn}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!wn&&e in p)return p[e];switch(e){case Dn:case Cn:case An:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Sn]||p["@@iterator"]||o&&p[o],v=!wn&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=on(g.call(new e)))!==Object.prototype&&u.next&&(on(u)!==En&&(yn?yn(u,En):H(u[Sn])||Lt(u,Sn,xn)),dn(u,f,!0)),mn&&o==Cn&&h&&h.name!==Cn&&(bn?gt(p,"name",Cn):(d=!0,v=function(){return he(h,this)})),o)if(s={values:c(Cn),keys:i?v:c(Dn),entries:c(An)},a)for(l in s)(wn||d||!(l in p))&&Lt(p,l,s[l]);else Qt({target:t,proto:!0,forced:wn||d},s);return p[Sn]!==v&&Lt(p,Sn,v,{name:o}),ut[t]=v,s},Tn="Array Iterator",Nn=Tt.set,kn=Tt.getterFor(Tn),In=On(Array,"Array",(function(e,t){Nn(this,{type:Tn,target:O(e),index:0,kind:t})}),(function(){var e=kn(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");ut.Arguments=ut.Array,at("keys"),at("values"),at("entries");var Bn={};Bn[re("toStringTag")]="z";var Pn="[object z]"===String(Bn),Fn=re("toStringTag"),_n=d.Object,Rn="Arguments"==w(function(){return arguments}()),jn=Pn?w: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=_n(e),Fn))?n:Rn?w(t):"Object"==(r=w(t))&&H(t.callee)?"Arguments":r},Ln=Pn?{}.toString:function(){return"[object "+jn(this)+"]"};Pn||Lt(Object.prototype,"toString",Ln,{unsafe:!0});var Mn=d.String,zn=function(e){if("Symbol"===jn(e))throw TypeError("Cannot convert a Symbol value to a string");return Mn(e)},Hn=y("".charAt),Un=y("".charCodeAt),$n=y("".slice),Vn=function(e){return function(t,n){var r,o,i=zn(x(t)),a=Pe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Un(i,a))<55296||r>56319||a+1===u||(o=Un(i,a+1))<56320||o>57343?e?Hn(i,a):r:e?$n(i,a,a+2):o-56320+(r-55296<<10)+65536}},Gn={codeAt:Vn(!1),charAt:Vn(!0)},Wn=Gn.charAt,qn="String Iterator",Kn=Tt.set,Yn=Tt.getterFor(qn);On(String,"String",(function(e){Kn(this,{type:qn,string:zn(e),index:0})}),(function(){var e,t=Yn(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Wn(n,r),t.index+=e.length,{value:e,done:!1})}));var Xn=function(e,t,n){for(var r in t)Lt(e,r,t[r],n);return e},Zn=d.Array,Jn=Math.max,Qn=zt.f,er="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tr=function(e){try{return Qn(e)}catch(e){return function(e,t,n){for(var r,o,i,a,u=Me(e),s=Re(t,u),l=Re(void 0===n?u:n,u),c=Zn(Jn(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],a=void 0,(a=Oe(o))in r?ke.f(r,a,vt(0,i)):r[a]=i;return c.length=f,c}(er)}},nr={f:function(e){return er&&"Window"==w(e)?tr(e):Qn(O(e))}},rr=m((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),or=Object.isExtensible,ir=m((function(){or(1)}))||rr?function(e){return!!oe(e)&&(!rr||"ArrayBuffer"!=w(e))&&(!or||or(e))}:or,ar=!m((function(){return Object.isExtensible(Object.preventExtensions({}))})),ur=s((function(e){var t=ke.f,n=!1,r=z("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=zt.f,t=y([].splice),o={};o[r]=1,e(o).length&&(zt.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},Qt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:nr.f}))},fastKey:function(e,t){if(!oe(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!R(e,r)){if(!ir(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!R(e,r)){if(!ir(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return ar&&n&&ir(e)&&!R(e,r)&&i(e),e}};Ue[r]=!0})),sr=y(y.bind),lr=function(e,t){return we(e),void 0===t?e:sr?sr(e,t):function(){return e.apply(t,arguments)}},cr=re("iterator"),fr=Array.prototype,dr=re("iterator"),pr=function(e){if(null!=e)return Se(e,dr)||Se(e,"@@iterator")||ut[jn(e)]},hr=d.TypeError,vr=function(e,t,n){var r,o;ue(e);try{if(!(r=Se(e,"return"))){if("throw"===t)throw n;return n}r=he(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return ue(r),n},gr=d.TypeError,yr=function(e,t){this.stopped=e,this.result=t},mr=yr.prototype,br=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=lr(t,f),g=function(e){return r&&vr(r,"normal",e),new yr(!0,e)},y=function(e){return d?(ue(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=pr(e)))throw gr(be(e)+" is not iterable");if(void 0!==(c=o)&&(ut.Array===c||fr[cr]===c)){for(i=0,a=Me(e);a>i;i++)if((u=y(e[i]))&&ve(mr,u))return u;return new yr(!1)}r=function(e,t){var n=arguments.length<2?pr(e):t;if(we(n))return ue(he(n,e));throw hr(be(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=he(s,r)).done;){try{u=y(l.value)}catch(e){vr(r,"throw",e)}if("object"==typeof u&&u&&ve(mr,u))return u}return new yr(!1)},Er=d.TypeError,wr=function(e,t){if(ve(t,e))return e;throw Er("Incorrect invocation")},Sr=re("iterator"),Dr=!1;try{var Cr=0,Ar={next:function(){return{done:!!Cr++}},return:function(){Dr=!0}};Ar[Sr]=function(){return this},Array.from(Ar,(function(){throw 2}))}catch(e){}var xr=Array.isArray||function(e){return"Array"==w(e)},Or=function(){},Tr=[],Nr=$("Reflect","construct"),kr=/^\s*(?:class|function)\b/,Ir=y(kr.exec),Br=!kr.exec(Or),Pr=function(e){if(!H(e))return!1;try{return Nr(Or,Tr,e),!0}catch(e){return!1}},Fr=!Nr||m((function(){var e;return Pr(Pr.call)||!Pr(Object)||!Pr((function(){e=!0}))||e}))?function(e){if(!H(e))return!1;switch(jn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Br||!!Ir(kr,dt(e))}:Pr,_r=re("species"),Rr=d.Array,jr=function(e,t){return new(function(e){var t;return xr(e)&&(t=e.constructor,(Fr(t)&&(t===Rr||xr(t.prototype))||oe(t)&&null===(t=t[_r]))&&(t=void 0)),void 0===t?Rr:t}(e))(0===t?0:t)},Lr=y([].push),Mr=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=F(s),v=C(h),g=lr(l,c),y=Me(v),m=0,b=f||jr,E=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)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Lr(E,d)}else switch(e){case 4:return!1;case 7:Lr(E,d)}return i?-1:r||o?o:E}},zr={forEach:Mr(0),map:Mr(1),filter:Mr(2),some:Mr(3),every:Mr(4),find:Mr(5),findIndex:Mr(6),filterReject:Mr(7)},Hr=ur.getWeakData,Ur=Tt.set,$r=Tt.getterFor,Vr=zr.find,Gr=zr.findIndex,Wr=y([].splice),qr=0,Kr=function(e){return e.frozen||(e.frozen=new Yr)},Yr=function(){this.entries=[]},Xr=function(e,t){return Vr(e.entries,(function(e){return e[0]===t}))};Yr.prototype={get:function(e){var t=Xr(this,e);if(t)return t[1]},has:function(e){return!!Xr(this,e)},set:function(e,t){var n=Xr(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Gr(this.entries,(function(t){return t[0]===e}));return~t&&Wr(this.entries,t,1),!!~t}};var Zr,Jr={getConstructor:function(e,t,n,r){var o=e((function(e,o){wr(e,i),Ur(e,{type:t,id:qr++,frozen:void 0}),null!=o&&br(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=$r(t),u=function(e,t,n){var r=a(e),o=Hr(ue(t),!0);return!0===o?Kr(r).set(t,n):o[r.id]=n,e};return Xn(i,{delete:function(e){var t=a(this);if(!oe(e))return!1;var n=Hr(e);return!0===n?Kr(t).delete(e):n&&R(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!oe(e))return!1;var n=Hr(e);return!0===n?Kr(t).has(e):n&&R(n,t.id)}}),Xn(i,n?{get:function(e){var t=a(this);if(oe(e)){var n=Hr(e);return!0===n?Kr(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}},Qr=Tt.enforce,eo=!d.ActiveXObject&&"ActiveXObject"in d,to=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},no=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=d[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=y(u[e]);Lt(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!oe(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!oe(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!oe(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Zt(e,!H(a)||!(o||u.forEach&&!m((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),ur.enable();else if(Zt(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,h=m((function(){f.has(1)})),v=function(e,t){if(!Dr)return!1;var n=!1;try{var r={};r[Sr]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){new a(e)})),g=!o&&m((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));v||((s=t((function(e,t){wr(e,u);var n=function(e,t,n){var r,o;return yn&&H(r=t.constructor)&&r!==n&&oe(o=r.prototype)&&o!==n.prototype&&yn(e,o),e}(new a,e,s);return null!=t&&br(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(h||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Qt({global:!0,forced:s!=a},l),dn(s,e),o||n.setStrong(s,e,r),s}("WeakMap",to,Jr);if(ht&&eo){Zr=Jr.getConstructor(to,"WeakMap",!0),ur.enable();var ro=no.prototype,oo=y(ro.delete),io=y(ro.has),ao=y(ro.get),uo=y(ro.set);Xn(ro,{delete:function(e){if(oe(e)&&!ir(e)){var t=Qr(this);return t.frozen||(t.frozen=new Zr),oo(this,e)||t.frozen.delete(e)}return oo(this,e)},has:function(e){if(oe(e)&&!ir(e)){var t=Qr(this);return t.frozen||(t.frozen=new Zr),io(this,e)||t.frozen.has(e)}return io(this,e)},get:function(e){if(oe(e)&&!ir(e)){var t=Qr(this);return t.frozen||(t.frozen=new Zr),io(this,e)?ao(this,e):t.frozen.get(e)}return ao(this,e)},set:function(e,t){if(oe(e)&&!ir(e)){var n=Qr(this);n.frozen||(n.frozen=new Zr),io(this,e)?uo(this,e,t):n.frozen.set(e,t)}else uo(this,e,t);return this}})}var so={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},lo=fe("span").classList,co=lo&&lo.constructor&&lo.constructor.prototype,fo=co===Object.prototype?void 0:co,po=re("iterator"),ho=re("toStringTag"),vo=In.values,go=function(e,t){if(e){if(e[po]!==vo)try{gt(e,po,vo)}catch(t){e[po]=vo}if(e[ho]||gt(e,ho,t),so[t])for(var n in In)if(e[n]!==In[n])try{gt(e,n,In[n])}catch(t){e[n]=In[n]}}};for(var yo in so)go(d[yo]&&d[yo].prototype,yo);go(fo,"DOMTokenList");var mo=new WeakMap,bo={type:"list-item",renderElem:function(t,o,i){mo.set(t,i);var a=t,u=a.level,s=void 0===u?0:u,l=a.ordered,c={margin:"5px 0 5px "+20*s+"px"},f="";if(void 0!==l&&l){var d=function(t,r){var o=r,i=o.type,a=o.level,u=void 0===a?0:a,s=o.ordered,l=void 0!==s&&s;if(!l)return-1;var c=1,f=r,d=e.DomEditor.findPath(t,f);if(0===d[0])return 1;for(;d[0]>0;){var p=n.Path.previous(d),h=n.Editor.node(t,p);if(null==h)break;var v=h[0],g=v.level,y=void 0===g?0:g,m=v.type,b=v.ordered;if(m!==i)break;if(y<u)break;if(y===u){if(b!==l)break;c++}f=v,d=p}return c}(i,t);f=d+"."}else f=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(s);var p=function(e){var t,r=e.children||[],o=r.length;if(0===o)return"";for(var i=0;i<o&&!t;i++){var a=r[i];n.Text.isText(a)&&(t=a)}return null==t?"":t.color||""}(t);return r.jsx("div",{style:c},r.jsx("span",{contentEditable:!1,style:{marginRight:"0.5em",color:p},"data-w-e-reserve":!0},f),r.jsx("span",null,o))}},Eo=function(e,t){return Eo=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])},Eo(e,t)
|
|
54
54
|
/*! *****************************************************************************
|
|
55
55
|
Copyright (c) Microsoft Corporation.
|
|
56
56
|
|
|
@@ -79,7 +79,7 @@ var Gi=function(e,t){return Gi=Object.setPrototypeOf||{__proto__:[]}instanceof A
|
|
|
79
79
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
80
80
|
PERFORMANCE OF THIS SOFTWARE.
|
|
81
81
|
***************************************************************************** */
|
|
82
|
-
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.")}(a),l=s.next();!l.done;l=s.next())l.value,u=!0}catch(e){o={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return u}zt({target:"Array",proto:!0,forced:!Gn},{slice:function(e,t){var n,r,o,i=M(this),a=Et(i),u=yt(e,a),s=yt(void 0===t?a:t,a);if(Bn(i)&&(n=i.constructor,(zn(n)&&(n===qn||Bn(n.prototype))||H(n)&&null===(n=n[Wn]))&&(n=void 0),n===qn||void 0===n))return Vn(i,u,s);for(r=new(void 0===n?qn:n)(Kn(s-u,0)),o=0;u<s;u++,o++)u in i&&Hn(r,o,i[u]);return r.length=o,r}});var Jn=k(k.bind),Qn=Ce("species"),er=y.Array,tr=function(e,t){return new(function(e){var t;return Bn(e)&&(t=e.constructor,(zn(t)&&(t===er||Bn(t.prototype))||H(t)&&null===(t=t[Qn]))&&(t=void 0)),void 0===t?er:t}(e))(0===t?0:t)},nr=k([].push),rr=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=pe(s),v=R(h),g=function(e,t){return oe(e),void 0===t?e:Jn?Jn(e,t):function(){return e.apply(t,arguments)}}(l,c),y=Et(v),m=0,b=f||tr,E=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)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:nr(E,d)}else switch(e){case 4:return!1;case 7:nr(E,d)}return i?-1:r||o?o:E}},or={forEach:rr(0),map:rr(1),filter:rr(2),some:rr(3),every:rr(4),find:rr(5),findIndex:rr(6),filterReject:rr(7)},ir=or.map;zt({target:"Array",proto:!0,forced:!$n("map")},{map:function(e){return ir(this,e,arguments.length>1?arguments[1]:void 0)}});var ar=$t?{}.toString:function(){return"[object "+qt(this)+"]"};function ur(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function sr(e){return ur(e).every((function(e){return!!e.isHeader}))}$t||ft(Object.prototype,"toString",ar,{unsafe:!0});var lr=ct.PROPER,cr="toString",fr=RegExp.prototype,dr=fr.toString,pr=k(Qt),hr=m((function(){return"/a/b"!=dr.call({source:"a",flags:"b"})})),vr=lr&&dr.name!=cr;(hr||vr)&&ft(RegExp.prototype,cr,(function(){var e=je(this),t=Yt(e.source),n=e.flags;return"/"+t+"/"+Yt(void 0===n&&V(fr,e)&&!("flags"in fr)?pr(e):n)}),{unsafe:!0});var gr=Ce("unscopables"),yr=Array.prototype;null==yr[gr]&&ze.f(yr,gr,{configurable:!0,value:vn(null)});var mr,br=or.find,Er="find",wr=!0;Er in[]&&Array(1).find((function(){wr=!1})),zt({target:"Array",proto:!0,forced:wr},{find:function(e){return br(this,e,arguments.length>1?arguments[1]:void 0)}}),mr=Er,yr[gr][mr]=!0;var Sr=Function.prototype,Dr=Sr.apply,Cr=Sr.bind,Ar=Sr.call,xr="object"==typeof Reflect&&Reflect.apply||(Cr?Ar.bind(Dr):function(){return Ar.apply(Dr,arguments)}),Or=Ce("species"),Tr=RegExp.prototype,Nr=function(e,t,n,r){var o=Ce(e),i=!m((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!m((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Or]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=k(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=k(e),s=t.exec;return s===In||s===Tr.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));ft(String.prototype,e,s[0]),ft(Tr,o,s[1])}r&&He(Tr[o],"sham",!0)},kr=Ce("match"),Ir=y.TypeError,Br=Ce("species"),Pr=function(e,t){var n,r=je(e).constructor;return void 0===r||null==(n=je(r)[Br])?t:function(e){if(zn(e))return e;throw Ir(ne(e)+" is not a constructor")}(n)},Fr=k("".charAt),_r=k("".charCodeAt),Rr=k("".slice),jr=function(e){return function(t,n){var r,o,i=Yt(L(t)),a=ht(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?Fr(i,a):r:e?Rr(i,a,a+2):o-56320+(r-55296<<10)+65536}},Lr=(jr(!1),jr(!0)),Mr=function(e,t,n){return t+(n?Lr(e,t).length:1)},zr=y.Array,Hr=Math.max,Ur=function(e,t,n){for(var r=Et(e),o=yt(t,r),i=yt(void 0===n?r:n,r),a=zr(Hr(i-o,0)),u=0;o<i;o++,u++)Hn(a,u,e[o]);return a.length=u,a},$r=y.TypeError,Vr=function(e,t){var n=e.exec;if(z(n)){var r=w(n,e,t);return null!==r&&je(r),r}if("RegExp"===P(e))return w(In,e,t);throw $r("RegExp#exec called on incompatible receiver")},Gr=rn.UNSUPPORTED_Y,Wr=4294967295,qr=Math.min,Kr=[].push,Yr=k(/./.exec),Xr=k(Kr),Zr=k("".slice),Jr=!m((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]}));Nr("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=Yt(L(this)),a=void 0===n?Wr:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!H(r=e)||!(void 0!==(o=r[kr])?o:"RegExp"==P(r)))return w(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=w(In,p,i))&&!((s=p.lastIndex)>d&&(Xr(c,Zr(i,d,u.index)),u.length>1&&u.index<i.length&&xr(Kr,c,Ur(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&Yr(p,"")||Xr(c,""):Xr(c,Zr(i,d)),c.length>a?Ur(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:w(t,this,e,n)}:t,[function(t,n){var o=L(this),i=null==t?void 0:ie(t,e);return i?w(i,t,o,n):w(r,Yt(o),t,n)},function(e,o){var i=je(this),a=Yt(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=Pr(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Gr?"g":"y"),f=new s(Gr?"^(?:"+i.source+")":i,c),d=void 0===o?Wr:o>>>0;if(0===d)return[];if(0===a.length)return null===Vr(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=Gr?0:h;var g,y=Vr(f,Gr?Zr(a,h):a);if(null===y||(g=qr(bt(f.lastIndex+(Gr?h:0)),a.length))===p)h=Mr(a,h,l);else{if(Xr(v,Zr(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(Xr(v,y[m]),v.length===d)return v;h=p=g}}return Xr(v,Zr(a,p)),v}]}),!Jr,Gr);var Qr="\t\n\v\f\r \u2028\u2029\ufeff",eo=k("".replace),to="["+Qr+"]",no=RegExp("^"+to+to+"*"),ro=RegExp(to+to+"*$"),oo=function(e){return function(t){var n=Yt(L(t));return 1&e&&(n=eo(n,no,"")),2&e&&(n=eo(n,ro,"")),n}},io={start:oo(1),end:oo(2),trim:oo(3)},ao=ct.PROPER,uo=io.trim;function so(e){return e.length?e[0].tagName.toLowerCase():""}zt({target:"String",proto:!0,forced:function(e){return m((function(){return!!Qr[e]()||"
"!=="
"[e]()||ao&&Qr[e].name!==e}))}("trim")},{trim:function(){return uo(this)}}),zt({global:!0},{globalThis:y}),i.append&&(c.default.fn.append=i.append),i.on&&(c.default.fn.on=i.on),i.focus&&(c.default.fn.focus=i.focus),i.attr&&(c.default.fn.attr=i.attr),i.val&&(c.default.fn.val=i.val),i.html&&(c.default.fn.html=i.html),i.dataset&&(c.default.fn.dataset=i.dataset),i.addClass&&(c.default.fn.addClass=i.addClass),i.removeClass&&(c.default.fn.removeClass=i.removeClass),i.children&&(c.default.fn.children=i.children),i.each&&(c.default.fn.each=i.each),i.find&&(c.default.fn.find=i.find);var lo=!1,co=0,fo=0,po=null,ho=null,vo=c.default("body");function go(e){lo=!1,ho=null,po=null,vo.off("mousemove",yo),vo.off("mouseup",go)}vo.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(),lo=!0;var n=e.clientX;co=n;var r=t.getBoundingClientRect().width;fo=r,vo.on("mousemove",yo),vo.on("mouseup",go)}}));var yo=l.default((function(e){if(lo&&null!=ho&&null!=po){e.preventDefault();var t=e.clientX,r=fo+(t-co);(r=Math.floor(100*r)/100)<30&&(r=30),n.Transforms.setNodes(ho,{width:r.toString()},{at:po})}}),100),mo={type:"table",renderElem:function(t,o,i){var a=function(t,r){if(t.isDisabled())return!1;var o=t.selection;if(null==o)return!0;if(n.Range.isCollapsed(o))return!0;var i=o.anchor,a=o.focus,u=e.DomEditor.findPath(t,r),s=n.Editor.start(t,u),l=n.Editor.end(t,u),c=n.Point.compare(i,l)<=0&&n.Point.compare(i,s)>=0,f=n.Point.compare(a,l)<=0&&n.Point.compare(a,s)>=0;return!!(c&&f&&n.Path.equals(i.path.slice(0,3),a.path.slice(0,3)))}(i,t),u=t.width,s=void 0===u?"auto":u,l=e.DomEditor.isNodeSelected(i,t),c=ur(t),f=r.jsx("div",{className:"table-container","data-selected":l,on:{mousedown:function(r){if("DIV"===r.target.tagName&&r.preventDefault(),!i.isDisabled()){var o=e.DomEditor.findPath(i,t),a=n.Editor.start(i,o),u=i.selection;null!=u?u.anchor.path[0]!==o[0]&&i.select(a):i.select(a)}}}},r.jsx("table",{width:s,contentEditable:a},r.jsx("colgroup",{contentEditable:!1},c.map((function(e){var t=e.width,n=void 0===t?"auto":t;return r.jsx("col",{width:n})}))),r.jsx("tbody",null,o)));return f}},bo={type:"table-row",renderElem:function(e,t,n){return r.jsx("tr",null,t)}},Eo={type:"table-cell",renderElem:function(t,n,o){var i=function(t,n){var r=e.DomEditor.getParentNode(t,n);if(null==r)return!1;var o=e.DomEditor.getParentNode(t,r);return null!=o&&ur(o).some((function(e){return e===n}))}(o,t),a=t,u=a.colSpan,s=void 0===u?1:u,c=a.rowSpan,f=void 0===c?1:c,d=a.isHeader,p=void 0!==d&&d;if(!i)return r.jsx("td",{colSpan:s,rowSpan:f},n);var h=p?"th":"td",v=r.jsx(h,{colSpan:s,rowSpan:f,style:{borderRightWidth:"3px"},on:{mousemove:l.default((function(n){var r=this.elm;if(null!=r){var i=r.getBoundingClientRect(),a=i.left,u=i.width,s=i.top,l=i.height,c=n.clientX,f=n.clientY;lo||(c>a+u-5&&c<a+u&&f>s&&f<s+l?(r.style.cursor="col-resize",ho=o,po=e.DomEditor.findPath(o,t)):lo||(r.style.cursor="auto",ho=null,po=null))}}),100)}},n);return v}},wo={type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},So={type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},Do={type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===l?"auto":l)+'">'+t+"</"+c+">"}},Co={selector:"table",preParseHtml:function(e){var t=c.default(e);if("table"!==so(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]}},Ao=or.filter;zt({target:"Array",proto:!0,forced:!$n("filter")},{filter:function(e){return Ao(this,e,arguments.length>1?arguments[1]:void 0)}});var xo=Math.floor,Oo=k("".charAt),To=k("".replace),No=k("".slice),ko=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Io=/\$([$&'`]|\d{1,2})/g,Bo=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Io;return void 0!==o&&(o=pe(o),s=ko),To(i,s,(function(i,s){var l;switch(Oo(s,0)){case"$":return"$";case"&":return e;case"`":return No(t,0,n);case"'":return No(t,a);case"<":l=o[No(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=xo(c/10);return 0===f?i:f<=u?void 0===r[f-1]?Oo(s,1):r[f-1]+Oo(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Po=Ce("replace"),Fo=Math.max,_o=Math.min,Ro=k([].concat),jo=k([].push),Lo=k("".indexOf),Mo=k("".slice),zo="$0"==="a".replace(/./,"$0"),Ho=!!/./[Po]&&""===/./[Po]("a","$0");Nr("replace",(function(e,t,n){var r=Ho?"$":"$0";return[function(e,n){var r=L(this),o=null==e?void 0:ie(e,Po);return o?w(o,e,r,n):w(t,Yt(r),e,n)},function(e,o){var i=je(this),a=Yt(e);if("string"==typeof o&&-1===Lo(o,r)&&-1===Lo(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=z(o);s||(o=Yt(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=Vr(i,a);if(null===d)break;if(jo(f,d),!l)break;""===Yt(d[0])&&(i.lastIndex=Mr(a,bt(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=Yt((d=f[g])[0]),m=Fo(_o(ht(d.index),a.length),0),b=[],E=1;E<d.length;E++)jo(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=Ro([y],b,m,a);void 0!==w&&jo(S,w);var D=Yt(xr(o,void 0,S))}else D=Bo(y,a,m,b,w,o);m>=v&&(h+=Mo(a,v,m)+D,v=m+y.length)}return h+Mo(a,v)}]}),!!m((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!zo||Ho);var Uo={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,r){var o=c.default(e);0===(t=t.filter((function(e){return!!n.Text.isText(e)||!!r.isInline(e)}))).length&&(t=[{text:o.text().replace(/\s+/gm," ")}]);var i=parseInt(o.attr("colSpan")||"1"),a=parseInt(o.attr("rowSpan")||"1"),u=o.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===so(o),colSpan:i,rowSpan:a,width:u,children:t}}},$o={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,n,r){return{type:"table-row",children:n.filter((function(t){return"table-cell"===e.DomEditor.getNodeType(t)}))}}},Vo={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,n,r){var o=c.default(t),i="auto";return"100%"===function(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}(o,"width")&&(i="100%"),"100%"===o.attr("width")&&(i="100%"),{type:"table",width:i,children:n.filter((function(t){return"table-row"===e.DomEditor.getNodeType(t)}))}}},Go=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,t){},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||!!e.DomEditor.getSelectedElems(t).some((function(n){var r=e.DomEditor.getNodeType(n);return"pre"===r||"table"===r||"list-item"===r||!!t.isVoid(n)}))},t.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=c.default('<div class="w-e-panel-content-table"></div>'),r=c.default("<span>0 × 0</span>"),o=c.default("<table></table>"),i=0;i<10;i++){for(var a=c.default("<tr></tr>"),u=0;u<10;u++){var s=c.default("<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=c.default(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(e){c.default(e).children().each((function(e){var t=c.default(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=c.default(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]},t.prototype.insertTable=function(t,r,o){var i=parseInt(r,10),a=parseInt(o,10);if(i&&a&&!(i<=0||a<=0)){e.DomEditor.isSelectedEmptyParagraph(t)&&n.Transforms.removeNodes(t,{mode:"highest"});var u=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}}(i,a);n.Transforms.insertNodes(t,u,{mode:"highest"})}},t}(),Wo=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==e.DomEditor.getSelectedNodeByType(t,"table")},t.prototype.exec=function(e,t){this.isDisabled(e)||n.Transforms.removeNodes(e,{mode:"highest"})},t}(),qo=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||null==e.DomEditor.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var o=Yn(n.Editor.nodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"table-cell")},universal:!0}),1),i=Yn(o[0],2),a=i[0],u=i[1],s=e.DomEditor.getParentNode(t,a),l=(null==s?void 0:s.children.length)||0;if(0!==l){for(var c={type:"table-row",children:[]},f=0;f<l;f++)c.children.push({type:"table-cell",children:[{text:""}]});var d=n.Path.parent(u),p=n.Path.next(d);n.Transforms.insertNodes(t,c,{at:p})}}},t}(),Ko=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||null==e.DomEditor.getSelectedNodeByType(t,"table-row")},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var o=Yn(n.Editor.nodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"table-row")},universal:!0}),1),i=Yn(o[0],2),a=i[0],u=i[1],s=e.DomEditor.getParentNode(t,a);((null==s?void 0:s.children.length)||0)<=1?n.Transforms.removeNodes(t,{mode:"highest"}):n.Transforms.removeNodes(t,{at:u})}},t}(),Yo={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},Xo=Ie("span").classList,Zo=Xo&&Xo.constructor&&Xo.constructor.prototype,Jo=Zo===Object.prototype?void 0:Zo,Qo=or.forEach,ei=function(e,t){var n=[].forEach;return!!n&&m((function(){n.call(null,t||function(){throw 1},1)}))}(),ti=ei?[].forEach:function(e){return Qo(this,e,arguments.length>1?arguments[1]:void 0)},ni=function(e){if(e&&e.forEach!==ti)try{He(e,"forEach",ti)}catch(t){e.forEach=ti}};for(var ri in Yo)Yo[ri]&&ni(y[ri]&&y[ri].prototype);ni(Jo);var oi=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||null==e.DomEditor.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var o=Yn(n.Editor.nodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"table-cell")},universal:!0}),1),i=Yn(o[0],2),a=i[0],u=i[1],s=e.DomEditor.getParentNode(t,a);if(null!=s){var l=e.DomEditor.getParentNode(t,s);null!=l&&(l.children||[]).forEach((function(r,o){n.Element.isElement(r)&&(r.children||[]).forEach((function(r){var i=e.DomEditor.findPath(t,r);if(i.length===u.length&&f.default(i.slice(-1),u.slice(-1))){var a={type:"table-cell",children:[{text:""}]};0===o&&sr(l)&&(a.isHeader=!0),n.Transforms.insertNodes(t,a,{at:i})}}))}))}}},t}(),ii=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||null==e.DomEditor.getSelectedNodeByType(t,"table-cell")},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var o=Yn(n.Editor.nodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"table-cell")},universal:!0}),1),i=Yn(o[0],2),a=i[0],u=i[1],s=e.DomEditor.getParentNode(t,a),l=(null==s?void 0:s.children.length)||0;if(!s||l<=1)n.Transforms.removeNodes(t,{mode:"highest"});else{var c=e.DomEditor.getParentNode(t,s);null!=c&&(c.children||[]).forEach((function(r){n.Element.isElement(r)&&(r.children||[]).forEach((function(r){var o=e.DomEditor.findPath(t,r);o.length===u.length&&f.default(o.slice(-1),u.slice(-1))&&n.Transforms.removeNodes(t,{at:o})}))}))}}},t}(),ai=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"table");return null!=n&&sr(n)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||null==e.DomEditor.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var o=!r,i=e.DomEditor.getSelectedNodeByType(t,"table");null!=i&&ur(i).forEach((function(r){return n.Transforms.setNodes(t,{isHeader:o},{at:e.DomEditor.findPath(t,r)})}))}},t}(),ui=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"table");return null!=n&&"100%"===n.width},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||null==e.DomEditor.getSelectedNodeByType(t,"table")},t.prototype.exec=function(e,t){if(!this.isDisabled(e)){var r={width:t?"auto":"100%"};n.Transforms.setNodes(e,r,{mode:"highest"})}},t}(),si={renderElems:[mo,bo,Eo],elemsToHtml:[wo,So,Do],preParseHtml:[Co],parseElemsHtml:[Uo,$o,Vo],menus:[{key:"insertTable",factory:function(){return new Go}},{key:"deleteTable",factory:function(){return new Wo}},{key:"insertTableRow",factory:function(){return new qo}},{key:"deleteTableRow",factory:function(){return new Ko}},{key:"insertTableCol",factory:function(){return new oi}},{key:"deleteTableCol",factory:function(){return new ii}},{key:"tableHeader",factory:function(){return new ai}},{key:"tableFullWidth",factory:function(){return new ui}}],editorPlugin:function(t){var r=t.insertBreak,o=t.deleteBackward,i=t.deleteForward,a=t.normalizeNode,u=t.insertData,s=t.handleTab,l=t.selectAll,c=t;return c.insertBreak=function(){null==e.DomEditor.getSelectedNodeByType(c,"table")?r():c.insertText("\n")},c.deleteBackward=function(e){if(!Xn(c)){var t=c.selection;if(t){var r=n.Editor.before(c,t);if(r){var i=Zn(c,r),a=Zn(c,t);if(i&&!a)return}}o(e)}},c.handleTab=function(){var r;if(e.DomEditor.getSelectedNodeByType(c,"table")){var o=n.Editor.above(t);e.DomEditor.checkNodeType(o[0],"table-cell")&&n.Transforms.select(t,o[1]);var i=n.Editor.next(t);if(i)i[0]&&i[0].text&&(i=null!==(r=n.Editor.above(t,{at:i[1]}))&&void 0!==r?r:i),n.Transforms.select(t,i[1]);else{var a=c.children||[],u=a.length;if(e.DomEditor.checkNodeType(a[u-1],"table")){var l=e.DomEditor.genEmptyParagraph();n.Transforms.insertNodes(c,l,{at:[u]}),c.handleTab()}}}else s()},c.deleteForward=function(e){Xn(c)||i(e)},c.normalizeNode=function(t){var r=Yn(t,2),o=r[0],i=r[1];if("table"!==e.DomEditor.getNodeType(o))return a([o,i]);if(e.DomEditor.isLastNode(c,o)){var u=e.DomEditor.genEmptyParagraph();n.Transforms.insertNodes(c,u,{at:[i[0]+1]})}},c.insertData=function(t){if(null!=e.DomEditor.getSelectedNodeByType(c,"table")){var r=t.getData("text/plain");"\n"===r||/<img[^>]+>/.test(t.getData("text/html"))?u(t):n.Editor.insertText(c,r)}else u(t)},c.selectAll=function(){var t=c.selection;if(null!=t){var r=e.DomEditor.getSelectedNodeByType(c,"table-cell");if(null!=r){var o=t.anchor,i=t.focus;if(n.Path.equals(o.path.slice(0,3),i.path.slice(0,3)))if(0!==n.Node.string(r).length){var a=e.DomEditor.findPath(c,r),u={anchor:n.Editor.start(c,a),focus:n.Editor.end(c,a)};c.select(u)}else l();else l()}else l()}else l()},c}};return si}(kw,Ow,Nw,zg,Tw,0,eS)})),nS=r((function(e,n){e.exports=function(e,n,r,o,i){function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=a(o);e.i18nAddResources("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"}}),e.i18nAddResources("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
|
|
82
|
+
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.")}(a),l=s.next();!l.done;l=s.next())l.value,u=!0}catch(e){o={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return u}zt({target:"Array",proto:!0,forced:!Gn},{slice:function(e,t){var n,r,o,i=M(this),a=Et(i),u=yt(e,a),s=yt(void 0===t?a:t,a);if(Bn(i)&&(n=i.constructor,(zn(n)&&(n===qn||Bn(n.prototype))||H(n)&&null===(n=n[Wn]))&&(n=void 0),n===qn||void 0===n))return Vn(i,u,s);for(r=new(void 0===n?qn:n)(Kn(s-u,0)),o=0;u<s;u++,o++)u in i&&Hn(r,o,i[u]);return r.length=o,r}});var Jn=k(k.bind),Qn=Ce("species"),er=y.Array,tr=function(e,t){return new(function(e){var t;return Bn(e)&&(t=e.constructor,(zn(t)&&(t===er||Bn(t.prototype))||H(t)&&null===(t=t[Qn]))&&(t=void 0)),void 0===t?er:t}(e))(0===t?0:t)},nr=k([].push),rr=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=pe(s),v=R(h),g=function(e,t){return oe(e),void 0===t?e:Jn?Jn(e,t):function(){return e.apply(t,arguments)}}(l,c),y=Et(v),m=0,b=f||tr,E=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)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:nr(E,d)}else switch(e){case 4:return!1;case 7:nr(E,d)}return i?-1:r||o?o:E}},or={forEach:rr(0),map:rr(1),filter:rr(2),some:rr(3),every:rr(4),find:rr(5),findIndex:rr(6),filterReject:rr(7)},ir=or.map;zt({target:"Array",proto:!0,forced:!$n("map")},{map:function(e){return ir(this,e,arguments.length>1?arguments[1]:void 0)}});var ar=$t?{}.toString:function(){return"[object "+qt(this)+"]"};function ur(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function sr(e){return ur(e).every((function(e){return!!e.isHeader}))}$t||ft(Object.prototype,"toString",ar,{unsafe:!0});var lr=ct.PROPER,cr="toString",fr=RegExp.prototype,dr=fr.toString,pr=k(Qt),hr=m((function(){return"/a/b"!=dr.call({source:"a",flags:"b"})})),vr=lr&&dr.name!=cr;(hr||vr)&&ft(RegExp.prototype,cr,(function(){var e=je(this),t=Yt(e.source),n=e.flags;return"/"+t+"/"+Yt(void 0===n&&V(fr,e)&&!("flags"in fr)?pr(e):n)}),{unsafe:!0});var gr=Ce("unscopables"),yr=Array.prototype;null==yr[gr]&&ze.f(yr,gr,{configurable:!0,value:vn(null)});var mr,br=or.find,Er="find",wr=!0;Er in[]&&Array(1).find((function(){wr=!1})),zt({target:"Array",proto:!0,forced:wr},{find:function(e){return br(this,e,arguments.length>1?arguments[1]:void 0)}}),mr=Er,yr[gr][mr]=!0;var Sr=Function.prototype,Dr=Sr.apply,Cr=Sr.bind,Ar=Sr.call,xr="object"==typeof Reflect&&Reflect.apply||(Cr?Ar.bind(Dr):function(){return Ar.apply(Dr,arguments)}),Or=Ce("species"),Tr=RegExp.prototype,Nr=function(e,t,n,r){var o=Ce(e),i=!m((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!m((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Or]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=k(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=k(e),s=t.exec;return s===In||s===Tr.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));ft(String.prototype,e,s[0]),ft(Tr,o,s[1])}r&&He(Tr[o],"sham",!0)},kr=Ce("match"),Ir=y.TypeError,Br=Ce("species"),Pr=function(e,t){var n,r=je(e).constructor;return void 0===r||null==(n=je(r)[Br])?t:function(e){if(zn(e))return e;throw Ir(ne(e)+" is not a constructor")}(n)},Fr=k("".charAt),_r=k("".charCodeAt),Rr=k("".slice),jr=function(e){return function(t,n){var r,o,i=Yt(L(t)),a=ht(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?Fr(i,a):r:e?Rr(i,a,a+2):o-56320+(r-55296<<10)+65536}},Lr=(jr(!1),jr(!0)),Mr=function(e,t,n){return t+(n?Lr(e,t).length:1)},zr=y.Array,Hr=Math.max,Ur=function(e,t,n){for(var r=Et(e),o=yt(t,r),i=yt(void 0===n?r:n,r),a=zr(Hr(i-o,0)),u=0;o<i;o++,u++)Hn(a,u,e[o]);return a.length=u,a},$r=y.TypeError,Vr=function(e,t){var n=e.exec;if(z(n)){var r=w(n,e,t);return null!==r&&je(r),r}if("RegExp"===P(e))return w(In,e,t);throw $r("RegExp#exec called on incompatible receiver")},Gr=rn.UNSUPPORTED_Y,Wr=4294967295,qr=Math.min,Kr=[].push,Yr=k(/./.exec),Xr=k(Kr),Zr=k("".slice),Jr=!m((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]}));Nr("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=Yt(L(this)),a=void 0===n?Wr:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!H(r=e)||!(void 0!==(o=r[kr])?o:"RegExp"==P(r)))return w(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=w(In,p,i))&&!((s=p.lastIndex)>d&&(Xr(c,Zr(i,d,u.index)),u.length>1&&u.index<i.length&&xr(Kr,c,Ur(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&Yr(p,"")||Xr(c,""):Xr(c,Zr(i,d)),c.length>a?Ur(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:w(t,this,e,n)}:t,[function(t,n){var o=L(this),i=null==t?void 0:ie(t,e);return i?w(i,t,o,n):w(r,Yt(o),t,n)},function(e,o){var i=je(this),a=Yt(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=Pr(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Gr?"g":"y"),f=new s(Gr?"^(?:"+i.source+")":i,c),d=void 0===o?Wr:o>>>0;if(0===d)return[];if(0===a.length)return null===Vr(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=Gr?0:h;var g,y=Vr(f,Gr?Zr(a,h):a);if(null===y||(g=qr(bt(f.lastIndex+(Gr?h:0)),a.length))===p)h=Mr(a,h,l);else{if(Xr(v,Zr(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(Xr(v,y[m]),v.length===d)return v;h=p=g}}return Xr(v,Zr(a,p)),v}]}),!Jr,Gr);var Qr="\t\n\v\f\r \u2028\u2029\ufeff",eo=k("".replace),to="["+Qr+"]",no=RegExp("^"+to+to+"*"),ro=RegExp(to+to+"*$"),oo=function(e){return function(t){var n=Yt(L(t));return 1&e&&(n=eo(n,no,"")),2&e&&(n=eo(n,ro,"")),n}},io={start:oo(1),end:oo(2),trim:oo(3)},ao=ct.PROPER,uo=io.trim;function so(e){return e.length?e[0].tagName.toLowerCase():""}zt({target:"String",proto:!0,forced:function(e){return m((function(){return!!Qr[e]()||"
"!=="
"[e]()||ao&&Qr[e].name!==e}))}("trim")},{trim:function(){return uo(this)}}),zt({global:!0},{globalThis:y}),i.append&&(c.default.fn.append=i.append),i.on&&(c.default.fn.on=i.on),i.focus&&(c.default.fn.focus=i.focus),i.attr&&(c.default.fn.attr=i.attr),i.val&&(c.default.fn.val=i.val),i.html&&(c.default.fn.html=i.html),i.dataset&&(c.default.fn.dataset=i.dataset),i.addClass&&(c.default.fn.addClass=i.addClass),i.removeClass&&(c.default.fn.removeClass=i.removeClass),i.children&&(c.default.fn.children=i.children),i.each&&(c.default.fn.each=i.each),i.find&&(c.default.fn.find=i.find);var lo=!1,co=0,fo=0,po=null,ho=null,vo=c.default("body");function go(e){lo=!1,ho=null,po=null,vo.off("mousemove",yo),vo.off("mouseup",go)}vo.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(),lo=!0;var n=e.clientX;co=n;var r=t.getBoundingClientRect().width;fo=r,vo.on("mousemove",yo),vo.on("mouseup",go)}}));var yo=l.default((function(e){if(lo&&null!=ho&&null!=po){e.preventDefault();var t=e.clientX,r=fo+(t-co);(r=Math.floor(100*r)/100)<30&&(r=30),n.Transforms.setNodes(ho,{width:r.toString()},{at:po})}}),100),mo={type:"table",renderElem:function(t,o,i){var a=function(t,r){if(t.isDisabled())return!1;var o=t.selection;if(null==o)return!0;if(n.Range.isCollapsed(o))return!0;var i=o.anchor,a=o.focus,u=e.DomEditor.findPath(t,r),s=n.Editor.start(t,u),l=n.Editor.end(t,u),c=n.Point.compare(i,l)<=0&&n.Point.compare(i,s)>=0,f=n.Point.compare(a,l)<=0&&n.Point.compare(a,s)>=0;return!!(c&&f&&n.Path.equals(i.path.slice(0,3),a.path.slice(0,3)))}(i,t),u=t.width,s=void 0===u?"auto":u,l=e.DomEditor.isNodeSelected(i,t),c=ur(t),f=r.jsx("div",{className:"table-container","data-selected":l,on:{mousedown:function(r){if("DIV"===r.target.tagName&&r.preventDefault(),!i.isDisabled()){var o=e.DomEditor.findPath(i,t),a=n.Editor.start(i,o),u=i.selection;null!=u?u.anchor.path[0]!==o[0]&&i.select(a):i.select(a)}}}},r.jsx("table",{width:s,contentEditable:a},r.jsx("colgroup",{contentEditable:!1},c.map((function(e){var t=e.width,n=void 0===t?"auto":t;return r.jsx("col",{width:n})}))),r.jsx("tbody",null,o)));return f}},bo={type:"table-row",renderElem:function(e,t,n){return r.jsx("tr",null,t)}},Eo={type:"table-cell",renderElem:function(t,n,o){var i=function(t,n){var r=e.DomEditor.getParentNode(t,n);if(null==r)return!1;var o=e.DomEditor.getParentNode(t,r);return null!=o&&ur(o).some((function(e){return e===n}))}(o,t),a=t,u=a.colSpan,s=void 0===u?1:u,c=a.rowSpan,f=void 0===c?1:c,d=a.isHeader,p=void 0!==d&&d;if(!i)return r.jsx("td",{colSpan:s,rowSpan:f},n);var h=p?"th":"td",v=r.jsx(h,{colSpan:s,rowSpan:f,style:{borderRightWidth:"3px"},on:{mousemove:l.default((function(n){var r=this.elm;if(null!=r){var i=r.getBoundingClientRect(),a=i.left,u=i.width,s=i.top,l=i.height,c=n.clientX,f=n.clientY;lo||(c>a+u-5&&c<a+u&&f>s&&f<s+l?(r.style.cursor="col-resize",ho=o,po=e.DomEditor.findPath(o,t)):lo||(r.style.cursor="auto",ho=null,po=null))}}),100)}},n);return v}},wo={type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},So={type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},Do={type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===l?"auto":l)+'">'+t+"</"+c+">"}},Co={selector:"table",preParseHtml:function(e){var t=c.default(e);if("table"!==so(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]}},Ao=or.filter;zt({target:"Array",proto:!0,forced:!$n("filter")},{filter:function(e){return Ao(this,e,arguments.length>1?arguments[1]:void 0)}});var xo=Math.floor,Oo=k("".charAt),To=k("".replace),No=k("".slice),ko=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Io=/\$([$&'`]|\d{1,2})/g,Bo=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Io;return void 0!==o&&(o=pe(o),s=ko),To(i,s,(function(i,s){var l;switch(Oo(s,0)){case"$":return"$";case"&":return e;case"`":return No(t,0,n);case"'":return No(t,a);case"<":l=o[No(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=xo(c/10);return 0===f?i:f<=u?void 0===r[f-1]?Oo(s,1):r[f-1]+Oo(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Po=Ce("replace"),Fo=Math.max,_o=Math.min,Ro=k([].concat),jo=k([].push),Lo=k("".indexOf),Mo=k("".slice),zo="$0"==="a".replace(/./,"$0"),Ho=!!/./[Po]&&""===/./[Po]("a","$0");Nr("replace",(function(e,t,n){var r=Ho?"$":"$0";return[function(e,n){var r=L(this),o=null==e?void 0:ie(e,Po);return o?w(o,e,r,n):w(t,Yt(r),e,n)},function(e,o){var i=je(this),a=Yt(e);if("string"==typeof o&&-1===Lo(o,r)&&-1===Lo(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=z(o);s||(o=Yt(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=Vr(i,a);if(null===d)break;if(jo(f,d),!l)break;""===Yt(d[0])&&(i.lastIndex=Mr(a,bt(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=Yt((d=f[g])[0]),m=Fo(_o(ht(d.index),a.length),0),b=[],E=1;E<d.length;E++)jo(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=Ro([y],b,m,a);void 0!==w&&jo(S,w);var D=Yt(xr(o,void 0,S))}else D=Bo(y,a,m,b,w,o);m>=v&&(h+=Mo(a,v,m)+D,v=m+y.length)}return h+Mo(a,v)}]}),!!m((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!zo||Ho);var Uo={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,r){var o=c.default(e);0===(t=t.filter((function(e){return!!n.Text.isText(e)||!!r.isInline(e)}))).length&&(t=[{text:o.text().replace(/\s+/gm," ")}]);var i=parseInt(o.attr("colSpan")||"1"),a=parseInt(o.attr("rowSpan")||"1"),u=o.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===so(o),colSpan:i,rowSpan:a,width:u,children:t}}},$o={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,n,r){return{type:"table-row",children:n.filter((function(t){return"table-cell"===e.DomEditor.getNodeType(t)}))}}},Vo={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,n,r){var o=c.default(t),i="auto";return"100%"===function(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}(o,"width")&&(i="100%"),"100%"===o.attr("width")&&(i="100%"),{type:"table",width:i,children:n.filter((function(t){return"table-row"===e.DomEditor.getNodeType(t)}))}}},Go=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,t){},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||!!e.DomEditor.getSelectedElems(t).some((function(n){var r=e.DomEditor.getNodeType(n);return"pre"===r||"table"===r||"list-item"===r||!!t.isVoid(n)}))},t.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=c.default('<div class="w-e-panel-content-table"></div>'),r=c.default("<span>0 × 0</span>"),o=c.default("<table></table>"),i=0;i<10;i++){for(var a=c.default("<tr></tr>"),u=0;u<10;u++){var s=c.default("<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=c.default(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(e){c.default(e).children().each((function(e){var t=c.default(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=c.default(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]},t.prototype.insertTable=function(t,r,o){var i=parseInt(r,10),a=parseInt(o,10);if(i&&a&&!(i<=0||a<=0)){e.DomEditor.isSelectedEmptyParagraph(t)&&n.Transforms.removeNodes(t,{mode:"highest"});var u=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}}(i,a);n.Transforms.insertNodes(t,u,{mode:"highest"})}},t}(),Wo=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==e.DomEditor.getSelectedNodeByType(t,"table")},t.prototype.exec=function(e,t){this.isDisabled(e)||n.Transforms.removeNodes(e,{mode:"highest"})},t}(),qo=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||null==e.DomEditor.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var o=Yn(n.Editor.nodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"table-cell")},universal:!0}),1),i=Yn(o[0],2),a=i[0],u=i[1],s=e.DomEditor.getParentNode(t,a),l=(null==s?void 0:s.children.length)||0;if(0!==l){for(var c={type:"table-row",children:[]},f=0;f<l;f++)c.children.push({type:"table-cell",children:[{text:""}]});var d=n.Path.parent(u),p=n.Path.next(d);n.Transforms.insertNodes(t,c,{at:p})}}},t}(),Ko=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||null==e.DomEditor.getSelectedNodeByType(t,"table-row")},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var o=Yn(n.Editor.nodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"table-row")},universal:!0}),1),i=Yn(o[0],2),a=i[0],u=i[1],s=e.DomEditor.getParentNode(t,a);((null==s?void 0:s.children.length)||0)<=1?n.Transforms.removeNodes(t,{mode:"highest"}):n.Transforms.removeNodes(t,{at:u})}},t}(),Yo={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},Xo=Ie("span").classList,Zo=Xo&&Xo.constructor&&Xo.constructor.prototype,Jo=Zo===Object.prototype?void 0:Zo,Qo=or.forEach,ei=function(e,t){var n=[].forEach;return!!n&&m((function(){n.call(null,t||function(){throw 1},1)}))}(),ti=ei?[].forEach:function(e){return Qo(this,e,arguments.length>1?arguments[1]:void 0)},ni=function(e){if(e&&e.forEach!==ti)try{He(e,"forEach",ti)}catch(t){e.forEach=ti}};for(var ri in Yo)Yo[ri]&&ni(y[ri]&&y[ri].prototype);ni(Jo);var oi=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||null==e.DomEditor.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var o=Yn(n.Editor.nodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"table-cell")},universal:!0}),1),i=Yn(o[0],2),a=i[0],u=i[1],s=e.DomEditor.getParentNode(t,a);if(null!=s){var l=e.DomEditor.getParentNode(t,s);null!=l&&(l.children||[]).forEach((function(r,o){n.Element.isElement(r)&&(r.children||[]).forEach((function(r){var i=e.DomEditor.findPath(t,r);if(i.length===u.length&&f.default(i.slice(-1),u.slice(-1))){var a={type:"table-cell",children:[{text:""}]};0===o&&sr(l)&&(a.isHeader=!0),n.Transforms.insertNodes(t,a,{at:i})}}))}))}}},t}(),ii=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||null==e.DomEditor.getSelectedNodeByType(t,"table-cell")},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var o=Yn(n.Editor.nodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"table-cell")},universal:!0}),1),i=Yn(o[0],2),a=i[0],u=i[1],s=e.DomEditor.getParentNode(t,a),l=(null==s?void 0:s.children.length)||0;if(!s||l<=1)n.Transforms.removeNodes(t,{mode:"highest"});else{var c=e.DomEditor.getParentNode(t,s);null!=c&&(c.children||[]).forEach((function(r){n.Element.isElement(r)&&(r.children||[]).forEach((function(r){var o=e.DomEditor.findPath(t,r);o.length===u.length&&f.default(o.slice(-1),u.slice(-1))&&n.Transforms.removeNodes(t,{at:o})}))}))}}},t}(),ai=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"table");return null!=n&&sr(n)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||null==e.DomEditor.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var o=!r,i=e.DomEditor.getSelectedNodeByType(t,"table");null!=i&&ur(i).forEach((function(r){return n.Transforms.setNodes(t,{isHeader:o},{at:e.DomEditor.findPath(t,r)})}))}},t}(),ui=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"table");return null!=n&&"100%"===n.width},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||null==e.DomEditor.getSelectedNodeByType(t,"table")},t.prototype.exec=function(e,t){if(!this.isDisabled(e)){var r={width:t?"auto":"100%"};n.Transforms.setNodes(e,r,{mode:"highest"})}},t}(),si={renderElems:[mo,bo,Eo],elemsToHtml:[wo,So,Do],preParseHtml:[Co],parseElemsHtml:[Uo,$o,Vo],menus:[{key:"insertTable",factory:function(){return new Go}},{key:"deleteTable",factory:function(){return new Wo}},{key:"insertTableRow",factory:function(){return new qo}},{key:"deleteTableRow",factory:function(){return new Ko}},{key:"insertTableCol",factory:function(){return new oi}},{key:"deleteTableCol",factory:function(){return new ii}},{key:"tableHeader",factory:function(){return new ai}},{key:"tableFullWidth",factory:function(){return new ui}}],editorPlugin:function(t){var r=t.insertBreak,o=t.deleteBackward,i=t.deleteForward,a=t.normalizeNode,u=t.insertData,s=t.handleTab,l=t.selectAll,c=t;return c.insertBreak=function(){null==e.DomEditor.getSelectedNodeByType(c,"table")?r():c.insertText("\n")},c.deleteBackward=function(e){if(!Xn(c)){var t=c.selection;if(t){var r=n.Editor.before(c,t);if(r){var i=Zn(c,r),a=Zn(c,t);if(i&&!a)return}}o(e)}},c.handleTab=function(){var r;if(e.DomEditor.getSelectedNodeByType(c,"table")){var o=n.Editor.above(t);e.DomEditor.checkNodeType(o[0],"table-cell")&&n.Transforms.select(t,o[1]);var i=n.Editor.next(t);if(i)i[0]&&i[0].text&&(i=null!==(r=n.Editor.above(t,{at:i[1]}))&&void 0!==r?r:i),n.Transforms.select(t,i[1]);else{var a=c.children||[],u=a.length;if(e.DomEditor.checkNodeType(a[u-1],"table")){var l=e.DomEditor.genEmptyParagraph();n.Transforms.insertNodes(c,l,{at:[u]}),c.handleTab()}}}else s()},c.deleteForward=function(e){Xn(c)||i(e)},c.normalizeNode=function(t){var r=Yn(t,2),o=r[0],i=r[1];if("table"!==e.DomEditor.getNodeType(o))return a([o,i]);if(e.DomEditor.isLastNode(c,o)){var u=e.DomEditor.genEmptyParagraph();n.Transforms.insertNodes(c,u,{at:[i[0]+1]})}},c.insertData=function(t){if(null!=e.DomEditor.getSelectedNodeByType(c,"table")){var r=t.getData("text/plain");"\n"===r||/<img[^>]+>/.test(t.getData("text/html"))?u(t):n.Editor.insertText(c,r)}else u(t)},c.selectAll=function(){var t=c.selection;if(null!=t){var r=e.DomEditor.getSelectedNodeByType(c,"table-cell");if(null!=r){var o=t.anchor,i=t.focus;if(n.Path.equals(o.path.slice(0,3),i.path.slice(0,3)))if(0!==n.Node.string(r).length){var a=e.DomEditor.findPath(c,r),u={anchor:n.Editor.start(c,a),focus:n.Editor.end(c,a)};c.select(u)}else l();else l()}else l()}else l()},c}};return si}(kw,Ow,Nw,zg,Tw,0,eS)})),nS=r((function(e,n){e.exports=function(e,n,r,o,i){function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=a(o);e.i18nAddResources("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",edit:"Edit video",width:"Width",height:"Height"}}),e.i18nAddResources("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});
|
|
83
83
|
/*! *****************************************************************************
|
|
84
84
|
Copyright (c) Microsoft Corporation.
|
|
85
85
|
|
|
@@ -94,7 +94,7 @@ function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)
|
|
|
94
94
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
95
95
|
PERFORMANCE OF THIS SOFTWARE.
|
|
96
96
|
***************************************************************************** */
|
|
97
|
-
var s=function(){return s=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},s.apply(this,arguments)};function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function c(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 f(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 d(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 p(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(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)}))}}}var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function v(e){var t={exports:{}};return e(t,t.exports),t.exports}var g,y,m=function(e){return e&&e.Math==Math&&e},b=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof h&&h)||function(){return this}()||Function("return this")(),E=function(e){try{return!!e()}catch(e){return!0}},w=!E((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),S=Function.prototype.call,D=S.bind?S.bind(S):function(){return S.apply(S,arguments)},C={}.propertyIsEnumerable,A=Object.getOwnPropertyDescriptor,x={f:A&&!C.call({1:2},1)?function(e){var t=A(this,e);return!!t&&t.enumerable}:C},O=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},T=Function.prototype,N=T.bind,k=T.call,I=N&&N.bind(k),B=N?function(e){return e&&I(k,e)}:function(e){return e&&function(){return k.apply(e,arguments)}},P=B({}.toString),F=B("".slice),_=function(e){return F(P(e),8,-1)},R=b.Object,j=B("".split),L=E((function(){return!R("z").propertyIsEnumerable(0)}))?function(e){return"String"==_(e)?j(e,""):R(e)}:R,M=b.TypeError,z=function(e){if(null==e)throw M("Can't call method on "+e);return e},H=function(e){return L(z(e))},U=function(e){return"function"==typeof e},$=function(e){return"object"==typeof e?null!==e:U(e)},V=function(e){return U(e)?e:void 0},G=function(e,t){return arguments.length<2?V(b[e]):b[e]&&b[e][t]},W=B({}.isPrototypeOf),q=G("navigator","userAgent")||"",K=b.process,Y=b.Deno,X=K&&K.versions||Y&&Y.version,Z=X&&X.v8;Z&&(y=(g=Z.split("."))[0]>0&&g[0]<4?1:+(g[0]+g[1])),!y&&q&&(!(g=q.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=q.match(/Chrome\/(\d+)/))&&(y=+g[1]);var J=y,Q=!!Object.getOwnPropertySymbols&&!E((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&J&&J<41})),ee=Q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,te=b.Object,ne=ee?function(e){return"symbol"==typeof e}:function(e){var t=G("Symbol");return U(t)&&W(t.prototype,te(e))},re=b.String,oe=function(e){try{return re(e)}catch(e){return"Object"}},ie=b.TypeError,ae=function(e){if(U(e))return e;throw ie(oe(e)+" is not a function")},ue=function(e,t){var n=e[t];return null==n?void 0:ae(n)},se=b.TypeError,le=Object.defineProperty,ce=function(e,t){try{le(b,e,{value:t,configurable:!0,writable:!0})}catch(n){b[e]=t}return t},fe="__core-js_shared__",de=b[fe]||ce(fe,{}),pe=v((function(e){(e.exports=function(e,t){return de[e]||(de[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),he=b.Object,ve=function(e){return he(z(e))},ge=B({}.hasOwnProperty),ye=Object.hasOwn||function(e,t){return ge(ve(e),t)},me=0,be=Math.random(),Ee=B(1..toString),we=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ee(++me+be,36)},Se=pe("wks"),De=b.Symbol,Ce=De&&De.for,Ae=ee?De:De&&De.withoutSetter||we,xe=function(e){if(!ye(Se,e)||!Q&&"string"!=typeof Se[e]){var t="Symbol."+e;Q&&ye(De,e)?Se[e]=De[e]:Se[e]=ee&&Ce?Ce(t):Ae(t)}return Se[e]},Oe=b.TypeError,Te=xe("toPrimitive"),Ne=function(e,t){if(!$(e)||ne(e))return e;var n,r=ue(e,Te);if(r){if(void 0===t&&(t="default"),n=D(r,e,t),!$(n)||ne(n))return n;throw Oe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&U(n=e.toString)&&!$(r=D(n,e)))return r;if(U(n=e.valueOf)&&!$(r=D(n,e)))return r;if("string"!==t&&U(n=e.toString)&&!$(r=D(n,e)))return r;throw se("Can't convert object to primitive value")}(e,t)},ke=function(e){var t=Ne(e,"string");return ne(t)?t:t+""},Ie=b.document,Be=$(Ie)&&$(Ie.createElement),Pe=function(e){return Be?Ie.createElement(e):{}},Fe=!w&&!E((function(){return 7!=Object.defineProperty(Pe("div"),"a",{get:function(){return 7}}).a})),_e=Object.getOwnPropertyDescriptor,Re={f:w?_e:function(e,t){if(e=H(e),t=ke(t),Fe)try{return _e(e,t)}catch(e){}if(ye(e,t))return O(!D(x.f,e,t),e[t])}},je=b.String,Le=b.TypeError,Me=function(e){if($(e))return e;throw Le(je(e)+" is not an object")},ze=b.TypeError,He=Object.defineProperty,Ue={f:w?He:function(e,t,n){if(Me(e),t=ke(t),Me(n),Fe)try{return He(e,t,n)}catch(e){}if("get"in n||"set"in n)throw ze("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},$e=w?function(e,t,n){return Ue.f(e,t,O(1,n))}:function(e,t,n){return e[t]=n,e},Ve=B(Function.toString);U(de.inspectSource)||(de.inspectSource=function(e){return Ve(e)});var Ge,We,qe,Ke=de.inspectSource,Ye=b.WeakMap,Xe=U(Ye)&&/native code/.test(Ke(Ye)),Ze=pe("keys"),Je=function(e){return Ze[e]||(Ze[e]=we(e))},Qe={},et="Object already initialized",tt=b.TypeError,nt=b.WeakMap;if(Xe||de.state){var rt=de.state||(de.state=new nt),ot=B(rt.get),it=B(rt.has),at=B(rt.set);Ge=function(e,t){if(it(rt,e))throw new tt(et);return t.facade=e,at(rt,e,t),t},We=function(e){return ot(rt,e)||{}},qe=function(e){return it(rt,e)}}else{var ut=Je("state");Qe[ut]=!0,Ge=function(e,t){if(ye(e,ut))throw new tt(et);return t.facade=e,$e(e,ut,t),t},We=function(e){return ye(e,ut)?e[ut]:{}},qe=function(e){return ye(e,ut)}}var st={set:Ge,get:We,has:qe,enforce:function(e){return qe(e)?We(e):Ge(e,{})},getterFor:function(e){return function(t){var n;if(!$(t)||(n=We(t)).type!==e)throw tt("Incompatible receiver, "+e+" required");return n}}},lt=Function.prototype,ct=w&&Object.getOwnPropertyDescriptor,ft=ye(lt,"name"),dt={EXISTS:ft,PROPER:ft&&"something"===function(){}.name,CONFIGURABLE:ft&&(!w||w&&ct(lt,"name").configurable)},pt=v((function(e){var t=dt.CONFIGURABLE,n=st.get,r=st.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;U(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ye(i,"name")||t&&i.name!==f)&&$e(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==b?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:$e(e,n,i)):l?e[n]=i:ce(n,i)})(Function.prototype,"toString",(function(){return U(this)&&n(this).source||Ke(this)}))})),ht=Math.ceil,vt=Math.floor,gt=function(e){var t=+e;return t!=t||0===t?0:(t>0?vt:ht)(t)},yt=Math.max,mt=Math.min,bt=function(e,t){var n=gt(e);return n<0?yt(n+t,0):mt(n,t)},Et=Math.min,wt=function(e){return e>0?Et(gt(e),9007199254740991):0},St=function(e){return wt(e.length)},Dt=function(e){return function(t,n,r){var o,i=H(t),a=St(i),u=bt(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}},Ct={includes:Dt(!0),indexOf:Dt(!1)},At=Ct.indexOf,xt=B([].push),Ot=function(e,t){var n,r=H(e),o=0,i=[];for(n in r)!ye(Qe,n)&&ye(r,n)&&xt(i,n);for(;t.length>o;)ye(r,n=t[o++])&&(~At(i,n)||xt(i,n));return i},Tt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nt=Tt.concat("length","prototype"),kt={f:Object.getOwnPropertyNames||function(e){return Ot(e,Nt)}},It={f:Object.getOwnPropertySymbols},Bt=B([].concat),Pt=G("Reflect","ownKeys")||function(e){var t=kt.f(Me(e)),n=It.f;return n?Bt(t,n(e)):t},Ft=function(e,t){for(var n=Pt(t),r=Ue.f,o=Re.f,i=0;i<n.length;i++){var a=n[i];ye(e,a)||r(e,a,o(t,a))}},_t=/#|\.prototype\./,Rt=function(e,t){var n=Lt[jt(e)];return n==zt||n!=Mt&&(U(t)?E(t):!!t)},jt=Rt.normalize=function(e){return String(e).replace(_t,".").toLowerCase()},Lt=Rt.data={},Mt=Rt.NATIVE="N",zt=Rt.POLYFILL="P",Ht=Rt,Ut=Re.f,$t=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?b:l?b[u]||ce(u,{}):(b[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Ut(n,r))&&a.value:n[r],!Ht(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ft(i,o)}(e.sham||o&&o.sham)&&$e(i,"sham",!0),pt(n,r,i,e)}},Vt={};Vt[xe("toStringTag")]="z";var Gt,Wt="[object z]"===String(Vt),qt=xe("toStringTag"),Kt=b.Object,Yt="Arguments"==_(function(){return arguments}()),Xt=Wt?_: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=Kt(e),qt))?n:Yt?_(t):"Object"==(r=_(t))&&U(t.callee)?"Arguments":r},Zt=b.String,Jt=function(e){if("Symbol"===Xt(e))throw TypeError("Cannot convert a Symbol value to a string");return Zt(e)},Qt="\t\n\v\f\r \u2028\u2029\ufeff",en=B("".replace),tn="["+Qt+"]",nn=RegExp("^"+tn+tn+"*"),rn=RegExp(tn+tn+"*$"),on=function(e){return function(t){var n=Jt(z(t));return 1&e&&(n=en(n,nn,"")),2&e&&(n=en(n,rn,"")),n}},an={start:on(1),end:on(2),trim:on(3)},un=dt.PROPER,sn=an.trim;function ln(e){return e.length?e[0].tagName.toLowerCase():""}function cn(e,t,n,r){void 0===t&&(t="auto"),void 0===n&&(n="auto"),void 0===r&&(r={});var o=u.default(e),i=r.width,a=void 0===i?"":i,s=r.height,l=void 0===s?"":s,c="";return a&&(c+="width: "+a+";"),l&&(c+="height: "+l+";"),o.attr("width",t),o.attr("height",n),o.attr("style",c),o[0].outerHTML}$t({target:"String",proto:!0,forced:(Gt="trim",E((function(){return!!Qt[Gt]()||"
"!=="
"[Gt]()||un&&Qt[Gt].name!==Gt})))},{trim:function(){return sn(this)}}),$t({global:!0},{globalThis:b}),o.append&&(u.default.fn.append=o.append),o.on&&(u.default.fn.on=o.on),o.focus&&(u.default.fn.focus=o.focus),o.attr&&(u.default.fn.attr=o.attr),o.val&&(u.default.fn.val=o.val),o.html&&(u.default.fn.html=o.html),o.parent&&(u.default.fn.parent=o.parent),o.hasClass&&(u.default.fn.hasClass=o.hasClass),o.empty&&(u.default.fn.empty=o.empty);var fn,dn={type:"video",renderElem:function(t,n,o){var i,a=t,u=a.src,s=void 0===u?"":u,l=a.poster,c=void 0===l?"":l,f=a.width,d=void 0===f?"auto":f,p=a.height,h=void 0===p?"auto":p,v=a.style,g=void 0===v?{}:v,y=a.textAlign,m=void 0===y?"center":y,b=e.DomEditor.isNodeSelected(o,t);if(0===s.trim().indexOf("<iframe ")){var E=cn(s,d,h,g);i=r.jsx("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:m},innerHTML:E})}else{var w=r.jsx("video",{poster:c,controls:!0,style:g},r.jsx("source",{src:s,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==d&&(w.data.width=d),"auto"!==h&&(w.data.height=h),i=r.jsx("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:m}},w)}return r.h("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},i)}},pn={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,l=n.height,c=void 0===l?"auto":l,f=n.style,d=void 0===f?{}:f,p=n.textAlign,h='<div data-w-e-type="video" data-w-e-is-void style="text-align: '+(void 0===p?"center":p)+';">\n';if(0===o.trim().indexOf("<iframe "))h+=cn(o,s,c,d);else{var v=d.width,g=void 0===v?"":v,y=d.height,m=void 0===y?"":y,b="";g&&(b+="width: "+g+";"),m&&(b+="height: "+m+";"),h+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'" style="'+b+'"><source src="'+o+'" type="video/mp4"/></video>'}return h+"\n</div>"}},hn=Object.keys||function(e){return Ot(e,Tt)},vn=w?Object.defineProperties:function(e,t){Me(e);for(var n,r=H(t),o=hn(t),i=o.length,a=0;i>a;)Ue.f(e,n=o[a++],r[n]);return e},gn=G("document","documentElement"),yn=Je("IE_PROTO"),mn=function(){},bn=function(e){return"<script>"+e+"<\/script>"},En=function(e){e.write(bn("")),e.close();var t=e.parentWindow.Object;return e=null,t},wn=function(){try{fn=new ActiveXObject("htmlfile")}catch(e){}var e,t;wn="undefined"!=typeof document?document.domain&&fn?En(fn):((t=Pe("iframe")).style.display="none",gn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(bn("document.F=Object")),e.close(),e.F):En(fn);for(var n=Tt.length;n--;)delete wn.prototype[Tt[n]];return wn()};Qe[yn]=!0;var Sn=Object.create||function(e,t){var n;return null!==e?(mn.prototype=Me(e),n=new mn,mn.prototype=null,n[yn]=e):n=wn(),void 0===t?n:vn(n,t)},Dn=xe("unscopables"),Cn=Array.prototype;null==Cn[Dn]&&Ue.f(Cn,Dn,{configurable:!0,value:Sn(null)});var An=function(e){Cn[Dn][e]=!0},xn=Ct.includes;$t({target:"Array",proto:!0},{includes:function(e){return xn(this,e,arguments.length>1?arguments[1]:void 0)}}),An("includes");var On={selector:"iframe,video,p",preParseHtml:function(e){var t=u.default(e),n=t;if("p"===ln(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=u.default(o))}}var a=ln(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var s=u.default('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return s.append(n),s[0]}},Tn=B(B.bind),Nn=function(e,t){return ae(e),void 0===t?e:Tn?Tn(e,t):function(){return e.apply(t,arguments)}},kn=Array.isArray||function(e){return"Array"==_(e)},In=function(){},Bn=[],Pn=G("Reflect","construct"),Fn=/^\s*(?:class|function)\b/,_n=B(Fn.exec),Rn=!Fn.exec(In),jn=function(e){if(!U(e))return!1;try{return Pn(In,Bn,e),!0}catch(e){return!1}},Ln=!Pn||E((function(){var e;return jn(jn.call)||!jn(Object)||!jn((function(){e=!0}))||e}))?function(e){if(!U(e))return!1;switch(Xt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Rn||!!_n(Fn,Ke(e))}:jn,Mn=xe("species"),zn=b.Array,Hn=function(e,t){return new(function(e){var t;return kn(e)&&(t=e.constructor,(Ln(t)&&(t===zn||kn(t.prototype))||$(t)&&null===(t=t[Mn]))&&(t=void 0)),void 0===t?zn:t}(e))(0===t?0:t)},Un=B([].push),$n=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=ve(s),v=L(h),g=Nn(l,c),y=St(v),m=0,b=f||Hn,E=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)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Un(E,d)}else switch(e){case 4:return!1;case 7:Un(E,d)}return i?-1:r||o?o:E}},Vn={forEach:$n(0),map:$n(1),filter:$n(2),some:$n(3),every:$n(4),find:$n(5),findIndex:$n(6),filterReject:$n(7)},Gn=Vn.find,Wn="find",qn=!0;Wn in[]&&Array(1).find((function(){qn=!1})),$t({target:"Array",proto:!0,forced:qn},{find:function(e){return Gn(this,e,arguments.length>1?arguments[1]:void 0)}}),An(Wn);var Kn=Wt?{}.toString:function(){return"[object "+Xt(this)+"]"};function Yn(e,t,n,r,o){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),{type:"video",src:e,poster:t,width:n,height:r,style:o,children:[{text:""}]}}Wt||pt(Object.prototype,"toString",Kn,{unsafe:!0});var Xn,Zn,Jn={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=u.default(e),o="",i="",a="auto",s="auto",l={},c=r.find("iframe");if(c.length>0)return a=c.attr("width")||"auto",s=c.attr("height")||"auto",l=c.attr("style")||{},Yn(o=c[0].outerHTML,i,a,s,l);var f=r.find("video");return(o=f.attr("src")||"")||f.length>0&&(o=f.find("source").attr("src")||""),a=f.attr("width")||"auto",s=f.attr("height")||"auto",Yn(o,i=f.attr("poster")||"",a,s,l=c.attr("style")||{})}},Qn=function(){var e=Me(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},er=b.RegExp,tr=E((function(){var e=er("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),nr=tr||E((function(){return!er("a","y").sticky})),rr={BROKEN_CARET:tr||E((function(){var e=er("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:nr,UNSUPPORTED_Y:tr},or=b.RegExp,ir=E((function(){var e=or(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ar=b.RegExp,ur=E((function(){var e=ar("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),sr=st.get,lr=pe("native-string-replace",String.prototype.replace),cr=RegExp.prototype.exec,fr=cr,dr=B("".charAt),pr=B("".indexOf),hr=B("".replace),vr=B("".slice),gr=(Zn=/b*/g,D(cr,Xn=/a/,"a"),D(cr,Zn,"a"),0!==Xn.lastIndex||0!==Zn.lastIndex),yr=rr.BROKEN_CARET,mr=void 0!==/()??/.exec("")[1];(gr||mr||yr||ir||ur)&&(fr=function(e){var t,n,r,o,i,a,u,s=this,l=sr(s),c=Jt(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=D(fr,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=yr&&s.sticky,h=D(Qn,s),v=s.source,g=0,y=c;if(p&&(h=hr(h,"y",""),-1===pr(h,"g")&&(h+="g"),y=vr(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==dr(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),mr&&(n=new RegExp("^"+v+"$(?!\\s)",h)),gr&&(r=s.lastIndex),o=D(cr,p?n:s,y),p?o?(o.input=vr(o.input,g),o[0]=vr(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:gr&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),mr&&o&&o.length>1&&D(lr,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=Sn(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var br=fr;$t({target:"RegExp",proto:!0,forced:/./.exec!==br},{exec:br});var Er=Function.prototype,wr=Er.apply,Sr=Er.bind,Dr=Er.call,Cr="object"==typeof Reflect&&Reflect.apply||(Sr?Dr.bind(wr):function(){return Dr.apply(wr,arguments)}),Ar=xe("species"),xr=RegExp.prototype,Or=B("".charAt),Tr=B("".charCodeAt),Nr=B("".slice),kr=function(e){return function(t,n){var r,o,i=Jt(z(t)),a=gt(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Tr(i,a))<55296||r>56319||a+1===u||(o=Tr(i,a+1))<56320||o>57343?e?Or(i,a):r:e?Nr(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ir={codeAt:kr(!1),charAt:kr(!0)},Br=Ir.charAt,Pr=function(e,t,n){return t+(n?Br(e,t).length:1)},Fr=Math.floor,_r=B("".charAt),Rr=B("".replace),jr=B("".slice),Lr=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Mr=/\$([$&'`]|\d{1,2})/g,zr=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Mr;return void 0!==o&&(o=ve(o),s=Lr),Rr(i,s,(function(i,s){var l;switch(_r(s,0)){case"$":return"$";case"&":return e;case"`":return jr(t,0,n);case"'":return jr(t,a);case"<":l=o[jr(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=Fr(c/10);return 0===f?i:f<=u?void 0===r[f-1]?_r(s,1):r[f-1]+_r(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Hr=b.TypeError,Ur=function(e,t){var n=e.exec;if(U(n)){var r=D(n,e,t);return null!==r&&Me(r),r}if("RegExp"===_(e))return D(br,e,t);throw Hr("RegExp#exec called on incompatible receiver")},$r=xe("replace"),Vr=Math.max,Gr=Math.min,Wr=B([].concat),qr=B([].push),Kr=B("".indexOf),Yr=B("".slice),Xr="$0"==="a".replace(/./,"$0"),Zr=!!/./[$r]&&""===/./[$r]("a","$0");function Jr(e){return void 0===e&&(e="r"),e+"-"+i.nanoid()}!function(e,t,n,r){var o=xe(e),i=!E((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!E((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Ar]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=B(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=B(e),s=t.exec;return s===br||s===xr.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));pt(String.prototype,e,s[0]),pt(xr,o,s[1])}r&&$e(xr[o],"sham",!0)}("replace",(function(e,t,n){var r=Zr?"$":"$0";return[function(e,n){var r=z(this),o=null==e?void 0:ue(e,$r);return o?D(o,e,r,n):D(t,Jt(r),e,n)},function(e,o){var i=Me(this),a=Jt(e);if("string"==typeof o&&-1===Kr(o,r)&&-1===Kr(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=U(o);s||(o=Jt(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=Ur(i,a);if(null===d)break;if(qr(f,d),!l)break;""===Jt(d[0])&&(i.lastIndex=Pr(a,wt(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=Jt((d=f[g])[0]),m=Vr(Gr(gt(d.index),a.length),0),b=[],E=1;E<d.length;E++)qr(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=Wr([y],b,m,a);void 0!==w&&qr(S,w);var D=Jt(Cr(o,void 0,S))}else D=zr(y,a,m,b,w,o);m>=v&&(h+=Yr(a,v,m)+D,v=m+y.length)}return h+Yr(a,v)}]}),!!E((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Xr||Zr);var Qr=b.Promise,eo=function(e,t,n){for(var r in t)pt(e,r,t[r],n);return e},to=b.String,no=b.TypeError,ro=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=B(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Me(n),function(e){if("object"==typeof e||U(e))return e;throw no("Can't set "+to(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),oo=Ue.f,io=xe("toStringTag"),ao=function(e,t,n){e&&!ye(e=n?e:e.prototype,io)&&oo(e,io,{configurable:!0,value:t})},uo=xe("species"),so=b.TypeError,lo=function(e,t){if(W(t,e))return e;throw so("Incorrect invocation")},co={},fo=xe("iterator"),po=Array.prototype,ho=xe("iterator"),vo=function(e){if(null!=e)return ue(e,ho)||ue(e,"@@iterator")||co[Xt(e)]},go=b.TypeError,yo=function(e,t,n){var r,o;Me(e);try{if(!(r=ue(e,"return"))){if("throw"===t)throw n;return n}r=D(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Me(r),n},mo=b.TypeError,bo=function(e,t){this.stopped=e,this.result=t},Eo=bo.prototype,wo=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=Nn(t,f),g=function(e){return r&&yo(r,"normal",e),new bo(!0,e)},y=function(e){return d?(Me(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=vo(e)))throw mo(oe(e)+" is not iterable");if(void 0!==(c=o)&&(co.Array===c||po[fo]===c)){for(i=0,a=St(e);a>i;i++)if((u=y(e[i]))&&W(Eo,u))return u;return new bo(!1)}r=function(e,t){var n=arguments.length<2?vo(e):t;if(ae(n))return Me(D(n,e));throw go(oe(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=D(s,r)).done;){try{u=y(l.value)}catch(e){yo(r,"throw",e)}if("object"==typeof u&&u&&W(Eo,u))return u}return new bo(!1)},So=xe("iterator"),Do=!1;try{var Co=0,Ao={next:function(){return{done:!!Co++}},return:function(){Do=!0}};Ao[So]=function(){return this},Array.from(Ao,(function(){throw 2}))}catch(e){}var xo,Oo,To,No,ko=function(e,t){if(!t&&!Do)return!1;var n=!1;try{var r={};r[So]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Io=b.TypeError,Bo=xe("species"),Po=function(e,t){var n,r=Me(e).constructor;return void 0===r||null==(n=Me(r)[Bo])?t:function(e){if(Ln(e))return e;throw Io(oe(e)+" is not a constructor")}(n)},Fo=B([].slice),_o=/(?:ipad|iphone|ipod).*applewebkit/i.test(q),Ro="process"==_(b.process),jo=b.setImmediate,Lo=b.clearImmediate,Mo=b.process,zo=b.Dispatch,Ho=b.Function,Uo=b.MessageChannel,$o=b.String,Vo=0,Go={},Wo="onreadystatechange";try{xo=b.location}catch(e){}var qo=function(e){if(ye(Go,e)){var t=Go[e];delete Go[e],t()}},Ko=function(e){return function(){qo(e)}},Yo=function(e){qo(e.data)},Xo=function(e){b.postMessage($o(e),xo.protocol+"//"+xo.host)};jo&&Lo||(jo=function(e){var t=Fo(arguments,1);return Go[++Vo]=function(){Cr(U(e)?e:Ho(e),void 0,t)},Oo(Vo),Vo},Lo=function(e){delete Go[e]},Ro?Oo=function(e){Mo.nextTick(Ko(e))}:zo&&zo.now?Oo=function(e){zo.now(Ko(e))}:Uo&&!_o?(No=(To=new Uo).port2,To.port1.onmessage=Yo,Oo=Nn(No.postMessage,No)):b.addEventListener&&U(b.postMessage)&&!b.importScripts&&xo&&"file:"!==xo.protocol&&!E(Xo)?(Oo=Xo,b.addEventListener("message",Yo,!1)):Oo=Wo in Pe("script")?function(e){gn.appendChild(Pe("script")).onreadystatechange=function(){gn.removeChild(this),qo(e)}}:function(e){setTimeout(Ko(e),0)});var Zo,Jo,Qo,ei,ti,ni,ri,oi,ii={set:jo,clear:Lo},ai=/ipad|iphone|ipod/i.test(q)&&void 0!==b.Pebble,ui=/web0s(?!.*chrome)/i.test(q),si=Re.f,li=ii.set,ci=b.MutationObserver||b.WebKitMutationObserver,fi=b.document,di=b.process,pi=b.Promise,hi=si(b,"queueMicrotask"),vi=hi&&hi.value;vi||(Zo=function(){var e,t;for(Ro&&(e=di.domain)&&e.exit();Jo;){t=Jo.fn,Jo=Jo.next;try{t()}catch(e){throw Jo?ei():Qo=void 0,e}}Qo=void 0,e&&e.enter()},_o||Ro||ui||!ci||!fi?!ai&&pi&&pi.resolve?((ri=pi.resolve(void 0)).constructor=pi,oi=Nn(ri.then,ri),ei=function(){oi(Zo)}):Ro?ei=function(){di.nextTick(Zo)}:(li=Nn(li,b),ei=function(){li(Zo)}):(ti=!0,ni=fi.createTextNode(""),new ci(Zo).observe(ni,{characterData:!0}),ei=function(){ni.data=ti=!ti}));var gi,yi,mi,bi,Ei=vi||function(e){var t={fn:e,next:void 0};Qo&&(Qo.next=t),Jo||(Jo=t,ei()),Qo=t},wi=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=ae(t),this.reject=ae(n)},Si={f:function(e){return new wi(e)}},Di=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Ci="object"==typeof window,Ai=ii.set,xi=xe("species"),Oi="Promise",Ti=st.getterFor(Oi),Ni=st.set,ki=st.getterFor(Oi),Ii=Qr&&Qr.prototype,Bi=Qr,Pi=Ii,Fi=b.TypeError,_i=b.document,Ri=b.process,ji=Si.f,Li=ji,Mi=!!(_i&&_i.createEvent&&b.dispatchEvent),zi=U(b.PromiseRejectionEvent),Hi="unhandledrejection",Ui=!1,$i=Ht(Oi,(function(){var e=Ke(Bi),t=e!==String(Bi);if(!t&&66===J)return!0;if(J>=51&&/native code/.test(e))return!1;var n=new Bi((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[xi]=r,!(Ui=n.then((function(){}))instanceof r)||!t&&Ci&&!zi})),Vi=$i||!ko((function(e){Bi.all(e).catch((function(){}))})),Gi=function(e){var t;return!(!$(e)||!U(t=e.then))&&t},Wi=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Ei((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Xi(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Fi("Promise-chain cycle")):(u=Gi(a))?D(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Ki(e)}))}},qi=function(e,t,n){var r,o;Mi?((r=_i.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),b.dispatchEvent(r)):r={promise:t,reason:n},!zi&&(o=b["on"+e])?o(r):e===Hi&&function(e,t){var n=b.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Ki=function(e){D(Ai,b,(function(){var t,n=e.facade,r=e.value;if(Yi(e)&&(t=Di((function(){Ro?Ri.emit("unhandledRejection",r,n):qi(Hi,n,r)})),e.rejection=Ro||Yi(e)?2:1,t.error))throw t.value}))},Yi=function(e){return 1!==e.rejection&&!e.parent},Xi=function(e){D(Ai,b,(function(){var t=e.facade;Ro?Ri.emit("rejectionHandled",t):qi("rejectionhandled",t,e.value)}))},Zi=function(e,t,n){return function(r){e(t,r,n)}},Ji=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Wi(e,!0))},Qi=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Fi("Promise can't be resolved itself");var r=Gi(t);r?Ei((function(){var n={done:!1};try{D(r,t,Zi(Qi,n,e),Zi(Ji,n,e))}catch(t){Ji(n,t,e)}})):(e.value=t,e.state=1,Wi(e,!1))}catch(t){Ji({done:!1},t,e)}}};if($i&&(Pi=(Bi=function(e){lo(this,Pi),ae(e),D(gi,this);var t=Ti(this);try{e(Zi(Qi,t),Zi(Ji,t))}catch(e){Ji(t,e)}}).prototype,(gi=function(e){Ni(this,{type:Oi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=eo(Pi,{then:function(e,t){var n=ki(this),r=n.reactions,o=ji(Po(this,Bi));return o.ok=!U(e)||e,o.fail=U(t)&&t,o.domain=Ro?Ri.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Wi(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),yi=function(){var e=new gi,t=Ti(e);this.promise=e,this.resolve=Zi(Qi,t),this.reject=Zi(Ji,t)},Si.f=ji=function(e){return e===Bi||e===mi?new yi(e):Li(e)},U(Qr)&&Ii!==Object.prototype)){bi=Ii.then,Ui||(pt(Ii,"then",(function(e,t){var n=this;return new Bi((function(e,t){D(bi,n,e,t)})).then(e,t)}),{unsafe:!0}),pt(Ii,"catch",Pi.catch,{unsafe:!0}));try{delete Ii.constructor}catch(e){}ro&&ro(Ii,Pi)}function ea(e,t,r,o,i){return void 0===r&&(r=""),void 0===o&&(o=""),void 0===i&&(i=""),l(this,void 0,void 0,(function(){var a,u,s,l,f,d,p;return c(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),a=e.getMenuConfig("insertVideo"),u=a.onInsertedVideo,s=a.checkVideo,l=a.parseVideoSrc,[4,s(t,r)]):[2];case 1:return"string"==typeof(f=c.sent())?(e.alert(f,"error"),[2]):null==f?[2]:[4,l(t)];case 2:return 0!==(d=c.sent()).trim().indexOf("<iframe ")&&(d=d.replace(/</g,"<").replace(/>/g,">")),p={type:"video",src:d,poster:r,children:[{text:""}],style:{width:o,height:i}},Promise.resolve().then((function(){n.Transforms.insertNodes(e,p)})),u(p),[2]}}))}))}function ta(){return Jr("w-e-insert-video")}$t({global:!0,wrap:!0,forced:$i},{Promise:Bi}),ao(Bi,Oi,!1),function(e){var t=G(e),n=Ue.f;w&&t&&!t[uo]&&n(t,uo,{configurable:!0,get:function(){return this}})}(Oi),mi=G(Oi),$t({target:Oi,stat:!0,forced:$i},{reject:function(e){var t=ji(this);return D(t.reject,void 0,e),t.promise}}),$t({target:Oi,stat:!0,forced:$i},{resolve:function(e){return function(e,t){if(Me(e),$(t)&&t.constructor===e)return t;var n=Si.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),$t({target:Oi,stat:!0,forced:Vi},{all:function(e){var t=this,n=ji(t),r=n.resolve,o=n.reject,i=Di((function(){var n=ae(t.resolve),i=[],a=0,u=1;wo(e,(function(e){var s=a++,l=!1;u++,D(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=ji(t),r=n.reject,o=Di((function(){var o=ae(t.resolve);wo(e,(function(e){D(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var na=function(){function t(){this.title=e.t("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=ta(),this.posterInputId=ta(),this.buttonId=ta()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,t){},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||!!e.DomEditor.getSelectedElems(t).some((function(n){var r=e.DomEditor.getNodeType(n);return"pre"===r||"list-item"===r||!!t.isVoid(n)}))},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,s=d(e.genModalInputElems(e.t("videoModule.videoSrc"),o,e.t("videoModule.videoSrcPlaceHolder")),2),f=s[0],p=s[1],h=d(e.genModalInputElems(e.t("videoModule.videoPoster"),i,e.t("videoModule.videoPosterPlaceHolder")),2),v=h[0],g=h[1],y=u.default(p),m=u.default(g),b=d(e.genModalButtonElems(a,e.t("videoModule.ok")),1)[0];if(null==this.$content){var E=u.default("<div></div>");E.on("click","#"+a,(function(e){return l(n,void 0,void 0,(function(){var n,r;return c(this,(function(a){switch(a.label){case 0:return e.preventDefault(),n=E.find("#"+o).val().trim(),r=E.find("#"+i).val().trim(),[4,ea(t,n,r)];case 1:return a.sent(),t.hidePanelOrModal(),[2]}}))}))})),this.$content=E}var w=this.$content;return w.empty(),w.append(f),w.append(v),w.append(b),y.val(""),m.val(""),setTimeout((function(){y.focus()})),w[0]},t}(),ra=B([].join),oa=L!=Object,ia=function(e,t){var n=[].join;return!!n&&E((function(){n.call(null,t||function(){throw 1},1)}))}(0,",");$t({target:"Array",proto:!0,forced:oa||!ia},{join:function(e){return ra(H(this),void 0===e?",":e)}});var aa,ua,sa,la=!E((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ca=Je("IE_PROTO"),fa=b.Object,da=fa.prototype,pa=la?fa.getPrototypeOf:function(e){var t=ve(e);if(ye(t,ca))return t[ca];var n=t.constructor;return U(n)&&t instanceof n?n.prototype:t instanceof fa?da:null},ha=xe("iterator"),va=!1;[].keys&&("next"in(sa=[].keys())?(ua=pa(pa(sa)))!==Object.prototype&&(aa=ua):va=!0);var ga=null==aa||E((function(){var e={};return aa[ha].call(e)!==e}));ga&&(aa={}),U(aa[ha])||pt(aa,ha,(function(){return this}));var ya={IteratorPrototype:aa,BUGGY_SAFARI_ITERATORS:va},ma=ya.IteratorPrototype,ba=function(){return this},Ea=dt.PROPER,wa=dt.CONFIGURABLE,Sa=ya.IteratorPrototype,Da=ya.BUGGY_SAFARI_ITERATORS,Ca=xe("iterator"),Aa="keys",xa="values",Oa="entries",Ta=function(){return this},Na=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Sn(ma,{next:O(+!r,n)}),ao(e,o,!1),co[o]=ba}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!Da&&e in p)return p[e];switch(e){case Aa:case xa:case Oa:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Ca]||p["@@iterator"]||o&&p[o],v=!Da&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=pa(g.call(new e)))!==Object.prototype&&u.next&&(pa(u)!==Sa&&(ro?ro(u,Sa):U(u[Ca])||pt(u,Ca,Ta)),ao(u,f,!0)),Ea&&o==xa&&h&&h.name!==xa&&(wa?$e(p,"name",xa):(d=!0,v=function(){return D(h,this)})),o)if(s={values:c(xa),keys:i?v:c(Aa),entries:c(Oa)},a)for(l in s)(Da||d||!(l in p))&&pt(p,l,s[l]);else $t({target:t,proto:!0,forced:Da||d},s);return p[Ca]!==v&&pt(p,Ca,v,{name:o}),co[t]=v,s},ka="Array Iterator",Ia=st.set,Ba=st.getterFor(ka),Pa=Na(Array,"Array",(function(e,t){Ia(this,{type:ka,target:H(e),index:0,kind:t})}),(function(){var e=Ba(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");co.Arguments=co.Array,An("keys"),An("values"),An("entries");var Fa=Ir.charAt,_a="String Iterator",Ra=st.set,ja=st.getterFor(_a);Na(String,"String",(function(e){Ra(this,{type:_a,string:Jt(e),index:0})}),(function(){var e,t=ja(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Fa(n,r),t.index+=e.length,{value:e,done:!1})}));var La=function(e,t,n){var r=ke(t);r in e?Ue.f(e,r,O(0,n)):e[r]=n},Ma=b.Array,za=Math.max,Ha=kt.f,Ua="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$a=function(e){try{return Ha(e)}catch(e){return function(e,t,n){for(var r=St(e),o=bt(t,r),i=bt(void 0===n?r:n,r),a=Ma(za(i-o,0)),u=0;o<i;o++,u++)La(a,u,e[o]);return a.length=u,a}(Ua)}},Va={f:function(e){return Ua&&"Window"==_(e)?$a(e):Ha(H(e))}},Ga=E((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Wa=Object.isExtensible,qa=E((function(){Wa(1)}))||Ga?function(e){return!!$(e)&&(!Ga||"ArrayBuffer"!=_(e))&&(!Wa||Wa(e))}:Wa,Ka=!E((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ya=v((function(e){var t=Ue.f,n=!1,r=we("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=kt.f,t=B([].splice),o={};o[r]=1,e(o).length&&(kt.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},$t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Va.f}))},fastKey:function(e,t){if(!$(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!ye(e,r)){if(!qa(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!ye(e,r)){if(!qa(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Ka&&n&&qa(e)&&!ye(e,r)&&i(e),e}};Qe[r]=!0})),Xa=Ya.getWeakData,Za=st.set,Ja=st.getterFor,Qa=Vn.find,eu=Vn.findIndex,tu=B([].splice),nu=0,ru=function(e){return e.frozen||(e.frozen=new ou)},ou=function(){this.entries=[]},iu=function(e,t){return Qa(e.entries,(function(e){return e[0]===t}))};ou.prototype={get:function(e){var t=iu(this,e);if(t)return t[1]},has:function(e){return!!iu(this,e)},set:function(e,t){var n=iu(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=eu(this.entries,(function(t){return t[0]===e}));return~t&&tu(this.entries,t,1),!!~t}};var au,uu={getConstructor:function(e,t,n,r){var o=e((function(e,o){lo(e,i),Za(e,{type:t,id:nu++,frozen:void 0}),null!=o&&wo(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Ja(t),u=function(e,t,n){var r=a(e),o=Xa(Me(t),!0);return!0===o?ru(r).set(t,n):o[r.id]=n,e};return eo(i,{delete:function(e){var t=a(this);if(!$(e))return!1;var n=Xa(e);return!0===n?ru(t).delete(e):n&&ye(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!$(e))return!1;var n=Xa(e);return!0===n?ru(t).has(e):n&&ye(n,t.id)}}),eo(i,n?{get:function(e){var t=a(this);if($(e)){var n=Xa(e);return!0===n?ru(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}},su=st.enforce,lu=!b.ActiveXObject&&"ActiveXObject"in b,cu=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},fu=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=b[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=B(u[e]);pt(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!$(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!$(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!$(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Ht(e,!U(a)||!(o||u.forEach&&!E((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Ya.enable();else if(Ht(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=E((function(){f.has(1)})),h=ko((function(e){new a(e)})),v=!o&&E((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){lo(e,u);var n=function(e,t,n){var r,o;return ro&&U(r=t.constructor)&&r!==n&&$(o=r.prototype)&&o!==n.prototype&&ro(e,o),e}(new a,e,s);return null!=t&&wo(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,$t({global:!0,forced:s!=a},l),ao(s,e),o||n.setStrong(s,e,r),s}("WeakMap",cu,uu);if(Xe&&lu){au=uu.getConstructor(cu,"WeakMap",!0),Ya.enable();var du=fu.prototype,pu=B(du.delete),hu=B(du.has),vu=B(du.get),gu=B(du.set);eo(du,{delete:function(e){if($(e)&&!qa(e)){var t=su(this);return t.frozen||(t.frozen=new au),pu(this,e)||t.frozen.delete(e)}return pu(this,e)},has:function(e){if($(e)&&!qa(e)){var t=su(this);return t.frozen||(t.frozen=new au),hu(this,e)||t.frozen.has(e)}return hu(this,e)},get:function(e){if($(e)&&!qa(e)){var t=su(this);return t.frozen||(t.frozen=new au),hu(this,e)?vu(this,e):t.frozen.get(e)}return vu(this,e)},set:function(e,t){if($(e)&&!qa(e)){var n=su(this);n.frozen||(n.frozen=new au),hu(this,e)?gu(this,e,t):n.frozen.set(e,t)}else gu(this,e,t);return this}})}var yu={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},mu=Pe("span").classList,bu=mu&&mu.constructor&&mu.constructor.prototype,Eu=bu===Object.prototype?void 0:bu,wu=xe("iterator"),Su=xe("toStringTag"),Du=Pa.values,Cu=function(e,t){if(e){if(e[wu]!==Du)try{$e(e,wu,Du)}catch(t){e[wu]=Du}if(e[Su]||$e(e,Su,t),yu[t])for(var n in Pa)if(e[n]!==Pa[n])try{$e(e,n,Pa[n])}catch(t){e[n]=Pa[n]}}};for(var Au in yu)Cu(b[Au]&&b[Au].prototype,Au);Cu(Eu,"DOMTokenList");var xu=dt.EXISTS,Ou=Ue.f,Tu=Function.prototype,Nu=B(Tu.toString),ku=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Iu=B(ku.exec);w&&!xu&&Ou(Tu,"name",{configurable:!0,get:function(){try{return Iu(ku,Nu(this))[1]}catch(e){return""}}});var Bu=xe("species"),Pu=function(e){return J>=51||!E((function(){var t=[];return(t.constructor={})[Bu]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}("slice"),Fu=xe("species"),_u=b.Array,Ru=Math.max;function ju(e){return e.getMenuConfig("uploadVideo")}$t({target:"Array",proto:!0,forced:!Pu},{slice:function(e,t){var n,r,o,i=H(this),a=St(i),u=bt(e,a),s=bt(void 0===t?a:t,a);if(kn(i)&&(n=i.constructor,(Ln(n)&&(n===_u||kn(n.prototype))||$(n)&&null===(n=n[Fu]))&&(n=void 0),n===_u||void 0===n))return Fo(i,u,s);for(r=new(void 0===n?_u:n)(Ru(s-u,0)),o=0;u<s;u++,o++)u in i&&La(r,o,i[u]);return r.length=o,r}});var Lu=new WeakMap;function Mu(t,n){return l(this,void 0,void 0,(function(){var r,o,i,a;return c(this,(function(u){switch(u.label){case 0:return r=function(t){var n=Lu.get(t);if(null!=n)return n;var r=ju(t),o=r.onSuccess,i=r.onProgress,a=r.onFailed,u=r.customInsert,l=r.onError;return n=e.createUploader(s(s({},r),{onProgress:function(e){t.showProgressBar(e),i&&i(e)},onSuccess:function(e,n){if(u)return u(n,(function(e,n){return ea(t,e,n)})),void o(e,n);var r=n.errno,i=void 0===r?1:r,s=n.data,l=void 0===s?{}:s;if(0===i){var c=l.url,f=void 0===c?"":c,d=l.poster;ea(t,f,void 0===d?"":d),o(e,n)}else a(e,n)},onError:function(e,t,n){l(e,t,n)}})),Lu.set(t,n),n}(t),o=n.name,i=n.type,a=n.size,r.addFile({name:o,type:i,size:a,data:n}),[4,r.upload()];case 1:return u.sent(),[2]}}))}))}var zu=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.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 ea(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var s=u.default("body"),f=u.default('<input type="file" '+a+" multiple/>");f.hide(),s.append(f),f.click(),f.on("change",(function(){var t=f[0].files;!function(e,t){var n,r;l(this,void 0,void 0,(function(){var o,i,a,u,s,l;return c(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=ju(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=p(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return ea(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,Mu(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||!!e.DomEditor.getSelectedElems(t).some((function(n){var r=e.DomEditor.getNodeType(n);return"pre"===r||"list-item"===r||!!t.isVoid(n)}))},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}();function Hu(){return Jr("w-e-insert-video")}var Uu=function(){function t(){this.title=e.t("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Hu(),this.heightInputId=Hu(),this.buttonId=Hu()}return t.prototype.getSelectedVideoNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"video")},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,t){},t.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},t.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},t.prototype.getModalContentElem=function(t){var r=this,o=r.widthInputId,i=r.heightInputId,a=r.buttonId,l=d(e.genModalInputElems(e.t("videoModule.width"),o,"auto"),2),c=l[0],f=l[1],p=u.default(f),h=d(e.genModalInputElems(e.t("videoModule.height"),i,"auto"),2),v=h[0],g=h[1],y=u.default(g),m=d(e.genModalButtonElems(a,e.t("videoModule.ok")),1)[0];if(null==this.$content){var b=u.default("<div></div>");b.on("click","#"+a,(function(r){r.preventDefault();var a=b.find("#"+o).val().trim(),u=b.find("#"+i).val().trim(),l=function(e){return/^\d+(\.\d+)?%$/.test(e)},c=function(e){return/^\d+(\.\d+)?$/.test(e)},f="auto",d="auto";l(a)?f=a:c(a)&&(f=parseInt(a)+"px"),l(u)?d=u:c(u)&&(d=parseInt(u)+"px");var p=w.style,h=void 0===p?{}:p;t.restoreSelection();var v=s(s({},h),{style:{width:f,height:d}});n.Transforms.setNodes(t,v,{match:function(t){return e.DomEditor.checkNodeType(t,"video")}}),t.hidePanelOrModal()})),this.$content=b}var E=this.$content;E.empty(),E.append(c),E.append(v),E.append(m);var w=this.getSelectedVideoNode(t);if(null==w)return E[0];var S=w.width,D=void 0===S?"auto":S,C=w.height,A=void 0===C?"auto":C;return p.val(D),y.val(A),setTimeout((function(){p.focus()})),E[0]},t}(),$u={renderElems:[dn],elemsToHtml:[pn],preParseHtml:[On],parseElemsHtml:[Jn],menus:[{key:"insertVideo",factory:function(){return new na},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new zu},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new Uu}}],editorPlugin:function(t){var r=t.isVoid,o=t.normalizeNode,i=t;return i.isVoid=function(e){return"video"===e.type||r(e)},i.normalizeNode=function(t){var r=d(t,2),a=r[0],u=r[1];return"video"===e.DomEditor.getNodeType(a)&&e.DomEditor.isLastNode(i,a)&&n.Transforms.insertNodes(i,e.DomEditor.genEmptyParagraph(),{at:[u[0]+1]}),o([a,u])},i}};return $u}(kw,Ow,Nw,Tw,Jm)})),rS=r((function(e,n){e.exports=function(e,n,r){function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(r);e.i18nAddResources("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),e.i18nAddResources("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function u(e){var t={exports:{}};return e(t,t.exports),t.exports}var s,l,c=function(e){return e&&e.Math==Math&&e},f=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof a&&a)||function(){return this}()||Function("return this")(),d=function(e){try{return!!e()}catch(e){return!0}},p=!d((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=Function.prototype.call,v=h.bind?h.bind(h):function(){return h.apply(h,arguments)},g={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,m={f:y&&!g.call({1:2},1)?function(e){var t=y(this,e);return!!t&&t.enumerable}:g},b=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},E=Function.prototype,w=E.bind,S=E.call,D=w&&w.bind(S),C=w?function(e){return e&&D(S,e)}:function(e){return e&&function(){return S.apply(e,arguments)}},A=C({}.toString),x=C("".slice),O=function(e){return x(A(e),8,-1)},T=f.Object,N=C("".split),k=d((function(){return!T("z").propertyIsEnumerable(0)}))?function(e){return"String"==O(e)?N(e,""):T(e)}:T,I=f.TypeError,B=function(e){if(null==e)throw I("Can't call method on "+e);return e},P=function(e){return k(B(e))},F=function(e){return"function"==typeof e},_=function(e){return"object"==typeof e?null!==e:F(e)},R=function(e){return F(e)?e:void 0},j=function(e,t){return arguments.length<2?R(f[e]):f[e]&&f[e][t]},L=C({}.isPrototypeOf),M=j("navigator","userAgent")||"",z=f.process,H=f.Deno,U=z&&z.versions||H&&H.version,$=U&&U.v8;$&&(l=(s=$.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!l&&M&&(!(s=M.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=M.match(/Chrome\/(\d+)/))&&(l=+s[1]);var V=l,G=!!Object.getOwnPropertySymbols&&!d((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V&&V<41})),W=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,q=f.Object,K=W?function(e){return"symbol"==typeof e}:function(e){var t=j("Symbol");return F(t)&&L(t.prototype,q(e))},Y=f.String,X=function(e){try{return Y(e)}catch(e){return"Object"}},Z=f.TypeError,J=function(e){if(F(e))return e;throw Z(X(e)+" is not a function")},Q=function(e,t){var n=e[t];return null==n?void 0:J(n)},ee=f.TypeError,te=Object.defineProperty,ne=function(e,t){try{te(f,e,{value:t,configurable:!0,writable:!0})}catch(n){f[e]=t}return t},re="__core-js_shared__",oe=f[re]||ne(re,{}),ie=u((function(e){(e.exports=function(e,t){return oe[e]||(oe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ae=f.Object,ue=function(e){return ae(B(e))},se=C({}.hasOwnProperty),le=Object.hasOwn||function(e,t){return se(ue(e),t)},ce=0,fe=Math.random(),de=C(1..toString),pe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+de(++ce+fe,36)},he=ie("wks"),ve=f.Symbol,ge=ve&&ve.for,ye=W?ve:ve&&ve.withoutSetter||pe,me=function(e){if(!le(he,e)||!G&&"string"!=typeof he[e]){var t="Symbol."+e;G&&le(ve,e)?he[e]=ve[e]:he[e]=W&&ge?ge(t):ye(t)}return he[e]},be=f.TypeError,Ee=me("toPrimitive"),we=function(e,t){if(!_(e)||K(e))return e;var n,r=Q(e,Ee);if(r){if(void 0===t&&(t="default"),n=v(r,e,t),!_(n)||K(n))return n;throw be("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&F(n=e.toString)&&!_(r=v(n,e)))return r;if(F(n=e.valueOf)&&!_(r=v(n,e)))return r;if("string"!==t&&F(n=e.toString)&&!_(r=v(n,e)))return r;throw ee("Can't convert object to primitive value")}(e,t)},Se=function(e){var t=we(e,"string");return K(t)?t:t+""},De=f.document,Ce=_(De)&&_(De.createElement),Ae=function(e){return Ce?De.createElement(e):{}},xe=!p&&!d((function(){return 7!=Object.defineProperty(Ae("div"),"a",{get:function(){return 7}}).a})),Oe=Object.getOwnPropertyDescriptor,Te={f:p?Oe:function(e,t){if(e=P(e),t=Se(t),xe)try{return Oe(e,t)}catch(e){}if(le(e,t))return b(!v(m.f,e,t),e[t])}},Ne=f.String,ke=f.TypeError,Ie=function(e){if(_(e))return e;throw ke(Ne(e)+" is not an object")},Be=f.TypeError,Pe=Object.defineProperty,Fe={f:p?Pe:function(e,t,n){if(Ie(e),t=Se(t),Ie(n),xe)try{return Pe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Be("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},_e=p?function(e,t,n){return Fe.f(e,t,b(1,n))}:function(e,t,n){return e[t]=n,e},Re=C(Function.toString);F(oe.inspectSource)||(oe.inspectSource=function(e){return Re(e)});var je,Le,Me,ze=oe.inspectSource,He=f.WeakMap,Ue=F(He)&&/native code/.test(ze(He)),$e=ie("keys"),Ve=function(e){return $e[e]||($e[e]=pe(e))},Ge={},We="Object already initialized",qe=f.TypeError,Ke=f.WeakMap;if(Ue||oe.state){var Ye=oe.state||(oe.state=new Ke),Xe=C(Ye.get),Ze=C(Ye.has),Je=C(Ye.set);je=function(e,t){if(Ze(Ye,e))throw new qe(We);return t.facade=e,Je(Ye,e,t),t},Le=function(e){return Xe(Ye,e)||{}},Me=function(e){return Ze(Ye,e)}}else{var Qe=Ve("state");Ge[Qe]=!0,je=function(e,t){if(le(e,Qe))throw new qe(We);return t.facade=e,_e(e,Qe,t),t},Le=function(e){return le(e,Qe)?e[Qe]:{}},Me=function(e){return le(e,Qe)}}var et={set:je,get:Le,has:Me,enforce:function(e){return Me(e)?Le(e):je(e,{})},getterFor:function(e){return function(t){var n;if(!_(t)||(n=Le(t)).type!==e)throw qe("Incompatible receiver, "+e+" required");return n}}},tt=Function.prototype,nt=p&&Object.getOwnPropertyDescriptor,rt=le(tt,"name"),ot={EXISTS:rt,PROPER:rt&&"something"===function(){}.name,CONFIGURABLE:rt&&(!p||p&&nt(tt,"name").configurable)},it=u((function(e){var t=ot.CONFIGURABLE,n=et.get,r=et.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,d=a&&void 0!==a.name?a.name:n;F(i)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!le(i,"name")||t&&i.name!==d)&&_e(i,"name",d),(u=r(i)).source||(u.source=o.join("string"==typeof d?d:""))),e!==f?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:_e(e,n,i)):l?e[n]=i:ne(n,i)})(Function.prototype,"toString",(function(){return F(this)&&n(this).source||ze(this)}))})),at=Math.ceil,ut=Math.floor,st=function(e){var t=+e;return t!=t||0===t?0:(t>0?ut:at)(t)},lt=Math.max,ct=Math.min,ft=function(e,t){var n=st(e);return n<0?lt(n+t,0):ct(n,t)},dt=Math.min,pt=function(e){return e>0?dt(st(e),9007199254740991):0},ht=function(e){return pt(e.length)},vt=function(e){return function(t,n,r){var o,i=P(t),a=ht(i),u=ft(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}},gt=(vt(!0),vt(!1)),yt=C([].push),mt=function(e,t){var n,r=P(e),o=0,i=[];for(n in r)!le(Ge,n)&&le(r,n)&&yt(i,n);for(;t.length>o;)le(r,n=t[o++])&&(~gt(i,n)||yt(i,n));return i},bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Et=bt.concat("length","prototype"),wt={f:Object.getOwnPropertyNames||function(e){return mt(e,Et)}},St={f:Object.getOwnPropertySymbols},Dt=C([].concat),Ct=j("Reflect","ownKeys")||function(e){var t=wt.f(Ie(e)),n=St.f;return n?Dt(t,n(e)):t},At=function(e,t){for(var n=Ct(t),r=Fe.f,o=Te.f,i=0;i<n.length;i++){var a=n[i];le(e,a)||r(e,a,o(t,a))}},xt=/#|\.prototype\./,Ot=function(e,t){var n=Nt[Tt(e)];return n==It||n!=kt&&(F(t)?d(t):!!t)},Tt=Ot.normalize=function(e){return String(e).replace(xt,".").toLowerCase()},Nt=Ot.data={},kt=Ot.NATIVE="N",It=Ot.POLYFILL="P",Bt=Ot,Pt=Te.f,Ft=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?f:l?f[u]||ne(u,{}):(f[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Pt(n,r))&&a.value:n[r],!Bt(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;At(i,o)}(e.sham||o&&o.sham)&&_e(i,"sham",!0),it(n,r,i,e)}},_t=Array.isArray||function(e){return"Array"==O(e)},Rt={};Rt[me("toStringTag")]="z";var jt,Lt="[object z]"===String(Rt),Mt=me("toStringTag"),zt=f.Object,Ht="Arguments"==O(function(){return arguments}()),Ut=Lt?O: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=zt(e),Mt))?n:Ht?O(t):"Object"==(r=O(t))&&F(t.callee)?"Arguments":r},$t=function(){},Vt=[],Gt=j("Reflect","construct"),Wt=/^\s*(?:class|function)\b/,qt=C(Wt.exec),Kt=!Wt.exec($t),Yt=function(e){if(!F(e))return!1;try{return Gt($t,Vt,e),!0}catch(e){return!1}},Xt=!Gt||d((function(){var e;return Yt(Yt.call)||!Yt(Object)||!Yt((function(){e=!0}))||e}))?function(e){if(!F(e))return!1;switch(Ut(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Kt||!!qt(Wt,ze(e))}:Yt,Zt=function(e,t,n){var r=Se(t);r in e?Fe.f(e,r,b(0,n)):e[r]=n},Jt=me("species"),Qt=C([].slice),en=(jt="slice",V>=51||!d((function(){var e=[];return(e.constructor={})[Jt]=function(){return{foo:1}},1!==e[jt](Boolean).foo}))),tn=me("species"),nn=f.Array,rn=Math.max;Ft({target:"Array",proto:!0,forced:!en},{slice:function(e,t){var n,r,o,i=P(this),a=ht(i),u=ft(e,a),s=ft(void 0===t?a:t,a);if(_t(i)&&(n=i.constructor,(Xt(n)&&(n===nn||_t(n.prototype))||_(n)&&null===(n=n[tn]))&&(n=void 0),n===nn||void 0===n))return Qt(i,u,s);for(r=new(void 0===n?nn:n)(rn(s-u,0)),o=0;u<s;u++,o++)u in i&&Zt(r,o,i[u]);return r.length=o,r}});var on=Lt?{}.toString:function(){return"[object "+Ut(this)+"]"};Lt||it(Object.prototype,"toString",on,{unsafe:!0});var an,un=f.String,sn=function(e){if("Symbol"===Ut(e))throw TypeError("Cannot convert a Symbol value to a string");return un(e)},ln=function(){var e=Ie(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},cn=f.RegExp,fn=d((function(){var e=cn("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),dn=fn||d((function(){return!cn("a","y").sticky})),pn={BROKEN_CARET:fn||d((function(){var e=cn("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:dn,UNSUPPORTED_Y:fn},hn=Object.keys||function(e){return mt(e,bt)},vn=p?Object.defineProperties:function(e,t){Ie(e);for(var n,r=P(t),o=hn(t),i=o.length,a=0;i>a;)Fe.f(e,n=o[a++],r[n]);return e},gn=j("document","documentElement"),yn=Ve("IE_PROTO"),mn=function(){},bn=function(e){return"<script>"+e+"<\/script>"},En=function(e){e.write(bn("")),e.close();var t=e.parentWindow.Object;return e=null,t},wn=function(){try{an=new ActiveXObject("htmlfile")}catch(e){}var e,t;wn="undefined"!=typeof document?document.domain&&an?En(an):((t=Ae("iframe")).style.display="none",gn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(bn("document.F=Object")),e.close(),e.F):En(an);for(var n=bt.length;n--;)delete wn.prototype[bt[n]];return wn()};Ge[yn]=!0;var Sn,Dn,Cn=Object.create||function(e,t){var n;return null!==e?(mn.prototype=Ie(e),n=new mn,mn.prototype=null,n[yn]=e):n=wn(),void 0===t?n:vn(n,t)},An=f.RegExp,xn=d((function(){var e=An(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),On=f.RegExp,Tn=d((function(){var e=On("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Nn=et.get,kn=ie("native-string-replace",String.prototype.replace),In=RegExp.prototype.exec,Bn=In,Pn=C("".charAt),Fn=C("".indexOf),_n=C("".replace),Rn=C("".slice),jn=(Dn=/b*/g,v(In,Sn=/a/,"a"),v(In,Dn,"a"),0!==Sn.lastIndex||0!==Dn.lastIndex),Ln=pn.BROKEN_CARET,Mn=void 0!==/()??/.exec("")[1];(jn||Mn||Ln||xn||Tn)&&(Bn=function(e){var t,n,r,o,i,a,u,s=this,l=Nn(s),c=sn(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=v(Bn,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Ln&&s.sticky,h=v(ln,s),g=s.source,y=0,m=c;if(p&&(h=_n(h,"y",""),-1===Fn(h,"g")&&(h+="g"),m=Rn(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Pn(c,s.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,y++),n=new RegExp("^(?:"+g+")",h)),Mn&&(n=new RegExp("^"+g+"$(?!\\s)",h)),jn&&(r=s.lastIndex),o=v(In,p?n:s,m),p?o?(o.input=Rn(o.input,y),o[0]=Rn(o[0],y),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:jn&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Mn&&o&&o.length>1&&v(kn,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=Cn(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var zn=Bn;Ft({target:"RegExp",proto:!0,forced:/./.exec!==zn},{exec:zn});var Hn=Function.prototype,Un=Hn.apply,$n=Hn.bind,Vn=Hn.call,Gn="object"==typeof Reflect&&Reflect.apply||($n?Vn.bind(Un):function(){return Vn.apply(Un,arguments)}),Wn=me("species"),qn=RegExp.prototype,Kn=me("match"),Yn=f.TypeError,Xn=me("species"),Zn=function(e,t){var n,r=Ie(e).constructor;return void 0===r||null==(n=Ie(r)[Xn])?t:function(e){if(Xt(e))return e;throw Yn(X(e)+" is not a constructor")}(n)},Jn=C("".charAt),Qn=C("".charCodeAt),er=C("".slice),tr=function(e){return function(t,n){var r,o,i=sn(B(t)),a=st(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Qn(i,a))<55296||r>56319||a+1===u||(o=Qn(i,a+1))<56320||o>57343?e?Jn(i,a):r:e?er(i,a,a+2):o-56320+(r-55296<<10)+65536}},nr={codeAt:tr(!1),charAt:tr(!0)},rr=nr.charAt,or=function(e,t,n){return t+(n?rr(e,t).length:1)},ir=f.Array,ar=Math.max,ur=function(e,t,n){for(var r=ht(e),o=ft(t,r),i=ft(void 0===n?r:n,r),a=ir(ar(i-o,0)),u=0;o<i;o++,u++)Zt(a,u,e[o]);return a.length=u,a},sr=f.TypeError,lr=function(e,t){var n=e.exec;if(F(n)){var r=v(n,e,t);return null!==r&&Ie(r),r}if("RegExp"===O(e))return v(zn,e,t);throw sr("RegExp#exec called on incompatible receiver")},cr=pn.UNSUPPORTED_Y,fr=4294967295,dr=Math.min,pr=[].push,hr=C(/./.exec),vr=C(pr),gr=C("".slice),yr=!d((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]}));!function(e,t,n,r){var o=me(e),i=!d((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!d((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Wn]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=C(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=C(e),s=t.exec;return s===zn||s===qn.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));it(String.prototype,e,s[0]),it(qn,o,s[1])}r&&_e(qn[o],"sham",!0)}("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=sn(B(this)),a=void 0===n?fr:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!_(r=e)||!(void 0!==(o=r[Kn])?o:"RegExp"==O(r)))return v(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=v(zn,p,i))&&!((s=p.lastIndex)>d&&(vr(c,gr(i,d,u.index)),u.length>1&&u.index<i.length&&Gn(pr,c,ur(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&hr(p,"")||vr(c,""):vr(c,gr(i,d)),c.length>a?ur(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:v(t,this,e,n)}:t,[function(t,n){var o=B(this),i=null==t?void 0:Q(t,e);return i?v(i,t,o,n):v(r,sn(o),t,n)},function(e,o){var i=Ie(this),a=sn(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=Zn(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(cr?"g":"y"),f=new s(cr?"^(?:"+i.source+")":i,c),d=void 0===o?fr:o>>>0;if(0===d)return[];if(0===a.length)return null===lr(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=cr?0:h;var g,y=lr(f,cr?gr(a,h):a);if(null===y||(g=dr(pt(f.lastIndex+(cr?h:0)),a.length))===p)h=or(a,h,l);else{if(vr(v,gr(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(vr(v,y[m]),v.length===d)return v;h=p=g}}return vr(v,gr(a,p)),v}]}),!yr,cr);
|
|
97
|
+
var s=function(){return s=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},s.apply(this,arguments)};function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function c(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 f(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 d(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 p(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(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)}))}}}var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function v(e){var t={exports:{}};return e(t,t.exports),t.exports}var g,y,m=function(e){return e&&e.Math==Math&&e},b=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof h&&h)||function(){return this}()||Function("return this")(),E=function(e){try{return!!e()}catch(e){return!0}},w=!E((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),S=Function.prototype.call,D=S.bind?S.bind(S):function(){return S.apply(S,arguments)},C={}.propertyIsEnumerable,A=Object.getOwnPropertyDescriptor,x={f:A&&!C.call({1:2},1)?function(e){var t=A(this,e);return!!t&&t.enumerable}:C},O=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},T=Function.prototype,N=T.bind,k=T.call,I=N&&N.bind(k),B=N?function(e){return e&&I(k,e)}:function(e){return e&&function(){return k.apply(e,arguments)}},P=B({}.toString),F=B("".slice),_=function(e){return F(P(e),8,-1)},R=b.Object,j=B("".split),L=E((function(){return!R("z").propertyIsEnumerable(0)}))?function(e){return"String"==_(e)?j(e,""):R(e)}:R,M=b.TypeError,z=function(e){if(null==e)throw M("Can't call method on "+e);return e},H=function(e){return L(z(e))},U=function(e){return"function"==typeof e},$=function(e){return"object"==typeof e?null!==e:U(e)},V=function(e){return U(e)?e:void 0},G=function(e,t){return arguments.length<2?V(b[e]):b[e]&&b[e][t]},W=B({}.isPrototypeOf),q=G("navigator","userAgent")||"",K=b.process,Y=b.Deno,X=K&&K.versions||Y&&Y.version,Z=X&&X.v8;Z&&(y=(g=Z.split("."))[0]>0&&g[0]<4?1:+(g[0]+g[1])),!y&&q&&(!(g=q.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=q.match(/Chrome\/(\d+)/))&&(y=+g[1]);var J=y,Q=!!Object.getOwnPropertySymbols&&!E((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&J&&J<41})),ee=Q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,te=b.Object,ne=ee?function(e){return"symbol"==typeof e}:function(e){var t=G("Symbol");return U(t)&&W(t.prototype,te(e))},re=b.String,oe=function(e){try{return re(e)}catch(e){return"Object"}},ie=b.TypeError,ae=function(e){if(U(e))return e;throw ie(oe(e)+" is not a function")},ue=function(e,t){var n=e[t];return null==n?void 0:ae(n)},se=b.TypeError,le=Object.defineProperty,ce=function(e,t){try{le(b,e,{value:t,configurable:!0,writable:!0})}catch(n){b[e]=t}return t},fe="__core-js_shared__",de=b[fe]||ce(fe,{}),pe=v((function(e){(e.exports=function(e,t){return de[e]||(de[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),he=b.Object,ve=function(e){return he(z(e))},ge=B({}.hasOwnProperty),ye=Object.hasOwn||function(e,t){return ge(ve(e),t)},me=0,be=Math.random(),Ee=B(1..toString),we=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ee(++me+be,36)},Se=pe("wks"),De=b.Symbol,Ce=De&&De.for,Ae=ee?De:De&&De.withoutSetter||we,xe=function(e){if(!ye(Se,e)||!Q&&"string"!=typeof Se[e]){var t="Symbol."+e;Q&&ye(De,e)?Se[e]=De[e]:Se[e]=ee&&Ce?Ce(t):Ae(t)}return Se[e]},Oe=b.TypeError,Te=xe("toPrimitive"),Ne=function(e,t){if(!$(e)||ne(e))return e;var n,r=ue(e,Te);if(r){if(void 0===t&&(t="default"),n=D(r,e,t),!$(n)||ne(n))return n;throw Oe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&U(n=e.toString)&&!$(r=D(n,e)))return r;if(U(n=e.valueOf)&&!$(r=D(n,e)))return r;if("string"!==t&&U(n=e.toString)&&!$(r=D(n,e)))return r;throw se("Can't convert object to primitive value")}(e,t)},ke=function(e){var t=Ne(e,"string");return ne(t)?t:t+""},Ie=b.document,Be=$(Ie)&&$(Ie.createElement),Pe=function(e){return Be?Ie.createElement(e):{}},Fe=!w&&!E((function(){return 7!=Object.defineProperty(Pe("div"),"a",{get:function(){return 7}}).a})),_e=Object.getOwnPropertyDescriptor,Re={f:w?_e:function(e,t){if(e=H(e),t=ke(t),Fe)try{return _e(e,t)}catch(e){}if(ye(e,t))return O(!D(x.f,e,t),e[t])}},je=b.String,Le=b.TypeError,Me=function(e){if($(e))return e;throw Le(je(e)+" is not an object")},ze=b.TypeError,He=Object.defineProperty,Ue={f:w?He:function(e,t,n){if(Me(e),t=ke(t),Me(n),Fe)try{return He(e,t,n)}catch(e){}if("get"in n||"set"in n)throw ze("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},$e=w?function(e,t,n){return Ue.f(e,t,O(1,n))}:function(e,t,n){return e[t]=n,e},Ve=B(Function.toString);U(de.inspectSource)||(de.inspectSource=function(e){return Ve(e)});var Ge,We,qe,Ke=de.inspectSource,Ye=b.WeakMap,Xe=U(Ye)&&/native code/.test(Ke(Ye)),Ze=pe("keys"),Je=function(e){return Ze[e]||(Ze[e]=we(e))},Qe={},et="Object already initialized",tt=b.TypeError,nt=b.WeakMap;if(Xe||de.state){var rt=de.state||(de.state=new nt),ot=B(rt.get),it=B(rt.has),at=B(rt.set);Ge=function(e,t){if(it(rt,e))throw new tt(et);return t.facade=e,at(rt,e,t),t},We=function(e){return ot(rt,e)||{}},qe=function(e){return it(rt,e)}}else{var ut=Je("state");Qe[ut]=!0,Ge=function(e,t){if(ye(e,ut))throw new tt(et);return t.facade=e,$e(e,ut,t),t},We=function(e){return ye(e,ut)?e[ut]:{}},qe=function(e){return ye(e,ut)}}var st={set:Ge,get:We,has:qe,enforce:function(e){return qe(e)?We(e):Ge(e,{})},getterFor:function(e){return function(t){var n;if(!$(t)||(n=We(t)).type!==e)throw tt("Incompatible receiver, "+e+" required");return n}}},lt=Function.prototype,ct=w&&Object.getOwnPropertyDescriptor,ft=ye(lt,"name"),dt={EXISTS:ft,PROPER:ft&&"something"===function(){}.name,CONFIGURABLE:ft&&(!w||w&&ct(lt,"name").configurable)},pt=v((function(e){var t=dt.CONFIGURABLE,n=st.get,r=st.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;U(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ye(i,"name")||t&&i.name!==f)&&$e(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==b?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:$e(e,n,i)):l?e[n]=i:ce(n,i)})(Function.prototype,"toString",(function(){return U(this)&&n(this).source||Ke(this)}))})),ht=Math.ceil,vt=Math.floor,gt=function(e){var t=+e;return t!=t||0===t?0:(t>0?vt:ht)(t)},yt=Math.max,mt=Math.min,bt=function(e,t){var n=gt(e);return n<0?yt(n+t,0):mt(n,t)},Et=Math.min,wt=function(e){return e>0?Et(gt(e),9007199254740991):0},St=function(e){return wt(e.length)},Dt=function(e){return function(t,n,r){var o,i=H(t),a=St(i),u=bt(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}},Ct={includes:Dt(!0),indexOf:Dt(!1)},At=Ct.indexOf,xt=B([].push),Ot=function(e,t){var n,r=H(e),o=0,i=[];for(n in r)!ye(Qe,n)&&ye(r,n)&&xt(i,n);for(;t.length>o;)ye(r,n=t[o++])&&(~At(i,n)||xt(i,n));return i},Tt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nt=Tt.concat("length","prototype"),kt={f:Object.getOwnPropertyNames||function(e){return Ot(e,Nt)}},It={f:Object.getOwnPropertySymbols},Bt=B([].concat),Pt=G("Reflect","ownKeys")||function(e){var t=kt.f(Me(e)),n=It.f;return n?Bt(t,n(e)):t},Ft=function(e,t){for(var n=Pt(t),r=Ue.f,o=Re.f,i=0;i<n.length;i++){var a=n[i];ye(e,a)||r(e,a,o(t,a))}},_t=/#|\.prototype\./,Rt=function(e,t){var n=Lt[jt(e)];return n==zt||n!=Mt&&(U(t)?E(t):!!t)},jt=Rt.normalize=function(e){return String(e).replace(_t,".").toLowerCase()},Lt=Rt.data={},Mt=Rt.NATIVE="N",zt=Rt.POLYFILL="P",Ht=Rt,Ut=Re.f,$t=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?b:l?b[u]||ce(u,{}):(b[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Ut(n,r))&&a.value:n[r],!Ht(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ft(i,o)}(e.sham||o&&o.sham)&&$e(i,"sham",!0),pt(n,r,i,e)}},Vt={};Vt[xe("toStringTag")]="z";var Gt,Wt="[object z]"===String(Vt),qt=xe("toStringTag"),Kt=b.Object,Yt="Arguments"==_(function(){return arguments}()),Xt=Wt?_: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=Kt(e),qt))?n:Yt?_(t):"Object"==(r=_(t))&&U(t.callee)?"Arguments":r},Zt=b.String,Jt=function(e){if("Symbol"===Xt(e))throw TypeError("Cannot convert a Symbol value to a string");return Zt(e)},Qt="\t\n\v\f\r \u2028\u2029\ufeff",en=B("".replace),tn="["+Qt+"]",nn=RegExp("^"+tn+tn+"*"),rn=RegExp(tn+tn+"*$"),on=function(e){return function(t){var n=Jt(z(t));return 1&e&&(n=en(n,nn,"")),2&e&&(n=en(n,rn,"")),n}},an={start:on(1),end:on(2),trim:on(3)},un=dt.PROPER,sn=an.trim;function ln(e){return e.length?e[0].tagName.toLowerCase():""}function cn(e,t,n,r){void 0===t&&(t="auto"),void 0===n&&(n="auto"),void 0===r&&(r={});var o=u.default(e),i=r.width,a=void 0===i?"":i,s=r.height,l=void 0===s?"":s,c="";return a&&(c+="width: "+a+";"),l&&(c+="height: "+l+";"),o.attr("width",t),o.attr("height",n),o.attr("style",c),o[0].outerHTML}$t({target:"String",proto:!0,forced:(Gt="trim",E((function(){return!!Qt[Gt]()||"
"!=="
"[Gt]()||un&&Qt[Gt].name!==Gt})))},{trim:function(){return sn(this)}}),$t({global:!0},{globalThis:b}),o.append&&(u.default.fn.append=o.append),o.on&&(u.default.fn.on=o.on),o.focus&&(u.default.fn.focus=o.focus),o.attr&&(u.default.fn.attr=o.attr),o.val&&(u.default.fn.val=o.val),o.html&&(u.default.fn.html=o.html),o.parent&&(u.default.fn.parent=o.parent),o.hasClass&&(u.default.fn.hasClass=o.hasClass),o.empty&&(u.default.fn.empty=o.empty);var fn,dn={type:"video",renderElem:function(t,n,o){var i,a=t,u=a.src,s=void 0===u?"":u,l=a.poster,c=void 0===l?"":l,f=a.key,d=void 0===f?"":f,p=a.width,h=void 0===p?"auto":p,v=a.height,g=void 0===v?"auto":v,y=a.style,m=void 0===y?{}:y,b=a.textAlign,E=void 0===b?"center":b,w=e.DomEditor.isNodeSelected(o,t);if(0===s.trim().indexOf("<iframe ")){var S=cn(s,h,g,m);i=r.jsx("div",{className:"w-e-textarea-video-container","data-selected":w?"true":"",style:{textAlign:E},innerHTML:S})}else{var D=r.jsx("video",{key:d,poster:c,controls:!0,style:m},r.jsx("source",{src:s,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==h&&(D.data.width=h),"auto"!==g&&(D.data.height=g),i=r.jsx("div",{className:"w-e-textarea-video-container","data-selected":w?"true":"",style:{textAlign:E}},D)}return r.h("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},i)}},pn={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,l=n.height,c=void 0===l?"auto":l,f=n.style,d=void 0===f?{}:f,p=n.textAlign,h='<div data-w-e-type="video" data-w-e-is-void style="text-align: '+(void 0===p?"center":p)+';">\n';if(0===o.trim().indexOf("<iframe "))h+=cn(o,s,c,d);else{var v=d.width,g=void 0===v?"":v,y=d.height,m=void 0===y?"":y,b="";g&&(b+="width: "+g+";"),m&&(b+="height: "+m+";"),h+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'" style="'+b+'"><source src="'+o+'" type="video/mp4"/></video>'}return h+"\n</div>"}},hn=Object.keys||function(e){return Ot(e,Tt)},vn=w?Object.defineProperties:function(e,t){Me(e);for(var n,r=H(t),o=hn(t),i=o.length,a=0;i>a;)Ue.f(e,n=o[a++],r[n]);return e},gn=G("document","documentElement"),yn=Je("IE_PROTO"),mn=function(){},bn=function(e){return"<script>"+e+"<\/script>"},En=function(e){e.write(bn("")),e.close();var t=e.parentWindow.Object;return e=null,t},wn=function(){try{fn=new ActiveXObject("htmlfile")}catch(e){}var e,t;wn="undefined"!=typeof document?document.domain&&fn?En(fn):((t=Pe("iframe")).style.display="none",gn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(bn("document.F=Object")),e.close(),e.F):En(fn);for(var n=Tt.length;n--;)delete wn.prototype[Tt[n]];return wn()};Qe[yn]=!0;var Sn=Object.create||function(e,t){var n;return null!==e?(mn.prototype=Me(e),n=new mn,mn.prototype=null,n[yn]=e):n=wn(),void 0===t?n:vn(n,t)},Dn=xe("unscopables"),Cn=Array.prototype;null==Cn[Dn]&&Ue.f(Cn,Dn,{configurable:!0,value:Sn(null)});var An=function(e){Cn[Dn][e]=!0},xn=Ct.includes;$t({target:"Array",proto:!0},{includes:function(e){return xn(this,e,arguments.length>1?arguments[1]:void 0)}}),An("includes");var On={selector:"iframe,video,p",preParseHtml:function(e){var t=u.default(e),n=t;if("p"===ln(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=u.default(o))}}var a=ln(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var s=u.default('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return s.append(n),s[0]}},Tn=B(B.bind),Nn=function(e,t){return ae(e),void 0===t?e:Tn?Tn(e,t):function(){return e.apply(t,arguments)}},kn=Array.isArray||function(e){return"Array"==_(e)},In=function(){},Bn=[],Pn=G("Reflect","construct"),Fn=/^\s*(?:class|function)\b/,_n=B(Fn.exec),Rn=!Fn.exec(In),jn=function(e){if(!U(e))return!1;try{return Pn(In,Bn,e),!0}catch(e){return!1}},Ln=!Pn||E((function(){var e;return jn(jn.call)||!jn(Object)||!jn((function(){e=!0}))||e}))?function(e){if(!U(e))return!1;switch(Xt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Rn||!!_n(Fn,Ke(e))}:jn,Mn=xe("species"),zn=b.Array,Hn=function(e,t){return new(function(e){var t;return kn(e)&&(t=e.constructor,(Ln(t)&&(t===zn||kn(t.prototype))||$(t)&&null===(t=t[Mn]))&&(t=void 0)),void 0===t?zn:t}(e))(0===t?0:t)},Un=B([].push),$n=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=ve(s),v=L(h),g=Nn(l,c),y=St(v),m=0,b=f||Hn,E=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)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Un(E,d)}else switch(e){case 4:return!1;case 7:Un(E,d)}return i?-1:r||o?o:E}},Vn={forEach:$n(0),map:$n(1),filter:$n(2),some:$n(3),every:$n(4),find:$n(5),findIndex:$n(6),filterReject:$n(7)},Gn=Vn.find,Wn="find",qn=!0;Wn in[]&&Array(1).find((function(){qn=!1})),$t({target:"Array",proto:!0,forced:qn},{find:function(e){return Gn(this,e,arguments.length>1?arguments[1]:void 0)}}),An(Wn);var Kn=Wt?{}.toString:function(){return"[object "+Xt(this)+"]"};function Yn(e,t,n,r,o){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),{type:"video",src:e,poster:t,width:n,height:r,style:o,children:[{text:""}]}}Wt||pt(Object.prototype,"toString",Kn,{unsafe:!0});var Xn,Zn,Jn={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=u.default(e),o="",i="",a="auto",s="auto",l={},c=r.find("iframe");if(c.length>0)return a=c.attr("width")||"auto",s=c.attr("height")||"auto",l=c.attr("style")||{},Yn(o=c[0].outerHTML,i,a,s,l);var f=r.find("video");return(o=f.attr("src")||"")||f.length>0&&(o=f.find("source").attr("src")||""),a=f.attr("width")||"auto",s=f.attr("height")||"auto",Yn(o,i=f.attr("poster")||"",a,s,l=c.attr("style")||{})}},Qn=function(){var e=Me(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},er=b.RegExp,tr=E((function(){var e=er("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),nr=tr||E((function(){return!er("a","y").sticky})),rr={BROKEN_CARET:tr||E((function(){var e=er("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:nr,UNSUPPORTED_Y:tr},or=b.RegExp,ir=E((function(){var e=or(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ar=b.RegExp,ur=E((function(){var e=ar("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),sr=st.get,lr=pe("native-string-replace",String.prototype.replace),cr=RegExp.prototype.exec,fr=cr,dr=B("".charAt),pr=B("".indexOf),hr=B("".replace),vr=B("".slice),gr=(Zn=/b*/g,D(cr,Xn=/a/,"a"),D(cr,Zn,"a"),0!==Xn.lastIndex||0!==Zn.lastIndex),yr=rr.BROKEN_CARET,mr=void 0!==/()??/.exec("")[1];(gr||mr||yr||ir||ur)&&(fr=function(e){var t,n,r,o,i,a,u,s=this,l=sr(s),c=Jt(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=D(fr,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=yr&&s.sticky,h=D(Qn,s),v=s.source,g=0,y=c;if(p&&(h=hr(h,"y",""),-1===pr(h,"g")&&(h+="g"),y=vr(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==dr(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),mr&&(n=new RegExp("^"+v+"$(?!\\s)",h)),gr&&(r=s.lastIndex),o=D(cr,p?n:s,y),p?o?(o.input=vr(o.input,g),o[0]=vr(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:gr&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),mr&&o&&o.length>1&&D(lr,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=Sn(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var br=fr;$t({target:"RegExp",proto:!0,forced:/./.exec!==br},{exec:br});var Er=Function.prototype,wr=Er.apply,Sr=Er.bind,Dr=Er.call,Cr="object"==typeof Reflect&&Reflect.apply||(Sr?Dr.bind(wr):function(){return Dr.apply(wr,arguments)}),Ar=xe("species"),xr=RegExp.prototype,Or=B("".charAt),Tr=B("".charCodeAt),Nr=B("".slice),kr=function(e){return function(t,n){var r,o,i=Jt(z(t)),a=gt(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Tr(i,a))<55296||r>56319||a+1===u||(o=Tr(i,a+1))<56320||o>57343?e?Or(i,a):r:e?Nr(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ir={codeAt:kr(!1),charAt:kr(!0)},Br=Ir.charAt,Pr=function(e,t,n){return t+(n?Br(e,t).length:1)},Fr=Math.floor,_r=B("".charAt),Rr=B("".replace),jr=B("".slice),Lr=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Mr=/\$([$&'`]|\d{1,2})/g,zr=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Mr;return void 0!==o&&(o=ve(o),s=Lr),Rr(i,s,(function(i,s){var l;switch(_r(s,0)){case"$":return"$";case"&":return e;case"`":return jr(t,0,n);case"'":return jr(t,a);case"<":l=o[jr(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=Fr(c/10);return 0===f?i:f<=u?void 0===r[f-1]?_r(s,1):r[f-1]+_r(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Hr=b.TypeError,Ur=function(e,t){var n=e.exec;if(U(n)){var r=D(n,e,t);return null!==r&&Me(r),r}if("RegExp"===_(e))return D(br,e,t);throw Hr("RegExp#exec called on incompatible receiver")},$r=xe("replace"),Vr=Math.max,Gr=Math.min,Wr=B([].concat),qr=B([].push),Kr=B("".indexOf),Yr=B("".slice),Xr="$0"==="a".replace(/./,"$0"),Zr=!!/./[$r]&&""===/./[$r]("a","$0");function Jr(e){return void 0===e&&(e="r"),e+"-"+i.nanoid()}!function(e,t,n,r){var o=xe(e),i=!E((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!E((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Ar]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=B(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=B(e),s=t.exec;return s===br||s===xr.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));pt(String.prototype,e,s[0]),pt(xr,o,s[1])}r&&$e(xr[o],"sham",!0)}("replace",(function(e,t,n){var r=Zr?"$":"$0";return[function(e,n){var r=z(this),o=null==e?void 0:ue(e,$r);return o?D(o,e,r,n):D(t,Jt(r),e,n)},function(e,o){var i=Me(this),a=Jt(e);if("string"==typeof o&&-1===Kr(o,r)&&-1===Kr(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=U(o);s||(o=Jt(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=Ur(i,a);if(null===d)break;if(qr(f,d),!l)break;""===Jt(d[0])&&(i.lastIndex=Pr(a,wt(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=Jt((d=f[g])[0]),m=Vr(Gr(gt(d.index),a.length),0),b=[],E=1;E<d.length;E++)qr(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=Wr([y],b,m,a);void 0!==w&&qr(S,w);var D=Jt(Cr(o,void 0,S))}else D=zr(y,a,m,b,w,o);m>=v&&(h+=Yr(a,v,m)+D,v=m+y.length)}return h+Yr(a,v)}]}),!!E((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Xr||Zr);var Qr=b.Promise,eo=function(e,t,n){for(var r in t)pt(e,r,t[r],n);return e},to=b.String,no=b.TypeError,ro=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=B(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Me(n),function(e){if("object"==typeof e||U(e))return e;throw no("Can't set "+to(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),oo=Ue.f,io=xe("toStringTag"),ao=function(e,t,n){e&&!ye(e=n?e:e.prototype,io)&&oo(e,io,{configurable:!0,value:t})},uo=xe("species"),so=b.TypeError,lo=function(e,t){if(W(t,e))return e;throw so("Incorrect invocation")},co={},fo=xe("iterator"),po=Array.prototype,ho=xe("iterator"),vo=function(e){if(null!=e)return ue(e,ho)||ue(e,"@@iterator")||co[Xt(e)]},go=b.TypeError,yo=function(e,t,n){var r,o;Me(e);try{if(!(r=ue(e,"return"))){if("throw"===t)throw n;return n}r=D(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Me(r),n},mo=b.TypeError,bo=function(e,t){this.stopped=e,this.result=t},Eo=bo.prototype,wo=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=Nn(t,f),g=function(e){return r&&yo(r,"normal",e),new bo(!0,e)},y=function(e){return d?(Me(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=vo(e)))throw mo(oe(e)+" is not iterable");if(void 0!==(c=o)&&(co.Array===c||po[fo]===c)){for(i=0,a=St(e);a>i;i++)if((u=y(e[i]))&&W(Eo,u))return u;return new bo(!1)}r=function(e,t){var n=arguments.length<2?vo(e):t;if(ae(n))return Me(D(n,e));throw go(oe(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=D(s,r)).done;){try{u=y(l.value)}catch(e){yo(r,"throw",e)}if("object"==typeof u&&u&&W(Eo,u))return u}return new bo(!1)},So=xe("iterator"),Do=!1;try{var Co=0,Ao={next:function(){return{done:!!Co++}},return:function(){Do=!0}};Ao[So]=function(){return this},Array.from(Ao,(function(){throw 2}))}catch(e){}var xo,Oo,To,No,ko=function(e,t){if(!t&&!Do)return!1;var n=!1;try{var r={};r[So]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Io=b.TypeError,Bo=xe("species"),Po=function(e,t){var n,r=Me(e).constructor;return void 0===r||null==(n=Me(r)[Bo])?t:function(e){if(Ln(e))return e;throw Io(oe(e)+" is not a constructor")}(n)},Fo=B([].slice),_o=/(?:ipad|iphone|ipod).*applewebkit/i.test(q),Ro="process"==_(b.process),jo=b.setImmediate,Lo=b.clearImmediate,Mo=b.process,zo=b.Dispatch,Ho=b.Function,Uo=b.MessageChannel,$o=b.String,Vo=0,Go={},Wo="onreadystatechange";try{xo=b.location}catch(e){}var qo=function(e){if(ye(Go,e)){var t=Go[e];delete Go[e],t()}},Ko=function(e){return function(){qo(e)}},Yo=function(e){qo(e.data)},Xo=function(e){b.postMessage($o(e),xo.protocol+"//"+xo.host)};jo&&Lo||(jo=function(e){var t=Fo(arguments,1);return Go[++Vo]=function(){Cr(U(e)?e:Ho(e),void 0,t)},Oo(Vo),Vo},Lo=function(e){delete Go[e]},Ro?Oo=function(e){Mo.nextTick(Ko(e))}:zo&&zo.now?Oo=function(e){zo.now(Ko(e))}:Uo&&!_o?(No=(To=new Uo).port2,To.port1.onmessage=Yo,Oo=Nn(No.postMessage,No)):b.addEventListener&&U(b.postMessage)&&!b.importScripts&&xo&&"file:"!==xo.protocol&&!E(Xo)?(Oo=Xo,b.addEventListener("message",Yo,!1)):Oo=Wo in Pe("script")?function(e){gn.appendChild(Pe("script")).onreadystatechange=function(){gn.removeChild(this),qo(e)}}:function(e){setTimeout(Ko(e),0)});var Zo,Jo,Qo,ei,ti,ni,ri,oi,ii={set:jo,clear:Lo},ai=/ipad|iphone|ipod/i.test(q)&&void 0!==b.Pebble,ui=/web0s(?!.*chrome)/i.test(q),si=Re.f,li=ii.set,ci=b.MutationObserver||b.WebKitMutationObserver,fi=b.document,di=b.process,pi=b.Promise,hi=si(b,"queueMicrotask"),vi=hi&&hi.value;vi||(Zo=function(){var e,t;for(Ro&&(e=di.domain)&&e.exit();Jo;){t=Jo.fn,Jo=Jo.next;try{t()}catch(e){throw Jo?ei():Qo=void 0,e}}Qo=void 0,e&&e.enter()},_o||Ro||ui||!ci||!fi?!ai&&pi&&pi.resolve?((ri=pi.resolve(void 0)).constructor=pi,oi=Nn(ri.then,ri),ei=function(){oi(Zo)}):Ro?ei=function(){di.nextTick(Zo)}:(li=Nn(li,b),ei=function(){li(Zo)}):(ti=!0,ni=fi.createTextNode(""),new ci(Zo).observe(ni,{characterData:!0}),ei=function(){ni.data=ti=!ti}));var gi,yi,mi,bi,Ei=vi||function(e){var t={fn:e,next:void 0};Qo&&(Qo.next=t),Jo||(Jo=t,ei()),Qo=t},wi=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=ae(t),this.reject=ae(n)},Si={f:function(e){return new wi(e)}},Di=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Ci="object"==typeof window,Ai=ii.set,xi=xe("species"),Oi="Promise",Ti=st.getterFor(Oi),Ni=st.set,ki=st.getterFor(Oi),Ii=Qr&&Qr.prototype,Bi=Qr,Pi=Ii,Fi=b.TypeError,_i=b.document,Ri=b.process,ji=Si.f,Li=ji,Mi=!!(_i&&_i.createEvent&&b.dispatchEvent),zi=U(b.PromiseRejectionEvent),Hi="unhandledrejection",Ui=!1,$i=Ht(Oi,(function(){var e=Ke(Bi),t=e!==String(Bi);if(!t&&66===J)return!0;if(J>=51&&/native code/.test(e))return!1;var n=new Bi((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[xi]=r,!(Ui=n.then((function(){}))instanceof r)||!t&&Ci&&!zi})),Vi=$i||!ko((function(e){Bi.all(e).catch((function(){}))})),Gi=function(e){var t;return!(!$(e)||!U(t=e.then))&&t},Wi=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Ei((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Xi(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Fi("Promise-chain cycle")):(u=Gi(a))?D(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Ki(e)}))}},qi=function(e,t,n){var r,o;Mi?((r=_i.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),b.dispatchEvent(r)):r={promise:t,reason:n},!zi&&(o=b["on"+e])?o(r):e===Hi&&function(e,t){var n=b.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Ki=function(e){D(Ai,b,(function(){var t,n=e.facade,r=e.value;if(Yi(e)&&(t=Di((function(){Ro?Ri.emit("unhandledRejection",r,n):qi(Hi,n,r)})),e.rejection=Ro||Yi(e)?2:1,t.error))throw t.value}))},Yi=function(e){return 1!==e.rejection&&!e.parent},Xi=function(e){D(Ai,b,(function(){var t=e.facade;Ro?Ri.emit("rejectionHandled",t):qi("rejectionhandled",t,e.value)}))},Zi=function(e,t,n){return function(r){e(t,r,n)}},Ji=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Wi(e,!0))},Qi=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Fi("Promise can't be resolved itself");var r=Gi(t);r?Ei((function(){var n={done:!1};try{D(r,t,Zi(Qi,n,e),Zi(Ji,n,e))}catch(t){Ji(n,t,e)}})):(e.value=t,e.state=1,Wi(e,!1))}catch(t){Ji({done:!1},t,e)}}};if($i&&(Pi=(Bi=function(e){lo(this,Pi),ae(e),D(gi,this);var t=Ti(this);try{e(Zi(Qi,t),Zi(Ji,t))}catch(e){Ji(t,e)}}).prototype,(gi=function(e){Ni(this,{type:Oi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=eo(Pi,{then:function(e,t){var n=ki(this),r=n.reactions,o=ji(Po(this,Bi));return o.ok=!U(e)||e,o.fail=U(t)&&t,o.domain=Ro?Ri.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Wi(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),yi=function(){var e=new gi,t=Ti(e);this.promise=e,this.resolve=Zi(Qi,t),this.reject=Zi(Ji,t)},Si.f=ji=function(e){return e===Bi||e===mi?new yi(e):Li(e)},U(Qr)&&Ii!==Object.prototype)){bi=Ii.then,Ui||(pt(Ii,"then",(function(e,t){var n=this;return new Bi((function(e,t){D(bi,n,e,t)})).then(e,t)}),{unsafe:!0}),pt(Ii,"catch",Pi.catch,{unsafe:!0}));try{delete Ii.constructor}catch(e){}ro&&ro(Ii,Pi)}function ea(e,t,r,o,i){return void 0===r&&(r=""),void 0===o&&(o=""),void 0===i&&(i=""),l(this,void 0,void 0,(function(){var a,u,s,l,f,d,p;return c(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),a=e.getMenuConfig("insertVideo"),u=a.onInsertedVideo,s=a.checkVideo,l=a.parseVideoSrc,[4,s(t,r)]):[2];case 1:return"string"==typeof(f=c.sent())?(e.alert(f,"error"),[2]):null==f?[2]:[4,l(t)];case 2:return 0!==(d=c.sent()).trim().indexOf("<iframe ")&&(d=d.replace(/</g,"<").replace(/>/g,">")),p={type:"video",src:d,poster:r,children:[{text:""}],style:{width:o,height:i}},Promise.resolve().then((function(){n.Transforms.insertNodes(e,p)})),u(p),[2]}}))}))}function ta(){return Jr("w-e-insert-video")}$t({global:!0,wrap:!0,forced:$i},{Promise:Bi}),ao(Bi,Oi,!1),function(e){var t=G(e),n=Ue.f;w&&t&&!t[uo]&&n(t,uo,{configurable:!0,get:function(){return this}})}(Oi),mi=G(Oi),$t({target:Oi,stat:!0,forced:$i},{reject:function(e){var t=ji(this);return D(t.reject,void 0,e),t.promise}}),$t({target:Oi,stat:!0,forced:$i},{resolve:function(e){return function(e,t){if(Me(e),$(t)&&t.constructor===e)return t;var n=Si.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),$t({target:Oi,stat:!0,forced:Vi},{all:function(e){var t=this,n=ji(t),r=n.resolve,o=n.reject,i=Di((function(){var n=ae(t.resolve),i=[],a=0,u=1;wo(e,(function(e){var s=a++,l=!1;u++,D(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=ji(t),r=n.reject,o=Di((function(){var o=ae(t.resolve);wo(e,(function(e){D(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var na=function(){function t(){this.title=e.t("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=ta(),this.posterInputId=ta(),this.buttonId=ta()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,t){},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||!!e.DomEditor.getSelectedElems(t).some((function(n){var r=e.DomEditor.getNodeType(n);return"pre"===r||"list-item"===r||!!t.isVoid(n)}))},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,s=d(e.genModalInputElems(e.t("videoModule.videoSrc"),o,e.t("videoModule.videoSrcPlaceHolder")),2),f=s[0],p=s[1],h=d(e.genModalInputElems(e.t("videoModule.videoPoster"),i,e.t("videoModule.videoPosterPlaceHolder")),2),v=h[0],g=h[1],y=u.default(p),m=u.default(g),b=d(e.genModalButtonElems(a,e.t("videoModule.ok")),1)[0];if(null==this.$content){var E=u.default("<div></div>");E.on("click","#"+a,(function(e){return l(n,void 0,void 0,(function(){var n,r;return c(this,(function(a){switch(a.label){case 0:return e.preventDefault(),n=E.find("#"+o).val().trim(),r=E.find("#"+i).val().trim(),[4,ea(t,n,r)];case 1:return a.sent(),t.hidePanelOrModal(),[2]}}))}))})),this.$content=E}var w=this.$content;return w.empty(),w.append(f),w.append(v),w.append(b),y.val(""),m.val(""),setTimeout((function(){y.focus()})),w[0]},t}(),ra=B([].join),oa=L!=Object,ia=function(e,t){var n=[].join;return!!n&&E((function(){n.call(null,t||function(){throw 1},1)}))}(0,",");$t({target:"Array",proto:!0,forced:oa||!ia},{join:function(e){return ra(H(this),void 0===e?",":e)}});var aa,ua,sa,la=!E((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ca=Je("IE_PROTO"),fa=b.Object,da=fa.prototype,pa=la?fa.getPrototypeOf:function(e){var t=ve(e);if(ye(t,ca))return t[ca];var n=t.constructor;return U(n)&&t instanceof n?n.prototype:t instanceof fa?da:null},ha=xe("iterator"),va=!1;[].keys&&("next"in(sa=[].keys())?(ua=pa(pa(sa)))!==Object.prototype&&(aa=ua):va=!0);var ga=null==aa||E((function(){var e={};return aa[ha].call(e)!==e}));ga&&(aa={}),U(aa[ha])||pt(aa,ha,(function(){return this}));var ya={IteratorPrototype:aa,BUGGY_SAFARI_ITERATORS:va},ma=ya.IteratorPrototype,ba=function(){return this},Ea=dt.PROPER,wa=dt.CONFIGURABLE,Sa=ya.IteratorPrototype,Da=ya.BUGGY_SAFARI_ITERATORS,Ca=xe("iterator"),Aa="keys",xa="values",Oa="entries",Ta=function(){return this},Na=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Sn(ma,{next:O(+!r,n)}),ao(e,o,!1),co[o]=ba}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!Da&&e in p)return p[e];switch(e){case Aa:case xa:case Oa:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Ca]||p["@@iterator"]||o&&p[o],v=!Da&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=pa(g.call(new e)))!==Object.prototype&&u.next&&(pa(u)!==Sa&&(ro?ro(u,Sa):U(u[Ca])||pt(u,Ca,Ta)),ao(u,f,!0)),Ea&&o==xa&&h&&h.name!==xa&&(wa?$e(p,"name",xa):(d=!0,v=function(){return D(h,this)})),o)if(s={values:c(xa),keys:i?v:c(Aa),entries:c(Oa)},a)for(l in s)(Da||d||!(l in p))&&pt(p,l,s[l]);else $t({target:t,proto:!0,forced:Da||d},s);return p[Ca]!==v&&pt(p,Ca,v,{name:o}),co[t]=v,s},ka="Array Iterator",Ia=st.set,Ba=st.getterFor(ka),Pa=Na(Array,"Array",(function(e,t){Ia(this,{type:ka,target:H(e),index:0,kind:t})}),(function(){var e=Ba(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");co.Arguments=co.Array,An("keys"),An("values"),An("entries");var Fa=Ir.charAt,_a="String Iterator",Ra=st.set,ja=st.getterFor(_a);Na(String,"String",(function(e){Ra(this,{type:_a,string:Jt(e),index:0})}),(function(){var e,t=ja(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Fa(n,r),t.index+=e.length,{value:e,done:!1})}));var La=function(e,t,n){var r=ke(t);r in e?Ue.f(e,r,O(0,n)):e[r]=n},Ma=b.Array,za=Math.max,Ha=kt.f,Ua="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$a=function(e){try{return Ha(e)}catch(e){return function(e,t,n){for(var r=St(e),o=bt(t,r),i=bt(void 0===n?r:n,r),a=Ma(za(i-o,0)),u=0;o<i;o++,u++)La(a,u,e[o]);return a.length=u,a}(Ua)}},Va={f:function(e){return Ua&&"Window"==_(e)?$a(e):Ha(H(e))}},Ga=E((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Wa=Object.isExtensible,qa=E((function(){Wa(1)}))||Ga?function(e){return!!$(e)&&(!Ga||"ArrayBuffer"!=_(e))&&(!Wa||Wa(e))}:Wa,Ka=!E((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ya=v((function(e){var t=Ue.f,n=!1,r=we("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=kt.f,t=B([].splice),o={};o[r]=1,e(o).length&&(kt.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},$t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Va.f}))},fastKey:function(e,t){if(!$(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!ye(e,r)){if(!qa(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!ye(e,r)){if(!qa(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Ka&&n&&qa(e)&&!ye(e,r)&&i(e),e}};Qe[r]=!0})),Xa=Ya.getWeakData,Za=st.set,Ja=st.getterFor,Qa=Vn.find,eu=Vn.findIndex,tu=B([].splice),nu=0,ru=function(e){return e.frozen||(e.frozen=new ou)},ou=function(){this.entries=[]},iu=function(e,t){return Qa(e.entries,(function(e){return e[0]===t}))};ou.prototype={get:function(e){var t=iu(this,e);if(t)return t[1]},has:function(e){return!!iu(this,e)},set:function(e,t){var n=iu(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=eu(this.entries,(function(t){return t[0]===e}));return~t&&tu(this.entries,t,1),!!~t}};var au,uu={getConstructor:function(e,t,n,r){var o=e((function(e,o){lo(e,i),Za(e,{type:t,id:nu++,frozen:void 0}),null!=o&&wo(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Ja(t),u=function(e,t,n){var r=a(e),o=Xa(Me(t),!0);return!0===o?ru(r).set(t,n):o[r.id]=n,e};return eo(i,{delete:function(e){var t=a(this);if(!$(e))return!1;var n=Xa(e);return!0===n?ru(t).delete(e):n&&ye(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!$(e))return!1;var n=Xa(e);return!0===n?ru(t).has(e):n&&ye(n,t.id)}}),eo(i,n?{get:function(e){var t=a(this);if($(e)){var n=Xa(e);return!0===n?ru(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}},su=st.enforce,lu=!b.ActiveXObject&&"ActiveXObject"in b,cu=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},fu=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=b[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=B(u[e]);pt(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!$(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!$(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!$(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Ht(e,!U(a)||!(o||u.forEach&&!E((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Ya.enable();else if(Ht(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=E((function(){f.has(1)})),h=ko((function(e){new a(e)})),v=!o&&E((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){lo(e,u);var n=function(e,t,n){var r,o;return ro&&U(r=t.constructor)&&r!==n&&$(o=r.prototype)&&o!==n.prototype&&ro(e,o),e}(new a,e,s);return null!=t&&wo(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,$t({global:!0,forced:s!=a},l),ao(s,e),o||n.setStrong(s,e,r),s}("WeakMap",cu,uu);if(Xe&&lu){au=uu.getConstructor(cu,"WeakMap",!0),Ya.enable();var du=fu.prototype,pu=B(du.delete),hu=B(du.has),vu=B(du.get),gu=B(du.set);eo(du,{delete:function(e){if($(e)&&!qa(e)){var t=su(this);return t.frozen||(t.frozen=new au),pu(this,e)||t.frozen.delete(e)}return pu(this,e)},has:function(e){if($(e)&&!qa(e)){var t=su(this);return t.frozen||(t.frozen=new au),hu(this,e)||t.frozen.has(e)}return hu(this,e)},get:function(e){if($(e)&&!qa(e)){var t=su(this);return t.frozen||(t.frozen=new au),hu(this,e)?vu(this,e):t.frozen.get(e)}return vu(this,e)},set:function(e,t){if($(e)&&!qa(e)){var n=su(this);n.frozen||(n.frozen=new au),hu(this,e)?gu(this,e,t):n.frozen.set(e,t)}else gu(this,e,t);return this}})}var yu={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},mu=Pe("span").classList,bu=mu&&mu.constructor&&mu.constructor.prototype,Eu=bu===Object.prototype?void 0:bu,wu=xe("iterator"),Su=xe("toStringTag"),Du=Pa.values,Cu=function(e,t){if(e){if(e[wu]!==Du)try{$e(e,wu,Du)}catch(t){e[wu]=Du}if(e[Su]||$e(e,Su,t),yu[t])for(var n in Pa)if(e[n]!==Pa[n])try{$e(e,n,Pa[n])}catch(t){e[n]=Pa[n]}}};for(var Au in yu)Cu(b[Au]&&b[Au].prototype,Au);Cu(Eu,"DOMTokenList");var xu=dt.EXISTS,Ou=Ue.f,Tu=Function.prototype,Nu=B(Tu.toString),ku=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Iu=B(ku.exec);w&&!xu&&Ou(Tu,"name",{configurable:!0,get:function(){try{return Iu(ku,Nu(this))[1]}catch(e){return""}}});var Bu=xe("species"),Pu=function(e){return J>=51||!E((function(){var t=[];return(t.constructor={})[Bu]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}("slice"),Fu=xe("species"),_u=b.Array,Ru=Math.max;function ju(e){return e.getMenuConfig("uploadVideo")}$t({target:"Array",proto:!0,forced:!Pu},{slice:function(e,t){var n,r,o,i=H(this),a=St(i),u=bt(e,a),s=bt(void 0===t?a:t,a);if(kn(i)&&(n=i.constructor,(Ln(n)&&(n===_u||kn(n.prototype))||$(n)&&null===(n=n[Fu]))&&(n=void 0),n===_u||void 0===n))return Fo(i,u,s);for(r=new(void 0===n?_u:n)(Ru(s-u,0)),o=0;u<s;u++,o++)u in i&&La(r,o,i[u]);return r.length=o,r}});var Lu=new WeakMap;function Mu(t,n){return l(this,void 0,void 0,(function(){var r,o,i,a;return c(this,(function(u){switch(u.label){case 0:return r=function(t){var n=Lu.get(t);if(null!=n)return n;var r=ju(t),o=r.onSuccess,i=r.onProgress,a=r.onFailed,u=r.customInsert,l=r.onError;return n=e.createUploader(s(s({},r),{onProgress:function(e){t.showProgressBar(e),i&&i(e)},onSuccess:function(e,n){if(u)return u(n,(function(e,n){return ea(t,e,n)})),void o(e,n);var r=n.errno,i=void 0===r?1:r,s=n.data,l=void 0===s?{}:s;if(0===i){var c=l.url,f=void 0===c?"":c,d=l.poster;ea(t,f,void 0===d?"":d),o(e,n)}else a(e,n)},onError:function(e,t,n){l(e,t,n)}})),Lu.set(t,n),n}(t),o=n.name,i=n.type,a=n.size,r.addFile({name:o,type:i,size:a,data:n}),[4,r.upload()];case 1:return u.sent(),[2]}}))}))}var zu=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.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 ea(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var s=u.default("body"),f=u.default('<input type="file" '+a+" multiple/>");f.hide(),s.append(f),f.click(),f.on("change",(function(){var t=f[0].files;!function(e,t){var n,r;l(this,void 0,void 0,(function(){var o,i,a,u,s,l;return c(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=ju(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=p(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return ea(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,Mu(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||!n.Range.isCollapsed(r)||!!e.DomEditor.getSelectedElems(t).some((function(n){var r=e.DomEditor.getNodeType(n);return"pre"===r||"list-item"===r||!!t.isVoid(n)}))},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}();function Hu(){return Jr("w-e-insert-video")}var Uu=function(){function t(){this.title=e.t("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Hu(),this.heightInputId=Hu(),this.buttonId=Hu()}return t.prototype.getSelectedVideoNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"video")},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,t){},t.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},t.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},t.prototype.getModalContentElem=function(t){var r=this,o=r.widthInputId,i=r.heightInputId,a=r.buttonId,l=d(e.genModalInputElems(e.t("videoModule.width"),o,"auto"),2),c=l[0],f=l[1],p=u.default(f),h=d(e.genModalInputElems(e.t("videoModule.height"),i,"auto"),2),v=h[0],g=h[1],y=u.default(g),m=d(e.genModalButtonElems(a,e.t("videoModule.ok")),1)[0];if(null==this.$content){var b=u.default("<div></div>");b.on("click","#"+a,(function(r){r.preventDefault();var a=b.find("#"+o).val().trim(),u=b.find("#"+i).val().trim(),l=function(e){return/^\d+(\.\d+)?%$/.test(e)},c=function(e){return/^\d+(\.\d+)?$/.test(e)},f="auto",d="auto";l(a)?f=a:c(a)&&(f=parseInt(a)+"px"),l(u)?d=u:c(u)&&(d=parseInt(u)+"px");var p=w.style,h=void 0===p?{}:p;t.restoreSelection();var v=s(s({},h),{style:{width:f,height:d}});n.Transforms.setNodes(t,v,{match:function(t){return e.DomEditor.checkNodeType(t,"video")}}),t.hidePanelOrModal()})),this.$content=b}var E=this.$content;E.empty(),E.append(c),E.append(v),E.append(m);var w=this.getSelectedVideoNode(t);if(null==w)return E[0];var S=w.style,D=void 0===S?{}:S,C=D.width,A=void 0===C?"":C,x=D.height,O=void 0===x?"":x;return p.val(A),y.val(O),setTimeout((function(){p.focus()})),E[0]},t}();function $u(){return Jr("w-e-edit-video")}var Vu=function(){function t(){this.title=e.t("videoModule.edit"),this.iconSvg='<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>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=$u(),this.posterInputId=$u(),this.buttonId=$u()}return t.prototype.getSelectedVideoNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"video")},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,t){},t.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},t.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},t.prototype.getModalContentElem=function(t){var r=this,o=this,i=o.srcInputId,a=o.posterInputId,s=o.buttonId,f=d(e.genModalInputElems(e.t("videoModule.videoSrc"),i,e.t("videoModule.videoSrcPlaceHolder")),2),p=f[0],h=f[1],v=d(e.genModalInputElems(e.t("videoModule.videoPoster"),a,e.t("videoModule.videoPosterPlaceHolder")),2),g=v[0],y=v[1],m=u.default(h),b=u.default(y),E=d(e.genModalButtonElems(s,e.t("videoModule.ok")),1)[0];if(null==this.$content){var w=u.default("<div></div>");w.on("click","#"+s,(function(o){return l(r,void 0,void 0,(function(){var r,u,s,l;return c(this,(function(c){return o.preventDefault(),r=w.find("#"+i).val().trim(),u=w.find("#"+a).val().trim(),s=Jr("video-"),l={src:r,poster:u,key:s},t.restoreSelection(),n.Transforms.setNodes(t,l,{match:function(t){return e.DomEditor.checkNodeType(t,"video")}}),t.hidePanelOrModal(),[2]}))}))})),this.$content=w}var S=this.$content;S.empty(),S.append(p),S.append(g),S.append(E);var D=this.getSelectedVideoNode(t);if(null==D)return S[0];var C=D.src,A=void 0===C?"":C,x=D.poster,O=void 0===x?"":x;return m.val(A),b.val(O),setTimeout((function(){m.focus()})),S[0]},t}(),Gu={renderElems:[dn],elemsToHtml:[pn],preParseHtml:[On],parseElemsHtml:[Jn],menus:[{key:"insertVideo",factory:function(){return new na},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new zu},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new Uu}},{key:"editVideoSrc",factory:function(){return new Vu}}],editorPlugin:function(t){var r=t.isVoid,o=t.normalizeNode,i=t;return i.isVoid=function(e){return"video"===e.type||r(e)},i.normalizeNode=function(t){var r=d(t,2),a=r[0],u=r[1];return"video"===e.DomEditor.getNodeType(a)&&e.DomEditor.isLastNode(i,a)&&n.Transforms.insertNodes(i,e.DomEditor.genEmptyParagraph(),{at:[u[0]+1]}),o([a,u])},i}};return Gu}(kw,Ow,Nw,Tw,Jm)})),rS=r((function(e,n){e.exports=function(e,n,r){function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(r);e.i18nAddResources("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),e.i18nAddResources("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function u(e){var t={exports:{}};return e(t,t.exports),t.exports}var s,l,c=function(e){return e&&e.Math==Math&&e},f=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof a&&a)||function(){return this}()||Function("return this")(),d=function(e){try{return!!e()}catch(e){return!0}},p=!d((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=Function.prototype.call,v=h.bind?h.bind(h):function(){return h.apply(h,arguments)},g={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,m={f:y&&!g.call({1:2},1)?function(e){var t=y(this,e);return!!t&&t.enumerable}:g},b=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},E=Function.prototype,w=E.bind,S=E.call,D=w&&w.bind(S),C=w?function(e){return e&&D(S,e)}:function(e){return e&&function(){return S.apply(e,arguments)}},A=C({}.toString),x=C("".slice),O=function(e){return x(A(e),8,-1)},T=f.Object,N=C("".split),k=d((function(){return!T("z").propertyIsEnumerable(0)}))?function(e){return"String"==O(e)?N(e,""):T(e)}:T,I=f.TypeError,B=function(e){if(null==e)throw I("Can't call method on "+e);return e},P=function(e){return k(B(e))},F=function(e){return"function"==typeof e},_=function(e){return"object"==typeof e?null!==e:F(e)},R=function(e){return F(e)?e:void 0},j=function(e,t){return arguments.length<2?R(f[e]):f[e]&&f[e][t]},L=C({}.isPrototypeOf),M=j("navigator","userAgent")||"",z=f.process,H=f.Deno,U=z&&z.versions||H&&H.version,$=U&&U.v8;$&&(l=(s=$.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!l&&M&&(!(s=M.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=M.match(/Chrome\/(\d+)/))&&(l=+s[1]);var V=l,G=!!Object.getOwnPropertySymbols&&!d((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V&&V<41})),W=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,q=f.Object,K=W?function(e){return"symbol"==typeof e}:function(e){var t=j("Symbol");return F(t)&&L(t.prototype,q(e))},Y=f.String,X=function(e){try{return Y(e)}catch(e){return"Object"}},Z=f.TypeError,J=function(e){if(F(e))return e;throw Z(X(e)+" is not a function")},Q=function(e,t){var n=e[t];return null==n?void 0:J(n)},ee=f.TypeError,te=Object.defineProperty,ne=function(e,t){try{te(f,e,{value:t,configurable:!0,writable:!0})}catch(n){f[e]=t}return t},re="__core-js_shared__",oe=f[re]||ne(re,{}),ie=u((function(e){(e.exports=function(e,t){return oe[e]||(oe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ae=f.Object,ue=function(e){return ae(B(e))},se=C({}.hasOwnProperty),le=Object.hasOwn||function(e,t){return se(ue(e),t)},ce=0,fe=Math.random(),de=C(1..toString),pe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+de(++ce+fe,36)},he=ie("wks"),ve=f.Symbol,ge=ve&&ve.for,ye=W?ve:ve&&ve.withoutSetter||pe,me=function(e){if(!le(he,e)||!G&&"string"!=typeof he[e]){var t="Symbol."+e;G&&le(ve,e)?he[e]=ve[e]:he[e]=W&&ge?ge(t):ye(t)}return he[e]},be=f.TypeError,Ee=me("toPrimitive"),we=function(e,t){if(!_(e)||K(e))return e;var n,r=Q(e,Ee);if(r){if(void 0===t&&(t="default"),n=v(r,e,t),!_(n)||K(n))return n;throw be("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&F(n=e.toString)&&!_(r=v(n,e)))return r;if(F(n=e.valueOf)&&!_(r=v(n,e)))return r;if("string"!==t&&F(n=e.toString)&&!_(r=v(n,e)))return r;throw ee("Can't convert object to primitive value")}(e,t)},Se=function(e){var t=we(e,"string");return K(t)?t:t+""},De=f.document,Ce=_(De)&&_(De.createElement),Ae=function(e){return Ce?De.createElement(e):{}},xe=!p&&!d((function(){return 7!=Object.defineProperty(Ae("div"),"a",{get:function(){return 7}}).a})),Oe=Object.getOwnPropertyDescriptor,Te={f:p?Oe:function(e,t){if(e=P(e),t=Se(t),xe)try{return Oe(e,t)}catch(e){}if(le(e,t))return b(!v(m.f,e,t),e[t])}},Ne=f.String,ke=f.TypeError,Ie=function(e){if(_(e))return e;throw ke(Ne(e)+" is not an object")},Be=f.TypeError,Pe=Object.defineProperty,Fe={f:p?Pe:function(e,t,n){if(Ie(e),t=Se(t),Ie(n),xe)try{return Pe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Be("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},_e=p?function(e,t,n){return Fe.f(e,t,b(1,n))}:function(e,t,n){return e[t]=n,e},Re=C(Function.toString);F(oe.inspectSource)||(oe.inspectSource=function(e){return Re(e)});var je,Le,Me,ze=oe.inspectSource,He=f.WeakMap,Ue=F(He)&&/native code/.test(ze(He)),$e=ie("keys"),Ve=function(e){return $e[e]||($e[e]=pe(e))},Ge={},We="Object already initialized",qe=f.TypeError,Ke=f.WeakMap;if(Ue||oe.state){var Ye=oe.state||(oe.state=new Ke),Xe=C(Ye.get),Ze=C(Ye.has),Je=C(Ye.set);je=function(e,t){if(Ze(Ye,e))throw new qe(We);return t.facade=e,Je(Ye,e,t),t},Le=function(e){return Xe(Ye,e)||{}},Me=function(e){return Ze(Ye,e)}}else{var Qe=Ve("state");Ge[Qe]=!0,je=function(e,t){if(le(e,Qe))throw new qe(We);return t.facade=e,_e(e,Qe,t),t},Le=function(e){return le(e,Qe)?e[Qe]:{}},Me=function(e){return le(e,Qe)}}var et={set:je,get:Le,has:Me,enforce:function(e){return Me(e)?Le(e):je(e,{})},getterFor:function(e){return function(t){var n;if(!_(t)||(n=Le(t)).type!==e)throw qe("Incompatible receiver, "+e+" required");return n}}},tt=Function.prototype,nt=p&&Object.getOwnPropertyDescriptor,rt=le(tt,"name"),ot={EXISTS:rt,PROPER:rt&&"something"===function(){}.name,CONFIGURABLE:rt&&(!p||p&&nt(tt,"name").configurable)},it=u((function(e){var t=ot.CONFIGURABLE,n=et.get,r=et.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,d=a&&void 0!==a.name?a.name:n;F(i)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!le(i,"name")||t&&i.name!==d)&&_e(i,"name",d),(u=r(i)).source||(u.source=o.join("string"==typeof d?d:""))),e!==f?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:_e(e,n,i)):l?e[n]=i:ne(n,i)})(Function.prototype,"toString",(function(){return F(this)&&n(this).source||ze(this)}))})),at=Math.ceil,ut=Math.floor,st=function(e){var t=+e;return t!=t||0===t?0:(t>0?ut:at)(t)},lt=Math.max,ct=Math.min,ft=function(e,t){var n=st(e);return n<0?lt(n+t,0):ct(n,t)},dt=Math.min,pt=function(e){return e>0?dt(st(e),9007199254740991):0},ht=function(e){return pt(e.length)},vt=function(e){return function(t,n,r){var o,i=P(t),a=ht(i),u=ft(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}},gt=(vt(!0),vt(!1)),yt=C([].push),mt=function(e,t){var n,r=P(e),o=0,i=[];for(n in r)!le(Ge,n)&&le(r,n)&&yt(i,n);for(;t.length>o;)le(r,n=t[o++])&&(~gt(i,n)||yt(i,n));return i},bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Et=bt.concat("length","prototype"),wt={f:Object.getOwnPropertyNames||function(e){return mt(e,Et)}},St={f:Object.getOwnPropertySymbols},Dt=C([].concat),Ct=j("Reflect","ownKeys")||function(e){var t=wt.f(Ie(e)),n=St.f;return n?Dt(t,n(e)):t},At=function(e,t){for(var n=Ct(t),r=Fe.f,o=Te.f,i=0;i<n.length;i++){var a=n[i];le(e,a)||r(e,a,o(t,a))}},xt=/#|\.prototype\./,Ot=function(e,t){var n=Nt[Tt(e)];return n==It||n!=kt&&(F(t)?d(t):!!t)},Tt=Ot.normalize=function(e){return String(e).replace(xt,".").toLowerCase()},Nt=Ot.data={},kt=Ot.NATIVE="N",It=Ot.POLYFILL="P",Bt=Ot,Pt=Te.f,Ft=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?f:l?f[u]||ne(u,{}):(f[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Pt(n,r))&&a.value:n[r],!Bt(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;At(i,o)}(e.sham||o&&o.sham)&&_e(i,"sham",!0),it(n,r,i,e)}},_t=Array.isArray||function(e){return"Array"==O(e)},Rt={};Rt[me("toStringTag")]="z";var jt,Lt="[object z]"===String(Rt),Mt=me("toStringTag"),zt=f.Object,Ht="Arguments"==O(function(){return arguments}()),Ut=Lt?O: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=zt(e),Mt))?n:Ht?O(t):"Object"==(r=O(t))&&F(t.callee)?"Arguments":r},$t=function(){},Vt=[],Gt=j("Reflect","construct"),Wt=/^\s*(?:class|function)\b/,qt=C(Wt.exec),Kt=!Wt.exec($t),Yt=function(e){if(!F(e))return!1;try{return Gt($t,Vt,e),!0}catch(e){return!1}},Xt=!Gt||d((function(){var e;return Yt(Yt.call)||!Yt(Object)||!Yt((function(){e=!0}))||e}))?function(e){if(!F(e))return!1;switch(Ut(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Kt||!!qt(Wt,ze(e))}:Yt,Zt=function(e,t,n){var r=Se(t);r in e?Fe.f(e,r,b(0,n)):e[r]=n},Jt=me("species"),Qt=C([].slice),en=(jt="slice",V>=51||!d((function(){var e=[];return(e.constructor={})[Jt]=function(){return{foo:1}},1!==e[jt](Boolean).foo}))),tn=me("species"),nn=f.Array,rn=Math.max;Ft({target:"Array",proto:!0,forced:!en},{slice:function(e,t){var n,r,o,i=P(this),a=ht(i),u=ft(e,a),s=ft(void 0===t?a:t,a);if(_t(i)&&(n=i.constructor,(Xt(n)&&(n===nn||_t(n.prototype))||_(n)&&null===(n=n[tn]))&&(n=void 0),n===nn||void 0===n))return Qt(i,u,s);for(r=new(void 0===n?nn:n)(rn(s-u,0)),o=0;u<s;u++,o++)u in i&&Zt(r,o,i[u]);return r.length=o,r}});var on=Lt?{}.toString:function(){return"[object "+Ut(this)+"]"};Lt||it(Object.prototype,"toString",on,{unsafe:!0});var an,un=f.String,sn=function(e){if("Symbol"===Ut(e))throw TypeError("Cannot convert a Symbol value to a string");return un(e)},ln=function(){var e=Ie(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},cn=f.RegExp,fn=d((function(){var e=cn("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),dn=fn||d((function(){return!cn("a","y").sticky})),pn={BROKEN_CARET:fn||d((function(){var e=cn("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:dn,UNSUPPORTED_Y:fn},hn=Object.keys||function(e){return mt(e,bt)},vn=p?Object.defineProperties:function(e,t){Ie(e);for(var n,r=P(t),o=hn(t),i=o.length,a=0;i>a;)Fe.f(e,n=o[a++],r[n]);return e},gn=j("document","documentElement"),yn=Ve("IE_PROTO"),mn=function(){},bn=function(e){return"<script>"+e+"<\/script>"},En=function(e){e.write(bn("")),e.close();var t=e.parentWindow.Object;return e=null,t},wn=function(){try{an=new ActiveXObject("htmlfile")}catch(e){}var e,t;wn="undefined"!=typeof document?document.domain&&an?En(an):((t=Ae("iframe")).style.display="none",gn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(bn("document.F=Object")),e.close(),e.F):En(an);for(var n=bt.length;n--;)delete wn.prototype[bt[n]];return wn()};Ge[yn]=!0;var Sn,Dn,Cn=Object.create||function(e,t){var n;return null!==e?(mn.prototype=Ie(e),n=new mn,mn.prototype=null,n[yn]=e):n=wn(),void 0===t?n:vn(n,t)},An=f.RegExp,xn=d((function(){var e=An(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),On=f.RegExp,Tn=d((function(){var e=On("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Nn=et.get,kn=ie("native-string-replace",String.prototype.replace),In=RegExp.prototype.exec,Bn=In,Pn=C("".charAt),Fn=C("".indexOf),_n=C("".replace),Rn=C("".slice),jn=(Dn=/b*/g,v(In,Sn=/a/,"a"),v(In,Dn,"a"),0!==Sn.lastIndex||0!==Dn.lastIndex),Ln=pn.BROKEN_CARET,Mn=void 0!==/()??/.exec("")[1];(jn||Mn||Ln||xn||Tn)&&(Bn=function(e){var t,n,r,o,i,a,u,s=this,l=Nn(s),c=sn(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=v(Bn,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Ln&&s.sticky,h=v(ln,s),g=s.source,y=0,m=c;if(p&&(h=_n(h,"y",""),-1===Fn(h,"g")&&(h+="g"),m=Rn(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Pn(c,s.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,y++),n=new RegExp("^(?:"+g+")",h)),Mn&&(n=new RegExp("^"+g+"$(?!\\s)",h)),jn&&(r=s.lastIndex),o=v(In,p?n:s,m),p?o?(o.input=Rn(o.input,y),o[0]=Rn(o[0],y),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:jn&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Mn&&o&&o.length>1&&v(kn,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=Cn(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var zn=Bn;Ft({target:"RegExp",proto:!0,forced:/./.exec!==zn},{exec:zn});var Hn=Function.prototype,Un=Hn.apply,$n=Hn.bind,Vn=Hn.call,Gn="object"==typeof Reflect&&Reflect.apply||($n?Vn.bind(Un):function(){return Vn.apply(Un,arguments)}),Wn=me("species"),qn=RegExp.prototype,Kn=me("match"),Yn=f.TypeError,Xn=me("species"),Zn=function(e,t){var n,r=Ie(e).constructor;return void 0===r||null==(n=Ie(r)[Xn])?t:function(e){if(Xt(e))return e;throw Yn(X(e)+" is not a constructor")}(n)},Jn=C("".charAt),Qn=C("".charCodeAt),er=C("".slice),tr=function(e){return function(t,n){var r,o,i=sn(B(t)),a=st(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Qn(i,a))<55296||r>56319||a+1===u||(o=Qn(i,a+1))<56320||o>57343?e?Jn(i,a):r:e?er(i,a,a+2):o-56320+(r-55296<<10)+65536}},nr={codeAt:tr(!1),charAt:tr(!0)},rr=nr.charAt,or=function(e,t,n){return t+(n?rr(e,t).length:1)},ir=f.Array,ar=Math.max,ur=function(e,t,n){for(var r=ht(e),o=ft(t,r),i=ft(void 0===n?r:n,r),a=ir(ar(i-o,0)),u=0;o<i;o++,u++)Zt(a,u,e[o]);return a.length=u,a},sr=f.TypeError,lr=function(e,t){var n=e.exec;if(F(n)){var r=v(n,e,t);return null!==r&&Ie(r),r}if("RegExp"===O(e))return v(zn,e,t);throw sr("RegExp#exec called on incompatible receiver")},cr=pn.UNSUPPORTED_Y,fr=4294967295,dr=Math.min,pr=[].push,hr=C(/./.exec),vr=C(pr),gr=C("".slice),yr=!d((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]}));!function(e,t,n,r){var o=me(e),i=!d((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!d((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Wn]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=C(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=C(e),s=t.exec;return s===zn||s===qn.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));it(String.prototype,e,s[0]),it(qn,o,s[1])}r&&_e(qn[o],"sham",!0)}("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=sn(B(this)),a=void 0===n?fr:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!_(r=e)||!(void 0!==(o=r[Kn])?o:"RegExp"==O(r)))return v(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=v(zn,p,i))&&!((s=p.lastIndex)>d&&(vr(c,gr(i,d,u.index)),u.length>1&&u.index<i.length&&Gn(pr,c,ur(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&hr(p,"")||vr(c,""):vr(c,gr(i,d)),c.length>a?ur(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:v(t,this,e,n)}:t,[function(t,n){var o=B(this),i=null==t?void 0:Q(t,e);return i?v(i,t,o,n):v(r,sn(o),t,n)},function(e,o){var i=Ie(this),a=sn(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=Zn(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(cr?"g":"y"),f=new s(cr?"^(?:"+i.source+")":i,c),d=void 0===o?fr:o>>>0;if(0===d)return[];if(0===a.length)return null===lr(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=cr?0:h;var g,y=lr(f,cr?gr(a,h):a);if(null===y||(g=dr(pt(f.lastIndex+(cr?h:0)),a.length))===p)h=or(a,h,l);else{if(vr(v,gr(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(vr(v,y[m]),v.length===d)return v;h=p=g}}return vr(v,gr(a,p)),v}]}),!yr,cr);
|
|
98
98
|
/*! *****************************************************************************
|
|
99
99
|
Copyright (c) Microsoft Corporation.
|
|
100
100
|
|
|
@@ -132,5 +132,5 @@ var mr=function(){return mr=Object.assign||function(e){for(var t,n=1,r=arguments
|
|
|
132
132
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
133
133
|
PERFORMANCE OF THIS SOFTWARE.
|
|
134
134
|
***************************************************************************** */
|
|
135
|
-
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.")}(p),g=v.next();!g.done;g=v.next()){var y=g.value,m=h+Sn(y);"string"!=typeof y&&l.push(((i={})[y.type]=!0,i.anchor={path:s,offset:h},i.focus={path:s,offset:m},i)),h=m}}catch(e){t={error:e}}finally{try{g&&!g.done&&(r=v.return)&&r.call(v)}finally{if(t)throw t.error}}return l},e.wangEditorCodeHighlightModule=Hr,Object.defineProperty(e,"__esModule",{value:!0})}(n,kw,Tw,Ow)})),iS=function(){return iS=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},iS.apply(this,arguments)},aS=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=iS(iS({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=iS(iS({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=iS(iS({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=iS(iS({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){kw.registerMenu(e,t)},e.registerRenderElem=function(e){kw.registerRenderElemConf(e)},e.registerRenderStyle=function(e){kw.registerStyleHandler(e)},e.registerElemToHtml=function(e){kw.registerElemToHtmlConf(e)},e.registerStyleToHtml=function(e){kw.registerStyleToHtmlHandler(e)},e.registerPreParseHtml=function(e){kw.registerPreParseHtmlConf(e)},e.registerParseElemHtml=function(e){kw.registerParseElemHtmlConf(e)},e.registerParseStyleHtml=function(e){kw.registerParseStyleHtmlHandler(e)},e.registerModule=function(e){uS(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function uS(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return aS.registerMenu(e)})),n&&n.forEach((function(e){return aS.registerRenderElem(e)})),r&&aS.registerRenderStyle(r),o&&o.forEach((function(e){return aS.registerElemToHtml(e)})),i&&aS.registerStyleToHtml(i),a&&a.forEach((function(e){return aS.registerPreParseHtml(e)})),u&&u.forEach((function(e){return aS.registerParseElemHtml(e)})),s&&aS.registerParseStyleHtml(s),l&&aS.registerPlugin(l)}Jw.forEach((function(e){return uS(e)})),uS(Qw),uS(tS),uS(nS),uS(rS),uS(oS.wangEditorCodeHighlightModule);var sS='<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>';var lS={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editorImageSizeMenu","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"]}};var cS={hoverbarKeys:iS(iS({},lS),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};aS.setEditorConfig(iS(iS({},cS),{decorate:oS.wangEditorCodeHighLightDecorate}));var fS={hoverbarKeys:lS};aS.setSimpleEditorConfig(iS(iS({},fS),{decorate:oS.wangEditorCodeHighLightDecorate}));var dS={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:kw.t("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:kw.t("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:kw.t("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:kw.t("editor.image"),iconSvg:sS,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:kw.t("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"]};aS.setToolbarConfig(dS);var pS={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:kw.t("editor.image"),iconSvg:sS,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};aS.setSimpleToolbarConfig(pS);e.Boot=aS,e.DomEditor=kw.DomEditor,e.SlateEditor=hd,e.SlateElement=vd,e.SlateLocation=gd,e.SlateNode=yd,e.SlatePath=bd,e.SlatePoint=wd,e.SlateRange=Dd,e.SlateText=xd,e.SlateTransforms=Od,e.Toolbar=kw.Toolbar,e.createEditor=function(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,l="simple"===(void 0===s?"default":s)?aS.simpleEditorConfig:aS.editorConfig,c=iS(iS({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return kw.coreCreateEditor({selector:n,config:iS(iS(iS({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:aS.plugins})},e.createToolbar=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?aS.simpleToolbarConfig:aS.toolbarConfig;return kw.coreCreateToolbar(n,{selector:t,config:iS(iS({},u),o)})},e.createUploader=kw.createUploader,e.default={},e.genModalButtonElems=kw.genModalButtonElems,e.genModalInputElems=kw.genModalInputElems,e.genModalTextareaElems=kw.genModalTextareaElems,e.i18nAddResources=kw.i18nAddResources,e.i18nChangeLanguage=kw.i18nChangeLanguage,e.i18nGetResources=kw.i18nGetResources,e.t=kw.t,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
135
|
+
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.")}(p),g=v.next();!g.done;g=v.next()){var y=g.value,m=h+Sn(y);"string"!=typeof y&&l.push(((i={})[y.type]=!0,i.anchor={path:s,offset:h},i.focus={path:s,offset:m},i)),h=m}}catch(e){t={error:e}}finally{try{g&&!g.done&&(r=v.return)&&r.call(v)}finally{if(t)throw t.error}}return l},e.wangEditorCodeHighlightModule=Hr,Object.defineProperty(e,"__esModule",{value:!0})}(n,kw,Tw,Ow)})),iS=function(){return iS=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},iS.apply(this,arguments)},aS=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=iS(iS({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=iS(iS({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=iS(iS({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=iS(iS({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){kw.registerMenu(e,t)},e.registerRenderElem=function(e){kw.registerRenderElemConf(e)},e.registerRenderStyle=function(e){kw.registerStyleHandler(e)},e.registerElemToHtml=function(e){kw.registerElemToHtmlConf(e)},e.registerStyleToHtml=function(e){kw.registerStyleToHtmlHandler(e)},e.registerPreParseHtml=function(e){kw.registerPreParseHtmlConf(e)},e.registerParseElemHtml=function(e){kw.registerParseElemHtmlConf(e)},e.registerParseStyleHtml=function(e){kw.registerParseStyleHtmlHandler(e)},e.registerModule=function(e){uS(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function uS(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return aS.registerMenu(e)})),n&&n.forEach((function(e){return aS.registerRenderElem(e)})),r&&aS.registerRenderStyle(r),o&&o.forEach((function(e){return aS.registerElemToHtml(e)})),i&&aS.registerStyleToHtml(i),a&&a.forEach((function(e){return aS.registerPreParseHtml(e)})),u&&u.forEach((function(e){return aS.registerParseElemHtml(e)})),s&&aS.registerParseStyleHtml(s),l&&aS.registerPlugin(l)}Jw.forEach((function(e){return uS(e)})),uS(Qw),uS(tS),uS(nS),uS(rS),uS(oS.wangEditorCodeHighlightModule);var sS='<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>';var lS={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editorImageSizeMenu","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","editVideoSrc"]}};var cS={hoverbarKeys:iS(iS({},lS),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};aS.setEditorConfig(iS(iS({},cS),{decorate:oS.wangEditorCodeHighLightDecorate}));var fS={hoverbarKeys:lS};aS.setSimpleEditorConfig(iS(iS({},fS),{decorate:oS.wangEditorCodeHighLightDecorate}));var dS={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:kw.t("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:kw.t("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:kw.t("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:kw.t("editor.image"),iconSvg:sS,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:kw.t("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"]};aS.setToolbarConfig(dS);var pS={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:kw.t("editor.image"),iconSvg:sS,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};aS.setSimpleToolbarConfig(pS);e.Boot=aS,e.DomEditor=kw.DomEditor,e.SlateEditor=hd,e.SlateElement=vd,e.SlateLocation=gd,e.SlateNode=yd,e.SlatePath=bd,e.SlatePoint=wd,e.SlateRange=Dd,e.SlateText=xd,e.SlateTransforms=Od,e.Toolbar=kw.Toolbar,e.createEditor=function(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,l="simple"===(void 0===s?"default":s)?aS.simpleEditorConfig:aS.editorConfig,c=iS(iS({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return kw.coreCreateEditor({selector:n,config:iS(iS(iS({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:aS.plugins})},e.createToolbar=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?aS.simpleToolbarConfig:aS.toolbarConfig;return kw.coreCreateToolbar(n,{selector:t,config:iS(iS({},u),o)})},e.createUploader=kw.createUploader,e.default={},e.genModalButtonElems=kw.genModalButtonElems,e.genModalInputElems=kw.genModalInputElems,e.genModalTextareaElems=kw.genModalTextareaElems,e.i18nAddResources=kw.i18nAddResources,e.i18nChangeLanguage=kw.i18nChangeLanguage,e.i18nGetResources=kw.i18nGetResources,e.t=kw.t,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
136
136
|
//# sourceMappingURL=index.js.map
|