build/static/js/54.92fb8633.chunk.js

2 lines
886 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see 54.92fb8633.chunk.js.LICENSE.txt */
(this.webpackJsonp=this.webpackJsonp||[]).push([[54,11,15,22],{"/LDT":function(e,t,n){"use strict";var r=n("5Zs1");e.exports=r},"0X2M":function(e,t,n){"use strict";var r=n("Q3sF"),o=n("xcSo"),i=Array.prototype;e.exports=function(e){var t=e.lastIndexOf;return e===i||r(i,e)&&t===i.lastIndexOf?o:t}},"1Man":function(e,t,n){"use strict";n.r(t);var r=n("+oHS"),o=n.n(r),i=n("OWCx"),a=n.n(i),u=n("5PDf"),s=n.n(u),l=n("fHi0"),c=n.n(l),f=n("RXMP"),d=n.n(f),p=n("qjzJ"),h=n.n(p),g=n("HnXd"),v=n.n(g),y=n("LYCE"),m=n.n(y),b=n("EcSs"),w=n.n(b),E=(n("+L6B"),n("2/Rp")),x=(n("OaEy"),n("2fM7")),S=(n("y8nQ"),n("Vl3Y")),C=(n("5NDa"),n("5rEg")),D=(n("sPJy"),n("bE4q")),O=(n("miYZ"),n("tsqr")),A=n("04Ix"),k=n.n(A),B=n("zLi2"),_=n.n(B),F=n("HU8g"),T=n.n(F),P=n("5tqG"),j=n.n(P),N=n("X25t"),I=n.n(N),R=n("o+MX"),L=n.n(R),M=n("FLGM"),z=n.n(M),U=n("cDcd"),H=n.n(U),$=n("sYIF"),V=n("p7gc"),W=(n("T2oS"),n("W9HT")),q=n("SPx3"),G=n.n(q),K=n("a0dU"),Y=n.n(K),X=n("STz3"),Z=n.n(X),J=n("ZbhI"),Q=n.n(J),ee=n("mnMc"),te=n.n(ee),ne=n("yyNy"),re=function(){return(re=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}).apply(this,arguments)};function oe(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 ie(e){var t=e.defaultContent,n=void 0===t?[]:t,r=e.onCreated,o=e.defaultHtml,i=void 0===o?"":o,a=e.value,u=void 0===a?"":a,s=e.onChange,l=e.defaultConfig,c=void 0===l?{}:l,f=e.mode,d=void 0===f?"default":f,p=e.style,h=void 0===p?{}:p,g=e.className,v=Object(U.useRef)(null),y=oe(Object(U.useState)(null),2),m=y[0],b=y[1],w=oe(Object(U.useState)(""),2),E=w[0],x=w[1],S=function(e){r&&r(e);var t=c.onCreated;t&&t(e)},C=function(e){x(e.getHtml()),s&&s(e);var t=c.onChange;t&&t(e)},D=function(e){var t=c.onDestroyed;b(null),t&&t(e)};return Object(U.useEffect)((function(){if(null!=m&&u!==E)try{m.setHtml(u)}catch(e){}}),[u]),Object(U.useEffect)((function(){var e;if(null!=v.current&&null==m&&!(null===(e=v.current)||void 0===e?void 0:e.getAttribute("data-w-e-textarea"))){var t=Object(ne.a)({selector:v.current,config:re(re({},c),{onCreated:S,onChange:C,onDestroyed:D}),content:n,html:i||u,mode:d});b(t)}}),[m]),H.a.createElement("div",{style:h,ref:v,className:g})}function ae(e){var t=e.editor,n=e.defaultConfig,r=void 0===n?{}:n,o=e.mode,i=void 0===o?"default":o,a=e.style,u=void 0===a?{}:a,s=e.className,l=Object(U.useRef)(null);return Object(U.useEffect)((function(){null!=l.current&&null!=t&&ne.b({editor:t,selector:l.current,config:r,mode:i})}),[t]),H.a.createElement("div",{style:u,ref:l,className:s})}n("Vg4E");var ue=n("Po8q"),se=n.n(ue),le=n("vDqi"),ce=n.n(le);n("Glsh");var fe=function(e){var t=e.value,n=e.setValue,r=e.uploadUrl,o=e.videoUploadUrl,i=Object(U.useState)(null),a=_()(i,2),u=a[0],s=a[1],l=Object(U.useState)(!1),c=_()(l,2),f=c[0],d=c[1];Object(U.useEffect)((function(){t&&n&&n(t)}),[]);var p={placeholder:"请输入内容...",MENU_CONF:{uploadImage:{server:r,headers:{Authorization:se.a.load("autologin_trustie")},withCredentials:!0,fieldName:"file",maxFileSize:20971520,allowedFileTypes:["image/jpeg","image/png","image/gif","image/webp","image/svg+xml","image/bmp"],customInsert:function(e,t){var n=e.url;t(n,"图片",n)},onBeforeUpload:function(e){var t=Z()(e)[0],n=t.type,r=t.name,o=["image/jpeg","image/png","image/gif","image/webp","image/svg+xml","image/bmp"],i=r&&r.split(".")[1];return-1!==Q()(o).call(o,n)&&"tiff"!==i?e:(O.a.error("只能上传jpg、jpeg、webp、png、svg、gif、bmp格式的图片!"),!1)},onError:function(e,t){var n;O.a.error(L()(n="".concat(e.name," 上传出错, ")).call(n,t))}},uploadVideo:{customUpload:function(e,t){return G()(Y.a.mark((function n(){var i,a;return Y.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(te()(i=e.type).call(i,"video")){n.next=4;break}return n.abrupt("return",O.a.error("请上传视频格式的文件!"));case 4:if(!(e.size/1024/1024>200)){n.next=6;break}return n.abrupt("return",O.a.error("请上传200M以内的文件"));case 6:(a=new FormData).append("file",e),d(!0),ce.a.post(o||r,a,{headers:{Authorization:se.a.load("autologin_trustie")}}).then((function(e){d(!1),e&&e.data&&200===e.data.code?t(e.data.url):O.a.error(e&&e.data&&e.data.msg)}));case 10:case"end":return n.stop()}}),n)})))()}}}};return Object(U.useEffect)((function(){return function(){null!==u&&(u.destroy(),s(null))}}),[u]),H.a.createElement("div",{style:{border:"1px solid #ccc",zIndex:100,video:{maxWidth:"100%"}}},H.a.createElement(W.a,{spinning:f,tip:"上传中,请耐心等待"},H.a.createElement(ae,{editor:u,defaultConfig:{excludeKeys:["todo","fullScreen"]},mode:"default",style:{borderBottom:"1px solid #ccc"}}),H.a.createElement(ie,{defaultConfig:p,value:t,onCreated:s,onChange:function(e){return n&&n(e.getHtml())},mode:"default",style:{height:"500px",overflowY:"hidden"}})))},de=n("tlJt"),pe=(n("10VC"),n("c2x/"),n("J66h")),he=n("TxSN"),ge=n("UUzw");function ve(e,t){var n=o()(e);if(a.a){var r=a()(e);t&&(r=s()(r).call(r,(function(t){return c()(e,t).enumerable}))),n.push.apply(n,r)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n,r,o=null!=arguments[t]?arguments[t]:{};t%2?d()(n=ve(Object(o),!0)).call(n,(function(t){k()(e,t,o[t])})):h.a?v()(e,h()(o)):d()(r=ve(Object(o))).call(r,(function(t){m()(e,t,c()(o,t))}))}return e}t.default=S.a.create()((function(e){var t=e.history,n=e.id,r=e.role,o=e.current_user,i=(e.temp,e.form),a=i.getFieldDecorator,u=i.validateFields,s=i.setFieldsValue,l=i.setFields,c=e.match.params,f=c.deptId,d=c.id,p=e.location.pathname,h=Object(U.useState)(new T.a(e.location.search.substring(1)).get("type")),g=_()(h,2),v=g[0],y=g[1],m=Object(U.useState)(void 0),b=_()(m,2),A=b[0],k=b[1],B=Object(U.useState)(void 0),F=_()(B,2),P=F[0],N=F[1],R=Object(U.useState)(void 0),M=_()(R,2),W=M[0],q=M[1],G=Object(U.useState)(!1),K=_()(G,2),Y=K[0],X=K[1],Z=Object(U.useState)(!1),J=_()(Z,2),Q=J[0],ee=J[1],te=e.data.sectionCmsTitle;return Object(U.useEffect)((function(){(r&&"None"===r.role||o&&!o.login)&&t.push("/zone/".concat(f))}),[r]),Object(U.useEffect)((function(){n&&Object(he.r)(n).then((function(e){e&&q(e.data.rows)}))}),[n]),Object(U.useEffect)((function(){p&&(j()(p).call(p,"/edit")?(ee(!0),Object(he.y)(d).then((function(e){if(e&&e.data){var t=e.data.data,n=t.name,r=t.summary,o=t.cmsDir,i=t.content,a=t.headImg,u=t.editorType,l=t.keywords;y("rich_editor"===u?"richEditor":"mdEditor"),s({name:n,summary:r,dirId:o&&o.id,content:pe.Base64.decode(i),headImg:a,keywords:l}),N(a),k(pe.Base64.decode(i))}}))):ee(!1))}),[p]),H.a.createElement("div",{className:"boxmain pt30 newsCreateBox pb100"},H.a.createElement(D.a,{separator:">"},H.a.createElement(D.a.Item,{href:"/zone/".concat(f,"/news")},te),H.a.createElement(D.a.Item,null,Q?"编辑":"新建","文章")),H.a.createElement("div",{className:"formBox"},H.a.createElement(S.a,w()({},{labelCol:{span:2},wrapperCol:{span:14}},{onSubmit:function(e){e.preventDefault(),u((function(e,n){var r="richEditor"===v&&"<p><br></p>"===n.content;if(e||r)r&&l({content:{value:n.content,errors:[new Error("请输入内容!")]}});else{var o;n.keywords&&(n.keywords=I()(o=n.keywords).call(o,"",",")),X(!0);var i=ye(ye({},n),{},{editorType:"richEditor"===v?"rich_editor":"markdown_editor",headImg:P,content:pe.Base64.encode(n.content)});if(Q)return delete i.editorType,Object(he.Y)(d,i).then((function(e){var n,r=e.data,o=r.code,i=r.msg;X(!1),200===o?(O.a.success("提交成功"),t.push(L()(n="/zone/".concat(f,"/newdetail/")).call(n,d))):O.a.error(i||"提交失败,请联系管理员!")})).catch((function(e){X(!1)}));Object(he.b)(n.dirId,i).then((function(e){var n,r=e.data,o=r.code,i=r.msg,a=r.data;X(!1),200===o?(O.a.success("提交成功"),t.push(L()(n="/zone/".concat(f,"/newdetail/")).call(n,a))):O.a.error(i||"提交失败,请联系管理员!")})).catch((function(e){X(!1)}))}}))}}),H.a.createElement(S.a.Item,{label:"标题"},a("name",{rules:[{required:!0,message:"请输入文章标题!"},{type:"string",max:200,message:"最大长度200"},{pattern:/^[^<>[\]/\\]+$/,message:"不能输入特殊字符:< > [ ] / \\"}]})(H.a.createElement(C.a,{placeholder:"请输入文章标题",maxLength:200,width:"220px"}))),H.a.createElement(S.a.Item,{label:"概览"},a("summary",{rules:[{required:!0,message:"请输入概览!"},{type:"string",max:200,message:"最大长度200"}]})(H.a.createElement(C.a.TextArea,{placeholder:"请输入概览",maxLength:200,width:"220px"}))),H.a.createElement(S.a.Item,{label:"栏目"},a("dirId",{rules:[{required:!0,message:"请选择文章所属栏目!"}]})(H.a.createElement(x.a,{placeholder:"请选择文章所属栏目"},W&&z()(W).call(W,(function(e){return H.a.createElement(x.a.Option,{key:e.id,value:e.id},e.name)}))))),H.a.createElement(S.a.Item,{label:"文章标签"},a("keywords",{rules:[{type:"string",max:30,message:"请精简文章标签最大长度30"}]})(H.a.createElement(C.a,{placeholder:"请输入关键词作为文章标签,使用逗号分隔",maxLength:30,width:"220px"}))),H.a.createElement(S.a.Item,{label:"内容",wrapperCol:{span:21}},a("content",{rules:[{required:!0,message:"请输入内容!"}]})("richEditor"===v?H.a.createElement(fe,{uploadUrl:"".concat(ge.b,"/file/common/upload"),videoUploadUrl:"".concat(ge.b,"/file/common/upload?type=cms"),setValue:function(e){s({content:e})}}):H.a.createElement(V.a,{placeholder:"请输入详细介绍",height:500,className:"editNewsMd",initValue:A,onChange:function(e){s({content:e})},imageExpand:!1}))),H.a.createElement(S.a.Item,{label:"首图",extra:"建议图片比例宽为32上传jpg、jpeg、webp、png、svg、gif、bmp格式的图片"},H.a.createElement(de.a,{maxSize:5,getImageUrl:function(e){return N(e)},url:P||void 0,action:Object($.o)("/api/cms/common/upload")})),H.a.createElement(S.a.Item,{wrapperCol:{offset:2}},H.a.createElement(E.a,{className:"mr20 themeBut",onClick:function(){t.go(-1)}},"取消"),H.a.createElement(E.a,{type:"primary",htmlType:"submit",loading:Y,className:"themeBut"},"提交")))))}))},"25NQ":function(e,t,n){(t=n("JPst")(!1)).push([e.i,"/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-breadcrumb {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n font-feature-settings: 'tnum';\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n.ant-breadcrumb .anticon {\n font-size: 14px;\n}\n.ant-breadcrumb a {\n color: rgba(0, 0, 0, 0.45);\n transition: color 0.3s;\n}\n.ant-breadcrumb a:hover {\n color: #6e90ff;\n}\n.ant-breadcrumb > span:last-child {\n color: rgba(0, 0, 0, 0.65);\n}\n.ant-breadcrumb > span:last-child a {\n color: rgba(0, 0, 0, 0.65);\n}\n.ant-breadcrumb > span:last-child .ant-breadcrumb-separator {\n display: none;\n}\n.ant-breadcrumb-separator {\n margin: 0 8px;\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-breadcrumb-link > .anticon + span {\n margin-left: 4px;\n}\n.ant-breadcrumb-overlay-link > .anticon {\n margin-left: 4px;\n}\n",""]),e.exports=t},"25vf":function(e,t,n){"use strict";var r=n("pevS"),o=n("zhhU"),i=n("RQhY"),a=RangeError,u=String.fromCharCode,s=String.fromCodePoint,l=o([].join);r({target:"String",stat:!0,arity:1,forced:!!s&&1!==s.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,o=0;r>o;){if(t=+arguments[o++],i(t,1114111)!==t)throw new a(t+" is not a valid code point");n[o]=t<65536?u(t):u(55296+((t-=65536)>>10),t%1024+56320)}return l(n,"")}})},"2ajD":function(e,t){e.exports=function(e){return e!=e}},"2oBu":function(e,t,n){"use strict";var r=n("pevS"),o=n("S/P8").values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},"4sNH":function(e,t,n){"use strict";n("cYy4")},"54hm":function(e,t){},"59z6":function(e,t,n){"use strict";e.exports=n("Se0y")},"5Zs1":function(e,t,n){"use strict";n("2oBu");var r=n("dktu");e.exports=r.Object.values},"8z0m":function(e,t,n){"use strict";var r=n("cDcd"),o=n.n(r),i=n("VCL8"),a=n("QbLZ"),u=n.n(a),s=n("iCc5"),l=n.n(s),c=n("V7oC"),f=n.n(c),d=n("FYw3"),p=n.n(d),h=n("mRg0"),g=n.n(h),v=n("17x9"),y=n.n(v),m=n("YEIV"),b=n.n(m),w=n("TSYQ"),E=n.n(w);function x(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function S(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append(t+"[]",e)})):n.append(t,e.data[t])})),n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300)return e.onError(function(e,t){var n="cannot "+e.method+" "+e.action+" "+t.status+"'",r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),x(t));e.onSuccess(x(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};for(var o in null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),r)r.hasOwnProperty(o)&&null!==r[o]&&t.setRequestHeader(o,r[o]);return t.send(n),{abort:function(){t.abort()}}}var C=+new Date,D=0;function O(){return"rc-upload-"+C+"-"+ ++D}var A=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some((function(e){var t,n,a=e.trim();return"."===a.charAt(0)?(t=r.toLowerCase(),n=a.toLowerCase(),-1!==t.indexOf(n,t.length-n.length)):/\/\*$/.test(a)?i===a.replace(/\/.*$/,""):o===a}))}return!0},k=function(e,t,n){var r=function e(r,o){o=o||"",r.isFile?r.file((function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):r.isDirectory&&function(e,t){var n=e.createReader(),r=[];!function e(){n.readEntries((function(n){var o=Array.prototype.slice.apply(n);r=r.concat(o),o.length?e():t(r)}))}()}(r,(function(t){t.forEach((function(t){e(t,""+o+r.name+"/")}))}))},o=!0,i=!1,a=void 0;try{for(var u,s=e[Symbol.iterator]();!(o=(u=s.next()).done);o=!0)r(u.value.webkitGetAsEntry())}catch(e){i=!0,a=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw a}}},B=function(e){function t(){var e,n,r,o;l()(this,t);for(var i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=r=p()(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={uid:O()},r.reqs={},r.onChange=function(e){var t=e.target.files;r.uploadFiles(t),r.reset()},r.onClick=function(){var e=r.fileInput;e&&e.click()},r.onKeyDown=function(e){"Enter"===e.key&&r.onClick()},r.onFileDrop=function(e){var t=r.props.multiple;if(e.preventDefault(),"dragover"!==e.type)if(r.props.directory)k(e.dataTransfer.items,r.uploadFiles,(function(e){return A(e,r.props.accept)}));else{var n=Array.prototype.slice.call(e.dataTransfer.files).filter((function(e){return A(e,r.props.accept)}));!1===t&&(n=n.slice(0,1)),r.uploadFiles(n)}},r.uploadFiles=function(e){var t=Array.prototype.slice.call(e);t.map((function(e){return e.uid=O(),e})).forEach((function(e){r.upload(e,t)}))},r.saveFileInput=function(e){r.fileInput=e},o=n,p()(r,o)}return g()(t,e),f()(t,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(e,t){var n=this,r=this.props;if(!r.beforeUpload)return setTimeout((function(){return n.post(e)}),0);var o=r.beforeUpload(e,t);o&&o.then?o.then((function(t){var r=Object.prototype.toString.call(t);return"[object File]"===r||"[object Blob]"===r?n.post(t):n.post(e)})).catch((function(e){console})):!1!==o&&setTimeout((function(){return n.post(e)}),0)}},{key:"post",value:function(e){var t=this;if(this._isMounted){var n=this.props,r=n.data,o=n.onStart,i=n.onProgress,a=n.transformFile,u=void 0===a?function(e){return e}:a;new Promise((function(t){var r=n.action;if("function"==typeof r)return t(r(e));t(r)})).then((function(a){var s=e.uid,l=n.customRequest||S;Promise.resolve(u(e)).catch((function(e){})).then((function(u){"function"==typeof r&&(r=r(e));var c={action:a,filename:n.name,data:r,file:u,headers:n.headers,withCredentials:n.withCredentials,method:n.method||"post",onProgress:i?function(t){i(t,e)}:null,onSuccess:function(r,o){delete t.reqs[s],n.onSuccess(r,e,o)},onError:function(r,o){delete t.reqs[s],n.onError(r,o,e)}};t.reqs[s]=l(c),o(e)}))}))}}},{key:"reset",value:function(){this.setState({uid:O()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e;e&&e.uid&&(n=e.uid),t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},{key:"render",value:function(){var e,t=this.props,n=t.component,r=t.prefixCls,i=t.className,a=t.disabled,s=t.id,l=t.style,c=t.multiple,f=t.accept,d=t.children,p=t.directory,h=t.openFileDialogOnClick,g=E()((e={},b()(e,r,!0),b()(e,r+"-disabled",a),b()(e,i,i),e)),v=a?{}:{onClick:h?this.onClick:function(){},onKeyDown:h?this.onKeyDown:function(){},onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return o.a.createElement(n,u()({},v,{className:g,role:"button",style:l}),o.a.createElement("input",{id:s,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:f,directory:p?"directory":null,webkitdirectory:p?"webkitdirectory":null,multiple:c,onChange:this.onChange}),d)}}]),t}(r.Component);B.propTypes={id:y.a.string,component:y.a.string,style:y.a.object,prefixCls:y.a.string,className:y.a.string,multiple:y.a.bool,directory:y.a.bool,disabled:y.a.bool,accept:y.a.string,children:y.a.any,onStart:y.a.func,data:y.a.oneOfType([y.a.object,y.a.func]),action:y.a.oneOfType([y.a.string,y.a.func]),headers:y.a.object,beforeUpload:y.a.func,customRequest:y.a.func,onProgress:y.a.func,withCredentials:y.a.bool,openFileDialogOnClick:y.a.bool,transformFile:y.a.func};var _=B,F=n("faye"),T=n.n(F),P=n("2W6z"),j=n.n(P),N={position:"absolute",top:0,opacity:0,filter:"alpha(opacity=0)",left:0,zIndex:9999},I=function(e){function t(){var e,n,r,o;l()(this,t);for(var i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=r=p()(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={uploading:!1},r.file={},r.onLoad=function(){if(r.state.uploading){var e=r,t=e.props,n=e.file,o=void 0;try{var i=r.getIframeDocument(),a=i.getElementsByTagName("script")[0];a&&a.parentNode===i.body&&i.body.removeChild(a),o=i.body.innerHTML,t.onSuccess(o,n)}catch(e){j()(!1,"cross domain error for Upload. Maybe server should return document.domain script. see Note from https://github.com/react-component/upload"),o="cross-domain",t.onError(e,null,n)}r.endUpload()}},r.onChange=function(){var e=r.getFormInputNode(),t=r.file={uid:O(),name:e.value&&e.value.substring(e.value.lastIndexOf("\\")+1,e.value.length)};r.startUpload();var n=r.props;if(!n.beforeUpload)return r.post(t);var o=n.beforeUpload(t);o&&o.then?o.then((function(){r.post(t)}),(function(){r.endUpload()})):!1!==o?r.post(t):r.endUpload()},r.saveIframe=function(e){r.iframe=e},o=n,p()(r,o)}return g()(t,e),f()(t,[{key:"componentDidMount",value:function(){this.updateIframeWH(),this.initIframe()}},{key:"componentDidUpdate",value:function(){this.updateIframeWH()}},{key:"getIframeNode",value:function(){return this.iframe}},{key:"getIframeDocument",value:function(){return this.getIframeNode().contentDocument}},{key:"getFormNode",value:function(){return this.getIframeDocument().getElementById("form")}},{key:"getFormInputNode",value:function(){return this.getIframeDocument().getElementById("input")}},{key:"getFormDataNode",value:function(){return this.getIframeDocument().getElementById("data")}},{key:"getFileForMultiple",value:function(e){return this.props.multiple?[e]:e}},{key:"getIframeHTML",value:function(e){var t="",n="";return e&&(t='<script>document.domain="'+e+'";<\/script>',n='<input name="_documentDomain" value="'+e+'" />'),'\n <!DOCTYPE html>\n <html>\n <head>\n <meta http-equiv="X-UA-Compatible" content="IE=edge" />\n <style>\n body,html {padding:0;margin:0;border:0;overflow:hidden;}\n </style>\n '+t+'\n </head>\n <body>\n <form method="post"\n encType="multipart/form-data"\n action="" id="form"\n style="display:block;height:9999px;position:relative;overflow:hidden;">\n <input id="input" type="file"\n name="'+this.props.name+'"\n style="position:absolute;top:0;right:0;height:9999px;font-size:9999px;cursor:pointer;"/>\n '+n+'\n <span id="data"></span>\n </form>\n </body>\n </html>\n '}},{key:"initIframeSrc",value:function(){this.domain&&(this.getIframeNode().src="javascript:void((function(){\n var d = document;\n d.open();\n d.domain='"+this.domain+"';\n d.write('');\n d.close();\n })())")}},{key:"initIframe",value:function(){var e=this.getIframeNode(),t=e.contentWindow,n=void 0;this.domain=this.domain||"",this.initIframeSrc();try{n=t.document}catch(r){this.domain=document.domain,this.initIframeSrc(),n=(t=e.contentWindow).document}n.open("text/html","replace"),n.write(this.getIframeHTML(this.domain)),n.close(),this.getFormInputNode().onchange=this.onChange}},{key:"endUpload",value:function(){this.state.uploading&&(this.file={},this.state.uploading=!1,this.setState({uploading:!1}),this.initIframe())}},{key:"startUpload",value:function(){this.state.uploading||(this.state.uploading=!0,this.setState({uploading:!0}))}},{key:"updateIframeWH",value:function(){var e=T.a.findDOMNode(this),t=this.getIframeNode();t.style.height=e.offsetHeight+"px",t.style.width=e.offsetWidth+"px"}},{key:"abort",value:function(e){if(e){var t=e;e&&e.uid&&(t=e.uid),t===this.file.uid&&this.endUpload()}else this.endUpload()}},{key:"post",value:function(e){var t=this,n=this.getFormNode(),r=this.getFormDataNode(),o=this.props.data,i=this.props.onStart;"function"==typeof o&&(o=o(e));var a=document.createDocumentFragment();for(var u in o)if(o.hasOwnProperty(u)){var s=document.createElement("input");s.setAttribute("name",u),s.value=o[u],a.appendChild(s)}r.appendChild(a),new Promise((function(n){var r=t.props.action;if("function"==typeof r)return n(r(e));n(r)})).then((function(t){n.setAttribute("action",t),n.submit(),r.innerHTML="",i(e)}))}},{key:"render",value:function(){var e,t=this.props,n=t.component,r=t.disabled,i=t.className,a=t.prefixCls,s=t.children,l=t.style,c=u()({},N,{display:this.state.uploading||r?"none":""}),f=E()((e={},b()(e,a,!0),b()(e,a+"-disabled",r),b()(e,i,i),e));return o.a.createElement(n,{className:f,style:u()({position:"relative",zIndex:0},l)},o.a.createElement("iframe",{ref:this.saveIframe,onLoad:this.onLoad,style:c}),s)}}]),t}(r.Component);I.propTypes={component:y.a.string,style:y.a.object,disabled:y.a.bool,prefixCls:y.a.string,className:y.a.string,accept:y.a.string,onStart:y.a.func,multiple:y.a.bool,children:y.a.any,data:y.a.oneOfType([y.a.object,y.a.func]),action:y.a.oneOfType([y.a.string,y.a.func]),name:y.a.string};var R=I;function L(){}var M=function(e){function t(){var e,n,r,o;l()(this,t);for(var i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=r=p()(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={Component:null},r.saveUploader=function(e){r.uploader=e},o=n,p()(r,o)}return g()(t,e),f()(t,[{key:"componentDidMount",value:function(){this.props.supportServerRender&&this.setState({Component:this.getComponent()},this.props.onReady)}},{key:"getComponent",value:function(){return"undefined"!=typeof File?_:R}},{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){if(this.props.supportServerRender){var e=this.state.Component;return e?o.a.createElement(e,u()({},this.props,{ref:this.saveUploader})):null}var t=this.getComponent();return o.a.createElement(t,u()({},this.props,{ref:this.saveUploader}))}}]),t}(r.Component);M.propTypes={component:y.a.string,style:y.a.object,prefixCls:y.a.string,action:y.a.oneOfType([y.a.string,y.a.func]),name:y.a.string,multipart:y.a.bool,directory:y.a.bool,onError:y.a.func,onSuccess:y.a.func,onProgress:y.a.func,onStart:y.a.func,data:y.a.oneOfType([y.a.object,y.a.func]),headers:y.a.object,accept:y.a.string,multiple:y.a.bool,disabled:y.a.bool,beforeUpload:y.a.func,customRequest:y.a.func,onReady:y.a.func,withCredentials:y.a.bool,supportServerRender:y.a.bool,openFileDialogOnClick:y.a.bool},M.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onReady:L,onStart:L,onError:L,onSuccess:L,supportServerRender:!1,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var z=M,U=n("eHJ2"),H=n.n(U),$=n("qPyV"),V=n.n($),W=n("UfWW"),q=n.n(W),G=n("MFj2");function K(){return(K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Y(e){return K(K({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function X(e,t){var n=void 0!==e.uid?"uid":"name";return t.filter((function(t){return t[n]===e[n]}))[0]}var Z=function(e){return!!e&&0===e.indexOf("image/")},J=function(e){if(Z(e.type))return!0;var t=e.thumbUrl||e.url,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),n=t[t.length-1],r=n.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!/^data:/.test(t)&&!n},Q=n("CtXQ"),ee=n("3S7+"),te=n("CFYs"),ne=n("H84U");function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ie(){return(ie=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function se(e,t){return(se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(e,t){return!t||"object"!==re(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ce(e){return(ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&se(e,t)}(i,e);var t,n,o=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ce(e);if(t){var o=ce(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return le(this,n)}}(i);function i(){var e;return ae(this,i),(e=o.apply(this,arguments)).handlePreview=function(t,n){var r=e.props.onPreview;if(r)return n.preventDefault(),r(t)},e.handleDownload=function(t){var n=e.props.onDownload;"function"==typeof n?n(t):t.url&&window.open(t.url)},e.handleClose=function(t){var n=e.props.onRemove;n&&n(t)},e.renderUploadList=function(t){var n,o=t.getPrefixCls,i=e.props,a=i.prefixCls,u=i.items,s=void 0===u?[]:u,l=i.listType,c=i.showPreviewIcon,f=i.showRemoveIcon,d=i.showDownloadIcon,p=i.locale,h=i.progressAttr,g=o("upload",a),v=s.map((function(t){var n,o,i,a=r.createElement(Q.a,{type:"uploading"===t.status?"loading":"paper-clip"});if("picture"===l||"picture-card"===l)if("picture-card"===l&&"uploading"===t.status)a=r.createElement("div",{className:"".concat(g,"-list-item-uploading-text")},p.uploading);else if(t.thumbUrl||t.url){var u=J(t)?r.createElement("img",{src:t.thumbUrl||t.url,alt:t.name,className:"".concat(g,"-list-item-image")}):r.createElement(Q.a,{type:"file",className:"".concat(g,"-list-item-icon"),theme:"twoTone"});a=r.createElement("a",{className:"".concat(g,"-list-item-thumbnail"),onClick:function(n){return e.handlePreview(t,n)},href:t.url||t.thumbUrl,target:"_blank",rel:"noopener noreferrer"},u)}else a=r.createElement(Q.a,{className:"".concat(g,"-list-item-thumbnail"),type:"picture",theme:"twoTone"});if("uploading"===t.status){var s="percent"in t?r.createElement(te.a,ie({type:"line"},h,{percent:t.percent})):null;i=r.createElement("div",{className:"".concat(g,"-list-item-progress"),key:"progress"},s)}var v,y=H()((oe(n={},"".concat(g,"-list-item"),!0),oe(n,"".concat(g,"-list-item-").concat(t.status),!0),oe(n,"".concat(g,"-list-item-list-type-").concat(l),!0),n)),m="string"==typeof t.linkProps?JSON.parse(t.linkProps):t.linkProps,b=f?r.createElement(Q.a,{type:"delete",title:p.removeFile,onClick:function(){return e.handleClose(t)}}):null,w=d&&"done"===t.status?r.createElement(Q.a,{type:"download",title:p.downloadFile,onClick:function(){return e.handleDownload(t)}}):null,E="picture-card"!==l&&r.createElement("span",{key:"download-delete",className:"".concat(g,"-list-item-card-actions ").concat("picture"===l?"picture":"")},w&&r.createElement("a",{title:p.downloadFile},w),b&&r.createElement("a",{title:p.removeFile},b)),x=H()((oe(o={},"".concat(g,"-list-item-name"),!0),oe(o,"".concat(g,"-list-item-name-icon-count-").concat([w,b].filter((function(e){return e})).length),!0),o)),S=t.url?[r.createElement("a",ie({key:"view",target:"_blank",rel:"noopener noreferrer",className:x,title:t.name},m,{href:t.url,onClick:function(n){return e.handlePreview(t,n)}}),t.name),E]:[r.createElement("span",{key:"view",className:x,onClick:function(n){return e.handlePreview(t,n)},title:t.name},t.name),E],C=c?r.createElement("a",{href:t.url||t.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:t.url||t.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(n){return e.handlePreview(t,n)},title:p.previewFile},r.createElement(Q.a,{type:"eye-o"})):null,D="picture-card"===l&&"uploading"!==t.status&&r.createElement("span",{className:"".concat(g,"-list-item-actions")},C,"done"===t.status&&w,b);v=t.response&&"string"==typeof t.response?t.response:t.error&&t.error.statusText||p.uploadError;var O=r.createElement("span",null,a,S),A=r.createElement("div",{className:y},r.createElement("div",{className:"".concat(g,"-list-item-info")},O),D,r.createElement(G.a,{transitionName:"fade",component:""},i)),k=H()(oe({},"".concat(g,"-list-picture-card-container"),"picture-card"===l));return r.createElement("div",{key:t.uid,className:k},"error"===t.status?r.createElement(ee.a,{title:v},A):r.createElement("span",null,A))})),y=H()((oe(n={},"".concat(g,"-list"),!0),oe(n,"".concat(g,"-list-").concat(l),!0),n)),m="picture-card"===l?"animate-inline":"animate";return r.createElement(G.a,{transitionName:"".concat(g,"-").concat(m),component:"div",className:y},v)},e}return t=i,(n=[{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.listType,r=t.items,o=t.previewFile;"picture"!==n&&"picture-card"!==n||(r||[]).forEach((function(t){"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(t.originFileObj instanceof File||t.originFileObj instanceof Blob)&&void 0===t.thumbUrl&&(t.thumbUrl="",o&&o(t.originFileObj).then((function(n){t.thumbUrl=n||"",e.forceUpdate()})))}))}},{key:"render",value:function(){return r.createElement(ne.a,null,this.renderUploadList)}}])&&ue(t.prototype,n),i}(r.Component);fe.defaultProps={listType:"text",progressAttr:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:function(e){return new Promise((function(t){if(Z(e.type)){var n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(200,"px; height: ").concat(200,"px; z-index: 9999; display: none;"),document.body.appendChild(n);var r=n.getContext("2d"),o=new Image;o.onload=function(){var e=o.width,i=o.height,a=200,u=200,s=0,l=0;e<i?l=-((u=i*(200/e))-a)/2:s=-((a=e*(200/i))-u)/2,r.drawImage(o,s,l,a,u);var c=n.toDataURL();document.body.removeChild(n),t(c)},o.src=window.URL.createObjectURL(e)}else t("")}))}};var de=n("YMnH"),pe=n("ZvpZ"),he=n("6CfX");function ge(e){return(ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(){return(ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function be(e,t){return(be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function we(e,t){return!t||"object"!==ge(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&be(e,t)}(a,e);var t,n,o,i=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ee(e);if(t){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return we(this,n)}}(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).saveUpload=function(e){t.upload=e},t.onStart=function(e){var n=t.state.fileList,r=Y(e);r.status="uploading";var o=n.concat(),i=q()(o,(function(e){return e.uid===r.uid}));-1===i?o.push(r):o[i]=r,t.onChange({file:r,fileList:o}),window.File&&!Object({NODE_ENV:"production",PUBLIC_URL:"/react/build/",REACT_URL:"production.min"}).TEST_IE||t.autoUpdateProgress(0,r)},t.onSuccess=function(e,n,r){t.clearProgressTimer();try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}var o=t.state.fileList,i=X(n,o);i&&(i.status="done",i.response=e,i.xhr=r,t.onChange({file:ye({},i),fileList:o}))},t.onProgress=function(e,n){var r=t.state.fileList,o=X(n,r);o&&(o.percent=e.percent,t.onChange({event:e,file:ye({},o),fileList:r}))},t.onError=function(e,n,r){t.clearProgressTimer();var o=t.state.fileList,i=X(r,o);i&&(i.error=e,i.response=n,i.status="error",t.onChange({file:ye({},i),fileList:o}))},t.handleRemove=function(e){var n=t.props.onRemove,r=t.state.fileList;Promise.resolve("function"==typeof n?n(e):n).then((function(n){if(!1!==n){var o=function(e,t){var n=void 0!==e.uid?"uid":"name",r=t.filter((function(t){return t[n]!==e[n]}));return r.length===t.length?null:r}(e,r);o&&(e.status="removed",t.upload&&t.upload.abort(e),t.onChange({file:e,fileList:o}))}}))},t.onChange=function(e){"fileList"in t.props||t.setState({fileList:e.fileList});var n=t.props.onChange;n&&n(e)},t.onFileDrop=function(e){t.setState({dragState:e.type})},t.beforeUpload=function(e,n){var r=t.props.beforeUpload,o=t.state.fileList;if(!r)return!0;var i=r(e,n);return!1===i?(t.onChange({file:e,fileList:V()(o.concat(n.map(Y)),(function(e){return e.uid}))}),!1):!i||!i.then||i},t.renderUploadList=function(e){var n=t.props,o=n.showUploadList,i=n.listType,a=n.onPreview,u=n.onDownload,s=n.previewFile,l=n.disabled,c=n.locale,f=o.showRemoveIcon,d=o.showPreviewIcon,p=o.showDownloadIcon,h=t.state.fileList;return r.createElement(fe,{listType:i,items:h,previewFile:s,onPreview:a,onDownload:u,onRemove:t.handleRemove,showRemoveIcon:!l&&f,showPreviewIcon:d,showDownloadIcon:p,locale:ye(ye({},e),c)})},t.renderUpload=function(e){var n,o=e.getPrefixCls,i=t.props,a=i.prefixCls,u=i.className,s=i.showUploadList,l=i.listType,c=i.type,f=i.disabled,d=i.children,p=i.style,h=t.state,g=h.fileList,v=h.dragState,y=o("upload",a),m=ye(ye({onStart:t.onStart,onError:t.onError,onProgress:t.onProgress,onSuccess:t.onSuccess},t.props),{prefixCls:y,beforeUpload:t.beforeUpload});delete m.className,delete m.style,d&&!f||delete m.id;var b=s?r.createElement(de.a,{componentName:"Upload",defaultLocale:pe.a.Upload},t.renderUploadList):null;if("drag"===c){var w,E=H()(y,(ve(w={},"".concat(y,"-drag"),!0),ve(w,"".concat(y,"-drag-uploading"),g.some((function(e){return"uploading"===e.status}))),ve(w,"".concat(y,"-drag-hover"),"dragover"===v),ve(w,"".concat(y,"-disabled"),f),w),u);return r.createElement("span",null,r.createElement("div",{className:E,onDrop:t.onFileDrop,onDragOver:t.onFileDrop,onDragLeave:t.onFileDrop,style:p},r.createElement(z,ye({},m,{ref:t.saveUpload,className:"".concat(y,"-btn")}),r.createElement("div",{className:"".concat(y,"-drag-container")},d))),b)}var x=H()(y,(ve(n={},"".concat(y,"-select"),!0),ve(n,"".concat(y,"-select-").concat(l),!0),ve(n,"".concat(y,"-disabled"),f),n)),S=r.createElement("div",{className:x,style:d?void 0:{display:"none"}},r.createElement(z,ye({},m,{ref:t.saveUpload})));return"picture-card"===l?r.createElement("span",{className:H()(u,"".concat(y,"-picture-card-wrapper"))},b,S):r.createElement("span",{className:u},S,b)},t.state={fileList:e.fileList||e.defaultFileList||[],dragState:"drop"},Object(he.a)("fileList"in e||!("value"in e),"Upload","`value` is not validate prop, do you mean `fileList`?"),t}return t=a,o=[{key:"getDerivedStateFromProps",value:function(e){return"fileList"in e?{fileList:e.fileList||[]}:null}}],(n=[{key:"componentWillUnmount",value:function(){this.clearProgressTimer()}},{key:"clearProgressTimer",value:function(){clearInterval(this.progressTimer)}},{key:"autoUpdateProgress",value:function(e,t){var n,r=this,o=(n=.1,function(e){var t=e;return t>=.98||(t+=n,(n-=.01)<.001&&(n=.001)),t}),i=0;this.clearProgressTimer(),this.progressTimer=setInterval((function(){i=o(i),r.onProgress({percent:100*i},t)}),200)}},{key:"render",value:function(){return r.createElement(ne.a,null,this.renderUpload)}}])&&me(t.prototype,n),o&&me(t,o),a}(r.Component);xe.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:function(){return!0},showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0},Object(i.polyfill)(xe);var Se=xe;function Ce(e){return(Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function De(){return(De=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ke(e,t){return(ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Be(e,t){return!t||"object"!==Ce(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _e(e){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ke(e,t)}(i,e);var t,n,o=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Be(this,n)}}(i);function i(){return Oe(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.style,n=e.height,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["style","height"]);return r.createElement(Se,De({},o,{type:"drag",style:De(De({},t),{height:n})}))}}])&&Ae(t.prototype,n),i}(r.Component);Se.Dragger=Fe,t.a=Se},AOa7:function(e,t,n){var r=n("25NQ");"string"==typeof r&&(r=[[e.i,r,""]]);n("aET+")(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},BfIq:function(e,t,n){e.exports=n("k2Gq")},CZoQ:function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},DJ9E:function(e,t,n){"use strict";var r=n("cQZY"),o=n("Dm96"),i=n("Q3sF"),a=n("LhOv"),u=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in u||o(e,"flags")||!i(u,e)?t:r(a,e)}},DZo9:function(e,t,n){"use strict";n("cIOH"),n("JGo8"),n("MXD1"),n("5Dmo")},Exd5:function(e,t,n){"use strict";var r=n("Bvq2"),o=n("39uu"),i=n("/EgQ"),a=n("ZmPk"),u=Object.isExtensible,s=r((function(){u(1)}));e.exports=s||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!==i(e))&&(!u||u(e))}:u},Glsh:function(e,t,n){},HU8g:function(e,t,n){e.exports=n("XDk8")},IwPY:function(e,t){},JGo8:function(e,t,n){var r=n("MJAS");"string"==typeof r&&(r=[[e.i,r,""]]);n("aET+")(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},KJBA:function(e,t,n){"use strict";n("vkdm"),n("yj5I"),n("pZ5k");var r=n("wY6U");e.exports=r("String","replaceAll")},KwMD:function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},LGYb:function(e,t,n){var r=n("1hJj"),o=n("jbM+"),i=n("Xt/L"),a=n("xYSL"),u=n("dQpi"),s=n("rEGp");e.exports=function(e,t,n){var l=-1,c=o,f=e.length,d=!0,p=[],h=p;if(n)d=!1,c=i;else if(f>=200){var g=t?null:u(e);if(g)return s(g);d=!1,c=a,h=new r}else h=t?[]:p;e:for(;++l<f;){var v=e[l],y=t?t(v):v;if(v=n||0!==v?v:0,d&&y==y){for(var m=h.length;m--;)if(h[m]===y)continue e;t&&h.push(y),p.push(v)}else c(h,y,n)||(h!==p&&h.push(y),p.push(v))}return p}},LhOv:function(e,t,n){"use strict";var r=n("b42z");e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},MJAS:function(e,t,n){(t=n("JPst")(!1)).push([e.i,"/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-upload {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n font-feature-settings: 'tnum';\n outline: 0;\n}\n.ant-upload p {\n margin: 0;\n}\n.ant-upload-btn {\n display: block;\n width: 100%;\n outline: none;\n}\n.ant-upload input[type='file'] {\n cursor: pointer;\n}\n.ant-upload.ant-upload-select {\n display: inline-block;\n}\n.ant-upload.ant-upload-disabled {\n cursor: not-allowed;\n}\n.ant-upload.ant-upload-select-picture-card {\n display: table;\n float: left;\n width: 104px;\n height: 104px;\n margin-right: 8px;\n margin-bottom: 8px;\n text-align: center;\n vertical-align: top;\n background-color: #fafafa;\n border: 1px dashed #d9d9d9;\n border-radius: 4px;\n cursor: pointer;\n transition: border-color 0.3s ease;\n}\n.ant-upload.ant-upload-select-picture-card > .ant-upload {\n display: table-cell;\n width: 100%;\n height: 100%;\n padding: 8px;\n text-align: center;\n vertical-align: middle;\n}\n.ant-upload.ant-upload-select-picture-card:hover {\n border-color: #466aff;\n}\n.ant-upload.ant-upload-drag {\n position: relative;\n width: 100%;\n height: 100%;\n text-align: center;\n background: #fafafa;\n border: 1px dashed #d9d9d9;\n border-radius: 4px;\n cursor: pointer;\n transition: border-color 0.3s;\n}\n.ant-upload.ant-upload-drag .ant-upload {\n padding: 16px 0;\n}\n.ant-upload.ant-upload-drag.ant-upload-drag-hover:not(.ant-upload-disabled) {\n border-color: #304cd9;\n}\n.ant-upload.ant-upload-drag.ant-upload-disabled {\n cursor: not-allowed;\n}\n.ant-upload.ant-upload-drag .ant-upload-btn {\n display: table;\n height: 100%;\n}\n.ant-upload.ant-upload-drag .ant-upload-drag-container {\n display: table-cell;\n vertical-align: middle;\n}\n.ant-upload.ant-upload-drag:not(.ant-upload-disabled):hover {\n border-color: #6e90ff;\n}\n.ant-upload.ant-upload-drag p.ant-upload-drag-icon {\n margin-bottom: 20px;\n}\n.ant-upload.ant-upload-drag p.ant-upload-drag-icon .anticon {\n color: #6e90ff;\n font-size: 48px;\n}\n.ant-upload.ant-upload-drag p.ant-upload-text {\n margin: 0 0 4px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 16px;\n}\n.ant-upload.ant-upload-drag p.ant-upload-hint {\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n.ant-upload.ant-upload-drag .anticon-plus {\n color: rgba(0, 0, 0, 0.25);\n font-size: 30px;\n transition: all 0.3s;\n}\n.ant-upload.ant-upload-drag .anticon-plus:hover {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-upload.ant-upload-drag:hover .anticon-plus {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-upload-picture-card-wrapper {\n zoom: 1;\n display: inline-block;\n width: 100%;\n}\n.ant-upload-picture-card-wrapper::before,\n.ant-upload-picture-card-wrapper::after {\n display: table;\n content: '';\n}\n.ant-upload-picture-card-wrapper::after {\n clear: both;\n}\n.ant-upload-list {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n font-feature-settings: 'tnum';\n zoom: 1;\n}\n.ant-upload-list::before,\n.ant-upload-list::after {\n display: table;\n content: '';\n}\n.ant-upload-list::after {\n clear: both;\n}\n.ant-upload-list-item-list-type-text:hover .ant-upload-list-item-name-icon-count-1 {\n padding-right: 14px;\n}\n.ant-upload-list-item-list-type-text:hover .ant-upload-list-item-name-icon-count-2 {\n padding-right: 28px;\n}\n.ant-upload-list-item {\n position: relative;\n height: 22px;\n margin-top: 8px;\n font-size: 14px;\n}\n.ant-upload-list-item-name {\n display: inline-block;\n width: 100%;\n padding-left: 22px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-upload-list-item-name-icon-count-1 {\n padding-right: 14px;\n}\n.ant-upload-list-item-card-actions {\n position: absolute;\n right: 0;\n opacity: 0;\n}\n.ant-upload-list-item-card-actions.picture {\n top: 25px;\n line-height: 1;\n opacity: 1;\n}\n.ant-upload-list-item-card-actions .anticon {\n padding-right: 6px;\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-upload-list-item-info {\n height: 100%;\n padding: 0 12px 0 4px;\n transition: background-color 0.3s;\n}\n.ant-upload-list-item-info > span {\n display: block;\n width: 100%;\n height: 100%;\n}\n.ant-upload-list-item-info .anticon-loading,\n.ant-upload-list-item-info .anticon-paper-clip {\n position: absolute;\n top: 5px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n.ant-upload-list-item .anticon-close {\n display: inline-block;\n font-size: 12px;\n font-size: 10px \\9;\n transform: scale(0.83333333) rotate(0deg);\n position: absolute;\n top: 6px;\n right: 4px;\n color: rgba(0, 0, 0, 0.45);\n line-height: 0;\n cursor: pointer;\n opacity: 0;\n transition: all 0.3s;\n}\n:root .ant-upload-list-item .anticon-close {\n font-size: 12px;\n}\n.ant-upload-list-item .anticon-close:hover {\n color: rgba(0, 0, 0, 0.65);\n}\n.ant-upload-list-item:hover .ant-upload-list-item-info {\n background-color: #f0f5ff;\n}\n.ant-upload-list-item:hover .anticon-close {\n opacity: 1;\n}\n.ant-upload-list-item:hover .ant-upload-list-item-card-actions {\n opacity: 1;\n}\n.ant-upload-list-item-error,\n.ant-upload-list-item-error .anticon-paper-clip,\n.ant-upload-list-item-error .ant-upload-list-item-name {\n color: #f5222d;\n}\n.ant-upload-list-item-error .ant-upload-list-item-card-actions {\n opacity: 1;\n}\n.ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon {\n color: #f5222d;\n}\n.ant-upload-list-item-progress {\n position: absolute;\n bottom: -12px;\n width: 100%;\n padding-left: 26px;\n font-size: 14px;\n line-height: 0;\n}\n.ant-upload-list-picture .ant-upload-list-item,\n.ant-upload-list-picture-card .ant-upload-list-item {\n position: relative;\n height: 66px;\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n.ant-upload-list-picture .ant-upload-list-item:hover,\n.ant-upload-list-picture-card .ant-upload-list-item:hover {\n background: transparent;\n}\n.ant-upload-list-picture .ant-upload-list-item-error,\n.ant-upload-list-picture-card .ant-upload-list-item-error {\n border-color: #f5222d;\n}\n.ant-upload-list-picture .ant-upload-list-item-info,\n.ant-upload-list-picture-card .ant-upload-list-item-info {\n padding: 0;\n}\n.ant-upload-list-picture .ant-upload-list-item:hover .ant-upload-list-item-info,\n.ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info {\n background: transparent;\n}\n.ant-upload-list-picture .ant-upload-list-item-uploading,\n.ant-upload-list-picture-card .ant-upload-list-item-uploading {\n border-style: dashed;\n}\n.ant-upload-list-picture .ant-upload-list-item-thumbnail,\n.ant-upload-list-picture-card .ant-upload-list-item-thumbnail {\n position: absolute;\n top: 8px;\n left: 8px;\n width: 48px;\n height: 48px;\n font-size: 26px;\n line-height: 54px;\n text-align: center;\n opacity: 0.8;\n}\n.ant-upload-list-picture .ant-upload-list-item-icon,\n.ant-upload-list-picture-card .ant-upload-list-item-icon {\n position: absolute;\n top: 50%;\n left: 50%;\n font-size: 26px;\n transform: translate(-50%, -50%);\n}\n.ant-upload-list-picture .ant-upload-list-item-image,\n.ant-upload-list-picture-card .ant-upload-list-item-image {\n max-width: 100%;\n}\n.ant-upload-list-picture .ant-upload-list-item-thumbnail img,\n.ant-upload-list-picture-card .ant-upload-list-item-thumbnail img {\n display: block;\n width: 48px;\n height: 48px;\n overflow: hidden;\n}\n.ant-upload-list-picture .ant-upload-list-item-name,\n.ant-upload-list-picture-card .ant-upload-list-item-name {\n display: inline-block;\n box-sizing: border-box;\n max-width: 100%;\n margin: 0 0 0 8px;\n padding-right: 8px;\n padding-left: 48px;\n overflow: hidden;\n line-height: 44px;\n white-space: nowrap;\n text-overflow: ellipsis;\n transition: all 0.3s;\n}\n.ant-upload-list-picture .ant-upload-list-item-name-icon-count-1,\n.ant-upload-list-picture-card .ant-upload-list-item-name-icon-count-1 {\n padding-right: 18px;\n}\n.ant-upload-list-picture .ant-upload-list-item-name-icon-count-2,\n.ant-upload-list-picture-card .ant-upload-list-item-name-icon-count-2 {\n padding-right: 36px;\n}\n.ant-upload-list-picture .ant-upload-list-item-uploading .ant-upload-list-item-name,\n.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-name {\n line-height: 28px;\n}\n.ant-upload-list-picture .ant-upload-list-item-progress,\n.ant-upload-list-picture-card .ant-upload-list-item-progress {\n bottom: 14px;\n width: calc(100% - 24px);\n margin-top: 0;\n padding-left: 56px;\n}\n.ant-upload-list-picture .anticon-close,\n.ant-upload-list-picture-card .anticon-close {\n position: absolute;\n top: 8px;\n right: 8px;\n line-height: 1;\n opacity: 1;\n}\n.ant-upload-list-picture-card.ant-upload-list::after {\n display: none;\n}\n.ant-upload-list-picture-card-container {\n float: left;\n width: 104px;\n height: 104px;\n margin: 0 8px 8px 0;\n}\n.ant-upload-list-picture-card .ant-upload-list-item {\n float: left;\n width: 104px;\n height: 104px;\n margin: 0 8px 8px 0;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-info {\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-info::before {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: all 0.3s;\n content: ' ';\n}\n.ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info::before {\n opacity: 1;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-actions {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 10;\n white-space: nowrap;\n transform: translate(-50%, -50%);\n opacity: 0;\n transition: all 0.3s;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye-o,\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download,\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete {\n z-index: 10;\n width: 16px;\n margin: 0 4px;\n color: rgba(255, 255, 255, 0.85);\n font-size: 16px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye-o:hover,\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download:hover,\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete:hover {\n color: #fff;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-info:hover + .ant-upload-list-item-actions,\n.ant-upload-list-picture-card .ant-upload-list-item-actions:hover {\n opacity: 1;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-thumbnail,\n.ant-upload-list-picture-card .ant-upload-list-item-thumbnail img {\n position: static;\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-name {\n display: none;\n margin: 8px 0 0;\n padding: 0;\n line-height: 1.5;\n text-align: center;\n}\n.ant-upload-list-picture-card .anticon-picture + .ant-upload-list-item-name {\n position: absolute;\n bottom: 10px;\n display: block;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-uploading.ant-upload-list-item {\n background-color: #fafafa;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info {\n height: auto;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info::before,\n.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-eye-o,\n.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-delete {\n display: none;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-uploading-text {\n margin-top: 18px;\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-upload-list-picture-card .ant-upload-list-item-progress {\n bottom: 32px;\n padding-left: 0;\n}\n.ant-upload-list .ant-upload-success-icon {\n color: #52c41a;\n font-weight: bold;\n}\n.ant-upload-list .ant-upload-animate-enter,\n.ant-upload-list .ant-upload-animate-leave,\n.ant-upload-list .ant-upload-animate-inline-enter,\n.ant-upload-list .ant-upload-animate-inline-leave {\n animation-duration: 0.3s;\n animation-fill-mode: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-upload-list .ant-upload-animate-enter {\n animation-name: uploadAnimateIn;\n}\n.ant-upload-list .ant-upload-animate-leave {\n animation-name: uploadAnimateOut;\n}\n.ant-upload-list .ant-upload-animate-inline-enter {\n animation-name: uploadAnimateInlineIn;\n}\n.ant-upload-list .ant-upload-animate-inline-leave {\n animation-name: uploadAnimateInlineOut;\n}\n@keyframes uploadAnimateIn {\n from {\n height: 0;\n margin: 0;\n padding: 0;\n opacity: 0;\n }\n}\n@keyframes uploadAnimateOut {\n to {\n height: 0;\n margin: 0;\n padding: 0;\n opacity: 0;\n }\n}\n@keyframes uploadAnimateInlineIn {\n from {\n width: 0;\n height: 0;\n margin: 0;\n padding: 0;\n opacity: 0;\n }\n}\n@keyframes uploadAnimateInlineOut {\n to {\n width: 0;\n height: 0;\n margin: 0;\n padding: 0;\n opacity: 0;\n }\n}\n",""]),e.exports=t},"N+4l":function(e,t,n){"use strict";var r=n("Q3sF"),o=n("KJBA"),i=String.prototype;e.exports=function(e){var t=e.replaceAll;return"string"==typeof e||e===i||r(i,e)&&t===i.replaceAll?o:t}},NrgU:function(e,t,n){"use strict";var r=n("Bvq2"),o=n("A2Ma"),i=n("wbIY"),a=n("cEKj"),u=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),n.delete("a",2),n.delete("b",void 0),a&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(a||!i)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[u]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host}))},OG05:function(e,t,n){"use strict";var r=n("pevS"),o=n("hVCs");r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},Qub4:function(e,t,n){"use strict";var r=n("Bvq2");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},"R/W3":function(e,t,n){var r=n("KwMD"),o=n("2ajD"),i=n("CZoQ");e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},"S/P8":function(e,t,n){"use strict";var r=n("wbIY"),o=n("Bvq2"),i=n("zhhU"),a=n("V3kF"),u=n("oBZR"),s=n("pCEo"),l=i(n("cEPT").f),c=i([].push),f=r&&o((function(){var e=Object.create(null);return e[2]=2,!l(e,2)})),d=function(e){return function(t){for(var n,o=s(t),i=u(o),d=f&&null===a(o),p=i.length,h=0,g=[];p>h;)n=i[h++],r&&!(d?n in o:l(o,n))||c(g,e?[n,o[n]]:o[n]);return g}};e.exports={entries:d(!0),values:d(!1)}},STz3:function(e,t,n){e.exports=n("/LDT")},Se0y:function(e,t,n){"use strict";n("efAe");var r=n("sP2K");e.exports=r},Sxd8:function(e,t,n){var r=n("ZCgT");e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},UfWW:function(e,t,n){var r=n("KwMD"),o=n("ut/Y"),i=n("Sxd8"),a=Math.max;e.exports=function(e,t,n){var u=null==e?0:e.length;if(!u)return-1;var s=null==n?0:i(n);return s<0&&(s=a(u+s,0)),r(e,o(t,3),s)}},Vg4E:function(e,t,n){},X25t:function(e,t,n){e.exports=n("59z6")},XDk8:function(e,t,n){"use strict";var r=n("a1FM");n("UUWy"),e.exports=r},"Xt/L":function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},ZCgT:function(e,t,n){var r=n("tLB3");e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},ZZQp:function(e,t,n){"use strict";var r=n("pevS"),o=n("zhhU"),i=n("bpon"),a=n("39uu"),u=n("Dm96"),s=n("QYBB").f,l=n("DPDV"),c=n("jhEP"),f=n("Exd5"),d=n("PoCt"),p=n("Qub4"),h=!1,g=d("meta"),v=0,y=function(e){s(e,g,{value:{objectID:"O"+v++,weakData:{}}})},m=e.exports={enable:function(){m.enable=function(){},h=!0;var e=l.f,t=o([].splice),n={};n[g]=1,e(n).length&&(l.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===g){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!u(e,g)){if(!f(e))return"F";if(!t)return"E";y(e)}return e[g].objectID},getWeakData:function(e,t){if(!u(e,g)){if(!f(e))return!0;if(!t)return!1;y(e)}return e[g].weakData},onFreeze:function(e){return p&&h&&f(e)&&!u(e,g)&&y(e),e}};i[g]=!0},ZmPk:function(e,t,n){"use strict";var r=n("Bvq2");e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},a1FM:function(e,t,n){"use strict";n("4sNH"),n("IwPY"),n("54hm"),n("tKpz");var r=n("dktu");e.exports=r.URLSearchParams},bE4q:function(e,t,n){"use strict";var r=n("cDcd"),o=n("17x9"),i=n("eHJ2"),a=n.n(i),u=n("Zm9Q"),s=n("BGR+"),l=n("XBQK"),c=n("CtXQ"),f=n("H84U");function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(i,e);var t,n,o=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}(i);function i(){var e;return h(this,i),(e=o.apply(this,arguments)).renderBreadcrumbItem=function(t){var n,o=t.getPrefixCls,i=e.props,a=i.prefixCls,u=i.separator,l=i.children,c=b(i,["prefixCls","separator","children"]),f=o("breadcrumb",a);return n="href"in e.props?r.createElement("a",p({className:"".concat(f,"-link")},Object(s.a)(c,["overlay"])),l):r.createElement("span",p({className:"".concat(f,"-link")},Object(s.a)(c,["overlay"])),l),n=e.renderBreadcrumbNode(n,f),l?r.createElement("span",null,n,u&&""!==u&&r.createElement("span",{className:"".concat(f,"-separator")},u)):null},e.renderBreadcrumbNode=function(t,n){var o=e.props.overlay;return o?r.createElement(l.a,{overlay:o,placement:"bottomCenter"},r.createElement("span",{className:"".concat(n,"-overlay-link")},t,r.createElement(c.a,{type:"down"}))):t},e}return t=i,(n=[{key:"render",value:function(){return r.createElement(f.a,null,this.renderBreadcrumbItem)}}])&&g(t.prototype,n),i}(r.Component);w.__ANT_BREADCRUMB_ITEM=!0,w.defaultProps={separator:"/"},w.propTypes={prefixCls:o.string,separator:o.oneOfType([o.string,o.element]),href:o.string};var E=n("BvKs"),x=n("6CfX");function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function D(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function P(e,t,n,o){var i=n.indexOf(e)===n.length-1,a=function(e,t){if(!e.breadcrumbName)return null;var n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(":(".concat(n,")"),"g"),(function(e,n){return t[n]||e}))}(e,t);return i?r.createElement("span",null,a):r.createElement("a",{href:"#/".concat(o.join("/"))},a)}function j(e){return Object(u.a)(e).map((function(e){return r.isValidElement(e)&&e.type===r.Fragment?e.props.children:e}))}var N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(i,e);var t,n,o=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}(i);function i(){var e;return A(this,i),(e=o.apply(this,arguments)).getPath=function(e,t){return e=(e||"").replace(/^\//,""),Object.keys(t).forEach((function(n){e=e.replace(":".concat(n),t[n])})),e},e.addChildPath=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=D(t),i=e.getPath(n,r);return i&&o.push(i),o},e.genForRoutes=function(t){var n=t.routes,o=void 0===n?[]:n,i=t.params,a=void 0===i?{}:i,u=t.separator,s=t.itemRender,l=void 0===s?P:s,c=[];return o.map((function(t){var n=e.getPath(t.path,a);n&&c.push(n);var i=null;return t.children&&t.children.length&&(i=r.createElement(E.a,null,t.children.map((function(t){return r.createElement(E.a.Item,{key:t.breadcrumbName||t.path},l(t,a,o,e.addChildPath(c,t.path,a)))})))),r.createElement(w,{overlay:i,separator:u,key:t.breadcrumbName||n},l(t,a,o,c))}))},e.renderBreadcrumb=function(t){var n,o=t.getPrefixCls,i=e.props,u=i.prefixCls,l=i.separator,c=i.style,f=i.className,d=i.routes,p=i.children,h=T(i,["prefixCls","separator","style","className","routes","children"]),g=o("breadcrumb",u);return d&&d.length>0?n=e.genForRoutes(e.props):p&&(n=r.Children.map(j(p),(function(e,t){return e?(Object(x.a)(e.type&&(!0===e.type.__ANT_BREADCRUMB_ITEM||!0===e.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),r.cloneElement(e,{separator:l,key:t})):e}))),r.createElement("div",C({className:a()(f,g),style:c},Object(s.a)(h,["itemRender","params"])),n)},e}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this.props;Object(x.a)(!("linkRender"in e||"nameRender"in e),"Breadcrumb","`linkRender` and `nameRender` are removed, please use `itemRender` instead, see: https://u.ant.design/item-render.")}},{key:"render",value:function(){return r.createElement(f.a,null,this.renderBreadcrumb)}}])&&k(t.prototype,n),i}(r.Component);function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function z(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}N.defaultProps={separator:"/"},N.propTypes={prefixCls:o.string,separator:o.node,routes:o.array};var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(i,e);var t,n,o=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=U(e);if(t){var o=U(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return z(this,n)}}(i);function i(){var e;return R(this,i),(e=o.apply(this,arguments)).renderSeparator=function(t){var n=t.getPrefixCls,o=e.props.children,i=n("breadcrumb");return r.createElement("span",{className:"".concat(i,"-separator")},o||"/")},e}return t=i,(n=[{key:"render",value:function(){return r.createElement(f.a,null,this.renderSeparator)}}])&&L(t.prototype,n),i}(r.Component);H.__ANT_BREADCRUMB_SEPARATOR=!0,N.Item=w,N.Separator=H,t.a=N},cYy4:function(e,t,n){"use strict";n("kQON"),n("25vf");var r=n("pevS"),o=n("PrqM"),i=n("+zDa"),a=n("mIMY"),u=n("cQZY"),s=n("zhhU"),l=n("wbIY"),c=n("NrgU"),f=n("/b46"),d=n("IpbS"),p=n("vEpQ"),h=n("KHTo"),g=n("mdol"),v=n("L1rz"),y=n("X32N"),m=n("+y2l"),b=n("Dm96"),w=n("ZBQp"),E=n("j5XY"),x=n("b42z"),S=n("39uu"),C=n("jBKu"),D=n("SJYm"),O=n("LGyv"),A=n("2fOL"),k=n("C3ug"),B=n("3bWX"),_=n("+GjA"),F=n("A2Ma"),T=n("reVg"),P=F("iterator"),j=v.set,N=v.getterFor("URLSearchParams"),I=v.getterFor("URLSearchParamsIterator"),R=i("fetch"),L=i("Request"),M=i("Headers"),z=L&&L.prototype,U=M&&M.prototype,H=o.TypeError,$=o.encodeURIComponent,V=String.fromCharCode,W=a("String","fromCodePoint"),q=parseInt,G=s("".charAt),K=s([].join),Y=s([].push),X=s("".replace),Z=s([].shift),J=s([].splice),Q=s("".split),ee=s("".slice),te=s(/./.exec),ne=/\+/g,re=/^[0-9a-f]+$/i,oe=function(e,t){var n=ee(e,t,t+2);return te(re,n)?q(n,16):NaN},ie=function(e){for(var t=0,n=128;n>0&&0!=(e&n);n>>=1)t++;return t},ae=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ue=function(e){for(var t=(e=X(e,ne," ")).length,n="",r=0;r<t;){var o=G(e,r);if("%"===o){if("%"===G(e,r+1)||r+3>t){n+="%",r++;continue}var i=oe(e,r+1);if(i!=i){n+=o,r++;continue}r+=2;var a=ie(i);if(0===a)o=V(i);else{if(1===a||a>4){n+="<22>",r++;continue}for(var u=[i],s=1;s<a&&!(3+ ++r>t||"%"!==G(e,r));){var l=oe(e,r+1);if(l!=l){r+=3;break}if(l>191||l<128)break;Y(u,l),r+=2,s++}if(u.length!==a){n+="<22>";continue}var c=ae(u);null===c?n+="<22>":o=W(c)}}n+=o,r++}return n},se=/[!'()~]|%20/g,le={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ce=function(e){return le[e]},fe=function(e){return X($(e),se,ce)},de=g((function(e,t){j(this,{type:"URLSearchParamsIterator",target:N(e).entries,index:0,kind:t})}),"URLSearchParams",(function(){var e=I(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,B(void 0,!0);var r=t[n];switch(e.kind){case"keys":return B(r.key,!1);case"values":return B(r.value,!1)}return B([r.key,r.value],!1)}),!0),pe=function(e){this.entries=[],this.url=null,void 0!==e&&(S(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===G(e,0)?ee(e,1):e:C(e)))};pe.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,i,a,s,l=this.entries,c=k(e);if(c)for(n=(t=A(e,c)).next;!(r=u(n,t)).done;){if(i=(o=A(x(r.value))).next,(a=u(i,o)).done||(s=u(i,o)).done||!u(i,o).done)throw new H("Expected sequence with length 2");Y(l,{key:C(a.value),value:C(s.value)})}else for(var f in e)b(e,f)&&Y(l,{key:f,value:C(e[f])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,o=Q(e,"&"),i=0;i<o.length;)(t=o[i++]).length&&(n=Q(t,"="),Y(r,{key:ue(Z(n)),value:ue(K(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],Y(n,fe(e.key)+"="+fe(e.value));return K(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var he=function(){y(this,ge);var e=arguments.length>0?arguments[0]:void 0,t=j(this,new pe(e));l||(this.size=t.entries.length)},ge=he.prototype;if(p(ge,{append:function(e,t){var n=N(this);_(arguments.length,2),Y(n.entries,{key:C(e),value:C(t)}),l||this.length++,n.updateURL()},delete:function(e){for(var t=N(this),n=_(arguments.length,1),r=t.entries,o=C(e),i=n<2?void 0:arguments[1],a=void 0===i?i:C(i),u=0;u<r.length;){var s=r[u];if(s.key!==o||void 0!==a&&s.value!==a)u++;else if(J(r,u,1),void 0!==a)break}l||(this.size=r.length),t.updateURL()},get:function(e){var t=N(this).entries;_(arguments.length,1);for(var n=C(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=N(this).entries;_(arguments.length,1);for(var n=C(e),r=[],o=0;o<t.length;o++)t[o].key===n&&Y(r,t[o].value);return r},has:function(e){for(var t=N(this).entries,n=_(arguments.length,1),r=C(e),o=n<2?void 0:arguments[1],i=void 0===o?o:C(o),a=0;a<t.length;){var u=t[a++];if(u.key===r&&(void 0===i||u.value===i))return!0}return!1},set:function(e,t){var n=N(this);_(arguments.length,1);for(var r,o=n.entries,i=!1,a=C(e),u=C(t),s=0;s<o.length;s++)(r=o[s]).key===a&&(i?J(o,s--,1):(i=!0,r.value=u));i||Y(o,{key:a,value:u}),l||(this.size=o.length),n.updateURL()},sort:function(){var e=N(this);T(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=N(this).entries,r=w(e,arguments.length>1?arguments[1]:void 0),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new de(this,"keys")},values:function(){return new de(this,"values")},entries:function(){return new de(this,"entries")}},{enumerable:!0}),f(ge,P,ge.entries,{name:"entries"}),f(ge,"toString",(function(){return N(this).serialize()}),{enumerable:!0}),l&&d(ge,"size",{get:function(){return N(this).entries.length},configurable:!0,enumerable:!0}),h(he,"URLSearchParams"),r({global:!0,constructor:!0,forced:!c},{URLSearchParams:he}),!c&&m(M)){var ve=s(U.has),ye=s(U.set),me=function(e){if(S(e)){var t,n=e.body;if("URLSearchParams"===E(n))return t=e.headers?new M(e.headers):new M,ve(t,"content-type")||ye(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),D(e,{body:O(0,C(n)),headers:O(0,t)})}return e};if(m(R)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return R(e,arguments.length>1?me(arguments[1]):{})}}),m(L)){var be=function(e){return y(this,z),new L(e,arguments.length>1?me(arguments[1]):{})};z.constructor=be,be.prototype=z,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:be})}}e.exports={URLSearchParams:he,getState:N}},dQpi:function(e,t,n){var r=n("yGk4"),o=n("vN+2"),i=n("rEGp"),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},eXKH:function(e,t,n){},efAe:function(e,t,n){"use strict";n("pZ5k")},ex8r:function(e,t,n){},gcyI:function(e,t,n){"use strict";var r=n("N+4l");e.exports=r},hVCs:function(e,t,n){"use strict";var r=n("oLk2"),o=n("pCEo"),i=n("x9K+"),a=n("x08Q"),u=n("n2Hk"),s=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,f=u("lastIndexOf"),d=c||!f;e.exports=d?function(e){if(c)return r(l,this,arguments)||0;var t=o(this),n=a(t);if(0===n)return-1;var u=n-1;for(arguments.length>1&&(u=s(u,i(arguments[1]))),u<0&&(u=n+u);u>=0;u--)if(u in t&&t[u]===e)return u||0;return-1}:l},"jbM+":function(e,t,n){var r=n("R/W3");e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},k2Gq:function(e,t,n){"use strict";var r=n("0X2M");e.exports=r},mMAP:function(e,t,n){"use strict";var r=n("zhhU"),o=n("T/97"),i=Math.floor,a=r("".charAt),u=r("".replace),s=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,d){var p=n+e.length,h=r.length,g=c;return void 0!==f&&(f=o(f),g=l),u(d,g,(function(o,u){var l;switch(a(u,0)){case"$":return"$";case"&":return e;case"`":return s(t,0,n);case"'":return s(t,p);case"<":l=f[s(u,1,-1)];break;default:var c=+u;if(0===c)return o;if(c>h){var d=i(c/10);return 0===d?o:d<=h?void 0===r[d-1]?a(u,1):r[d-1]+a(u,1):o}l=r[c-1]}return void 0===l?"":l}))}},"p77/":function(e,t,n){},p7gc:function(e,t,n){"use strict";var r=n("UtpJ"),o=n.n(r),i=n("O0yt"),a=n.n(i),u=n("Dcj1"),s=n.n(u),l=n("6UaR"),c=n.n(l),f=n("zLi2"),d=n.n(f),p=n("IeeE"),h=n.n(p),g=n("RKTd"),v=n.n(g),y=n("pPxq"),m=n.n(y),b=n("o+MX"),w=n.n(b),E=n("FLGM"),x=n.n(E),S=n("BfIq"),C=n.n(S),D=n("BF1V"),O=n.n(D),A=n("0lTi"),k=n.n(A),B=n("lHQ6"),_=n.n(B),F=n("ZbhI"),T=n.n(F),P=n("UF4K"),j=n.n(P),N=n("xlHU"),I=n.n(N),R=n("5tqG"),L=n.n(R),M=n("cDcd"),z=n.n(M),U=n("sYIF"),H=n("bdgK"),$=n("vDqi"),V=n.n($);function W(e,t){var n=void 0!==a.a&&s()(e)||e["@@iterator"];if(!n){if(c()(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return q(e,t);var r=o()(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?k()(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?q(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,l=!0,f=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){f=!0,u=e},f:function(){try{l||null==n.return||n.return()}finally{if(f)throw u}}}}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n("pb8e"),n("ex8r"),n("p77/"),n("eXKH");var G=window.$,K=["bold","italic","del","|","list-ul","list-ol","|","code","code-block","link","|","image","table","|","line-break","watch","clear","emoji","fullscreen"],Y=["bold","italic","del","|","list-ul","list-ol","|","code","code-block","link","|","inline-latex","latex","|","image","table","|","line-break","watch","clear","emoji","fullscreen"];function X(e,t,n){window.sessionStorage.removeItem(e+t);var r="#e_tip_"+n;"content"==e?G("#e_tips_"+n).html(" "):G(r).html(" ")}function Z(e,t,n){var r=window.sessionStorage.getItem("content"+t);if(null!==r&&r!==e.getValue()){G("#e_tips_"+n).data("editor",e);var o='您上次有已保存的数据,是否<a style="cursor: pointer;" class="link-color-blue" onclick="md_rec_data(\'content\',\''+t+"','"+n+'\')">恢复</a> ? / <a style="cursor: pointer;" class="link-color-blue" onclick="md_clear_data(\'content\',\''+t+"','"+n+"')\">不恢复</a>";G("#e_tips_"+n).html(o)}return h()((function(){var r,o=new Date,i=o.getHours(),a=o.getMinutes(),u=o.getSeconds();if(i=i<10?"0"+i:i,a=a<10?"0"+a:a,u=u<10?"0"+u:u,""!==v()(r=e.getValue()).call(r)){!function(e,t,n){window.sessionStorage.setItem("content"+t,n)}(0,t,e.getValue());var s="#e_tips_"+n,l=" 数据已于 "+i+":"+a+":"+u+" 保存 ",c=G(s).html();c&&" "!==c&&!1===m()(c).call(c," 数据已于 ")?G(s).html(c.split(" (")[0]+" (".concat(l,")")):G(s).html(l)}}),1e4)}window.md_clear_data=X,window.md_rec_data=function(e,t,n){null!==window.sessionStorage.getItem(e+t)&&(G("#e_tips_"+n).data("editor").setValue(window.sessionStorage.getItem(e+t)),X(e,t,n))},t.a=function(e){var t,n,r=e.mdID,o=e.onChange,i=e.onCMBeforeChange,a=e.onCMBlur,u=e.error,s=void 0!==u&&u,l=e.className,c=void 0===l?"":l,f=e.noStorage,p=void 0!==f&&f,h=e.imageExpand,g=void 0===h||h,v=e.placeholder,y=void 0===v?"":v,m=e.width,b=void 0===m?"100%":m,E=e.height,S=void 0===E?400:E,D=e.initValue,A=void 0===D?"":D,B=(e.emoji,e.watch),F=void 0===B||B,P=(e.showNullButton,e.showResizeBar),N=void 0!==P&&P,R=e.startInit,$=void 0===R||R,q=(e.forMember,e.isCanAtme),G=void 0!==q&&q,X=e.isQuoteIssue,J=void 0!==X&&X,Q=e.changeAtWhoLoginList,ee=e.owner,te=e.projectsId,ne=e.isFocus,re=void 0===ne||ne,oe=e.showLatexButton,ie=void 0===oe||oe,ae=Object(M.useRef)(),ue=Object(M.useRef)(),se=Object(M.useState)(),le=d()(se,2),ce=le[0],fe=le[1],de=Object(M.useState)(!1),pe=d()(de,2),he=pe[0],ge=pe[1],ve=Object(M.useState)([]),ye=d()(ve,2),me=ye[0],be=ye[1],we=Object(M.useState)([]),Ee=d()(we,2),xe=Ee[0],Se=Ee[1],Ce=Object(M.useState)([]),De=d()(Ce,2),Oe=De[0],Ae=De[1],ke=Object(M.useRef)([]),Be=Object(M.useRef)(!1),_e="mdEditor_".concat(r),Fe="mdEditors_".concat(r),Te="e_tips_mdEditor_".concat(r),Pe=Object(M.useState)([]),je=d()(Pe,2),Ne=je[0],Ie=je[1],Re=Object(M.useState)(!1),Le=d()(Re,2),Me=Le[0],ze=Le[1],Ue=Object(M.useState)([]),He=d()(Ue,2),$e=He[0],Ve=He[1],We=Object(M.useRef)(!1),qe=Object(M.useRef)([]);function Ge(e){var t;V.a.get(w()(t="/v1/".concat(ee,"/")).call(t,te,"/issues"),{params:{only_name:!0,keyword:e,sort_direction:"desc",sort_by:"issues.created_on",limit:500,page:1}}).then((function(t){if(t){!e&&Ie(t.data.issues);var n=t.data.issues;Ve(n&&n.length>0?n:void 0)}}))}Object(M.useEffect)((function(){var e;G&&V.a.get(w()(e="/".concat(ee,"/")).call(e,te,"/members.json")).then((function(e){0!==e.data.total_count&&(Ae(e.data.users),Se(e.data.users))})),document.addEventListener("click",(function(){Be.current=!1,ge(!1),We.current=!1,ze(!1)})),J&&Ge()}),[]);var Ke=z.a.createElement("div",{id:"quoteDiv",className:"quoteDiv"},$e&&x()($e).call($e,(function(e,t){return z.a.createElement("li",{className:"quote ".concat(0===t&&"active"),onClick:function(){return function(e){var t,n,r,o;We.current=!1,ze(!1);var i=ce.cm,a=i.doc.getCursor(),u=a.line,s=a.ch,l=C()(t=i.getRange({line:u,ch:0},{line:u,ch:s})).call(t,"#");i.replaceRange(w()(n=w()(r=w()(o="[#".concat(e.subject,"](/")).call(o,ee,"/")).call(r,te,"/issues/")).call(n,e.project_issues_index,") "),{line:u,ch:l},{line:u,ch:s}),i.focus();var c=new O.a(qe.current);c.add(e.project_issues_index),qe.current=k()(c)}(e)},onMouseOver:function(){return e=t,document.getElementsByClassName("quote active")[0]&&(document.getElementsByClassName("quote active")[0].className="quote"),void(document.getElementsByClassName("quote")[e]&&(document.getElementsByClassName("quote")[e].className="quote active"));var e}},z.a.createElement("span",{style:{minWidth:"40px"}},z.a.createElement("span",{className:"issueIndex",title:e.project_issues_index},"#",e.project_issues_index)),z.a.createElement("span",{className:"issueName task-hide"},e.subject))})));function Ye(e){var t=document.getElementsByClassName("CodeMirror cm-s-default CodeMirror-wrap")[0].firstChild.style,n=ce.cm.getValue();if(e.shiftKey&&"Digit2"===e.code&&(Be.current=!0,ge(!0),document.getElementById("at_who_list").style.top=_()(t.getPropertyValue("top").replace("px",""))+62+"px",document.getElementById("at_who_list").style.left=_()(t.getPropertyValue("left").replace("px",""))+20+"px"),e.ctrlKey&&"KeyZ"===e.code&&0!==Oe.length){if(A){var r=[];x()(Oe).call(Oe,(function(e){var t;-1!=T()(A).call(A,e.username)&&"@"===A.charAt(T()(A).call(A,e.username)-1)&&T()(A).call(A,"@".concat(e.username))===T()(n).call(n,"@".concat(e.username))&&(r[r.length]=w()(t="[@".concat(e.username,"](/")).call(t,e.login,")"))})),0!=r.length&&x()(r).call(r,(function(e){n=n.replace(e,"")}))}-1!=T()(n).call(n,"@")&&x()(Oe).call(Oe,(function(e){if(-1!=T()(n).call(n,e.username)&&"@"===n.charAt(T()(n).call(n,e.username)-1)){var t=new O.a(ke.current);t.add(e.login),ke.current=k()(t),be(k()(t))}}))}e.shiftKey&&"Digit3"===e.code&&J&&(We.current=!0,ze(!0),document.getElementById("quoteDiv").style.top=_()(t.getPropertyValue("top").replace("px",""))+62+"px",document.getElementById("quoteDiv").style.left=_()(t.getPropertyValue("left").replace("px",""))+20+"px")}Object(M.useEffect)((function(){if(Ze)if(We.current){var e=document.getElementById("quoteDiv"),t=document.getElementsByClassName("quote");Ze.addKeyMap({Up:function(){for(var n,r=0;r<t.length;r++)"quote active"===t[r].className&&(n=r);n>0&&(n<=t.length-4&&(e.scrollTop-=40),t[n].className="quote",t[n-1].className="quote active")},Down:function(){for(var n,r=0;r<t.length;r++)"quote active"===t[r].className&&(n=r);n<t.length-1&&(n>=3&&(e.scrollTop+=40),t[n].className="quote",t[n+1].className="quote active")},Enter:function(){document.getElementsByClassName("quote active")[0]&&document.getElementsByClassName("quote active")[0].click()}})}else Ze.removeKeyMap()}),[Me]),Object(M.useEffect)((function(){Q&&Q(me)}),[me]);var Xe=z.a.createElement("div",{className:"at_who_list",id:"at_who_list"},xe&&x()(xe).call(xe,(function(e,t){return z.a.createElement("div",{key:t,className:"at_who ".concat(0===t&&"active"),onClick:function(){!function(e){var t;Be.current=!1,ge(!1);var n=ce.cm,r=n.doc.getCursor(),o=r.line,i=r.ch,a=C()(t=n.getRange({line:o,ch:0},{line:o,ch:i})).call(t,"@"),u=void 0;x()(xe).call(xe,(function(t){t.username===e&&(u=t.login)})),n.replaceRange("[@"+e+"]"+"(/".concat(u,") "),{line:o,ch:a},{line:o,ch:i}),n.focus();var s=new O.a(ke.current);s.add(u),ke.current=k()(s),be(k()(s))}(e.username)},onMouseOver:function(){!function(e){document.getElementsByClassName("at_who active")[0]&&(document.getElementsByClassName("at_who active")[0].className="at_who"),document.getElementsByClassName("at_who")[e]&&(document.getElementsByClassName("at_who")[e].className="at_who active")}(t)}},e.image_url&&z.a.createElement("img",{src:Object(U.i)("/".concat(e.image_url)),alt:""}),z.a.createElement("span",null,e.username))})));Object(M.useEffect)((function(){!ce&&$&&window.editormd(_e,{width:b,height:S,path:Object(U.m)("/editormd/lib/"),markdown:A,syncScrolling:"single",tex:!0,tocm:!0,emoji:!0,taskList:!0,codeFold:!0,searchReplace:!0,htmlDecode:"style,script,iframe",sequenceDiagram:!0,autoFocus:!1,watch:F,saveHTMLToTextarea:!0,dialogMaskOpacity:.6,placeholder:y,imageUpload:!0,imageFormats:["jpg","jpeg","gif","png","bmp","webp","JPG","JPEG","GIF","PNG","BMP","WEBP"],imageUploadURL:Object(U.l)(),toolbarIcons:function(){return ie?Y:K},toolbarIconsClass:{"line-break":"fa-minus",fullScreen:"iconfont icon-fangdaicon font-14"},toolbarCustomIcons:{"inline-latex":"<a title='行内公式' class='latex' ><i name='inline-latex' class='fa iconfont icon-hangneigongshi font-14'></i></a>",latex:"<a title='多行公式' class='latex' ><i name='latex' class='fa iconfont icon-duohanggongshi font-16'></i></a>","null-button":"<a class='pr' title='增加填空'><i class='border-left'><span></span></i><span name='null-button' class='fa fillTip'>点击插入填空项</span><i class='iconfont fa icon-edit font-16' name='null-button'></i></a>"},toolbarHandlers:{"line-break":function(e,t,n,r){e.replaceSelection("<br/>")},"null-button":function(e,t,n,r){""===r&&e.setCursor(n.line,n.ch+1),e.replaceSelection("▁")},fullScreen:function(e,t,n,r){t.addClass("none")},"inline-latex":function(e,t,n,r){e.replaceSelection("$"+r+"$"),e.setCursor(n.line,n.ch+2),e.focus()},latex:function(e,t,n,r){e.replaceSelection("$$\n\n"+r+"$$"),e.setCursor(n.line+1,0),e.focus()}},lang:{toolbar:{latex:"多行公式","line-break":"换行",fullScreen:"开启全屏"}},onload:function(){fe(this)}})}),[_e,ce,$]);var Ze=ce&&ce.cm;return Object(M.useEffect)((function(){Be.current?Ze.addKeyMap({Up:function(){for(var e,t=document.getElementById("at_who_list"),n=document.getElementsByClassName("at_who"),r=0;r<n.length;r++)"at_who active"===n[r].className&&(e=r);e>0&&(e<=n.length-4&&(t.scrollTop-=40),n[e].className="at_who",n[e-1].className="at_who active")},Down:function(){for(var e,t=document.getElementById("at_who_list"),n=document.getElementsByClassName("at_who"),r=0;r<n.length;r++)"at_who active"===n[r].className&&(e=r);e<n.length-1&&(e>=3&&(t.scrollTop+=40),n[e].className="at_who",n[e+1].className="at_who active")},Enter:function(){if(document.getElementsByClassName("at_who active")[0])document.getElementsByClassName("at_who active")[0].click();else{var e=ce.cm,t=e.doc.getCursor(),n=t.line,r=t.ch;e.replaceRange("\n",{line:n,ch:r},{line:n,ch:r}),ge(!1),Be.current=!1}}}):Ze&&Ze.removeKeyMap()}),[he]),Object(M.useEffect)((function(){if(Be.current&&xe){var e=document.getElementsByClassName("CodeMirror cm-s-default CodeMirror-wrap")[0].firstChild.style,t="添加评论..."===y?80:10;document.getElementById("at_who_list").style.left=_()(e.getPropertyValue("left").replace("px",""))+t+"px"}}),[xe]),Object(M.useEffect)((function(){if(Ze){var e,t=null;return a&&ce.cm.on("blur",(function(){a(ce.getValue())})),i&&ce.cm.on("beforeChange",(function(e,t){i(e,t)})),p||(t=Z(ce,"MDEditor__".concat(_e),_e)),(G||J)&&ce.cm.on("focus",(function(){document.addEventListener("keydown",Ye)})),(G||J)&&ce.cm.on("blur",(function(){document.removeEventListener("keydown",Ye)})),ce.cm.on("change",(function(e){var t=e.getValue();if(o&&o(t),We.current){var n=e.doc.getCursor(),r=n.line,i=n.ch,a=Ze.getRange({line:r,ch:0},{line:r,ch:i});-1===T()(a).call(a,"#")||" "===(a=a.substring(C()(a).call(a,"#")+1))?(ze(!1),We.current=!1):Ge(a)}if(Be.current){var u,s=e.doc.getCursor(),l=s.line,c=s.ch,f=Ze.getRange({line:l,ch:0},{line:l,ch:c});-1===T()(f).call(f,"@")?(ge(!1),Be.current=!1):(f=f.substring(C()(f).call(f,"@")+1))?V.a.get(w()(u="/".concat(ee,"/")).call(u,te,"/members.json"),{params:{search:f}}).then((function(e){e&&e.data&&0!==e.data.total_count?Se(e.data.users):Se(void 0)})):Se(Oe)}if(function(e,t,n){if(0!=n.length){var r,o=ce.cm,i=o.getValue();if(A){var a=[];x()(t).call(t,(function(t){var n,r,o,u,s,l,c,f,d=t.username;d=t.project_issues_index,-1!=T()(A).call(A,d)&&A.charAt(T()(A).call(A,d)-1)===e&&T()(A).call(A,w()(n="".concat(e)).call(n,d))===T()(i).call(i,w()(r="".concat(e)).call(r,d))&&(a[a.length]=w()(o=w()(u="[".concat(e)).call(u,d,"](/")).call(o,d,")"),a[a.length]=w()(s=w()(l=w()(c=w()(f="[".concat(e)).call(f,d,"](")).call(c,ee,"/")).call(l,te,"/issues/")).call(s,d,")"))})),0!=a.length&&x()(a).call(a,(function(e){i=i.replace(e,"")}))}var u=new j.a;x()(r=k()(n)).call(r,(function(e){x()(t).call(t,(function(t){t.project_issues_index===e&&u.set(t.project_issues_index,t.project_issues_index)}))}));var s=o.doc.getCursor(),l=s.line,c=s.ch;-1===T()(i).call(i,e)&&(qe.current=[]);var f,d,p=o.getRange({line:l,ch:0},{line:l,ch:c}),h=o.getLine(l);h&&-1!==T()(h).call(h,e)?x()(f=k()(I()(u).call(u))).call(f,(function(t){var n,r,a,s,f=w()(n=w()(r=w()(a=w()(s="[".concat(e)).call(s,t,"](/")).call(a,ee,"/")).call(r,te,"/issues/")).call(n,u.get(t),")");if(L()(p).call(p,f)&&o.setSelection({line:l,ch:C()(p).call(p,e)-1},{line:l,ch:c}),-1===T()(i).call(i,f)){var d=new O.a(qe.current);d.delete(u.get(t)),qe.current=k()(d)}})):x()(d=k()(I()(u).call(u))).call(d,(function(t){var n,r,o,a,s=w()(n=w()(r=w()(o=w()(a="[".concat(e)).call(a,t,"](/")).call(o,ee,"/")).call(r,te,"/issues/")).call(n,u.get(t),")");if(-1===T()(i).call(i,s)){var l=new O.a(qe.current);l.delete(u.get(t)),qe.current=k()(l)}}))}}("#",Ne,qe.current),0!=ke.current.length){var d,p=ce.cm,h=p.getValue();if(A){var g=[];x()(Oe).call(Oe,(function(e){var t;-1!=T()(A).call(A,e.username)&&"@"===A.charAt(T()(A).call(A,e.username)-1)&&T()(A).call(A,"@".concat(e.username))===T()(h).call(h,"@".concat(e.username))&&(g[g.length]=w()(t="[@".concat(e.username,"](/")).call(t,e.login,")"))})),0!=g.length&&x()(g).call(g,(function(e){h=h.replace(e,"")}))}var v=new j.a;x()(d=k()(ke.current)).call(d,(function(e){x()(Oe).call(Oe,(function(t){t.login===e&&v.set(t.username,t.login)}))}));var y=p.doc.getCursor(),m=y.line,b=y.ch;-1===T()(h).call(h,"@")&&(ke.current=[],be([]));var E,S,D=p.getRange({line:m,ch:0},{line:m,ch:b}),B=p.getLine(m);B&&-1!==T()(B).call(B,"@")?x()(E=k()(I()(v).call(v))).call(E,(function(e){var t,n=w()(t="[@".concat(e,"](/")).call(t,v.get(e),")");if(L()(D).call(D,n)&&p.setSelection({line:m,ch:C()(D).call(D,"@")-1},{line:m,ch:b}),-1===T()(h).call(h,n)){var r=new O.a(ke.current);r.delete(v.get(e)),ke.current=k()(r),be(k()(r))}})):x()(S=k()(I()(v).call(v))).call(S,(function(e){var t,n=w()(t="[@".concat(e,"](/")).call(t,v.get(e),")");if(-1===T()(h).call(h,n)){var r=new O.a(ke.current);r.delete(v.get(e)),ke.current=k()(r),be(k()(r))}}))}})),e=function(){var e;return ae.current&&(e=new H.default((function(e){var t,n=W(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;(r.target.offsetHeight>0||r.target.offsetWidth>0)&&(ce.resize(),ce.cm.refresh(),re&&ce.cm.focus())}}catch(e){n.e(e)}finally{n.f()}}))).observe(ae.current),e}(),function(){p||clearInterval(t),e&&e.unobserve(ae.current)}}}),[Ze]),Object(M.useEffect)((function(){ce&&null!=A&&A!==ce.getValue()&&ce.setValue(A.toString())}),[ce,A,_e]),Object(M.useEffect)((function(){if(ue.current){var e=function(e){o=!0,i=e.pageY},t=function(){o=!1},n=function(e){if(o){var t=e.pageY-i;t<0&&(t=0),t>300&&(t=300);var n=S+t+"px";ce.resize("",n)}},r=ue.current,o=!1,i=0;return r.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){r.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[ce,ue]),z.a.createElement(M.Fragment,null,z.a.createElement("div",{ref:ae,className:w()(t=w()(n="df editormd-editing ".concat(c," ")).call(n,g&&"editormd-image-click-expand"," ")).call(t,Me||he?"quoteBox":""," ")},z.a.createElement("div",{className:"edu-back-greyf5 radius4 editormd ".concat(s?"error":""),id:_e},Me&&Ke,he&&Xe,z.a.createElement("textarea",{style:{display:"none"},id:Fe,name:"content"}),z.a.createElement("div",{className:"CodeMirror cm-s-defualt",style:{display:"none"}}))),N?z.a.createElement("a",{ref:ue,className:"editor-resize"}):null,z.a.createElement("div",{className:"fr rememberTip"},!0===p?null:z.a.createElement("div",{id:Te,className:"edu-txt-right color-grey-cd font-12"})))}},pZ5k:function(e,t,n){"use strict";var r=n("pevS"),o=n("cQZY"),i=n("zhhU"),a=n("GHVm"),u=n("+y2l"),s=n("Cx3U"),l=n("+W7g"),c=n("jBKu"),f=n("+Lan"),d=n("DJ9E"),p=n("mMAP"),h=n("A2Ma"),g=n("cEKj"),v=h("replace"),y=TypeError,m=i("".indexOf),b=i("".replace),w=i("".slice),E=Math.max;r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,i,h,x,S,C,D,O,A,k=a(this),B=0,_="";if(!s(e)){if((n=l(e))&&(r=c(a(d(e))),!~m(r,"g")))throw new y("`.replaceAll` does not allow non-global regexes");if(i=f(e,v))return o(i,e,k,t);if(g&&n)return b(c(k),e,t)}for(h=c(k),x=c(e),(S=u(t))||(t=c(t)),C=x.length,D=E(1,C),O=m(h,x);-1!==O;)A=S?c(t(x,O,h)):p(x,h,O,[],void 0,t),_+=w(h,B,O)+A,B=O+C,O=O+D>h.length?-1:m(h,x,O+D);return B<h.length&&(_+=w(h,B)),_}})},pb8e:function(e,t,n){},qPyV:function(e,t,n){var r=n("ut/Y"),o=n("LGYb");e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},reVg:function(e,t,n){"use strict";var r=n("61Qb"),o=Math.floor,i=function(e,t){var n=e.length;if(n<8)for(var a,u,s=1;s<n;){for(u=s,a=e[s];u&&t(e[u-1],a)>0;)e[u]=e[--u];u!==s++&&(e[u]=a)}else for(var l=o(n/2),c=i(r(e,0,l),t),f=i(r(e,l),t),d=c.length,p=f.length,h=0,g=0;h<d||g<p;)e[h+g]=h<d&&g<p?t(c[h],f[g])<=0?c[h++]:f[g++]:h<d?c[h++]:f[g++];return e};e.exports=i},sP2K:function(e,t,n){"use strict";var r=n("gcyI");e.exports=r},sPJy:function(e,t,n){"use strict";n("cIOH"),n("AOa7"),n("lUTK"),n("qVdP")},tKpz:function(e,t){},tlJt:function(e,t,n){"use strict";n("DZo9");var r=n("8z0m"),o=(n("Pwec"),n("CtXQ")),i=(n("miYZ"),n("tsqr")),a=n("zLi2"),u=n.n(a),s=n("cDcd"),l=n.n(s),c=n("sYIF"),f=n("Po8q"),d=n.n(f);t.a=function(e){var t=e.getImage,n=e.url,a=e.getImageId,f=e.maxSize,p=void 0===f?2:f,h=e.action,g=void 0===h?Object(c.l)():h,v=e.getImageUrl,y=Object(s.useState)(void 0),m=u()(y,2),b=m[0],w=m[1],E=Object(s.useState)(!1),x=u()(E,2),S=x[0],C=x[1];return Object(s.useEffect)((function(){w(n)}),[n]),l.a.createElement(r.a,{name:"file",listType:"picture-card",className:"avatar-uploader",showUploadList:!1,action:g,beforeUpload:function(e){var t="image/jpeg"===e.type||"image/png"===e.type;t||i.a.error("上传的图片只能是JPG或者PNG格式!");var n=e.size/1024/1024<p;return n||i.a.error("上传的图片不能超过".concat(p,"MB!")),t&&n&&C(!0),t&&n},onChange:function(e){var n,r,o;e&&e.file&&"done"===e.file.status&&(C(!1),a&&a(e.file.response.id),v&&v(e.file.response.url),n=e.file.originFileObj,r=function(e){return w(e)},(o=new FileReader).addEventListener("load",(function(){return r(o.result)})),o.readAsDataURL(n),o.onload=function(e){t&&t(e.target.result)})},accept:".png,.jpg,.jpeg",withCredentials:!0,headers:{Authorization:d.a.load("autologin_trustie")}},b?l.a.createElement("img",{src:b,alt:"avatar",style:{width:"100%"}}):l.a.createElement("div",null,l.a.createElement(o.a,{type:S?"loading":"plus"}),l.a.createElement("div",{className:"ant-upload-text"},"点击上传")))}},"vN+2":function(e,t){e.exports=function(){}},vkdm:function(e,t){},xcSo:function(e,t,n){"use strict";n("OG05");var r=n("wY6U");e.exports=r("Array","lastIndexOf")},yj5I:function(e,t){},yyNy:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Ige})),n.d(t,"b",(function(){return Rge}));var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function o(e){var t={exports:{}};return e(t,t.exports),t.exports}var i,a,u=function(e){return e&&e.Math==Math&&e},s=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof r&&r)||function(){return this}()||Function("return this")(),l=Function.prototype,c=l.apply,f=l.bind,d=l.call,p="object"==typeof Reflect&&Reflect.apply||(f?d.bind(c):function(){return d.apply(c,arguments)}),h=Function.prototype,g=h.bind,v=h.call,y=g&&g.bind(v),m=g?function(e){return e&&y(v,e)}:function(e){return e&&function(){return v.apply(e,arguments)}},b=function(e){return"function"==typeof e},w=function(e){try{return!!e()}catch(e){return!0}},E=!w((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),x=Function.prototype.call,S=x.bind?x.bind(x):function(){return x.apply(x,arguments)},C={}.propertyIsEnumerable,D=Object.getOwnPropertyDescriptor,O={f:D&&!C.call({1:2},1)?function(e){var t=D(this,e);return!!t&&t.enumerable}:C},A=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},k=m({}.toString),B=m("".slice),_=function(e){return B(k(e),8,-1)},F=s.Object,T=m("".split),P=w((function(){return!F("z").propertyIsEnumerable(0)}))?function(e){return"String"==_(e)?T(e,""):F(e)}:F,j=s.TypeError,N=function(e){if(null==e)throw j("Can't call method on "+e);return e},I=function(e){return P(N(e))},R=function(e){return"object"==typeof e?null!==e:b(e)},L={},M=function(e){return b(e)?e:void 0},z=function(e,t){return arguments.length<2?M(L[e])||M(s[e]):L[e]&&L[e][t]||s[e]&&s[e][t]},U=m({}.isPrototypeOf),H=z("navigator","userAgent")||"",$=s.process,V=s.Deno,W=$&&$.versions||V&&V.version,q=W&&W.v8;q&&(a=(i=q.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!a&&H&&(!(i=H.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=H.match(/Chrome\/(\d+)/))&&(a=+i[1]);var G,K=a,Y=!!Object.getOwnPropertySymbols&&!w((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&K&&K<41})),X=Y&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z=s.Object,J=X?function(e){return"symbol"==typeof e}:function(e){var t=z("Symbol");return b(t)&&U(t.prototype,Z(e))},Q=s.String,ee=function(e){try{return Q(e)}catch(e){return"Object"}},te=s.TypeError,ne=function(e){if(b(e))return e;throw te(ee(e)+" is not a function")},re=function(e,t){var n=e[t];return null==n?void 0:ne(n)},oe=s.TypeError,ie=Object.defineProperty,ae=s["__core-js_shared__"]||function(e,t){try{ie(s,e,{value:t,configurable:!0,writable:!0})}catch(n){s[e]=t}return t}("__core-js_shared__",{}),ue=o((function(e){(e.exports=function(e,t){return ae[e]||(ae[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),se=s.Object,le=function(e){return se(N(e))},ce=m({}.hasOwnProperty),fe=Object.hasOwn||function(e,t){return ce(le(e),t)},de=0,pe=Math.random(),he=m(1..toString),ge=function(e){return"Symbol("+(void 0===e?"":e)+")_"+he(++de+pe,36)},ve=ue("wks"),ye=s.Symbol,me=ye&&ye.for,be=X?ye:ye&&ye.withoutSetter||ge,we=function(e){if(!fe(ve,e)||!Y&&"string"!=typeof ve[e]){var t="Symbol."+e;Y&&fe(ye,e)?ve[e]=ye[e]:ve[e]=X&&me?me(t):be(t)}return ve[e]},Ee=s.TypeError,xe=we("toPrimitive"),Se=function(e){var t=function(e,t){if(!R(e)||J(e))return e;var n,r=re(e,xe);if(r){if(void 0===t&&(t="default"),n=S(r,e,t),!R(n)||J(n))return n;throw Ee("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&b(n=e.toString)&&!R(r=S(n,e)))return r;if(b(n=e.valueOf)&&!R(r=S(n,e)))return r;if("string"!==t&&b(n=e.toString)&&!R(r=S(n,e)))return r;throw oe("Can't convert object to primitive value")}(e,t)}(e,"string");return J(t)?t:t+""},Ce=s.document,De=R(Ce)&&R(Ce.createElement),Oe=function(e){return De?Ce.createElement(e):{}},Ae=!E&&!w((function(){return 7!=Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),ke=Object.getOwnPropertyDescriptor,Be={f:E?ke:function(e,t){if(e=I(e),t=Se(t),Ae)try{return ke(e,t)}catch(e){}if(fe(e,t))return A(!S(O.f,e,t),e[t])}},_e=/#|\.prototype\./,Fe=function(e,t){var n=Pe[Te(e)];return n==Ne||n!=je&&(b(t)?w(t):!!t)},Te=Fe.normalize=function(e){return String(e).replace(_e,".").toLowerCase()},Pe=Fe.data={},je=Fe.NATIVE="N",Ne=Fe.POLYFILL="P",Ie=Fe,Re=m(m.bind),Le=function(e,t){return ne(e),void 0===t?e:Re?Re(e,t):function(){return e.apply(t,arguments)}},Me=s.String,ze=s.TypeError,Ue=function(e){if(R(e))return e;throw ze(Me(e)+" is not an object")},He=s.TypeError,$e=Object.defineProperty,Ve={f:E?$e:function(e,t,n){if(Ue(e),t=Se(t),Ue(n),Ae)try{return $e(e,t,n)}catch(e){}if("get"in n||"set"in n)throw He("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},We=E?function(e,t,n){return Ve.f(e,t,A(1,n))}:function(e,t,n){return e[t]=n,e},qe=Be.f,Ge=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 p(e,this,arguments)};return t.prototype=e.prototype,t},Ke=function(e,t){var n,r,o,i,a,u,l,c,f=e.target,d=e.global,p=e.stat,h=e.proto,g=d?s:p?s[f]:(s[f]||{}).prototype,v=d?L:L[f]||We(L,f,{})[f],y=v.prototype;for(o in t)n=!Ie(d?o:f+(p?".":"#")+o,e.forced)&&g&&fe(g,o),a=v[o],n&&(u=e.noTargetGet?(c=qe(g,o))&&c.value:g[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(l=e.bind&&n?Le(i,s):e.wrap&&n?Ge(i):h&&b(i)?m(i):i,(e.sham||i&&i.sham||a&&a.sham)&&We(l,"sham",!0),We(v,o,l),h&&(fe(L,r=f+"Prototype")||We(L,r,{}),We(L[r],o,i),e.real&&y&&!y[o]&&We(y,o,i)))},Ye=ue("keys"),Xe=function(e){return Ye[e]||(Ye[e]=ge(e))},Ze=!w((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Je=Xe("IE_PROTO"),Qe=s.Object,et=Qe.prototype,tt=Ze?Qe.getPrototypeOf:function(e){var t=le(e);if(fe(t,Je))return t[Je];var n=t.constructor;return b(n)&&t instanceof n?n.prototype:t instanceof Qe?et:null},nt=s.String,rt=s.TypeError,ot=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=m(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||b(e))return e;throw rt("Can't set "+nt(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),it=Math.ceil,at=Math.floor,ut=function(e){var t=+e;return t!=t||0===t?0:(t>0?at:it)(t)},st=Math.max,lt=Math.min,ct=function(e,t){var n=ut(e);return n<0?st(n+t,0):lt(n,t)},ft=Math.min,dt=function(e){return(t=e.length)>0?ft(ut(t),9007199254740991):0;var t},pt=function(e){return function(t,n,r){var o,i=I(t),a=dt(i),u=ct(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}},ht={includes:pt(!0),indexOf:pt(!1)},gt={},vt=ht.indexOf,yt=m([].push),mt=function(e,t){var n,r=I(e),o=0,i=[];for(n in r)!fe(gt,n)&&fe(r,n)&&yt(i,n);for(;t.length>o;)fe(r,n=t[o++])&&(~vt(i,n)||yt(i,n));return i},bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wt=bt.concat("length","prototype"),Et={f:Object.getOwnPropertyNames||function(e){return mt(e,wt)}},xt={f:Object.getOwnPropertySymbols},St=m([].concat),Ct=z("Reflect","ownKeys")||function(e){var t=Et.f(Ue(e)),n=xt.f;return n?St(t,n(e)):t},Dt=Object.keys||function(e){return mt(e,bt)},Ot=E?Object.defineProperties:function(e,t){Ue(e);for(var n,r=I(t),o=Dt(t),i=o.length,a=0;i>a;)Ve.f(e,n=o[a++],r[n]);return e},At=z("document","documentElement"),kt=Xe("IE_PROTO"),Bt=function(){},_t=function(e){return"<script>"+e+"<\/script>"},Ft=function(e){e.write(_t("")),e.close();var t=e.parentWindow.Object;return e=null,t},Tt=function(){try{G=new ActiveXObject("htmlfile")}catch(e){}var e,t;Tt="undefined"!=typeof document?document.domain&&G?Ft(G):((t=Oe("iframe")).style.display="none",At.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(_t("document.F=Object")),e.close(),e.F):Ft(G);for(var n=bt.length;n--;)delete Tt.prototype[bt[n]];return Tt()};gt[kt]=!0;var Pt=Object.create||function(e,t){var n;return null!==e?(Bt.prototype=Ue(e),n=new Bt,Bt.prototype=null,n[kt]=e):n=Tt(),void 0===t?n:Ot(n,t)},jt=function(e,t,n){var r=Se(t);r in e?Ve.f(e,r,A(0,n)):e[r]=n},Nt=s.Array,It=Math.max,Rt=function(e,t,n){for(var r=dt(e),o=ct(t,r),i=ct(void 0===n?r:n,r),a=Nt(It(i-o,0)),u=0;o<i;o++,u++)jt(a,u,e[o]);return a.length=u,a},Lt=m("".replace),Mt=m("".split),zt=m([].join),Ut=String(Error("zxcasd").stack),Ht=/\n\s*at [^:]*:[^\n]*/,$t=Ht.test(Ut),Vt=/@[^\n]*\n/.test(Ut)&&!/zxcasd/.test(Ut),Wt=function(e,t){if("string"!=typeof e)return e;if($t)for(;t--;)e=Lt(e,Ht,"");else if(Vt)return zt(Rt(Mt(e,"\n"),t),"\n");return e},qt=function(e,t){R(t)&&"cause"in t&&We(e,"cause",t.cause)},Gt={},Kt=we("iterator"),Yt=Array.prototype,Xt={};Xt[we("toStringTag")]="z";var Zt="[object z]"===String(Xt),Jt=we("toStringTag"),Qt=s.Object,en="Arguments"==_(function(){return arguments}()),tn=Zt?_: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=Qt(e),Jt))?n:en?_(t):"Object"==(r=_(t))&&b(t.callee)?"Arguments":r},nn=we("iterator"),rn=function(e){if(null!=e)return re(e,nn)||re(e,"@@iterator")||Gt[tn(e)]},on=s.TypeError,an=function(e,t,n){var r,o;Ue(e);try{if(!(r=re(e,"return"))){if("throw"===t)throw n;return n}r=S(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ue(r),n},un=s.TypeError,sn=function(e,t){this.stopped=e,this.result=t},ln=sn.prototype,cn=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Le(t,c),g=function(e){return r&&an(r,"normal",e),new sn(!0,e)},v=function(e){return f?(Ue(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=rn(e)))throw un(ee(e)+" is not iterable");if(function(e){return void 0!==e&&(Gt.Array===e||Yt[Kt]===e)}(o)){for(i=0,a=dt(e);a>i;i++)if((u=v(e[i]))&&U(ln,u))return u;return new sn(!1)}r=function(e,t){var n=arguments.length<2?rn(e):t;if(ne(n))return Ue(S(n,e));throw on(ee(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=S(s,r)).done;){try{u=v(l.value)}catch(e){an(r,"throw",e)}if("object"==typeof u&&u&&U(ln,u))return u}return new sn(!1)},fn=s.String,dn=function(e){if("Symbol"===tn(e))throw TypeError("Cannot convert a Symbol value to a string");return fn(e)},pn=function(e,t){return void 0===e?arguments.length<2?"":t:dn(e)},hn=!w((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",A(1,7)),7!==e.stack)})),gn=we("toStringTag"),vn=s.Error,yn=[].push,mn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=U(bn,this);ot?n=ot(new vn(void 0),o?tt(this):bn):(n=o?this:Pt(bn),We(n,gn,"Error")),We(n,"message",pn(t,"")),hn&&We(n,"stack",Wt(n.stack,1)),qt(n,r);var i=[];return cn(e,yn,{that:i}),We(n,"errors",i),n};ot?ot(mn,vn):function(e,t){for(var n=Ct(t),r=Ve.f,o=Be.f,i=0;i<n.length;i++){var a=n[i];fe(e,a)||r(e,a,o(t,a))}}(mn,vn);var bn=mn.prototype=Pt(vn.prototype,{constructor:A(1,mn),message:A(1,""),name:A(1,"AggregateError")});Ke({global:!0},{AggregateError:mn});var wn=m(Function.toString);b(ae.inspectSource)||(ae.inspectSource=function(e){return wn(e)});var En,xn,Sn,Cn=ae.inspectSource,Dn=s.WeakMap,On=b(Dn)&&/native code/.test(Cn(Dn)),An=s.TypeError,kn=s.WeakMap;if(On||ae.state){var Bn=ae.state||(ae.state=new kn),_n=m(Bn.get),Fn=m(Bn.has),Tn=m(Bn.set);En=function(e,t){if(Fn(Bn,e))throw new An("Object already initialized");return t.facade=e,Tn(Bn,e,t),t},xn=function(e){return _n(Bn,e)||{}},Sn=function(e){return Fn(Bn,e)}}else{var Pn=Xe("state");gt[Pn]=!0,En=function(e,t){if(fe(e,Pn))throw new An("Object already initialized");return t.facade=e,We(e,Pn,t),t},xn=function(e){return fe(e,Pn)?e[Pn]:{}},Sn=function(e){return fe(e,Pn)}}var jn,Nn,In,Rn={set:En,get:xn,has:Sn,enforce:function(e){return Sn(e)?xn(e):En(e,{})},getterFor:function(e){return function(t){var n;if(!R(t)||(n=xn(t)).type!==e)throw An("Incompatible receiver, "+e+" required");return n}}},Ln=Function.prototype,Mn=E&&Object.getOwnPropertyDescriptor,zn=fe(Ln,"name"),Un={EXISTS:zn,PROPER:zn&&"something"===function(){}.name,CONFIGURABLE:zn&&(!E||E&&Mn(Ln,"name").configurable)},Hn=function(e,t,n,r){r&&r.enumerable?e[t]=n:We(e,t,n)},$n=we("iterator"),Vn=!1;[].keys&&("next"in(In=[].keys())?(Nn=tt(tt(In)))!==Object.prototype&&(jn=Nn):Vn=!0);var Wn=null==jn||w((function(){var e={};return jn[$n].call(e)!==e}));jn=Wn?{}:Pt(jn),b(jn[$n])||Hn(jn,$n,(function(){return this}));var qn={IteratorPrototype:jn,BUGGY_SAFARI_ITERATORS:Vn},Gn=Zt?{}.toString:function(){return"[object "+tn(this)+"]"},Kn=Ve.f,Yn=we("toStringTag"),Xn=function(e,t,n,r){if(e){var o=n?e:e.prototype;fe(o,Yn)||Kn(o,Yn,{configurable:!0,value:t}),r&&!Zt&&We(o,"toString",Gn)}},Zn=qn.IteratorPrototype,Jn=function(){return this},Qn=Un.PROPER,er=qn.BUGGY_SAFARI_ITERATORS,tr=we("iterator"),nr=function(){return this},rr=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Pt(Zn,{next:A(1,n)}),Xn(e,o,!1,!0),Gt[o]=Jn}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!er&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[tr]||p["@@iterator"]||o&&p[o],g=!er&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=tt(v.call(new e)))!==Object.prototype&&u.next&&(Xn(u,f,!0,!0),Gt[f]=nr),Qn&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return S(h,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(er||d||!(l in p))&&Hn(p,l,s[l]);else Ke({target:t,proto:!0,forced:er||d},s);return a&&p[tr]!==g&&Hn(p,tr,g,{name:o}),Gt[t]=g,s},or=Rn.set,ir=Rn.getterFor("Array Iterator");rr(Array,"Array",(function(e,t){or(this,{type:"Array Iterator",target:I(e),index:0,kind:t})}),(function(){var e=ir(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"),Gt.Arguments=Gt.Array;var ar=m("".charAt),ur=m("".charCodeAt),sr=m("".slice),lr=function(e){return function(t,n){var r,o,i=dn(N(t)),a=ut(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ur(i,a))<55296||r>56319||a+1===u||(o=ur(i,a+1))<56320||o>57343?e?ar(i,a):r:e?sr(i,a,a+2):o-56320+(r-55296<<10)+65536}},cr=(lr(!1),lr(!0)),fr=Rn.set,dr=Rn.getterFor("String Iterator");rr(String,"String",(function(e){fr(this,{type:"String Iterator",string:dn(e),index:0})}),(function(){var e,t=dr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=cr(n,r),t.index+=e.length,{value:e,done:!1})}));var pr=L.AggregateError,hr=we("toStringTag");for(var gr 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 vr=s[gr],yr=vr&&vr.prototype;yr&&tn(yr)!==hr&&We(yr,hr,gr),Gt[gr]=Gt.Array}var mr,br,wr=pr,Er=function(e){return e&&e.Math==Math&&e},xr=Er("object"==typeof globalThis&&globalThis)||Er("object"==typeof window&&window)||Er("object"==typeof self&&self)||Er("object"==typeof r&&r)||function(){return this}()||Function("return this")(),Sr=function(e){try{return!!e()}catch(e){return!0}},Cr=!Sr((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Dr=Function.prototype.call,Or=Dr.bind?Dr.bind(Dr):function(){return Dr.apply(Dr,arguments)},Ar={}.propertyIsEnumerable,kr=Object.getOwnPropertyDescriptor,Br={f:kr&&!Ar.call({1:2},1)?function(e){var t=kr(this,e);return!!t&&t.enumerable}:Ar},_r=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Fr=Function.prototype,Tr=Fr.bind,Pr=Fr.call,jr=Tr&&Tr.bind(Pr),Nr=Tr?function(e){return e&&jr(Pr,e)}:function(e){return e&&function(){return Pr.apply(e,arguments)}},Ir=Nr({}.toString),Rr=Nr("".slice),Lr=function(e){return Rr(Ir(e),8,-1)},Mr=xr.Object,zr=Nr("".split),Ur=Sr((function(){return!Mr("z").propertyIsEnumerable(0)}))?function(e){return"String"==Lr(e)?zr(e,""):Mr(e)}:Mr,Hr=xr.TypeError,$r=function(e){if(null==e)throw Hr("Can't call method on "+e);return e},Vr=function(e){return Ur($r(e))},Wr=function(e){return"function"==typeof e},qr=function(e){return"object"==typeof e?null!==e:Wr(e)},Gr=function(e){return Wr(e)?e:void 0},Kr=function(e,t){return arguments.length<2?Gr(xr[e]):xr[e]&&xr[e][t]},Yr=Nr({}.isPrototypeOf),Xr=Kr("navigator","userAgent")||"",Zr=xr.process,Jr=xr.Deno,Qr=Zr&&Zr.versions||Jr&&Jr.version,eo=Qr&&Qr.v8;eo&&(br=(mr=eo.split("."))[0]>0&&mr[0]<4?1:+(mr[0]+mr[1])),!br&&Xr&&(!(mr=Xr.match(/Edge\/(\d+)/))||mr[1]>=74)&&(mr=Xr.match(/Chrome\/(\d+)/))&&(br=+mr[1]);var to=br,no=!!Object.getOwnPropertySymbols&&!Sr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&to&&to<41})),ro=no&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,oo=xr.Object,io=ro?function(e){return"symbol"==typeof e}:function(e){var t=Kr("Symbol");return Wr(t)&&Yr(t.prototype,oo(e))},ao=xr.String,uo=function(e){try{return ao(e)}catch(e){return"Object"}},so=xr.TypeError,lo=function(e){if(Wr(e))return e;throw so(uo(e)+" is not a function")},co=function(e,t){var n=e[t];return null==n?void 0:lo(n)},fo=xr.TypeError,po=Object.defineProperty,ho=function(e,t){try{po(xr,e,{value:t,configurable:!0,writable:!0})}catch(n){xr[e]=t}return t},go=xr["__core-js_shared__"]||ho("__core-js_shared__",{}),vo=o((function(e){(e.exports=function(e,t){return go[e]||(go[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),yo=xr.Object,mo=function(e){return yo($r(e))},bo=Nr({}.hasOwnProperty),wo=Object.hasOwn||function(e,t){return bo(mo(e),t)},Eo=0,xo=Math.random(),So=Nr(1..toString),Co=function(e){return"Symbol("+(void 0===e?"":e)+")_"+So(++Eo+xo,36)},Do=vo("wks"),Oo=xr.Symbol,Ao=Oo&&Oo.for,ko=ro?Oo:Oo&&Oo.withoutSetter||Co,Bo=function(e){if(!wo(Do,e)||!no&&"string"!=typeof Do[e]){var t="Symbol."+e;no&&wo(Oo,e)?Do[e]=Oo[e]:Do[e]=ro&&Ao?Ao(t):ko(t)}return Do[e]},_o=xr.TypeError,Fo=Bo("toPrimitive"),To=function(e){var t=function(e,t){if(!qr(e)||io(e))return e;var n,r=co(e,Fo);if(r){if(void 0===t&&(t="default"),n=Or(r,e,t),!qr(n)||io(n))return n;throw _o("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Wr(n=e.toString)&&!qr(r=Or(n,e)))return r;if(Wr(n=e.valueOf)&&!qr(r=Or(n,e)))return r;if("string"!==t&&Wr(n=e.toString)&&!qr(r=Or(n,e)))return r;throw fo("Can't convert object to primitive value")}(e,t)}(e,"string");return io(t)?t:t+""},Po=xr.document,jo=qr(Po)&&qr(Po.createElement),No=function(e){return jo?Po.createElement(e):{}},Io=!Cr&&!Sr((function(){return 7!=Object.defineProperty(No("div"),"a",{get:function(){return 7}}).a})),Ro=Object.getOwnPropertyDescriptor,Lo={f:Cr?Ro:function(e,t){if(e=Vr(e),t=To(t),Io)try{return Ro(e,t)}catch(e){}if(wo(e,t))return _r(!Or(Br.f,e,t),e[t])}},Mo=xr.String,zo=xr.TypeError,Uo=function(e){if(qr(e))return e;throw zo(Mo(e)+" is not an object")},Ho=xr.TypeError,$o=Object.defineProperty,Vo={f:Cr?$o:function(e,t,n){if(Uo(e),t=To(t),Uo(n),Io)try{return $o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ho("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Wo=Cr?function(e,t,n){return Vo.f(e,t,_r(1,n))}:function(e,t,n){return e[t]=n,e},qo=Nr(Function.toString);Wr(go.inspectSource)||(go.inspectSource=function(e){return qo(e)});var Go,Ko,Yo,Xo=go.inspectSource,Zo=xr.WeakMap,Jo=Wr(Zo)&&/native code/.test(Xo(Zo)),Qo=vo("keys"),ei=function(e){return Qo[e]||(Qo[e]=Co(e))},ti={},ni=xr.TypeError,ri=xr.WeakMap;if(Jo||go.state){var oi=go.state||(go.state=new ri),ii=Nr(oi.get),ai=Nr(oi.has),ui=Nr(oi.set);Go=function(e,t){if(ai(oi,e))throw new ni("Object already initialized");return t.facade=e,ui(oi,e,t),t},Ko=function(e){return ii(oi,e)||{}},Yo=function(e){return ai(oi,e)}}else{var si=ei("state");ti[si]=!0,Go=function(e,t){if(wo(e,si))throw new ni("Object already initialized");return t.facade=e,Wo(e,si,t),t},Ko=function(e){return wo(e,si)?e[si]:{}},Yo=function(e){return wo(e,si)}}var li={set:Go,get:Ko,has:Yo,enforce:function(e){return Yo(e)?Ko(e):Go(e,{})},getterFor:function(e){return function(t){var n;if(!qr(t)||(n=Ko(t)).type!==e)throw ni("Incompatible receiver, "+e+" required");return n}}},ci=Function.prototype,fi=Cr&&Object.getOwnPropertyDescriptor,di=wo(ci,"name"),pi={EXISTS:di,PROPER:di&&"something"===function(){}.name,CONFIGURABLE:di&&(!Cr||Cr&&fi(ci,"name").configurable)},hi=o((function(e){var t=pi.CONFIGURABLE,n=li.get,r=li.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;Wr(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!wo(i,"name")||t&&i.name!==f)&&Wo(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==xr?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Wo(e,n,i)):l?e[n]=i:ho(n,i)})(Function.prototype,"toString",(function(){return Wr(this)&&n(this).source||Xo(this)}))})),gi=Math.ceil,vi=Math.floor,yi=function(e){var t=+e;return t!=t||0===t?0:(t>0?vi:gi)(t)},mi=Math.max,bi=Math.min,wi=function(e,t){var n=yi(e);return n<0?mi(n+t,0):bi(n,t)},Ei=Math.min,xi=function(e){return e>0?Ei(yi(e),9007199254740991):0},Si=function(e){return xi(e.length)},Ci=function(e){return function(t,n,r){var o,i=Vr(t),a=Si(i),u=wi(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}},Di=(Ci(!0),Ci(!1)),Oi=Nr([].push),Ai=function(e,t){var n,r=Vr(e),o=0,i=[];for(n in r)!wo(ti,n)&&wo(r,n)&&Oi(i,n);for(;t.length>o;)wo(r,n=t[o++])&&(~Di(i,n)||Oi(i,n));return i},ki=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Bi=ki.concat("length","prototype"),_i={f:Object.getOwnPropertyNames||function(e){return Ai(e,Bi)}},Fi={f:Object.getOwnPropertySymbols},Ti=Nr([].concat),Pi=Kr("Reflect","ownKeys")||function(e){var t=_i.f(Uo(e)),n=Fi.f;return n?Ti(t,n(e)):t},ji=function(e,t){for(var n=Pi(t),r=Vo.f,o=Lo.f,i=0;i<n.length;i++){var a=n[i];wo(e,a)||r(e,a,o(t,a))}},Ni=/#|\.prototype\./,Ii=function(e,t){var n=Li[Ri(e)];return n==zi||n!=Mi&&(Wr(t)?Sr(t):!!t)},Ri=Ii.normalize=function(e){return String(e).replace(Ni,".").toLowerCase()},Li=Ii.data={},Mi=Ii.NATIVE="N",zi=Ii.POLYFILL="P",Ui=Ii,Hi=Lo.f,$i=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?xr:l?xr[u]||ho(u,{}):(xr[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Hi(n,r))&&a.value:n[r],!Ui(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;ji(i,o)}(e.sham||o&&o.sham)&&Wo(i,"sham",!0),hi(n,r,i,e)}},Vi={};Vi[Bo("toStringTag")]="z";var Wi,qi="[object z]"===String(Vi),Gi=Bo("toStringTag"),Ki=xr.Object,Yi="Arguments"==Lr(function(){return arguments}()),Xi=qi?Lr: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=Ki(e),Gi))?n:Yi?Lr(t):"Object"==(r=Lr(t))&&Wr(t.callee)?"Arguments":r},Zi=xr.String,Ji=function(e){if("Symbol"===Xi(e))throw TypeError("Cannot convert a Symbol value to a string");return Zi(e)},Qi=function(){var e=Uo(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},ea=xr.RegExp,ta=Sr((function(){var e=ea("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),na=ta||Sr((function(){return!ea("a","y").sticky})),ra={BROKEN_CARET:ta||Sr((function(){var e=ea("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:na,UNSUPPORTED_Y:ta},oa=Object.keys||function(e){return Ai(e,ki)},ia=Cr?Object.defineProperties:function(e,t){Uo(e);for(var n,r=Vr(t),o=oa(t),i=o.length,a=0;i>a;)Vo.f(e,n=o[a++],r[n]);return e},aa=Kr("document","documentElement"),ua=ei("IE_PROTO"),sa=function(){},la=function(e){return"<script>"+e+"<\/script>"},ca=function(e){e.write(la("")),e.close();var t=e.parentWindow.Object;return e=null,t},fa=function(){try{Wi=new ActiveXObject("htmlfile")}catch(e){}var e,t;fa="undefined"!=typeof document?document.domain&&Wi?ca(Wi):((t=No("iframe")).style.display="none",aa.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(la("document.F=Object")),e.close(),e.F):ca(Wi);for(var n=ki.length;n--;)delete fa.prototype[ki[n]];return fa()};ti[ua]=!0;var da,pa,ha=Object.create||function(e,t){var n;return null!==e?(sa.prototype=Uo(e),n=new sa,sa.prototype=null,n[ua]=e):n=fa(),void 0===t?n:ia(n,t)},ga=xr.RegExp,va=Sr((function(){var e=ga(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ya=xr.RegExp,ma=Sr((function(){var e=ya("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),ba=li.get,wa=vo("native-string-replace",String.prototype.replace),Ea=RegExp.prototype.exec,xa=Ea,Sa=Nr("".charAt),Ca=Nr("".indexOf),Da=Nr("".replace),Oa=Nr("".slice),Aa=(pa=/b*/g,Or(Ea,da=/a/,"a"),Or(Ea,pa,"a"),0!==da.lastIndex||0!==pa.lastIndex),ka=ra.BROKEN_CARET,Ba=void 0!==/()??/.exec("")[1];(Aa||Ba||ka||va||ma)&&(xa=function(e){var t,n,r,o,i,a,u,s=this,l=ba(s),c=Ji(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Or(xa,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=ka&&s.sticky,h=Or(Qi,s),g=s.source,v=0,y=c;if(p&&(h=Da(h,"y",""),-1===Ca(h,"g")&&(h+="g"),y=Oa(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Sa(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Ba&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Aa&&(r=s.lastIndex),o=Or(Ea,p?n:s,y),p?o?(o.input=Oa(o.input,v),o[0]=Oa(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Aa&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Ba&&o&&o.length>1&&Or(wa,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=ha(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var _a=xa;$i({target:"RegExp",proto:!0,forced:/./.exec!==_a},{exec:_a}),Bo("species");var Fa=RegExp.prototype,Ta=Nr("".charAt),Pa=Nr("".charCodeAt),ja=Nr("".slice),Na=function(e){return function(t,n){var r,o,i=Ji($r(t)),a=yi(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Pa(i,a))<55296||r>56319||a+1===u||(o=Pa(i,a+1))<56320||o>57343?e?Ta(i,a):r:e?ja(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ia={codeAt:Na(!1),charAt:Na(!0)},Ra=Ia.charAt,La=function(e,t,n){return t+(n?Ra(e,t).length:1)},Ma=xr.TypeError,za=function(e,t){var n=e.exec;if(Wr(n)){var r=Or(n,e,t);return null!==r&&Uo(r),r}if("RegExp"===Lr(e))return Or(_a,e,t);throw Ma("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=Bo(e),i=!Sr((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Sr((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a){var u=Nr(/./[o]),s=function(e,t,n){return[function(t){var n=$r(this),r=null==t?void 0:co(t,e);return r?Or(r,t,n):new RegExp(t)[e](Ji(n))},function(e){var r=Uo(this),o=Ji(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return za(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=za(r,o));){var c=Ji(u[0]);s[l]=c,""===c&&(r.lastIndex=La(o,xi(r.lastIndex),a)),l++}return 0===l?null:s}]}(o,""[e],(function(e,t,n,r,o){var a=Nr(e),s=t.exec;return s===_a||s===Fa.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));hi(String.prototype,e,s[0]),hi(Fa,o,s[1])}}("match"),$i({global:!0},{globalThis:xr});var Ua=!Sr((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ha=ei("IE_PROTO"),$a=xr.Object,Va=$a.prototype,Wa=Ua?$a.getPrototypeOf:function(e){var t=mo(e);if(wo(t,Ha))return t[Ha];var n=t.constructor;return Wr(n)&&t instanceof n?n.prototype:t instanceof $a?Va:null},qa=xr.String,Ga=xr.TypeError,Ka=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Nr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Uo(n),function(e){if("object"==typeof e||Wr(e))return e;throw Ga("Can't set "+qa(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Ya=xr.Array,Xa=Math.max,Za=Nr("".replace),Ja=Nr("".split),Qa=Nr([].join),eu=String(Error("zxcasd").stack),tu=/\n\s*at [^:]*:[^\n]*/,nu=tu.test(eu),ru=/@[^\n]*\n/.test(eu)&&!/zxcasd/.test(eu),ou=function(e,t){if("string"!=typeof e)return e;if(nu)for(;t--;)e=Za(e,tu,"");else if(ru)return Qa(function(e,t,n){for(var r,o,i,a,u=Si(e),s=wi(t,u),l=wi(u,u),c=Ya(Xa(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=To(o))in r?Vo.f(r,a,_r(0,i)):r[a]=i;return c.length=f,c}(Ja(e,"\n"),t),"\n");return e},iu=function(e,t){qr(t)&&"cause"in t&&Wo(e,"cause",t.cause)},au=Nr(Nr.bind),uu=function(e,t){return lo(e),void 0===t?e:au?au(e,t):function(){return e.apply(t,arguments)}},su={},lu=Bo("iterator"),cu=Array.prototype,fu=Bo("iterator"),du=function(e){if(null!=e)return co(e,fu)||co(e,"@@iterator")||su[Xi(e)]},pu=xr.TypeError,hu=function(e,t,n){var r,o;Uo(e);try{if(!(r=co(e,"return"))){if("throw"===t)throw n;return n}r=Or(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Uo(r),n},gu=xr.TypeError,vu=function(e,t){this.stopped=e,this.result=t},yu=vu.prototype,mu=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=uu(t,c),g=function(e){return r&&hu(r,"normal",e),new vu(!0,e)},v=function(e){return f?(Uo(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=du(e)))throw gu(uo(e)+" is not iterable");if(function(e){return void 0!==e&&(su.Array===e||cu[lu]===e)}(o)){for(i=0,a=Si(e);a>i;i++)if((u=v(e[i]))&&Yr(yu,u))return u;return new vu(!1)}r=function(e,t){var n=arguments.length<2?du(e):t;if(lo(n))return Uo(Or(n,e));throw pu(uo(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Or(s,r)).done;){try{u=v(l.value)}catch(e){hu(r,"throw",e)}if("object"==typeof u&&u&&Yr(yu,u))return u}return new vu(!1)},bu=function(e,t){return void 0===e?arguments.length<2?"":t:Ji(e)},wu=!Sr((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",_r(1,7)),7!==e.stack)})),Eu=Bo("toStringTag"),xu=xr.Error,Su=[].push,Cu=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Yr(Du,this);Ka?n=Ka(new xu(void 0),o?Wa(this):Du):(n=o?this:ha(Du),Wo(n,Eu,"Error")),Wo(n,"message",bu(t,"")),wu&&Wo(n,"stack",ou(n.stack,1)),iu(n,r);var i=[];return mu(e,Su,{that:i}),Wo(n,"errors",i),n};Ka?Ka(Cu,xu):ji(Cu,xu);var Du=Cu.prototype=ha(xu.prototype,{constructor:_r(1,Cu),message:_r(1,""),name:_r(1,"AggregateError")});$i({global:!0},{AggregateError:Cu});var Ou=Bo("unscopables"),Au=Array.prototype;null==Au[Ou]&&Vo.f(Au,Ou,{configurable:!0,value:ha(null)});var ku,Bu,_u,Fu=function(e){Au[Ou][e]=!0},Tu=Bo("iterator"),Pu=!1;[].keys&&("next"in(_u=[].keys())?(Bu=Wa(Wa(_u)))!==Object.prototype&&(ku=Bu):Pu=!0),(null==ku||Sr((function(){var e={};return ku[Tu].call(e)!==e})))&&(ku={}),Wr(ku[Tu])||hi(ku,Tu,(function(){return this}));var ju={IteratorPrototype:ku,BUGGY_SAFARI_ITERATORS:Pu},Nu=Vo.f,Iu=Bo("toStringTag"),Ru=function(e,t,n){e&&!wo(e=n?e:e.prototype,Iu)&&Nu(e,Iu,{configurable:!0,value:t})},Lu=ju.IteratorPrototype,Mu=function(){return this},zu=pi.PROPER,Uu=pi.CONFIGURABLE,Hu=ju.IteratorPrototype,$u=ju.BUGGY_SAFARI_ITERATORS,Vu=Bo("iterator"),Wu=function(){return this},qu=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=ha(Lu,{next:_r(1,n)}),Ru(e,o,!1),su[o]=Mu}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!$u&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Vu]||p["@@iterator"]||o&&p[o],g=!$u&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=Wa(v.call(new e)))!==Object.prototype&&u.next&&(Wa(u)!==Hu&&(Ka?Ka(u,Hu):Wr(u[Vu])||hi(u,Vu,Wu)),Ru(u,f,!0)),zu&&"values"==o&&h&&"values"!==h.name&&(Uu?Wo(p,"name","values"):(d=!0,g=function(){return Or(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)($u||d||!(l in p))&&hi(p,l,s[l]);else $i({target:t,proto:!0,forced:$u||d},s);return p[Vu]!==g&&hi(p,Vu,g,{name:o}),su[t]=g,s},Gu=li.set,Ku=li.getterFor("Array Iterator"),Yu=qu(Array,"Array",(function(e,t){Gu(this,{type:"Array Iterator",target:Vr(e),index:0,kind:t})}),(function(){var e=Ku(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");su.Arguments=su.Array,Fu("keys"),Fu("values"),Fu("entries");var Xu=Ia.charAt,Zu=li.set,Ju=li.getterFor("String Iterator");qu(String,"String",(function(e){Zu(this,{type:"String Iterator",string:Ji(e),index:0})}),(function(){var e,t=Ju(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Xu(n,r),t.index+=e.length,{value:e,done:!1})}));var Qu,es={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},ts=No("span").classList,ns=ts&&ts.constructor&&ts.constructor.prototype,rs=ns===Object.prototype?void 0:ns,os=Bo("iterator"),is=Bo("toStringTag"),as=Yu.values,us=function(e,t){if(e){if(e[os]!==as)try{Wo(e,os,as)}catch(t){e[os]=as}if(e[is]||Wo(e,is,t),es[t])for(var n in Yu)if(e[n]!==Yu[n])try{Wo(e,n,Yu[n])}catch(t){e[n]=Yu[n]}}};for(var ss in es)us(xr[ss]&&xr[ss].prototype,ss);function ls(){"undefined"==typeof globalThis&&(window.globalThis=window)}function cs(){void 0===wr&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}us(rs,"DOMTokenList"),void 0===e?(window,ls(),cs()):e&&(null===(Qu=e.navigator)||void 0===Qu?void 0:Qu.userAgent.match("QQBrowser"))&&(ls(),cs());var fs=Array.isArray||function(e){return"Array"==_(e)},ds=function(){},ps=[],hs=z("Reflect","construct"),gs=/^\s*(?:class|function)\b/,vs=m(gs.exec),ys=!gs.exec(ds),ms=function(e){if(!b(e))return!1;try{return hs(ds,ps,e),!0}catch(e){return!1}},bs=!hs||w((function(){var e;return ms(ms.call)||!ms(Object)||!ms((function(){e=!0}))||e}))?function(e){if(!b(e))return!1;switch(tn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ys||!!vs(gs,Cn(e))}:ms,ws=we("species"),Es=s.Array,xs=function(e,t){return new(function(e){var t;return fs(e)&&(t=e.constructor,(bs(t)&&(t===Es||fs(t.prototype))||R(t)&&null===(t=t[ws]))&&(t=void 0)),void 0===t?Es:t}(e))(0===t?0:t)},Ss=we("species"),Cs=we("isConcatSpreadable"),Ds=s.TypeError,Os=K>=51||!w((function(){var e=[];return e[Cs]=!1,e.concat()[0]!==e})),As=K>=51||!w((function(){var e=[];return(e.constructor={})[Ss]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),ks=function(e){if(!R(e))return!1;var t=e[Cs];return void 0!==t?!!t:fs(e)};Ke({target:"Array",proto:!0,forced:!Os||!As},{concat:function(e){var t,n,r,o,i,a=le(this),u=xs(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(ks(i=-1===t?a:arguments[t])){if(s+(o=dt(i))>9007199254740991)throw Ds("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&jt(u,s,i[n])}else{if(s>=9007199254740991)throw Ds("Maximum allowed index exceeded");jt(u,s++,i)}return u.length=s,u}});var Bs=Et.f,_s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Fs={f:function(e){return _s&&"Window"==_(e)?function(e){try{return Bs(e)}catch(e){return Rt(_s)}}(e):Bs(I(e))}},Ts=m([].slice),Ps={f:we},js=Ve.f,Ns=function(e){var t=L.Symbol||(L.Symbol={});fe(t,e)||js(t,e,{value:Ps.f(e)})},Is=m([].push),Rs=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=le(s),g=P(h),v=Le(l,c),y=dt(g),m=0,b=f||xs,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Is(w,d)}else switch(e){case 4:return!1;case 7:Is(w,d)}return i?-1:r||o?o:w}},Ls=[Rs(0),Rs(1),Rs(2),Rs(3),Rs(4),Rs(5),Rs(6),Rs(7)][0],Ms=Xe("hidden"),zs=we("toPrimitive"),Us=Rn.set,Hs=Rn.getterFor("Symbol"),$s=Object.prototype,Vs=s.Symbol,Ws=Vs&&Vs.prototype,qs=s.TypeError,Gs=s.QObject,Ks=z("JSON","stringify"),Ys=Be.f,Xs=Ve.f,Zs=Fs.f,Js=O.f,Qs=m([].push),el=ue("symbols"),tl=ue("op-symbols"),nl=ue("string-to-symbol-registry"),rl=ue("symbol-to-string-registry"),ol=ue("wks"),il=!Gs||!Gs.prototype||!Gs.prototype.findChild,al=E&&w((function(){return 7!=Pt(Xs({},"a",{get:function(){return Xs(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Ys($s,t);r&&delete $s[t],Xs(e,t,n),r&&e!==$s&&Xs($s,t,r)}:Xs,ul=function(e,t){var n=el[e]=Pt(Ws);return Us(n,{type:"Symbol",tag:e,description:t}),E||(n.description=t),n},sl=function(e,t,n){e===$s&&sl(tl,t,n),Ue(e);var r=Se(t);return Ue(n),fe(el,r)?(n.enumerable?(fe(e,Ms)&&e[Ms][r]&&(e[Ms][r]=!1),n=Pt(n,{enumerable:A(0,!1)})):(fe(e,Ms)||Xs(e,Ms,A(1,{})),e[Ms][r]=!0),al(e,r,n)):Xs(e,r,n)},ll=function(e,t){Ue(e);var n=I(t),r=Dt(n).concat(pl(n));return Ls(r,(function(t){E&&!S(cl,n,t)||sl(e,t,n[t])})),e},cl=function(e){var t=Se(e),n=S(Js,this,t);return!(this===$s&&fe(el,t)&&!fe(tl,t))&&(!(n||!fe(this,t)||!fe(el,t)||fe(this,Ms)&&this[Ms][t])||n)},fl=function(e,t){var n=I(e),r=Se(t);if(n!==$s||!fe(el,r)||fe(tl,r)){var o=Ys(n,r);return!o||!fe(el,r)||fe(n,Ms)&&n[Ms][r]||(o.enumerable=!0),o}},dl=function(e){var t=Zs(I(e)),n=[];return Ls(t,(function(e){fe(el,e)||fe(gt,e)||Qs(n,e)})),n},pl=function(e){var t=e===$s,n=Zs(t?tl:I(e)),r=[];return Ls(n,(function(e){!fe(el,e)||t&&!fe($s,e)||Qs(r,el[e])})),r};if(Y||(Ws=(Vs=function(){if(U(Ws,this))throw qs("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?dn(arguments[0]):void 0,t=ge(e),n=function(e){this===$s&&S(n,tl,e),fe(this,Ms)&&fe(this[Ms],t)&&(this[Ms][t]=!1),al(this,t,A(1,e))};return E&&il&&al($s,t,{configurable:!0,set:n}),ul(t,e)}).prototype,Hn(Ws,"toString",(function(){return Hs(this).tag})),Hn(Vs,"withoutSetter",(function(e){return ul(ge(e),e)})),O.f=cl,Ve.f=sl,Be.f=fl,Et.f=Fs.f=dl,xt.f=pl,Ps.f=function(e){return ul(we(e),e)},E&&Xs(Ws,"description",{configurable:!0,get:function(){return Hs(this).description}})),Ke({global:!0,wrap:!0,forced:!Y,sham:!Y},{Symbol:Vs}),Ls(Dt(ol),(function(e){Ns(e)})),Ke({target:"Symbol",stat:!0,forced:!Y},{for:function(e){var t=dn(e);if(fe(nl,t))return nl[t];var n=Vs(t);return nl[t]=n,rl[n]=t,n},keyFor:function(e){if(!J(e))throw qs(e+" is not a symbol");if(fe(rl,e))return rl[e]},useSetter:function(){il=!0},useSimple:function(){il=!1}}),Ke({target:"Object",stat:!0,forced:!Y,sham:!E},{create:function(e,t){return void 0===t?Pt(e):ll(Pt(e),t)},defineProperty:sl,defineProperties:ll,getOwnPropertyDescriptor:fl}),Ke({target:"Object",stat:!0,forced:!Y},{getOwnPropertyNames:dl,getOwnPropertySymbols:pl}),Ke({target:"Object",stat:!0,forced:w((function(){xt.f(1)}))},{getOwnPropertySymbols:function(e){return xt.f(le(e))}}),Ks){var hl=!Y||w((function(){var e=Vs();return"[null]"!=Ks([e])||"{}"!=Ks({a:e})||"{}"!=Ks(Object(e))}));Ke({target:"JSON",stat:!0,forced:hl},{stringify:function(e,t,n){var r=Ts(arguments),o=t;if((R(t)||void 0!==e)&&!J(e))return fs(t)||(t=function(e,t){if(b(o)&&(t=S(o,this,e,t)),!J(t))return t}),r[1]=t,p(Ks,null,r)}})}if(!Ws[zs]){var gl=Ws.valueOf;Hn(Ws,zs,(function(e){return S(gl,this)}))}Xn(Vs,"Symbol"),gt[Ms]=!0,Ns("asyncIterator"),Ns("hasInstance"),Ns("isConcatSpreadable"),Ns("iterator"),Ns("match"),Ns("matchAll"),Ns("replace"),Ns("search"),Ns("species"),Ns("split"),Ns("toPrimitive"),Ns("toStringTag"),Ns("unscopables"),Xn(s.JSON,"JSON",!0);var vl=L.Symbol;Ns("asyncDispose"),Ns("dispose"),Ns("matcher"),Ns("metadata"),Ns("observable"),Ns("patternMatch"),Ns("replaceAll");var yl=vl,ml=Ps.f("iterator"),bl=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(o((function(e){function t(n){return"function"==typeof yl&&"symbol"==typeof ml?(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 yl&&e.constructor===yl&&e!==yl.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}))),wl=Lo.f,El=Sr((function(){wl(1)}));if($i({target:"Object",stat:!0,forced:!Cr||El,sham:!Cr},{getOwnPropertyDescriptor:function(e,t){return wl(Vr(e),t)}}),"object"===(void 0===e?"undefined":bl(e))){var xl=Object.getOwnPropertyDescriptor(e,"window");e.window&&!xl.set||(e.window=e,e.requestAnimationFrame=function(){},e.navigator={userAgent:""},e.location={hostname:"0.0.0.0",port:0,protocol:"http:"},e.btoa=function(){},e.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=e.document&&null==e.document.getElementsByTagName&&(e.document.getElementsByTagName=function(){return[]})}function Sl(e){return"[object Object]"===Object.prototype.toString.call(e)}function Cl(e){var t,n;return!1!==Sl(e)&&(void 0===(t=e.constructor)||!1!==Sl(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Dl(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ol(e){return!!e&&!!e[cc]}function Al(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===fc}(e)||Array.isArray(e)||!!e[lc]||!!e.constructor[lc]||Tl(e)||Pl(e))}function kl(e,t,n){void 0===n&&(n=!1),0===Bl(e)?(n?Object.keys:dc)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Bl(e){var t=e[cc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Tl(e)?2:Pl(e)?3:0}function _l(e,t){return 2===Bl(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Fl(e,t,n){var r=Bl(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Tl(e){return ic&&e instanceof Map}function Pl(e){return ac&&e instanceof Set}function jl(e){return e.o||e.t}function Nl(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=pc(e);delete t[cc];for(var n=dc(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Il(e,t){return void 0===t&&(t=!1),Ll(e)||Ol(e)||!Al(e)||(Bl(e)>1&&(e.set=e.add=e.clear=e.delete=Rl),Object.freeze(e),t&&kl(e,(function(e,t){return Il(t,!0)}),!0)),e}function Rl(){Dl(2)}function Ll(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Ml(e){var t=hc[e];return t||Dl(18,e),t}function zl(){return rc}function Ul(e,t){t&&(Ml("Patches"),e.u=[],e.s=[],e.v=t)}function Hl(e){$l(e),e.p.forEach(Wl),e.p=null}function $l(e){e===rc&&(rc=e.l)}function Vl(e){return rc={p:[],l:rc,h:e,m:!0,_:0}}function Wl(e){var t=e[cc];0===t.i||1===t.i?t.j():t.O=!0}function ql(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Ml("ES5").S(t,e,r),r?(n[cc].P&&(Hl(t),Dl(4)),Al(e)&&(e=Gl(t,e),t.l||Yl(t,e)),t.u&&Ml("Patches").M(n[cc],e,t.u,t.s)):e=Gl(t,n,[]),Hl(t),t.u&&t.v(t.u,t.s),e!==sc?e:void 0}function Gl(e,t,n){if(Ll(t))return t;var r=t[cc];if(!r)return kl(t,(function(o,i){return Kl(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Yl(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Nl(r.k):r.o;kl(3===r.i?new Set(o):o,(function(t,i){return Kl(e,r,o,t,i,n)})),Yl(e,o,!1),n&&e.u&&Ml("Patches").R(r,n,e.u,e.s)}return r.o}function Kl(e,t,n,r,o,i){if(Ol(o)){var a=Gl(e,o,i&&t&&3!==t.i&&!_l(t.D,r)?i.concat(r):void 0);if(Fl(n,r,a),!Ol(a))return;e.m=!1}if(Al(o)&&!Ll(o)){if(!e.h.F&&e._<1)return;Gl(e,o),t&&t.A.l||Yl(e,o)}}function Yl(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Il(t,n)}function Xl(e,t){var n=e[cc];return(n?jl(n):e)[t]}function Zl(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Jl(e){e.P||(e.P=!0,e.l&&Jl(e.l))}function Ql(e){e.o||(e.o=Nl(e.t))}function ec(e,t,n){var r=Tl(t)?Ml("MapSet").N(t,n):Pl(t)?Ml("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:zl(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=gc;n&&(o=[r],i=vc);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):Ml("ES5").J(t,n);return(n?n.A:zl()).p.push(r),r}function tc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Nl(e)}var nc,rc,oc="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ic="undefined"!=typeof Map,ac="undefined"!=typeof Set,uc="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,sc=oc?Symbol.for("immer-nothing"):((nc={})["immer-nothing"]=!0,nc),lc=oc?Symbol.for("immer-draftable"):"__$immer_draftable",cc=oc?Symbol.for("immer-state"):"__$immer_state",fc=""+Object.prototype.constructor,dc="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,pc=Object.getOwnPropertyDescriptors||function(e){var t={};return dc(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},hc={},gc={get:function(e,t){if(t===cc)return e;var n=jl(e);if(!_l(n,t))return function(e,t,n){var r,o=Zl(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Al(r)?r:r===Xl(e.t,t)?(Ql(e),e.o[t]=ec(e.A.h,r,e)):r},has:function(e,t){return t in jl(e)},ownKeys:function(e){return Reflect.ownKeys(jl(e))},set:function(e,t,n){var r=Zl(jl(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Xl(jl(e),t),i=null==o?void 0:o[cc];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||_l(e.t,t)))return!0;Ql(e),Jl(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==Xl(e.t,t)||t in e.t?(e.D[t]=!1,Ql(e),Jl(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=jl(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Dl(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Dl(12)}},vc={};kl(gc,(function(e,t){vc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),vc.deleteProperty=function(e,t){return gc.deleteProperty.call(this,e[0],t)},vc.set=function(e,t,n){return gc.set.call(this,e[0],t,n,e[0])};var yc=new(function(){function e(e){var t=this;this.g=uc,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&Dl(6),void 0!==r&&"function"!=typeof r&&Dl(7),Al(e)){var u=Vl(t),s=ec(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?Hl(u):$l(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Ul(u,r),ql(e,u)}),(function(e){throw Hl(u),e})):(Ul(u,r),ql(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===sc)return;return void 0===a&&(a=e),t.F&&Il(a,!0),a}Dl(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Al(e)||Dl(8),Ol(e)&&(e=function(e){return Ol(e)||Dl(22,e),function e(t){if(!Al(t))return t;var n,r=t[cc],o=Bl(t);if(r){if(!r.P&&(r.i<4||!Ml("ES5").K(r)))return r.t;r.I=!0,n=tc(t,o),r.I=!1}else n=tc(t,o);return kl(n,(function(t,o){r&&function(e,t){return 2===Bl(e)?e.get(t):e[t]}(r.t,t)===o||Fl(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=Vl(this),n=ec(this,e,void 0);return n[cc].C=!0,$l(t),n},t.finishDraft=function(e,t){var n=(e&&e[cc]).A;return Ul(n,t),ql(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!uc&&Dl(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=Ml("Patches").$;return Ol(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}()),mc=yc.produce;yc.produceWithPatches.bind(yc),yc.setAutoFreeze.bind(yc),yc.setUseProxies.bind(yc),yc.applyPatches.bind(yc);var bc=yc.createDraft.bind(yc),wc=yc.finishDraft.bind(yc);function Ec(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xc=new WeakMap,Sc=new WeakMap,Cc=new WeakMap,Dc=new WeakMap,Oc=new WeakMap,Ac=new WeakMap;function kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kc(Object(n),!0).forEach((function(t){Ec(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Fc,Tc=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?Lc(e):e,o=Fc.None,i=Fc.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=Xc(s,l);if([o,i]=n?[i,c]:[c,o],Zc(o,Fc.ZWJ)&&Zc(i,Fc.ExtPict)&&!tf(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(Zc(o,Fc.RI)&&Zc(i,Fc.RI)&&!(u=null!==u?!u:!!n||rf(e.substring(0,e.length-a))))break;if(o!==Fc.None&&i!==Fc.None&&Qc(o,i))break;a+=s.length}return a||1},Pc=/\s/,jc=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Nc=/['\u2018\u2019]/,Ic=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},Rc=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Pc.test(t))return!1;if(Nc.test(t)){var o=Tc(n,r),[i,a]=Ic(n,o,r);if(e(i,a,r))return!0}return!jc.test(t)},Lc=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(zc(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(Mc(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},Mc=e=>e>=55296&&e<=56319,zc=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Fc||(Fc={}));var Uc=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,Hc=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,$c=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,Vc=/^[\u1100-\u115F\uA960-\uA97C]$/,Wc=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,qc=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Gc=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Kc=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,Yc=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,Xc=(e,t)=>{var n=Fc.Any;return-1!==e.search(Uc)&&(n|=Fc.Extend),8205===t&&(n|=Fc.ZWJ),t>=127462&&t<=127487&&(n|=Fc.RI),-1!==e.search(Hc)&&(n|=Fc.Prepend),-1!==e.search($c)&&(n|=Fc.SpacingMark),-1!==e.search(Vc)&&(n|=Fc.L),-1!==e.search(Wc)&&(n|=Fc.V),-1!==e.search(qc)&&(n|=Fc.T),-1!==e.search(Gc)&&(n|=Fc.LV),-1!==e.search(Kc)&&(n|=Fc.LVT),-1!==e.search(Yc)&&(n|=Fc.ExtPict),n};function Zc(e,t){return 0!=(e&t)}var Jc=[[Fc.L,Fc.L|Fc.V|Fc.LV|Fc.LVT],[Fc.LV|Fc.V,Fc.V|Fc.T],[Fc.LVT|Fc.T,Fc.T],[Fc.Any,Fc.Extend|Fc.ZWJ],[Fc.Any,Fc.SpacingMark],[Fc.Prepend,Fc.Any],[Fc.ZWJ,Fc.ExtPict],[Fc.RI,Fc.RI]];function Qc(e,t){return-1===Jc.findIndex(n=>Zc(e,n[0])&&Zc(t,n[1]))}var ef=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,tf=e=>-1!==e.search(ef),nf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,rf=e=>{var t=e.match(nf);return null!==t&&t[0].length/2%2==1},of=e=>Cl(e)&&yf.isNodeList(e.children)&&!df.isEditor(e),af={isAncestor:e=>Cl(e)&&yf.isNodeList(e.children),isElement:of,isElementList:e=>Array.isArray(e)&&e.every(e=>af.isElement(e)),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return of(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},uf=["text"],sf=["text"];function lf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lf(Object(n),!0).forEach((function(t){Ec(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ff=new WeakMap,df={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=df.path(e,o),u="lowest"===r;for(var[s,l]of df.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!If.isText(s)&&!Ef.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:df.point(e,t,{edge:"end"}),focus:df.end(e,[])},{distance:i=1}=r,a=0;for(var u of df.positions(e,cf(cf({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:df.start(e,[]),focus:df.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of df.positions(e,cf(cf({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[df.start(e,t),df.end(e,t)],end:(e,t)=>df.point(e,t,{edge:"end"}),first(e,t){var n=df.path(e,t,{edge:"start"});return df.node(e,n)},fragment(e,t){var n=df.range(e,t);return yf.fragment(e,n)},hasBlocks:(e,t)=>t.children.some(t=>df.isBlock(e,t)),hasInlines:(e,t)=>t.children.some(t=>If.isText(t)||df.isInline(e,t)),hasTexts:(e,t)=>t.children.every(e=>If.isText(e)),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>af.isElement(t)&&!e.isInline(t),isEditor(e){if(!Cl(e))return!1;var t=ff.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||Cl(e.marks))&&(null===e.selection||Bf.isRange(e.selection))&&yf.isNodeList(e.children)&&wf.isOperationList(e.operations);return ff.set(e,n),n},isEnd(e,t,n){var r=df.end(e,n);return Df.equals(t,r)},isEdge:(e,t,n)=>df.isStart(e,t,n)||df.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&If.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>af.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Cc.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=df.start(e,n);return Df.equals(t,r)},isVoid:(e,t)=>af.isElement(t)&&e.isVoid(t),last(e,t){var n=df.path(e,t,{edge:"end"});return df.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=df.path(e,t,n);return[yf.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=df.path(e,n);for(var[s,l]of yf.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&df.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(Bf.isExpanded(n)){var[r]=df.nodes(e,{match:If.isText});if(r){var[o]=r;return _c(o,uf)}return{}}var{anchor:i}=n,{path:a}=i,[u]=df.leaf(e,a);if(0===i.offset){var s=df.previous(e,{at:a,match:If.isText}),l=df.above(e,{match:t=>df.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;Ef.isAncestor(d,f)&&(u=c)}}return _c(u,sf)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=df.after(e,i,{voids:r});if(a){var[,u]=df.last(e,[]),s=[a.path,u];if(Ef.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Ef.isPath(i)){var[l]=df.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=df.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=df.path(e,t,n);return[yf.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(pf.isSpan(n))s=n[0],l=n[1];else{var c=df.path(e,n,{edge:"start"}),f=df.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=yf.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&df.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===Ef.compare(v,d[1]);if("highest"!==r||!y)if(u(g,v))if("lowest"===r&&y)d=[g,v];else{var m="lowest"===r?d:[g,v];m&&(o?h.push(m):yield m),d=[g,v]}else if(o&&!y&&If.isText(g))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>xc.get(e)||[];if(df.isNormalizing(e)){if(n){var o=Array.from(yf.nodes(e),e=>{var[,t]=e;return t});xc.set(e,o)}0!==r(e).length&&df.withoutNormalizing(e,()=>{for(var t of r(e))if(yf.has(e,t)){var n=df.node(e,t),[o,i]=n;af.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=r(e).pop();if(yf.has(e,s)){var l=df.node(e,s);e.normalizeNode(l)}u++}})}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=df.path(e,t,n),o=Ef.parent(r);return df.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Ef.isPath(t))if("start"===o){var[,i]=yf.first(e,t);t=i}else if("end"===o){var[,a]=yf.last(e,t);t=a}return Bf.isRange(t)&&(t="start"===o?Bf.start(t):"end"===o?Bf.end(t):Ef.common(t.anchor.path,t.focus.path)),Df.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>yf.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return df.pathRefs(e).delete(o),o.current=null,t}};return df.pathRefs(e).add(o),o},pathRefs(e){var t=Dc.get(e);return t||(t=new Set,Dc.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Ef.isPath(t)){var o;if("end"===r){var[,i]=yf.last(e,t);o=i}else{var[,a]=yf.first(e,t);o=a}var u=yf.get(e,o);if(!If.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if(Bf.isRange(t)){var[s,l]=Bf.edges(t);return"start"===r?s:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return df.pointRefs(e).delete(o),o.current=null,t}};return df.pointRefs(e).add(o),o},pointRefs(e){var t=Oc.get(e);return t||(t=new Set,Oc.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=df.range(e,n),[u,s]=Bf.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,h=0;for(var[g,v]of df.nodes(e,{at:n,reverse:o,voids:i})){if(af.isElement(g)){if(!i&&e.isVoid(g)){yield df.start(e,v);continue}if(e.isInline(g))continue;if(df.hasInlines(e,g)){var y=Ef.isAncestor(v,s.path)?s:df.end(e,v),m=Ef.isAncestor(v,u.path)?u:df.start(e,v);f=df.string(e,{anchor:m,focus:y},{voids:i}),c=!0}}if(If.isText(g)){var b=Ef.equals(v,l.path);for(b?(p=o?l.offset:g.text.length-l.offset,h=l.offset):(p=g.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:v,offset:h},c=!1);;){if(0===d){if(""===f)break;d=w(f,r,o),f=Ic(f,d,o)[1]}if(h=o?h-d:h+d,(p-=d)<0){d=-p;break}d=0,yield{path:v,offset:h}}}}}function w(e,t,n){return"character"===t?Tc(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=Tc(e,t),[i,a]=Ic(e,o,t);if(Rc(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=df.before(e,i,{voids:r});if(a){var[,u]=df.first(e,[]),s=[a.path,u];if(Ef.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Ef.isPath(i)){var[l]=df.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=df.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>Bf.isRange(t)&&!n?t:{anchor:df.start(e,t),focus:df.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return df.rangeRefs(e).delete(o),o.current=null,t}};return df.rangeRefs(e).add(o),o},rangeRefs(e){var t=Ac.get(e);return t||(t=new Set,Ac.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Cc.set(e,t)},start:(e,t)=>df.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=df.range(e,t),[i,a]=Bf.edges(o),u="";for(var[s,l]of df.nodes(e,{at:o,match:If.isText,voids:r})){var c=s.text;Ef.equals(l,a.path)&&(c=c.slice(0,a.offset)),Ef.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=Bf.edges(t);if(0!==o.offset||0!==i.offset||Bf.isCollapsed(t))return t;var a=df.above(e,{at:i,match:t=>df.isBlock(e,t)}),u=a?a[1]:[],s={anchor:df.start(e,[]),focus:i},l=!0;for(var[c,f]of df.nodes(e,{at:s,match:If.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||Ef.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return df.above(e,cf(cf({},t),{},{match:t=>df.isVoid(e,t)}))},withoutNormalizing(e,t){var n=df.isNormalizing(e);df.setNormalizing(e,!1);try{t()}finally{df.setNormalizing(e,n)}df.normalize(e)}},pf={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Ef.isPath)},hf=["children"],gf=["text"],vf=new WeakMap,yf={ancestor(e,t){var n=yf.get(e,t);if(If.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Ef.ancestors(t,n)){var o=[yf.ancestor(e,r),r];yield o}},child(e,t){if(If.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=yf.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=yf.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=Ef.common(t,n);return[yf.get(e,r),r]},descendant(e,t){var n=yf.get(e,t);if(df.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of yf.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of yf.nodes(e,t))af.isElement(n)&&(yield[n,r])},extractProps:e=>af.isAncestor(e)?_c(e,hf):_c(e,gf),first(e,t){for(var n=t.slice(),r=yf.get(e,n);r&&!If.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(If.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));return mc({children:e.children},e=>{var[n,r]=Bf.edges(t),o=yf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Bf.includes(t,n)}});for(var[,i]of o){if(!Bf.includes(t,i)){var a=yf.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(Ef.equals(i,r.path)){var s=yf.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(Ef.equals(i,n.path)){var l=yf.leaf(e,i);l.text=l.text.slice(n.offset)}}df.isEditor(e)&&(e.selection=null)}).children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(If.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(If.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>If.isText(e)||af.isElement(e)||df.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=vf.get(e);if(void 0!==t)return t;var n=e.every(e=>yf.isNode(e));return vf.set(e,n),n},last(e,t){for(var n=t.slice(),r=yf.get(e,n);r&&!If.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=yf.get(e,t);if(!If.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Ef.levels(t,n)){var o=yf.get(e,r);yield[o,r]}},matches:(e,t)=>af.isElement(e)&&af.isElementProps(t)&&af.matches(e,t)||If.isText(e)&&If.isTextProps(t)&&If.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?Ef.isBefore(u,i):Ef.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||If.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=Ef.next(u);if(yf.has(e,l)){u=l,s=yf.get(e,u);continue}}r&&0!==u[u.length-1]?(u=Ef.previous(u),s=yf.get(e,u)):(u=Ef.parent(u),s=yf.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;Ef.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=yf.get(e,u)}},parent(e,t){var n=Ef.parent(t),r=yf.get(e,n);if(If.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>If.isText(e)?e.text:e.children.map(yf.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of yf.nodes(e,t))If.isText(n)&&(yield[n,r])}};function mf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mf(Object(n),!0).forEach((function(t){Ec(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wf={isNodeOperation:e=>wf.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Cl(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Ef.isPath(e.path)&&yf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Ef.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Ef.isPath(e.path)&&Cl(e.properties);case"move_node":return Ef.isPath(e.path)&&Ef.isPath(e.newPath);case"set_node":return Ef.isPath(e.path)&&Cl(e.properties)&&Cl(e.newProperties);case"set_selection":return null===e.properties&&Bf.isRange(e.newProperties)||null===e.newProperties&&Bf.isRange(e.properties)||Cl(e.properties)&&Cl(e.newProperties);case"split_node":return Ef.isPath(e.path)&&"number"==typeof e.position&&Cl(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(e=>wf.isOperation(e)),isSelectionOperation:e=>wf.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>wf.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return bf(bf({},e),{},{type:"remove_node"});case"insert_text":return bf(bf({},e),{},{type:"remove_text"});case"merge_node":return bf(bf({},e),{},{type:"split_node",path:Ef.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Ef.equals(t,n))return e;if(Ef.isSibling(n,t))return bf(bf({},e),{},{path:t,newPath:n});var r=Ef.transform(n,e),o=Ef.transform(Ef.next(n),e);return bf(bf({},e),{},{path:r,newPath:o});case"remove_node":return bf(bf({},e),{},{type:"insert_node"});case"remove_text":return bf(bf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return bf(bf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return bf(bf({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return bf(bf({},e),{},{type:"merge_node",path:Ef.next(e.path)})}}},Ef={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Ef.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Ef.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Ef.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Ef.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Ef.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Ef.compare(e,t),isBefore:(e,t)=>-1===Ef.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Ef.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Ef.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Ef.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Ef.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Ef.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Ef.isAncestor(t,e)&&!Ef.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return mc(e,r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(Ef.equals(i,r)||Ef.endsBefore(i,r)||Ef.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Ef.equals(a,r)||Ef.isAncestor(a,r))return null;Ef.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;Ef.equals(u,r)||Ef.endsBefore(u,r)?r[u.length-1]-=1:Ef.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(Ef.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Ef.endsBefore(l,r)?r[l.length-1]+=1:Ef.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(Ef.equals(f,d))return;if(Ef.isAncestor(f,r)||Ef.equals(f,r)){var p=d.slice();return Ef.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}Ef.isSibling(f,d)&&(Ef.isAncestor(d,r)||Ef.equals(d,r))?Ef.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Ef.endsBefore(d,r)||Ef.equals(d,r)||Ef.isAncestor(d,r)?(Ef.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):Ef.endsBefore(f,r)&&(Ef.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}})}},xf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Ef.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Sf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sf(Object(n),!0).forEach((function(t){Ec(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Df={compare(e,t){var n=Ef.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Df.compare(e,t),isBefore:(e,t)=>-1===Df.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Ef.equals(e.path,t.path),isPoint:e=>Cl(e)&&"number"==typeof e.offset&&Ef.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return mc(e,e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=Ef.transform(o,t,n);break;case"insert_text":Ef.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Ef.equals(t.path,o)&&(e.offset+=t.position),e.path=Ef.transform(o,t,n);break;case"remove_text":Ef.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Ef.equals(t.path,o)||Ef.isAncestor(t.path,o))return null;e.path=Ef.transform(o,t,n);break;case"split_node":if(Ef.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=Ef.transform(o,t,Cf(Cf({},n),{},{affinity:"forward"})))}else e.path=Ef.transform(o,t,n)}})}},Of={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Df.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Af=["anchor","focus"];function kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Bf={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Bf.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Bf.edges(e);return t},equals:(e,t)=>Df.equals(e.anchor,t.anchor)&&Df.equals(e.focus,t.focus),includes(e,t){if(Bf.isRange(t)){if(Bf.includes(e,t.anchor)||Bf.includes(e,t.focus))return!0;var[n,r]=Bf.edges(e),[o,i]=Bf.edges(t);return Df.isBefore(n,o)&&Df.isAfter(r,i)}var[a,u]=Bf.edges(e),s=!1,l=!1;return Df.isPoint(t)?(s=Df.compare(t,a)>=0,l=Df.compare(t,u)<=0):(s=Ef.compare(t,a.path)>=0,l=Ef.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=_c(e,Af),[r,o]=Bf.edges(e),[i,a]=Bf.edges(t),u=Df.isBefore(r,i)?i:r,s=Df.isBefore(o,a)?o:a;return Df.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kf(Object(n),!0).forEach((function(t){Ec(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return Df.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Df.equals(t,n)},isExpanded:e=>!Bf.isCollapsed(e),isForward:e=>!Bf.isBackward(e),isRange:e=>Cl(e)&&Df.isPoint(e.anchor)&&Df.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Bf.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return mc(e,e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=Bf.isCollapsed(e);Bf.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?Bf.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Df.transform(e.anchor,t,{affinity:r}),s=Df.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s})}},_f={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Bf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Ff=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Cl(r)&&Cl(o)){if(!Ff(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Tf=["text"],Pf=["anchor","focus"];function jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jf(Object(n),!0).forEach((function(t){Ec(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var If={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return _c(e,Tf)}return Ff(r?o(e):e,r?o(t):t)},isText:e=>Cl(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every(e=>If.isText(e)),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Nf({},e)];for(var r of t){var o=_c(r,Pf),[i,a]=Bf.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&0!==f)u.push(l);else{var d=l,p=void 0,h=void 0;if(a.offset<s){var g=a.offset-f;h=Nf(Nf({},d),{},{text:d.text.slice(g)}),d=Nf(Nf({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=Nf(Nf({},d),{},{text:d.text.slice(0,v)}),d=Nf(Nf({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function Rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rf(Object(n),!0).forEach((function(t){Ec(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mf=["text"],zf=["children"];function Uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uf(Object(n),!0).forEach((function(t){Ec(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $f={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};df.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(yf.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?df.end(e,[]):[0],s=!0),null==s&&(s=!1),Bf.isRange(a))if(r||(a=df.unhangRange(e,a)),Bf.isCollapsed(a))a=a.anchor;else{var[,c]=Bf.edges(a),f=df.pointRef(e,c);Qf.delete(e,{at:a}),a=f.unref()}if(Df.isPoint(a)){null==u&&(u=If.isText(l)?e=>If.isText(e):e.isInline(l)?t=>If.isText(t)||df.isInline(e,t):t=>df.isBlock(e,t));var[d]=df.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=df.pathRef(e,p),g=df.isEnd(e,a,p);Qf.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?Ef.next(v):v}var y=Ef.parent(a),m=a[a.length-1];if(o||!df.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b}),a=Ef.next(a)}if(a=Ef.previous(a),s){var E=df.end(e,a);E&&Qf.select(e,E)}}}})},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};df.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Ef.isPath(n)?qf(e,n):t=>df.isBlock(e,t)),n){var a=df.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,t=>{var[,n]=t;return df.pathRef(e,n)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=df.node(e,Ef.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=Ef.next(d);Qf.moveNodes(e,{at:l,to:g,voids:o}),Qf.removeNodes(e,{at:d,voids:o})}else if(0===p)Qf.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=Ef.next(d);Qf.moveNodes(e,{at:l,to:v,voids:o})}else{var y=Ef.next(l),m=Ef.next(d);Qf.splitNodes(e,{at:y,voids:o}),Qf.moveNodes(e,{at:l,to:m,voids:o})}}}})},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};df.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(Ef.isPath(r)){var[u]=df.parent(e,r);n=e=>u.children.includes(e)}else n=t=>df.isBlock(e,t);if(!o&&Bf.isRange(r)&&(r=df.unhangRange(e,r)),Bf.isRange(r))if(Bf.isCollapsed(r))r=r.anchor;else{var[,s]=Bf.edges(r),l=df.pointRef(e,s);Qf.delete(e,{at:r}),r=l.unref(),null==t.at&&Qf.select(e,r)}var[c]=df.nodes(e,{at:r,match:n,voids:i,mode:a}),f=df.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,g]=f;if(0!==p.length&&0!==g.length){var v,y,m=Ef.next(g),b=Ef.common(p,g),w=Ef.isSibling(p,g),E=Array.from(df.levels(e,{at:p}),e=>{var[t]=e;return t}).slice(b.length).slice(0,-1),x=df.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&Vf(e,t)}),S=x&&df.pathRef(e,x[1]);if(If.isText(d)&&If.isText(h)){var C=_c(d,Mf);y=h.text.length,v=C}else{if(!af.isElement(d)||!af.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));C=_c(d,zf),y=h.children.length,v=C}w||Qf.moveNodes(e,{at:p,to:m,voids:i}),S&&Qf.removeNodes(e,{at:S.current,voids:i}),af.isElement(h)&&df.isEmpty(e,h)||If.isText(h)&&""===h.text&&0!==g[g.length-1]?Qf.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),S&&S.unref()}}}})},moveNodes(e,t){df.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Ef.isPath(r)?qf(e,r):t=>df.isBlock(e,t));var u=df.pathRef(e,n),s=df.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,t=>{var[,n]=t;return df.pathRef(e,n)});for(var c of l){var f=c.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&Ef.isSibling(d,f)&&Ef.isAfter(d,f)&&(u.current=Ef.next(u.current))}u.unref()}})},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};df.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Ef.isPath(i)?qf(e,i):t=>df.isBlock(e,t)),!n&&Bf.isRange(i)&&(i=df.unhangRange(e,i));var u=df.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,t=>{var[,n]=t;return df.pathRef(e,n)});for(var l of s){var c=l.unref();if(c){var[f]=df.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};df.withoutNormalizing(e,()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(null==r&&(r=Ef.isPath(o)?qf(e,o):t=>df.isBlock(e,t)),!i&&Bf.isRange(o)&&(o=df.unhangRange(e,o)),u&&Bf.isRange(o)){if(Bf.isCollapsed(o)&&df.leaf(e,o.anchor)[0].text.length>0)return;var l=df.rangeRef(e,o,{affinity:"inward"}),[c,f]=Bf.edges(o),d="lowest"===a?"lowest":"highest",p=df.isEnd(e,f,f.path);Qf.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=df.isStart(e,c,c.path);Qf.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&Qf.select(e,o)}for(var[g,v]of df.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==v.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(y[w]=g[w]),null!=t[w]&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:v,properties:y,newProperties:m})}}}})},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};df.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>df.isBlock(e,t)),Bf.isRange(i)&&(i=Wf(e,i)),Ef.isPath(i)){var s=i,l=df.point(e,s),[c]=df.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=df.pointRef(e,i,{affinity:"backward"}),[d]=df.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=df.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(af.isElement(h)&&e.isInline(h)){var v=df.after(e,g);if(!v){var y=Ef.next(g);Qf.insertNodes(e,{text:""},{at:y,voids:r}),v=df.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var m=df.pointRef(e,i),b=i.path.length-a,[,w]=d,E=i.path.slice(0,b),x=0===a?i.offset:i.path[b]+0;for(var[S,C]of df.levels(e,{at:E,reverse:!0,voids:r})){var D=!1;if(C.length<w.length||0===C.length||!r&&df.isVoid(e,S))break;var O=f.current,A=df.isEnd(e,O,C);if(u||!f||!df.isEdge(e,O,C)){D=!0;var k=yf.extractProps(S);e.apply({type:"split_node",path:C,position:x,properties:k})}x=C[C.length-1]+(D||A?1:0)}if(null==t.at){var B=m.current||df.end(e,[]);Qf.select(e,B)}f.unref(),m.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;Qf.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};df.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Ef.isPath(i)?qf(e,i):t=>df.isBlock(e,t)),Ef.isPath(i)&&(i=df.range(e,i));var u=Bf.isRange(i)?df.rangeRef(e,i):null,s=df.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,t=>{var[,n]=t;return df.pathRef(e,n)}).reverse(),c=function(t){var n=t.unref(),[i]=df.node(e,n),a=df.range(e,n);r&&u&&(a=Bf.intersection(u.current,a)),Qf.liftNodes(e,{at:a,match:e=>af.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};df.withoutNormalizing(e,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=Ef.isPath(u)?qf(e,u):e.isInline(t)?t=>df.isInline(e,t)||If.isText(t):t=>df.isBlock(e,t)),o&&Bf.isRange(u)){var[s,l]=Bf.edges(u),c=df.rangeRef(e,u,{affinity:"inward"});Qf.splitNodes(e,{at:l,match:a,voids:i}),Qf.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&Qf.select(e,u)}var f=Array.from(df.nodes(e,{at:u,match:e.isInline(t)?t=>df.isBlock(e,t):e=>df.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=Bf.isRange(u)?Bf.intersection(u,df.range(e,d)):u;if(p){var h=Array.from(df.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0&&"continue"===function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=Ef.equals(o,a)?Ef.parent(o):Ef.common(o,a),s=df.range(e,o,a),l=df.node(e,u),[c]=l,f=u.length+1,d=Ef.next(a.slice(0,f)),p=Hf(Hf({},t),{},{children:[]});Qf.insertNodes(e,p,{at:d,voids:i}),Qf.moveNodes(e,{at:s,match:e=>af.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}())continue}}}})}},Vf=(e,t)=>{if(af.isElement(t)){var n=t;return!!df.isVoid(e,t)||1===n.children.length&&Vf(e,n.children[0])}return!df.isEditor(t)},Wf=(e,t)=>{if(Bf.isCollapsed(t))return t.anchor;var[,n]=Bf.edges(t),r=df.pointRef(e,n);return Qf.delete(e,{at:t}),r.unref()},qf=(e,t)=>{var[n]=df.node(e,t);return e=>e===n};function Gf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gf(Object(n),!0).forEach((function(t){Ec(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yf={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)Qf.select(e,r.anchor);else if("focus"===n)Qf.select(e,r.focus);else if("start"===n){var[o]=Bf.edges(r);Qf.select(e,o)}else if("end"===n){var[,i]=Bf.edges(r);Qf.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=Bf.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Bf.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?df.before(e,u,l):df.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?df.before(e,s,l):df.after(e,s,l);d&&(c.focus=d)}Qf.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=df.range(e,t),n)Qf.setSelection(e,t);else{if(!Bf.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=Bf.isBackward(r)?"focus":"anchor"),"end"===o&&(o=Bf.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;Qf.setSelection(e,{["anchor"===o?"anchor":"focus"]:Kf(Kf({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Df.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Df.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},Xf={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};df.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(Bf.isRange(a)&&Bf.isCollapsed(a)&&(a=a.anchor),Df.isPoint(a)){var s=df.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?df.before(e,a,c)||df.start(e,[]):df.after(e,a,c)||df.end(e,[])},u=!0}}if(Ef.isPath(a))Qf.removeNodes(e,{at:a,voids:i});else if(!Bf.isCollapsed(a)){if(!u){var[,f]=Bf.edges(a),d=df.end(e,[]);Df.equals(f,d)||(a=df.unhangRange(e,a,{voids:i}))}var[p,h]=Bf.edges(a),g=df.above(e,{match:t=>df.isBlock(e,t),at:p,voids:i}),v=df.above(e,{match:t=>df.isBlock(e,t),at:h,voids:i}),y=g&&v&&!Ef.equals(g[1],v[1]),m=Ef.equals(p.path,h.path),b=i?null:df.void(e,{at:p,mode:"highest"}),w=i?null:df.void(e,{at:h,mode:"highest"});if(b){var E=df.before(e,p);E&&g&&Ef.isAncestor(g[1],E.path)&&(p=E)}if(w){var x=df.after(e,h);x&&v&&Ef.isAncestor(v[1],x.path)&&(h=x)}var S,C=[];for(var D of df.nodes(e,{at:a,voids:i})){var[O,A]=D;S&&0===Ef.compare(A,S)||(!i&&df.isVoid(e,O)||!Ef.isCommon(A,p.path)&&!Ef.isCommon(A,h.path))&&(C.push(D),S=A)}var k=Array.from(C,t=>{var[,n]=t;return df.pathRef(e,n)}),B=df.pointRef(e,p),_=df.pointRef(e,h);if(!m&&!b){var F=B.current,[T]=df.leaf(e,F),{path:P}=F,{offset:j}=p,N=T.text.slice(j);N.length>0&&e.apply({type:"remove_text",path:P,offset:j,text:N})}for(var I of k){var R=I.unref();Qf.removeNodes(e,{at:R,voids:i})}if(!w){var L=_.current,[M]=df.leaf(e,L),{path:z}=L,U=m?p.offset:0,H=M.text.slice(U,h.offset);H.length>0&&e.apply({type:"remove_text",path:z,offset:U,text:H})}!m&&y&&_.current&&B.current&&Qf.mergeNodes(e,{at:_.current,hanging:!0,voids:i});var $=n?B.unref()||_.unref():_.unref()||B.unref();null==t.at&&$&&Qf.select(e,$)}}})},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};df.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Bf.isRange(i))if(r||(i=df.unhangRange(e,i)),Bf.isCollapsed(i))i=i.anchor;else{var[,a]=Bf.edges(i);if(!o&&df.void(e,{at:a}))return;var u=df.pointRef(e,a);Qf.delete(e,{at:i}),i=u.unref()}else Ef.isPath(i)&&(i=df.start(e,i));if(o||!df.void(e,{at:i})){var s=df.above(e,{at:i,match:t=>df.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;df.isEnd(e,i,l)?i=df.after(e,l):df.isStart(e,i,l)&&(i=df.before(e,l))}var c=df.above(e,{match:t=>df.isBlock(e,t),at:i,voids:o}),[,f]=c,d=df.isStart(e,i,f),p=df.isEnd(e,i,f),h=d&&p,g=!d||d&&p,v=!p,[,y]=yf.first({children:t},[]),[,m]=yf.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(g&&Ef.isAncestor(r,y)&&af.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||v&&Ef.isAncestor(r,m)&&af.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of yf.nodes({children:t},{pass:w}))w(E)&&b.push(E);var x=[],S=[],C=[],D=!0,O=!1;for(var[A]of b)af.isElement(A)&&!e.isInline(A)?(D=!1,O=!0,S.push(A)):D?x.push(A):C.push(A);var[k]=df.nodes(e,{at:i,match:t=>If.isText(t)||df.isInline(e,t),mode:"highest",voids:o}),[,B]=k,_=df.isStart(e,i,B),F=df.isEnd(e,i,B),T=df.pathRef(e,p?Ef.next(f):f),P=df.pathRef(e,F?Ef.next(B):B),j=df.pathRef(e,f);Qf.splitNodes(e,{at:i,match:t=>O?df.isBlock(e,t):If.isText(t)||df.isInline(e,t),mode:O?"lowest":"highest",voids:o});var N=df.pathRef(e,!_||_&&F?Ef.next(B):B);if(Qf.insertNodes(e,x,{at:N.current,match:t=>If.isText(t)||df.isInline(e,t),mode:"highest",voids:o}),h&&S.length&&Qf.delete(e,{at:j.unref(),voids:o}),Qf.insertNodes(e,S,{at:T.current,match:t=>df.isBlock(e,t),mode:"lowest",voids:o}),Qf.insertNodes(e,C,{at:P.current,match:t=>If.isText(t)||df.isInline(e,t),mode:"highest",voids:o}),!n.at){var I;I=C.length>0?Ef.previous(P.current):S.length>0?Ef.previous(T.current):Ef.previous(N.current);var R=df.end(e,I);Qf.select(e,R)}N.unref(),T.unref(),P.unref()}}})},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};df.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Ef.isPath(o)&&(o=df.range(e,o)),Bf.isRange(o))if(Bf.isCollapsed(o))o=o.anchor;else{var i=Bf.end(o);if(!r&&df.void(e,{at:i}))return;var a=df.pointRef(e,i);Qf.delete(e,{at:o,voids:r}),o=a.unref(),Qf.setSelection(e,{anchor:o,focus:o})}if(r||!df.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}})}};function Zf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zf(Object(n),!0).forEach((function(t){Ec(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qf=Jf(Jf(Jf(Jf({},{transform(e,t){e.children=bc(e.children);var n=e.selection&&bc(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=yf.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of Bf.points(t))t[s]=Df.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=yf.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[g,v]of Bf.points(t))t[v]=Df.transform(g,n);break;case"merge_node":var{path:y}=n,m=yf.get(e,y),b=Ef.previous(y),w=yf.get(e,b),E=yf.parent(e,y),x=y[y.length-1];if(If.isText(m)&&If.isText(w))w.text+=m.text;else{if(If.isText(m)||If.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(w));w.children.push(...m.children)}if(E.children.splice(x,1),t)for(var[S,C]of Bf.points(t))t[C]=Df.transform(S,n);break;case"move_node":var{path:D,newPath:O}=n;if(Ef.isAncestor(D,O))throw new Error("Cannot move a path [".concat(D,"] to new path [").concat(O,"] because the destination is inside itself."));var A=yf.get(e,D),k=yf.parent(e,D),B=D[D.length-1];k.children.splice(B,1);var _=Ef.transform(D,n),F=yf.get(e,Ef.parent(_)),T=_[_.length-1];if(F.children.splice(T,0,A),t)for(var[P,j]of Bf.points(t))t[j]=Df.transform(P,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1];if(yf.parent(e,N).children.splice(I,1),t)for(var[R,L]of Bf.points(t)){var M=Df.transform(R,n);if(null!=t&&null!=M)t[L]=M;else{var z=void 0,U=void 0;for(var[H,$]of yf.texts(e)){if(-1!==Ef.compare($,N)){U=[H,$];break}z=[H,$]}var V=!1;z&&U&&(V=Ef.equals(U[1],N)?!Ef.hasPrevious(U[1]):Ef.common(z[1],N).length<Ef.common(U[1],N).length),z&&!V?(R.path=z[1],R.offset=z[0].text.length):U?(R.path=U[1],R.offset=0):t=null}}break;case"remove_text":var{path:W,offset:q,text:G}=n;if(0===G.length)break;var K=yf.leaf(e,W),Y=K.text.slice(0,q),X=K.text.slice(q+G.length);if(K.text=Y+X,t)for(var[Z,J]of Bf.points(t))t[J]=Df.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=yf.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!Bf.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=Lf({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=yf.get(e,le),he=yf.parent(e,le),ge=le[le.length-1];if(If.isText(pe)){var ve=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ve,de=Lf(Lf({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=Lf(Lf({},fe),{},{children:be})}if(he.children.splice(ge+1,0,de),t)for(var[we,Ee]of Bf.points(t))t[Ee]=Df.transform(we,n)}return t})(e,n,t)}finally{e.children=wc(e.children),e.selection=n?Ol(n)?wc(n):n:null}}}),$f),Yf),Xf),ed="[object Map]",td="[object Set]",nd=/^\[object .+?Constructor\]$/,rd=/^(?:0|[1-9]\d*)$/,od="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",id="\\ud83c[\\udffb-\\udfff]",ad="[^\\ud800-\\udfff]",ud="(?:\\ud83c[\\udde6-\\uddff]){2}",sd="[\\ud800-\\udbff][\\udc00-\\udfff]",ld="(?:"+od+"|"+id+")?",cd="[\\ufe0e\\ufe0f]?"+ld+"(?:\\u200d(?:"+[ad,ud,sd].join("|")+")[\\ufe0e\\ufe0f]?"+ld+")*",fd="(?:"+[ad+od+"?",od,ud,sd,"[\\ud800-\\udfff]"].join("|")+")",dd=RegExp(id+"(?="+id+")|"+fd+cd,"g"),pd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),hd="object"==typeof r&&r&&r.Object===Object&&r,gd="object"==typeof self&&self&&self.Object===Object&&self,vd=hd||gd||Function("return this")();function yd(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function md(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var bd,wd,Ed=Function.prototype,xd=Object.prototype,Sd=vd["__core-js_shared__"],Cd=function(){var e=/[^.]+$/.exec(Sd&&Sd.keys&&Sd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Dd=Ed.toString,Od=xd.hasOwnProperty,Ad=xd.toString,kd=RegExp("^"+Dd.call(Od).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bd=vd.Symbol,_d=Bd?Bd.iterator:void 0,Fd=xd.propertyIsEnumerable,Td=(bd=Object.keys,wd=Object,function(e){return bd(wd(e))}),Pd=$d(vd,"DataView"),jd=$d(vd,"Map"),Nd=$d(vd,"Promise"),Id=$d(vd,"Set"),Rd=$d(vd,"WeakMap"),Ld=qd(Pd),Md=qd(jd),zd=qd(Nd),Ud=qd(Id),Hd=qd(Rd);function $d(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Xd(e)||function(e){return!!Cd&&Cd in e}(e))&&(Yd(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?kd:nd).test(qd(e))}(n)?n:void 0}var Vd=function(e){return Ad.call(e)};function Wd(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||rd.test(e))&&e>-1&&e%1==0&&e<t}function qd(e){if(null!=e){try{return Dd.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(Pd&&"[object DataView]"!=Vd(new Pd(new ArrayBuffer(1)))||jd&&Vd(new jd)!=ed||Nd&&"[object Promise]"!=Vd(Nd.resolve())||Id&&Vd(new Id)!=td||Rd&&"[object WeakMap]"!=Vd(new Rd))&&(Vd=function(e){var t=Ad.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?qd(n):void 0;if(r)switch(r){case Ld:return"[object DataView]";case Md:return ed;case zd:return"[object Promise]";case Ud:return td;case Hd:return"[object WeakMap]"}return t});var Gd=Array.isArray;function Kd(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Yd(e)}function Yd(e){var t=Xd(e)?Ad.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Xd(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Zd(e){return!!e&&"object"==typeof e}function Jd(e){return e?function(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n]);return o}(t,(function(t){return e[t]}))}(e,function(e){return Kd(e)?function(e,t){var n=Gd(e)||function(e){return function(e){return Zd(e)&&Kd(e)}(e)&&Od.call(e,"callee")&&(!Fd.call(e,"callee")||"[object Arguments]"==Ad.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!Od.call(e,i)||o&&("length"==i||Wd(i,r))||n.push(i);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||xd))return Td(e);var t,n,r=[];for(var o in Object(e))Od.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}(e)):[]}var Qd=function(e){if(!e)return[];if(Kd(e))return function(e){return"string"==typeof e||!Gd(e)&&Zd(e)&&"[object String]"==Ad.call(e)}(e)?function(e){return function(e){return pd.test(e)}(e)?function(e){return e.match(dd)||[]}(e):function(e){return e.split("")}(e)}(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);if(_d&&e[_d])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[_d]());var t=Vd(e);return(t==ed?yd:t==td?md:Jd)(e)};function ep(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function tp(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:ep(t[n])&&ep(e[n])&&Object.keys(t[n]).length>0&&tp(e[n],t[n])}))}var np={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function rp(){var e="undefined"!=typeof document?document:{};return tp(e,np),e}var op={document:np,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function ip(){var e="undefined"!=typeof window?window:{};return tp(e,op),e}function ap(e){return(ap=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function up(e,t){return(up=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sp(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function lp(e,t,n){return(lp=sp()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&up(o,n.prototype),o}).apply(null,arguments)}function cp(e){var t="function"==typeof Map?new Map:void 0;return(cp=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return lp(e,arguments,ap(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),up(n,e)})(e)}var fp=function(e){var t,n;function r(t){var n,r,o;return r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call.apply(e,[this].concat(t))||this),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(cp(Array));function dp(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,dp(e)):t.push(e)})),t}function pp(e,t){return Array.prototype.filter.call(e,t)}function hp(e,t){var n=ip(),r=rp(),o=[];if(!t&&e instanceof fp)return e;if(!e)return new fp(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof fp)return e;o=e}return new fp(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function gp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=dp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function vp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=dp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function yp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=dp(t.map((function(e){return e.split(" ")})));return pp(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function mp(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function bp(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function wp(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Ep(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function xp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),hp(t).is(o))i.apply(t,n);else for(var r=hp(t).parents(),a=0;a<r.length;a+=1)hp(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function Sp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Cp(){var e=ip();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Dp(){var e=ip();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Op(){if(this.length>0){var e=ip(),t=rp(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Ap(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function kp(){for(var e=ip(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function Bp(e,t){var n,r=ip();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function _p(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function Fp(e){return hp(pp(this,e))}function Tp(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Pp(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function jp(e){var t,n,r=ip(),o=rp(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=hp(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof fp){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function Np(){for(var e,t=rp(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof fp)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function Ip(e){var t,n,r=rp();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof fp)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function Rp(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?hp(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return hp(t)}function Lp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?hp(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return hp(t)}function Mp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return hp(t)}function zp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!hp(r[o]).is(e)||t.push(r[o]);return hp(t)}function Up(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Hp(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}hp.fn=fp.prototype;var $p="resize scroll".split(" ");function Vp(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)$p.indexOf(e)<0&&(e in this[o]?this[o][e]():hp(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Wp=Vp("click"),qp=Vp("focus"),Gp=/^(?:0|[1-9]\d*)$/;function Kp(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Yp,Xp=Object.prototype,Zp=Xp.hasOwnProperty,Jp=Xp.toString,Qp=Xp.propertyIsEnumerable,eh=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),th=(Yp=function(e,t){return e&&nh(e,t,ah)},function(e,t){if(null==e)return e;if(!ih(e))return Yp(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),nh=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var u=i[++r];if(!1===t(o[u],u,o))break}return e};function rh(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Gp.test(e))&&e>-1&&e%1==0&&e<t}var oh=Array.isArray;function ih(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?Jp.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function ah(e){return ih(e)?function(e,t){var n=oh(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&ih(e)}(e)&&Zp.call(e,"callee")&&(!Qp.call(e,"callee")||"[object Arguments]"==Jp.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!Zp.call(e,i)||o&&("length"==i||rh(i,r))||n.push(i);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Xp))return eh(e);var t,n,r=[];for(var o in Object(e))Zp.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function uh(e){return e}var sh=function(e,t){return(oh(e)?Kp:th)(e,"function"==typeof t?t:uh)};let lh=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var ch=/^\s+|\s+$/g,fh=/^[-+]0x[0-9a-f]+$/i,dh=/^0b[01]+$/i,ph=/^0o[0-7]+$/i,hh=parseInt,gh="object"==typeof r&&r&&r.Object===Object&&r,vh="object"==typeof self&&self&&self.Object===Object&&self,yh=gh||vh||Function("return this")(),mh=Object.prototype.toString,bh=Math.max,wh=Math.min,Eh=function(){return yh.Date.now()};function xh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Sh(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==mh.call(e)}(e))return NaN;if(xh(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=xh(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ch,"");var n=dh.test(e);return n||ph.test(e)?hh(e.slice(2),n?2:8):fh.test(e)?NaN:+e}var Ch=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return xh(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e=Eh();if(g(e))return y(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?wh(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Eh(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=Sh(t)||0,xh(n)&&(c=!!n.leading,i=(f="maxWait"in n)?bh(Sh(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Eh())},m}(e,t,{leading:r,maxWait:t,trailing:o})};const Dh={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function Oh(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const Ah=Array.isArray;function kh(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function Bh(e){return void 0===e}function _h(e){return void 0!==e}const Fh=Oh("",{},[],void 0,void 0);function Th(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function Ph(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const jh=["create","update","remove","destroy","pre","post"];function Nh(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),Ah(n)?r=n:kh(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(Ah(t)?r=t:kh(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)kh(r[i])&&(r[i]=Oh(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||function e(t,n,r){if(t.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==n)for(let t=0;t<n.length;++t){const r=n[t].data;void 0!==r&&e(r,n[t].children,n[t].sel)}}(a,r,e),Oh(e,a,r,o,void 0)}function Ih(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const Rh={create:Ih,update:Ih};function Lh(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const Mh={create:Lh,update:Lh},zh=/[A-Z]/g;function Uh(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(zh,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(zh,"-$&").toLowerCase(),i[r]))}const Hh={create:Uh,update:Uh};function $h(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){!function(e,t){const n=e.type,r=t.data.on;r&&r[n]&&function e(t,n,r){if("function"==typeof t)t.call(n,r,n);else if("object"==typeof t)for(let o=0;o<t.length;o++)e(t[o],n,r)}(r[n],t,e)}(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const Vh={create:$h,update:$h,destroy:$h};function Wh(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const qh={create:Wh,update:Wh},Gh="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Kh=!1;function Yh(e,t,n){!function(e){Gh((function(){Gh(e)}))}((function(){e[t]=n}))}function Xh(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||Yh(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const Zh={pre:function(){Kh=!1},create:Xh,update:Xh,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Kh||(e.elm.offsetLeft,Kh=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==s.indexOf(l[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function Jh(e,t,...n){const r=function e(t,n){for(const r of t)null!=r&&!1!==r&&""!==r&&(Array.isArray(r)?e(r,n):"string"==typeof r||"number"==typeof r||"boolean"==typeof r?n.push(Oh(void 0,void 0,void 0,String(r),void 0)):n.push(r));return n}(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?Nh(e,t,r[0].text):Nh(e,t,r)}Jh||(Jh={});var Qh,eg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ng="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rg="["+ng+"]",og="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",ig="\\d+",ag="[a-z\\xdf-\\xf6\\xf8-\\xff]",ug="[^\\ud800-\\udfff"+ng+ig+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",sg="\\ud83c[\\udffb-\\udfff]",lg="[^\\ud800-\\udfff]",cg="(?:\\ud83c[\\udde6-\\uddff]){2}",fg="[\\ud800-\\udbff][\\udc00-\\udfff]",dg="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pg="(?:"+ag+"|"+ug+")",hg="(?:"+dg+"|"+ug+")",gg="(?:"+og+"|"+sg+")?",vg="[\\ufe0e\\ufe0f]?"+gg+"(?:\\u200d(?:"+[lg,cg,fg].join("|")+")[\\ufe0e\\ufe0f]?"+gg+")*",yg="(?:"+["[\\u2700-\\u27bf]",cg,fg].join("|")+")"+vg,mg="(?:"+[lg+og+"?",og,cg,fg,"[\\ud800-\\udfff]"].join("|")+")",bg=RegExp("[']","g"),wg=RegExp(og,"g"),Eg=RegExp(sg+"(?="+sg+")|"+mg+vg,"g"),xg=RegExp([dg+"?"+ag+"+(?:['](?:d|ll|m|re|s|t|ve))?(?="+[rg,dg,"$"].join("|")+")",hg+"+(?:['](?:D|LL|M|RE|S|T|VE))?(?="+[rg,dg+pg,"$"].join("|")+")",dg+"?"+pg+"+(?:['](?:d|ll|m|re|s|t|ve))?",dg+"+(?:['](?:D|LL|M|RE|S|T|VE))?",ig,yg].join("|"),"g"),Sg=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Cg=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dg="object"==typeof r&&r&&r.Object===Object&&r,Og="object"==typeof self&&self&&self.Object===Object&&self,Ag=Dg||Og||Function("return this")(),kg=(Qh={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==Qh?void 0:Qh[e]});function Bg(e){return Sg.test(e)}var _g=Object.prototype.toString,Fg=Ag.Symbol,Tg=Fg?Fg.prototype:void 0,Pg=Tg?Tg.toString:void 0;function jg(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==_g.call(e)}(e))return Pg?Pg.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}for(var Ng,Ig=(Ng=function(e,t,n){return t=t.toLowerCase(),e+(n?Rg(jg(t).toLowerCase()):t)},function(e){return function(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=jg(e),void 0===(t=t)?function(e){return Cg.test(e)}(e)?function(e){return e.match(xg)||[]}(e):function(e){return e.match(eg)||[]}(e):e.match(t)||[]}(function(e){return(e=jg(e))&&e.replace(tg,kg).replace(wg,"")}(e).replace(bg,"")),Ng,"")}),Rg=function(e){var t=Bg(e=jg(e))?function(e){return Bg(e)?function(e){return e.match(Eg)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,n=t?t[0]:e.charAt(0),r=t?function(e,t,n){var r=e.length;return function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,1,n=void 0===n?r:n)}(t).join(""):e.slice(1);return n.toUpperCase()+r},Lg=Ig,Mg="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),zg={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Ug={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Mg?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Hg={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},$g=1;$g<20;$g++)Hg["f"+$g]=111+$g;function Vg(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in zg)r[zg[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c,f=o[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=qg(d),g=zg[h];if(d.length>1&&!g&&!Ug[d]&&!Hg[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=Wg(d)),g&&(r[g]=!p||null)}}catch(e){s=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)}))};return null==n?o:o(n)}function Wg(e){return e=qg(e),Hg[e]||e.toUpperCase().charCodeAt(0)}function qg(e){return e=e.toLowerCase(),Ug[e]||e}var Gg=Vg,Kg=function(e,t){return Vg(e,{byKey:!0},t)},Yg=/^\s+|\s+$/g,Xg=/^[-+]0x[0-9a-f]+$/i,Zg=/^0b[01]+$/i,Jg=/^0o[0-7]+$/i,Qg=parseInt,ev="object"==typeof r&&r&&r.Object===Object&&r,tv="object"==typeof self&&self&&self.Object===Object&&self,nv=ev||tv||Function("return this")(),rv=Object.prototype.toString,ov=Math.max,iv=Math.min,av=function(){return nv.Date.now()};function uv(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function sv(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==rv.call(e)}(e))return NaN;if(uv(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=uv(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Yg,"");var n=Zg.test(e);return n||Jg.test(e)?Qg(e.slice(2),n?2:8):Xg.test(e)?NaN:+e}var lv,cv=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e=av();if(g(e))return y(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?iv(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=av(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=sv(t)||0,uv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?ov(sv(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(av())},m},fv=o((function(e,t){var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",u="[object Date]",s="[object Function]",l="[object GeneratorFunction]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",x="[object Float64Array]",S="[object Int8Array]",C="[object Int16Array]",D="[object Int32Array]",O="[object Uint8Array]",A="[object Uint8ClampedArray]",k="[object Uint16Array]",B="[object Uint32Array]",_=/\w*$/,F=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,P={};P[i]=P["[object Array]"]=P[b]=P[w]=P[a]=P[u]=P[E]=P[x]=P[S]=P[C]=P[D]=P[c]=P[f]=P[d]=P[h]=P[g]=P[v]=P[y]=P[O]=P[A]=P[k]=P[B]=!0,P["[object Error]"]=P[s]=P[m]=!1;var j="object"==typeof r&&r&&r.Object===Object&&r,N="object"==typeof self&&self&&self.Object===Object&&self,I=j||N||Function("return this")(),R=t&&!t.nodeType&&t,L=R&&e&&!e.nodeType&&e,M=L&&L.exports===R;function z(e,t){return e.set(t[0],t[1]),e}function U(e,t){return e.add(t),e}function H(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function $(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function V(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function W(e,t){return function(n){return e(t(n))}}function q(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var G=Array.prototype,K=Function.prototype,Y=Object.prototype,X=I["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=M?I.Buffer:void 0,re=I.Symbol,oe=I.Uint8Array,ie=W(Object.getPrototypeOf,Object),ae=Object.create,ue=Y.propertyIsEnumerable,se=G.splice,le=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,fe=W(Object.keys,Object),de=Ne(I,"DataView"),pe=Ne(I,"Map"),he=Ne(I,"Promise"),ge=Ne(I,"Set"),ve=Ne(I,"WeakMap"),ye=Ne(Object,"create"),me=ze(de),be=ze(pe),we=ze(he),Ee=ze(ge),xe=ze(ve),Se=re?re.prototype:void 0,Ce=Se?Se.valueOf:void 0;function De(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){this.__data__=new Oe(e)}function Be(e,t,n){var r=e[t];Q.call(e,t)&&Ue(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function _e(e,t){for(var n=e.length;n--;)if(Ue(e[n][0],t))return n;return-1}function Fe(e,t,n,r,o,p,m){var F;if(r&&(F=p?r(e,o,p,m):r(e)),void 0!==F)return F;if(!qe(e))return e;var T=He(e);if(T){if(F=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Q.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,F)}else{var j=Re(e),N=j==s||j==l;if(Ve(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(j==d||j==i||N&&!p){if($(e))return p?e:{};if(F=function(e){return"function"!=typeof e.constructor||Me(e)?{}:qe(t=ie(e))?ae(t):{};var t}(N?{}:e),!t)return function(e,t){return Pe(e,Ie(e),t)}(e,function(e,t){return e&&Pe(t,Ge(t),e)}(F,e))}else{if(!P[j])return p?e:{};F=function(e,t,n,r){var o=e.constructor;switch(t){case b:return Te(e);case a:case u:return new o(+e);case w:return function(e,t){var n=t?Te(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case E:case x:case S:case C:case D:case O:case A:case k:case B:return function(e,t){var n=t?Te(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case c:return function(e,t,n){return H(t?n(V(e),!0):V(e),z,new e.constructor)}(e,r,n);case f:case v:return new o(e);case h:return function(e){var t=new e.constructor(e.source,_.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return function(e,t,n){return H(t?n(q(e),!0):q(e),U,new e.constructor)}(e,r,n);case y:return function(e){return Ce?Object(Ce.call(e)):{}}(e)}}(e,j,Fe,t)}}m||(m=new ke);var I=m.get(e);if(I)return I;if(m.set(e,F),!T)var R=n?function(e){return function(e,t,n){var r=t(e);return He(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ge,Ie)}(e):Ge(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n););}(R||e,(function(o,i){R&&(o=e[i=o]),Be(F,i,Fe(o,t,n,r,i,e,m))})),F}function Te(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Pe(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;Be(n,a,void 0===u?e[a]:u)}return n}function je(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ne(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!qe(e)||function(e){return!!Z&&Z in e}(e))&&(We(e)||$(e)?te:F).test(ze(e))}(n)?n:void 0}De.prototype.clear=function(){this.__data__=ye?ye(null):{}},De.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},De.prototype.get=function(e){var t=this.__data__;if(ye){var r=t[e];return r===n?void 0:r}return Q.call(t,e)?t[e]:void 0},De.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},De.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?n:t,this},Oe.prototype.clear=function(){this.__data__=[]},Oe.prototype.delete=function(e){var t=this.__data__,n=_e(t,e);return!(n<0||(n==t.length-1?t.pop():se.call(t,n,1),0))},Oe.prototype.get=function(e){var t=this.__data__,n=_e(t,e);return n<0?void 0:t[n][1]},Oe.prototype.has=function(e){return _e(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var n=this.__data__,r=_e(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new De,map:new(pe||Oe),string:new De}},Ae.prototype.delete=function(e){return je(this,e).delete(e)},Ae.prototype.get=function(e){return je(this,e).get(e)},Ae.prototype.has=function(e){return je(this,e).has(e)},Ae.prototype.set=function(e,t){return je(this,e).set(e,t),this},ke.prototype.clear=function(){this.__data__=new Oe},ke.prototype.delete=function(e){return this.__data__.delete(e)},ke.prototype.get=function(e){return this.__data__.get(e)},ke.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Oe){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ae(r)}return n.set(e,t),this};var Ie=le?W(le,Object):function(){return[]},Re=function(e){return ee.call(e)};function Le(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function Me(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function ze(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ue(e,t){return e===t||e!=e&&t!=t}(de&&Re(new de(new ArrayBuffer(1)))!=w||pe&&Re(new pe)!=c||he&&Re(he.resolve())!=p||ge&&Re(new ge)!=g||ve&&Re(new ve)!=m)&&(Re=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?ze(n):void 0;if(r)switch(r){case me:return w;case be:return c;case we:return p;case Ee:return g;case xe:return m}return t});var He=Array.isArray;function $e(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!We(e)}var Ve=ce||function(){return!1};function We(e){var t=qe(e)?ee.call(e):"";return t==s||t==l}function qe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ge(e){return $e(e)?function(e,t){var n=He(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&$e(e)}(e)&&Q.call(e,"callee")&&(!ue.call(e,"callee")||ee.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!Q.call(e,a)||o&&("length"==a||Le(a,r))||n.push(a);return n}(e):function(e){if(!Me(e))return fe(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Fe(e,!0,!0)}}));function dv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var pv=0;function hv(e,t,n){const r=[];return e.forEach(e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})),r}function gv(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,"$$$$")),r=hv(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var vv=(lv="__private_"+pv+++"_apply",class{constructor(e){Object.defineProperty(this,lv,{value:yv}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(dv(this,lv)[lv],this):dv(this,lv)[lv](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw new Error("missing string: "+e);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count)return gv(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return gv(n,t)}});function yv(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var mv=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e};let{urlAlphabet:bv}={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},wv=e=>crypto.getRandomValues(new Uint8Array(e)),Ev=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var xv={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>Ev(e,t,wv),customRandom:Ev,urlAlphabet:bv,random:wv},Sv=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function Cv(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Cv.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var Dv=/[\/\+\.]/,Ov=0,Av="__private_"+Ov+++"_publish";class kv{constructor(){Object.defineProperty(this,Av,{value:Bv}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,Av)[Av](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Bv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(e=>{e(...t)})}kv.VERSION="2.0.3";var _v=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},Fv={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Tv(e){let t="";return e.replace(/[^A-Z0-9]/gi,e=>(t+="-"+function(e){return e.charCodeAt(0).toString(32)}(e),"/"))+t}var Pv=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218};var jv={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}}},Nv={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},Iv=xv;let Rv,Lv;function Mv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var zv=0;function Uv(e){return"__private_"+zv+++"_"+e}const{nanoid:Hv}=Iv,{justErrorsLogger:$v,debugLogger:Vv}=jv;class Wv extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class qv extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Gv=Uv("plugins"),Kv=Uv("storeUnsubscribe"),Yv=Uv("emitter"),Xv=Uv("preProcessors"),Zv=Uv("uploaders"),Jv=Uv("postProcessors"),Qv=Uv("checkRestrictions"),ey=Uv("checkMinNumberOfFiles"),ty=Uv("checkRequiredMetaFieldsOnFile"),ny=Uv("checkRequiredMetaFields"),ry=Uv("showOrLogErrorAndThrow"),oy=Uv("assertNewUploadAllowed"),iy=Uv("checkAndCreateFileStateObject"),ay=Uv("startIfAutoProceed"),uy=Uv("addListeners"),sy=Uv("updateOnlineStatus"),ly=Uv("createUpload"),cy=Uv("getUpload"),fy=Uv("removeUpload"),dy=Uv("runUpload");Rv=Symbol.for("uppy test: getPlugins"),Lv=Symbol.for("uppy test: createUpload");class py{constructor(e){Object.defineProperty(this,dy,{value:Oy}),Object.defineProperty(this,fy,{value:Dy}),Object.defineProperty(this,cy,{value:Cy}),Object.defineProperty(this,ly,{value:Sy}),Object.defineProperty(this,uy,{value:xy}),Object.defineProperty(this,ay,{value:Ey}),Object.defineProperty(this,iy,{value:wy}),Object.defineProperty(this,oy,{value:by}),Object.defineProperty(this,ry,{value:my}),Object.defineProperty(this,ny,{value:yy}),Object.defineProperty(this,ty,{value:vy}),Object.defineProperty(this,ey,{value:gy}),Object.defineProperty(this,Qv,{value:hy}),Object.defineProperty(this,Gv,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Kv,{writable:!0,value:void 0}),Object.defineProperty(this,Yv,{writable:!0,value:mv()}),Object.defineProperty(this,Xv,{writable:!0,value:new Set}),Object.defineProperty(this,Zv,{writable:!0,value:new Set}),Object.defineProperty(this,Jv,{writable:!0,value:new Set}),Object.defineProperty(this,sy,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Nv;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new kv,logger:$v,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=Vv),this.log("Using Core v"+this.constructor.VERSION),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Ch(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Pv(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Mv(this,Kv)[Kv]=this.store.subscribe((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),Mv(this,uy)[uy]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Mv(this,Yv)[Yv].emit(e,...n)}on(e,t){return Mv(this,Yv)[Yv].on(e,t),this}once(e,t){return Mv(this,Yv)[Yv].once(e,t),this}off(e,t){return Mv(this,Yv)[Yv].off(e,t),this}updateAll(e){this.iteratePlugins(t=>{t.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Cant set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new vv([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(e=>{e.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach(r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){Mv(this,Xv)[Xv].add(e)}removePreProcessor(e){return Mv(this,Xv)[Xv].delete(e)}addPostProcessor(e){Mv(this,Jv)[Jv].add(e)}removePostProcessor(e){return Mv(this,Jv)[Jv].delete(e)}addUploader(e){Mv(this,Zv)[Zv].add(e)}removeUploader(e){return Mv(this,Zv)[Zv].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter(e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted}),i=r.filter(e=>!e.progress.uploadStarted),a=r.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess),u=r.filter(e=>e.progress.uploadStarted),s=r.filter(e=>e.isPaused),l=r.filter(e=>e.progress.uploadComplete),c=r.filter(e=>e.error),f=o.filter(e=>!e.isPaused),d=r.filter(e=>e.progress.preprocess||e.progress.postprocess);return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&l.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some(e=>e.isGhost)}}validateRestrictions(e,t){try{return Mv(this,Qv)[Qv](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){Mv(this,oy)[oy](e);const{files:t}=this.getState();let n=Mv(this,iy)[iy](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),Mv(this,ay)[ay](),n.id}addFiles(e){Mv(this,oy)[oy]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=Mv(this,iy)[iy](t,e[o]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach(e=>{this.emit("file-added",e)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)}),n.length>0&&Mv(this,ay)[ay](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach(t=>{e+="\n * "+t.message}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach(e=>{n[e]&&(a[e]=n[e],delete o[e])}),Object.keys(i).forEach(e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]});const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const l=Object.keys(a);l.forEach(e=>{this.emit("file-removed",a[e],t)}),l.length>5?this.log(`Removed ${l.length} files`):this.log("Removed files: "+l.join(", "))}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const n={...e[t],isPaused:!0};e[t]=n}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter(t=>e[t].error);if(t.forEach(t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=Mv(this,ly)[ly](t,{forceAllowNewUpload:!0});return Mv(this,dy)[dy](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=Mv(this,ly)[ly]([e],{forceAllowNewUpload:!0});return Mv(this,dy)[dy](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess);if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter(e=>null!=e.progress.bytesTotal),n=e.filter(e=>null==e.progress.bytesTotal);if(0===t.length){const t=100*e.length,r=n.reduce((e,t)=>e+t.progress.percentage,0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce((e,t)=>e+t.progress.bytesTotal,0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach(e=>{i+=e.progress.bytesUploaded}),n.forEach(e=>{i+=o*(e.progress.percentage||0)/100});let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in Mv(this,Gv)[Gv]?Mv(this,Gv)[Gv][n.type].push(n):Mv(this,Gv)[Gv][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Mv(this,Gv)[Gv])){const n=t.find(t=>t.id===e);if(null!=n)return n}}[Rv](e){return Mv(this,Gv)[Gv][e]}iteratePlugins(e){Object.values(Mv(this,Gv)[Gv]).flat(1).forEach(e)}removePlugin(e){this.log("Removing plugin "+e.id),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Mv(this,Gv)[Gv][e.type],n=t.findIndex(t=>t.id===e.id);-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Mv(this,Kv)[Kv](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",Mv(this,sy)[sy]),window.removeEventListener("offline",Mv(this,sy)[sy]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?Mv(this,dy)[dy](e):(Mv(this,fy)[fy](e),Promise.reject(new Error("Nonexistent upload")))}[Lv](){return Mv(this,ly)[ly](...arguments)}addResultData(e,t){if(!Mv(this,cy)[cy](e))return void this.log("Not setting result for an upload that has been removed: "+e);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=Mv(this,Gv)[Gv].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then(()=>{Mv(this,ey)[ey](t),Mv(this,ny)[ny](t)}).catch(e=>{Mv(this,ry)[ry](e)}).then(()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap(e=>e.fileIDs),r=[];Object.keys(t).forEach(e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)});const o=Mv(this,ly)[ly](r);return Mv(this,dy)[dy](o)}).catch(e=>{Mv(this,ry)[ry](e,{showInformer:!1})}))}}function hy(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new Wv(""+this.i18n("youCanOnlyUploadX",{smart_count:i}));if(a&&!a.some(t=>t.indexOf("/")>-1?!!e.type&&function(e,t){function n(t){var n=function(e,t,n){var r=new Cv(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,Dv);return n&&n.length>=2}return t?n(t.split(";")[0]):n}(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase())){const e=a.join(", ");throw new Wv(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach(e=>{n+=e.size}),n>o)throw new Wv(this.i18n("exceedsSize",{size:Sv(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new Wv(this.i18n("exceedsSize",{size:Sv(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new Wv(this.i18n("inferiorSize",{size:Sv(r)}))}function gy(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Wv(""+this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}function vy(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new Wv(""+this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name}));r.push(n),o.push(t[i]),Mv(this,ry)[ry](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function yy(e){const t=Object.keys(e).flatMap(e=>{const t=this.getFile(e);return Mv(this,ty)[ty](t)});if(t.length)throw new qv(t,""+this.i18n("missingRequiredMetaField"))}function my(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=" "+a),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function by(e){const{allowNewUpload:t}=this.getState();!1===t&&Mv(this,ry)[ry](new Wv(this.i18n("noMoreFilesAllowed")),{file:e})}function wy(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=_v(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Fv?Fv[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),o=_v(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+="-"+Tv(e.name.toLowerCase())),void 0!==e.type&&(t+="-"+e.type),e.meta&&"string"==typeof e.meta.relativePath&&(t+="-"+Tv(e.meta.relativePath.toLowerCase())),void 0!==e.data.size&&(t+="-"+e.data.size),void 0!==e.data.lastModified&&(t+="-"+e.data.lastModified),t}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new Wv(this.i18n("noDuplicates",{fileName:r}));Mv(this,ry)[ry](e,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);!1===c?Mv(this,ry)[ry](new Wv("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof c&&null!==c&&(l=c);try{const t=Object.keys(e).map(t=>e[t]);Mv(this,Qv)[Qv](l,t)}catch(e){Mv(this,ry)[ry](e,{file:l})}return l}function Ey(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function xy(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=" "+e.details),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=" "+n.details),e.message=this.i18n("failedToUpload",{file:t.name}),Mv(this,ry)[ry](e,{throwErr:!1})}else Mv(this,ry)[ry](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,t)=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:Mv(this,Jv)[Jv].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})}),this.on("postprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&Mv(this,ty)[ty](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",Mv(this,sy)[sy]),window.addEventListener("offline",Mv(this,sy)[sy]),setTimeout(Mv(this,sy)[sy],3e3))}function Sy(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=Hv();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function Cy(e){const{currentUploads:t}=this.getState();return t[e]}function Dy(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Oy(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Mv(this,Xv)[Xv],...Mv(this,Zv)[Zv],...Mv(this,Jv)[Jv]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit("error",t),Mv(this,fy)[fy](e),t}if(n){n.fileIDs.forEach(e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)});const r=n.fileIDs.map(e=>this.getFile(e)),o=r.filter(e=>!e.error),i=r.filter(e=>e.error);await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),Mv(this,fy)[fy](e)),null==i&&this.log("Not setting result for an upload that has been removed: "+e),i}py.VERSION="2.1.3";var Ay=py,ky=o((function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return v(e,u,o,i,null)}function v(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function E(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!x.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(x)}function x(){for(var e;x.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,_(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),F(n,o),o.__e!=i&&w(o)))}))}function S(e,t,n,r,o,i,a,u,s,l){var d,p,h,g,m,w,E,x=r&&r.__k||f,S=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?v(null,g,null,null,g):Array.isArray(g)?v(y,{children:g},null,null,null):g.__b>0?v(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=x[d])||h&&g.key==h.key&&g.type===h.type)x[d]=void 0;else for(p=0;p<S;p++){if((h=x[p])&&g.key==h.key&&g.type===h.type){x[p]=void 0;break}h=null}_(e,g,h=h||c,o,i,a,u,s,l),m=g.__e,(p=g.ref)&&h.ref!=p&&(E||(E=[]),h.ref&&E.push(h.ref,null,g),E.push(p,g.__c||m,g)),null!=m?(null==w&&(w=m),"function"==typeof g.type&&g.__k===h.__k?g.__d=s=C(g,s,e):s=D(e,g,h,x,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=w,d=S;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=b(r,d+1)),j(x[d],x[d]));if(E)for(d=0;d<E.length;d++)P(E[d],E[++d],E[++d])}function C(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?C(r,t,n):D(n,r,r,o,r.__e,t));return t}function D(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function O(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function A(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||O(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||O(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?B:k,i):e.removeEventListener(t,i?B:k,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function k(e){this.l[e.type+!1](r.event?r.event(e):e)}function B(e){this.l[e.type+!0](r.event?r.event(e):e)}function _(e,t,n,o,i,a,u,s,l){var c,f,d,h,g,v,b,w,E,x,C,D=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(c=r.__b)&&c(t);try{e:if("function"==typeof D){if(w=t.props,E=(c=D.contextType)&&o[c.__c],x=c?E?E.props.value:c.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in D&&D.prototype.render?t.__c=f=new D(w,x):(t.__c=f=new m(w,x),f.constructor=D,f.render=N),E&&E.sub(f),f.props=w,f.state||(f.state={}),f.context=x,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=D.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,D.getDerivedStateFromProps(w,f.__s))),h=f.props,g=f.state,d)null==D.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==D.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,x)||t.__v===n.__v){f.props=w,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,g,v)}))}f.context=x,f.props=w,f.state=f.__s,(c=r.__r)&&c(t),f.__d=!1,f.__v=t,f.__P=e,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(h,g)),C=null!=c&&c.type===y&&null==c.key?c.props.children:c,S(e,Array.isArray(C)?C:[C],t,n,o,i,a,u,s,l),f.base=t.__e,t.__h=null,f.__h.length&&u.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=T(n.__e,t,n,o,i,a,u,l);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=s,t.__h=!!l,a[a.indexOf(s)]=null),r.__e(e,t,n)}}function F(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function T(e,t,r,o,i,a,u,s){var l,f,d,p=r.props,g=t.props,v=t.type,y=0;if("svg"===v&&(i=!0),null!=a)for(;y<a.length;y++)if((l=a[y])&&"setAttribute"in l==!!v&&(v?l.localName===v:3===l.nodeType)){e=l,a[y]=null;break}if(null==e){if(null===v)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),a=null,s=!1}if(null===v)p===g||s&&e.data===g||(e.data=g);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||A(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||A(e,i,t[i],n[i],r)}(e,g,p,i,s),d)t.__k=[];else if(y=t.props.children,S(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==v,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in g&&void 0!==(y=g.value)&&(y!==p.value||y!==e.value||"progress"===v&&!y)&&A(e,"value",y,p.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==e.checked&&A(e,"checked",y,p.checked,!1))}return e}function P(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function j(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||P(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&j(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function N(e,t,n){return this.constructor(e,n)}function I(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],_(t,e=(!i&&o||t).__k=g(y,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),F(u,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),E(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0,l=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),v(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(E)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function e(t,n){I(t,n,e)},t.isValidElement=i,t.options=r,t.render=I,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),By=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new vv([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function _y(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Fy=0;const{render:Ty}=ky;var Py="__private_"+Fy+++"_updateUI";class jy extends By{constructor(){super(...arguments),Object.defineProperty(this,Py,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n}(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return _y(this,Py)[Py]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then(()=>(t=null,e(...n)))),t}}(e=>{this.uppy.getPlugin(this.id)&&(Ty(this.render(e),t),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Ty(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof jy)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins(e=>{if(e instanceof t)return o=e,!1})}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log("Not installing "+n);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=_y(this,Py))[Py])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Ny=jy;const{debugLogger:Iy}=jv;var Ry=Ay,Ly=Ay,My=Ny,zy=By,Uy=Iy;Ry.Uppy=Ly,Ry.UIPlugin=My,Ry.BasePlugin=zy,Ry.debugLogger=Uy;class Hy extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var $y=Hy,Vy=function(){return fetch(...arguments).catch(e=>{throw"AbortError"===e.name?e:new $y(e)})};class Wy extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var qy,Gy,Ky,Yy,Xy,Zy=Wy;function Jy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Qy=0;function em(e){return"__private_"+Qy+++"_"+e}async function tm(e){if(401===e.status)throw new Zy;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var nm=(Gy=em("getPostResponseFunc"),Ky=em("getUrl"),Yy=em("errorHandler"),Xy=qy=class e{constructor(e,t){Object.defineProperty(this,Yy,{value:om}),Object.defineProperty(this,Ky,{value:rm}),Object.defineProperty(this,Gy,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Jy(this,Ky)[Ky](e),{method:"OPTIONS"}).then(e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map(e=>e.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(e=>(this.uppy.log("[CompanionClient] unable to make preflight request "+e,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(e=>{let[t,n]=e;return Object.keys(n).forEach(e=>{t.includes(e.toLowerCase())||(this.uppy.log("[CompanionClient] excluding disallowed header "+e),delete n[e])}),n})}get(e,t){return this.preflightAndHeaders(e).then(t=>Vy(Jy(this,Ky)[Ky](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"})).then(Jy(this,Gy)[Gy](t)).then(tm).catch(Jy(this,Yy)[Yy]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then(n=>Vy(Jy(this,Ky)[Ky](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)})).then(Jy(this,Gy)[Gy](n)).then(tm).catch(Jy(this,Yy)[Yy](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then(n=>Vy(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null})).then(Jy(this,Gy)[Gy](n)).then(tm).catch(Jy(this,Yy)[Yy](r,e))}},qy.VERSION="2.0.4",qy.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":"@uppy/companion-client="+qy.VERSION},Xy);function rm(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function om(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${Jy(this,Ky)[Ky](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var im,am,um,sm,lm,cm={setItem:(e,t)=>new Promise(n=>{localStorage.setItem(e,t),n()}),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise(t=>{localStorage.removeItem(e),t()})};let fm,dm;function pm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var hm=0;function gm(e){return"__private_"+hm+++"_"+e}var vm,ym,mm=(im=gm("queued"),am=gm("emitter"),um=gm("isOpen"),sm=gm("socket"),lm=gm("handleMessage"),fm=Symbol.for("uppy test: getSocket"),dm=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,im,{writable:!0,value:[]}),Object.defineProperty(this,am,{writable:!0,value:mv()}),Object.defineProperty(this,um,{writable:!0,value:!1}),Object.defineProperty(this,sm,{writable:!0,value:void 0}),Object.defineProperty(this,lm,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return pm(this,um)[um]}[fm](){return pm(this,sm)[sm]}[dm](){return pm(this,im)[im]}open(){pm(this,sm)[sm]=new WebSocket(this.opts.target),pm(this,sm)[sm].onopen=()=>{for(pm(this,um)[um]=!0;pm(this,im)[im].length>0&&pm(this,um)[um];){const e=pm(this,im)[im].shift();this.send(e.action,e.payload)}},pm(this,sm)[sm].onclose=()=>{pm(this,um)[um]=!1},pm(this,sm)[sm].onmessage=pm(this,lm)[lm]}close(){var e;null==(e=pm(this,sm)[sm])||e.close()}send(e,t){pm(this,um)[um]?pm(this,sm)[sm].send(JSON.stringify({action:e,payload:t})):pm(this,im)[im].push({action:e,payload:t})}on(e,t){pm(this,am)[am].on(e,t)}emit(e,t){pm(this,am)[am].emit(e,t)}once(e,t){pm(this,am)[am].once(e,t)}}),bm={RequestClient:nm,Provider:class extends nm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "))(),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}})}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(this.id+"/preauth/",{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log("[CompanionClient] unable to fetch preAuthToken "+e,"warning")}):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(this.id+"/logout").then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(e.id+': the option "companionAllowedHosts" must be one of string, Array, RegExp');e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts="https://"+t.companionUrl.replace(/^\/\//,""):e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||cm}},SearchProvider:class extends nm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "))(),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?"&"+t:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:mm},wm=Ch((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log("Upload progress: "+r),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function Em(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var xm=0;function Sm(e){return"__private_"+xm+++"_"+e}var Cm=(vm=Sm("emitter"),ym=Sm("events"),class{constructor(e){Object.defineProperty(this,vm,{writable:!0,value:void 0}),Object.defineProperty(this,ym,{writable:!0,value:[]}),Em(this,vm)[vm]=e}on(e,t){return Em(this,ym)[ym].push([e,t]),Em(this,vm)[vm].on(e,t)}remove(){for(const[e,t]of Em(this,ym)[ym].splice(0))Em(this,vm)[vm].off(e,t)}});function Dm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Om=0;function Am(e){return"__private_"+Om+++"_"+e}var km=Am("aliveTimer"),Bm=Am("isDone"),_m=Am("onTimedOut"),Fm=Am("timeout"),Tm=class{constructor(e,t){Object.defineProperty(this,km,{writable:!0,value:void 0}),Object.defineProperty(this,Bm,{writable:!0,value:!1}),Object.defineProperty(this,_m,{writable:!0,value:void 0}),Object.defineProperty(this,Fm,{writable:!0,value:void 0}),Dm(this,Fm)[Fm]=e,Dm(this,_m)[_m]=t}progress(){Dm(this,Bm)[Bm]||Dm(this,Fm)[Fm]>0&&(clearTimeout(Dm(this,km)[km]),Dm(this,km)[km]=setTimeout(Dm(this,_m)[_m],Dm(this,Fm)[Fm]))}done(){Dm(this,Bm)[Bm]||(clearTimeout(Dm(this,km)[km]),Dm(this,km)[km]=null,Dm(this,Bm)[Bm]=!0)}};function Pm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var jm=0;function Nm(e){return"__private_"+jm+++"_"+e}function Im(){return new Error("Cancelled")}var Rm=Nm("activeRequests"),Lm=Nm("queuedHandlers"),Mm=Nm("call"),zm=Nm("queueNext"),Um=Nm("next"),Hm=Nm("queue"),$m=Nm("dequeue");function Vm(e){Pm(this,Rm)[Rm]+=1;let t,n=!1;try{t=e()}catch(e){throw Pm(this,Rm)[Rm]-=1,e}return{abort:()=>{n||(n=!0,Pm(this,Rm)[Rm]-=1,t(),Pm(this,zm)[zm]())},done:()=>{n||(n=!0,Pm(this,Rm)[Rm]-=1,Pm(this,zm)[zm]())}}}function Wm(){queueMicrotask(()=>Pm(this,Um)[Um]())}function qm(){if(Pm(this,Rm)[Rm]>=this.limit)return;if(0===Pm(this,Lm)[Lm].length)return;const e=Pm(this,Lm)[Lm].shift(),t=Pm(this,Mm)[Mm](e.fn);e.abort=t.abort,e.done=t.done}function Gm(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{Pm(this,$m)[$m](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Pm(this,Lm)[Lm].findIndex(e=>n.priority>e.priority);return-1===r?Pm(this,Lm)[Lm].push(n):Pm(this,Lm)[Lm].splice(r,0,n),n}function Km(e){const t=Pm(this,Lm)[Lm].indexOf(e);-1!==t&&Pm(this,Lm)[Lm].splice(t,1)}var Ym,Xm,Zm={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,$m,{value:Km}),Object.defineProperty(this,Hm,{value:Gm}),Object.defineProperty(this,Um,{value:qm}),Object.defineProperty(this,zm,{value:Wm}),Object.defineProperty(this,Mm,{value:Vm}),Object.defineProperty(this,Rm,{writable:!0,value:0}),Object.defineProperty(this,Lm,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return Pm(this,Rm)[Rm]<this.limit?Pm(this,Mm)[Mm](e):Pm(this,Hm)[Hm](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise((r,i)=>{a=n.run(()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(e){n=Promise.reject(e)}return n.then(e=>{t?i(t):(a.done(),r(e))},e=>{t?i(t):(a.done(),i(e))}),()=>{t=Im()}},t)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},Jm=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Qm={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:eb}=Iv,{Provider:tb,RequestClient:nb,Socket:rb}=bm,{RateLimitedQueue:ob,internalRateLimitedQueue:ib}=Zm;function ab(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),Jm(e)?(n=new $y(n,e),n):(n.request=e,n)}function ub(e){return e.data.slice(0,e.data.size,e.meta.type)}var sb=(Xm=Ym=class extends By{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Qm;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return Jm(t)&&(n=new $y(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),ib in this.opts?this.requests=this.opts[ib]:this.requests=new ob(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach(n=>{e.append(n,t[n])})}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=ub(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach(e=>{const t=this.getOptions(e),r=ub(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)}),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new Cm(this.uppy);const a=new Tm(r.timeout,()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)}),u=eb();i.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${u} started`)}),i.upload.addEventListener("progress",t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})}),i.addEventListener("load",o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const l=r.getResponseData(i.responseText,i),c=ab(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:l};return this.uppy.emit("upload-error",e,c,f),n(c)}),i.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=ab(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)}),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run(()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach(e=>{i.setRequestHeader(e,t.headers[e])}),i.send(o),()=>{a.done(),i.abort()}});this.onFileRemove(e.id,()=>{s.abort(),n(new Error("File removed"))}),this.onCancelAll(e.id,()=>{s.abort(),n(new Error("Upload cancelled"))})})}uploadRemote(e){const t=this.getOptions(e);return new Promise((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach(t=>{o[t]=e.meta[t]}),new(e.remote.providerOptions.provider?tb:nb)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then(o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new rb({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new Cm(this.uppy),this.onFileRemove(e.id,()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was canceled`)}),this.onRetry(e.id,()=>{u.send("pause",{}),u.send("resume",{})}),this.onRetryAll(e.id,()=>{u.send("pause",{}),u.send("resume",{})}),u.on("progress",t=>wm(this,t,e)),u.on("success",r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()}),u.on("error",n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)});const s=this.requests.run(()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close()))}).catch(t=>{this.uppy.emit("upload-error",e,t),r(t)})})}uploadBundle(e){return new Promise((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new Tm(this.opts.timeout,()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)}),l=t=>{e.forEach(e=>{this.uppy.emit("upload-error",e,t)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",t=>{s.progress(),t.lengthComputable&&e.forEach(e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})})}),u.addEventListener("load",r=>{if(s.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach(e=>{this.uppy.emit("upload-success",e,o)}),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,l(o),n(o)}),u.addEventListener("error",()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(e),n(e)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(e=>{u.setRequestHeader(e,this.opts.headers[e])}),u.send(a),e.forEach(e=>{this.uppy.emit("upload-started",e)})})}uploadFiles(e){return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map(e=>e.then(r,o))).then(()=>({successful:t,failed:n}))}(e.map((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}))}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",n=>{e===n.id&&t(n.id)})}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",n=>{e===n&&t()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[ib]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map(e=>this.uppy.getFile(e));if(this.opts.bundle){if(t.some(e=>e.isRemote))throw new Error("Cant upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},Ym.VERSION="2.0.6",Xm),lb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function cb(e){var t={exports:{}};return e(t,t.exports),t.exports}var fb,db,pb=function(e){return e&&e.Math==Math&&e},hb=pb("object"==typeof globalThis&&globalThis)||pb("object"==typeof window&&window)||pb("object"==typeof self&&self)||pb("object"==typeof lb&&lb)||function(){return this}()||Function("return this")(),gb=Object.defineProperty,vb=function(e,t){try{gb(hb,e,{value:t,configurable:!0,writable:!0})}catch(n){hb[e]=t}return t},yb=hb["__core-js_shared__"]||vb("__core-js_shared__",{}),mb=cb((function(e){(e.exports=function(e,t){return yb[e]||(yb[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),bb=Function.prototype,wb=bb.bind,Eb=bb.call,xb=wb&&wb.bind(Eb),Sb=wb?function(e){return e&&xb(Eb,e)}:function(e){return e&&function(){return Eb.apply(e,arguments)}},Cb=hb.TypeError,Db=function(e){if(null==e)throw Cb("Can't call method on "+e);return e},Ob=hb.Object,Ab=function(e){return Ob(Db(e))},kb=Sb({}.hasOwnProperty),Bb=Object.hasOwn||function(e,t){return kb(Ab(e),t)},_b=0,Fb=Math.random(),Tb=Sb(1..toString),Pb=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Tb(++_b+Fb,36)},jb=function(e){return"function"==typeof e},Nb=function(e){return jb(e)?e:void 0},Ib=function(e,t){return arguments.length<2?Nb(hb[e]):hb[e]&&hb[e][t]},Rb=Ib("navigator","userAgent")||"",Lb=hb.process,Mb=hb.Deno,zb=Lb&&Lb.versions||Mb&&Mb.version,Ub=zb&&zb.v8;Ub&&(db=(fb=Ub.split("."))[0]>0&&fb[0]<4?1:+(fb[0]+fb[1])),!db&&Rb&&(!(fb=Rb.match(/Edge\/(\d+)/))||fb[1]>=74)&&(fb=Rb.match(/Chrome\/(\d+)/))&&(db=+fb[1]);var Hb=db,$b=function(e){try{return!!e()}catch(e){return!0}},Vb=!!Object.getOwnPropertySymbols&&!$b((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Hb&&Hb<41})),Wb=Vb&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,qb=mb("wks"),Gb=hb.Symbol,Kb=Gb&&Gb.for,Yb=Wb?Gb:Gb&&Gb.withoutSetter||Pb,Xb=function(e){if(!Bb(qb,e)||!Vb&&"string"!=typeof qb[e]){var t="Symbol."+e;Vb&&Bb(Gb,e)?qb[e]=Gb[e]:qb[e]=Wb&&Kb?Kb(t):Yb(t)}return qb[e]},Zb={};Zb[Xb("toStringTag")]="z";var Jb="[object z]"===String(Zb),Qb=!$b((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ew=function(e){return"object"==typeof e?null!==e:jb(e)},tw=hb.document,nw=ew(tw)&&ew(tw.createElement),rw=function(e){return nw?tw.createElement(e):{}},ow=!Qb&&!$b((function(){return 7!=Object.defineProperty(rw("div"),"a",{get:function(){return 7}}).a})),iw=hb.String,aw=hb.TypeError,uw=function(e){if(ew(e))return e;throw aw(iw(e)+" is not an object")},sw=Function.prototype.call,lw=sw.bind?sw.bind(sw):function(){return sw.apply(sw,arguments)},cw=Sb({}.isPrototypeOf),fw=hb.Object,dw=Wb?function(e){return"symbol"==typeof e}:function(e){var t=Ib("Symbol");return jb(t)&&cw(t.prototype,fw(e))},pw=hb.String,hw=function(e){try{return pw(e)}catch(e){return"Object"}},gw=hb.TypeError,vw=function(e){if(jb(e))return e;throw gw(hw(e)+" is not a function")},yw=function(e,t){var n=e[t];return null==n?void 0:vw(n)},mw=hb.TypeError,bw=hb.TypeError,ww=Xb("toPrimitive"),Ew=function(e){var t=function(e,t){if(!ew(e)||dw(e))return e;var n,r=yw(e,ww);if(r){if(void 0===t&&(t="default"),n=lw(r,e,t),!ew(n)||dw(n))return n;throw bw("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&jb(n=e.toString)&&!ew(r=lw(n,e)))return r;if(jb(n=e.valueOf)&&!ew(r=lw(n,e)))return r;if("string"!==t&&jb(n=e.toString)&&!ew(r=lw(n,e)))return r;throw mw("Can't convert object to primitive value")}(e,t)}(e,"string");return dw(t)?t:t+""},xw=hb.TypeError,Sw=Object.defineProperty,Cw={f:Qb?Sw:function(e,t,n){if(uw(e),t=Ew(t),uw(n),ow)try{return Sw(e,t,n)}catch(e){}if("get"in n||"set"in n)throw xw("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Dw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ow=Qb?function(e,t,n){return Cw.f(e,t,Dw(1,n))}:function(e,t,n){return e[t]=n,e},Aw=Sb(Function.toString);jb(yb.inspectSource)||(yb.inspectSource=function(e){return Aw(e)});var kw,Bw,_w,Fw=yb.inspectSource,Tw=hb.WeakMap,Pw=jb(Tw)&&/native code/.test(Fw(Tw)),jw=mb("keys"),Nw=function(e){return jw[e]||(jw[e]=Pb(e))},Iw={},Rw=hb.TypeError,Lw=hb.WeakMap;if(Pw||yb.state){var Mw=yb.state||(yb.state=new Lw),zw=Sb(Mw.get),Uw=Sb(Mw.has),Hw=Sb(Mw.set);kw=function(e,t){if(Uw(Mw,e))throw new Rw("Object already initialized");return t.facade=e,Hw(Mw,e,t),t},Bw=function(e){return zw(Mw,e)||{}},_w=function(e){return Uw(Mw,e)}}else{var $w=Nw("state");Iw[$w]=!0,kw=function(e,t){if(Bb(e,$w))throw new Rw("Object already initialized");return t.facade=e,Ow(e,$w,t),t},Bw=function(e){return Bb(e,$w)?e[$w]:{}},_w=function(e){return Bb(e,$w)}}var Vw={set:kw,get:Bw,has:_w,enforce:function(e){return _w(e)?Bw(e):kw(e,{})},getterFor:function(e){return function(t){var n;if(!ew(t)||(n=Bw(t)).type!==e)throw Rw("Incompatible receiver, "+e+" required");return n}}},Ww=Function.prototype,qw=Qb&&Object.getOwnPropertyDescriptor,Gw=Bb(Ww,"name"),Kw={EXISTS:Gw,PROPER:Gw&&"something"===function(){}.name,CONFIGURABLE:Gw&&(!Qb||Qb&&qw(Ww,"name").configurable)},Yw=cb((function(e){var t=Kw.CONFIGURABLE,n=Vw.get,r=Vw.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;jb(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Bb(i,"name")||t&&i.name!==f)&&Ow(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==hb?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Ow(e,n,i)):l?e[n]=i:vb(n,i)})(Function.prototype,"toString",(function(){return jb(this)&&n(this).source||Fw(this)}))})),Xw=Sb({}.toString),Zw=Sb("".slice),Jw=function(e){return Zw(Xw(e),8,-1)},Qw=Xb("toStringTag"),eE=hb.Object,tE="Arguments"==Jw(function(){return arguments}()),nE=Jb?Jw: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=eE(e),Qw))?n:tE?Jw(t):"Object"==(r=Jw(t))&&jb(t.callee)?"Arguments":r},rE=Jb?{}.toString:function(){return"[object "+nE(this)+"]"};Jb||Yw(Object.prototype,"toString",rE,{unsafe:!0});var oE={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},iE=rw("span").classList,aE=iE&&iE.constructor&&iE.constructor.prototype,uE=aE===Object.prototype?void 0:aE,sE=Sb(Sb.bind),lE=function(e,t){return vw(e),void 0===t?e:sE?sE(e,t):function(){return e.apply(t,arguments)}},cE=hb.Object,fE=Sb("".split),dE=$b((function(){return!cE("z").propertyIsEnumerable(0)}))?function(e){return"String"==Jw(e)?fE(e,""):cE(e)}:cE,pE=Math.ceil,hE=Math.floor,gE=function(e){var t=+e;return t!=t||0===t?0:(t>0?hE:pE)(t)},vE=Math.min,yE=function(e){return e>0?vE(gE(e),9007199254740991):0},mE=function(e){return yE(e.length)},bE=Array.isArray||function(e){return"Array"==Jw(e)},wE=function(){},EE=[],xE=Ib("Reflect","construct"),SE=/^\s*(?:class|function)\b/,CE=Sb(SE.exec),DE=!SE.exec(wE),OE=function(e){if(!jb(e))return!1;try{return xE(wE,EE,e),!0}catch(e){return!1}},AE=!xE||$b((function(){var e;return OE(OE.call)||!OE(Object)||!OE((function(){e=!0}))||e}))?function(e){if(!jb(e))return!1;switch(nE(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return DE||!!CE(SE,Fw(e))}:OE,kE=Xb("species"),BE=hb.Array,_E=function(e,t){return new(function(e){var t;return bE(e)&&(t=e.constructor,(AE(t)&&(t===BE||bE(t.prototype))||ew(t)&&null===(t=t[kE]))&&(t=void 0)),void 0===t?BE:t}(e))(0===t?0:t)},FE=Sb([].push),TE=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Ab(s),g=dE(h),v=lE(l,c),y=mE(g),m=0,b=f||_E,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:FE(w,d)}else switch(e){case 4:return!1;case 7:FE(w,d)}return i?-1:r||o?o:w}},PE={forEach:TE(0),map:TE(1),filter:TE(2),some:TE(3),every:TE(4),find:TE(5),findIndex:TE(6),filterReject:TE(7)},jE=function(e,t){var n=[][e];return!!n&&$b((function(){n.call(null,t||function(){throw 1},1)}))},NE=PE.forEach,IE=jE("forEach")?[].forEach:function(e){return NE(this,e,arguments.length>1?arguments[1]:void 0)},RE=function(e){if(e&&e.forEach!==IE)try{Ow(e,"forEach",IE)}catch(t){e.forEach=IE}};for(var LE in oE)oE[LE]&&RE(hb[LE]&&hb[LE].prototype);RE(uE);var ME={}.propertyIsEnumerable,zE=Object.getOwnPropertyDescriptor,UE={f:zE&&!ME.call({1:2},1)?function(e){var t=zE(this,e);return!!t&&t.enumerable}:ME},HE=function(e){return dE(Db(e))},$E=Object.getOwnPropertyDescriptor,VE={f:Qb?$E:function(e,t){if(e=HE(e),t=Ew(t),ow)try{return $E(e,t)}catch(e){}if(Bb(e,t))return Dw(!lw(UE.f,e,t),e[t])}},WE=Math.max,qE=Math.min,GE=function(e,t){var n=gE(e);return n<0?WE(n+t,0):qE(n,t)},KE=function(e){return function(t,n,r){var o,i=HE(t),a=mE(i),u=GE(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}},YE={includes:KE(!0),indexOf:KE(!1)},XE=YE.indexOf,ZE=Sb([].push),JE=function(e,t){var n,r=HE(e),o=0,i=[];for(n in r)!Bb(Iw,n)&&Bb(r,n)&&ZE(i,n);for(;t.length>o;)Bb(r,n=t[o++])&&(~XE(i,n)||ZE(i,n));return i},QE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ex=QE.concat("length","prototype"),tx={f:Object.getOwnPropertyNames||function(e){return JE(e,ex)}},nx={f:Object.getOwnPropertySymbols},rx=Sb([].concat),ox=Ib("Reflect","ownKeys")||function(e){var t=tx.f(uw(e)),n=nx.f;return n?rx(t,n(e)):t},ix=function(e,t){for(var n=ox(t),r=Cw.f,o=VE.f,i=0;i<n.length;i++){var a=n[i];Bb(e,a)||r(e,a,o(t,a))}},ax=/#|\.prototype\./,ux=function(e,t){var n=lx[sx(e)];return n==fx||n!=cx&&(jb(t)?$b(t):!!t)},sx=ux.normalize=function(e){return String(e).replace(ax,".").toLowerCase()},lx=ux.data={},cx=ux.NATIVE="N",fx=ux.POLYFILL="P",dx=ux,px=VE.f,hx=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?hb:l?hb[u]||vb(u,{}):(hb[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=px(n,r))&&a.value:n[r],!dx(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;ix(i,o)}(e.sham||o&&o.sham)&&Ow(i,"sham",!0),Yw(n,r,i,e)}},gx=Object.keys||function(e){return JE(e,QE)},vx=$b((function(){gx(1)}));function yx(e){return"[object Object]"===Object.prototype.toString.call(e)}hx({target:"Object",stat:!0,forced:vx},{keys:function(e){return gx(Ab(e))}});var mx={isHistory(e){return!1!==yx(t=e)&&(void 0===(n=t.constructor)||!1!==yx(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||wf.isOperationList(e.redos[0]))&&(0===e.undos.length||wf.isOperationList(e.undos[0]));var t,n,r}},bx=new WeakMap,wx=new WeakMap,Ex={isHistoryEditor:e=>mx.isHistory(e.history)&&df.isEditor(e),isMerging:e=>wx.get(e),isSaving:e=>bx.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=Ex.isMerging(e);wx.set(e,!1),t(),wx.set(e,n)},withoutSaving(e,t){var n=Ex.isSaving(e);bx.set(e,!1),t(),bx.set(e,n)}},xx=hb.String,Sx=function(e){if("Symbol"===nE(e))throw TypeError("Cannot convert a Symbol value to a string");return xx(e)},Cx=function(){var e=uw(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},Dx=Kw.PROPER,Ox=RegExp.prototype,Ax=Ox.toString,kx=Sb(Cx),Bx=$b((function(){return"/a/b"!=Ax.call({source:"a",flags:"b"})})),_x=Dx&&"toString"!=Ax.name;(Bx||_x)&&Yw(RegExp.prototype,"toString",(function(){var e=uw(this),t=Sx(e.source),n=e.flags;return"/"+t+"/"+Sx(void 0===n&&cw(Ox,e)&&!("flags"in Ox)?kx(e):n)}),{unsafe:!0});var Fx,Tx=Qb?Object.defineProperties:function(e,t){uw(e);for(var n,r=HE(t),o=gx(t),i=o.length,a=0;i>a;)Cw.f(e,n=o[a++],r[n]);return e},Px=Ib("document","documentElement"),jx=Nw("IE_PROTO"),Nx=function(){},Ix=function(e){return"<script>"+e+"<\/script>"},Rx=function(e){e.write(Ix("")),e.close();var t=e.parentWindow.Object;return e=null,t},Lx=function(){try{Fx=new ActiveXObject("htmlfile")}catch(e){}var e,t;Lx="undefined"!=typeof document?document.domain&&Fx?Rx(Fx):((t=rw("iframe")).style.display="none",Px.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ix("document.F=Object")),e.close(),e.F):Rx(Fx);for(var n=QE.length;n--;)delete Lx.prototype[QE[n]];return Lx()};Iw[jx]=!0;var Mx=Object.create||function(e,t){var n;return null!==e?(Nx.prototype=uw(e),n=new Nx,Nx.prototype=null,n[jx]=e):n=Lx(),void 0===t?n:Tx(n,t)},zx=Xb("unscopables"),Ux=Array.prototype;null==Ux[zx]&&Cw.f(Ux,zx,{configurable:!0,value:Mx(null)});var Hx=function(e){Ux[zx][e]=!0},$x=YE.includes;hx({target:"Array",proto:!0},{includes:function(e){return $x(this,e,arguments.length>1?arguments[1]:void 0)}}),Hx("includes");var Vx=Xb("match"),Wx=function(e){var t;return ew(e)&&(void 0!==(t=e[Vx])?!!t:"RegExp"==Jw(e))},qx=hb.TypeError,Gx=function(e){if(Wx(e))throw qx("The method doesn't accept regular expressions");return e},Kx=Xb("match"),Yx=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Kx]=!1,"/./"[e](t)}catch(e){}}return!1},Xx=Sb("".indexOf);hx({target:"String",proto:!0,forced:!Yx("includes")},{includes:function(e){return!!~Xx(Sx(Db(this)),Sx(Gx(e)),arguments.length>1?arguments[1]:void 0)}});var Zx=/"/g,Jx=Sb("".replace);hx({target:"String",proto:!0,forced:$b((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Sx(Db(this)),r="<a",(r+=' name="'+Jx(Sx(t),Zx,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var Qx=function(e,t,n){var r,o;uw(e);try{if(!(r=yw(e,"return"))){if("throw"===t)throw n;return n}r=lw(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return uw(r),n},eS=function(e,t,n,r){try{return r?t(uw(n)[0],n[1]):t(n)}catch(t){Qx(e,"throw",t)}},tS={},nS=Xb("iterator"),rS=Array.prototype,oS=function(e){return void 0!==e&&(tS.Array===e||rS[nS]===e)},iS=function(e,t,n){var r=Ew(t);r in e?Cw.f(e,r,Dw(0,n)):e[r]=n},aS=Xb("iterator"),uS=function(e){if(null!=e)return yw(e,aS)||yw(e,"@@iterator")||tS[nE(e)]},sS=hb.TypeError,lS=function(e,t){var n=arguments.length<2?uS(e):t;if(vw(n))return uw(lw(n,e));throw sS(hw(e)+" is not iterable")},cS=hb.Array,fS=Xb("iterator"),dS=!1;try{var pS=0,hS={next:function(){return{done:!!pS++}},return:function(){dS=!0}};hS[fS]=function(){return this},Array.from(hS,(function(){throw 2}))}catch(RO){}var gS=function(e,t){if(!t&&!dS)return!1;var n=!1;try{var r={};r[fS]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},vS=!gS((function(e){Array.from(e)}));hx({target:"Array",stat:!0,forced:vS},{from:function(e){var t=Ab(e),n=AE(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=lE(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=uS(t),p=0;if(!d||this==cS&&oS(d))for(a=mE(t),u=n?new this(a):cS(a);a>p;p++)f=i?o(t[p],p):t[p],iS(u,p,f);else for(c=(l=lS(t,d)).next,u=n?new this:[];!(s=lw(c,l)).done;p++)f=i?eS(l,o,[s.value,p],!0):s.value,iS(u,p,f);return u.length=p,u}});var yS,mS,bS,wS=Sb("".charAt),ES=Sb("".charCodeAt),xS=Sb("".slice),SS=function(e){return function(t,n){var r,o,i=Sx(Db(t)),a=gE(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ES(i,a))<55296||r>56319||a+1===u||(o=ES(i,a+1))<56320||o>57343?e?wS(i,a):r:e?xS(i,a,a+2):o-56320+(r-55296<<10)+65536}},CS={codeAt:SS(!1),charAt:SS(!0)},DS=!$b((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),OS=Nw("IE_PROTO"),AS=hb.Object,kS=AS.prototype,BS=DS?AS.getPrototypeOf:function(e){var t=Ab(e);if(Bb(t,OS))return t[OS];var n=t.constructor;return jb(n)&&t instanceof n?n.prototype:t instanceof AS?kS:null},_S=Xb("iterator"),FS=!1;[].keys&&("next"in(bS=[].keys())?(mS=BS(BS(bS)))!==Object.prototype&&(yS=mS):FS=!0),(null==yS||$b((function(){var e={};return yS[_S].call(e)!==e})))&&(yS={}),jb(yS[_S])||Yw(yS,_S,(function(){return this}));var TS={IteratorPrototype:yS,BUGGY_SAFARI_ITERATORS:FS},PS=Cw.f,jS=Xb("toStringTag"),NS=function(e,t,n){e&&!Bb(e=n?e:e.prototype,jS)&&PS(e,jS,{configurable:!0,value:t})},IS=TS.IteratorPrototype,RS=function(){return this},LS=hb.String,MS=hb.TypeError,zS=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Sb(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return uw(n),function(e){if("object"==typeof e||jb(e))return e;throw MS("Can't set "+LS(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),US=Kw.PROPER,HS=Kw.CONFIGURABLE,$S=TS.IteratorPrototype,VS=TS.BUGGY_SAFARI_ITERATORS,WS=Xb("iterator"),qS=function(){return this},GS=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Mx(IS,{next:Dw(1,n)}),NS(e,o,!1),tS[o]=RS}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!VS&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[WS]||p["@@iterator"]||o&&p[o],g=!VS&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=BS(v.call(new e)))!==Object.prototype&&u.next&&(BS(u)!==$S&&(zS?zS(u,$S):jb(u[WS])||Yw(u,WS,qS)),NS(u,f,!0)),US&&"values"==o&&h&&"values"!==h.name&&(HS?Ow(p,"name","values"):(d=!0,g=function(){return lw(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(VS||d||!(l in p))&&Yw(p,l,s[l]);else hx({target:t,proto:!0,forced:VS||d},s);return p[WS]!==g&&Yw(p,WS,g,{name:o}),tS[t]=g,s},KS=CS.charAt,YS=Vw.set,XS=Vw.getterFor("String Iterator");GS(String,"String",(function(e){YS(this,{type:"String Iterator",string:Sx(e),index:0})}),(function(){var e,t=XS(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=KS(n,r),t.index+=e.length,{value:e,done:!1})}));var ZS,JS=VE.f,QS=Sb("".endsWith),eC=Sb("".slice),tC=Math.min,nC=Yx("endsWith"),rC=!(nC||(ZS=JS(String.prototype,"endsWith"),!ZS||ZS.writable));hx({target:"String",proto:!0,forced:!rC&&!nC},{endsWith:function(e){var t=Sx(Db(this));Gx(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:tC(yE(n),r),i=Sx(e);return QS?QS(t,i,o):eC(t,o-i.length,o)===i}});var oC=Sb([].join),iC=dE!=Object,aC=jE("join",",");hx({target:"Array",proto:!0,forced:iC||!aC},{join:function(e){return oC(HE(this),void 0===e?",":e)}});var uC=Xb("species"),sC=function(e){return Hb>=51||!$b((function(){var t=[];return(t.constructor={})[uC]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},lC=PE.map,cC=sC("map");hx({target:"Array",proto:!0,forced:!cC},{map:function(e){return lC(this,e,arguments.length>1?arguments[1]:void 0)}});var fC=hb.RegExp,dC=$b((function(){var e=fC("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),pC=dC||$b((function(){return!fC("a","y").sticky})),hC={BROKEN_CARET:dC||$b((function(){var e=fC("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:pC,UNSUPPORTED_Y:dC},gC=hb.RegExp,vC=$b((function(){var e=gC(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),yC=hb.RegExp,mC=$b((function(){var e=yC("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),bC=Vw.get,wC=mb("native-string-replace",String.prototype.replace),EC=RegExp.prototype.exec,xC=EC,SC=Sb("".charAt),CC=Sb("".indexOf),DC=Sb("".replace),OC=Sb("".slice),AC=function(){var e=/a/,t=/b*/g;return lw(EC,e,"a"),lw(EC,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),kC=hC.BROKEN_CARET,BC=void 0!==/()??/.exec("")[1];(AC||BC||kC||vC||mC)&&(xC=function(e){var t,n,r,o,i,a,u,s=this,l=bC(s),c=Sx(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=lw(xC,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=kC&&s.sticky,h=lw(Cx,s),g=s.source,v=0,y=c;if(p&&(h=DC(h,"y",""),-1===CC(h,"g")&&(h+="g"),y=OC(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==SC(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),BC&&(n=new RegExp("^"+g+"$(?!\\s)",h)),AC&&(r=s.lastIndex),o=lw(EC,p?n:s,y),p?o?(o.input=OC(o.input,v),o[0]=OC(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:AC&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),BC&&o&&o.length>1&&lw(wC,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=Mx(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var _C=xC;hx({target:"RegExp",proto:!0,forced:/./.exec!==_C},{exec:_C});var FC=Function.prototype,TC=FC.apply,PC=FC.bind,jC=FC.call,NC="object"==typeof Reflect&&Reflect.apply||(PC?jC.bind(TC):function(){return jC.apply(TC,arguments)}),IC=Xb("species"),RC=RegExp.prototype,LC=function(e,t,n,r){var o=Xb(e),i=!$b((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!$b((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[IC]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Sb(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Sb(e),s=t.exec;return s===_C||s===RC.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Yw(String.prototype,e,s[0]),Yw(RC,o,s[1])}r&&Ow(RC[o],"sham",!0)},MC=CS.charAt,zC=function(e,t,n){return t+(n?MC(e,t).length:1)},UC=Math.floor,HC=Sb("".charAt),$C=Sb("".replace),VC=Sb("".slice),WC=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,qC=/\$([$&'`]|\d{1,2})/g,GC=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=qC;return void 0!==o&&(o=Ab(o),s=WC),$C(i,s,(function(i,s){var l;switch(HC(s,0)){case"$":return"$";case"&":return e;case"`":return VC(t,0,n);case"'":return VC(t,a);case"<":l=o[VC(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=UC(c/10);return 0===f?i:f<=u?void 0===r[f-1]?HC(s,1):r[f-1]+HC(s,1):i}l=r[c-1]}return void 0===l?"":l}))},KC=hb.TypeError,YC=function(e,t){var n=e.exec;if(jb(n)){var r=lw(n,e,t);return null!==r&&uw(r),r}if("RegExp"===Jw(e))return lw(_C,e,t);throw KC("RegExp#exec called on incompatible receiver")},XC=Xb("replace"),ZC=Math.max,JC=Math.min,QC=Sb([].concat),eD=Sb([].push),tD=Sb("".indexOf),nD=Sb("".slice),rD="$0"==="a".replace(/./,"$0"),oD=!!/./[XC]&&""===/./[XC]("a","$0");LC("replace",(function(e,t,n){var r=oD?"$":"$0";return[function(e,n){var r=Db(this),o=null==e?void 0:yw(e,XC);return o?lw(o,e,r,n):lw(t,Sx(r),e,n)},function(e,o){var i=uw(this),a=Sx(e);if("string"==typeof o&&-1===tD(o,r)&&-1===tD(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=jb(o);s||(o=Sx(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=YC(i,a);if(null===d)break;if(eD(f,d),!l)break;""===Sx(d[0])&&(i.lastIndex=zC(a,yE(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=Sx((d=f[v])[0]),m=ZC(JC(gE(d.index),a.length),0),b=[],w=1;w<d.length;w++)eD(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=QC([y],b,m,a);void 0!==E&&eD(x,E);var S=Sx(NC(o,void 0,x))}else S=GC(y,a,m,b,E,o);m>=g&&(h+=nD(a,g,m)+S,g=m+y.length)}return h+nD(a,g)}]}),!!$b((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!rD||oD);var iD=function(e,t){return(iD=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])})(e,t)};function aD(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}iD(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var uD=function(){return(uD=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}).apply(this,arguments)};function sD(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 lD(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 cD(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var fD=0,dD=function(){this.id=""+fD++},pD=Vw.set,hD=Vw.getterFor("Array Iterator"),gD=GS(Array,"Array",(function(e,t){pD(this,{type:"Array Iterator",target:HE(e),index:0,kind:t})}),(function(){var e=hD(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");tS.Arguments=tS.Array,Hx("keys"),Hx("values"),Hx("entries");var vD=function(e,t,n){for(var r in t)Yw(e,r,t[r],n);return e},yD=hb.Array,mD=Math.max,bD=function(e,t,n){for(var r=mE(e),o=GE(t,r),i=GE(void 0===n?r:n,r),a=yD(mD(i-o,0)),u=0;o<i;o++,u++)iS(a,u,e[o]);return a.length=u,a},wD=tx.f,ED="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xD={f:function(e){return ED&&"Window"==Jw(e)?function(e){try{return wD(e)}catch(e){return bD(ED)}}(e):wD(HE(e))}},SD=$b((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),CD=Object.isExtensible,DD=$b((function(){CD(1)}))||SD?function(e){return!!ew(e)&&(!SD||"ArrayBuffer"!=Jw(e))&&(!CD||CD(e))}:CD,OD=!$b((function(){return Object.isExtensible(Object.preventExtensions({}))})),AD=cb((function(e){var t=Cw.f,n=!1,r=Pb("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=tx.f,t=Sb([].splice),o={};o[r]=1,e(o).length&&(tx.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},hx({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:xD.f}))},fastKey:function(e,t){if(!ew(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Bb(e,r)){if(!DD(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Bb(e,r)){if(!DD(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return OD&&n&&DD(e)&&!Bb(e,r)&&i(e),e}};Iw[r]=!0})),kD=hb.TypeError,BD=function(e,t){this.stopped=e,this.result=t},_D=BD.prototype,FD=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=lE(t,c),g=function(e){return r&&Qx(r,"normal",e),new BD(!0,e)},v=function(e){return f?(uw(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=uS(e)))throw kD(hw(e)+" is not iterable");if(oS(o)){for(i=0,a=mE(e);a>i;i++)if((u=v(e[i]))&&cw(_D,u))return u;return new BD(!1)}r=lS(e,o)}for(s=r.next;!(l=lw(s,r)).done;){try{u=v(l.value)}catch(e){Qx(r,"throw",e)}if("object"==typeof u&&u&&cw(_D,u))return u}return new BD(!1)},TD=hb.TypeError,PD=function(e,t){if(cw(t,e))return e;throw TD("Incorrect invocation")},jD=function(e,t,n){var r,o;return zS&&jb(r=t.constructor)&&r!==n&&ew(o=r.prototype)&&o!==n.prototype&&zS(e,o),e},ND=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=hb[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Sb(u[e]);Yw(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!ew(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!ew(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!ew(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(dx(e,!jb(a)||!(o||u.forEach&&!$b((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),AD.enable();else if(dx(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=$b((function(){f.has(1)})),h=gS((function(e){new a(e)})),g=!o&&$b((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){PD(e,u);var n=jD(new a,e,s);return null!=t&&FD(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,hx({global:!0,forced:s!=a},l),NS(s,e),o||n.setStrong(s,e,r),s},ID=AD.getWeakData,RD=Vw.set,LD=Vw.getterFor,MD=PE.find,zD=PE.findIndex,UD=Sb([].splice),HD=0,$D=function(e){return e.frozen||(e.frozen=new VD)},VD=function(){this.entries=[]},WD=function(e,t){return MD(e.entries,(function(e){return e[0]===t}))};VD.prototype={get:function(e){var t=WD(this,e);if(t)return t[1]},has:function(e){return!!WD(this,e)},set:function(e,t){var n=WD(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=zD(this.entries,(function(t){return t[0]===e}));return~t&&UD(this.entries,t,1),!!~t}};var qD,GD={getConstructor:function(e,t,n,r){var o=e((function(e,o){PD(e,i),RD(e,{type:t,id:HD++,frozen:void 0}),null!=o&&FD(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=LD(t),u=function(e,t,n){var r=a(e),o=ID(uw(t),!0);return!0===o?$D(r).set(t,n):o[r.id]=n,e};return vD(i,{delete:function(e){var t=a(this);if(!ew(e))return!1;var n=ID(e);return!0===n?$D(t).delete(e):n&&Bb(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!ew(e))return!1;var n=ID(e);return!0===n?$D(t).has(e):n&&Bb(n,t.id)}}),vD(i,n?{get:function(e){var t=a(this);if(ew(e)){var n=ID(e);return!0===n?$D(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}},KD=Vw.enforce,YD=!hb.ActiveXObject&&"ActiveXObject"in hb,XD=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ZD=ND("WeakMap",XD,GD);if(Pw&&YD){qD=GD.getConstructor(XD,"WeakMap",!0),AD.enable();var JD=ZD.prototype,QD=Sb(JD.delete),eO=Sb(JD.has),tO=Sb(JD.get),nO=Sb(JD.set);vD(JD,{delete:function(e){if(ew(e)&&!DD(e)){var t=KD(this);return t.frozen||(t.frozen=new qD),QD(this,e)||t.frozen.delete(e)}return QD(this,e)},has:function(e){if(ew(e)&&!DD(e)){var t=KD(this);return t.frozen||(t.frozen=new qD),eO(this,e)||t.frozen.has(e)}return eO(this,e)},get:function(e){if(ew(e)&&!DD(e)){var t=KD(this);return t.frozen||(t.frozen=new qD),eO(this,e)?tO(this,e):t.frozen.get(e)}return tO(this,e)},set:function(e,t){if(ew(e)&&!DD(e)){var n=KD(this);n.frozen||(n.frozen=new qD),eO(this,e)?nO(this,e,t):n.frozen.set(e,t)}else nO(this,e,t);return this}})}var rO=Xb("iterator"),oO=Xb("toStringTag"),iO=gD.values,aO=function(e,t){if(e){if(e[rO]!==iO)try{Ow(e,rO,iO)}catch(t){e[rO]=iO}if(e[oO]||Ow(e,oO,t),oE[t])for(var n in gD)if(e[n]!==gD[n])try{Ow(e,n,gD[n])}catch(t){e[n]=gD[n]}}};for(var uO in oE)aO(hb[uO]&&hb[uO].prototype,uO);aO(uE,"DOMTokenList");var sO=new WeakMap,lO=new WeakMap,cO=new WeakMap,fO=new WeakMap,dO=new WeakMap,pO=new WeakMap,hO=new WeakMap,gO=new WeakMap,vO=new WeakMap,yO=new WeakMap,mO=new WeakMap,bO=new WeakMap,wO=new WeakMap,EO=new WeakMap,xO=new WeakMap,SO=new WeakMap,CO=new WeakMap,DO=new WeakMap,OO=new WeakMap,AO=new WeakMap,kO=new WeakMap,BO=new WeakMap,_O=new WeakMap,FO=new WeakMap,TO=new WeakMap,PO=PE.find,jO=!0;"find"in[]&&Array(1).find((function(){jO=!1})),hx({target:"Array",proto:!0,forced:jO},{find:function(e){return PO(this,e,arguments.length>1?arguments[1]:void 0)}}),Hx("find"),hx({global:!0},{globalThis:hb});const NO=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Bp&&(hp.fn.css=Bp),Np&&(hp.fn.append=Np),gp&&(hp.fn.addClass=gp),vp&&(hp.fn.removeClass=vp),yp&&(hp.fn.hasClass=yp),xp&&(hp.fn.on=xp),qp&&(hp.fn.focus=qp),mp&&(hp.fn.attr=mp),bp&&(hp.fn.removeAttr=bp),Ap&&(hp.fn.hide=Ap),kp&&(hp.fn.show=kp),Op&&(hp.fn.offset=Op),Cp&&(hp.fn.width=Cp),Dp&&(hp.fn.height=Dp),Rp&&(hp.fn.parent=Rp),Lp&&(hp.fn.parents=Lp),jp&&(hp.fn.is=jp),wp&&(hp.fn.dataset=wp),Ep&&(hp.fn.val=Ep),Pp&&(hp.fn.text=Pp),Tp&&(hp.fn.html=Tp),zp&&(hp.fn.children=zp),Up&&(hp.fn.remove=Up),Mp&&(hp.fn.find=Mp),_p&&(hp.fn.each=_p),Hp&&(hp.fn.empty=Hp);var IO,RO,LO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},MO=function(e){return zO(e)&&1===e.nodeType},zO=function(e){var t=LO(e);return!!t&&e instanceof t.Node},UO=function(e){var t=e&&e.anchorNode&&LO(e.anchorNode);return!!t&&e instanceof t.Selection},HO=function(e){return zO(e)&&3===e.nodeType},$O=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},VO=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(zO(r=i)&&8===r.nodeType||MO(i)&&0===i.childNodes.length||MO(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},WO=function(e,t,n){return lD(VO(e,t,n),1)[0]};function qO(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||qO(o,t)}}function GO(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==IO.ELEMENT_NODE?"":t.tagName.toLowerCase()}(RO=IO||(IO={}))[RO.ELEMENT_NODE=1]="ELEMENT_NODE",RO[RO.TEXT_NODE=3]="TEXT_NODE",RO[RO.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",RO[RO.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",RO[RO.COMMENT_NODE=8]="COMMENT_NODE",RO[RO.DOCUMENT_NODE=9]="DOCUMENT_NODE",RO[RO.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",RO[RO.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var KO="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),YO="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var XO="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),ZO="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),JO="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),QO="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var eA=!JO&&!ZO&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,tA={getWindow:function(e){var t=kO.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=AO.get(t);return n||(n=new dD,AO.set(t,n)),n},setNewKey:function(e){var t=new dD;AO.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=xO.get(r);if(null==o){if(df.isEditor(r))return n;break}var i=EO.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=tA.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return xO.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=tA.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[tA.findPath(e,t)[0]];return yf.get(e,n)},toDOMNode:function(e,t){var n;if(df.isEditor(t))n=SO.get(e);else{var r=tA.findKey(e,t);n=DO.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=tA.toDOMNode(e,e);try{r=MO(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=Bf.isBackward(t),i=tA.toDOMPoint(e,n),a=Bf.isCollapsed(t)?i:tA.toDOMPoint(e,r),u=tA.getWindow(e).document.createRange(),s=lD(o?a:i,2),l=s[0],c=s[1],f=lD(o?i:a,2),d=f[0],p=f[1],h=!!(MO(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(MO(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,h?1:c),u.setEnd(d,g?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=lD(df.node(e,t.path),1)[0],a=tA.toDOMNode(e,i);df.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=sD(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),g=s+(null==h?p:parseInt(h,10));if(t.offset<=g){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=g}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=MO(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?CO.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=tA.toSlateNode(e,t.target),u=tA.findPath(e,a);if(df.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=df.point(e,u,{edge:l?"start":"end"}),f=l?df.before(e,c):df.after(e,c);if(f)return df.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return tA.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((UO(t)?t.anchorNode:t.startContainer)&&(UO(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=QO&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=tA.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:tA.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return Bf.isExpanded(d)&&Bf.isForward(d)&&MO(i)&&df.void(e,{at:d.focus,mode:"highest"})&&(d=df.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=lD(o?t:function(e){var t,n=lD(e,2),r=n[0],o=n[1];if(MO(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=lD(VO(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;MO(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=WO(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=tA.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();cD(cD([],lD(Qd(v.querySelectorAll("[data-slate-zero-width]")))),lD(Qd(v.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=v.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||YO&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=tA.toSlateNode(e,c);return{path:tA.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return df.hasPath(e,n.path)&&df.hasPath(e,r.path)},getNodeType:function(e){return af.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return yf.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=df.nodes(e,{universal:!0});try{for(var i=sD(o),a=i.next();!a.done;a=i.next()){var u=lD(a.value,1)[0];af.isElement(u)&&r.push(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=lD(df.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1)[0];return null==r?null:r[0]},getSelectedTextNode:function(e){var t=lD(df.nodes(e,{match:function(e){return If.isText(e)},universal:!0}),1)[0];return null==t?null:t[0]},isNodeSelected:function(e,t){var n=lD(df.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return null!=n&&lD(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(df.isEnd(e,n.anchor,t)||df.isEnd(e,n.focus,t))},getTextarea:function(e){var t=sO.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return fO.get(e)||null},getHoverbar:function(e){return pO.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=tA.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=sD(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=df.nodes(e,{match:function(t){return!(!af.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=sD(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];qO(tA.toDOMNode(e,h),(function(e,t){var n=hp(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=df.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=sD(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(Bf.isExpanded(t))return!1;var n=tA.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=df.node(e,t);if(null==n)return!1;var r=lD(n,1)[0].children;return 1===r.length&&""===r[0].text}},nA=1,rA={},oA={},iA=PE.filter,aA=sC("filter");hx({target:"Array",proto:!0,forced:!aA},{filter:function(e){return iA(this,e,arguments.length>1?arguments[1]:void 0)}});var uA="\t\n\v\f\r    \u2028\u2029\ufeff",sA=Sb("".replace),lA="["+uA+"]",cA=RegExp("^"+lA+lA+"*"),fA=RegExp(lA+lA+"*$"),dA=function(e){return function(t){var n=Sx(Db(t));return 1&e&&(n=sA(n,cA,"")),2&e&&(n=sA(n,fA,"")),n}},pA={start:dA(1),end:dA(2),trim:dA(3)},hA=Kw.PROPER,gA=pA.trim;hx({target:"String",proto:!0,forced:function(e){return $b((function(){return!!uA[e]()||"…"!=="…"[e]()||hA&&uA[e].name!==e}))}("trim")},{trim:function(){return gA(this)}});var vA=[],yA={};function mA(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var bA,wA,EA,xA,SA=hb.Promise,CA=Xb("species"),DA=function(e){var t=Ib(e),n=Cw.f;Qb&&t&&!t[CA]&&n(t,CA,{configurable:!0,get:function(){return this}})},OA=hb.TypeError,AA=Xb("species"),kA=function(e,t){var n,r=uw(e).constructor;return void 0===r||null==(n=uw(r)[AA])?t:function(e){if(AE(e))return e;throw OA(hw(e)+" is not a constructor")}(n)},BA=Sb([].slice),_A=/(?:ipad|iphone|ipod).*applewebkit/i.test(Rb),FA="process"==Jw(hb.process),TA=hb.setImmediate,PA=hb.clearImmediate,jA=hb.process,NA=hb.Dispatch,IA=hb.Function,RA=hb.MessageChannel,LA=hb.String,MA=0,zA={};try{bA=hb.location}catch(RO){}var UA=function(e){if(Bb(zA,e)){var t=zA[e];delete zA[e],t()}},HA=function(e){return function(){UA(e)}},$A=function(e){UA(e.data)},VA=function(e){hb.postMessage(LA(e),bA.protocol+"//"+bA.host)};TA&&PA||(TA=function(e){var t=BA(arguments,1);return zA[++MA]=function(){NC(jb(e)?e:IA(e),void 0,t)},wA(MA),MA},PA=function(e){delete zA[e]},FA?wA=function(e){jA.nextTick(HA(e))}:NA&&NA.now?wA=function(e){NA.now(HA(e))}:RA&&!_A?(xA=(EA=new RA).port2,EA.port1.onmessage=$A,wA=lE(xA.postMessage,xA)):hb.addEventListener&&jb(hb.postMessage)&&!hb.importScripts&&bA&&"file:"!==bA.protocol&&!$b(VA)?(wA=VA,hb.addEventListener("message",$A,!1)):wA="onreadystatechange"in rw("script")?function(e){Px.appendChild(rw("script")).onreadystatechange=function(){Px.removeChild(this),UA(e)}}:function(e){setTimeout(HA(e),0)});var WA,qA,GA,KA,YA,XA,ZA,JA,QA={set:TA,clear:PA},ek=/ipad|iphone|ipod/i.test(Rb)&&void 0!==hb.Pebble,tk=/web0s(?!.*chrome)/i.test(Rb),nk=VE.f,rk=QA.set,ok=hb.MutationObserver||hb.WebKitMutationObserver,ik=hb.document,ak=hb.process,uk=hb.Promise,sk=nk(hb,"queueMicrotask"),lk=sk&&sk.value;lk||(WA=function(){var e,t;for(FA&&(e=ak.domain)&&e.exit();qA;){t=qA.fn,qA=qA.next;try{t()}catch(e){throw qA?KA():GA=void 0,e}}GA=void 0,e&&e.enter()},_A||FA||tk||!ok||!ik?!ek&&uk&&uk.resolve?((ZA=uk.resolve(void 0)).constructor=uk,JA=lE(ZA.then,ZA),KA=function(){JA(WA)}):FA?KA=function(){ak.nextTick(WA)}:(rk=lE(rk,hb),KA=function(){rk(WA)}):(YA=!0,XA=ik.createTextNode(""),new ok(WA).observe(XA,{characterData:!0}),KA=function(){XA.data=YA=!YA}));var ck,fk,dk,pk,hk=lk||function(e){var t={fn:e,next:void 0};GA&&(GA.next=t),qA||(qA=t,KA()),GA=t},gk=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=vw(t),this.reject=vw(n)},vk={f:function(e){return new gk(e)}},yk=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},mk="object"==typeof window,bk=QA.set,wk=Xb("species"),Ek="Promise",xk=Vw.getterFor(Ek),Sk=Vw.set,Ck=Vw.getterFor(Ek),Dk=SA&&SA.prototype,Ok=SA,Ak=Dk,kk=hb.TypeError,Bk=hb.document,_k=hb.process,Fk=vk.f,Tk=Fk,Pk=!!(Bk&&Bk.createEvent&&hb.dispatchEvent),jk=jb(hb.PromiseRejectionEvent),Nk=!1,Ik=dx(Ek,(function(){var e=Fw(Ok),t=e!==String(Ok);if(!t&&66===Hb)return!0;if(Hb>=51&&/native code/.test(e))return!1;var n=new Ok((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[wk]=r,!(Nk=n.then((function(){}))instanceof r)||!t&&mk&&!jk})),Rk=Ik||!gS((function(e){Ok.all(e).catch((function(){}))})),Lk=function(e){var t;return!(!ew(e)||!jb(t=e.then))&&t},Mk=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;hk((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&&$k(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(kk("Promise-chain cycle")):(u=Lk(a))?lw(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Uk(e)}))}},zk=function(e,t,n){var r,o;Pk?((r=Bk.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),hb.dispatchEvent(r)):r={promise:t,reason:n},!jk&&(o=hb["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=hb.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Uk=function(e){lw(bk,hb,(function(){var t,n=e.facade,r=e.value;if(Hk(e)&&(t=yk((function(){FA?_k.emit("unhandledRejection",r,n):zk("unhandledrejection",n,r)})),e.rejection=FA||Hk(e)?2:1,t.error))throw t.value}))},Hk=function(e){return 1!==e.rejection&&!e.parent},$k=function(e){lw(bk,hb,(function(){var t=e.facade;FA?_k.emit("rejectionHandled",t):zk("rejectionhandled",t,e.value)}))},Vk=function(e,t,n){return function(r){e(t,r,n)}},Wk=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Mk(e,!0))},qk=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw kk("Promise can't be resolved itself");var r=Lk(t);r?hk((function(){var n={done:!1};try{lw(r,t,Vk(qk,n,e),Vk(Wk,n,e))}catch(t){Wk(n,t,e)}})):(e.value=t,e.state=1,Mk(e,!1))}catch(t){Wk({done:!1},t,e)}}};if(Ik&&(Ak=(Ok=function(e){PD(this,Ak),vw(e),lw(ck,this);var t=xk(this);try{e(Vk(qk,t),Vk(Wk,t))}catch(e){Wk(t,e)}}).prototype,(ck=function(e){Sk(this,{type:Ek,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=vD(Ak,{then:function(e,t){var n=Ck(this),r=n.reactions,o=Fk(kA(this,Ok));return o.ok=!jb(e)||e,o.fail=jb(t)&&t,o.domain=FA?_k.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Mk(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),fk=function(){var e=new ck,t=xk(e);this.promise=e,this.resolve=Vk(qk,t),this.reject=Vk(Wk,t)},vk.f=Fk=function(e){return e===Ok||e===dk?new fk(e):Tk(e)},jb(SA)&&Dk!==Object.prototype)){pk=Dk.then,Nk||(Yw(Dk,"then",(function(e,t){var n=this;return new Ok((function(e,t){lw(pk,n,e,t)})).then(e,t)}),{unsafe:!0}),Yw(Dk,"catch",Ak.catch,{unsafe:!0}));try{delete Dk.constructor}catch(RO){}zS&&zS(Dk,Ak)}hx({global:!0,wrap:!0,forced:Ik},{Promise:Ok}),NS(Ok,Ek,!1),DA(Ek),dk=Ib(Ek),hx({target:Ek,stat:!0,forced:Ik},{reject:function(e){var t=Fk(this);return lw(t.reject,void 0,e),t.promise}}),hx({target:Ek,stat:!0,forced:Ik},{resolve:function(e){return function(e,t){if(uw(e),ew(t)&&t.constructor===e)return t;var n=vk.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),hx({target:Ek,stat:!0,forced:Rk},{all:function(e){var t=this,n=Fk(t),r=n.resolve,o=n.reject,i=yk((function(){var n=vw(t.resolve),i=[],a=0,u=1;FD(e,(function(e){var s=a++,l=!1;u++,lw(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=Fk(t),r=n.reject,o=yk((function(){var o=vw(t.resolve);FD(e,(function(e){lw(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Gk=hC.UNSUPPORTED_Y,Kk=Math.min,Yk=[].push,Xk=Sb(/./.exec),Zk=Sb(Yk),Jk=Sb("".slice);function Qk(e){Promise.resolve().then(e)}function eB(e){return"w-e-element-"+e}LC("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=Sx(Db(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!Wx(e))return lw(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=lw(_C,f,r))&&!((a=f.lastIndex)>c&&(Zk(s,Jk(r,c,i.index)),i.length>1&&i.index<r.length&&NC(Yk,s,bD(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&Xk(f,"")||Zk(s,""):Zk(s,Jk(r,c)),s.length>o?bD(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:lw(t,this,e,n)}:t,[function(t,n){var o=Db(this),i=null==t?void 0:yw(t,e);return i?lw(i,t,o,n):lw(r,Sx(o),t,n)},function(e,o){var i=uw(this),a=Sx(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=kA(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Gk?"g":"y"),f=new s(Gk?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===YC(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=Gk?0:h;var v,y=YC(f,Gk?Jk(a,h):a);if(null===y||(v=Kk(yE(f.lastIndex+(Gk?h:0)),a.length))===p)h=zC(a,h,l);else{if(Zk(g,Jk(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(Zk(g,y[m]),g.length===d)return g;h=p=v}}return Zk(g,Jk(a,p)),g}]}),!!$b((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]})),Gk);var tB=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},nB=function(e,t,n){var r=tA.toDOMRange(e,t).getBoundingClientRect(),o=tA.toDOMRange(e,n).getBoundingClientRect();return tB(r,o)&&tB(o,r)},rB=["span","b","strong","i","em","s","strike","u","font","sub","sup"],oB=[],iB=[],aB={},uB=Cw.f,sB=tx.f,lB=Vw.enforce,cB=Xb("match"),fB=hb.RegExp,dB=fB.prototype,pB=hb.SyntaxError,hB=Sb(Cx),gB=Sb(dB.exec),vB=Sb("".charAt),yB=Sb("".replace),mB=Sb("".indexOf),bB=Sb("".slice),wB=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,EB=/a/g,xB=/a/g,SB=new fB(EB)!==EB,CB=hC.MISSED_STICKY,DB=hC.UNSUPPORTED_Y,OB=Qb&&(!SB||CB||vC||mC||$b((function(){return xB[cB]=!1,fB(EB)!=EB||fB(xB)==xB||"/a/i"!=fB(EB,"i")})));if(dx("RegExp",OB)){for(var AB=function(e,t){var n,r,o,i,a,u,s=cw(dB,this),l=Wx(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===AB)return e;if((l||cw(dB,e))&&(e=e.source,c&&(t="flags"in d?d.flags:hB(d))),e=void 0===e?"":Sx(e),t=void 0===t?"":Sx(t),d=e,vC&&"dotAll"in EB&&(r=!!t&&mB(t,"s")>-1)&&(t=yB(t,/s/g,"")),n=t,CB&&"sticky"in EB&&(o=!!t&&mB(t,"y")>-1)&&DB&&(t=yB(t,/y/g,"")),mC&&(e=(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=vB(e,r)))t+=vB(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:gB(wB,bB(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||Bb(a,c))throw new pB("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e))[0],f=i[1]),a=jD(fB(e,t),s?this:dB,AB),(r||o||f.length)&&(u=lB(a),r&&(u.dotAll=!0,u.raw=AB(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=vB(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+vB(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{Ow(a,"source",""===d?"(?:)":d)}catch(e){}return a},kB=function(e){e in AB||uB(AB,e,{configurable:!0,get:function(){return fB[e]},set:function(t){fB[e]=t}})},BB=sB(fB),_B=0;BB.length>_B;)kB(BB[_B++]);dB.constructor=AB,AB.prototype=dB,Yw(hb,"RegExp",AB)}DA("RegExp");var FB=new RegExp(String.fromCharCode(160),"g");function TB(e){return e.replace(FB," ")}function PB(e,t){var n=e.length;if(n){var r=e[n-1];if(If.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function jB(e,t,n){return{type:"paragraph",children:[{text:hp(e).text().replace(/\s+/gm," ")}]}}function NB(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==IO.ELEMENT_NODE)if(e.nodeType!==IO.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=TB(r),PB(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(PB(n,"\n")||n.push({text:"\n"}));var o=RB(hp(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in aB)if(e[0].matches(t))return aB[t];return jB}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){df.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),iB.forEach((function(n){r=n(e[0],r,t)})))})),r}function IB(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"",r={text:n=TB(n=function(e){return e.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n))};return iB.forEach((function(n){r=n(e[0],r,t)})),r}function RB(e,t){oB.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=hp(r(e[0])))}));var n=GO(e);return"span"===n?e.attr("data-w-e-type")?NB(e,t):IB(e,t):"code"===n?"pre"===GO(e.parent())?NB(e,t):IB(e,t):rB.includes(n)?IB(e,t):NB(e,t)}function LB(e,t,n){var r=hp(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function MB(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=hp("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=RB(hp(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var zB=Cw.f,UB=AD.fastKey,HB=Vw.set,$B=Vw.getterFor;ND("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,n,r){var o=e((function(e,o){PD(e,i),HB(e,{type:t,index:Mx(null),first:void 0,last:void 0,size:0}),Qb||(e.size=0),null!=o&&FD(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=$B(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=UB(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),Qb?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=UB(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return vD(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Qb?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),Qb?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=lE(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),vD(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),Qb&&zB(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=$B(t),i=$B(r);GS(e,t,(function(e,t){HB(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),DA(t)}});var VB=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function WB(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):Qf.insertNodes(e,t,{mode:"highest"})}var qB=function(e){return null!=e},GB={object:!0,function:!0,undefined:!0},KB=/^\s*class[\s{/}]/,YB=Function.prototype.toString,XB=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!function(e){if(!function(e){return!!qB(e)&&hasOwnProperty.call(GB,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!KB.test(YB.call(e))},ZB=function(e){return null!=e},JB=Object.keys,QB=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return JB(ZB(e)?Object(e):e)},e_=function(e){if(!ZB(e))throw new TypeError("Cannot use null or undefined");return e},t_=Math.max,n_=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=t_(arguments.length,2);for(e=Object(e_(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)QB(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},r_=Array.prototype.forEach,o_=Object.create,i_=function(e,t){var n;for(n in e)t[n]=e[n]},a_=function(e){var t=o_(null);return r_.call(arguments,(function(e){ZB(e)&&i_(Object(e),t)})),t},u_="razdwatrzy",s_=String.prototype.indexOf,l_="function"==typeof u_.contains&&!0===u_.contains("dwa")&&!1===u_.contains("foo")?String.prototype.contains:function(e){return s_.call(this,e,arguments[1])>-1},c_=cb((function(e){(e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],qB(e)?(n=l_.call(e,"c"),r=l_.call(e,"e"),o=l_.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?n_(a_(i),a):a}).gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],qB(t)?XB(t)?qB(n)?XB(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,qB(e)?(r=l_.call(e,"c"),o=l_.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?n_(a_(i),a):a}})),f_=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},d_=cb((function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var r,i;return f_(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(f_(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];l.call(o,this,i)}},a={on:n=function(e,t){var n;return f_(t),h.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),d(this,"__ee__",g),g.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:r,off:o,emit:i},u={on:c_(n),once:c_(r),off:c_(o),emit:c_(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function p_(e){var t=FO.get(e);return null==t&&(t=d_(),FO.set(e,t)),t}var h_=new WeakMap;function g_(e,t){var n=h_.get(e);null==n&&(n=new Set,h_.set(e,n)),n.add(t)}function v_(e){return h_.get(e)||new Set}function y_(e){h_.set(e,new Set)}function m_(e){var t=tA.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function b_(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=m_(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=tA.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var h=u-f;c.bottom=h+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function w_(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=af.isElement(t)&&e.isVoid(t),i=af.isElement(t)&&e.isInline(t),a=OO.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(NO.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var h=m_(e);if(null==h)return r;var g,v=h.top,y=h.left,m=h.width,b=h.height,w={},E=s-v,x=l-y;if("bar"===n)return w.left=x+"px",E>40?w.bottom=b-E+5+"px":w.top=E+c+5+"px",w;if("modal"===n)return o?i?x>(m-f)/2?w.right=m-x+5+"px":w.left=x+f+5+"px":w.left="20px":w.left=x+"px",o?((g=E)<0&&(g=0),w.top=g+"px"):E>(b-c)/2?w.bottom=b-E+5+"px":((g=E+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function E_(e,t){Qk((function(){var n=m_(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0&&(r=p+d-u)>0){var v=t.css("top"),y=parseInt(v.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(g.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),E=parseInt(w.toString())-r;E<0&&(E=0),t.css("left",E+"px")}if(g.indexOf("right")>=0&&c<0){var x=t.css("right"),S=parseInt(x.toString())-Math.abs(c);t.css("right",S+"px")}}}))}var x_=sC("slice"),S_=Xb("species"),C_=hb.Array,D_=Math.max;hx({target:"Array",proto:!0,forced:!x_},{slice:function(e,t){var n,r,o,i=HE(this),a=mE(i),u=GE(e,a),s=GE(void 0===t?a:t,a);if(bE(i)&&(n=i.constructor,(AE(n)&&(n===C_||bE(n.prototype))||ew(n)&&null===(n=n[S_]))&&(n=void 0),n===C_||void 0===n))return BA(i,u,s);for(r=new(void 0===n?C_:n)(D_(s-u,0)),o=0;u<s;u++,o++)u in i&&iS(r,o,i[u]);return r.length=o,r}});var O_=VE.f,A_=Sb("".startsWith),k_=Sb("".slice),B_=Math.min,__=Yx("startsWith"),F_=!__&&!!function(){var e=O_(String.prototype,"startsWith");return e&&!e.writable}();hx({target:"String",proto:!0,forced:!F_&&!__},{startsWith:function(e){var t=Sx(Db(this));Gx(e);var n=yE(B_(arguments.length>1?arguments[1]:void 0,t.length)),r=Sx(e);return A_?A_(t,r,n):k_(t,n,n+r.length)===r}});var T_=Object.assign,P_=Object.defineProperty,j_=Sb([].concat),N_=!T_||$b((function(){if(Qb&&1!==T_({b:1},T_(P_({},"a",{enumerable:!0,get:function(){P_(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!=T_({},e)[n]||gx(T_({},t)).join("")!=r}))?function(e,t){for(var n=Ab(e),r=arguments.length,o=1,i=nx.f,a=UE.f;r>o;)for(var u,s=dE(arguments[o++]),l=i?j_(gx(s),i(s)):gx(s),c=l.length,f=0;c>f;)u=l[f++],Qb&&!lw(a,s,u)||(n[u]=s[u]);return n}:T_;hx({target:"Object",stat:!0,forced:Object.assign!==N_},{assign:N_});var I_=["props","attrs","style","dataset","on","hook"],R_=[],L_={};function M_(e,t,n){return Jh(n.isInline(e)?"span":"div",null,t)}function z_(e,t){return void 0===t&&(t=!1),Jh("span",{"data-slate-string":!0},t?e+"\n":e)}function U_(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),Jh("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?Jh("br",null):null)}function H_(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),Nh("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=function e(t,n,r,o){return EO.set(t,n),xO.set(t,r),af.isElement(t)?function(t,n){var r,o=tA.findKey(n,t),i=n.isInline(t),a=df.isVoid(n,t),u=eB(o.id),s={id:u,key:o.id,"data-slate-node":"element","data-slate-inline":i},l=t.type,c=t.children,f=void 0===c?[]:c,d=function(e){return L_[e]||M_}(l);r=a?null:f.map((function(r,o){return e(r,o,t,n)}));var p=d(t,r,n);if(a){s["data-slate-void"]=!0;var h=i?"span":"div",g=lD(yf.texts(t),1),v=lD(g[0],1)[0],y=Jh(h,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},e(v,0,t,n));p=Jh(h,{style:{position:"relative"}},p,y),EO.set(v,0),xO.set(v,t)}return null==p.data&&(p.data={}),Object.assign(p.data,s),a||i||(p=function(e,t){var n=t;return R_.forEach((function(r){n=r(e,t)})),n}(t,p)),Qk((function(){var e=$O(u);null!=e&&(DO.set(o,e),OO.set(t,e),CO.set(e,t))})),p}(t,o):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=tA.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=tA.findPath(n,e),a=o([e,i]),u=If.decorations(e,a),s=u.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=tA.findPath(o,n),u=Ef.parent(a);if(df.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?U_(yf.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==df.string(o,u)?""===i?U_():t&&"\n"===i.slice(-1)?z_(i,!0):z_(i):U_(0,!0)}(r,o===u.length-1,e,t,n);return Jh("span",{"data-slate-leaf":!0},i=function(e,t){var n=t;return R_.forEach((function(t){n=t(e,n)})),n}(r,i))})),l=function(e){return"w-e-text-"+e}(r.id),c=Jh("span",{"data-slate-node":"text",id:l,key:r.id},s);return Qk((function(){var t=$O(l);null!=t&&(DO.set(r,t),OO.set(e,t),CO.set(t,e))})),c}(t,r,o)}(e,n,t,t);return function e(t){var n=t.data,r=void 0===n?{}:n,o=t.children,i=void 0===o?[]:o;Object.keys(r).forEach((function(e){var n,o,i=r[e];if("key"!==e){if(!I_.includes(e)){if(e.startsWith("data-")){var a=e.slice(5);return a=Lg(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(t,((n={})[a]=i,n)),void delete r[e]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(t,(o={},o[e]=i,o)),delete r[e]}}else t.key=i})),i.length>0&&i.forEach((function(t){"string"!=typeof t&&e(t)}))}(r),r}));var c=mO.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return hp('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=function(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:Dh;for(const t of jh)for(const r of e){const e=r[t];void 0!==e&&n[t].push(e)}function o(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function i(e,t){var o,a;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;_h(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)Bh(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,g=e.elm=_h(s)&&_h(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(d<p&&g.setAttribute("id",c.slice(d+1,p)),f>0&&g.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](Fh,e);if(Ah(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,i(e,t))}else kh(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;_h(v)&&(null===(a=v.create)||void 0===a||a.call(v,Fh,e),v.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function a(e,t,n,o,a,u){for(;o<=a;++o){const a=n[o];null!=a&&r.insertBefore(e,i(a,u),t)}}function u(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&u(n)}}}function s(e,t,i,a){for(var s,l;i<=a;++i){let a,c;const f=t[i];if(null!=f)if(_h(f.sel)){u(f),a=n.remove.length+1,c=o(f.elm,a);for(let e=0;e<n.remove.length;++e)n.remove[e](f,c);const e=null===(l=null===(s=null==f?void 0:f.data)||void 0===s?void 0:s.hook)||void 0===l?void 0:l.remove;_h(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function l(e,t,o){var u,c,f,d,p;const h=null===(u=t.data)||void 0===u?void 0:u.hook;null===(c=null==h?void 0:h.prepatch)||void 0===c||c.call(h,e,t);const g=t.elm=e.elm,v=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}Bh(t.text)?_h(v)&&_h(y)?v!==y&&function(e,t,n,o){let u,c,f,d,p=0,h=0,g=t.length-1,v=t[0],y=t[g],m=n.length-1,b=n[0],w=n[m];for(;p<=g&&h<=m;)null==v?v=t[++p]:null==y?y=t[--g]:null==b?b=n[++h]:null==w?w=n[--m]:Th(v,b)?(l(v,b,o),v=t[++p],b=n[++h]):Th(y,w)?(l(y,w,o),y=t[--g],w=n[--m]):Th(v,w)?(l(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):Th(y,b)?(l(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===u&&(u=Ph(t,p,g)),c=u[b.key],Bh(c)?r.insertBefore(e,i(b,o),v.elm):(f=t[c],f.sel!==b.sel?r.insertBefore(e,i(b,o),v.elm):(l(f,b,o),t[c]=void 0,r.insertBefore(e,f.elm,v.elm))),b=n[++h]);(p<=g||h<=m)&&(p>g?(d=null==n[m+1]?null:n[m+1].elm,a(e,d,n,h,m,o)):s(e,t,p,g))}(g,v,y,o):_h(y)?(_h(e.text)&&r.setTextContent(g,""),a(g,null,y,0,y.length-1,o)):_h(v)?s(g,v,0,v.length-1):_h(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(_h(v)&&s(g,v,0,v.length-1),r.setTextContent(g,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let o,a,u;const c=[];for(o=0;o<n.pre.length;++o)n.pre[o]();for(function(e){return void 0!==e.sel}(e)||(e=function(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return Oh(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),Th(e,t)?l(e,t,c):(a=e.elm,u=r.parentNode(a),i(t,c),null!==u&&(r.insertBefore(u,t.elm,r.nextSibling(a)),s(u,[e],0,0))),o=0;o<c.length;++o)c[o].data.hook.insert(c[o]);for(o=0;o<n.post.length;++o)n.post[o]();return t}}([Mh,qh,Zh,Hh,Vh,Rh]))(n,s),mO.set(e,!1),bO.set(e,p)}else{var d=wO.get(e),p=bO.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=$O(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=LO(n);h&&kO.set(t,h)}SO.set(t,n),OO.set(t,n),CO.set(n,t),wO.set(e,s)}}function $_(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function V_(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function W_(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return V_(n.overflowY,t)||V_(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function q_(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function G_(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!$_(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;$_(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&W_(f)&&!W_(document.documentElement)||null!=f&&W_(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,m=v.width,b=v.top,w=v.right,E=v.bottom,x=v.left,S="start"===o||"nearest"===o?b:"end"===o?E:b+y/2,C="center"===i?x+m/2:"end"===i?w:x,D=[],O=0;O<c.length;O++){var A=c[O],k=A.getBoundingClientRect(),B=k.height,_=k.width,F=k.top,T=k.right,P=k.bottom,j=k.left;if("if-needed"===r&&b>=0&&x>=0&&E<=p&&w<=d&&b>=F&&E<=P&&x>=j&&w<=T)return D;var N=getComputedStyle(A),I=parseInt(N.borderLeftWidth,10),R=parseInt(N.borderTopWidth,10),L=parseInt(N.borderRightWidth,10),M=parseInt(N.borderBottomWidth,10),z=0,U=0,H="offsetWidth"in A?A.offsetWidth-A.clientWidth-I-L:0,$="offsetHeight"in A?A.offsetHeight-A.clientHeight-R-M:0;if(l===A)z="start"===o?S:"end"===o?S-p:"nearest"===o?q_(g,g+p,p,R,M,g+S,g+S+y,y):S-p/2,U="start"===i?C:"center"===i?C-d/2:"end"===i?C-d:q_(h,h+d,d,I,L,h+C,h+C+m,m),z=Math.max(0,z+g),U=Math.max(0,U+h);else{z="start"===o?S-F-R:"end"===o?S-P+M+$:"nearest"===o?q_(F,P,B,R,M+$,S,S+y,y):S-(F+B/2)+$/2,U="start"===i?C-j-I:"center"===i?C-(j+_/2)+H/2:"end"===i?C-T+L+H:q_(j,T,_,I,L+H,C,C+m,m);var V=A.scrollLeft,W=A.scrollTop;S+=W-(z=Math.max(0,Math.min(W+z,A.scrollHeight-B+$))),C+=V-(U=Math.max(0,Math.min(V+U,A.scrollWidth-_+H)))}D.push({el:A,top:z,left:U})}return D}function K_(e){return e===Object(e)&&0!==Object.keys(e).length}function Y_(e,t){return zO(t)&&tA.hasDOMNode(e,t,{editable:!0})}function X_(e,t){if(e.getConfig().readOnly)return!1;var n=Z_(e,t)&&tA.toSlateNode(e,t);return df.isVoid(e,n)}function Z_(e,t){return zO(t)&&tA.hasDOMNode(e,t)}function J_(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=tA.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=SO.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=tA.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&Bf.equals(l,r)){var c=!0;if(Bf.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||tA.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&tA.toDOMRange(t,r);if(g){Bf.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var y=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(K_(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:G_(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:K_(e)?e:{block:"start",inline:"nearest"}}(t);!function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(G_(e,r),r.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){g&&YO&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=tA.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var Q_=new WeakMap,eF=new WeakMap,tF={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},nF={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},rF={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},oF=function(e){var t=tF[e],n=nF[e],r=rF[e],o=t&&Kg(t),i=n&&Kg(n),a=r&&Kg(r);return function(e){return!(!o||!o(e))||!!(KO&&i&&i(e))||!(KO||!a||!a(e))}},iF={isBold:oF("bold"),isCompose:oF("compose"),isMoveBackward:oF("moveBackward"),isMoveForward:oF("moveForward"),isDeleteBackward:oF("deleteBackward"),isDeleteForward:oF("deleteForward"),isDeleteLineBackward:oF("deleteLineBackward"),isDeleteLineForward:oF("deleteLineForward"),isDeleteWordBackward:oF("deleteWordBackward"),isDeleteWordForward:oF("deleteWordForward"),isExtendBackward:oF("extendBackward"),isExtendForward:oF("extendForward"),isExtendLineBackward:oF("extendLineBackward"),isExtendLineForward:oF("extendLineForward"),isItalic:oF("italic"),isMoveLineBackward:oF("moveLineBackward"),isMoveLineForward:oF("moveLineForward"),isMoveWordBackward:oF("moveWordBackward"),isMoveWordForward:oF("moveWordForward"),isRedo:oF("redo"),isSplitBlock:oF("splitBlock"),isTransposeCharacter:oF("transposeCharacter"),isUndo:oF("undo"),isTab:oF("tab"),isSelectAll:oF("selectAll")};function aF(e){e.preventDefault()}var uF={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(eA&&!o&&Y_(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=lD(r.getTargetRanges(),1)[0];if(s){var l=tA.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&Bf.equals(i,l)||Qf.select(n,l)}}if(i&&Bf.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";df.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":df.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":df.deleteForward(n);break;case"deleteContentBackward":df.deleteBackward(n);break;case"deleteEntireSoftLine":df.deleteBackward(n,{unit:"line"}),df.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":df.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":df.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":df.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":df.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":df.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":df.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":df.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!TO.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&df.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&Y_(n,r.target)){var a=tA.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===tA.toDOMNode(n,n)||MO(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&zO(u)&&tA.hasDOMNode(n,u)){var s=tA.toSlateNode(n,u);if(af.isElement(s)&&!n.isVoid(s))return}if(XO){var l=a.getSelection();null==l||l.removeAllRanges()}BO.delete(n)}}}},focus:function(e,t,n){var r=tA.toDOMNode(n,n),o=tA.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,YO&&e.target!==r?r.focus():BO.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&Z_(n,e.target)&&zO(e.target)){var r=tA.toSlateNode(n,e.target),o=tA.findPath(n,r);if(df.hasPath(n,o)&&yf.get(n,o)===r){var i=df.start(n,o),a=df.end(n,o),u=df.void(n,{at:i}),s=df.void(n,{at:a});if(u&&s&&Ef.equals(u[1],s[1])){var l=df.range(n,i);Qf.select(n,l)}}}},compositionstart:function(e,t,n){if(Y_(n,e.target)){var r=n.selection;if(r&&Bf.isExpanded(r)&&(df.deleteFragment(n),Promise.resolve().then((function(){J_(t,n,!0)}))),r&&Bf.isCollapsed(r)){var o=tA.toDOMRange(n,r).startContainer,i=o.textContent||"";Q_.set(n,i),eF.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(Y_(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(QO||YO)&&tA.cleanExposedTexNodeInSelectionBlock(n);for(var i=Bf.isBackward(o)?o.focus:o.anchor,a=lD(df.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=lD(df.node(n,i.path.slice(0,u+1)),1)[0];if(af.isElement(s)&&((XO||YO)&&"link"===s.type||"code"===s.type)){tA.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=tA.getLeftLengthOfMaxLength(n);c<l.length?(tA.toDOMRange(n,o).startContainer.textContent=Q_.get(n)||"",c>0&&df.insertText(n,l.slice(0,c)),t.changeViewState()):df.insertText(n,l)}else df.insertText(n,l);XO||setTimeout((function(){var e=n.selection;if(null!=e){var t=eF.get(n);null!=t&&tA.toDOMRange(n,e).startContainer!==t&&(t.textContent=Q_.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){Y_(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&Y_(n,r.target)){if(function(e,t){var n=fO.get(e),r=n&&n.getMenus(),o=pO.get(e),i=o&&o.getMenus(),a=uD(uD({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&Gg(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),iF.isTab(r))return aF(r),void n.handleTab();if(iF.isRedo(r))return aF(r),void("function"==typeof n.redo&&n.redo());if(iF.isUndo(r))return aF(r),void("function"==typeof n.undo&&n.undo());if(iF.isMoveLineBackward(r))return aF(r),void Qf.move(n,{unit:"line",reverse:!0});if(iF.isMoveLineForward(r))return aF(r),void Qf.move(n,{unit:"line"});if(iF.isExtendLineBackward(r))return aF(r),void Qf.move(n,{unit:"line",edge:"focus",reverse:!0});if(iF.isExtendLineForward(r))return aF(r),void Qf.move(n,{unit:"line",edge:"focus"});if(iF.isMoveBackward(r))return aF(r),void(o&&Bf.isCollapsed(o)?Qf.move(n,{reverse:!0}):Qf.collapse(n,{edge:"start"}));if(iF.isMoveForward(r))return aF(r),void(o&&Bf.isCollapsed(o)?Qf.move(n):Qf.collapse(n,{edge:"end"}));if(iF.isMoveWordBackward(r))return aF(r),o&&Bf.isExpanded(o)&&Qf.collapse(n,{edge:"focus"}),void Qf.move(n,{unit:"word",reverse:!0});if(iF.isMoveWordForward(r))return aF(r),o&&Bf.isExpanded(o)&&Qf.collapse(n,{edge:"focus"}),void Qf.move(n,{unit:"word"});if(iF.isSelectAll(r))return aF(r),void n.selectAll();if(eA){if((QO||XO)&&o&&(iF.isDeleteBackward(r)||iF.isDeleteForward(r))&&Bf.isCollapsed(o)){var i=yf.parent(n,o.anchor.path);if(af.isElement(i)&&df.isVoid(n,i)&&df.isInline(n,i))return r.preventDefault(),void Qf.delete(n,{unit:"block"})}}else{if(iF.isBold(r)||iF.isItalic(r)||iF.isTransposeCharacter(r))return void aF(r);if(iF.isSplitBlock(r))return aF(r),void df.insertBreak(n);if(iF.isDeleteBackward(r))return aF(r),void(o&&Bf.isExpanded(o)?df.deleteFragment(n,{direction:"backward"}):df.deleteBackward(n));if(iF.isDeleteForward(r))return aF(r),void(o&&Bf.isExpanded(o)?df.deleteFragment(n,{direction:"forward"}):df.deleteForward(n));if(iF.isDeleteLineBackward(r))return aF(r),void(o&&Bf.isExpanded(o)?df.deleteFragment(n,{direction:"backward"}):df.deleteBackward(n,{unit:"line"}));if(iF.isDeleteLineForward(r))return aF(r),void(o&&Bf.isExpanded(o)?df.deleteFragment(n,{direction:"forward"}):df.deleteForward(n,{unit:"line"}));if(iF.isDeleteWordBackward(r))return aF(r),void(o&&Bf.isExpanded(o)?df.deleteFragment(n,{direction:"backward"}):df.deleteBackward(n,{unit:"word"}));if(iF.isDeleteWordForward(r))return aF(r),void(o&&Bf.isExpanded(o)?df.deleteFragment(n,{direction:"forward"}):df.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!eA&&!n.getConfig().readOnly&&Y_(n,e.target)){e.preventDefault();var r=e.key;df.insertText(n,r)}},copy:function(e,t,n){var r=e;if(Y_(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&Y_(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(Bf.isExpanded(o))df.deleteFragment(n);else{var a=yf.parent(n,o.anchor.path);df.isVoid(n,a)&&Qf.delete(n)}}},paste:function(e,t,n){TO.set(n,!0);var r=e;if(!n.getConfig().readOnly&&Y_(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void TO.set(n,!1);if(!eA||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(Z_(n,e.target)){var r=tA.toSlateNode(n,e.target);df.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(Z_(n,r.target)&&!n.getConfig().readOnly){var o=tA.toSlateNode(n,r.target),i=tA.findPath(n,o);if(df.isVoid(n,o)||df.void(n,{at:i,voids:!0})){var a=df.range(n,i);Qf.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&Z_(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&Z_(n,r.target)&&null!=o&&!(eA&&XO&&o.files.length>0)){r.preventDefault();var i=n.selection,a=tA.findEventRange(n,r);Qf.select(n,a),t.isDraggingInternally&&(i&&Qf.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},sF=1,lF=function(){function e(e){var t=this;this.id=sF++,this.$textArea=null,this.$progressBar=hp('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=hp('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Ch((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=tA.findDocumentOrShadowRoot(t),a=i.activeElement,u=tA.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,BO.set(t,!0)):BO.delete(t),!s)return Qf.deselect(t);var l=s.anchorNode,c=s.focusNode,f=Y_(t,l)||X_(t,l),d=Y_(t,c)||X_(t,c);if(f&&d){var p=tA.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});Qf.select(t,p)}else Qf.deselect(t)}}(t,e)}),100);var n=hp(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=hp('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=hp('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,Qk((function(){var e=t.editorInstance,n=tA.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=lO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(sh(uF,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Ch((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return o&&o(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-tA.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;H_(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=hp('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),Qk((function(){J_(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function cF(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&cF(t)}function fF(){return hp('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function dF(){return hp('<div class="w-e-bar-divider"></div>')}function pF(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=KO?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}LC("match",(function(e,t,n){return[function(t){var n=Db(this),r=null==t?void 0:yw(t,e);return r?lw(r,t,n):new RegExp(t)[e](Sx(n))},function(e){var r=uw(this),o=Sx(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return YC(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=YC(r,o));){var c=Sx(u[0]);s[l]=c,""===c&&(r.lastIndex=zC(o,yE(r.lastIndex),a)),l++}return 0===l?null:s}]}));var hF=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=hp('<div class="w-e-bar-item"></div>'),this.$button=hp('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=hp(c);cF(d),f.append(d)}else f.text(a);pF(f,c,a,s,n),n&&c&&f.append(hp('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),Qk((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),AF(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=AF(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=AF(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=AF(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),gF=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return aD(t,e),t.prototype.onButtonClick=function(){},t}(hF),vF=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=gO.get(e);null==t&&(t=new Set,gO.set(e,t)),t.add(this),vO.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=vO.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=vO.get(this);e&&e.emit("modalOrPanelHide")}},e}(),yF=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=hp('<div class="w-e-drop-panel"></div>'),n}return aD(t,e),t.prototype.genSelfElem=function(){return null},t}(vF),mF=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=fF();o.$button.append(i)}return o}return aD(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=AF(this);if(null==this.dropPanel){var n=new yF(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(hF),bF=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=hp('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return aD(t,e),t.prototype.genSelfElem=function(){var e=this,t=hp('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=vO.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(vF);function wF(e,t,n){var r=hp('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=hp('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function EF(e,t){var n=hp('<div class="button-container"></div>'),r=hp('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var xF=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=hp("body"),o.modal=null,o.menu=n,o}return aD(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=AF(this),t=this.menu.getModalPositionNode(e);return af.isElement(t)?w_(e,t,"modal"):b_(e)},t.prototype.handleModal=function(){var e=AF(this),t=this.menu;if(null==this.modal){var n=new bF(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=AF(this),r=this.menu;if(null!=r.getModalContentElem){var o=tA.getTextarea(n),i=tA.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||E_(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(hF),SF=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=hp('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return aD(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=hp("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=hp('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=hp('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(u),a.addClass("selected")}a.append(hp('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(vF),CF=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=hp('<div class="w-e-bar-item"></div>'),this.$button=hp('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),pF(f,s,i,c,n),this.$elem.append(f),this.menu=t,Qk((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),AF(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=AF(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new SF(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=hp(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=AF(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=AF(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=fF();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=AF(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),DF=function(){function e(e){this.$elem=hp('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=hp('<div class="w-e-bar-item-menus-container"></div>'),this.$button=hp('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=hp(n);cF(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=fF();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){hp(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),OF=new WeakMap;function AF(e){var t=hO.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function kF(e,t,n){void 0===n&&(n=!1);var r=OF.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new mF(e,t,n):a?new xF(e,t,n):new gF(e,t,n)}if("select"===o&&(r=new CF(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return OF.set(t,r),r}function BF(e,t){var n=e.selection;return null!=n&&!Bf.isCollapsed(n)&&!tA.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!If.isText(t)}var _F=function(){function e(){var e=this;this.$elem=hp('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=cv((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&af.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),Qk((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),tA.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;Qk((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=dF();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=oA[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=kF(e,r);this.hoverbarItems.push(i),hO.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),af.isElement(e)){var r=w_(t,e,"bar");return n.css(r),void E_(t,n)}if(If.isText(e))return r=b_(t),n.css(r),void E_(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,l=a||function(e,t){return tA.checkNodeType(t,o)},c=lD(df.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1)[0];if(null!=c)return n=c[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=dO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=BF),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=tA.findPath(null,e),r=tA.findPath(null,t);return Ef.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function FF(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,u=e.plugins,s=void 0===u?[]:u,l=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];Ex.withoutSaving(t,()=>{df.withoutNormalizing(t,()=>{for(var e of r)t.apply(e)})}),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];Ex.withoutSaving(t,()=>{df.withoutNormalizing(t,()=>{var e=r.map(wf.inverse).reverse();for(var n of e)t.apply(n)})}),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],u=a&&a[a.length-1],s=((e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type))(e,u),l=Ex.isSaving(t),c=Ex.isMerging(t);if(null==l&&(l=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),l){if(null==c&&(c=null!=a&&(0!==r.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Ef.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Ef.equals(e.path,t.path)))(e,u)||s)),a&&c)s&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();(e=>"set_selection"!==e.type)(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=tA.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=tA.getLeftLengthOfMaxLength(t);n<=0||n<yf.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(tA.getLeftLengthOfMaxLength(t)<yf.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=tA.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e;var a=Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===IO.TEXT_NODE?e+(t.textContent||""):n===IO.ELEMENT_NODE?VB.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"");r<a.length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=p_(t);if(r.on(e,n),"destroyed"===e&&g_(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),g_(t,o)}},t.once=function(e,n){p_(t).once(e,n)},t.off=function(e,n){p_(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=p_(t);o.emit.apply(o,cD([e],lD(n))),"destroyed"===e&&(v_(t).forEach((function(e){return o.off("destroyed",e)})),y_(t))},t}(function(e){var t=e;return t.select=function(e){Qf.select(t,e)},t.deselect=function(){var n=t.selection,r=tA.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&Qf.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||Qf.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=_O.get(t);null!=e&&(t.focus(),Qf.select(t,e))},t.getSelectionPosition=function(){return b_(t)},t.getNodePosition=function(e){return w_(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=lD(Bf.edges(e),2),r=n[0],o=n[1],i=lD(df.edges(t,[]),2),a=i[0],u=i[1];return!(!Df.equals(r,a)||!Df.equals(o,u))},t.selectAll=function(){var e=df.start(t,[]),n=df.end(t,[]);Qf.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=sD(df.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=lD(p.value,2),g=h[0],v=h[1],y=tA.findKey(t,g);f.push([v,y])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=sD(df.levels(t,{at:Ef.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=lD(b.value,2);g=w[0],v=w[1],y=tA.findKey(t,g),f.push([v,y])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var E=sD(df.levels(t,{at:Ef.common(Ef.parent(e.path),Ef.parent(e.newPath))})),x=E.next();!x.done;x=E.next()){var S=lD(x.value,2);g=S[0],v=S[1],y=tA.findKey(t,g),f.push([v,y])}}catch(e){u={error:e}}finally{try{x&&!x.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}}o(e);try{for(var C=sD(f),D=C.next();!D.done;D=C.next()){var O=lD(D.value,2);v=O[0],y=O[1],g=lD(df.node(t,v),1)[0],AO.set(g,y)}}catch(e){l={error:e}}finally{try{D&&!D.done&&(c=C.return)&&c.call(C)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&Bf.isCollapsed(e.selection)){var r=df.above(e,{match:function(t){return df.isBlock(e,t)},at:e.selection});if(r){var o=lD(r,2)[1],a=df.range(e,o,e.selection.anchor),u=function(e,t){var n=df.range(e,Bf.end(t)),r=Array.from(df.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(nB(e,df.range(e,r[o]),n))return df.range(e,r[o],n);if(r.length<2)return df.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)nB(e,df.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return df.range(e,r[i],n)}(t,a);Bf.isCollapsed(u)||Qf.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&_O.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return function e(t,n){return af.isElement(t)?function(t,n){var r=t.type,o=void 0===r?"":r,i=t.children,a=void 0===i?[]:i,u=df.isVoid(n,t),s="";u||(s=a.map((function(t){return e(t,n)})).join(""));var l=function(e){return yA[e]||mA}(o)(t,s,n),c="";if(c="string"==typeof l?l:l.html||"",u||vA.forEach((function(e){return c=e(t,c)})),"string"==typeof l)return c;var f=l.prefix,d=void 0===f?"":f,p=l.suffix,h=void 0===p?"":p;return d&&(c=d+c),h&&(c+=h),c}(t,n):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(r);var o=tA.getParentsNodes(t,e).some((function(e){return"pre"===tA.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=tA.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return vA.forEach((function(t){return r=t(e,r)})),r}(t,n)}(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return yf.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":df.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=df.nodes(t,{at:[],universal:!0});try{for(var u=sD(a),s=u.next();!s.done;s=u.next()){var l=lD(s.value,1)[0];if(af.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=eB(tA.findKey(t,l).id);i.push(uD(uD({},l),{id:c}))}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(af.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(If.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){Qf.delete(t,{at:{anchor:df.start(t,[]),focus:df.end(t,[])}}),0===t.children.length&&Qf.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return tA.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(0!==(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===IO.TEXT_NODE||t===IO.ELEMENT_NODE&&!VB.has(n.toLowerCase())}))).length){var i=t.selection;if(null!=i){var a=null;tA.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==IO.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(rB.includes(r.toLowerCase()))s=!0;else for(var l in aB)if(a.matches(l)){s=!0;break}if(s){var c=RB(hp(a),t);return Array.isArray(c)?(c.forEach((function(e){return WB(t,e)})),u++):(WB(t,c),u++),void(tA.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;tA.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&tA.isEmptyPath(t,a)&&Qf.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=MB(t,e);if(Qf.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(e){t.select(df.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in oA)e.push(t);return e},t.getConfig=function(){var e=yO.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=lD(Bf.edges(n),2),o=r[0],i=r[1],a=df.void(t,{at:o.path}),u=df.void(t,{at:i.path});if(!Bf.isCollapsed(n)||a){var s=tA.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),u){var f=lD(u,1)[0],d=s.cloneRange(),p=tA.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),HO(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var g=t.getFragment(),v=JSON.stringify(g),y=window.btoa(encodeURIComponent(v));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",function e(t){var n,r,o="";if(HO(t)&&t.nodeValue)return t.nodeValue;if(MO(t)){try{for(var i=sD(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o}(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);t.insertFragment(u)}else{var s=e.getData("text/plain"),l=e.getData("text/html");if(l)t.dangerouslyInsertHtml(l);else if(s){var c=s.split(/\r\n|\r|\n/),f=!1;try{for(var d=sD(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&Qf.splitNodes(t,{always:!0}),n(h),f=!0}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t}((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of df.pathRefs(e))xf.transform(n,t);for(var r of df.pointRefs(e))Of.transform(r,t);for(var o of df.rangeRefs(e))_f.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=xc.get(e)||[],l=(e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Ef.levels(t);case"insert_node":var{node:n,path:r}=e;return[...Ef.levels(r),...If.isText(n)?[]:Array.from(yf.nodes(n),e=>{var[,t]=e;return r.concat(t)})];case"merge_node":var{path:o}=e;return[...Ef.ancestors(o),Ef.previous(o)];case"move_node":var{path:i,newPath:a}=e;if(Ef.equals(i,a))return[];var u=[],s=[];for(var l of Ef.ancestors(i)){var c=Ef.transform(l,e);u.push(c)}for(var f of Ef.ancestors(a)){var d=Ef.transform(f,e);s.push(d)}var p=s[s.length-1],h=a[a.length-1],g=p.concat(h);return[...u,...s,g];case"remove_node":var{path:v}=e;return[...Ef.ancestors(v)];case"split_node":var{path:y}=e;return[...Ef.levels(y),Ef.next(y)];default:return[]}})(t);for(var c of s)u(Ef.transform(c,t));for(var f of l)u(f);xc.set(e,a),Qf.transform(e,t),e.operations.push(t),df.normalize(e),"set_selection"===t.type&&(e.marks=null),Sc.get(e)||(Sc.set(e,!0),Promise.resolve().then(()=>{Sc.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Bf.isExpanded(r))Qf.setNodes(e,{[t]:n},{match:If.isText,split:!0});else{var o=Bc(Bc({},df.marks(e)||{}),{},{[t]:n});e.marks=o,Sc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Bf.isCollapsed(n)&&Qf.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Bf.isCollapsed(n)&&Qf.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Bf.isExpanded(n)&&Qf.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?yf.fragment(e,t):[]},insertBreak:()=>{Qf.splitNodes(e,{always:!0})},insertFragment:t=>{Qf.insertFragment(e,t)},insertNode:t=>{Qf.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=Bc({text:t},r);Qf.insertNodes(e,o)}else Qf.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!If.isText(n))if(af.isElement(n)&&0===n.children.length)Qf.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!df.isEditor(n)&&af.isElement(n)&&(e.isInline(n)||0===n.children.length||If.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=yf.get(e,r);if(!If.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(If.isText(s)||af.isElement(s)&&e.isInline(s))!==o?(Qf.removeNodes(e,{at:r.concat(i),voids:!0}),i--):af.isElement(s)?e.isInline(s)&&(null!=l&&If.isText(l)?c&&(Qf.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(Qf.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&If.isText(l)&&(If.equals(s,l,{loose:!0})?(Qf.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(Qf.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(Qf.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(Bf.isExpanded(n))Qf.unsetNodes(e,t,{match:If.isText,split:!0});else{var r=Bc({},df.marks(e)||{});delete r[t],e.marks=r,Sc.get(e)||e.onChange()}}};return e})());return t.id="wangEditor-"+nA++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(tA.toDOMNode(t,t).focus({preventScroll:!0}),BO.set(t,!0),e){var n=df.end(t,[]);Qf.select(t,n)}else{var r=_O.get(t);r?Qf.select(t,r):Qf.select(t,df.start(t,[]))}},t.isFocused=function(){return!!BO.get(t)},t.blur=function(){tA.toDOMNode(t,t).blur(),Qf.deselect(t),BO.set(t,!1)},t.updateView=function(){tA.getTextarea(t).changeViewState();var e=tA.getToolbar(t);e&&e.changeToolbarState();var n=tA.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=tA.getTextarea(t);e.destroy(),sO.delete(t),lO.delete(e);var n=tA.getToolbar(t);n&&(n.destroy(),fO.delete(t),cO.delete(n));var r=tA.getHoverbar(t);r&&(r.destroy(),pO.delete(t),dO.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(t.getConfig().scroll){var n=hp("#"+e);if(0!==n.length){var r=n[0];if(!tA.hasDOMNode(t,r))return"Element (found by id is '"+e+"') is not in editor DOM",void("\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内");var o=tA.getTextarea(t),i=o.$textAreaContainer,a=o.$scroll,u=n.offset().top,s=i.offset().top;a[0].scrollBy({top:u-s,behavior:"smooth"})}}else{"\nYou has disabled editor scroll, please do this yourself"}},t.showProgressBar=function(e){e<1||tA.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=gO.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return tA.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=tA.getToolbar(t);n&&(e=n.$box);var r=tA.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=tA.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return tA.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return LB(e,"data-w-e-textarea",t)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(e){void 0===e&&(e={});var t=fv(rA),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return sh(t,(function(e,t){n[t]=uD(uD({},e),o[t]||{})})),delete e.MENU_CONF,uD({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(o);yO.set(l,c);var f=c.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach((function(e){l=e(l)})),null!=a&&(l.children=MB(l,a)),i&&i.length&&(l.children=i),0===l.children.length&&(l.children=[{type:"paragraph",children:[{text:""}]}]),tA.normalizeContent(l),n){var p=new lF(n);sO.set(l,p),lO.set(p,l),p.changeViewState(),Qk((function(){var e=p.$scroll;null!=e&&e.height()}));var h=void 0;Object.keys(d).length>0&&(h=new _F,dO.set(h,l),pO.set(l,h)),l.on("change",(function(){l.hidePanelOrModal()})),l.on("scroll",(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return function e(t,n,r,o){if(EO.set(t,n),xO.set(t,r),af.isElement(t)){var i=t.children;if((void 0===i?[]:i).forEach((function(n,r){return e(n,r,t,o)})),df.isVoid(o,t)){var a=lD(yf.texts(t),1),u=lD(a[0],1)[0];EO.set(u,0),xO.set(u,t)}}}(e,t,l,l)}));var g=c.onCreated,v=c.onDestroyed;return g&&l.on("created",(function(){return g(l)})),v&&l.on("destroyed",(function(){return v(l)})),Qk((function(){return l.emit("created")})),l}var TF=sC("splice"),PF=hb.TypeError,jF=Math.max,NF=Math.min;hx({target:"Array",proto:!0,forced:!TF},{splice:function(e,t){var n,r,o,i,a,u,s=Ab(this),l=mE(s),c=GE(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=NF(jF(gE(t),0),l-c)),l+n-r>9007199254740991)throw PF("Maximum allowed length exceeded");for(o=_E(s,r),i=0;i<r;i++)(a=c+i)in s&&iS(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var IF=function(){function e(e,t){var n=this;this.$toolbar=hp('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=cv((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=hp(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),Qk((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,l=void 0===s?[]:s,c=fv(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){c.splice(u.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=dF();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new DF(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof DF,o=this.menus,i=o[e];if(null==i){var a=oA[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}var u=kF(e,i,r);this.toolbarItems.push(u),hO.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=cO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),RF=Kw.EXISTS,LF=Cw.f,MF=Function.prototype,zF=Sb(MF.toString),UF=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,HF=Sb(UF.exec);function $F(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,l=e.meta,c=void 0===l?{}:l,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,g=e.withCredentials,v=void 0!==g&&g,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,E=e.onSuccess,x=void 0===E?function(e,t){}:E,S=e.onError,C=void 0===S?function(e,t,n){}:S,D=e.onProgress,O=void 0===D?function(e){}:D;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var A=n;d&&(A=function(e,t){var n=lD(e.split("#"),2),r=n[0],o=n[1],i=[];sh(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(A,c));var k=new Ry({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(sb,{endpoint:A,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:m});return k.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{x(e,r)}catch(e){}k.removeFile(e.id)})),k.on("progress",(function(e){e<1||O(e)})),k.on("upload-error",(function(e,t,n){try{C(e,t,n)}catch(e){}k.removeFile(e.id)})),k.on("restriction-failed",(function(e,t){try{C(e,t)}catch(e){}k.removeFile(e.id)})),k}function VF(e){return(VF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function WF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){WF(e,t,n[t])}))}return e}function GF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function YF(e,t,n){return t&&KF(e.prototype,t),n&&KF(e,n),e}function XF(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZF(e,t){if(t&&("object"===VF(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return XF(e)}function JF(e){return(JF=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function QF(e,t){return(QF=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function eT(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&QF(e,t)}Qb&&!RF&&LF(MF,"name",{configurable:!0,get:function(){try{return HF(UF,zF(this))[1]}catch(e){return""}}});var tT={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]}},nT=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};GF(this,e),this.init(t,n)}return YF(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||tT,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,qF({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),rT=function(){function e(){GF(this,e),this.observers={}}return YF(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function oT(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function iT(e){return null==e?"":""+e}function aT(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function uT(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function sT(e,t,n){var r=uT(e,t,Object);r.obj[r.k]=n}function lT(e,t){var n=uT(e,t),r=n.obj,o=n.k;if(r)return r[o]}function cT(e,t,n){var r=lT(e,n);return void 0!==r?r:lT(t,n)}function fT(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):fT(e[r],t[r],n):e[r]=t[r]);return e}function dT(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var pT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function hT(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return pT[e]})):e}var gT="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function vT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var l=r.slice(i+a).join(n);return l?vT(s,l,n):void 0}o=o[r[i]]}return o}}var yT=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return GF(this,t),n=ZF(this,JF(t).call(this)),gT&&rT.call(XF(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return eT(t,rT),YF(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=lT(this.data,a);return u||!i||"string"!=typeof n?u:vT(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),sT(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=lT(this.data,a)||{};r?fT(u,n,o):u=qF({},u,n),sT(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?qF({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),mT={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},bT={},wT=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return GF(this,t),n=ZF(this,JF(t).call(this)),gT&&rT.call(XF(n)),aT(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,XF(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=nT.create("translator"),n}return eT(t,rT),YF(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==VF(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,s=a.namespaces,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||u,v=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&E&&m.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,qF({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var x="[object Array]"===y,S=x?[]:{},C=x?v:g;for(var D in h)if(Object.prototype.hasOwnProperty.call(h,D)){var O="".concat(C).concat(i).concat(D);S[D]=this.translate(O,qF({},n,{joinArrays:!1,ns:s})),S[D]===O&&(S[D]=h[D])}h=S}}else if(w&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var A=!1,k=!1,B=void 0!==n.count&&"string"!=typeof n.count,_=t.hasDefaultValue(n),F=B?this.pluralResolver.getSuffix(c,n.count):"",T=n["defaultValue".concat(F)]||n.defaultValue;!this.isValidLookup(h)&&_&&(A=!0,h=T),this.isValidLookup(h)||(k=!0,h=u);var P=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,j=P&&k?void 0:h,N=_&&T!==h&&this.options.updateMissing;if(k||A||N){if(this.logger.log(N?"updateKey":"missingKey",c,l,u,N?T:h),i){var I=this.resolve(u,qF({},n,{keySeparator:!1}));I&&I.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var R=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var M=0;M<L.length;M++)R.push(L[M]);else"all"===this.options.saveMissingTo?R=this.languageUtils.toResolveHierarchy(n.lng||this.language):R.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,N?r:j,N,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,N?r:j,N,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?R.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||T)}))})):z(R,u,T))}h=this.extendTranslation(h,e,n,p,r),k&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(k||A)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(qF({},n,{interpolation:qF({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=qF({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=mT.handle(d,e,t,this.options&&this.options.postProcessPassResolved?qF({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),l=s.key;n=l;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!bT["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(bT["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function ET(e){return e.charAt(0).toUpperCase()+e.slice(1)}var xT=function(){function e(t){GF(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nT.create("languageUtils")}return YF(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ET(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ET(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=ET(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),ST=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],CT={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function DT(){var e={};return ST.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:CT[t.fc]}}))})),e}var OT=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};GF(this,e),this.languageUtils=t,this.options=n,this.logger=nT.create("pluralResolver"),this.rules=DT()}return YF(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),AT=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};GF(this,e),this.logger=nT.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return YF(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:hT,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?dT(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?dT(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?dT(t.nestingPrefix):t.nestingPrefixEscaped||dT("$t("),this.nestingSuffix=t.nestingSuffix?dT(t.nestingSuffix):t.nestingSuffixEscaped||dT(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=cT(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,qF({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(cT(t,s,a),l,n,qF({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=iT(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=qF({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=qF({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,l=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=iT(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,qF({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),kT=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return GF(this,t),o=ZF(this,JF(t).call(this)),gT&&rT.call(XF(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=nT.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return eT(t,rT),YF(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=uT(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,qF({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function BT(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===VF(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===VF(e[2])||"object"===VF(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function _T(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function FT(){}var TT=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(GF(this,t),e=ZF(this,JF(t).call(this)),gT&&rT.call(XF(e)),e.options=_T(n),e.services={},e.logger=nT,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),ZF(e,XF(e));setTimeout((function(){e.init(n,r)}),0)}return e}return eT(t,rT),YF(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=qF({},BT(),this.options,_T(t)),this.format=this.options.interpolation.format,n||(n=FT),!this.options.isClone){this.modules.logger?nT.init(r(this.modules.logger),this.options):nT.init(null,this.options);var o=new xT(this.options);this.store=new yT(this.options.resources,this.options);var i=this.services;i.logger=nT,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new OT(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new AT(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new kT(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new wT(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=["addResource","addResources","addResourceBundle","removeResourceBundle"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=oT(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:FT,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=oT();return e||(e=this.languages),t||(t=this.options.ns),n||(n=FT),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&mT.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=oT();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==VF(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=qF({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var l=r.options.keySeparator||".",c=n?"".concat(n).concat(l).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=oT();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=oT();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:FT,o=qF({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=qF({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new wT(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}());function PT(e,t){TT.addResourceBundle(e,"translation",t,!0,!0)}TT.init({lng:"zh-CN",resources:{}});var jT=TT.t.bind(TT);PT("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),PT("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var NT=qi?{}.toString:function(){return"[object "+Xi(this)+"]"};qi||hi(Object.prototype,"toString",NT,{unsafe:!0});var IT=Array.isArray||function(e){return"Array"==Lr(e)},RT=function(){},LT=[],MT=Kr("Reflect","construct"),zT=/^\s*(?:class|function)\b/,UT=Nr(zT.exec),HT=!zT.exec(RT),$T=function(e){if(!Wr(e))return!1;try{return MT(RT,LT,e),!0}catch(e){return!1}},VT=!MT||Sr((function(){var e;return $T($T.call)||!$T(Object)||!$T((function(){e=!0}))||e}))?function(e){if(!Wr(e))return!1;switch(Xi(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return HT||!!UT(zT,Xo(e))}:$T,WT=Bo("species"),qT=xr.Array,GT=function(e,t){return new(function(e){var t;return IT(e)&&(t=e.constructor,(VT(t)&&(t===qT||IT(t.prototype))||qr(t)&&null===(t=t[WT]))&&(t=void 0)),void 0===t?qT:t}(e))(0===t?0:t)},KT=Nr([].push),YT=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=mo(s),g=Ur(h),v=uu(l,c),y=Si(g),m=0,b=f||GT,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:KT(w,d)}else switch(e){case 4:return!1;case 7:KT(w,d)}return i?-1:r||o?o:w}},XT=[YT(0),YT(1),YT(2),YT(3),YT(4),YT(5),YT(6),YT(7)][0],ZT=function(e,t){var n=[].forEach;return!!n&&Sr((function(){n.call(null,(function(){throw 1}),1)}))}()?[].forEach:function(e){return XT(this,e,arguments.length>1?arguments[1]:void 0)},JT=function(e){if(e&&e.forEach!==ZT)try{Wo(e,"forEach",ZT)}catch(t){e.forEach=ZT}};for(var QT in es)es[QT]&&JT(xr[QT]&&xr[QT].prototype);JT(rs),PT("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),PT("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var eP={type:"paragraph",renderElem:function(e,t,n){return Jh("p",null,t)}},tP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function nP(e){var t={exports:{}};return e(t,t.exports),t.exports}var rP,oP,iP=function(e){return e&&e.Math==Math&&e},aP=iP("object"==typeof globalThis&&globalThis)||iP("object"==typeof window&&window)||iP("object"==typeof self&&self)||iP("object"==typeof tP&&tP)||function(){return this}()||Function("return this")(),uP=function(e){try{return!!e()}catch(e){return!0}},sP=!uP((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),lP=Function.prototype.call,cP=lP.bind?lP.bind(lP):function(){return lP.apply(lP,arguments)},fP={}.propertyIsEnumerable,dP=Object.getOwnPropertyDescriptor,pP={f:dP&&!fP.call({1:2},1)?function(e){var t=dP(this,e);return!!t&&t.enumerable}:fP},hP=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},gP=Function.prototype,vP=gP.bind,yP=gP.call,mP=vP&&vP.bind(yP),bP=vP?function(e){return e&&mP(yP,e)}:function(e){return e&&function(){return yP.apply(e,arguments)}},wP=bP({}.toString),EP=bP("".slice),xP=function(e){return EP(wP(e),8,-1)},SP=aP.Object,CP=bP("".split),DP=uP((function(){return!SP("z").propertyIsEnumerable(0)}))?function(e){return"String"==xP(e)?CP(e,""):SP(e)}:SP,OP=aP.TypeError,AP=function(e){if(null==e)throw OP("Can't call method on "+e);return e},kP=function(e){return DP(AP(e))},BP=function(e){return"function"==typeof e},_P=function(e){return"object"==typeof e?null!==e:BP(e)},FP=function(e){return BP(e)?e:void 0},TP=function(e,t){return arguments.length<2?FP(aP[e]):aP[e]&&aP[e][t]},PP=bP({}.isPrototypeOf),jP=TP("navigator","userAgent")||"",NP=aP.process,IP=aP.Deno,RP=NP&&NP.versions||IP&&IP.version,LP=RP&&RP.v8;LP&&(oP=(rP=LP.split("."))[0]>0&&rP[0]<4?1:+(rP[0]+rP[1])),!oP&&jP&&(!(rP=jP.match(/Edge\/(\d+)/))||rP[1]>=74)&&(rP=jP.match(/Chrome\/(\d+)/))&&(oP=+rP[1]);var MP=oP,zP=!!Object.getOwnPropertySymbols&&!uP((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&MP&&MP<41})),UP=zP&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,HP=aP.Object,$P=UP?function(e){return"symbol"==typeof e}:function(e){var t=TP("Symbol");return BP(t)&&PP(t.prototype,HP(e))},VP=aP.String,WP=function(e){try{return VP(e)}catch(e){return"Object"}},qP=aP.TypeError,GP=function(e){if(BP(e))return e;throw qP(WP(e)+" is not a function")},KP=function(e,t){var n=e[t];return null==n?void 0:GP(n)},YP=aP.TypeError,XP=Object.defineProperty,ZP=function(e,t){try{XP(aP,e,{value:t,configurable:!0,writable:!0})}catch(n){aP[e]=t}return t},JP=aP["__core-js_shared__"]||ZP("__core-js_shared__",{}),QP=nP((function(e){(e.exports=function(e,t){return JP[e]||(JP[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ej=aP.Object,tj=function(e){return ej(AP(e))},nj=bP({}.hasOwnProperty),rj=Object.hasOwn||function(e,t){return nj(tj(e),t)},oj=0,ij=Math.random(),aj=bP(1..toString),uj=function(e){return"Symbol("+(void 0===e?"":e)+")_"+aj(++oj+ij,36)},sj=QP("wks"),lj=aP.Symbol,cj=lj&&lj.for,fj=UP?lj:lj&&lj.withoutSetter||uj,dj=function(e){if(!rj(sj,e)||!zP&&"string"!=typeof sj[e]){var t="Symbol."+e;zP&&rj(lj,e)?sj[e]=lj[e]:sj[e]=UP&&cj?cj(t):fj(t)}return sj[e]},pj=aP.TypeError,hj=dj("toPrimitive"),gj=function(e){var t=function(e,t){if(!_P(e)||$P(e))return e;var n,r=KP(e,hj);if(r){if(void 0===t&&(t="default"),n=cP(r,e,t),!_P(n)||$P(n))return n;throw pj("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&BP(n=e.toString)&&!_P(r=cP(n,e)))return r;if(BP(n=e.valueOf)&&!_P(r=cP(n,e)))return r;if("string"!==t&&BP(n=e.toString)&&!_P(r=cP(n,e)))return r;throw YP("Can't convert object to primitive value")}(e,t)}(e,"string");return $P(t)?t:t+""},vj=aP.document,yj=_P(vj)&&_P(vj.createElement),mj=function(e){return yj?vj.createElement(e):{}},bj=!sP&&!uP((function(){return 7!=Object.defineProperty(mj("div"),"a",{get:function(){return 7}}).a})),wj=Object.getOwnPropertyDescriptor,Ej={f:sP?wj:function(e,t){if(e=kP(e),t=gj(t),bj)try{return wj(e,t)}catch(e){}if(rj(e,t))return hP(!cP(pP.f,e,t),e[t])}},xj=aP.String,Sj=aP.TypeError,Cj=function(e){if(_P(e))return e;throw Sj(xj(e)+" is not an object")},Dj=aP.TypeError,Oj=Object.defineProperty,Aj={f:sP?Oj:function(e,t,n){if(Cj(e),t=gj(t),Cj(n),bj)try{return Oj(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Dj("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},kj=sP?function(e,t,n){return Aj.f(e,t,hP(1,n))}:function(e,t,n){return e[t]=n,e},Bj=bP(Function.toString);BP(JP.inspectSource)||(JP.inspectSource=function(e){return Bj(e)});var _j,Fj,Tj,Pj=JP.inspectSource,jj=aP.WeakMap,Nj=BP(jj)&&/native code/.test(Pj(jj)),Ij=QP("keys"),Rj=function(e){return Ij[e]||(Ij[e]=uj(e))},Lj={},Mj=aP.TypeError,zj=aP.WeakMap;if(Nj||JP.state){var Uj=JP.state||(JP.state=new zj),Hj=bP(Uj.get),$j=bP(Uj.has),Vj=bP(Uj.set);_j=function(e,t){if($j(Uj,e))throw new Mj("Object already initialized");return t.facade=e,Vj(Uj,e,t),t},Fj=function(e){return Hj(Uj,e)||{}},Tj=function(e){return $j(Uj,e)}}else{var Wj=Rj("state");Lj[Wj]=!0,_j=function(e,t){if(rj(e,Wj))throw new Mj("Object already initialized");return t.facade=e,kj(e,Wj,t),t},Fj=function(e){return rj(e,Wj)?e[Wj]:{}},Tj=function(e){return rj(e,Wj)}}var qj={set:_j,get:Fj,has:Tj,enforce:function(e){return Tj(e)?Fj(e):_j(e,{})},getterFor:function(e){return function(t){var n;if(!_P(t)||(n=Fj(t)).type!==e)throw Mj("Incompatible receiver, "+e+" required");return n}}},Gj=Function.prototype,Kj=sP&&Object.getOwnPropertyDescriptor,Yj=rj(Gj,"name"),Xj={EXISTS:Yj,PROPER:Yj&&"something"===function(){}.name,CONFIGURABLE:Yj&&(!sP||sP&&Kj(Gj,"name").configurable)},Zj=nP((function(e){var t=Xj.CONFIGURABLE,n=qj.get,r=qj.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;BP(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!rj(i,"name")||t&&i.name!==f)&&kj(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==aP?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:kj(e,n,i)):l?e[n]=i:ZP(n,i)})(Function.prototype,"toString",(function(){return BP(this)&&n(this).source||Pj(this)}))})),Jj=Math.ceil,Qj=Math.floor,eN=function(e){var t=+e;return t!=t||0===t?0:(t>0?Qj:Jj)(t)},tN=Math.max,nN=Math.min,rN=function(e,t){var n=eN(e);return n<0?tN(n+t,0):nN(n,t)},oN=Math.min,iN=function(e){return e>0?oN(eN(e),9007199254740991):0},aN=function(e){return iN(e.length)},uN=function(e){return function(t,n,r){var o,i=kP(t),a=aN(i),u=rN(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},sN={includes:uN(!0),indexOf:uN(!1)},lN=sN.indexOf,cN=bP([].push),fN=function(e,t){var n,r=kP(e),o=0,i=[];for(n in r)!rj(Lj,n)&&rj(r,n)&&cN(i,n);for(;t.length>o;)rj(r,n=t[o++])&&(~lN(i,n)||cN(i,n));return i},dN=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],pN=dN.concat("length","prototype"),hN={f:Object.getOwnPropertyNames||function(e){return fN(e,pN)}},gN={f:Object.getOwnPropertySymbols},vN=bP([].concat),yN=TP("Reflect","ownKeys")||function(e){var t=hN.f(Cj(e)),n=gN.f;return n?vN(t,n(e)):t},mN=function(e,t){for(var n=yN(t),r=Aj.f,o=Ej.f,i=0;i<n.length;i++){var a=n[i];rj(e,a)||r(e,a,o(t,a))}},bN=/#|\.prototype\./,wN=function(e,t){var n=xN[EN(e)];return n==CN||n!=SN&&(BP(t)?uP(t):!!t)},EN=wN.normalize=function(e){return String(e).replace(bN,".").toLowerCase()},xN=wN.data={},SN=wN.NATIVE="N",CN=wN.POLYFILL="P",DN=wN,ON=Ej.f,AN=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?aP:l?aP[u]||ZP(u,{}):(aP[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ON(n,r))&&a.value:n[r],!DN(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;mN(i,o)}(e.sham||o&&o.sham)&&kj(i,"sham",!0),Zj(n,r,i,e)}},kN=bP(bP.bind),BN=Array.isArray||function(e){return"Array"==xP(e)},_N={};_N[dj("toStringTag")]="z";var FN="[object z]"===String(_N),TN=dj("toStringTag"),PN=aP.Object,jN="Arguments"==xP(function(){return arguments}()),NN=FN?xP: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=PN(e),TN))?n:jN?xP(t):"Object"==(r=xP(t))&&BP(t.callee)?"Arguments":r},IN=function(){},RN=[],LN=TP("Reflect","construct"),MN=/^\s*(?:class|function)\b/,zN=bP(MN.exec),UN=!MN.exec(IN),HN=function(e){if(!BP(e))return!1;try{return LN(IN,RN,e),!0}catch(e){return!1}},$N=!LN||uP((function(){var e;return HN(HN.call)||!HN(Object)||!HN((function(){e=!0}))||e}))?function(e){if(!BP(e))return!1;switch(NN(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return UN||!!zN(MN,Pj(e))}:HN,VN=dj("species"),WN=aP.Array,qN=function(e,t){return new(function(e){var t;return BN(e)&&(t=e.constructor,($N(t)&&(t===WN||BN(t.prototype))||_P(t)&&null===(t=t[VN]))&&(t=void 0)),void 0===t?WN:t}(e))(0===t?0:t)},GN=bP([].push),KN=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=tj(s),g=DP(h),v=function(e,t){return GP(e),void 0===t?e:kN?kN(e,t):function(){return e.apply(t,arguments)}}(l,c),y=aN(g),m=0,b=f||qN,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:GN(w,d)}else switch(e){case 4:return!1;case 7:GN(w,d)}return i?-1:r||o?o:w}},YN={forEach:KN(0),map:KN(1),filter:KN(2),some:KN(3),every:KN(4),find:KN(5),findIndex:KN(6),filterReject:KN(7)},XN=dj("species"),ZN=function(e){return MP>=51||!uP((function(){var t=[];return(t.constructor={})[XN]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},JN=YN.filter;AN({target:"Array",proto:!0,forced:!ZN("filter")},{filter:function(e){return JN(this,e,arguments.length>1?arguments[1]:void 0)}});var QN=FN?{}.toString:function(){return"[object "+NN(this)+"]"};FN||Zj(Object.prototype,"toString",QN,{unsafe:!0});var eI,tI=aP.String,nI=function(e){if("Symbol"===NN(e))throw TypeError("Cannot convert a Symbol value to a string");return tI(e)},rI=function(){var e=Cj(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},oI=aP.RegExp,iI=uP((function(){var e=oI("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),aI=iI||uP((function(){return!oI("a","y").sticky})),uI={BROKEN_CARET:iI||uP((function(){var e=oI("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:aI,UNSUPPORTED_Y:iI},sI=Object.keys||function(e){return fN(e,dN)},lI=sP?Object.defineProperties:function(e,t){Cj(e);for(var n,r=kP(t),o=sI(t),i=o.length,a=0;i>a;)Aj.f(e,n=o[a++],r[n]);return e},cI=TP("document","documentElement"),fI=Rj("IE_PROTO"),dI=function(){},pI=function(e){return"<script>"+e+"<\/script>"},hI=function(e){e.write(pI("")),e.close();var t=e.parentWindow.Object;return e=null,t},gI=function(){try{eI=new ActiveXObject("htmlfile")}catch(e){}var e,t;gI="undefined"!=typeof document?document.domain&&eI?hI(eI):((t=mj("iframe")).style.display="none",cI.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(pI("document.F=Object")),e.close(),e.F):hI(eI);for(var n=dN.length;n--;)delete gI.prototype[dN[n]];return gI()};Lj[fI]=!0;var vI,yI,mI=Object.create||function(e,t){var n;return null!==e?(dI.prototype=Cj(e),n=new dI,dI.prototype=null,n[fI]=e):n=gI(),void 0===t?n:lI(n,t)},bI=aP.RegExp,wI=uP((function(){var e=bI(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),EI=aP.RegExp,xI=uP((function(){var e=EI("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),SI=qj.get,CI=QP("native-string-replace",String.prototype.replace),DI=RegExp.prototype.exec,OI=DI,AI=bP("".charAt),kI=bP("".indexOf),BI=bP("".replace),_I=bP("".slice),FI=(yI=/b*/g,cP(DI,vI=/a/,"a"),cP(DI,yI,"a"),0!==vI.lastIndex||0!==yI.lastIndex),TI=uI.BROKEN_CARET,PI=void 0!==/()??/.exec("")[1];(FI||PI||TI||wI||xI)&&(OI=function(e){var t,n,r,o,i,a,u,s=this,l=SI(s),c=nI(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=cP(OI,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=TI&&s.sticky,h=cP(rI,s),g=s.source,v=0,y=c;if(p&&(h=BI(h,"y",""),-1===kI(h,"g")&&(h+="g"),y=_I(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==AI(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),PI&&(n=new RegExp("^"+g+"$(?!\\s)",h)),FI&&(r=s.lastIndex),o=cP(DI,p?n:s,y),p?o?(o.input=_I(o.input,v),o[0]=_I(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:FI&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),PI&&o&&o.length>1&&cP(CI,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=mI(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var jI=OI;AN({target:"RegExp",proto:!0,forced:/./.exec!==jI},{exec:jI});var NI=Function.prototype,II=NI.apply,RI=NI.bind,LI=NI.call,MI="object"==typeof Reflect&&Reflect.apply||(RI?LI.bind(II):function(){return LI.apply(II,arguments)}),zI=dj("species"),UI=RegExp.prototype,HI=function(e,t,n,r){var o=dj(e),i=!uP((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!uP((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[zI]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=bP(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=bP(e),s=t.exec;return s===jI||s===UI.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Zj(String.prototype,e,s[0]),Zj(UI,o,s[1])}r&&kj(UI[o],"sham",!0)},$I=bP("".charAt),VI=bP("".charCodeAt),WI=bP("".slice),qI=function(e){return function(t,n){var r,o,i=nI(AP(t)),a=eN(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=VI(i,a))<55296||r>56319||a+1===u||(o=VI(i,a+1))<56320||o>57343?e?$I(i,a):r:e?WI(i,a,a+2):o-56320+(r-55296<<10)+65536}},GI=(qI(!1),qI(!0)),KI=function(e,t,n){return t+(n?GI(e,t).length:1)},YI=Math.floor,XI=bP("".charAt),ZI=bP("".replace),JI=bP("".slice),QI=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,eR=/\$([$&'`]|\d{1,2})/g,tR=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=eR;return void 0!==o&&(o=tj(o),s=QI),ZI(i,s,(function(i,s){var l;switch(XI(s,0)){case"$":return"$";case"&":return e;case"`":return JI(t,0,n);case"'":return JI(t,a);case"<":l=o[JI(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=YI(c/10);return 0===f?i:f<=u?void 0===r[f-1]?XI(s,1):r[f-1]+XI(s,1):i}l=r[c-1]}return void 0===l?"":l}))},nR=aP.TypeError,rR=function(e,t){var n=e.exec;if(BP(n)){var r=cP(n,e,t);return null!==r&&Cj(r),r}if("RegExp"===xP(e))return cP(jI,e,t);throw nR("RegExp#exec called on incompatible receiver")},oR=dj("replace"),iR=Math.max,aR=Math.min,uR=bP([].concat),sR=bP([].push),lR=bP("".indexOf),cR=bP("".slice),fR="$0"==="a".replace(/./,"$0"),dR=!!/./[oR]&&""===/./[oR]("a","$0");HI("replace",(function(e,t,n){var r=dR?"$":"$0";return[function(e,n){var r=AP(this),o=null==e?void 0:KP(e,oR);return o?cP(o,e,r,n):cP(t,nI(r),e,n)},function(e,o){var i=Cj(this),a=nI(e);if("string"==typeof o&&-1===lR(o,r)&&-1===lR(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=BP(o);s||(o=nI(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=rR(i,a);if(null===d)break;if(sR(f,d),!l)break;""===nI(d[0])&&(i.lastIndex=KI(a,iN(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=nI((d=f[v])[0]),m=iR(aR(eN(d.index),a.length),0),b=[],w=1;w<d.length;w++)sR(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=uR([y],b,m,a);void 0!==E&&sR(x,E);var S=nI(MI(o,void 0,x))}else S=tR(y,a,m,b,E,o);m>=g&&(h+=cR(a,g,m)+S,g=m+y.length)}return h+cR(a,g)}]}),!!uP((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!fR||dR);var pR=dj("unscopables"),hR=Array.prototype;null==hR[pR]&&Aj.f(hR,pR,{configurable:!0,value:mI(null)});var gR=function(e){hR[pR][e]=!0},vR=YN.find,yR=!0;"find"in[]&&Array(1).find((function(){yR=!1})),AN({target:"Array",proto:!0,forced:yR},{find:function(e){return vR(this,e,arguments.length>1?arguments[1]:void 0)}}),gR("find");var mR=dj("match"),bR=function(e){var t;return _P(e)&&(void 0!==(t=e[mR])?!!t:"RegExp"==xP(e))},wR=aP.TypeError,ER=dj("species"),xR=function(e,t,n){var r=gj(t);r in e?Aj.f(e,r,hP(0,n)):e[r]=n},SR=aP.Array,CR=Math.max,DR=function(e,t,n){for(var r=aN(e),o=rN(t,r),i=rN(void 0===n?r:n,r),a=SR(CR(i-o,0)),u=0;o<i;o++,u++)xR(a,u,e[o]);return a.length=u,a},OR=uI.UNSUPPORTED_Y,AR=Math.min,kR=[].push,BR=bP(/./.exec),_R=bP(kR),FR=bP("".slice);HI("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=nI(AP(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!bR(e))return cP(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=cP(jI,f,r))&&!((a=f.lastIndex)>c&&(_R(s,FR(r,c,i.index)),i.length>1&&i.index<r.length&&MI(kR,s,DR(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&BR(f,"")||_R(s,""):_R(s,FR(r,c)),s.length>o?DR(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:cP(t,this,e,n)}:t,[function(t,n){var o=AP(this),i=null==t?void 0:KP(t,e);return i?cP(i,t,o,n):cP(r,nI(o),t,n)},function(e,o){var i=Cj(this),a=nI(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=Cj(e).constructor;return void 0===r||null==(n=Cj(r)[ER])?t:function(e){if($N(e))return e;throw wR(WP(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(OR?"g":"y"),f=new s(OR?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===rR(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=OR?0:h;var v,y=rR(f,OR?FR(a,h):a);if(null===y||(v=AR(iN(f.lastIndex+(OR?h:0)),a.length))===p)h=KI(a,h,l);else{if(_R(g,FR(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(_R(g,y[m]),g.length===d)return g;h=p=v}}return _R(g,FR(a,p)),g}]}),!!uP((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),OR);var TR="\t\n\v\f\r    \u2028\u2029\ufeff",PR=bP("".replace),jR="["+TR+"]",NR=RegExp("^"+jR+jR+"*"),IR=RegExp(jR+jR+"*$"),RR=function(e){return function(t){var n=nI(AP(t));return 1&e&&(n=PR(n,NR,"")),2&e&&(n=PR(n,IR,"")),n}},LR={start:RR(1),end:RR(2),trim:RR(3)},MR=Xj.PROPER,zR=LR.trim;function UR(e){return 0===hp("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function HR(e){return 0===e.length?"":e[0].outerHTML}function $R(e){return e.length?e[0].tagName.toLowerCase():""}function VR(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}AN({target:"String",proto:!0,forced:uP((function(){return!!TR.trim()||"…"!=="…".trim()||MR&&"trim"!==TR.trim.name}))},{trim:function(){return zR(this)}}),AN({global:!0},{globalThis:aP}),Bp&&(hp.fn.css=Bp),Np&&(hp.fn.append=Np),Ip&&(hp.fn.prepend=Ip),gp&&(hp.fn.addClass=gp),vp&&(hp.fn.removeClass=vp),yp&&(hp.fn.hasClass=yp),xp&&(hp.fn.on=xp),Sp&&(hp.fn.off=Sp),qp&&(hp.fn.focus=qp),mp&&(hp.fn.attr=mp),bp&&(hp.fn.removeAttr=bp),Ap&&(hp.fn.hide=Ap),kp&&(hp.fn.show=kp),Lp&&(hp.fn.parents=Lp),wp&&(hp.fn.dataset=wp),Ep&&(hp.fn.val=Ep),Pp&&(hp.fn.text=Pp),Tp&&(hp.fn.html=Tp),zp&&(hp.fn.children=zp),Up&&(hp.fn.remove=Up),Mp&&(hp.fn.find=Mp),Cp&&(hp.fn.width=Cp),Dp&&(hp.fn.height=Dp),Fp&&(hp.fn.filter=Fp),Hp&&(hp.fn.empty=Hp);var WR=function(e,t){return(WR=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])})(e,t)};function qR(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}WR(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var GR=function(){return(GR=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}).apply(this,arguments)};function KR(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 YR(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 XR(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 ZR(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 JR(e){var t=ZR(df.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!af.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==yf.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!If.isText(o[0])&&(Qf.setNodes(e,{type:"paragraph"}),!0)}var QR={renderElems:[eP],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[{selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hp(e);return 0===(t=t.filter((function(e){return!!If.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){JR(r)||t(e)},r.deleteForward=function(e){JR(r)||n(e)},r}},eL=/"/g,tL=bP("".replace),nL=function(e,t,n,r){var o=nI(AP(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+tL(nI(r),eL,"&quot;")+'"'),i+">"+o+"</"+t+">"},rL=function(e){return uP((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function oL(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 iL(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}AN({target:"String",proto:!0,forced:rL("bold")},{bold:function(){return nL(this,"b","","")}}),AN({target:"String",proto:!0,forced:rL("italics")},{italics:function(){return nL(this,"i","","")}}),AN({target:"String",proto:!0,forced:rL("sub")},{sub:function(){return nL(this,"sub","","")}}),AN({target:"String",proto:!0,forced:rL("sup")},{sup:function(){return nL(this,"sup","","")}});var aL={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},uL=mj("span").classList,sL=uL&&uL.constructor&&uL.constructor.prototype,lL=sL===Object.prototype?void 0:sL,cL=function(e,t){var n=[][e];return!!n&&uP((function(){n.call(null,t||function(){throw 1},1)}))},fL=YN.forEach,dL=cL("forEach")?[].forEach:function(e){return fL(this,e,arguments.length>1?arguments[1]:void 0)},pL=function(e){if(e&&e.forEach!==dL)try{kj(e,"forEach",dL)}catch(t){e.forEach=dL}};for(var hL in aL)aL[hL]&&pL(aP[hL]&&aP[hL].prototype);function gL(e,t){return null==e.selection||!!ZR(df.nodes(e,{match:function(t){return"pre"===tA.getNodeType(t)||!!df.isVoid(e,t)},universal:!0}),1)[0]}function vL(e,t){Object.keys(t).forEach((function(t){"text"!==t&&df.removeMark(e,t)}))}pL(lL),AN({target:"Object",stat:!0,forced:uP((function(){sI(1)}))},{keys:function(e){return sI(tj(e))}});var yL=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=df.marks(e);return n?n[t]:!!ZR(df.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 gL(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}(),mL='<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>',bL='<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>',wL='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',EL='<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>',xL='<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>',SL='<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>',CL='<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>',DL='<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>',OL='<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>',AL='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',kL='<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>',BL='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',_L='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',FL='<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>',TL='<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>',PL='<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>',jL='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',NL='<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>',IL='<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>',RL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=jT("textStyle.bold"),t.iconSvg=mL,t.hotkey="mod+b",t}return qR(t,e),t}(yL),LL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=jT("textStyle.code"),t.iconSvg=xL,t.hotkey="mod+e",t}return qR(t,e),t}(yL),ML=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=jT("textStyle.italic"),t.iconSvg=wL,t.hotkey="mod+i",t}return qR(t,e),t}(yL),zL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=jT("textStyle.through"),t.iconSvg=EL,t.hotkey="mod+shift+x",t}return qR(t,e),t}(yL),UL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=jT("textStyle.underline"),t.iconSvg=bL,t.hotkey="mod+u",t}return qR(t,e),t}(yL),HL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=jT("textStyle.sub"),t.iconSvg=IL,t.hotkey="",t}return qR(t,e),t}(yL),$L=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=jT("textStyle.sup"),t.iconSvg=NL,t.hotkey="",t}return qR(t,e),t}(yL),VL=function(){function e(){this.title=jT("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 gL(e)},e.prototype.exec=function(e,t){var n,r,o=df.nodes(e,{match:function(e){return If.isText(e)},universal:!0});try{for(var i=XR(o),a=i.next();!a.done;a=i.next())vL(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),WL={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=Jh("strong",null,c)),a&&(c=Jh("code",null,c)),o&&(c=Jh("em",null,c)),i&&(c=Jh("u",null,c)),u&&(c=Jh("s",null,c)),s&&(c=Jh("sub",null,c)),l&&(c=Jh("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new RL}},{key:"underline",factory:function(){return new UL}},{key:"italic",factory:function(){return new ML}},{key:"through",factory:function(){return new zL}},{key:"code",factory:function(){return new LL}},{key:"sub",factory:function(){return new HL}},{key:"sup",factory:function(){return new $L}},{key:"clearStyle",factory:function(){return new VL}}],styleToHtml:function(e,t){if(!If.isText(e))return t;if(UR(t))return oL(e,t);var n=hp(t);if("br"===$R(n))return oL(e,"<br>");var r=n.html();return r=oL(e,r),n.html(r),HR(n)},parseStyleHtml:function(e,t,n){var r=hp(e);if(!If.isText(t))return t;var o=t;return iL(r,"b,strong")&&(o.bold=!0),iL(r,"i,em")&&(o.italic=!0),iL(r,"u")&&(o.underline=!0),iL(r,"s,strike")&&(o.through=!0),iL(r,"sub")&&(o.sub=!0),iL(r,"sup")&&(o.sup=!0),iL(r,"code")&&(o.code=!0),o}};function qL(e){return function(t,n,r){return Jh("h"+e,null,n)}}var GL={type:"header1",renderElem:qL(1)},KL={type:"header2",renderElem:qL(2)},YL={type:"header3",renderElem:qL(3)},XL={type:"header4",renderElem:qL(4)},ZL={type:"header5",renderElem:qL(5)},JL=Xj.PROPER,QL=RegExp.prototype,eM=QL.toString,tM=bP(rI),nM=uP((function(){return"/a/b"!=eM.call({source:"a",flags:"b"})})),rM=JL&&"toString"!=eM.name;(nM||rM)&&Zj(RegExp.prototype,"toString",(function(){var e=Cj(this),t=nI(e.source),n=e.flags;return"/"+t+"/"+nI(void 0===n&&PP(QL,e)&&!("flags"in QL)?tM(e):n)}),{unsafe:!0});var oM,iM=aP.TypeError,aM=function(e){if(bR(e))throw iM("The method doesn't accept regular expressions");return e},uM=dj("match"),sM=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[uM]=!1,"/./"[e](t)}catch(e){}}return!1},lM=Ej.f,cM=bP("".startsWith),fM=bP("".slice),dM=Math.min,pM=sM("startsWith");function hM(e){var t=ZR(df.nodes(e,{match:function(e){return tA.getNodeType(e).startsWith("header")},universal:!0}),1)[0];if(null==t)return"paragraph";var n=ZR(t,1)[0];return tA.getNodeType(n)}function gM(e){return null==e.selection||!ZR(df.nodes(e,{match:function(e){var t=tA.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function vM(e,t){t&&Qf.setNodes(e,{type:t})}AN({target:"String",proto:!0,forced:!(!pM&&(oM=lM(String.prototype,"startsWith"),oM&&!oM.writable)||pM)},{startsWith:function(e){var t=nI(AP(this));aM(e);var n=iN(dM(arguments.length>1?arguments[1]:void 0,t.length)),r=nI(e);return cM?cM(t,r,n):fM(t,n,n+r.length)===r}});var yM=function(){function e(){this.title=jT("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:jT("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return hM(e)},e.prototype.isDisabled=function(e){return gM(e)},e.prototype.exec=function(e,t){vM(e,t.toString())},e}(),mM=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return hM(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return gM(e)},e.prototype.exec=function(e,t){var n=this.type;vM(e,t===n?"paragraph":n)},e}(),bM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return qR(t,e),t}(mM),wM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return qR(t,e),t}(mM),EM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return qR(t,e),t}(mM),xM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return qR(t,e),t}(mM),SM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return qR(t,e),t}(mM),CM={key:"headerSelect",factory:function(){return new yM}},DM={key:"header1",factory:function(){return new bM}},OM={key:"header2",factory:function(){return new wM}},AM={key:"header3",factory:function(){return new EM}},kM={key:"header4",factory:function(){return new xM}},BM={key:"header5",factory:function(){return new SM}};function _M(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function FM(e){return function(t,n,r){var o=hp(t);return 0===(n=n.filter((function(e){return!!If.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var TM={renderElems:[GL,KL,YL,XL,ZL],elemsToHtml:[{type:"header1",elemToHtml:_M(1)},{type:"header2",elemToHtml:_M(2)},{type:"header3",elemToHtml:_M(3)},{type:"header4",elemToHtml:_M(4)},{type:"header5",elemToHtml:_M(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:FM(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:FM(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:FM(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:FM(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:FM(5)}],menus:[CM,DM,OM,AM,kM,BM],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=ZR(df.nodes(n,{match:function(e){return tA.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&tA.isSelectionAtLineEnd(e,r[1])?Qf.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},PM=Object.assign,jM=Object.defineProperty,NM=bP([].concat),IM=!PM||uP((function(){if(sP&&1!==PM({b:1},PM(jM({},"a",{enumerable:!0,get:function(){jM(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!=PM({},e)[n]||sI(PM({},t)).join("")!=r}))?function(e,t){for(var n=tj(e),r=arguments.length,o=1,i=gN.f,a=pP.f;r>o;)for(var u,s=DP(arguments[o++]),l=i?NM(sI(s),i(s)):sI(s),c=l.length,f=0;c>f;)u=l[f++],sP&&!cP(a,s,u)||(n[u]=s[u]);return n}:PM;function RM(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}AN({target:"Object",stat:!0,forced:Object.assign!==IM},{assign:IM});var LM={selector:"font",preParseHtml:function(e){var t=hp(e);if("font"!==$R(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},MM=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=df.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||!!ZR(df.nodes(e,{match:function(t){return"pre"===tA.getNodeType(t)||!!df.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=hp('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=hp(r).attr("data-value");"0"===o?df.removeMark(e,t):df.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=hp('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=hp('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=jT("color.default")),"bgColor"===t&&(a=jT("color.clear"));var u=hp('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),zM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jT("color.color"),t.iconSvg=DL,t.mark="color",t}return qR(t,e),t}(MM),UM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jT("color.bgColor"),t.iconSvg=OL,t.mark="bgColor",t}return qR(t,e),t}(MM),HM=["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)"],$M={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&RM(i,{color:r}),o&&RM(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!If.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((UR(t)||"span"!==$R(n=hp(t)))&&(n=hp("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),HR(n)):t},preParseHtml:[LM],parseStyleHtml:function(e,t,n){var r=hp(e);if(!If.isText(t))return t;var o=t,i=VR(r,"color");i&&(o.color=i);var a=VR(r,"background-color");return a||(a=VR(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new zM},config:{colors:HM}},{key:"bgColor",factory:function(){return new UM},config:{colors:HM}}]},VM=/^(?:\w+:)?\/\/(\S+)$/,WM=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,qM=/^[^\s\.]+\.\S{2,}$/,GM=sN.includes;function KM(e){return void 0===e&&(e="r"),e+"-"+lh()}function YM(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function XM(e,t,n,r){return KR(this,void 0,void 0,(function(){var o,i;return YR(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 ZM(e,t,n){return KR(this,void 0,void 0,(function(){var r;return YR(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 JM(e){return null==e.selection||!!tA.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function QM(e,t){return{type:"link",url:YM(e),children:t?[{text:t}]:[]}}function ez(e,t,n){return KR(this,void 0,void 0,(function(){var r,o,i;return YR(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),JM(e)?[2]:[4,XM("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,ZM("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(Bf.isCollapsed(o)?(e.insertText(" "),i=QM(r,t),Qf.insertNodes(e,i),e.insertFragment([{text:" "}])):df.string(e,o)!==t?(e.deleteFragment(),i=QM(r,t),Qf.insertNodes(e,i)):(i=QM(r),Qf.wrapNodes(e,i,{split:!0}),Qf.collapse(e,{edge:"end"}))),[2]}}))}))}AN({target:"Array",proto:!0},{includes:function(e){return GM(this,e,arguments.length>1?arguments[1]:void 0)}}),gR("includes");var tz={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Jh("a",{href:o,target:void 0===i?"_blank":i},t)}},nz={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hp(e);return 0===(t=t.filter((function(e){return!!If.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 rz(){return KM("w-e-insert-link")}var oz=function(){function e(){this.title=jT("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=rz(),this.urlInputId=rz(),this.buttonId=rz()}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 JM(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=ZR(wF(jT("link.text"),r),2),u=a[0],s=hp(a[1]),l=ZR(wF(jT("link.url"),o),2),c=l[0],f=hp(l[1]),d=ZR(EF(i,jT("common.ok")),1)[0];if(null==this.$content){var p=hp("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();ez(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||Bf.isCollapsed(t))s.val("");else{var g=df.string(e,t);s.val(g)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function iz(){return KM("w-e-update-link")}var az=function(){function e(){this.title=jT("link.edit"),this.iconSvg=SL,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=iz(),this.buttonId=iz()}return e.prototype.getSelectedLinkElem=function(e){var t=tA.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 tA.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=ZR(wF(jT("link.url"),t),2),o=r[0],i=hp(r[1]),a=ZR(EF(n,jT("common.ok")),1)[0];if(null==this.$content){var u=hp("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=tA.getSelectedNodeByType(e,"link"),o=r?yf.string(r):"",i=u.find("#"+t).val();!function(e,t,n){KR(this,void 0,void 0,(function(){var r,o;return YR(this,(function(i){switch(i.label){case 0:return n?[4,XM("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,ZM("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:YM(r)},Qf.setNodes(e,o,{match:function(e){return tA.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var l=this.getValue(e);return i.val(l),setTimeout((function(){i.focus()})),s[0]},e}(),uz=function(){function e(){this.title=jT("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==tA.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||Qf.unwrapNodes(e,{match:function(e){return tA.checkNodeType(e,"link")}})},e}(),sz=function(){function e(){this.title=jT("link.view"),this.iconSvg=CL,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=tA.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}(),lz={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},cz={renderElems:[tz],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[nz],menus:[{key:"insertLink",factory:function(){return new oz},config:lz},{key:"editLink",factory:function(){return new az},config:lz},{key:"unLink",factory:function(){return new uz}},{key:"viewLink",factory:function(){return new sz}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(VM);if(!t)return!1;var n=t[1];return!(!n||!WM.test(n)&&!qM.test(n))}(t)){if(!JM(o)){var r=o.selection;if(null!=r){var i=df.string(o,r);ez(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=ZR(e,2),n=t[0],i=t[1];return"link"!==tA.getNodeType(n)?r([n,i]):""===yf.string(n)?Qf.removeNodes(o,{at:i}):r([n,i])},o}},fz=bP(1..valueOf),dz=aP.RangeError,pz=aP.RangeError,hz=aP.String,gz=Math.floor,vz=bP((function(e){var t=nI(AP(this)),n="",r=eN(e);if(r<0||r==1/0)throw dz("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),yz=bP("".slice),mz=bP(1..toFixed),bz=function(e,t,n){return 0===t?n:t%2==1?bz(e,t-1,n*e):bz(e*e,t/2,n)},wz=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=gz(o/1e7)},Ez=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=gz(r/t),r=r%t*1e7},xz=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=hz(e[t]);n=""===n?r:n+vz("0",7-r.length)+r}return n};function Sz(e,t){return"w-e-image-container-"+tA.findKey(e,t).id}AN({target:"Number",proto:!0,forced:uP((function(){return"0.000"!==mz(8e-5,3)||"1"!==mz(.9,0)||"1.25"!==mz(1.255,2)||"1000000000000000128"!==mz(0xde0b6b3a7640080,0)}))||!uP((function(){mz({})}))},{toFixed:function(e){var t,n,r,o,i=fz(this),a=eN(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw pz("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return hz(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*bz(2,69,1))-69)<0?i*bz(2,-t,1):i/bz(2,t,1),n*=4503599627370496,(t=52-t)>0){for(wz(u,0,n),r=a;r>=7;)wz(u,1e7,0),r-=7;for(wz(u,bz(10,r,1),0),r=t-1;r>=23;)Ez(u,1<<23),r-=23;Ez(u,1<<r),wz(u,1,1),Ez(u,2),l=xz(u)}else wz(u,0,n),wz(u,1<<-t,0),l=xz(u)+vz("0",a);return a>0?s+((o=l.length)<=a?"0."+vz("0",a-o)+l:yz(l,0,o-a)+"."+yz(l,o-a)):s+l}});var Cz={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,g=tA.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y=Jh("img",{style:v,src:o,alt:a,"data-href":s}),m=n.isDisabled();return g&&!m?function(e,t,n,r){var o=hp("body"),i=Sz(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;function p(t){d=function(){var e=hp("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");l=n.width(),c=n.height(),o.on("mousemove",h),o.on("mouseup",g);var r=tA.getHoverbar(e);r&&r.hideAndClean()}var h=Ch((function(e){e.preventDefault();var t=e.clientX,n=l+(f?s-t:t-s),r=c*(n/l);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function g(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:GR(GR({},t.style),{width:r+"px",height:i+"px"})};Qf.setNodes(e,a,{at:tA.findPath(e,t)}),o.off("mouseup",g)}}var v={};return a&&(v.width=a),u&&(v.height=u),Jh("div",{id:i,style:v,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=hp(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),p(e.clientX))}}},n,Jh("div",{className:"w-e-image-dragger left-top"}),Jh("div",{className:"w-e-image-dragger right-top"}),Jh("div",{className:"w-e-image-dragger left-bottom"}),Jh("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:d,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};return o&&(a.width=o),i&&(a.height=i),Jh("div",{id:Sz(e,t),style:a,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},Dz={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hp(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:VR(r,"width"),height:VR(r,"height")},children:[{text:""}]}}};function Oz(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),KR(this,void 0,void 0,(function(){var i,a;return YR(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 Az(e,t,n){return KR(this,void 0,void 0,(function(){var r;return YR(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 kz(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),KR(this,void 0,void 0,(function(){var o,i,a;return YR(this,(function(u){switch(u.label){case 0:return[4,Oz("insertImage",e,t,n,r)];case 1:return u.sent()?[4,Az("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:YM(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),tA.getSelectedNodeByType(e,"image")&&e.move(1),Bz(e)||(Qf.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function Bz(e){var t=e.selection;return null==t||!Bf.isCollapsed(t)||!!ZR(df.nodes(e,{match:function(t){var n=tA.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!df.isVoid(e,t)},universal:!0}),1)[0]}function _z(){return KM("w-e-insert-image")}var Fz=function(){function e(){this.title=jT("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=_z(),this.altInputId=_z(),this.hrefInputId=_z(),this.buttonId=_z()}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 Bz(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=ZR(wF(jT("image.src"),r),2),s=u[0],l=hp(u[1]),c=ZR(wF(jT("image.desc"),o),2),f=c[0],d=hp(c[1]),p=ZR(wF(jT("image.link"),i),2),h=p[0],g=hp(p[1]),v=ZR(EF(a,jT("common.ok")),1)[0];if(null==this.$content){var y=hp("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(v),l.val(""),d.val(""),g.val(""),setTimeout((function(){l.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||kz(e,t,n,r))},e}(),Tz=function(){function e(){this.title=jT("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==tA.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||Qf.removeNodes(e,{match:function(e){return tA.checkNodeType(e,"image")}})},e}();function Pz(){return KM("w-e-edit-image")}var jz=function(){function e(){this.title=jT("image.edit"),this.iconSvg=SL,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Pz(),this.altInputId=Pz(),this.hrefInputId=Pz(),this.buttonId=Pz()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return tA.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||!Bf.isCollapsed(t)||null==tA.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=ZR(wF(jT("image.src"),r),2),l=s[0],c=hp(s[1]),f=ZR(wF(jT("image.desc"),o),2),d=f[0],p=hp(f[1]),h=ZR(wF(jT("image.link"),i),2),g=h[0],v=hp(h[1]),y=ZR(EF(a,jT("common.ok")),1)[0];if(null==this.$content){var m=hp("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(l),b.append(d),b.append(g),b.append(y);var w=u,E=w.src,x=w.alt,S=void 0===x?"":x,C=w.href,D=void 0===C?"":C;return c.val(E),p.val(S),v.val(D),setTimeout((function(){c.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),KR(this,void 0,void 0,(function(){var i,a,u,s,l,c;return YR(this,(function(f){switch(f.label){case 0:return[4,Oz("editImage",e,t,n,r)];case 1:return f.sent()?[4,Az("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=tA.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:GR(GR({},void 0===u?{}:u),o)},Qf.setNodes(e,s,{match:function(e){return tA.checkNodeType(e,"image")}}),l=tA.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),Nz=function(){function e(){this.title=jT("image.viewLink"),this.iconSvg=CL,this.tag="button"}return e.prototype.getValue=function(e){var t=tA.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}(),Iz=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 tA.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=tA.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:GR(GR({},void 0===o?{}:o),{width:this.value,height:""})};Qf.setNodes(e,i,{match:function(e){return tA.checkNodeType(e,"image")}})}}},e}(),Rz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return qR(t,e),t}(Iz),Lz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return qR(t,e),t}(Iz),Mz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return qR(t,e),t}(Iz),zz={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},Uz={renderElems:[Cz],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.style,l=void 0===s?{}:s,c=l.width,f=void 0===c?"":c,d=l.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[Dz],menus:[{key:"insertImage",factory:function(){return new Fz},config:zz},{key:"deleteImage",factory:function(){return new Tz}},{key:"editImage",factory:function(){return new jz},config:zz},{key:"viewImageLink",factory:function(){return new Nz}},{key:"imageWidth30",factory:function(){return new Rz}},{key:"imageWidth50",factory:function(){return new Lz}},{key:"imageWidth100",factory:function(){return new Mz}}],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}},Hz={type:"todo",renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),Jh("div",{style:{margin:"5px 0"}},Jh("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Jh("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=tA.findPath(n,e),o={checked:t.target.checked};Qf.setNodes(n,o,{at:r})}}})),Jh("span",null,t))}},$z=function(){function e(){this.title=jT("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!!tA.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!tA.getSelectedElems(e).some((function(t){if(df.isVoid(e,t)&&df.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);Qf.setNodes(e,{type:n?"paragraph":"todo"})},e}(),Vz={renderElems:[Hz],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=hp(e).find("li"),n=hp('<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=hp(e);0===(t=t.filter((function(e){return!!If.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}}],menus:[{key:"todo",factory:function(){return new $z}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&Bf.isCollapsed(r)){var o=tA.getSelectedNodeByType(e,"todo");if(o&&0===yf.string(o).length)return void Qf.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},Wz={type:"blockquote",renderElem:function(e,t,n){return Jh("blockquote",null,t)}},qz={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hp(e);return 0===(t=t.filter((function(e){return!!If.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},Gz=function(){function e(){this.title=jT("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!!tA.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!ZR(df.nodes(e,{match:function(e){var t=tA.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";Qf.setNodes(e,{type:n},{mode:"highest"})}},e}(),Kz={key:"blockquote",factory:function(){return new Gz}},Yz=bP([].slice),Xz=ZN("slice"),Zz=dj("species"),Jz=aP.Array,Qz=Math.max;AN({target:"Array",proto:!0,forced:!Xz},{slice:function(e,t){var n,r,o,i=kP(this),a=aN(i),u=rN(e,a),s=rN(void 0===t?a:t,a);if(BN(i)&&(n=i.constructor,($N(n)&&(n===Jz||BN(n.prototype))||_P(n)&&null===(n=n[Zz]))&&(n=void 0),n===Jz||void 0===n))return Yz(i,u,s);for(r=new(void 0===n?Jz:n)(Qz(s-u,0)),o=0;u<s;u++,o++)u in i&&xR(r,o,i[u]);return r.length=o,r}});var eU={renderElems:[Wz],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[qz],menus:[Kz],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=ZR(df.nodes(e,{match:function(e){return tA.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=tA.findPath(e,a),s=df.end(e,u);if(Df.equals(s,o.focus)){var l=yf.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void Qf.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},tU=function(){function e(){this.title=jT("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||!!ZR(df.nodes(e,{match:function(t){return"pre"===tA.getNodeType(t)||!!df.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=hp('<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=hp(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=hp("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),nU={menus:[{key:"emotion",factory:function(){return new tU},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},rU={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},oU={selector:"font",preParseHtml:function(e){var t=hp(e);if("font"!==$R(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]}},iU=bP("".indexOf);AN({target:"String",proto:!0,forced:!sM("includes")},{includes:function(e){return!!~iU(nI(AP(this)),nI(aM(e)),arguments.length>1?arguments[1]:void 0)}});var aU,uU,sU=function(e){return e&&e.Math==Math&&e},lU=sU("object"==typeof globalThis&&globalThis)||sU("object"==typeof window&&window)||sU("object"==typeof self&&self)||sU("object"==typeof tP&&tP)||function(){return this}()||Function("return this")(),cU=Function.prototype,fU=cU.apply,dU=cU.bind,pU=cU.call,hU="object"==typeof Reflect&&Reflect.apply||(dU?pU.bind(fU):function(){return pU.apply(fU,arguments)}),gU=Function.prototype,vU=gU.bind,yU=gU.call,mU=vU&&vU.bind(yU),bU=vU?function(e){return e&&mU(yU,e)}:function(e){return e&&function(){return yU.apply(e,arguments)}},wU=function(e){return"function"==typeof e},EU=function(e){try{return!!e()}catch(e){return!0}},xU=!EU((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),SU=Function.prototype.call,CU=SU.bind?SU.bind(SU):function(){return SU.apply(SU,arguments)},DU={}.propertyIsEnumerable,OU=Object.getOwnPropertyDescriptor,AU={f:OU&&!DU.call({1:2},1)?function(e){var t=OU(this,e);return!!t&&t.enumerable}:DU},kU=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},BU=bU({}.toString),_U=bU("".slice),FU=function(e){return _U(BU(e),8,-1)},TU=lU.Object,PU=bU("".split),jU=EU((function(){return!TU("z").propertyIsEnumerable(0)}))?function(e){return"String"==FU(e)?PU(e,""):TU(e)}:TU,NU=lU.TypeError,IU=function(e){if(null==e)throw NU("Can't call method on "+e);return e},RU=function(e){return jU(IU(e))},LU=function(e){return"object"==typeof e?null!==e:wU(e)},MU={},zU=function(e){return wU(e)?e:void 0},UU=function(e,t){return arguments.length<2?zU(MU[e])||zU(lU[e]):MU[e]&&MU[e][t]||lU[e]&&lU[e][t]},HU=bU({}.isPrototypeOf),$U=UU("navigator","userAgent")||"",VU=lU.process,WU=lU.Deno,qU=VU&&VU.versions||WU&&WU.version,GU=qU&&qU.v8;GU&&(uU=(aU=GU.split("."))[0]>0&&aU[0]<4?1:+(aU[0]+aU[1])),!uU&&$U&&(!(aU=$U.match(/Edge\/(\d+)/))||aU[1]>=74)&&(aU=$U.match(/Chrome\/(\d+)/))&&(uU=+aU[1]);var KU=uU,YU=!!Object.getOwnPropertySymbols&&!EU((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&KU&&KU<41})),XU=YU&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ZU=lU.Object,JU=XU?function(e){return"symbol"==typeof e}:function(e){var t=UU("Symbol");return wU(t)&&HU(t.prototype,ZU(e))},QU=lU.String,eH=lU.TypeError,tH=function(e){if(wU(e))return e;throw eH(function(e){try{return QU(e)}catch(e){return"Object"}}(e)+" is not a function")},nH=lU.TypeError,rH=Object.defineProperty,oH=lU["__core-js_shared__"]||function(e,t){try{rH(lU,e,{value:t,configurable:!0,writable:!0})}catch(n){lU[e]=t}return t}("__core-js_shared__",{}),iH=nP((function(e){(e.exports=function(e,t){return oH[e]||(oH[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),aH=lU.Object,uH=function(e){return aH(IU(e))},sH=bU({}.hasOwnProperty),lH=Object.hasOwn||function(e,t){return sH(uH(e),t)},cH=0,fH=Math.random(),dH=bU(1..toString),pH=function(e){return"Symbol("+(void 0===e?"":e)+")_"+dH(++cH+fH,36)},hH=iH("wks"),gH=lU.Symbol,vH=gH&&gH.for,yH=XU?gH:gH&&gH.withoutSetter||pH,mH=function(e){if(!lH(hH,e)||!YU&&"string"!=typeof hH[e]){var t="Symbol."+e;YU&&lH(gH,e)?hH[e]=gH[e]:hH[e]=XU&&vH?vH(t):yH(t)}return hH[e]},bH=lU.TypeError,wH=mH("toPrimitive"),EH=function(e){var t=function(e,t){if(!LU(e)||JU(e))return e;var n,r,o=null==(n=e[wH])?void 0:tH(n);if(o){if(void 0===t&&(t="default"),r=CU(o,e,t),!LU(r)||JU(r))return r;throw bH("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&wU(n=e.toString)&&!LU(r=CU(n,e)))return r;if(wU(n=e.valueOf)&&!LU(r=CU(n,e)))return r;if("string"!==t&&wU(n=e.toString)&&!LU(r=CU(n,e)))return r;throw nH("Can't convert object to primitive value")}(e,t)}(e,"string");return JU(t)?t:t+""},xH=lU.document,SH=LU(xH)&&LU(xH.createElement),CH=function(e){return SH?xH.createElement(e):{}},DH=!xU&&!EU((function(){return 7!=Object.defineProperty(CH("div"),"a",{get:function(){return 7}}).a})),OH=Object.getOwnPropertyDescriptor,AH={f:xU?OH:function(e,t){if(e=RU(e),t=EH(t),DH)try{return OH(e,t)}catch(e){}if(lH(e,t))return kU(!CU(AU.f,e,t),e[t])}},kH=/#|\.prototype\./,BH=function(e,t){var n=FH[_H(e)];return n==PH||n!=TH&&(wU(t)?EU(t):!!t)},_H=BH.normalize=function(e){return String(e).replace(kH,".").toLowerCase()},FH=BH.data={},TH=BH.NATIVE="N",PH=BH.POLYFILL="P",jH=BH,NH=bU(bU.bind),IH=function(e,t){return tH(e),void 0===t?e:NH?NH(e,t):function(){return e.apply(t,arguments)}},RH=lU.String,LH=lU.TypeError,MH=function(e){if(LU(e))return e;throw LH(RH(e)+" is not an object")},zH=lU.TypeError,UH=Object.defineProperty,HH={f:xU?UH:function(e,t,n){if(MH(e),t=EH(t),MH(n),DH)try{return UH(e,t,n)}catch(e){}if("get"in n||"set"in n)throw zH("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},$H=xU?function(e,t,n){return HH.f(e,t,kU(1,n))}:function(e,t,n){return e[t]=n,e},VH=AH.f,WH=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 hU(e,this,arguments)};return t.prototype=e.prototype,t},qH=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?lU:d?lU[c]:(lU[c]||{}).prototype,g=f?MU:MU[c]||$H(MU,c,{})[c],v=g.prototype;for(o in t)n=!jH(f?o:c+(d?".":"#")+o,e.forced)&&h&&lH(h,o),a=g[o],n&&(u=e.noTargetGet?(l=VH(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?IH(i,lU):e.wrap&&n?WH(i):p&&wU(i)?bU(i):i,(e.sham||i&&i.sham||a&&a.sham)&&$H(s,"sham",!0),$H(g,o,s),p&&(lH(MU,r=c+"Prototype")||$H(MU,r,{}),$H(MU[r],o,i),e.real&&v&&!v[o]&&$H(v,o,i)))},GH=Array.isArray||function(e){return"Array"==FU(e)},KH=Math.ceil,YH=Math.floor,XH=function(e){var t=+e;return t!=t||0===t?0:(t>0?YH:KH)(t)},ZH=Math.min,JH=function(e){return(t=e.length)>0?ZH(XH(t),9007199254740991):0;var t},QH=function(e,t,n){var r=EH(t);r in e?HH.f(e,r,kU(0,n)):e[r]=n},e$={};e$[mH("toStringTag")]="z";var t$="[object z]"===String(e$),n$=mH("toStringTag"),r$=lU.Object,o$="Arguments"==FU(function(){return arguments}()),i$=t$?FU: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=r$(e),n$))?n:o$?FU(t):"Object"==(r=FU(t))&&wU(t.callee)?"Arguments":r},a$=bU(Function.toString);wU(oH.inspectSource)||(oH.inspectSource=function(e){return a$(e)});var u$=oH.inspectSource,s$=function(){},l$=[],c$=UU("Reflect","construct"),f$=/^\s*(?:class|function)\b/,d$=bU(f$.exec),p$=!f$.exec(s$),h$=function(e){if(!wU(e))return!1;try{return c$(s$,l$,e),!0}catch(e){return!1}},g$=!c$||EU((function(){var e;return h$(h$.call)||!h$(Object)||!h$((function(){e=!0}))||e}))?function(e){if(!wU(e))return!1;switch(i$(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return p$||!!d$(f$,u$(e))}:h$,v$=mH("species"),y$=lU.Array,m$=function(e,t){return new(function(e){var t;return GH(e)&&(t=e.constructor,(g$(t)&&(t===y$||GH(t.prototype))||LU(t)&&null===(t=t[v$]))&&(t=void 0)),void 0===t?y$:t}(e))(0===t?0:t)},b$=mH("species"),w$=mH("isConcatSpreadable"),E$=lU.TypeError,x$=KU>=51||!EU((function(){var e=[];return e[w$]=!1,e.concat()[0]!==e})),S$=KU>=51||!EU((function(){var e=[];return(e.constructor={})[b$]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),C$=function(e){if(!LU(e))return!1;var t=e[w$];return void 0!==t?!!t:GH(e)};qH({target:"Array",proto:!0,forced:!x$||!S$},{concat:function(e){var t,n,r,o,i,a=uH(this),u=m$(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(C$(i=-1===t?a:arguments[t])){if(s+(o=JH(i))>9007199254740991)throw E$("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&QH(u,s,i[n])}else{if(s>=9007199254740991)throw E$("Maximum allowed index exceeded");QH(u,s++,i)}return u.length=s,u}});var D$,O$=lU.String,A$=function(e){if("Symbol"===i$(e))throw TypeError("Cannot convert a Symbol value to a string");return O$(e)},k$=Math.max,B$=Math.min,_$=function(e,t){var n=XH(e);return n<0?k$(n+t,0):B$(n,t)},F$=function(e){return function(t,n,r){var o,i=RU(t),a=JH(i),u=_$(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}},T$={includes:F$(!0),indexOf:F$(!1)},P$={},j$=T$.indexOf,N$=bU([].push),I$=function(e,t){var n,r=RU(e),o=0,i=[];for(n in r)!lH(P$,n)&&lH(r,n)&&N$(i,n);for(;t.length>o;)lH(r,n=t[o++])&&(~j$(i,n)||N$(i,n));return i},R$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],L$=Object.keys||function(e){return I$(e,R$)},M$=xU?Object.defineProperties:function(e,t){MH(e);for(var n,r=RU(t),o=L$(t),i=o.length,a=0;i>a;)HH.f(e,n=o[a++],r[n]);return e},z$=UU("document","documentElement"),U$=iH("keys"),H$=function(e){return U$[e]||(U$[e]=pH(e))},$$=H$("IE_PROTO"),V$=function(){},W$=function(e){return"<script>"+e+"<\/script>"},q$=function(e){e.write(W$("")),e.close();var t=e.parentWindow.Object;return e=null,t},G$=function(){try{D$=new ActiveXObject("htmlfile")}catch(e){}var e,t;G$="undefined"!=typeof document?document.domain&&D$?q$(D$):((t=CH("iframe")).style.display="none",z$.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(W$("document.F=Object")),e.close(),e.F):q$(D$);for(var n=R$.length;n--;)delete G$.prototype[R$[n]];return G$()};P$[$$]=!0;var K$,Y$,X$,Z$=Object.create||function(e,t){var n;return null!==e?(V$.prototype=MH(e),n=new V$,V$.prototype=null,n[$$]=e):n=G$(),void 0===t?n:M$(n,t)},J$=R$.concat("length","prototype"),Q$={f:Object.getOwnPropertyNames||function(e){return I$(e,J$)}},eV=lU.Array,tV=Math.max,nV=Q$.f,rV="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],oV={f:function(e){return rV&&"Window"==FU(e)?function(e){try{return nV(e)}catch(e){return function(e,t,n){for(var r=JH(e),o=_$(void 0,r),i=_$(r,r),a=eV(tV(i-o,0)),u=0;o<i;o++,u++)QH(a,u,e[o]);return a.length=u,a}(rV)}}(e):nV(RU(e))}},iV={f:Object.getOwnPropertySymbols},aV=bU([].slice),uV=function(e,t,n,r){r&&r.enumerable?e[t]=n:$H(e,t,n)},sV={f:mH},lV=HH.f,cV=function(e){var t=MU.Symbol||(MU.Symbol={});lH(t,e)||lV(t,e,{value:sV.f(e)})},fV=t$?{}.toString:function(){return"[object "+i$(this)+"]"},dV=HH.f,pV=mH("toStringTag"),hV=function(e,t,n,r){if(e){var o=n?e:e.prototype;lH(o,pV)||dV(o,pV,{configurable:!0,value:t}),r&&!t$&&$H(o,"toString",fV)}},gV=lU.WeakMap,vV=wU(gV)&&/native code/.test(u$(gV)),yV=lU.TypeError,mV=lU.WeakMap;if(vV||oH.state){var bV=oH.state||(oH.state=new mV),wV=bU(bV.get),EV=bU(bV.has),xV=bU(bV.set);K$=function(e,t){if(EV(bV,e))throw new yV("Object already initialized");return t.facade=e,xV(bV,e,t),t},Y$=function(e){return wV(bV,e)||{}},X$=function(e){return EV(bV,e)}}else{var SV=H$("state");P$[SV]=!0,K$=function(e,t){if(lH(e,SV))throw new yV("Object already initialized");return t.facade=e,$H(e,SV,t),t},Y$=function(e){return lH(e,SV)?e[SV]:{}},X$=function(e){return lH(e,SV)}}var CV={set:K$,get:Y$,has:X$,enforce:function(e){return X$(e)?Y$(e):K$(e,{})},getterFor:function(e){return function(t){var n;if(!LU(t)||(n=Y$(t)).type!==e)throw yV("Incompatible receiver, "+e+" required");return n}}},DV=bU([].push),OV=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=uH(s),g=jU(h),v=IH(l,c),y=JH(g),m=0,b=f||m$,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:DV(w,d)}else switch(e){case 4:return!1;case 7:DV(w,d)}return i?-1:r||o?o:w}},AV=[OV(0),OV(1),OV(2),OV(3),OV(4),OV(5),OV(6),OV(7)][0],kV=H$("hidden"),BV=mH("toPrimitive"),_V=CV.set,FV=CV.getterFor("Symbol"),TV=Object.prototype,PV=lU.Symbol,jV=PV&&PV.prototype,NV=lU.TypeError,IV=lU.QObject,RV=UU("JSON","stringify"),LV=AH.f,MV=HH.f,zV=oV.f,UV=AU.f,HV=bU([].push),$V=iH("symbols"),VV=iH("op-symbols"),WV=iH("string-to-symbol-registry"),qV=iH("symbol-to-string-registry"),GV=iH("wks"),KV=!IV||!IV.prototype||!IV.prototype.findChild,YV=xU&&EU((function(){return 7!=Z$(MV({},"a",{get:function(){return MV(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=LV(TV,t);r&&delete TV[t],MV(e,t,n),r&&e!==TV&&MV(TV,t,r)}:MV,XV=function(e,t){var n=$V[e]=Z$(jV);return _V(n,{type:"Symbol",tag:e,description:t}),xU||(n.description=t),n},ZV=function(e,t,n){e===TV&&ZV(VV,t,n),MH(e);var r=EH(t);return MH(n),lH($V,r)?(n.enumerable?(lH(e,kV)&&e[kV][r]&&(e[kV][r]=!1),n=Z$(n,{enumerable:kU(0,!1)})):(lH(e,kV)||MV(e,kV,kU(1,{})),e[kV][r]=!0),YV(e,r,n)):MV(e,r,n)},JV=function(e,t){MH(e);var n=RU(t),r=L$(n).concat(nW(n));return AV(r,(function(t){xU&&!CU(QV,n,t)||ZV(e,t,n[t])})),e},QV=function(e){var t=EH(e),n=CU(UV,this,t);return!(this===TV&&lH($V,t)&&!lH(VV,t))&&(!(n||!lH(this,t)||!lH($V,t)||lH(this,kV)&&this[kV][t])||n)},eW=function(e,t){var n=RU(e),r=EH(t);if(n!==TV||!lH($V,r)||lH(VV,r)){var o=LV(n,r);return!o||!lH($V,r)||lH(n,kV)&&n[kV][r]||(o.enumerable=!0),o}},tW=function(e){var t=zV(RU(e)),n=[];return AV(t,(function(e){lH($V,e)||lH(P$,e)||HV(n,e)})),n},nW=function(e){var t=e===TV,n=zV(t?VV:RU(e)),r=[];return AV(n,(function(e){!lH($V,e)||t&&!lH(TV,e)||HV(r,$V[e])})),r};if(YU||(jV=(PV=function(){if(HU(jV,this))throw NV("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?A$(arguments[0]):void 0,t=pH(e),n=function(e){this===TV&&CU(n,VV,e),lH(this,kV)&&lH(this[kV],t)&&(this[kV][t]=!1),YV(this,t,kU(1,e))};return xU&&KV&&YV(TV,t,{configurable:!0,set:n}),XV(t,e)}).prototype,uV(jV,"toString",(function(){return FV(this).tag})),uV(PV,"withoutSetter",(function(e){return XV(pH(e),e)})),AU.f=QV,HH.f=ZV,AH.f=eW,Q$.f=oV.f=tW,iV.f=nW,sV.f=function(e){return XV(mH(e),e)},xU&&MV(jV,"description",{configurable:!0,get:function(){return FV(this).description}})),qH({global:!0,wrap:!0,forced:!YU,sham:!YU},{Symbol:PV}),AV(L$(GV),(function(e){cV(e)})),qH({target:"Symbol",stat:!0,forced:!YU},{for:function(e){var t=A$(e);if(lH(WV,t))return WV[t];var n=PV(t);return WV[t]=n,qV[n]=t,n},keyFor:function(e){if(!JU(e))throw NV(e+" is not a symbol");if(lH(qV,e))return qV[e]},useSetter:function(){KV=!0},useSimple:function(){KV=!1}}),qH({target:"Object",stat:!0,forced:!YU,sham:!xU},{create:function(e,t){return void 0===t?Z$(e):JV(Z$(e),t)},defineProperty:ZV,defineProperties:JV,getOwnPropertyDescriptor:eW}),qH({target:"Object",stat:!0,forced:!YU},{getOwnPropertyNames:tW,getOwnPropertySymbols:nW}),qH({target:"Object",stat:!0,forced:EU((function(){iV.f(1)}))},{getOwnPropertySymbols:function(e){return iV.f(uH(e))}}),RV){var rW=!YU||EU((function(){var e=PV();return"[null]"!=RV([e])||"{}"!=RV({a:e})||"{}"!=RV(Object(e))}));qH({target:"JSON",stat:!0,forced:rW},{stringify:function(e,t,n){var r=aV(arguments),o=t;if((LU(t)||void 0!==e)&&!JU(e))return GH(t)||(t=function(e,t){if(wU(o)&&(t=CU(o,this,e,t)),!JU(t))return t}),r[1]=t,hU(RV,null,r)}})}if(!jV[BV]){var oW=jV.valueOf;uV(jV,BV,(function(e){return CU(oW,this)}))}hV(PV,"Symbol"),P$[kV]=!0,cV("asyncIterator"),cV("hasInstance"),cV("isConcatSpreadable"),cV("iterator"),cV("match"),cV("matchAll"),cV("replace"),cV("search"),cV("species"),cV("split"),cV("toPrimitive"),cV("toStringTag"),cV("unscopables"),hV(lU.JSON,"JSON",!0);var iW,aW,uW,sW=MU.Symbol,lW={},cW=Function.prototype,fW=xU&&Object.getOwnPropertyDescriptor,dW=lH(cW,"name"),pW={EXISTS:dW,PROPER:dW&&"something"===function(){}.name,CONFIGURABLE:dW&&(!xU||xU&&fW(cW,"name").configurable)},hW=!EU((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),gW=H$("IE_PROTO"),vW=lU.Object,yW=vW.prototype,mW=hW?vW.getPrototypeOf:function(e){var t=uH(e);if(lH(t,gW))return t[gW];var n=t.constructor;return wU(n)&&t instanceof n?n.prototype:t instanceof vW?yW:null},bW=mH("iterator"),wW=!1;[].keys&&("next"in(uW=[].keys())?(aW=mW(mW(uW)))!==Object.prototype&&(iW=aW):wW=!0);var EW=null==iW||EU((function(){var e={};return iW[bW].call(e)!==e}));iW=EW?{}:Z$(iW),wU(iW[bW])||uV(iW,bW,(function(){return this}));var xW={IteratorPrototype:iW,BUGGY_SAFARI_ITERATORS:wW},SW=xW.IteratorPrototype,CW=function(){return this};lU.String,lU.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){try{bU(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)({},[])}catch(e){}}();var DW=pW.PROPER,OW=xW.BUGGY_SAFARI_ITERATORS,AW=mH("iterator"),kW=function(){return this},BW=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Z$(SW,{next:kU(1,n)}),hV(e,o,!1,!0),lW[o]=CW}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!OW&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[AW]||p["@@iterator"]||o&&p[o],g=!OW&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=mW(v.call(new e)))!==Object.prototype&&u.next&&(hV(u,f,!0,!0),lW[f]=kW),DW&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return CU(h,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(OW||d||!(l in p))&&uV(p,l,s[l]);else qH({target:t,proto:!0,forced:OW||d},s);return a&&p[AW]!==g&&uV(p,AW,g,{name:o}),lW[t]=g,s},_W=CV.set,FW=CV.getterFor("Array Iterator");BW(Array,"Array",(function(e,t){_W(this,{type:"Array Iterator",target:RU(e),index:0,kind:t})}),(function(){var e=FW(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"),lW.Arguments=lW.Array;var TW=mH("toStringTag");for(var PW 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 jW=lU[PW],NW=jW&&jW.prototype;NW&&i$(NW)!==TW&&$H(NW,TW,PW),lW[PW]=lW.Array}var IW=sW;cV("asyncDispose"),cV("dispose"),cV("matcher"),cV("metadata"),cV("observable"),cV("patternMatch"),cV("replaceAll");var RW=IW,LW=bU("".charAt),MW=bU("".charCodeAt),zW=bU("".slice),UW=function(e){return function(t,n){var r,o,i=A$(IU(t)),a=XH(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=MW(i,a))<55296||r>56319||a+1===u||(o=MW(i,a+1))<56320||o>57343?e?LW(i,a):r:e?zW(i,a,a+2):o-56320+(r-55296<<10)+65536}},HW=(UW(!1),UW(!0)),$W=CV.set,VW=CV.getterFor("String Iterator");BW(String,"String",(function(e){$W(this,{type:"String Iterator",string:A$(e),index:0})}),(function(){var e,t=VW(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=HW(n,r),t.index+=e.length,{value:e,done:!1})}));var WW=sV.f("iterator"),qW=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(nP((function(e){function t(n){return"function"==typeof RW&&"symbol"==typeof WW?(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 RW&&e.constructor===RW&&e!==RW.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}))),GW=Xj.EXISTS,KW=Aj.f,YW=Function.prototype,XW=bP(YW.toString),ZW=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,JW=bP(ZW.exec);sP&&!GW&&KW(YW,"name",{configurable:!0,get:function(){try{return JW(ZW,XW(this))[1]}catch(e){return""}}});var QW=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=df.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!ZR(df.nodes(e,{match:function(t){return"pre"===tA.getNodeType(t)||!!df.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}(),eq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jT("fontSize.title"),t.iconSvg=AL,t.mark="fontSize",t}return qR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:jT("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===qW(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(QW),tq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jT("fontFamily.title"),t.iconSvg=kL,t.mark="fontFamily",t.selectPanelWidth=150,t}return qR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:jT("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===qW(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(QW),nq={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&RM(i,{fontSize:r}),o&&RM(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!If.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((UR(t)||"span"!==$R(n=hp(t)))&&(n=hp("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),HR(n)):t},preParseHtml:[oU],parseStyleHtml:function(e,t,n){var r=hp(e);if(!If.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=VR(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===l?[]:l,f=VR(r,"font-family").replace(/"/g,""),d=c.find((function(e){return e.value&&e.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new eq},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 tq},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},rq={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=hp(e),n=VR(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]}},oq=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=ZR(df.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return null==t?"":ZR(t,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=ZR(df.nodes(e,{match:function(e){var t=tA.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),iq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jT("indent.decrease"),t.iconSvg=BL,t}return qR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){Qf.setNodes(e,{indent:null},{match:function(e){return af.isElement(e)}})},t}(oq),aq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jT("indent.increase"),t.iconSvg=_L,t}return qR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){Qf.setNodes(e,{indent:"2em"},{match:function(e){return af.isElement(e)},mode:"highest"})},t}(oq),uq={renderStyle:function(e,t){if(!af.isElement(e))return t;var n=e.indent,r=t;return n&&RM(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!af.isElement(e))return t;var n=e.indent;if(!n)return t;var r=hp(t);return r.css("text-indent",n),HR(r)},preParseHtml:[rq],parseStyleHtml:function(e,t,n){var r=hp(e);if(!af.isElement(t))return t;var o=t,i=VR(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new aq}},{key:"delIndent",factory:function(){return new iq}}]},sq=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=ZR(df.nodes(e,{match:function(e){var t=tA.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||!!tA.getSelectedElems(e).some((function(t){if(df.isVoid(e,t)&&df.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),lq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jT("justify.left"),t.iconSvg=FL,t}return qR(t,e),t.prototype.exec=function(e,t){Qf.setNodes(e,{textAlign:"left"},{match:function(t){return af.isElement(t)&&!e.isInline(t)}})},t}(sq),cq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jT("justify.right"),t.iconSvg=TL,t}return qR(t,e),t.prototype.exec=function(e,t){Qf.setNodes(e,{textAlign:"right"},{match:function(t){return af.isElement(t)&&!e.isInline(t)}})},t}(sq),fq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jT("justify.center"),t.iconSvg=PL,t}return qR(t,e),t.prototype.exec=function(e,t){Qf.setNodes(e,{textAlign:"center"},{match:function(t){return af.isElement(t)&&!e.isInline(t)}})},t}(sq),dq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jT("justify.justify"),t.iconSvg=jL,t}return qR(t,e),t.prototype.exec=function(e,t){Qf.setNodes(e,{textAlign:"justify"},{match:function(t){return af.isElement(t)&&!e.isInline(t)}})},t}(sq),pq={renderStyle:function(e,t){if(!af.isElement(e))return t;var n=e.textAlign,r=t;return n&&RM(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!af.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=hp(t);return r.css("text-align",n),HR(r)},parseStyleHtml:function(e,t,n){var r=hp(e);if(!af.isElement(t))return t;var o=t,i=VR(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new lq}},{key:"justifyRight",factory:function(){return new cq}},{key:"justifyCenter",factory:function(){return new fq}},{key:"justifyJustify",factory:function(){return new dq}}]},hq=function(){function e(){this.title=jT("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:jT("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=ZR(df.nodes(e,{match:function(e){var t=tA.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?"":af.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){Qf.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),gq={renderStyle:function(e,t){if(!af.isElement(e))return t;var n=e.lineHeight,r=t;return n&&RM(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!af.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=hp(t);return r.css("line-height",n),HR(r)},parseStyleHtml:function(e,t,n){var r=hp(e);if(!af.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=VR(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new hq},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},vq=function(){function e(){this.title=jT("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}(),yq=function(){function e(){this.title=jT("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}(),mq={menus:[{key:"redo",factory:function(){return new vq}},{key:"undo",factory:function(){return new yq}}]},bq={type:"divider",renderElem:function(e,t,n){return Nh("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:tA.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Nh("hr")])}},wq=function(){function e(){this.title=jT("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||!!tA.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=tA.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){Qf.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),Eq={renderElems:[bq],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new wq}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=ZR(e,2),o=t[0],i=t[1];if("divider"!==tA.getNodeType(o))return n([o,i]);tA.isLastNode(r,o)&&Qf.insertNodes(r,tA.genEmptyParagraph(),{at:[i[0]+1]})},r}},xq=YN.map;AN({target:"Array",proto:!0,forced:!ZN("map")},{map:function(e){return xq(this,e,arguments.length>1?arguments[1]:void 0)}});var Sq=bP([].join),Cq=DP!=Object,Dq=cL("join",",");AN({target:"Array",proto:!0,forced:Cq||!Dq},{join:function(e){return Sq(kP(this),void 0===e?",":e)}});var Oq=function(){function e(){this.title=jT("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=tA.getSelectedNodeByType(e,"code");if(null==t)return null;var n=tA.getParentNode(e,t);return null==n||"pre"!==tA.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=tA.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=tA.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=yf.string(t);Qf.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));Qf.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=df.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=XR(i),u=a.next();!u.done;u=a.next()){var s=ZR(u.value,1)[0];s&&o.push(yf.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}Qf.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};Qf.insertNodes(e,l,{mode:"highest"})},e}(),Aq={key:"codeBlock",factory:function(){return new Oq}};AN({target:"String",proto:!0,forced:rL("anchor")},{anchor:function(e){return nL(this,"a","name",e)}}),HI("match",(function(e,t,n){return[function(t){var n=AP(this),r=null==t?void 0:KP(t,e);return r?cP(r,t,n):new RegExp(t)[e](nI(n))},function(e){var r=Cj(this),o=nI(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return rR(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=rR(r,o));){var c=nI(u[0]);s[l]=c,""===c&&(r.lastIndex=KI(o,iN(r.lastIndex),a)),l++}return 0===l?null:s}]}));var kq={menus:[Aq],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=tA.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=yf.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=ZR(e,2),r=t[0],i=t[1],a=tA.getNodeType(r);return"code"===a&&i.length<=1&&Qf.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(tA.isLastNode(o,r)&&Qf.insertNodes(o,tA.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==tA.getNodeType(r.children[0])&&(Qf.unwrapNodes(o),Qf.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=tA.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");df.insertText(o,t)}else r(e)},o},renderElems:[{type:"pre",renderElem:function(e,t,n){return Jh("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return Jh("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=hp(e);if("code"!==$R(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:hp(e)[0].textContent||""}]}}},{selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hp(e);return 0===(t=t.filter((function(e){return"code"===tA.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===tA.getNodeType(e)}))}}}]},Bq=function(){function e(){this.title=jT("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}(),_q={menus:[{key:"fullScreen",factory:function(){return new Bq}}]},Fq=function(){function e(){this.title=jT("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||!!Bf.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];Qf.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(df.start(e,r))}},e}(),Tq=[WL,$M,nq,uq,pq,gq,Uz,Eq,nU,cz,kq,eU,TM,QR,Vz,mq,_q,{menus:[{key:"enter",factory:function(){return new Fq}}]}];PT("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),PT("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Pq="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function jq(e){var t={exports:{}};return e(t,t.exports),t.exports}var Nq,Iq,Rq=function(e){return e&&e.Math==Math&&e},Lq=Rq("object"==typeof globalThis&&globalThis)||Rq("object"==typeof window&&window)||Rq("object"==typeof self&&self)||Rq("object"==typeof Pq&&Pq)||function(){return this}()||Function("return this")(),Mq=Function.prototype,zq=Mq.bind,Uq=Mq.call,Hq=zq&&zq.bind(Uq),$q=zq?function(e){return e&&Hq(Uq,e)}:function(e){return e&&function(){return Uq.apply(e,arguments)}},Vq=function(e){try{return!!e()}catch(e){return!0}},Wq=$q({}.toString),qq=$q("".slice),Gq=function(e){return qq(Wq(e),8,-1)},Kq=Lq.Object,Yq=$q("".split),Xq=Vq((function(){return!Kq("z").propertyIsEnumerable(0)}))?function(e){return"String"==Gq(e)?Yq(e,""):Kq(e)}:Kq,Zq=Lq.TypeError,Jq=function(e){if(null==e)throw Zq("Can't call method on "+e);return e},Qq=function(e){return Xq(Jq(e))},eG=Object.defineProperty,tG=function(e,t){try{eG(Lq,e,{value:t,configurable:!0,writable:!0})}catch(n){Lq[e]=t}return t},nG=Lq["__core-js_shared__"]||tG("__core-js_shared__",{}),rG=jq((function(e){(e.exports=function(e,t){return nG[e]||(nG[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),oG=Lq.Object,iG=function(e){return oG(Jq(e))},aG=$q({}.hasOwnProperty),uG=Object.hasOwn||function(e,t){return aG(iG(e),t)},sG=0,lG=Math.random(),cG=$q(1..toString),fG=function(e){return"Symbol("+(void 0===e?"":e)+")_"+cG(++sG+lG,36)},dG=function(e){return"function"==typeof e},pG=function(e){return dG(e)?e:void 0},hG=function(e,t){return arguments.length<2?pG(Lq[e]):Lq[e]&&Lq[e][t]},gG=hG("navigator","userAgent")||"",vG=Lq.process,yG=Lq.Deno,mG=vG&&vG.versions||yG&&yG.version,bG=mG&&mG.v8;bG&&(Iq=(Nq=bG.split("."))[0]>0&&Nq[0]<4?1:+(Nq[0]+Nq[1])),!Iq&&gG&&(!(Nq=gG.match(/Edge\/(\d+)/))||Nq[1]>=74)&&(Nq=gG.match(/Chrome\/(\d+)/))&&(Iq=+Nq[1]);var wG,EG=Iq,xG=!!Object.getOwnPropertySymbols&&!Vq((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&EG&&EG<41})),SG=xG&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,CG=rG("wks"),DG=Lq.Symbol,OG=DG&&DG.for,AG=SG?DG:DG&&DG.withoutSetter||fG,kG=function(e){if(!uG(CG,e)||!xG&&"string"!=typeof CG[e]){var t="Symbol."+e;xG&&uG(DG,e)?CG[e]=DG[e]:CG[e]=SG&&OG?OG(t):AG(t)}return CG[e]},BG=function(e){return"object"==typeof e?null!==e:dG(e)},_G=Lq.String,FG=Lq.TypeError,TG=function(e){if(BG(e))return e;throw FG(_G(e)+" is not an object")},PG=!Vq((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),jG=Lq.document,NG=BG(jG)&&BG(jG.createElement),IG=function(e){return NG?jG.createElement(e):{}},RG=!PG&&!Vq((function(){return 7!=Object.defineProperty(IG("div"),"a",{get:function(){return 7}}).a})),LG=Function.prototype.call,MG=LG.bind?LG.bind(LG):function(){return LG.apply(LG,arguments)},zG=$q({}.isPrototypeOf),UG=Lq.Object,HG=SG?function(e){return"symbol"==typeof e}:function(e){var t=hG("Symbol");return dG(t)&&zG(t.prototype,UG(e))},$G=Lq.String,VG=function(e){try{return $G(e)}catch(e){return"Object"}},WG=Lq.TypeError,qG=function(e){if(dG(e))return e;throw WG(VG(e)+" is not a function")},GG=function(e,t){var n=e[t];return null==n?void 0:qG(n)},KG=Lq.TypeError,YG=Lq.TypeError,XG=kG("toPrimitive"),ZG=function(e){var t=function(e,t){if(!BG(e)||HG(e))return e;var n,r=GG(e,XG);if(r){if(void 0===t&&(t="default"),n=MG(r,e,t),!BG(n)||HG(n))return n;throw YG("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&dG(n=e.toString)&&!BG(r=MG(n,e)))return r;if(dG(n=e.valueOf)&&!BG(r=MG(n,e)))return r;if("string"!==t&&dG(n=e.toString)&&!BG(r=MG(n,e)))return r;throw KG("Can't convert object to primitive value")}(e,t)}(e,"string");return HG(t)?t:t+""},JG=Lq.TypeError,QG=Object.defineProperty,eK={f:PG?QG:function(e,t,n){if(TG(e),t=ZG(t),TG(n),RG)try{return QG(e,t,n)}catch(e){}if("get"in n||"set"in n)throw JG("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},tK=Math.ceil,nK=Math.floor,rK=function(e){var t=+e;return t!=t||0===t?0:(t>0?nK:tK)(t)},oK=Math.max,iK=Math.min,aK=function(e,t){var n=rK(e);return n<0?oK(n+t,0):iK(n,t)},uK=Math.min,sK=function(e){return e>0?uK(rK(e),9007199254740991):0},lK=function(e){return sK(e.length)},cK=function(e){return function(t,n,r){var o,i=Qq(t),a=lK(i),u=aK(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}},fK={includes:cK(!0),indexOf:cK(!1)},dK={},pK=fK.indexOf,hK=$q([].push),gK=function(e,t){var n,r=Qq(e),o=0,i=[];for(n in r)!uG(dK,n)&&uG(r,n)&&hK(i,n);for(;t.length>o;)uG(r,n=t[o++])&&(~pK(i,n)||hK(i,n));return i},vK=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yK=Object.keys||function(e){return gK(e,vK)},mK=PG?Object.defineProperties:function(e,t){TG(e);for(var n,r=Qq(t),o=yK(t),i=o.length,a=0;i>a;)eK.f(e,n=o[a++],r[n]);return e},bK=hG("document","documentElement"),wK=rG("keys"),EK=function(e){return wK[e]||(wK[e]=fG(e))},xK=EK("IE_PROTO"),SK=function(){},CK=function(e){return"<script>"+e+"<\/script>"},DK=function(e){e.write(CK("")),e.close();var t=e.parentWindow.Object;return e=null,t},OK=function(){try{wG=new ActiveXObject("htmlfile")}catch(e){}var e,t;OK="undefined"!=typeof document?document.domain&&wG?DK(wG):((t=IG("iframe")).style.display="none",bK.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(CK("document.F=Object")),e.close(),e.F):DK(wG);for(var n=vK.length;n--;)delete OK.prototype[vK[n]];return OK()};dK[xK]=!0;var AK=Object.create||function(e,t){var n;return null!==e?(SK.prototype=TG(e),n=new SK,SK.prototype=null,n[xK]=e):n=OK(),void 0===t?n:mK(n,t)},kK=kG("unscopables"),BK=Array.prototype;null==BK[kK]&&eK.f(BK,kK,{configurable:!0,value:AK(null)});var _K=function(e){BK[kK][e]=!0},FK={},TK=$q(Function.toString);dG(nG.inspectSource)||(nG.inspectSource=function(e){return TK(e)});var PK,jK,NK,IK=nG.inspectSource,RK=Lq.WeakMap,LK=dG(RK)&&/native code/.test(IK(RK)),MK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},zK=PG?function(e,t,n){return eK.f(e,t,MK(1,n))}:function(e,t,n){return e[t]=n,e},UK=Lq.TypeError,HK=Lq.WeakMap;if(LK||nG.state){var $K=nG.state||(nG.state=new HK),VK=$q($K.get),WK=$q($K.has),qK=$q($K.set);PK=function(e,t){if(WK($K,e))throw new UK("Object already initialized");return t.facade=e,qK($K,e,t),t},jK=function(e){return VK($K,e)||{}},NK=function(e){return WK($K,e)}}else{var GK=EK("state");dK[GK]=!0,PK=function(e,t){if(uG(e,GK))throw new UK("Object already initialized");return t.facade=e,zK(e,GK,t),t},jK=function(e){return uG(e,GK)?e[GK]:{}},NK=function(e){return uG(e,GK)}}var KK,YK,XK,ZK={set:PK,get:jK,has:NK,enforce:function(e){return NK(e)?jK(e):PK(e,{})},getterFor:function(e){return function(t){var n;if(!BG(t)||(n=jK(t)).type!==e)throw UK("Incompatible receiver, "+e+" required");return n}}},JK={}.propertyIsEnumerable,QK=Object.getOwnPropertyDescriptor,eY={f:QK&&!JK.call({1:2},1)?function(e){var t=QK(this,e);return!!t&&t.enumerable}:JK},tY=Object.getOwnPropertyDescriptor,nY={f:PG?tY:function(e,t){if(e=Qq(e),t=ZG(t),RG)try{return tY(e,t)}catch(e){}if(uG(e,t))return MK(!MG(eY.f,e,t),e[t])}},rY=Function.prototype,oY=PG&&Object.getOwnPropertyDescriptor,iY=uG(rY,"name"),aY={EXISTS:iY,PROPER:iY&&"something"===function(){}.name,CONFIGURABLE:iY&&(!PG||PG&&oY(rY,"name").configurable)},uY=jq((function(e){var t=aY.CONFIGURABLE,n=ZK.get,r=ZK.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;dG(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!uG(i,"name")||t&&i.name!==f)&&zK(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Lq?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:zK(e,n,i)):l?e[n]=i:tG(n,i)})(Function.prototype,"toString",(function(){return dG(this)&&n(this).source||IK(this)}))})),sY=vK.concat("length","prototype"),lY={f:Object.getOwnPropertyNames||function(e){return gK(e,sY)}},cY={f:Object.getOwnPropertySymbols},fY=$q([].concat),dY=hG("Reflect","ownKeys")||function(e){var t=lY.f(TG(e)),n=cY.f;return n?fY(t,n(e)):t},pY=function(e,t){for(var n=dY(t),r=eK.f,o=nY.f,i=0;i<n.length;i++){var a=n[i];uG(e,a)||r(e,a,o(t,a))}},hY=/#|\.prototype\./,gY=function(e,t){var n=yY[vY(e)];return n==bY||n!=mY&&(dG(t)?Vq(t):!!t)},vY=gY.normalize=function(e){return String(e).replace(hY,".").toLowerCase()},yY=gY.data={},mY=gY.NATIVE="N",bY=gY.POLYFILL="P",wY=gY,EY=nY.f,xY=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Lq:l?Lq[u]||tG(u,{}):(Lq[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=EY(n,r))&&a.value:n[r],!wY(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;pY(i,o)}(e.sham||o&&o.sham)&&zK(i,"sham",!0),uY(n,r,i,e)}},SY=!Vq((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),CY=EK("IE_PROTO"),DY=Lq.Object,OY=DY.prototype,AY=SY?DY.getPrototypeOf:function(e){var t=iG(e);if(uG(t,CY))return t[CY];var n=t.constructor;return dG(n)&&t instanceof n?n.prototype:t instanceof DY?OY:null},kY=kG("iterator"),BY=!1;[].keys&&("next"in(XK=[].keys())?(YK=AY(AY(XK)))!==Object.prototype&&(KK=YK):BY=!0),(null==KK||Vq((function(){var e={};return KK[kY].call(e)!==e})))&&(KK={}),dG(KK[kY])||uY(KK,kY,(function(){return this}));var _Y={IteratorPrototype:KK,BUGGY_SAFARI_ITERATORS:BY},FY=eK.f,TY=kG("toStringTag"),PY=function(e,t,n){e&&!uG(e=n?e:e.prototype,TY)&&FY(e,TY,{configurable:!0,value:t})},jY=_Y.IteratorPrototype,NY=function(){return this},IY=Lq.String,RY=Lq.TypeError,LY=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=$q(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return TG(n),function(e){if("object"==typeof e||dG(e))return e;throw RY("Can't set "+IY(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),MY=aY.PROPER,zY=aY.CONFIGURABLE,UY=_Y.IteratorPrototype,HY=_Y.BUGGY_SAFARI_ITERATORS,$Y=kG("iterator"),VY=function(){return this},WY=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=AK(jY,{next:MK(1,n)}),PY(e,o,!1),FK[o]=NY}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!HY&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[$Y]||p["@@iterator"]||o&&p[o],g=!HY&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=AY(v.call(new e)))!==Object.prototype&&u.next&&(AY(u)!==UY&&(LY?LY(u,UY):dG(u[$Y])||uY(u,$Y,VY)),PY(u,f,!0)),MY&&"values"==o&&h&&"values"!==h.name&&(zY?zK(p,"name","values"):(d=!0,g=function(){return MG(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(HY||d||!(l in p))&&uY(p,l,s[l]);else xY({target:t,proto:!0,forced:HY||d},s);return p[$Y]!==g&&uY(p,$Y,g,{name:o}),FK[t]=g,s},qY=ZK.set,GY=ZK.getterFor("Array Iterator"),KY=WY(Array,"Array",(function(e,t){qY(this,{type:"Array Iterator",target:Qq(e),index:0,kind:t})}),(function(){var e=GY(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");FK.Arguments=FK.Array,_K("keys"),_K("values"),_K("entries");var YY={};YY[kG("toStringTag")]="z";var XY="[object z]"===String(YY),ZY=kG("toStringTag"),JY=Lq.Object,QY="Arguments"==Gq(function(){return arguments}()),eX=XY?Gq: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=JY(e),ZY))?n:QY?Gq(t):"Object"==(r=Gq(t))&&dG(t.callee)?"Arguments":r},tX=XY?{}.toString:function(){return"[object "+eX(this)+"]"};XY||uY(Object.prototype,"toString",tX,{unsafe:!0});var nX=Lq.String,rX=function(e){if("Symbol"===eX(e))throw TypeError("Cannot convert a Symbol value to a string");return nX(e)},oX=$q("".charAt),iX=$q("".charCodeAt),aX=$q("".slice),uX=function(e){return function(t,n){var r,o,i=rX(Jq(t)),a=rK(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=iX(i,a))<55296||r>56319||a+1===u||(o=iX(i,a+1))<56320||o>57343?e?oX(i,a):r:e?aX(i,a,a+2):o-56320+(r-55296<<10)+65536}},sX={codeAt:uX(!1),charAt:uX(!0)},lX=sX.charAt,cX=ZK.set,fX=ZK.getterFor("String Iterator");WY(String,"String",(function(e){cX(this,{type:"String Iterator",string:rX(e),index:0})}),(function(){var e,t=fX(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=lX(n,r),t.index+=e.length,{value:e,done:!1})}));var dX=function(e,t,n){for(var r in t)uY(e,r,t[r],n);return e},pX=Lq.Array,hX=Math.max,gX=lY.f,vX="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yX={f:function(e){return vX&&"Window"==Gq(e)?function(e){try{return gX(e)}catch(e){return function(e,t,n){for(var r,o,i,a,u=lK(e),s=aK(void 0,u),l=aK(u,u),c=pX(hX(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=ZG(o))in r?eK.f(r,a,MK(0,i)):r[a]=i;return c.length=f,c}(vX)}}(e):gX(Qq(e))}},mX=Vq((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),bX=Object.isExtensible,wX=Vq((function(){bX(1)}))||mX?function(e){return!!BG(e)&&(!mX||"ArrayBuffer"!=Gq(e))&&(!bX||bX(e))}:bX,EX=!Vq((function(){return Object.isExtensible(Object.preventExtensions({}))})),xX=jq((function(e){var t=eK.f,n=!1,r=fG("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=lY.f,t=$q([].splice),o={};o[r]=1,e(o).length&&(lY.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},xY({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:yX.f}))},fastKey:function(e,t){if(!BG(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!uG(e,r)){if(!wX(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!uG(e,r)){if(!wX(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return EX&&n&&wX(e)&&!uG(e,r)&&i(e),e}};dK[r]=!0})),SX=$q($q.bind),CX=function(e,t){return qG(e),void 0===t?e:SX?SX(e,t):function(){return e.apply(t,arguments)}},DX=kG("iterator"),OX=Array.prototype,AX=kG("iterator"),kX=function(e){if(null!=e)return GG(e,AX)||GG(e,"@@iterator")||FK[eX(e)]},BX=Lq.TypeError,_X=function(e,t,n){var r,o;TG(e);try{if(!(r=GG(e,"return"))){if("throw"===t)throw n;return n}r=MG(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return TG(r),n},FX=Lq.TypeError,TX=function(e,t){this.stopped=e,this.result=t},PX=TX.prototype,jX=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=CX(t,f),v=function(e){return r&&_X(r,"normal",e),new TX(!0,e)},y=function(e){return d?(TG(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=kX(e)))throw FX(VG(e)+" is not iterable");if(void 0!==(c=o)&&(FK.Array===c||OX[DX]===c)){for(i=0,a=lK(e);a>i;i++)if((u=y(e[i]))&&zG(PX,u))return u;return new TX(!1)}r=function(e,t){var n=arguments.length<2?kX(e):t;if(qG(n))return TG(MG(n,e));throw BX(VG(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=MG(s,r)).done;){try{u=y(l.value)}catch(e){_X(r,"throw",e)}if("object"==typeof u&&u&&zG(PX,u))return u}return new TX(!1)},NX=Lq.TypeError,IX=function(e,t){if(zG(t,e))return e;throw NX("Incorrect invocation")},RX=kG("iterator"),LX=!1;try{var MX=0,zX={next:function(){return{done:!!MX++}},return:function(){LX=!0}};zX[RX]=function(){return this},Array.from(zX,(function(){throw 2}))}catch(Ol){}var UX=Array.isArray||function(e){return"Array"==Gq(e)},HX=function(){},$X=[],VX=hG("Reflect","construct"),WX=/^\s*(?:class|function)\b/,qX=$q(WX.exec),GX=!WX.exec(HX),KX=function(e){if(!dG(e))return!1;try{return VX(HX,$X,e),!0}catch(e){return!1}},YX=!VX||Vq((function(){var e;return KX(KX.call)||!KX(Object)||!KX((function(){e=!0}))||e}))?function(e){if(!dG(e))return!1;switch(eX(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return GX||!!qX(WX,IK(e))}:KX,XX=kG("species"),ZX=Lq.Array,JX=function(e,t){return new(function(e){var t;return UX(e)&&(t=e.constructor,(YX(t)&&(t===ZX||UX(t.prototype))||BG(t)&&null===(t=t[XX]))&&(t=void 0)),void 0===t?ZX:t}(e))(0===t?0:t)},QX=$q([].push),eZ=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=iG(s),g=Xq(h),v=CX(l,c),y=lK(g),m=0,b=f||JX,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:QX(w,d)}else switch(e){case 4:return!1;case 7:QX(w,d)}return i?-1:r||o?o:w}},tZ={forEach:eZ(0),map:eZ(1),filter:eZ(2),some:eZ(3),every:eZ(4),find:eZ(5),findIndex:eZ(6),filterReject:eZ(7)},nZ=xX.getWeakData,rZ=ZK.set,oZ=ZK.getterFor,iZ=tZ.find,aZ=tZ.findIndex,uZ=$q([].splice),sZ=0,lZ=function(e){return e.frozen||(e.frozen=new cZ)},cZ=function(){this.entries=[]},fZ=function(e,t){return iZ(e.entries,(function(e){return e[0]===t}))};cZ.prototype={get:function(e){var t=fZ(this,e);if(t)return t[1]},has:function(e){return!!fZ(this,e)},set:function(e,t){var n=fZ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=aZ(this.entries,(function(t){return t[0]===e}));return~t&&uZ(this.entries,t,1),!!~t}};var dZ,pZ={getConstructor:function(e,t,n,r){var o=e((function(e,o){IX(e,i),rZ(e,{type:t,id:sZ++,frozen:void 0}),null!=o&&jX(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=oZ(t),u=function(e,t,n){var r=a(e),o=nZ(TG(t),!0);return!0===o?lZ(r).set(t,n):o[r.id]=n,e};return dX(i,{delete:function(e){var t=a(this);if(!BG(e))return!1;var n=nZ(e);return!0===n?lZ(t).delete(e):n&&uG(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!BG(e))return!1;var n=nZ(e);return!0===n?lZ(t).has(e):n&&uG(n,t.id)}}),dX(i,n?{get:function(e){var t=a(this);if(BG(e)){var n=nZ(e);return!0===n?lZ(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}},hZ=ZK.enforce,gZ=!Lq.ActiveXObject&&"ActiveXObject"in Lq,vZ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},yZ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Lq[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=$q(u[e]);uY(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!BG(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!BG(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!BG(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(wY(e,!dG(a)||!(o||u.forEach&&!Vq((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),xX.enable();else if(wY(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Vq((function(){f.has(1)})),h=function(e,t){if(!LX)return!1;var n=!1;try{var r={};r[RX]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),g=!o&&Vq((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){IX(e,u);var n=function(e,t,n){var r,o;return LY&&dG(r=t.constructor)&&r!==n&&BG(o=r.prototype)&&o!==n.prototype&&LY(e,o),e}(new a,e,s);return null!=t&&jX(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,xY({global:!0,forced:s!=a},l),PY(s,e),o||n.setStrong(s,e,r),s}("WeakMap",vZ,pZ);if(LK&&gZ){dZ=pZ.getConstructor(vZ,"WeakMap",!0),xX.enable();var mZ=yZ.prototype,bZ=$q(mZ.delete),wZ=$q(mZ.has),EZ=$q(mZ.get),xZ=$q(mZ.set);dX(mZ,{delete:function(e){if(BG(e)&&!wX(e)){var t=hZ(this);return t.frozen||(t.frozen=new dZ),bZ(this,e)||t.frozen.delete(e)}return bZ(this,e)},has:function(e){if(BG(e)&&!wX(e)){var t=hZ(this);return t.frozen||(t.frozen=new dZ),wZ(this,e)||t.frozen.has(e)}return wZ(this,e)},get:function(e){if(BG(e)&&!wX(e)){var t=hZ(this);return t.frozen||(t.frozen=new dZ),wZ(this,e)?EZ(this,e):t.frozen.get(e)}return EZ(this,e)},set:function(e,t){if(BG(e)&&!wX(e)){var n=hZ(this);n.frozen||(n.frozen=new dZ),wZ(this,e)?xZ(this,e,t):n.frozen.set(e,t)}else xZ(this,e,t);return this}})}var SZ={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},CZ=IG("span").classList,DZ=CZ&&CZ.constructor&&CZ.constructor.prototype,OZ=DZ===Object.prototype?void 0:DZ,AZ=kG("iterator"),kZ=kG("toStringTag"),BZ=KY.values,_Z=function(e,t){if(e){if(e[AZ]!==BZ)try{zK(e,AZ,BZ)}catch(t){e[AZ]=BZ}if(e[kZ]||zK(e,kZ,t),SZ[t])for(var n in KY)if(e[n]!==KY[n])try{zK(e,n,KY[n])}catch(t){e[n]=KY[n]}}};for(var FZ in SZ)_Z(Lq[FZ]&&Lq[FZ].prototype,FZ);_Z(OZ,"DOMTokenList");var TZ=new WeakMap,PZ={type:"list-item",renderElem:function(e,t,n){TZ.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(void 0!==a&&a){var l=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,l=t,c=tA.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=Ef.previous(c),d=df.node(e,f);if(null==d)break;var p=d[0],h=p.level,g=void 0===h?0:h,v=p.type,y=p.ordered;if(v!==r)break;if(g<i)break;if(g===i){if(y!==u)break;s++}l=p,c=f}return s}(n,e);s=l+"."}else s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);return Jh("div",{style:u},Jh("span",{contentEditable:!1,style:{marginRight:"0.5em",color:function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];If.isText(i)&&(t=i)}return null==t?"":t.color||""}(e)},"data-w-e-reserve":!0},s),Jh("span",null,t))}},jZ=function(e,t){return(jZ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function NZ(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}jZ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function IZ(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 RZ(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 LZ(e){return df.nodes(e,{at:e.selection||void 0,match:function(t){return 1===tA.findPath(e,t).length}})}var MZ=fK.includes;xY({target:"Array",proto:!0},{includes:function(e){return MZ(this,e,arguments.length>1?arguments[1]:void 0)}}),_K("includes");var zZ,UZ,HZ=function(){var e=TG(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},$Z=Lq.RegExp,VZ=Vq((function(){var e=$Z("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),WZ=VZ||Vq((function(){return!$Z("a","y").sticky})),qZ={BROKEN_CARET:VZ||Vq((function(){var e=$Z("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:WZ,UNSUPPORTED_Y:VZ},GZ=Lq.RegExp,KZ=Vq((function(){var e=GZ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),YZ=Lq.RegExp,XZ=Vq((function(){var e=YZ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),ZZ=ZK.get,JZ=rG("native-string-replace",String.prototype.replace),QZ=RegExp.prototype.exec,eJ=QZ,tJ=$q("".charAt),nJ=$q("".indexOf),rJ=$q("".replace),oJ=$q("".slice),iJ=(UZ=/b*/g,MG(QZ,zZ=/a/,"a"),MG(QZ,UZ,"a"),0!==zZ.lastIndex||0!==UZ.lastIndex),aJ=qZ.BROKEN_CARET,uJ=void 0!==/()??/.exec("")[1];(iJ||uJ||aJ||KZ||XZ)&&(eJ=function(e){var t,n,r,o,i,a,u,s=this,l=ZZ(s),c=rX(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=MG(eJ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=aJ&&s.sticky,h=MG(HZ,s),g=s.source,v=0,y=c;if(p&&(h=rJ(h,"y",""),-1===nJ(h,"g")&&(h+="g"),y=oJ(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==tJ(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),uJ&&(n=new RegExp("^"+g+"$(?!\\s)",h)),iJ&&(r=s.lastIndex),o=MG(QZ,p?n:s,y),p?o?(o.input=oJ(o.input,v),o[0]=oJ(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:iJ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),uJ&&o&&o.length>1&&MG(JZ,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=AK(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var sJ=eJ;xY({target:"RegExp",proto:!0,forced:/./.exec!==sJ},{exec:sJ});var lJ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return tA.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!tA.getSelectedElems(e).some((function(t){if(df.isVoid(e,t)&&df.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?Qf.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):Qf.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),cJ='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',fJ='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',dJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=jT("listModule.unOrderedList"),t.iconSvg=cJ,t}return NZ(t,e),t}(lJ),pJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=jT("listModule.orderedList"),t.iconSvg=fJ,t}return NZ(t,e),t}(lJ),hJ={key:"bulletedList",factory:function(){return new dJ}},gJ={key:"numberedList",factory:function(){return new pJ}},vJ=[],yJ={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=TZ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=tA.findPath(t,e);if(0===s[0])return u+1;var l=Ef.previous(s),c=df.node(t,l);if(!c)return 0;var f=RZ(c,1)[0];if(tA.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",vJ.push(i);var s=function(e){var t=TZ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=tA.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=Ef.next(s),c=df.node(t,l);if(!c)return 0;var f=RZ(c,1)[0];if(tA.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+vJ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},mJ=kG("species"),bJ=tZ.filter,wJ=EG>=51||!Vq((function(){var e=[];return(e.constructor={})[mJ]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));xY({target:"Array",proto:!0,forced:!wJ},{filter:function(e){return bJ(this,e,arguments.length>1?arguments[1]:void 0)}});var EJ=Function.prototype,xJ=EJ.apply,SJ=EJ.bind,CJ=EJ.call,DJ="object"==typeof Reflect&&Reflect.apply||(SJ?CJ.bind(xJ):function(){return CJ.apply(xJ,arguments)}),OJ=(kG("species"),RegExp.prototype),AJ=sX.charAt,kJ=function(e,t,n){return t+(n?AJ(e,t).length:1)},BJ=Math.floor,_J=$q("".charAt),FJ=$q("".replace),TJ=$q("".slice),PJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,jJ=/\$([$&'`]|\d{1,2})/g,NJ=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=jJ;return void 0!==o&&(o=iG(o),s=PJ),FJ(i,s,(function(i,s){var l;switch(_J(s,0)){case"$":return"$";case"&":return e;case"`":return TJ(t,0,n);case"'":return TJ(t,a);case"<":l=o[TJ(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=BJ(c/10);return 0===f?i:f<=u?void 0===r[f-1]?_J(s,1):r[f-1]+_J(s,1):i}l=r[c-1]}return void 0===l?"":l}))},IJ=Lq.TypeError,RJ=function(e,t){var n=e.exec;if(dG(n)){var r=MG(n,e,t);return null!==r&&TG(r),r}if("RegExp"===Gq(e))return MG(sJ,e,t);throw IJ("RegExp#exec called on incompatible receiver")},LJ=kG("replace"),MJ=Math.max,zJ=Math.min,UJ=$q([].concat),HJ=$q([].push),$J=$q("".indexOf),VJ=$q("".slice),WJ="$0"==="a".replace(/./,"$0"),qJ=!!/./[LJ]&&""===/./[LJ]("a","$0");!function(e,t,n,r){var o=kG(e),i=!Vq((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Vq((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=$q(/./[o]),s=function(e,t,n){var r=qJ?"$":"$0";return[function(e,n){var r=Jq(this),o=null==e?void 0:GG(e,LJ);return o?MG(o,e,r,n):MG(t,rX(r),e,n)},function(e,o){var i=TG(this),a=rX(e);if("string"==typeof o&&-1===$J(o,r)&&-1===$J(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=dG(o);s||(o=rX(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=RJ(i,a);if(null===d)break;if(HJ(f,d),!l)break;""===rX(d[0])&&(i.lastIndex=kJ(a,sK(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=rX((d=f[v])[0]),m=MJ(zJ(rK(d.index),a.length),0),b=[],w=1;w<d.length;w++)HJ(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=UJ([y],b,m,a);void 0!==E&&HJ(x,E);var S=rX(DJ(o,void 0,x))}else S=NJ(y,a,m,b,E,o);m>=g&&(h+=VJ(a,g,m)+S,g=m+y.length)}return h+VJ(a,g)}]}(0,""[e],(function(e,t,n,r,o){var a=$q(e),s=t.exec;return s===sJ||s===OJ.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));uY(String.prototype,e,s[0]),uY(OJ,o,s[1])}}("replace",0,!!Vq((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!WJ||qJ);var GJ=Lq.TypeError,KJ=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&CX(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&UX(s))l=lK(s),c=KJ(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw GJ("Exceed the acceptable array length");e[c]=s}c++}f++}return c},YJ=KJ;function XJ(e){return e.length?e[0].tagName.toLowerCase():""}xY({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=iG(this),n=lK(t),r=JX(t,0);return r.length=YJ(r,t,t,n,0,void 0===e?1:rK(e)),r}}),_K("flat"),xY({global:!0},{globalThis:Lq}),Np&&(hp.fn.append=Np),mp&&(hp.fn.attr=mp),Rp&&(hp.fn.parent=Rp);var ZJ={renderElems:[PZ],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if(Bf.isExpanded(n))t(e);else{var r=tA.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?Qf.setNodes(o,{level:a-1}):Qf.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(Bf.isCollapsed(a)){var u=tA.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void Qf.setNodes(o,{level:l+1})}}if(Bf.isExpanded(a)){var c=0,f=!1;try{for(var d=IZ(LZ(o)),p=d.next();!p.done;p=d.next()){var h=RZ(p.value,1)[0];"list-item"===tA.getNodeType(h)?c++:f=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var g=IZ(LZ(o)),v=g.next();!v.done;v=g.next()){var y=RZ(v.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,Qf.setNodes(o,{level:l+1},{at:m})}}catch(e){r={error:e}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=RZ(e,2),n=t[0],i=t[1],a=tA.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||Qf.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[hJ,gJ],elemsToHtml:[yJ],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hp(e);return 0===(t=t.filter((function(e){return!!If.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"list-item",ordered:function(e){return"ol"===XJ(e.parent())}(r),level:function(e){for(var t=0,n=e.parent(),r=XJ(n);"ul"===r||"ol"===r;)r=XJ(n=n.parent()),t++;return t-1}(r),children:t}}}]},JJ=o((function(e,t){var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",l="[object Error]",c="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",g="[object RegExp]",v="[object Set]",y="[object String]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[i]=S[a]=S[b]=S[u]=S[w]=S[s]=S[l]=S[c]=S[f]=S[d]=S[p]=S[g]=S[v]=S[y]=S[m]=!1;var C="object"==typeof r&&r&&r.Object===Object&&r,D="object"==typeof self&&self&&self.Object===Object&&self,O=C||D||Function("return this")(),A=t&&!t.nodeType&&t,k=A&&e&&!e.nodeType&&e,B=k&&k.exports===A,_=B&&C.process,F=function(){try{return _&&_.binding&&_.binding("util")}catch(e){}}(),T=F&&F.isTypedArray;function P(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function j(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var I=Array.prototype,R=Function.prototype,L=Object.prototype,M=O["__core-js_shared__"],z=R.toString,U=L.hasOwnProperty,H=function(){var e=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),$=L.toString,V=RegExp("^"+z.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=B?O.Buffer:void 0,q=O.Symbol,G=O.Uint8Array,K=L.propertyIsEnumerable,Y=I.splice,X=q?q.toStringTag:void 0,Z=Object.getOwnPropertySymbols,J=W?W.isBuffer:void 0,Q=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ee=De(O,"DataView"),te=De(O,"Map"),ne=De(O,"Promise"),re=De(O,"Set"),oe=De(O,"WeakMap"),ie=De(Object,"create"),ae=Be(ee),ue=Be(te),se=Be(ne),le=Be(re),ce=Be(oe),fe=q?q.prototype:void 0,de=fe?fe.valueOf:void 0;function pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ge;++t<n;)this.add(e[t])}function ye(e){var t=this.__data__=new he(e);this.size=t.size}function me(e,t){for(var n=e.length;n--;)if(_e(e[n][0],t))return n;return-1}function be(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=U.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(e){}var o=$.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):function(e){return $.call(e)}(e)}function we(e){return Re(e)&&be(e)==i}function Ee(e,t,n,r,o){return e===t||(null==e||null==t||!Re(e)&&!Re(t)?e!=e&&t!=t:function(e,t,n,r,o,c){var h=Te(e),m=Te(t),E=h?a:Ae(e),x=m?a:Ae(t),S=(E=E==i?p:E)==p,C=(x=x==i?p:x)==p,D=E==x;if(D&&Pe(e)){if(!Pe(t))return!1;h=!0,S=!1}if(D&&!S)return c||(c=new ye),h||Le(e)?xe(e,t,n,r,o,c):function(e,t,n,r,o,i,a){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!i(new G(e),new G(t)));case u:case s:case d:return _e(+e,+t);case l:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case f:var c=j;case v:var p=1&r;if(c||(c=N),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var m=xe(c(e),c(t),r,o,i,a);return a.delete(e),m;case"[object Symbol]":if(de)return de.call(e)==de.call(t)}return!1}(e,t,E,n,r,o,c);if(!(1&n)){var O=S&&U.call(e,"__wrapped__"),A=C&&U.call(t,"__wrapped__");if(O||A){var k=O?e.value():e,B=A?t.value():t;return c||(c=new ye),o(k,B,n,r,c)}}return!!D&&(c||(c=new ye),function(e,t,n,r,o,i){var a=1&n,u=Se(e),s=u.length;if(s!=Se(t).length&&!a)return!1;for(var l=s;l--;){var c=u[l];if(!(a?c in t:U.call(t,c)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++l<s;){var h=e[c=u[l]],g=t[c];if(r)var v=a?r(g,h,c,t,e,i):r(h,g,c,e,t,i);if(!(void 0===v?h===g||o(h,g,n,r,i):v)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){var y=e.constructor,m=t.constructor;y==m||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,o,c))}(e,t,n,r,Ee,o))}function xe(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new ve:void 0;for(i.set(e,t),i.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var g=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!P(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function Se(e){return function(e,t,n){var r=t(e);return Te(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Me,Oe)}function Ce(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function De(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ie(e)||function(e){return!!H&&H in e}(e))&&(je(e)?V:E).test(Be(e))}(n)?n:void 0}pe.prototype.clear=function(){this.__data__=ie?ie(null):{},this.size=0},pe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pe.prototype.get=function(e){var t=this.__data__;if(ie){var r=t[e];return r===n?void 0:r}return U.call(t,e)?t[e]:void 0},pe.prototype.has=function(e){var t=this.__data__;return ie?void 0!==t[e]:U.call(t,e)},pe.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ie&&void 0===t?n:t,this},he.prototype.clear=function(){this.__data__=[],this.size=0},he.prototype.delete=function(e){var t=this.__data__,n=me(t,e);return!(n<0||(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,0))},he.prototype.get=function(e){var t=this.__data__,n=me(t,e);return n<0?void 0:t[n][1]},he.prototype.has=function(e){return me(this.__data__,e)>-1},he.prototype.set=function(e,t){var n=this.__data__,r=me(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new pe,map:new(te||he),string:new pe}},ge.prototype.delete=function(e){var t=Ce(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return Ce(this,e).get(e)},ge.prototype.has=function(e){return Ce(this,e).has(e)},ge.prototype.set=function(e,t){var n=Ce(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ve.prototype.add=ve.prototype.push=function(e){return this.__data__.set(e,n),this},ve.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.clear=function(){this.__data__=new he,this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ye.prototype.get=function(e){return this.__data__.get(e)},ye.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.set=function(e,t){var n=this.__data__;if(n instanceof he){var r=n.__data__;if(!te||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ge(r)}return n.set(e,t),this.size=n.size,this};var Oe=Z?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(Z(e),(function(t){return K.call(e,t)})))}:function(){return[]},Ae=be;function ke(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||x.test(e))&&e>-1&&e%1==0&&e<t}function Be(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function _e(e,t){return e===t||e!=e&&t!=t}(ee&&Ae(new ee(new ArrayBuffer(1)))!=w||te&&Ae(new te)!=f||ne&&Ae(ne.resolve())!=h||re&&Ae(new re)!=v||oe&&Ae(new oe)!=m)&&(Ae=function(e){var t=be(e),n=t==p?e.constructor:void 0,r=n?Be(n):"";if(r)switch(r){case ae:return w;case ue:return f;case se:return h;case le:return v;case ce:return m}return t});var Fe=we(function(){return arguments}())?we:function(e){return Re(e)&&U.call(e,"callee")&&!K.call(e,"callee")},Te=Array.isArray,Pe=J||function(){return!1};function je(e){if(!Ie(e))return!1;var t=be(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ne(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Re(e){return null!=e&&"object"==typeof e}var Le=T?function(e){return function(t){return e(t)}}(T):function(e){return Re(e)&&Ne(e.length)&&!!S[be(e)]};function Me(e){return null!=(t=e)&&Ne(t.length)&&!je(t)?function(e,t){var n=Te(e),r=!n&&Fe(e),o=!n&&!r&&Pe(e),i=!n&&!r&&!o&&Le(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var l in e)!U.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ke(l,s))||u.push(l);return u}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||L))return Q(e);var t,n,r=[];for(var o in Object(e))U.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return Ee(e,t)}}));PT("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),PT("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var QJ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function eQ(e){var t={exports:{}};return e(t,t.exports),t.exports}var tQ,nQ,rQ=function(e){return e&&e.Math==Math&&e},oQ=rQ("object"==typeof globalThis&&globalThis)||rQ("object"==typeof window&&window)||rQ("object"==typeof self&&self)||rQ("object"==typeof QJ&&QJ)||function(){return this}()||Function("return this")(),iQ=function(e){try{return!!e()}catch(e){return!0}},aQ=!iQ((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),uQ=Function.prototype.call,sQ=uQ.bind?uQ.bind(uQ):function(){return uQ.apply(uQ,arguments)},lQ={}.propertyIsEnumerable,cQ=Object.getOwnPropertyDescriptor,fQ={f:cQ&&!lQ.call({1:2},1)?function(e){var t=cQ(this,e);return!!t&&t.enumerable}:lQ},dQ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},pQ=Function.prototype,hQ=pQ.bind,gQ=pQ.call,vQ=hQ&&hQ.bind(gQ),yQ=hQ?function(e){return e&&vQ(gQ,e)}:function(e){return e&&function(){return gQ.apply(e,arguments)}},mQ=yQ({}.toString),bQ=yQ("".slice),wQ=function(e){return bQ(mQ(e),8,-1)},EQ=oQ.Object,xQ=yQ("".split),SQ=iQ((function(){return!EQ("z").propertyIsEnumerable(0)}))?function(e){return"String"==wQ(e)?xQ(e,""):EQ(e)}:EQ,CQ=oQ.TypeError,DQ=function(e){if(null==e)throw CQ("Can't call method on "+e);return e},OQ=function(e){return SQ(DQ(e))},AQ=function(e){return"function"==typeof e},kQ=function(e){return"object"==typeof e?null!==e:AQ(e)},BQ=function(e){return AQ(e)?e:void 0},_Q=function(e,t){return arguments.length<2?BQ(oQ[e]):oQ[e]&&oQ[e][t]},FQ=yQ({}.isPrototypeOf),TQ=_Q("navigator","userAgent")||"",PQ=oQ.process,jQ=oQ.Deno,NQ=PQ&&PQ.versions||jQ&&jQ.version,IQ=NQ&&NQ.v8;IQ&&(nQ=(tQ=IQ.split("."))[0]>0&&tQ[0]<4?1:+(tQ[0]+tQ[1])),!nQ&&TQ&&(!(tQ=TQ.match(/Edge\/(\d+)/))||tQ[1]>=74)&&(tQ=TQ.match(/Chrome\/(\d+)/))&&(nQ=+tQ[1]);var RQ=nQ,LQ=!!Object.getOwnPropertySymbols&&!iQ((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&RQ&&RQ<41})),MQ=LQ&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,zQ=oQ.Object,UQ=MQ?function(e){return"symbol"==typeof e}:function(e){var t=_Q("Symbol");return AQ(t)&&FQ(t.prototype,zQ(e))},HQ=oQ.String,$Q=function(e){try{return HQ(e)}catch(e){return"Object"}},VQ=oQ.TypeError,WQ=function(e){if(AQ(e))return e;throw VQ($Q(e)+" is not a function")},qQ=function(e,t){var n=e[t];return null==n?void 0:WQ(n)},GQ=oQ.TypeError,KQ=Object.defineProperty,YQ=function(e,t){try{KQ(oQ,e,{value:t,configurable:!0,writable:!0})}catch(n){oQ[e]=t}return t},XQ=oQ["__core-js_shared__"]||YQ("__core-js_shared__",{}),ZQ=eQ((function(e){(e.exports=function(e,t){return XQ[e]||(XQ[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),JQ=oQ.Object,QQ=function(e){return JQ(DQ(e))},e0=yQ({}.hasOwnProperty),t0=Object.hasOwn||function(e,t){return e0(QQ(e),t)},n0=0,r0=Math.random(),o0=yQ(1..toString),i0=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o0(++n0+r0,36)},a0=ZQ("wks"),u0=oQ.Symbol,s0=u0&&u0.for,l0=MQ?u0:u0&&u0.withoutSetter||i0,c0=function(e){if(!t0(a0,e)||!LQ&&"string"!=typeof a0[e]){var t="Symbol."+e;LQ&&t0(u0,e)?a0[e]=u0[e]:a0[e]=MQ&&s0?s0(t):l0(t)}return a0[e]},f0=oQ.TypeError,d0=c0("toPrimitive"),p0=function(e){var t=function(e,t){if(!kQ(e)||UQ(e))return e;var n,r=qQ(e,d0);if(r){if(void 0===t&&(t="default"),n=sQ(r,e,t),!kQ(n)||UQ(n))return n;throw f0("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&AQ(n=e.toString)&&!kQ(r=sQ(n,e)))return r;if(AQ(n=e.valueOf)&&!kQ(r=sQ(n,e)))return r;if("string"!==t&&AQ(n=e.toString)&&!kQ(r=sQ(n,e)))return r;throw GQ("Can't convert object to primitive value")}(e,t)}(e,"string");return UQ(t)?t:t+""},h0=oQ.document,g0=kQ(h0)&&kQ(h0.createElement),v0=function(e){return g0?h0.createElement(e):{}},y0=!aQ&&!iQ((function(){return 7!=Object.defineProperty(v0("div"),"a",{get:function(){return 7}}).a})),m0=Object.getOwnPropertyDescriptor,b0={f:aQ?m0:function(e,t){if(e=OQ(e),t=p0(t),y0)try{return m0(e,t)}catch(e){}if(t0(e,t))return dQ(!sQ(fQ.f,e,t),e[t])}},w0=oQ.String,E0=oQ.TypeError,x0=function(e){if(kQ(e))return e;throw E0(w0(e)+" is not an object")},S0=oQ.TypeError,C0=Object.defineProperty,D0={f:aQ?C0:function(e,t,n){if(x0(e),t=p0(t),x0(n),y0)try{return C0(e,t,n)}catch(e){}if("get"in n||"set"in n)throw S0("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},O0=aQ?function(e,t,n){return D0.f(e,t,dQ(1,n))}:function(e,t,n){return e[t]=n,e},A0=yQ(Function.toString);AQ(XQ.inspectSource)||(XQ.inspectSource=function(e){return A0(e)});var k0,B0,_0,F0=XQ.inspectSource,T0=oQ.WeakMap,P0=AQ(T0)&&/native code/.test(F0(T0)),j0=ZQ("keys"),N0=function(e){return j0[e]||(j0[e]=i0(e))},I0={},R0=oQ.TypeError,L0=oQ.WeakMap;if(P0||XQ.state){var M0=XQ.state||(XQ.state=new L0),z0=yQ(M0.get),U0=yQ(M0.has),H0=yQ(M0.set);k0=function(e,t){if(U0(M0,e))throw new R0("Object already initialized");return t.facade=e,H0(M0,e,t),t},B0=function(e){return z0(M0,e)||{}},_0=function(e){return U0(M0,e)}}else{var $0=N0("state");I0[$0]=!0,k0=function(e,t){if(t0(e,$0))throw new R0("Object already initialized");return t.facade=e,O0(e,$0,t),t},B0=function(e){return t0(e,$0)?e[$0]:{}},_0=function(e){return t0(e,$0)}}var V0={set:k0,get:B0,has:_0,enforce:function(e){return _0(e)?B0(e):k0(e,{})},getterFor:function(e){return function(t){var n;if(!kQ(t)||(n=B0(t)).type!==e)throw R0("Incompatible receiver, "+e+" required");return n}}},W0=Function.prototype,q0=aQ&&Object.getOwnPropertyDescriptor,G0=t0(W0,"name"),K0={EXISTS:G0,PROPER:G0&&"something"===function(){}.name,CONFIGURABLE:G0&&(!aQ||aQ&&q0(W0,"name").configurable)},Y0=eQ((function(e){var t=K0.CONFIGURABLE,n=V0.get,r=V0.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;AQ(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!t0(i,"name")||t&&i.name!==f)&&O0(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==oQ?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:O0(e,n,i)):l?e[n]=i:YQ(n,i)})(Function.prototype,"toString",(function(){return AQ(this)&&n(this).source||F0(this)}))})),X0=Math.ceil,Z0=Math.floor,J0=function(e){var t=+e;return t!=t||0===t?0:(t>0?Z0:X0)(t)},Q0=Math.max,e1=Math.min,t1=function(e,t){var n=J0(e);return n<0?Q0(n+t,0):e1(n,t)},n1=Math.min,r1=function(e){return e>0?n1(J0(e),9007199254740991):0},o1=function(e){return r1(e.length)},i1=function(e){return function(t,n,r){var o,i=OQ(t),a=o1(i),u=t1(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}},a1=(i1(!0),i1(!1)),u1=yQ([].push),s1=function(e,t){var n,r=OQ(e),o=0,i=[];for(n in r)!t0(I0,n)&&t0(r,n)&&u1(i,n);for(;t.length>o;)t0(r,n=t[o++])&&(~a1(i,n)||u1(i,n));return i},l1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],c1=l1.concat("length","prototype"),f1={f:Object.getOwnPropertyNames||function(e){return s1(e,c1)}},d1={f:Object.getOwnPropertySymbols},p1=yQ([].concat),h1=_Q("Reflect","ownKeys")||function(e){var t=f1.f(x0(e)),n=d1.f;return n?p1(t,n(e)):t},g1=function(e,t){for(var n=h1(t),r=D0.f,o=b0.f,i=0;i<n.length;i++){var a=n[i];t0(e,a)||r(e,a,o(t,a))}},v1=/#|\.prototype\./,y1=function(e,t){var n=b1[m1(e)];return n==E1||n!=w1&&(AQ(t)?iQ(t):!!t)},m1=y1.normalize=function(e){return String(e).replace(v1,".").toLowerCase()},b1=y1.data={},w1=y1.NATIVE="N",E1=y1.POLYFILL="P",x1=y1,S1=b0.f,C1=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?oQ:l?oQ[u]||YQ(u,{}):(oQ[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=S1(n,r))&&a.value:n[r],!x1(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;g1(i,o)}(e.sham||o&&o.sham)&&O0(i,"sham",!0),Y0(n,r,i,e)}},D1={};D1[c0("toStringTag")]="z";var O1="[object z]"===String(D1),A1=c0("toStringTag"),k1=oQ.Object,B1="Arguments"==wQ(function(){return arguments}()),_1=O1?wQ: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=k1(e),A1))?n:B1?wQ(t):"Object"==(r=wQ(t))&&AQ(t.callee)?"Arguments":r},F1=oQ.String,T1=function(e){if("Symbol"===_1(e))throw TypeError("Cannot convert a Symbol value to a string");return F1(e)},P1=/"/g,j1=yQ("".replace);C1({target:"String",proto:!0,forced:iQ((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=T1(DQ(this)),r="<a",(r+=' name="'+j1(T1(t),P1,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var N1,I1=function(){var e=x0(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},R1=oQ.RegExp,L1=iQ((function(){var e=R1("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),M1=L1||iQ((function(){return!R1("a","y").sticky})),z1={BROKEN_CARET:L1||iQ((function(){var e=R1("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:M1,UNSUPPORTED_Y:L1},U1=Object.keys||function(e){return s1(e,l1)},H1=aQ?Object.defineProperties:function(e,t){x0(e);for(var n,r=OQ(t),o=U1(t),i=o.length,a=0;i>a;)D0.f(e,n=o[a++],r[n]);return e},$1=_Q("document","documentElement"),V1=N0("IE_PROTO"),W1=function(){},q1=function(e){return"<script>"+e+"<\/script>"},G1=function(e){e.write(q1("")),e.close();var t=e.parentWindow.Object;return e=null,t},K1=function(){try{N1=new ActiveXObject("htmlfile")}catch(e){}var e,t;K1="undefined"!=typeof document?document.domain&&N1?G1(N1):((t=v0("iframe")).style.display="none",$1.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(q1("document.F=Object")),e.close(),e.F):G1(N1);for(var n=l1.length;n--;)delete K1.prototype[l1[n]];return K1()};I0[V1]=!0;var Y1,X1,Z1=Object.create||function(e,t){var n;return null!==e?(W1.prototype=x0(e),n=new W1,W1.prototype=null,n[V1]=e):n=K1(),void 0===t?n:H1(n,t)},J1=oQ.RegExp,Q1=iQ((function(){var e=J1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),e2=oQ.RegExp,t2=iQ((function(){var e=e2("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),n2=V0.get,r2=ZQ("native-string-replace",String.prototype.replace),o2=RegExp.prototype.exec,i2=o2,a2=yQ("".charAt),u2=yQ("".indexOf),s2=yQ("".replace),l2=yQ("".slice),c2=(X1=/b*/g,sQ(o2,Y1=/a/,"a"),sQ(o2,X1,"a"),0!==Y1.lastIndex||0!==X1.lastIndex),f2=z1.BROKEN_CARET,d2=void 0!==/()??/.exec("")[1];(c2||d2||f2||Q1||t2)&&(i2=function(e){var t,n,r,o,i,a,u,s=this,l=n2(s),c=T1(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=sQ(i2,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=f2&&s.sticky,h=sQ(I1,s),g=s.source,v=0,y=c;if(p&&(h=s2(h,"y",""),-1===u2(h,"g")&&(h+="g"),y=l2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==a2(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),d2&&(n=new RegExp("^"+g+"$(?!\\s)",h)),c2&&(r=s.lastIndex),o=sQ(o2,p?n:s,y),p?o?(o.input=l2(o.input,v),o[0]=l2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:c2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),d2&&o&&o.length>1&&sQ(r2,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=Z1(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var p2=i2;C1({target:"RegExp",proto:!0,forced:/./.exec!==p2},{exec:p2});var h2=Array.isArray||function(e){return"Array"==wQ(e)},g2=function(){},v2=[],y2=_Q("Reflect","construct"),m2=/^\s*(?:class|function)\b/,b2=yQ(m2.exec),w2=!m2.exec(g2),E2=function(e){if(!AQ(e))return!1;try{return y2(g2,v2,e),!0}catch(e){return!1}},x2=!y2||iQ((function(){var e;return E2(E2.call)||!E2(Object)||!E2((function(){e=!0}))||e}))?function(e){if(!AQ(e))return!1;switch(_1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return w2||!!b2(m2,F0(e))}:E2,S2=function(e,t,n){var r=p0(t);r in e?D0.f(e,r,dQ(0,n)):e[r]=n},C2=c0("species"),D2=function(e){return RQ>=51||!iQ((function(){var t=[];return(t.constructor={})[C2]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},O2=yQ([].slice),A2=D2("slice"),k2=c0("species"),B2=oQ.Array,_2=Math.max;function F2(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 T2(e){var t=e.selection;if(null==t)return!1;var n=F2(df.nodes(e,{match:function(e){return tA.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=F2(n,2)[1],o=df.start(e,r);if(Df.equals(t.anchor,o))return!0}return!1}function P2(e,t){var n,r,o=df.nodes(e,{at:t,match:function(e){return"table"===tA.getNodeType(e)}}),i=!1;try{for(var a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}C1({target:"Array",proto:!0,forced:!A2},{slice:function(e,t){var n,r,o,i=OQ(this),a=o1(i),u=t1(e,a),s=t1(void 0===t?a:t,a);if(h2(i)&&(n=i.constructor,(x2(n)&&(n===B2||h2(n.prototype))||kQ(n)&&null===(n=n[k2]))&&(n=void 0),n===B2||void 0===n))return O2(i,u,s);for(r=new(void 0===n?B2:n)(_2(s-u,0)),o=0;u<s;u++,o++)u in i&&S2(r,o,i[u]);return r.length=o,r}});var j2=yQ(yQ.bind),N2=c0("species"),I2=oQ.Array,R2=function(e,t){return new(function(e){var t;return h2(e)&&(t=e.constructor,(x2(t)&&(t===I2||h2(t.prototype))||kQ(t)&&null===(t=t[N2]))&&(t=void 0)),void 0===t?I2:t}(e))(0===t?0:t)},L2=yQ([].push),M2=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=QQ(s),g=SQ(h),v=function(e,t){return WQ(e),void 0===t?e:j2?j2(e,t):function(){return e.apply(t,arguments)}}(l,c),y=o1(g),m=0,b=f||R2,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:L2(w,d)}else switch(e){case 4:return!1;case 7:L2(w,d)}return i?-1:r||o?o:w}},z2={forEach:M2(0),map:M2(1),filter:M2(2),some:M2(3),every:M2(4),find:M2(5),findIndex:M2(6),filterReject:M2(7)},U2=z2.map;C1({target:"Array",proto:!0,forced:!D2("map")},{map:function(e){return U2(this,e,arguments.length>1?arguments[1]:void 0)}});var H2=O1?{}.toString:function(){return"[object "+_1(this)+"]"};function $2(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function V2(e){return $2(e).every((function(e){return!!e.isHeader}))}O1||Y0(Object.prototype,"toString",H2,{unsafe:!0});var W2=K0.PROPER,q2=RegExp.prototype,G2=q2.toString,K2=yQ(I1),Y2=iQ((function(){return"/a/b"!=G2.call({source:"a",flags:"b"})})),X2=W2&&"toString"!=G2.name;(Y2||X2)&&Y0(RegExp.prototype,"toString",(function(){var e=x0(this),t=T1(e.source),n=e.flags;return"/"+t+"/"+T1(void 0===n&&FQ(q2,e)&&!("flags"in q2)?K2(e):n)}),{unsafe:!0});var Z2=c0("unscopables"),J2=Array.prototype;null==J2[Z2]&&D0.f(J2,Z2,{configurable:!0,value:Z1(null)});var Q2=z2.find,e4=!0;"find"in[]&&Array(1).find((function(){e4=!1})),C1({target:"Array",proto:!0,forced:e4},{find:function(e){return Q2(this,e,arguments.length>1?arguments[1]:void 0)}}),J2[Z2].find=!0;var t4=Function.prototype,n4=t4.apply,r4=t4.bind,o4=t4.call,i4="object"==typeof Reflect&&Reflect.apply||(r4?o4.bind(n4):function(){return o4.apply(n4,arguments)}),a4=c0("species"),u4=RegExp.prototype,s4=function(e,t,n,r){var o=c0(e),i=!iQ((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!iQ((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[a4]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=yQ(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=yQ(e),s=t.exec;return s===p2||s===u4.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Y0(String.prototype,e,s[0]),Y0(u4,o,s[1])}r&&O0(u4[o],"sham",!0)},l4=c0("match"),c4=oQ.TypeError,f4=c0("species"),d4=yQ("".charAt),p4=yQ("".charCodeAt),h4=yQ("".slice),g4=function(e){return function(t,n){var r,o,i=T1(DQ(t)),a=J0(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=p4(i,a))<55296||r>56319||a+1===u||(o=p4(i,a+1))<56320||o>57343?e?d4(i,a):r:e?h4(i,a,a+2):o-56320+(r-55296<<10)+65536}},v4=(g4(!1),g4(!0)),y4=function(e,t,n){return t+(n?v4(e,t).length:1)},m4=oQ.Array,b4=Math.max,w4=function(e,t,n){for(var r=o1(e),o=t1(t,r),i=t1(void 0===n?r:n,r),a=m4(b4(i-o,0)),u=0;o<i;o++,u++)S2(a,u,e[o]);return a.length=u,a},E4=oQ.TypeError,x4=function(e,t){var n=e.exec;if(AQ(n)){var r=sQ(n,e,t);return null!==r&&x0(r),r}if("RegExp"===wQ(e))return sQ(p2,e,t);throw E4("RegExp#exec called on incompatible receiver")},S4=z1.UNSUPPORTED_Y,C4=Math.min,D4=[].push,O4=yQ(/./.exec),A4=yQ(D4),k4=yQ("".slice);s4("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=T1(DQ(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!kQ(r=e)||!(void 0!==(o=r[l4])?o:"RegExp"==wQ(r)))return sQ(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=sQ(p2,p,i))&&!((s=p.lastIndex)>d&&(A4(c,k4(i,d,u.index)),u.length>1&&u.index<i.length&&i4(D4,c,w4(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&O4(p,"")||A4(c,""):A4(c,k4(i,d)),c.length>a?w4(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:sQ(t,this,e,n)}:t,[function(t,n){var o=DQ(this),i=null==t?void 0:qQ(t,e);return i?sQ(i,t,o,n):sQ(r,T1(o),t,n)},function(e,o){var i=x0(this),a=T1(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=x0(e).constructor;return void 0===r||null==(n=x0(r)[f4])?t:function(e){if(x2(e))return e;throw c4($Q(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(S4?"g":"y"),f=new s(S4?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===x4(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=S4?0:h;var v,y=x4(f,S4?k4(a,h):a);if(null===y||(v=C4(r1(f.lastIndex+(S4?h:0)),a.length))===p)h=y4(a,h,l);else{if(A4(g,k4(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(A4(g,y[m]),g.length===d)return g;h=p=v}}return A4(g,k4(a,p)),g}]}),!!iQ((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]})),S4);var B4="\t\n\v\f\r    \u2028\u2029\ufeff",_4=yQ("".replace),F4="["+B4+"]",T4=RegExp("^"+F4+F4+"*"),P4=RegExp(F4+F4+"*$"),j4=function(e){return function(t){var n=T1(DQ(t));return 1&e&&(n=_4(n,T4,"")),2&e&&(n=_4(n,P4,"")),n}},N4={start:j4(1),end:j4(2),trim:j4(3)},I4=K0.PROPER,R4=N4.trim;function L4(e){return e.length?e[0].tagName.toLowerCase():""}C1({target:"String",proto:!0,forced:function(e){return iQ((function(){return!!B4[e]()||"…"!=="…"[e]()||I4&&B4[e].name!==e}))}("trim")},{trim:function(){return R4(this)}}),C1({global:!0},{globalThis:oQ}),Np&&(hp.fn.append=Np),xp&&(hp.fn.on=xp),qp&&(hp.fn.focus=qp),mp&&(hp.fn.attr=mp),Ep&&(hp.fn.val=Ep),Tp&&(hp.fn.html=Tp),wp&&(hp.fn.dataset=wp),gp&&(hp.fn.addClass=gp),vp&&(hp.fn.removeClass=vp),zp&&(hp.fn.children=zp),_p&&(hp.fn.each=_p),Mp&&(hp.fn.find=Mp);var M4=!1,z4=0,U4=0,H4=null,$4=null,V4=hp("body");function W4(e){M4=!1,$4=null,H4=null,V4.off("mousemove",q4),V4.off("mouseup",W4)}V4.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(),M4=!0;var n=e.clientX;z4=n;var r=t.getBoundingClientRect().width;U4=r,V4.on("mousemove",q4),V4.on("mouseup",W4)}}));var q4=Ch((function(e){if(M4&&null!=$4&&null!=H4){e.preventDefault();var t=e.clientX,n=U4+(t-z4);(n=Math.floor(100*n)/100)<30&&(n=30),Qf.setNodes($4,{width:n.toString()},{at:H4})}}),100),G4={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(Bf.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=tA.findPath(e,t),a=df.start(e,i),u=df.end(e,i),s=Df.compare(r,u)<=0&&Df.compare(r,a)>=0,l=Df.compare(o,u)<=0&&Df.compare(o,a)>=0;return!!(s&&l&&Ef.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o;return Jh("div",{className:"table-container","data-selected":tA.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=tA.findPath(n,e),o=df.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},Jh("table",{width:i,contentEditable:r},Jh("colgroup",null,$2(e).map((function(e){var t=e.width;return Jh("col",{width:void 0===t?"auto":t})}))),Jh("tbody",null,t)))}},K4={type:"table-row",renderElem:function(e,t,n){return Jh("tr",null,t)}},Y4={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=tA.getParentNode(e,t);if(null==n)return!1;var r=tA.getParentNode(e,n);return null!=r&&$2(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,l=o.isHeader;return r?Jh(void 0!==l&&l?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Ch((function(t){var r=this.elm;if(null!=r){var o=r.getBoundingClientRect(),i=o.left,a=o.width,u=o.top,s=o.height,l=t.clientX,c=t.clientY;M4||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",$4=n,H4=tA.findPath(n,e)):M4||(r.style.cursor="auto",$4=null,H4=null))}}),100)}},t):Jh("td",{colSpan:a,rowSpan:s},t)}},X4={selector:"table",preParseHtml:function(e){var t=hp(e);if("table"!==L4(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]}},Z4=z2.filter;C1({target:"Array",proto:!0,forced:!D2("filter")},{filter:function(e){return Z4(this,e,arguments.length>1?arguments[1]:void 0)}});var J4=Math.floor,Q4=yQ("".charAt),e6=yQ("".replace),t6=yQ("".slice),n6=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,r6=/\$([$&'`]|\d{1,2})/g,o6=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=r6;return void 0!==o&&(o=QQ(o),s=n6),e6(i,s,(function(i,s){var l;switch(Q4(s,0)){case"$":return"$";case"&":return e;case"`":return t6(t,0,n);case"'":return t6(t,a);case"<":l=o[t6(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=J4(c/10);return 0===f?i:f<=u?void 0===r[f-1]?Q4(s,1):r[f-1]+Q4(s,1):i}l=r[c-1]}return void 0===l?"":l}))},i6=c0("replace"),a6=Math.max,u6=Math.min,s6=yQ([].concat),l6=yQ([].push),c6=yQ("".indexOf),f6=yQ("".slice),d6="$0"==="a".replace(/./,"$0"),p6=!!/./[i6]&&""===/./[i6]("a","$0");s4("replace",(function(e,t,n){var r=p6?"$":"$0";return[function(e,n){var r=DQ(this),o=null==e?void 0:qQ(e,i6);return o?sQ(o,e,r,n):sQ(t,T1(r),e,n)},function(e,o){var i=x0(this),a=T1(e);if("string"==typeof o&&-1===c6(o,r)&&-1===c6(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=AQ(o);s||(o=T1(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=x4(i,a);if(null===d)break;if(l6(f,d),!l)break;""===T1(d[0])&&(i.lastIndex=y4(a,r1(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=T1((d=f[v])[0]),m=a6(u6(J0(d.index),a.length),0),b=[],w=1;w<d.length;w++)l6(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=s6([y],b,m,a);void 0!==E&&l6(x,E);var S=T1(i4(o,void 0,x))}else S=o6(y,a,m,b,E,o);m>=g&&(h+=f6(a,g,m)+S,g=m+y.length)}return h+f6(a,g)}]}),!!iQ((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!d6||p6);var h6={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hp(e);0===(t=t.filter((function(e){return!!If.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===L4(r),colSpan:o,rowSpan:i,width:a,children:t}}},g6={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===tA.getNodeType(e)}))}}},v6={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hp(e),o="auto";return"100%"===function(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");"width"===u[0].trim()&&(n=u[1].trim())}}return n}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===tA.getNodeType(e)}))}}},y6=function(){function e(){this.title=jT("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bf.isCollapsed(t)||!!tA.getSelectedElems(e).some((function(t){var n=tA.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=hp('<div class="w-e-panel-content-table"></div>'),r=hp("<span>0 &times; 0</span>"),o=hp("<table></table>"),i=0;i<10;i++){for(var a=hp("<tr></tr>"),u=0;u<10;u++){var s=hp("<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=hp(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" &times; "+(a+1),o.children().each((function(e){hp(e).children().each((function(e){var t=hp(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=hp(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){tA.isSelectedEmptyParagraph(e)&&Qf.removeNodes(e,{mode:"highest"});var i=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);Qf.insertNodes(e,i,{mode:"highest"})}},e}(),m6=function(){function e(){this.title=jT("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==tA.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||Qf.removeNodes(e,{mode:"highest"})},e}(),b6=function(){function e(){this.title=jT("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bf.isCollapsed(t)||null==tA.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=F2(df.nodes(e,{match:function(e){return tA.checkNodeType(e,"table-cell")},universal:!0}),1),r=F2(n[0],2),o=r[0],i=r[1],a=tA.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var s={type:"table-row",children:[]},l=0;l<u;l++)s.children.push({type:"table-cell",children:[{text:""}]});var c=Ef.parent(i),f=Ef.next(c);Qf.insertNodes(e,s,{at:f})}}},e}(),w6=function(){function e(){this.title=jT("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bf.isCollapsed(t)||null==tA.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=F2(df.nodes(e,{match:function(e){return tA.checkNodeType(e,"table-row")},universal:!0}),1),r=F2(n[0],2),o=r[0],i=r[1],a=tA.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?Qf.removeNodes(e,{mode:"highest"}):Qf.removeNodes(e,{at:i})}},e}(),E6={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},x6=v0("span").classList,S6=x6&&x6.constructor&&x6.constructor.prototype,C6=S6===Object.prototype?void 0:S6,D6=z2.forEach,O6=function(e,t){var n=[].forEach;return!!n&&iQ((function(){n.call(null,(function(){throw 1}),1)}))}()?[].forEach:function(e){return D6(this,e,arguments.length>1?arguments[1]:void 0)},A6=function(e){if(e&&e.forEach!==O6)try{O0(e,"forEach",O6)}catch(t){e.forEach=O6}};for(var k6 in E6)E6[k6]&&A6(oQ[k6]&&oQ[k6].prototype);A6(C6);var B6=function(){function e(){this.title=jT("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bf.isCollapsed(t)||null==tA.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=F2(df.nodes(e,{match:function(e){return tA.checkNodeType(e,"table-cell")},universal:!0}),1),r=F2(n[0],2),o=r[0],i=r[1],a=tA.getParentNode(e,o);if(null!=a){var u=tA.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){af.isElement(t)&&(t.children||[]).forEach((function(t){var r=tA.findPath(e,t);if(r.length===i.length&&JJ(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&V2(u)&&(o.isHeader=!0),Qf.insertNodes(e,o,{at:r})}}))}))}}},e}(),_6=function(){function e(){this.title=jT("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bf.isCollapsed(t)||null==tA.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=F2(df.nodes(e,{match:function(e){return tA.checkNodeType(e,"table-cell")},universal:!0}),1),r=F2(n[0],2),o=r[0],i=r[1],a=tA.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)Qf.removeNodes(e,{mode:"highest"});else{var s=tA.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){af.isElement(t)&&(t.children||[]).forEach((function(t){var n=tA.findPath(e,t);n.length===i.length&&JJ(n.slice(-1),i.slice(-1))&&Qf.removeNodes(e,{at:n})}))}))}}},e}(),F6=function(){function e(){this.title=jT("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=tA.getSelectedNodeByType(e,"table");return null!=t&&V2(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bf.isCollapsed(t)||null==tA.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=tA.getSelectedNodeByType(e,"table");null!=r&&$2(r).forEach((function(t){return Qf.setNodes(e,{isHeader:n},{at:tA.findPath(e,t)})}))}},e}(),T6=function(){function e(){this.title=jT("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=tA.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bf.isCollapsed(t)||null==tA.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};Qf.setNodes(e,n,{mode:"highest"})}},e}(),P6={renderElems:[G4,K4,Y4],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===l?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[X4],parseElemsHtml:[h6,g6,v6],menus:[{key:"insertTable",factory:function(){return new y6}},{key:"deleteTable",factory:function(){return new m6}},{key:"insertTableRow",factory:function(){return new b6}},{key:"deleteTableRow",factory:function(){return new w6}},{key:"insertTableCol",factory:function(){return new B6}},{key:"deleteTableCol",factory:function(){return new _6}},{key:"tableHeader",factory:function(){return new F6}},{key:"tableFullWidth",factory:function(){return new T6}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){null==tA.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!T2(s)){var t=s.selection;if(t){var r=df.before(s,t);if(r){var o=P2(s,r),i=P2(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(tA.getSelectedNodeByType(s,"table")){var n=df.above(e);tA.checkNodeType(n[0],"table-cell")&&Qf.select(e,n[1]);var r=df.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=df.above(e,{at:r[1]}))&&void 0!==t?t:r),Qf.select(e,r[1]);else{var o=s.children||[],i=o.length;if(tA.checkNodeType(o[i-1],"table")){var u=tA.genEmptyParagraph();Qf.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){T2(s)||r(e)},s.normalizeNode=function(e){var t=F2(e,2),n=t[0],r=t[1];if("table"!==tA.getNodeType(n))return o([n,r]);if(tA.isLastNode(s,n)){var i=tA.genEmptyParagraph();Qf.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=tA.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):df.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=tA.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Ef.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==yf.string(t).length){var o=tA.findPath(s,t),i={anchor:df.start(s,o),focus:df.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};PT("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"}}),PT("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});var j6=function(){return(j6=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}).apply(this,arguments)};function N6(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 I6(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 R6(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var L6="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function M6(e){var t={exports:{}};return e(t,t.exports),t.exports}var z6,U6,H6=function(e){return e&&e.Math==Math&&e},$6=H6("object"==typeof globalThis&&globalThis)||H6("object"==typeof window&&window)||H6("object"==typeof self&&self)||H6("object"==typeof L6&&L6)||function(){return this}()||Function("return this")(),V6=function(e){try{return!!e()}catch(e){return!0}},W6=!V6((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),q6=Function.prototype.call,G6=q6.bind?q6.bind(q6):function(){return q6.apply(q6,arguments)},K6={}.propertyIsEnumerable,Y6=Object.getOwnPropertyDescriptor,X6={f:Y6&&!K6.call({1:2},1)?function(e){var t=Y6(this,e);return!!t&&t.enumerable}:K6},Z6=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},J6=Function.prototype,Q6=J6.bind,e3=J6.call,t3=Q6&&Q6.bind(e3),n3=Q6?function(e){return e&&t3(e3,e)}:function(e){return e&&function(){return e3.apply(e,arguments)}},r3=n3({}.toString),o3=n3("".slice),i3=function(e){return o3(r3(e),8,-1)},a3=$6.Object,u3=n3("".split),s3=V6((function(){return!a3("z").propertyIsEnumerable(0)}))?function(e){return"String"==i3(e)?u3(e,""):a3(e)}:a3,l3=$6.TypeError,c3=function(e){if(null==e)throw l3("Can't call method on "+e);return e},f3=function(e){return s3(c3(e))},d3=function(e){return"function"==typeof e},p3=function(e){return"object"==typeof e?null!==e:d3(e)},h3=function(e){return d3(e)?e:void 0},g3=function(e,t){return arguments.length<2?h3($6[e]):$6[e]&&$6[e][t]},v3=n3({}.isPrototypeOf),y3=g3("navigator","userAgent")||"",m3=$6.process,b3=$6.Deno,w3=m3&&m3.versions||b3&&b3.version,E3=w3&&w3.v8;E3&&(U6=(z6=E3.split("."))[0]>0&&z6[0]<4?1:+(z6[0]+z6[1])),!U6&&y3&&(!(z6=y3.match(/Edge\/(\d+)/))||z6[1]>=74)&&(z6=y3.match(/Chrome\/(\d+)/))&&(U6=+z6[1]);var x3=U6,S3=!!Object.getOwnPropertySymbols&&!V6((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&x3&&x3<41})),C3=S3&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,D3=$6.Object,O3=C3?function(e){return"symbol"==typeof e}:function(e){var t=g3("Symbol");return d3(t)&&v3(t.prototype,D3(e))},A3=$6.String,k3=function(e){try{return A3(e)}catch(e){return"Object"}},B3=$6.TypeError,_3=function(e){if(d3(e))return e;throw B3(k3(e)+" is not a function")},F3=function(e,t){var n=e[t];return null==n?void 0:_3(n)},T3=$6.TypeError,P3=Object.defineProperty,j3=function(e,t){try{P3($6,e,{value:t,configurable:!0,writable:!0})}catch(n){$6[e]=t}return t},N3=$6["__core-js_shared__"]||j3("__core-js_shared__",{}),I3=M6((function(e){(e.exports=function(e,t){return N3[e]||(N3[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),R3=$6.Object,L3=function(e){return R3(c3(e))},M3=n3({}.hasOwnProperty),z3=Object.hasOwn||function(e,t){return M3(L3(e),t)},U3=0,H3=Math.random(),$3=n3(1..toString),V3=function(e){return"Symbol("+(void 0===e?"":e)+")_"+$3(++U3+H3,36)},W3=I3("wks"),q3=$6.Symbol,G3=q3&&q3.for,K3=C3?q3:q3&&q3.withoutSetter||V3,Y3=function(e){if(!z3(W3,e)||!S3&&"string"!=typeof W3[e]){var t="Symbol."+e;S3&&z3(q3,e)?W3[e]=q3[e]:W3[e]=C3&&G3?G3(t):K3(t)}return W3[e]},X3=$6.TypeError,Z3=Y3("toPrimitive"),J3=function(e){var t=function(e,t){if(!p3(e)||O3(e))return e;var n,r=F3(e,Z3);if(r){if(void 0===t&&(t="default"),n=G6(r,e,t),!p3(n)||O3(n))return n;throw X3("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&d3(n=e.toString)&&!p3(r=G6(n,e)))return r;if(d3(n=e.valueOf)&&!p3(r=G6(n,e)))return r;if("string"!==t&&d3(n=e.toString)&&!p3(r=G6(n,e)))return r;throw T3("Can't convert object to primitive value")}(e,t)}(e,"string");return O3(t)?t:t+""},Q3=$6.document,e5=p3(Q3)&&p3(Q3.createElement),t5=function(e){return e5?Q3.createElement(e):{}},n5=!W6&&!V6((function(){return 7!=Object.defineProperty(t5("div"),"a",{get:function(){return 7}}).a})),r5=Object.getOwnPropertyDescriptor,o5={f:W6?r5:function(e,t){if(e=f3(e),t=J3(t),n5)try{return r5(e,t)}catch(e){}if(z3(e,t))return Z6(!G6(X6.f,e,t),e[t])}},i5=$6.String,a5=$6.TypeError,u5=function(e){if(p3(e))return e;throw a5(i5(e)+" is not an object")},s5=$6.TypeError,l5=Object.defineProperty,c5={f:W6?l5:function(e,t,n){if(u5(e),t=J3(t),u5(n),n5)try{return l5(e,t,n)}catch(e){}if("get"in n||"set"in n)throw s5("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},f5=W6?function(e,t,n){return c5.f(e,t,Z6(1,n))}:function(e,t,n){return e[t]=n,e},d5=n3(Function.toString);d3(N3.inspectSource)||(N3.inspectSource=function(e){return d5(e)});var p5,h5,g5,v5=N3.inspectSource,y5=$6.WeakMap,m5=d3(y5)&&/native code/.test(v5(y5)),b5=I3("keys"),w5=function(e){return b5[e]||(b5[e]=V3(e))},E5={},x5=$6.TypeError,S5=$6.WeakMap;if(m5||N3.state){var C5=N3.state||(N3.state=new S5),D5=n3(C5.get),O5=n3(C5.has),A5=n3(C5.set);p5=function(e,t){if(O5(C5,e))throw new x5("Object already initialized");return t.facade=e,A5(C5,e,t),t},h5=function(e){return D5(C5,e)||{}},g5=function(e){return O5(C5,e)}}else{var k5=w5("state");E5[k5]=!0,p5=function(e,t){if(z3(e,k5))throw new x5("Object already initialized");return t.facade=e,f5(e,k5,t),t},h5=function(e){return z3(e,k5)?e[k5]:{}},g5=function(e){return z3(e,k5)}}var B5={set:p5,get:h5,has:g5,enforce:function(e){return g5(e)?h5(e):p5(e,{})},getterFor:function(e){return function(t){var n;if(!p3(t)||(n=h5(t)).type!==e)throw x5("Incompatible receiver, "+e+" required");return n}}},_5=Function.prototype,F5=W6&&Object.getOwnPropertyDescriptor,T5=z3(_5,"name"),P5={EXISTS:T5,PROPER:T5&&"something"===function(){}.name,CONFIGURABLE:T5&&(!W6||W6&&F5(_5,"name").configurable)},j5=M6((function(e){var t=P5.CONFIGURABLE,n=B5.get,r=B5.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;d3(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!z3(i,"name")||t&&i.name!==f)&&f5(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==$6?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:f5(e,n,i)):l?e[n]=i:j3(n,i)})(Function.prototype,"toString",(function(){return d3(this)&&n(this).source||v5(this)}))})),N5=Math.ceil,I5=Math.floor,R5=function(e){var t=+e;return t!=t||0===t?0:(t>0?I5:N5)(t)},L5=Math.max,M5=Math.min,z5=function(e,t){var n=R5(e);return n<0?L5(n+t,0):M5(n,t)},U5=Math.min,H5=function(e){return e>0?U5(R5(e),9007199254740991):0},$5=function(e){return H5(e.length)},V5=function(e){return function(t,n,r){var o,i=f3(t),a=$5(i),u=z5(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}},W5={includes:V5(!0),indexOf:V5(!1)},q5=W5.indexOf,G5=n3([].push),K5=function(e,t){var n,r=f3(e),o=0,i=[];for(n in r)!z3(E5,n)&&z3(r,n)&&G5(i,n);for(;t.length>o;)z3(r,n=t[o++])&&(~q5(i,n)||G5(i,n));return i},Y5=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],X5=Y5.concat("length","prototype"),Z5={f:Object.getOwnPropertyNames||function(e){return K5(e,X5)}},J5={f:Object.getOwnPropertySymbols},Q5=n3([].concat),e8=g3("Reflect","ownKeys")||function(e){var t=Z5.f(u5(e)),n=J5.f;return n?Q5(t,n(e)):t},t8=function(e,t){for(var n=e8(t),r=c5.f,o=o5.f,i=0;i<n.length;i++){var a=n[i];z3(e,a)||r(e,a,o(t,a))}},n8=/#|\.prototype\./,r8=function(e,t){var n=i8[o8(e)];return n==u8||n!=a8&&(d3(t)?V6(t):!!t)},o8=r8.normalize=function(e){return String(e).replace(n8,".").toLowerCase()},i8=r8.data={},a8=r8.NATIVE="N",u8=r8.POLYFILL="P",s8=r8,l8=o5.f,c8=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?$6:l?$6[u]||j3(u,{}):($6[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=l8(n,r))&&a.value:n[r],!s8(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;t8(i,o)}(e.sham||o&&o.sham)&&f5(i,"sham",!0),j5(n,r,i,e)}},f8={};f8[Y3("toStringTag")]="z";var d8="[object z]"===String(f8),p8=Y3("toStringTag"),h8=$6.Object,g8="Arguments"==i3(function(){return arguments}()),v8=d8?i3: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=h8(e),p8))?n:g8?i3(t):"Object"==(r=i3(t))&&d3(t.callee)?"Arguments":r},y8=$6.String,m8=function(e){if("Symbol"===v8(e))throw TypeError("Cannot convert a Symbol value to a string");return y8(e)},b8="\t\n\v\f\r    \u2028\u2029\ufeff",w8=n3("".replace),E8="["+b8+"]",x8=RegExp("^"+E8+E8+"*"),S8=RegExp(E8+E8+"*$"),C8=function(e){return function(t){var n=m8(c3(t));return 1&e&&(n=w8(n,x8,"")),2&e&&(n=w8(n,S8,"")),n}},D8={start:C8(1),end:C8(2),trim:C8(3)},O8=P5.PROPER,A8=D8.trim;function k8(e){return e.length?e[0].tagName.toLowerCase():""}function B8(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=hp(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}c8({target:"String",proto:!0,forced:V6((function(){return!!b8.trim()||"…"!=="…".trim()||O8&&"trim"!==b8.trim.name}))},{trim:function(){return A8(this)}}),c8({global:!0},{globalThis:$6}),Np&&(hp.fn.append=Np),xp&&(hp.fn.on=xp),qp&&(hp.fn.focus=qp),mp&&(hp.fn.attr=mp),Ep&&(hp.fn.val=Ep),Tp&&(hp.fn.html=Tp),Rp&&(hp.fn.parent=Rp),yp&&(hp.fn.hasClass=yp),Hp&&(hp.fn.empty=Hp);var _8,F8={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,l=o.width,c=void 0===l?"auto":l,f=o.height,d=void 0===f?"auto":f,p=tA.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=Jh("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:B8(a,c,d)});else{var h=Jh("video",{poster:s,controls:!0},Jh("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==c&&(h.data.width=c),"auto"!==d&&(h.data.height=d),r=Jh("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return Nh("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},T8={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,l=n.height,c=void 0===l?"auto":l,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=B8(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},P8=Object.keys||function(e){return K5(e,Y5)},j8=W6?Object.defineProperties:function(e,t){u5(e);for(var n,r=f3(t),o=P8(t),i=o.length,a=0;i>a;)c5.f(e,n=o[a++],r[n]);return e},N8=g3("document","documentElement"),I8=w5("IE_PROTO"),R8=function(){},L8=function(e){return"<script>"+e+"<\/script>"},M8=function(e){e.write(L8("")),e.close();var t=e.parentWindow.Object;return e=null,t},z8=function(){try{_8=new ActiveXObject("htmlfile")}catch(e){}var e,t;z8="undefined"!=typeof document?document.domain&&_8?M8(_8):((t=t5("iframe")).style.display="none",N8.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(L8("document.F=Object")),e.close(),e.F):M8(_8);for(var n=Y5.length;n--;)delete z8.prototype[Y5[n]];return z8()};E5[I8]=!0;var U8=Object.create||function(e,t){var n;return null!==e?(R8.prototype=u5(e),n=new R8,R8.prototype=null,n[I8]=e):n=z8(),void 0===t?n:j8(n,t)},H8=Y3("unscopables"),$8=Array.prototype;null==$8[H8]&&c5.f($8,H8,{configurable:!0,value:U8(null)});var V8=function(e){$8[H8][e]=!0},W8=W5.includes;c8({target:"Array",proto:!0},{includes:function(e){return W8(this,e,arguments.length>1?arguments[1]:void 0)}}),V8("includes");var q8={selector:"iframe,video,p",preParseHtml:function(e){var t=hp(e),n=t;if("p"===k8(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=hp(o))}}var a=k8(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=hp('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},G8=n3(n3.bind),K8=function(e,t){return _3(e),void 0===t?e:G8?G8(e,t):function(){return e.apply(t,arguments)}},Y8=Array.isArray||function(e){return"Array"==i3(e)},X8=function(){},Z8=[],J8=g3("Reflect","construct"),Q8=/^\s*(?:class|function)\b/,e9=n3(Q8.exec),t9=!Q8.exec(X8),n9=function(e){if(!d3(e))return!1;try{return J8(X8,Z8,e),!0}catch(e){return!1}},r9=!J8||V6((function(){var e;return n9(n9.call)||!n9(Object)||!n9((function(){e=!0}))||e}))?function(e){if(!d3(e))return!1;switch(v8(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return t9||!!e9(Q8,v5(e))}:n9,o9=Y3("species"),i9=$6.Array,a9=function(e,t){return new(function(e){var t;return Y8(e)&&(t=e.constructor,(r9(t)&&(t===i9||Y8(t.prototype))||p3(t)&&null===(t=t[o9]))&&(t=void 0)),void 0===t?i9:t}(e))(0===t?0:t)},u9=n3([].push),s9=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=L3(s),g=s3(h),v=K8(l,c),y=$5(g),m=0,b=f||a9,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:u9(w,d)}else switch(e){case 4:return!1;case 7:u9(w,d)}return i?-1:r||o?o:w}},l9={forEach:s9(0),map:s9(1),filter:s9(2),some:s9(3),every:s9(4),find:s9(5),findIndex:s9(6),filterReject:s9(7)},c9=l9.find,f9=!0;"find"in[]&&Array(1).find((function(){f9=!1})),c8({target:"Array",proto:!0,forced:f9},{find:function(e){return c9(this,e,arguments.length>1?arguments[1]:void 0)}}),V8("find");var d9=d8?{}.toString:function(){return"[object "+v8(this)+"]"};function p9(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}d8||j5(Object.prototype,"toString",d9,{unsafe:!0});var h9,g9,v9={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=hp(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",p9(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",p9(o,i=l.attr("poster")||"",a,u)}},y9=function(){var e=u5(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},m9=$6.RegExp,b9=V6((function(){var e=m9("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),w9=b9||V6((function(){return!m9("a","y").sticky})),E9={BROKEN_CARET:b9||V6((function(){var e=m9("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:w9,UNSUPPORTED_Y:b9},x9=$6.RegExp,S9=V6((function(){var e=x9(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),C9=$6.RegExp,D9=V6((function(){var e=C9("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),O9=B5.get,A9=I3("native-string-replace",String.prototype.replace),k9=RegExp.prototype.exec,B9=k9,_9=n3("".charAt),F9=n3("".indexOf),T9=n3("".replace),P9=n3("".slice),j9=(g9=/b*/g,G6(k9,h9=/a/,"a"),G6(k9,g9,"a"),0!==h9.lastIndex||0!==g9.lastIndex),N9=E9.BROKEN_CARET,I9=void 0!==/()??/.exec("")[1];(j9||I9||N9||S9||D9)&&(B9=function(e){var t,n,r,o,i,a,u,s=this,l=O9(s),c=m8(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=G6(B9,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=N9&&s.sticky,h=G6(y9,s),g=s.source,v=0,y=c;if(p&&(h=T9(h,"y",""),-1===F9(h,"g")&&(h+="g"),y=P9(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==_9(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),I9&&(n=new RegExp("^"+g+"$(?!\\s)",h)),j9&&(r=s.lastIndex),o=G6(k9,p?n:s,y),p?o?(o.input=P9(o.input,v),o[0]=P9(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:j9&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),I9&&o&&o.length>1&&G6(A9,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=U8(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var R9=B9;c8({target:"RegExp",proto:!0,forced:/./.exec!==R9},{exec:R9});var L9=Function.prototype,M9=L9.apply,z9=L9.bind,U9=L9.call,H9="object"==typeof Reflect&&Reflect.apply||(z9?U9.bind(M9):function(){return U9.apply(M9,arguments)}),$9=(Y3("species"),RegExp.prototype),V9=n3("".charAt),W9=n3("".charCodeAt),q9=n3("".slice),G9=function(e){return function(t,n){var r,o,i=m8(c3(t)),a=R5(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=W9(i,a))<55296||r>56319||a+1===u||(o=W9(i,a+1))<56320||o>57343?e?V9(i,a):r:e?q9(i,a,a+2):o-56320+(r-55296<<10)+65536}},K9={codeAt:G9(!1),charAt:G9(!0)},Y9=K9.charAt,X9=function(e,t,n){return t+(n?Y9(e,t).length:1)},Z9=Math.floor,J9=n3("".charAt),Q9=n3("".replace),e7=n3("".slice),t7=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,n7=/\$([$&'`]|\d{1,2})/g,r7=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=n7;return void 0!==o&&(o=L3(o),s=t7),Q9(i,s,(function(i,s){var l;switch(J9(s,0)){case"$":return"$";case"&":return e;case"`":return e7(t,0,n);case"'":return e7(t,a);case"<":l=o[e7(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=Z9(c/10);return 0===f?i:f<=u?void 0===r[f-1]?J9(s,1):r[f-1]+J9(s,1):i}l=r[c-1]}return void 0===l?"":l}))},o7=$6.TypeError,i7=function(e,t){var n=e.exec;if(d3(n)){var r=G6(n,e,t);return null!==r&&u5(r),r}if("RegExp"===i3(e))return G6(R9,e,t);throw o7("RegExp#exec called on incompatible receiver")},a7=Y3("replace"),u7=Math.max,s7=Math.min,l7=n3([].concat),c7=n3([].push),f7=n3("".indexOf),d7=n3("".slice),p7="$0"==="a".replace(/./,"$0"),h7=!!/./[a7]&&""===/./[a7]("a","$0");function g7(e){return void 0===e&&(e="r"),e+"-"+lh()}!function(e,t,n,r){var o=Y3(e),i=!V6((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!V6((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=n3(/./[o]),s=function(e,t,n){var r=h7?"$":"$0";return[function(e,n){var r=c3(this),o=null==e?void 0:F3(e,a7);return o?G6(o,e,r,n):G6(t,m8(r),e,n)},function(e,o){var i=u5(this),a=m8(e);if("string"==typeof o&&-1===f7(o,r)&&-1===f7(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=d3(o);s||(o=m8(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=i7(i,a);if(null===d)break;if(c7(f,d),!l)break;""===m8(d[0])&&(i.lastIndex=X9(a,H5(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=m8((d=f[v])[0]),m=u7(s7(R5(d.index),a.length),0),b=[],w=1;w<d.length;w++)c7(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=l7([y],b,m,a);void 0!==E&&c7(x,E);var S=m8(H9(o,void 0,x))}else S=r7(y,a,m,b,E,o);m>=g&&(h+=d7(a,g,m)+S,g=m+y.length)}return h+d7(a,g)}]}(0,""[e],(function(e,t,n,r,o){var a=n3(e),s=t.exec;return s===R9||s===$9.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));j5(String.prototype,e,s[0]),j5($9,o,s[1])}}("replace",0,!!V6((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!p7||h7);var v7=$6.Promise,y7=function(e,t,n){for(var r in t)j5(e,r,t[r],n);return e},m7=$6.String,b7=$6.TypeError,w7=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=n3(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return u5(n),function(e){if("object"==typeof e||d3(e))return e;throw b7("Can't set "+m7(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),E7=c5.f,x7=Y3("toStringTag"),S7=function(e,t,n){e&&!z3(e=n?e:e.prototype,x7)&&E7(e,x7,{configurable:!0,value:t})},C7=Y3("species"),D7=$6.TypeError,O7=function(e,t){if(v3(t,e))return e;throw D7("Incorrect invocation")},A7={},k7=Y3("iterator"),B7=Array.prototype,_7=Y3("iterator"),F7=function(e){if(null!=e)return F3(e,_7)||F3(e,"@@iterator")||A7[v8(e)]},T7=$6.TypeError,P7=function(e,t,n){var r,o;u5(e);try{if(!(r=F3(e,"return"))){if("throw"===t)throw n;return n}r=G6(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return u5(r),n},j7=$6.TypeError,N7=function(e,t){this.stopped=e,this.result=t},I7=N7.prototype,R7=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=K8(t,f),v=function(e){return r&&P7(r,"normal",e),new N7(!0,e)},y=function(e){return d?(u5(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=F7(e)))throw j7(k3(e)+" is not iterable");if(void 0!==(c=o)&&(A7.Array===c||B7[k7]===c)){for(i=0,a=$5(e);a>i;i++)if((u=y(e[i]))&&v3(I7,u))return u;return new N7(!1)}r=function(e,t){var n=arguments.length<2?F7(e):t;if(_3(n))return u5(G6(n,e));throw T7(k3(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=G6(s,r)).done;){try{u=y(l.value)}catch(e){P7(r,"throw",e)}if("object"==typeof u&&u&&v3(I7,u))return u}return new N7(!1)},L7=Y3("iterator"),M7=!1;try{var z7=0,U7={next:function(){return{done:!!z7++}},return:function(){M7=!0}};U7[L7]=function(){return this},Array.from(U7,(function(){throw 2}))}catch(Ol){}var H7,$7,V7,W7,q7=function(e,t){if(!t&&!M7)return!1;var n=!1;try{var r={};r[L7]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},G7=$6.TypeError,K7=Y3("species"),Y7=n3([].slice),X7=/(?:ipad|iphone|ipod).*applewebkit/i.test(y3),Z7="process"==i3($6.process),J7=$6.setImmediate,Q7=$6.clearImmediate,eee=$6.process,tee=$6.Dispatch,nee=$6.Function,ree=$6.MessageChannel,oee=$6.String,iee=0,aee={};try{H7=$6.location}catch(Ol){}var uee=function(e){if(z3(aee,e)){var t=aee[e];delete aee[e],t()}},see=function(e){return function(){uee(e)}},lee=function(e){uee(e.data)},cee=function(e){$6.postMessage(oee(e),H7.protocol+"//"+H7.host)};J7&&Q7||(J7=function(e){var t=Y7(arguments,1);return aee[++iee]=function(){H9(d3(e)?e:nee(e),void 0,t)},$7(iee),iee},Q7=function(e){delete aee[e]},Z7?$7=function(e){eee.nextTick(see(e))}:tee&&tee.now?$7=function(e){tee.now(see(e))}:ree&&!X7?(W7=(V7=new ree).port2,V7.port1.onmessage=lee,$7=K8(W7.postMessage,W7)):$6.addEventListener&&d3($6.postMessage)&&!$6.importScripts&&H7&&"file:"!==H7.protocol&&!V6(cee)?($7=cee,$6.addEventListener("message",lee,!1)):$7="onreadystatechange"in t5("script")?function(e){N8.appendChild(t5("script")).onreadystatechange=function(){N8.removeChild(this),uee(e)}}:function(e){setTimeout(see(e),0)});var fee,dee,pee,hee,gee,vee,yee,mee,bee={set:J7,clear:Q7},wee=/ipad|iphone|ipod/i.test(y3)&&void 0!==$6.Pebble,Eee=/web0s(?!.*chrome)/i.test(y3),xee=o5.f,See=bee.set,Cee=$6.MutationObserver||$6.WebKitMutationObserver,Dee=$6.document,Oee=$6.process,Aee=$6.Promise,kee=xee($6,"queueMicrotask"),Bee=kee&&kee.value;Bee||(fee=function(){var e,t;for(Z7&&(e=Oee.domain)&&e.exit();dee;){t=dee.fn,dee=dee.next;try{t()}catch(e){throw dee?hee():pee=void 0,e}}pee=void 0,e&&e.enter()},X7||Z7||Eee||!Cee||!Dee?!wee&&Aee&&Aee.resolve?((yee=Aee.resolve(void 0)).constructor=Aee,mee=K8(yee.then,yee),hee=function(){mee(fee)}):Z7?hee=function(){Oee.nextTick(fee)}:(See=K8(See,$6),hee=function(){See(fee)}):(gee=!0,vee=Dee.createTextNode(""),new Cee(fee).observe(vee,{characterData:!0}),hee=function(){vee.data=gee=!gee}));var _ee,Fee,Tee,Pee,jee=Bee||function(e){var t={fn:e,next:void 0};pee&&(pee.next=t),dee||(dee=t,hee()),pee=t},Nee=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=_3(t),this.reject=_3(n)},Iee={f:function(e){return new Nee(e)}},Ree=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Lee="object"==typeof window,Mee=bee.set,zee=Y3("species"),Uee="Promise",Hee=B5.getterFor(Uee),$ee=B5.set,Vee=B5.getterFor(Uee),Wee=v7&&v7.prototype,qee=v7,Gee=Wee,Kee=$6.TypeError,Yee=$6.document,Xee=$6.process,Zee=Iee.f,Jee=Zee,Qee=!!(Yee&&Yee.createEvent&&$6.dispatchEvent),ete=d3($6.PromiseRejectionEvent),tte=!1,nte=s8(Uee,(function(){var e=v5(qee),t=e!==String(qee);if(!t&&66===x3)return!0;if(x3>=51&&/native code/.test(e))return!1;var n=new qee((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[zee]=r,!(tte=n.then((function(){}))instanceof r)||!t&&Lee&&!ete})),rte=nte||!q7((function(e){qee.all(e).catch((function(){}))})),ote=function(e){var t;return!(!p3(e)||!d3(t=e.then))&&t},ite=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;jee((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&&lte(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Kee("Promise-chain cycle")):(u=ote(a))?G6(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ute(e)}))}},ate=function(e,t,n){var r,o;Qee?((r=Yee.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),$6.dispatchEvent(r)):r={promise:t,reason:n},!ete&&(o=$6["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=$6.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},ute=function(e){G6(Mee,$6,(function(){var t,n=e.facade,r=e.value;if(ste(e)&&(t=Ree((function(){Z7?Xee.emit("unhandledRejection",r,n):ate("unhandledrejection",n,r)})),e.rejection=Z7||ste(e)?2:1,t.error))throw t.value}))},ste=function(e){return 1!==e.rejection&&!e.parent},lte=function(e){G6(Mee,$6,(function(){var t=e.facade;Z7?Xee.emit("rejectionHandled",t):ate("rejectionhandled",t,e.value)}))},cte=function(e,t,n){return function(r){e(t,r,n)}},fte=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ite(e,!0))},dte=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Kee("Promise can't be resolved itself");var r=ote(t);r?jee((function(){var n={done:!1};try{G6(r,t,cte(dte,n,e),cte(fte,n,e))}catch(t){fte(n,t,e)}})):(e.value=t,e.state=1,ite(e,!1))}catch(t){fte({done:!1},t,e)}}};if(nte&&(Gee=(qee=function(e){O7(this,Gee),_3(e),G6(_ee,this);var t=Hee(this);try{e(cte(dte,t),cte(fte,t))}catch(e){fte(t,e)}}).prototype,(_ee=function(e){$ee(this,{type:Uee,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=y7(Gee,{then:function(e,t){var n=Vee(this),r=n.reactions,o=Zee(function(e,t){var n,r=u5(e).constructor;return void 0===r||null==(n=u5(r)[K7])?t:function(e){if(r9(e))return e;throw G7(k3(e)+" is not a constructor")}(n)}(this,qee));return o.ok=!d3(e)||e,o.fail=d3(t)&&t,o.domain=Z7?Xee.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&ite(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Fee=function(){var e=new _ee,t=Hee(e);this.promise=e,this.resolve=cte(dte,t),this.reject=cte(fte,t)},Iee.f=Zee=function(e){return e===qee||e===Tee?new Fee(e):Jee(e)},d3(v7)&&Wee!==Object.prototype)){Pee=Wee.then,tte||(j5(Wee,"then",(function(e,t){var n=this;return new qee((function(e,t){G6(Pee,n,e,t)})).then(e,t)}),{unsafe:!0}),j5(Wee,"catch",Gee.catch,{unsafe:!0}));try{delete Wee.constructor}catch(Ol){}w7&&w7(Wee,Gee)}function pte(e,t,n){return void 0===n&&(n=""),N6(this,void 0,void 0,(function(){var r,o,i,a,u,s,l;return I6(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=c.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=c.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){Qf.insertNodes(e,l)})),o(l),[2]}}))}))}function hte(){return g7("w-e-insert-video")}c8({global:!0,wrap:!0,forced:nte},{Promise:qee}),S7(qee,Uee,!1),function(e){var t=g3("Promise"),n=c5.f;W6&&t&&!t[C7]&&n(t,C7,{configurable:!0,get:function(){return this}})}(),Tee=g3(Uee),c8({target:Uee,stat:!0,forced:nte},{reject:function(e){var t=Zee(this);return G6(t.reject,void 0,e),t.promise}}),c8({target:Uee,stat:!0,forced:nte},{resolve:function(e){return function(e,t){if(u5(e),p3(t)&&t.constructor===e)return t;var n=Iee.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),c8({target:Uee,stat:!0,forced:rte},{all:function(e){var t=this,n=Zee(t),r=n.resolve,o=n.reject,i=Ree((function(){var n=_3(t.resolve),i=[],a=0,u=1;R7(e,(function(e){var s=a++,l=!1;u++,G6(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=Zee(t),r=n.reject,o=Ree((function(){var o=_3(t.resolve);R7(e,(function(e){G6(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var gte=function(){function e(){this.title=jT("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=hte(),this.posterInputId=hte(),this.buttonId=hte()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bf.isCollapsed(t)||!!tA.getSelectedElems(e).some((function(t){var n=tA.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=R6(wF(jT("videoModule.videoSrc"),r,jT("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=R6(wF(jT("videoModule.videoPoster"),o,jT("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=hp(s),p=hp(f),h=R6(EF(i,jT("videoModule.ok")),1)[0];if(null==this.$content){var g=hp("<div></div>");g.on("click","#"+i,(function(n){return N6(t,void 0,void 0,(function(){var t,i;return I6(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,pte(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var v=this.$content;return v.empty(),v.append(u),v.append(c),v.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),v[0]},e}(),vte=n3([].join),yte=s3!=Object,mte=function(e,t){var n=[].join;return!!n&&V6((function(){n.call(null,",",1)}))}();c8({target:"Array",proto:!0,forced:yte||!mte},{join:function(e){return vte(f3(this),void 0===e?",":e)}});var bte,wte,Ete,xte=!V6((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ste=w5("IE_PROTO"),Cte=$6.Object,Dte=Cte.prototype,Ote=xte?Cte.getPrototypeOf:function(e){var t=L3(e);if(z3(t,Ste))return t[Ste];var n=t.constructor;return d3(n)&&t instanceof n?n.prototype:t instanceof Cte?Dte:null},Ate=Y3("iterator"),kte=!1;[].keys&&("next"in(Ete=[].keys())?(wte=Ote(Ote(Ete)))!==Object.prototype&&(bte=wte):kte=!0),(null==bte||V6((function(){var e={};return bte[Ate].call(e)!==e})))&&(bte={}),d3(bte[Ate])||j5(bte,Ate,(function(){return this}));var Bte={IteratorPrototype:bte,BUGGY_SAFARI_ITERATORS:kte},_te=Bte.IteratorPrototype,Fte=function(){return this},Tte=P5.PROPER,Pte=P5.CONFIGURABLE,jte=Bte.IteratorPrototype,Nte=Bte.BUGGY_SAFARI_ITERATORS,Ite=Y3("iterator"),Rte=function(){return this},Lte=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=U8(_te,{next:Z6(1,n)}),S7(e,o,!1),A7[o]=Fte}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!Nte&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Ite]||p["@@iterator"]||o&&p[o],g=!Nte&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=Ote(v.call(new e)))!==Object.prototype&&u.next&&(Ote(u)!==jte&&(w7?w7(u,jte):d3(u[Ite])||j5(u,Ite,Rte)),S7(u,f,!0)),Tte&&"values"==o&&h&&"values"!==h.name&&(Pte?f5(p,"name","values"):(d=!0,g=function(){return G6(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Nte||d||!(l in p))&&j5(p,l,s[l]);else c8({target:t,proto:!0,forced:Nte||d},s);return p[Ite]!==g&&j5(p,Ite,g,{name:o}),A7[t]=g,s},Mte=B5.set,zte=B5.getterFor("Array Iterator"),Ute=Lte(Array,"Array",(function(e,t){Mte(this,{type:"Array Iterator",target:f3(e),index:0,kind:t})}),(function(){var e=zte(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");A7.Arguments=A7.Array,V8("keys"),V8("values"),V8("entries");var Hte=K9.charAt,$te=B5.set,Vte=B5.getterFor("String Iterator");Lte(String,"String",(function(e){$te(this,{type:"String Iterator",string:m8(e),index:0})}),(function(){var e,t=Vte(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Hte(n,r),t.index+=e.length,{value:e,done:!1})}));var Wte=function(e,t,n){var r=J3(t);r in e?c5.f(e,r,Z6(0,n)):e[r]=n},qte=$6.Array,Gte=Math.max,Kte=Z5.f,Yte="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xte={f:function(e){return Yte&&"Window"==i3(e)?function(e){try{return Kte(e)}catch(e){return function(e,t,n){for(var r=$5(e),o=z5(void 0,r),i=z5(r,r),a=qte(Gte(i-o,0)),u=0;o<i;o++,u++)Wte(a,u,e[o]);return a.length=u,a}(Yte)}}(e):Kte(f3(e))}},Zte=V6((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Jte=Object.isExtensible,Qte=V6((function(){Jte(1)}))||Zte?function(e){return!!p3(e)&&(!Zte||"ArrayBuffer"!=i3(e))&&(!Jte||Jte(e))}:Jte,ene=!V6((function(){return Object.isExtensible(Object.preventExtensions({}))})),tne=M6((function(e){var t=c5.f,n=!1,r=V3("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=Z5.f,t=n3([].splice),o={};o[r]=1,e(o).length&&(Z5.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},c8({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Xte.f}))},fastKey:function(e,t){if(!p3(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!z3(e,r)){if(!Qte(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!z3(e,r)){if(!Qte(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return ene&&n&&Qte(e)&&!z3(e,r)&&i(e),e}};E5[r]=!0})),nne=tne.getWeakData,rne=B5.set,one=B5.getterFor,ine=l9.find,ane=l9.findIndex,une=n3([].splice),sne=0,lne=function(e){return e.frozen||(e.frozen=new cne)},cne=function(){this.entries=[]},fne=function(e,t){return ine(e.entries,(function(e){return e[0]===t}))};cne.prototype={get:function(e){var t=fne(this,e);if(t)return t[1]},has:function(e){return!!fne(this,e)},set:function(e,t){var n=fne(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=ane(this.entries,(function(t){return t[0]===e}));return~t&&une(this.entries,t,1),!!~t}};var dne,pne={getConstructor:function(e,t,n,r){var o=e((function(e,o){O7(e,i),rne(e,{type:t,id:sne++,frozen:void 0}),null!=o&&R7(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=one(t),u=function(e,t,n){var r=a(e),o=nne(u5(t),!0);return!0===o?lne(r).set(t,n):o[r.id]=n,e};return y7(i,{delete:function(e){var t=a(this);if(!p3(e))return!1;var n=nne(e);return!0===n?lne(t).delete(e):n&&z3(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!p3(e))return!1;var n=nne(e);return!0===n?lne(t).has(e):n&&z3(n,t.id)}}),y7(i,n?{get:function(e){var t=a(this);if(p3(e)){var n=nne(e);return!0===n?lne(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}},hne=B5.enforce,gne=!$6.ActiveXObject&&"ActiveXObject"in $6,vne=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},yne=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=$6[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=n3(u[e]);j5(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!p3(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!p3(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!p3(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(s8(e,!d3(a)||!(o||u.forEach&&!V6((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),tne.enable();else if(s8(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=V6((function(){f.has(1)})),h=q7((function(e){new a(e)})),g=!o&&V6((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){O7(e,u);var n=function(e,t,n){var r,o;return w7&&d3(r=t.constructor)&&r!==n&&p3(o=r.prototype)&&o!==n.prototype&&w7(e,o),e}(new a,e,s);return null!=t&&R7(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,c8({global:!0,forced:s!=a},l),S7(s,e),o||n.setStrong(s,e,r),s}("WeakMap",vne,pne);if(m5&&gne){dne=pne.getConstructor(vne,"WeakMap",!0),tne.enable();var mne=yne.prototype,bne=n3(mne.delete),wne=n3(mne.has),Ene=n3(mne.get),xne=n3(mne.set);y7(mne,{delete:function(e){if(p3(e)&&!Qte(e)){var t=hne(this);return t.frozen||(t.frozen=new dne),bne(this,e)||t.frozen.delete(e)}return bne(this,e)},has:function(e){if(p3(e)&&!Qte(e)){var t=hne(this);return t.frozen||(t.frozen=new dne),wne(this,e)||t.frozen.has(e)}return wne(this,e)},get:function(e){if(p3(e)&&!Qte(e)){var t=hne(this);return t.frozen||(t.frozen=new dne),wne(this,e)?Ene(this,e):t.frozen.get(e)}return Ene(this,e)},set:function(e,t){if(p3(e)&&!Qte(e)){var n=hne(this);n.frozen||(n.frozen=new dne),wne(this,e)?xne(this,e,t):n.frozen.set(e,t)}else xne(this,e,t);return this}})}var Sne={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},Cne=t5("span").classList,Dne=Cne&&Cne.constructor&&Cne.constructor.prototype,One=Dne===Object.prototype?void 0:Dne,Ane=Y3("iterator"),kne=Y3("toStringTag"),Bne=Ute.values,_ne=function(e,t){if(e){if(e[Ane]!==Bne)try{f5(e,Ane,Bne)}catch(t){e[Ane]=Bne}if(e[kne]||f5(e,kne,t),Sne[t])for(var n in Ute)if(e[n]!==Ute[n])try{f5(e,n,Ute[n])}catch(t){e[n]=Ute[n]}}};for(var Fne in Sne)_ne($6[Fne]&&$6[Fne].prototype,Fne);_ne(One,"DOMTokenList");var Tne=P5.EXISTS,Pne=c5.f,jne=Function.prototype,Nne=n3(jne.toString),Ine=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Rne=n3(Ine.exec);W6&&!Tne&&Pne(jne,"name",{configurable:!0,get:function(){try{return Rne(Ine,Nne(this))[1]}catch(e){return""}}});var Lne=Y3("species"),Mne=x3>=51||!V6((function(){var e=[];return(e.constructor={})[Lne]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),zne=Y3("species"),Une=$6.Array,Hne=Math.max;function $ne(e){return e.getMenuConfig("uploadVideo")}c8({target:"Array",proto:!0,forced:!Mne},{slice:function(e,t){var n,r,o,i=f3(this),a=$5(i),u=z5(e,a),s=z5(void 0===t?a:t,a);if(Y8(i)&&(n=i.constructor,(r9(n)&&(n===Une||Y8(n.prototype))||p3(n)&&null===(n=n[zne]))&&(n=void 0),n===Une||void 0===n))return Y7(i,u,s);for(r=new(void 0===n?Une:n)(Hne(s-u,0)),o=0;u<s;u++,o++)u in i&&Wte(r,o,i[u]);return r.length=o,r}});var Vne=new WeakMap;function Wne(e,t){return N6(this,void 0,void 0,(function(){var n,r,o,i;return I6(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Vne.get(e);if(null!=t)return t;var n=$ne(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=$F(j6(j6({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return pte(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){var c=l.url,f=void 0===c?"":c,d=l.poster;pte(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Vne.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var qne=function(){function e(){this.title=jT("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return pte(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=hp("body"),s=hp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;N6(this,void 0,void 0,(function(){var o,i,a,u,s,l;return I6(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=$ne(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return pte(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,Wne(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bf.isCollapsed(t)||!!tA.getSelectedElems(e).some((function(t){var n=tA.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),Gne=P5.PROPER,Kne=RegExp.prototype,Yne=Kne.toString,Xne=n3(y9),Zne=V6((function(){return"/a/b"!=Yne.call({source:"a",flags:"b"})})),Jne=Gne&&"toString"!=Yne.name;function Qne(){return g7("w-e-insert-video")}(Zne||Jne)&&j5(RegExp.prototype,"toString",(function(){var e=u5(this),t=m8(e.source),n=e.flags;return"/"+t+"/"+m8(void 0===n&&v3(Kne,e)&&!("flags"in Kne)?Xne(e):n)}),{unsafe:!0});var ere=function(){function e(){this.title=jT("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Qne(),this.heightInputId=Qne(),this.buttonId=Qne()}return e.prototype.getSelectedVideoNode=function(e){return tA.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=R6(wF(jT("videoModule.width"),n,"auto"),2),a=i[0],u=hp(i[1]),s=R6(wF(jT("videoModule.height"),r,"auto"),2),l=s[0],c=hp(s[1]),f=R6(EF(o,jT("videoModule.ok")),1)[0];if(null==this.$content){var d=hp("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",l=u?u.toString():"auto";e.restoreSelection(),Qf.setNodes(e,{width:s,height:l},{match:function(e){return tA.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var g=h.width,v=void 0===g?"auto":g,y=h.height,m=void 0===y?"auto":y;return u.val(v),c.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),tre={renderElems:[F8],elemsToHtml:[T8],preParseHtml:[q8],parseElemsHtml:[v9],menus:[{key:"insertVideo",factory:function(){return new gte},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new qne},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){}}},{key:"editVideoSize",factory:function(){return new ere}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=R6(e,2),o=t[0],i=t[1];return"video"===tA.getNodeType(o)&&tA.isLastNode(r,o)&&Qf.insertNodes(r,tA.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};PT("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),PT("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var nre="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function rre(e){var t={exports:{}};return e(t,t.exports),t.exports}var ore,ire,are=function(e){return e&&e.Math==Math&&e},ure=are("object"==typeof globalThis&&globalThis)||are("object"==typeof window&&window)||are("object"==typeof self&&self)||are("object"==typeof nre&&nre)||function(){return this}()||Function("return this")(),sre=function(e){try{return!!e()}catch(e){return!0}},lre=!sre((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),cre=Function.prototype.call,fre=cre.bind?cre.bind(cre):function(){return cre.apply(cre,arguments)},dre={}.propertyIsEnumerable,pre=Object.getOwnPropertyDescriptor,hre={f:pre&&!dre.call({1:2},1)?function(e){var t=pre(this,e);return!!t&&t.enumerable}:dre},gre=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},vre=Function.prototype,yre=vre.bind,mre=vre.call,bre=yre&&yre.bind(mre),wre=yre?function(e){return e&&bre(mre,e)}:function(e){return e&&function(){return mre.apply(e,arguments)}},Ere=wre({}.toString),xre=wre("".slice),Sre=function(e){return xre(Ere(e),8,-1)},Cre=ure.Object,Dre=wre("".split),Ore=sre((function(){return!Cre("z").propertyIsEnumerable(0)}))?function(e){return"String"==Sre(e)?Dre(e,""):Cre(e)}:Cre,Are=ure.TypeError,kre=function(e){if(null==e)throw Are("Can't call method on "+e);return e},Bre=function(e){return Ore(kre(e))},_re=function(e){return"function"==typeof e},Fre=function(e){return"object"==typeof e?null!==e:_re(e)},Tre=function(e){return _re(e)?e:void 0},Pre=function(e,t){return arguments.length<2?Tre(ure[e]):ure[e]&&ure[e][t]},jre=wre({}.isPrototypeOf),Nre=Pre("navigator","userAgent")||"",Ire=ure.process,Rre=ure.Deno,Lre=Ire&&Ire.versions||Rre&&Rre.version,Mre=Lre&&Lre.v8;Mre&&(ire=(ore=Mre.split("."))[0]>0&&ore[0]<4?1:+(ore[0]+ore[1])),!ire&&Nre&&(!(ore=Nre.match(/Edge\/(\d+)/))||ore[1]>=74)&&(ore=Nre.match(/Chrome\/(\d+)/))&&(ire=+ore[1]);var zre=ire,Ure=!!Object.getOwnPropertySymbols&&!sre((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&zre&&zre<41})),Hre=Ure&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$re=ure.Object,Vre=Hre?function(e){return"symbol"==typeof e}:function(e){var t=Pre("Symbol");return _re(t)&&jre(t.prototype,$re(e))},Wre=ure.String,qre=function(e){try{return Wre(e)}catch(e){return"Object"}},Gre=ure.TypeError,Kre=function(e){if(_re(e))return e;throw Gre(qre(e)+" is not a function")},Yre=function(e,t){var n=e[t];return null==n?void 0:Kre(n)},Xre=ure.TypeError,Zre=Object.defineProperty,Jre=function(e,t){try{Zre(ure,e,{value:t,configurable:!0,writable:!0})}catch(n){ure[e]=t}return t},Qre=ure["__core-js_shared__"]||Jre("__core-js_shared__",{}),eoe=rre((function(e){(e.exports=function(e,t){return Qre[e]||(Qre[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),toe=ure.Object,noe=function(e){return toe(kre(e))},roe=wre({}.hasOwnProperty),ooe=Object.hasOwn||function(e,t){return roe(noe(e),t)},ioe=0,aoe=Math.random(),uoe=wre(1..toString),soe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+uoe(++ioe+aoe,36)},loe=eoe("wks"),coe=ure.Symbol,foe=coe&&coe.for,doe=Hre?coe:coe&&coe.withoutSetter||soe,poe=function(e){if(!ooe(loe,e)||!Ure&&"string"!=typeof loe[e]){var t="Symbol."+e;Ure&&ooe(coe,e)?loe[e]=coe[e]:loe[e]=Hre&&foe?foe(t):doe(t)}return loe[e]},hoe=ure.TypeError,goe=poe("toPrimitive"),voe=function(e){var t=function(e,t){if(!Fre(e)||Vre(e))return e;var n,r=Yre(e,goe);if(r){if(void 0===t&&(t="default"),n=fre(r,e,t),!Fre(n)||Vre(n))return n;throw hoe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&_re(n=e.toString)&&!Fre(r=fre(n,e)))return r;if(_re(n=e.valueOf)&&!Fre(r=fre(n,e)))return r;if("string"!==t&&_re(n=e.toString)&&!Fre(r=fre(n,e)))return r;throw Xre("Can't convert object to primitive value")}(e,t)}(e,"string");return Vre(t)?t:t+""},yoe=ure.document,moe=Fre(yoe)&&Fre(yoe.createElement),boe=function(e){return moe?yoe.createElement(e):{}},woe=!lre&&!sre((function(){return 7!=Object.defineProperty(boe("div"),"a",{get:function(){return 7}}).a})),Eoe=Object.getOwnPropertyDescriptor,xoe={f:lre?Eoe:function(e,t){if(e=Bre(e),t=voe(t),woe)try{return Eoe(e,t)}catch(e){}if(ooe(e,t))return gre(!fre(hre.f,e,t),e[t])}},Soe=ure.String,Coe=ure.TypeError,Doe=function(e){if(Fre(e))return e;throw Coe(Soe(e)+" is not an object")},Ooe=ure.TypeError,Aoe=Object.defineProperty,koe={f:lre?Aoe:function(e,t,n){if(Doe(e),t=voe(t),Doe(n),woe)try{return Aoe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ooe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Boe=lre?function(e,t,n){return koe.f(e,t,gre(1,n))}:function(e,t,n){return e[t]=n,e},_oe=wre(Function.toString);_re(Qre.inspectSource)||(Qre.inspectSource=function(e){return _oe(e)});var Foe,Toe,Poe,joe=Qre.inspectSource,Noe=ure.WeakMap,Ioe=_re(Noe)&&/native code/.test(joe(Noe)),Roe=eoe("keys"),Loe=function(e){return Roe[e]||(Roe[e]=soe(e))},Moe={},zoe=ure.TypeError,Uoe=ure.WeakMap;if(Ioe||Qre.state){var Hoe=Qre.state||(Qre.state=new Uoe),$oe=wre(Hoe.get),Voe=wre(Hoe.has),Woe=wre(Hoe.set);Foe=function(e,t){if(Voe(Hoe,e))throw new zoe("Object already initialized");return t.facade=e,Woe(Hoe,e,t),t},Toe=function(e){return $oe(Hoe,e)||{}},Poe=function(e){return Voe(Hoe,e)}}else{var qoe=Loe("state");Moe[qoe]=!0,Foe=function(e,t){if(ooe(e,qoe))throw new zoe("Object already initialized");return t.facade=e,Boe(e,qoe,t),t},Toe=function(e){return ooe(e,qoe)?e[qoe]:{}},Poe=function(e){return ooe(e,qoe)}}var Goe={set:Foe,get:Toe,has:Poe,enforce:function(e){return Poe(e)?Toe(e):Foe(e,{})},getterFor:function(e){return function(t){var n;if(!Fre(t)||(n=Toe(t)).type!==e)throw zoe("Incompatible receiver, "+e+" required");return n}}},Koe=Function.prototype,Yoe=lre&&Object.getOwnPropertyDescriptor,Xoe=ooe(Koe,"name"),Zoe={EXISTS:Xoe,PROPER:Xoe&&"something"===function(){}.name,CONFIGURABLE:Xoe&&(!lre||lre&&Yoe(Koe,"name").configurable)},Joe=rre((function(e){var t=Zoe.CONFIGURABLE,n=Goe.get,r=Goe.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;_re(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ooe(i,"name")||t&&i.name!==f)&&Boe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==ure?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Boe(e,n,i)):l?e[n]=i:Jre(n,i)})(Function.prototype,"toString",(function(){return _re(this)&&n(this).source||joe(this)}))})),Qoe=Math.ceil,eie=Math.floor,tie=function(e){var t=+e;return t!=t||0===t?0:(t>0?eie:Qoe)(t)},nie=Math.max,rie=Math.min,oie=function(e,t){var n=tie(e);return n<0?nie(n+t,0):rie(n,t)},iie=Math.min,aie=function(e){return e>0?iie(tie(e),9007199254740991):0},uie=function(e){return aie(e.length)},sie=function(e){return function(t,n,r){var o,i=Bre(t),a=uie(i),u=oie(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}},lie=(sie(!0),sie(!1)),cie=wre([].push),fie=function(e,t){var n,r=Bre(e),o=0,i=[];for(n in r)!ooe(Moe,n)&&ooe(r,n)&&cie(i,n);for(;t.length>o;)ooe(r,n=t[o++])&&(~lie(i,n)||cie(i,n));return i},die=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],pie=die.concat("length","prototype"),hie={f:Object.getOwnPropertyNames||function(e){return fie(e,pie)}},gie={f:Object.getOwnPropertySymbols},vie=wre([].concat),yie=Pre("Reflect","ownKeys")||function(e){var t=hie.f(Doe(e)),n=gie.f;return n?vie(t,n(e)):t},mie=function(e,t){for(var n=yie(t),r=koe.f,o=xoe.f,i=0;i<n.length;i++){var a=n[i];ooe(e,a)||r(e,a,o(t,a))}},bie=/#|\.prototype\./,wie=function(e,t){var n=xie[Eie(e)];return n==Cie||n!=Sie&&(_re(t)?sre(t):!!t)},Eie=wie.normalize=function(e){return String(e).replace(bie,".").toLowerCase()},xie=wie.data={},Sie=wie.NATIVE="N",Cie=wie.POLYFILL="P",Die=wie,Oie=xoe.f,Aie=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?ure:l?ure[u]||Jre(u,{}):(ure[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Oie(n,r))&&a.value:n[r],!Die(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;mie(i,o)}(e.sham||o&&o.sham)&&Boe(i,"sham",!0),Joe(n,r,i,e)}},kie=Array.isArray||function(e){return"Array"==Sre(e)},Bie={};Bie[poe("toStringTag")]="z";var _ie="[object z]"===String(Bie),Fie=poe("toStringTag"),Tie=ure.Object,Pie="Arguments"==Sre(function(){return arguments}()),jie=_ie?Sre: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=Tie(e),Fie))?n:Pie?Sre(t):"Object"==(r=Sre(t))&&_re(t.callee)?"Arguments":r},Nie=function(){},Iie=[],Rie=Pre("Reflect","construct"),Lie=/^\s*(?:class|function)\b/,Mie=wre(Lie.exec),zie=!Lie.exec(Nie),Uie=function(e){if(!_re(e))return!1;try{return Rie(Nie,Iie,e),!0}catch(e){return!1}},Hie=!Rie||sre((function(){var e;return Uie(Uie.call)||!Uie(Object)||!Uie((function(){e=!0}))||e}))?function(e){if(!_re(e))return!1;switch(jie(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return zie||!!Mie(Lie,joe(e))}:Uie,$ie=function(e,t,n){var r=voe(t);r in e?koe.f(e,r,gre(0,n)):e[r]=n},Vie=poe("species"),Wie=wre([].slice),qie=zre>=51||!sre((function(){var e=[];return(e.constructor={})[Vie]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Gie=poe("species"),Kie=ure.Array,Yie=Math.max;Aie({target:"Array",proto:!0,forced:!qie},{slice:function(e,t){var n,r,o,i=Bre(this),a=uie(i),u=oie(e,a),s=oie(void 0===t?a:t,a);if(kie(i)&&(n=i.constructor,(Hie(n)&&(n===Kie||kie(n.prototype))||Fre(n)&&null===(n=n[Gie]))&&(n=void 0),n===Kie||void 0===n))return Wie(i,u,s);for(r=new(void 0===n?Kie:n)(Yie(s-u,0)),o=0;u<s;u++,o++)u in i&&$ie(r,o,i[u]);return r.length=o,r}});var Xie=_ie?{}.toString:function(){return"[object "+jie(this)+"]"};_ie||Joe(Object.prototype,"toString",Xie,{unsafe:!0});var Zie,Jie=ure.String,Qie=function(e){if("Symbol"===jie(e))throw TypeError("Cannot convert a Symbol value to a string");return Jie(e)},eae=function(){var e=Doe(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},tae=ure.RegExp,nae=sre((function(){var e=tae("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),rae=nae||sre((function(){return!tae("a","y").sticky})),oae={BROKEN_CARET:nae||sre((function(){var e=tae("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:rae,UNSUPPORTED_Y:nae},iae=Object.keys||function(e){return fie(e,die)},aae=lre?Object.defineProperties:function(e,t){Doe(e);for(var n,r=Bre(t),o=iae(t),i=o.length,a=0;i>a;)koe.f(e,n=o[a++],r[n]);return e},uae=Pre("document","documentElement"),sae=Loe("IE_PROTO"),lae=function(){},cae=function(e){return"<script>"+e+"<\/script>"},fae=function(e){e.write(cae("")),e.close();var t=e.parentWindow.Object;return e=null,t},dae=function(){try{Zie=new ActiveXObject("htmlfile")}catch(e){}var e,t;dae="undefined"!=typeof document?document.domain&&Zie?fae(Zie):((t=boe("iframe")).style.display="none",uae.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(cae("document.F=Object")),e.close(),e.F):fae(Zie);for(var n=die.length;n--;)delete dae.prototype[die[n]];return dae()};Moe[sae]=!0;var pae,hae,gae=Object.create||function(e,t){var n;return null!==e?(lae.prototype=Doe(e),n=new lae,lae.prototype=null,n[sae]=e):n=dae(),void 0===t?n:aae(n,t)},vae=ure.RegExp,yae=sre((function(){var e=vae(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),mae=ure.RegExp,bae=sre((function(){var e=mae("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),wae=Goe.get,Eae=eoe("native-string-replace",String.prototype.replace),xae=RegExp.prototype.exec,Sae=xae,Cae=wre("".charAt),Dae=wre("".indexOf),Oae=wre("".replace),Aae=wre("".slice),kae=(hae=/b*/g,fre(xae,pae=/a/,"a"),fre(xae,hae,"a"),0!==pae.lastIndex||0!==hae.lastIndex),Bae=oae.BROKEN_CARET,_ae=void 0!==/()??/.exec("")[1];(kae||_ae||Bae||yae||bae)&&(Sae=function(e){var t,n,r,o,i,a,u,s=this,l=wae(s),c=Qie(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=fre(Sae,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Bae&&s.sticky,h=fre(eae,s),g=s.source,v=0,y=c;if(p&&(h=Oae(h,"y",""),-1===Dae(h,"g")&&(h+="g"),y=Aae(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Cae(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),_ae&&(n=new RegExp("^"+g+"$(?!\\s)",h)),kae&&(r=s.lastIndex),o=fre(xae,p?n:s,y),p?o?(o.input=Aae(o.input,v),o[0]=Aae(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:kae&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),_ae&&o&&o.length>1&&fre(Eae,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=gae(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Fae=Sae;Aie({target:"RegExp",proto:!0,forced:/./.exec!==Fae},{exec:Fae});var Tae=Function.prototype,Pae=Tae.apply,jae=Tae.bind,Nae=Tae.call,Iae="object"==typeof Reflect&&Reflect.apply||(jae?Nae.bind(Pae):function(){return Nae.apply(Pae,arguments)}),Rae=poe("species"),Lae=RegExp.prototype,Mae=poe("match"),zae=ure.TypeError,Uae=poe("species"),Hae=function(e,t){var n,r=Doe(e).constructor;return void 0===r||null==(n=Doe(r)[Uae])?t:function(e){if(Hie(e))return e;throw zae(qre(e)+" is not a constructor")}(n)},$ae=wre("".charAt),Vae=wre("".charCodeAt),Wae=wre("".slice),qae=function(e){return function(t,n){var r,o,i=Qie(kre(t)),a=tie(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Vae(i,a))<55296||r>56319||a+1===u||(o=Vae(i,a+1))<56320||o>57343?e?$ae(i,a):r:e?Wae(i,a,a+2):o-56320+(r-55296<<10)+65536}},Gae={codeAt:qae(!1),charAt:qae(!0)},Kae=Gae.charAt,Yae=function(e,t,n){return t+(n?Kae(e,t).length:1)},Xae=ure.Array,Zae=Math.max,Jae=function(e,t,n){for(var r=uie(e),o=oie(t,r),i=oie(void 0===n?r:n,r),a=Xae(Zae(i-o,0)),u=0;o<i;o++,u++)$ie(a,u,e[o]);return a.length=u,a},Qae=ure.TypeError,eue=function(e,t){var n=e.exec;if(_re(n)){var r=fre(n,e,t);return null!==r&&Doe(r),r}if("RegExp"===Sre(e))return fre(Fae,e,t);throw Qae("RegExp#exec called on incompatible receiver")},tue=oae.UNSUPPORTED_Y,nue=Math.min,rue=[].push,oue=wre(/./.exec),iue=wre(rue),aue=wre("".slice);!function(e,t,n,r){var o=poe(e),i=!sre((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!sre((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Rae]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=wre(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=Qie(kre(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Fre(r=e)||!(void 0!==(o=r[Mae])?o:"RegExp"==Sre(r)))return fre(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=fre(Fae,p,i))&&!((s=p.lastIndex)>d&&(iue(c,aue(i,d,u.index)),u.length>1&&u.index<i.length&&Iae(rue,c,Jae(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&oue(p,"")||iue(c,""):iue(c,aue(i,d)),c.length>a?Jae(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:fre(t,this,e,n)}:t,[function(t,n){var o=kre(this),i=null==t?void 0:Yre(t,e);return i?fre(i,t,o,n):fre(r,Qie(o),t,n)},function(e,o){var i=Doe(this),a=Qie(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=Hae(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(tue?"g":"y"),f=new s(tue?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===eue(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=tue?0:h;var v,y=eue(f,tue?aue(a,h):a);if(null===y||(v=nue(aie(f.lastIndex+(tue?h:0)),a.length))===p)h=Yae(a,h,l);else{if(iue(g,aue(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(iue(g,y[m]),g.length===d)return g;h=p=v}}return iue(g,aue(a,p)),g}]}(o,""[e],(function(e,t,n,r,o){var a=wre(e),s=t.exec;return s===Fae||s===Lae.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Joe(String.prototype,e,s[0]),Joe(Lae,o,s[1])}r&&Boe(Lae[o],"sham",!0)}("split",0,!!sre((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]})),tue);var uue=function(){return(uue=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}).apply(this,arguments)};function sue(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 lue(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var cue=poe("unscopables"),fue=Array.prototype;null==fue[cue]&&koe.f(fue,cue,{configurable:!0,value:gae(null)});var due,pue,hue,gue=function(e){fue[cue][e]=!0},vue={},yue=!sre((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),mue=Loe("IE_PROTO"),bue=ure.Object,wue=bue.prototype,Eue=yue?bue.getPrototypeOf:function(e){var t=noe(e);if(ooe(t,mue))return t[mue];var n=t.constructor;return _re(n)&&t instanceof n?n.prototype:t instanceof bue?wue:null},xue=poe("iterator"),Sue=!1;[].keys&&("next"in(hue=[].keys())?(pue=Eue(Eue(hue)))!==Object.prototype&&(due=pue):Sue=!0),(null==due||sre((function(){var e={};return due[xue].call(e)!==e})))&&(due={}),_re(due[xue])||Joe(due,xue,(function(){return this}));var Cue={IteratorPrototype:due,BUGGY_SAFARI_ITERATORS:Sue},Due=koe.f,Oue=poe("toStringTag"),Aue=function(e,t,n){e&&!ooe(e=n?e:e.prototype,Oue)&&Due(e,Oue,{configurable:!0,value:t})},kue=Cue.IteratorPrototype,Bue=function(){return this},_ue=ure.String,Fue=ure.TypeError,Tue=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=wre(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Doe(n),function(e){if("object"==typeof e||_re(e))return e;throw Fue("Can't set "+_ue(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Pue=Zoe.PROPER,jue=Zoe.CONFIGURABLE,Nue=Cue.IteratorPrototype,Iue=Cue.BUGGY_SAFARI_ITERATORS,Rue=poe("iterator"),Lue=function(){return this},Mue=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=gae(kue,{next:gre(1,n)}),Aue(e,o,!1),vue[o]=Bue}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!Iue&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Rue]||p["@@iterator"]||o&&p[o],g=!Iue&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=Eue(v.call(new e)))!==Object.prototype&&u.next&&(Eue(u)!==Nue&&(Tue?Tue(u,Nue):_re(u[Rue])||Joe(u,Rue,Lue)),Aue(u,f,!0)),Pue&&"values"==o&&h&&"values"!==h.name&&(jue?Boe(p,"name","values"):(d=!0,g=function(){return fre(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Iue||d||!(l in p))&&Joe(p,l,s[l]);else Aie({target:t,proto:!0,forced:Iue||d},s);return p[Rue]!==g&&Joe(p,Rue,g,{name:o}),vue[t]=g,s},zue=Goe.set,Uue=Goe.getterFor("Array Iterator"),Hue=Mue(Array,"Array",(function(e,t){zue(this,{type:"Array Iterator",target:Bre(e),index:0,kind:t})}),(function(){var e=Uue(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");vue.Arguments=vue.Array,gue("keys"),gue("values"),gue("entries");var $ue=Gae.charAt,Vue=Goe.set,Wue=Goe.getterFor("String Iterator");Mue(String,"String",(function(e){Vue(this,{type:"String Iterator",string:Qie(e),index:0})}),(function(){var e,t=Wue(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=$ue(n,r),t.index+=e.length,{value:e,done:!1})}));var que=function(e,t,n){for(var r in t)Joe(e,r,t[r],n);return e},Gue=hie.f,Kue="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Yue={f:function(e){return Kue&&"Window"==Sre(e)?function(e){try{return Gue(e)}catch(e){return Jae(Kue)}}(e):Gue(Bre(e))}},Xue=sre((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Zue=Object.isExtensible,Jue=sre((function(){Zue(1)}))||Xue?function(e){return!!Fre(e)&&(!Xue||"ArrayBuffer"!=Sre(e))&&(!Zue||Zue(e))}:Zue,Que=!sre((function(){return Object.isExtensible(Object.preventExtensions({}))})),ese=rre((function(e){var t=koe.f,n=!1,r=soe("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=hie.f,t=wre([].splice),o={};o[r]=1,e(o).length&&(hie.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},Aie({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Yue.f}))},fastKey:function(e,t){if(!Fre(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!ooe(e,r)){if(!Jue(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!ooe(e,r)){if(!Jue(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Que&&n&&Jue(e)&&!ooe(e,r)&&i(e),e}};Moe[r]=!0})),tse=wre(wre.bind),nse=function(e,t){return Kre(e),void 0===t?e:tse?tse(e,t):function(){return e.apply(t,arguments)}},rse=poe("iterator"),ose=Array.prototype,ise=poe("iterator"),ase=function(e){if(null!=e)return Yre(e,ise)||Yre(e,"@@iterator")||vue[jie(e)]},use=ure.TypeError,sse=function(e,t,n){var r,o;Doe(e);try{if(!(r=Yre(e,"return"))){if("throw"===t)throw n;return n}r=fre(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Doe(r),n},lse=ure.TypeError,cse=function(e,t){this.stopped=e,this.result=t},fse=cse.prototype,dse=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=nse(t,f),v=function(e){return r&&sse(r,"normal",e),new cse(!0,e)},y=function(e){return d?(Doe(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=ase(e)))throw lse(qre(e)+" is not iterable");if(void 0!==(c=o)&&(vue.Array===c||ose[rse]===c)){for(i=0,a=uie(e);a>i;i++)if((u=y(e[i]))&&jre(fse,u))return u;return new cse(!1)}r=function(e,t){var n=arguments.length<2?ase(e):t;if(Kre(n))return Doe(fre(n,e));throw use(qre(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=fre(s,r)).done;){try{u=y(l.value)}catch(e){sse(r,"throw",e)}if("object"==typeof u&&u&&jre(fse,u))return u}return new cse(!1)},pse=ure.TypeError,hse=function(e,t){if(jre(t,e))return e;throw pse("Incorrect invocation")},gse=poe("iterator"),vse=!1;try{var yse=0,mse={next:function(){return{done:!!yse++}},return:function(){vse=!0}};mse[gse]=function(){return this},Array.from(mse,(function(){throw 2}))}catch(Ol){}var bse=function(e,t){if(!t&&!vse)return!1;var n=!1;try{var r={};r[gse]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},wse=poe("species"),Ese=ure.Array,xse=function(e,t){return new(function(e){var t;return kie(e)&&(t=e.constructor,(Hie(t)&&(t===Ese||kie(t.prototype))||Fre(t)&&null===(t=t[wse]))&&(t=void 0)),void 0===t?Ese:t}(e))(0===t?0:t)},Sse=wre([].push),Cse=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=noe(s),g=Ore(h),v=nse(l,c),y=uie(g),m=0,b=f||xse,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Sse(w,d)}else switch(e){case 4:return!1;case 7:Sse(w,d)}return i?-1:r||o?o:w}},Dse={forEach:Cse(0),map:Cse(1),filter:Cse(2),some:Cse(3),every:Cse(4),find:Cse(5),findIndex:Cse(6),filterReject:Cse(7)},Ose=ese.getWeakData,Ase=Goe.set,kse=Goe.getterFor,Bse=Dse.find,_se=Dse.findIndex,Fse=wre([].splice),Tse=0,Pse=function(e){return e.frozen||(e.frozen=new jse)},jse=function(){this.entries=[]},Nse=function(e,t){return Bse(e.entries,(function(e){return e[0]===t}))};jse.prototype={get:function(e){var t=Nse(this,e);if(t)return t[1]},has:function(e){return!!Nse(this,e)},set:function(e,t){var n=Nse(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=_se(this.entries,(function(t){return t[0]===e}));return~t&&Fse(this.entries,t,1),!!~t}};var Ise,Rse={getConstructor:function(e,t,n,r){var o=e((function(e,o){hse(e,i),Ase(e,{type:t,id:Tse++,frozen:void 0}),null!=o&&dse(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=kse(t),u=function(e,t,n){var r=a(e),o=Ose(Doe(t),!0);return!0===o?Pse(r).set(t,n):o[r.id]=n,e};return que(i,{delete:function(e){var t=a(this);if(!Fre(e))return!1;var n=Ose(e);return!0===n?Pse(t).delete(e):n&&ooe(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Fre(e))return!1;var n=Ose(e);return!0===n?Pse(t).has(e):n&&ooe(n,t.id)}}),que(i,n?{get:function(e){var t=a(this);if(Fre(e)){var n=Ose(e);return!0===n?Pse(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}},Lse=Goe.enforce,Mse=!ure.ActiveXObject&&"ActiveXObject"in ure,zse=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Use=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=ure[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=wre(u[e]);Joe(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Fre(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Fre(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Fre(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Die(e,!_re(a)||!(o||u.forEach&&!sre((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),ese.enable();else if(Die(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=sre((function(){f.has(1)})),h=bse((function(e){new a(e)})),g=!o&&sre((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){hse(e,u);var n=function(e,t,n){var r,o;return Tue&&_re(r=t.constructor)&&r!==n&&Fre(o=r.prototype)&&o!==n.prototype&&Tue(e,o),e}(new a,e,s);return null!=t&&dse(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Aie({global:!0,forced:s!=a},l),Aue(s,e),o||n.setStrong(s,e,r),s}("WeakMap",zse,Rse);if(Ioe&&Mse){Ise=Rse.getConstructor(zse,"WeakMap",!0),ese.enable();var Hse=Use.prototype,$se=wre(Hse.delete),Vse=wre(Hse.has),Wse=wre(Hse.get),qse=wre(Hse.set);que(Hse,{delete:function(e){if(Fre(e)&&!Jue(e)){var t=Lse(this);return t.frozen||(t.frozen=new Ise),$se(this,e)||t.frozen.delete(e)}return $se(this,e)},has:function(e){if(Fre(e)&&!Jue(e)){var t=Lse(this);return t.frozen||(t.frozen=new Ise),Vse(this,e)||t.frozen.has(e)}return Vse(this,e)},get:function(e){if(Fre(e)&&!Jue(e)){var t=Lse(this);return t.frozen||(t.frozen=new Ise),Vse(this,e)?Wse(this,e):t.frozen.get(e)}return Wse(this,e)},set:function(e,t){if(Fre(e)&&!Jue(e)){var n=Lse(this);n.frozen||(n.frozen=new Ise),Vse(this,e)?qse(this,e,t):n.frozen.set(e,t)}else qse(this,e,t);return this}})}var Gse={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},Kse=boe("span").classList,Yse=Kse&&Kse.constructor&&Kse.constructor.prototype,Xse=Yse===Object.prototype?void 0:Yse,Zse=poe("iterator"),Jse=poe("toStringTag"),Qse=Hue.values,ele=function(e,t){if(e){if(e[Zse]!==Qse)try{Boe(e,Zse,Qse)}catch(t){e[Zse]=Qse}if(e[Jse]||Boe(e,Jse,t),Gse[t])for(var n in Hue)if(e[n]!==Hue[n])try{Boe(e,n,Hue[n])}catch(t){e[n]=Hue[n]}}};for(var tle in Gse)ele(ure[tle]&&ure[tle].prototype,tle);ele(Xse,"DOMTokenList");var nle=function(e,t){var n=[][e];return!!n&&sre((function(){n.call(null,t||function(){throw 1},1)}))},rle=Dse.forEach,ole=nle("forEach")?[].forEach:function(e){return rle(this,e,arguments.length>1?arguments[1]:void 0)},ile=function(e){if(e&&e.forEach!==ole)try{Boe(e,"forEach",ole)}catch(t){e.forEach=ole}};for(var ale in Gse)Gse[ale]&&ile(ure[ale]&&ure[ale].prototype);ile(Xse);var ule,sle,lle,cle,fle=ure.Promise,dle=poe("species"),ple=/(?:ipad|iphone|ipod).*applewebkit/i.test(Nre),hle="process"==Sre(ure.process),gle=ure.setImmediate,vle=ure.clearImmediate,yle=ure.process,mle=ure.Dispatch,ble=ure.Function,wle=ure.MessageChannel,Ele=ure.String,xle=0,Sle={};try{ule=ure.location}catch(Ol){}var Cle=function(e){if(ooe(Sle,e)){var t=Sle[e];delete Sle[e],t()}},Dle=function(e){return function(){Cle(e)}},Ole=function(e){Cle(e.data)},Ale=function(e){ure.postMessage(Ele(e),ule.protocol+"//"+ule.host)};gle&&vle||(gle=function(e){var t=Wie(arguments,1);return Sle[++xle]=function(){Iae(_re(e)?e:ble(e),void 0,t)},sle(xle),xle},vle=function(e){delete Sle[e]},hle?sle=function(e){yle.nextTick(Dle(e))}:mle&&mle.now?sle=function(e){mle.now(Dle(e))}:wle&&!ple?(cle=(lle=new wle).port2,lle.port1.onmessage=Ole,sle=nse(cle.postMessage,cle)):ure.addEventListener&&_re(ure.postMessage)&&!ure.importScripts&&ule&&"file:"!==ule.protocol&&!sre(Ale)?(sle=Ale,ure.addEventListener("message",Ole,!1)):sle="onreadystatechange"in boe("script")?function(e){uae.appendChild(boe("script")).onreadystatechange=function(){uae.removeChild(this),Cle(e)}}:function(e){setTimeout(Dle(e),0)});var kle,Ble,_le,Fle,Tle,Ple,jle,Nle,Ile={set:gle,clear:vle},Rle=/ipad|iphone|ipod/i.test(Nre)&&void 0!==ure.Pebble,Lle=/web0s(?!.*chrome)/i.test(Nre),Mle=xoe.f,zle=Ile.set,Ule=ure.MutationObserver||ure.WebKitMutationObserver,Hle=ure.document,$le=ure.process,Vle=ure.Promise,Wle=Mle(ure,"queueMicrotask"),qle=Wle&&Wle.value;qle||(kle=function(){var e,t;for(hle&&(e=$le.domain)&&e.exit();Ble;){t=Ble.fn,Ble=Ble.next;try{t()}catch(e){throw Ble?Fle():_le=void 0,e}}_le=void 0,e&&e.enter()},ple||hle||Lle||!Ule||!Hle?!Rle&&Vle&&Vle.resolve?((jle=Vle.resolve(void 0)).constructor=Vle,Nle=nse(jle.then,jle),Fle=function(){Nle(kle)}):hle?Fle=function(){$le.nextTick(kle)}:(zle=nse(zle,ure),Fle=function(){zle(kle)}):(Tle=!0,Ple=Hle.createTextNode(""),new Ule(kle).observe(Ple,{characterData:!0}),Fle=function(){Ple.data=Tle=!Tle}));var Gle,Kle,Yle,Xle,Zle=qle||function(e){var t={fn:e,next:void 0};_le&&(_le.next=t),Ble||(Ble=t,Fle()),_le=t},Jle=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=Kre(t),this.reject=Kre(n)},Qle={f:function(e){return new Jle(e)}},ece=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},tce="object"==typeof window,nce=Ile.set,rce=poe("species"),oce="Promise",ice=Goe.getterFor(oce),ace=Goe.set,uce=Goe.getterFor(oce),sce=fle&&fle.prototype,lce=fle,cce=sce,fce=ure.TypeError,dce=ure.document,pce=ure.process,hce=Qle.f,gce=hce,vce=!!(dce&&dce.createEvent&&ure.dispatchEvent),yce=_re(ure.PromiseRejectionEvent),mce=!1,bce=Die(oce,(function(){var e=joe(lce),t=e!==String(lce);if(!t&&66===zre)return!0;if(zre>=51&&/native code/.test(e))return!1;var n=new lce((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[rce]=r,!(mce=n.then((function(){}))instanceof r)||!t&&tce&&!yce})),wce=bce||!bse((function(e){lce.all(e).catch((function(){}))})),Ece=function(e){var t;return!(!Fre(e)||!_re(t=e.then))&&t},xce=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Zle((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&&Oce(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(fce("Promise-chain cycle")):(u=Ece(a))?fre(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Cce(e)}))}},Sce=function(e,t,n){var r,o;vce?((r=dce.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),ure.dispatchEvent(r)):r={promise:t,reason:n},!yce&&(o=ure["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=ure.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Cce=function(e){fre(nce,ure,(function(){var t,n=e.facade,r=e.value;if(Dce(e)&&(t=ece((function(){hle?pce.emit("unhandledRejection",r,n):Sce("unhandledrejection",n,r)})),e.rejection=hle||Dce(e)?2:1,t.error))throw t.value}))},Dce=function(e){return 1!==e.rejection&&!e.parent},Oce=function(e){fre(nce,ure,(function(){var t=e.facade;hle?pce.emit("rejectionHandled",t):Sce("rejectionhandled",t,e.value)}))},Ace=function(e,t,n){return function(r){e(t,r,n)}},kce=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,xce(e,!0))},Bce=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw fce("Promise can't be resolved itself");var r=Ece(t);r?Zle((function(){var n={done:!1};try{fre(r,t,Ace(Bce,n,e),Ace(kce,n,e))}catch(t){kce(n,t,e)}})):(e.value=t,e.state=1,xce(e,!1))}catch(t){kce({done:!1},t,e)}}};if(bce&&(cce=(lce=function(e){hse(this,cce),Kre(e),fre(Gle,this);var t=ice(this);try{e(Ace(Bce,t),Ace(kce,t))}catch(e){kce(t,e)}}).prototype,(Gle=function(e){ace(this,{type:oce,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=que(cce,{then:function(e,t){var n=uce(this),r=n.reactions,o=hce(Hae(this,lce));return o.ok=!_re(e)||e,o.fail=_re(t)&&t,o.domain=hle?pce.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&xce(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Kle=function(){var e=new Gle,t=ice(e);this.promise=e,this.resolve=Ace(Bce,t),this.reject=Ace(kce,t)},Qle.f=hce=function(e){return e===lce||e===Yle?new Kle(e):gce(e)},_re(fle)&&sce!==Object.prototype)){Xle=sce.then,mce||(Joe(sce,"then",(function(e,t){var n=this;return new lce((function(e,t){fre(Xle,n,e,t)})).then(e,t)}),{unsafe:!0}),Joe(sce,"catch",cce.catch,{unsafe:!0}));try{delete sce.constructor}catch(Ol){}Tue&&Tue(sce,cce)}Aie({global:!0,wrap:!0,forced:bce},{Promise:lce}),Aue(lce,oce,!1),function(e){var t=Pre("Promise"),n=koe.f;lre&&t&&!t[dle]&&n(t,dle,{configurable:!0,get:function(){return this}})}(),Yle=Pre(oce),Aie({target:oce,stat:!0,forced:bce},{reject:function(e){var t=hce(this);return fre(t.reject,void 0,e),t.promise}}),Aie({target:oce,stat:!0,forced:bce},{resolve:function(e){return function(e,t){if(Doe(e),Fre(t)&&t.constructor===e)return t;var n=Qle.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Aie({target:oce,stat:!0,forced:wce},{all:function(e){var t=this,n=hce(t),r=n.resolve,o=n.reject,i=ece((function(){var n=Kre(t.resolve),i=[],a=0,u=1;dse(e,(function(e){var s=a++,l=!1;u++,fre(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=hce(t),r=n.reject,o=ece((function(){var o=Kre(t.resolve);dse(e,(function(e){fre(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var _ce=Zoe.PROPER,Fce=RegExp.prototype,Tce=Fce.toString,Pce=wre(eae),jce=sre((function(){return"/a/b"!=Tce.call({source:"a",flags:"b"})})),Nce=_ce&&"toString"!=Tce.name;(jce||Nce)&&Joe(RegExp.prototype,"toString",(function(){var e=Doe(this),t=Qie(e.source),n=e.flags;return"/"+t+"/"+Qie(void 0===n&&jre(Fce,e)&&!("flags"in Fce)?Pce(e):n)}),{unsafe:!0});var Ice=Zoe.EXISTS,Rce=koe.f,Lce=Function.prototype,Mce=wre(Lce.toString),zce=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Uce=wre(zce.exec);lre&&!Ice&&Rce(Lce,"name",{configurable:!0,get:function(){try{return Uce(zce,Mce(this))[1]}catch(e){return""}}});var Hce=new WeakMap;function $ce(e){return e.getMenuConfig("uploadImage")}function Vce(e,t){return sue(this,void 0,void 0,(function(){return lue(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;kz(e,i,t.name,a),n("ok")}}}))]}))}))}function Wce(e,t){return sue(this,void 0,void 0,(function(){var n,r,o,i;return lue(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Hce.get(e);if(null!=t)return t;var n=$ce(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=$F(uue(uue({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return kz(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;kz(e,r,i,void 0===a?"":a)}));else{var c=l.url,f=void 0===c?"":c,d=l.alt,p=void 0===d?"":d,h=l.href;kz(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Hce.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function qce(e,t){var n,r;return sue(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return lue(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=$ce(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,Vce(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return kz(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Wce(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var Gce=wre([].join),Kce=Ore!=Object,Yce=nle("join",",");Aie({target:"Array",proto:!0,forced:Kce||!Yce},{join:function(e){return Gce(Bre(this),void 0===e?",":e)}}),Np&&(hp.fn.append=Np),xp&&(hp.fn.on=xp),Up&&(hp.fn.remove=Up),Ep&&(hp.fn.val=Ep),Wp&&(hp.fn.click=Wp),Ap&&(hp.fn.hide=Ap);var Xce=function(){function e(){this.title=jT("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return Bz(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return kz(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=hp("body"),s=hp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;qce(e,t)}))}},e}(),Zce={menus:[{key:"uploadImage",factory:function(){return new Xce},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(Bz(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?qce(e,o):t(r)}},n}};PT("en",{highLightModule:{selectLang:"Language"}}),PT("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Jce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function Qce(e){var t={exports:{}};return e(t,t.exports),t.exports}var efe,tfe,nfe=function(e){return e&&e.Math==Math&&e},rfe=nfe("object"==typeof globalThis&&globalThis)||nfe("object"==typeof window&&window)||nfe("object"==typeof self&&self)||nfe("object"==typeof Jce&&Jce)||function(){return this}()||Function("return this")(),ofe=Object.defineProperty,ife=function(e,t){try{ofe(rfe,e,{value:t,configurable:!0,writable:!0})}catch(n){rfe[e]=t}return t},afe=rfe["__core-js_shared__"]||ife("__core-js_shared__",{}),ufe=Qce((function(e){(e.exports=function(e,t){return afe[e]||(afe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),sfe=Function.prototype,lfe=sfe.bind,cfe=sfe.call,ffe=lfe&&lfe.bind(cfe),dfe=lfe?function(e){return e&&ffe(cfe,e)}:function(e){return e&&function(){return cfe.apply(e,arguments)}},pfe=rfe.TypeError,hfe=function(e){if(null==e)throw pfe("Can't call method on "+e);return e},gfe=rfe.Object,vfe=function(e){return gfe(hfe(e))},yfe=dfe({}.hasOwnProperty),mfe=Object.hasOwn||function(e,t){return yfe(vfe(e),t)},bfe=0,wfe=Math.random(),Efe=dfe(1..toString),xfe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Efe(++bfe+wfe,36)},Sfe=function(e){return"function"==typeof e},Cfe=function(e){return Sfe(e)?e:void 0},Dfe=function(e,t){return arguments.length<2?Cfe(rfe[e]):rfe[e]&&rfe[e][t]},Ofe=Dfe("navigator","userAgent")||"",Afe=rfe.process,kfe=rfe.Deno,Bfe=Afe&&Afe.versions||kfe&&kfe.version,_fe=Bfe&&Bfe.v8;_fe&&(tfe=(efe=_fe.split("."))[0]>0&&efe[0]<4?1:+(efe[0]+efe[1])),!tfe&&Ofe&&(!(efe=Ofe.match(/Edge\/(\d+)/))||efe[1]>=74)&&(efe=Ofe.match(/Chrome\/(\d+)/))&&(tfe=+efe[1]);var Ffe=tfe,Tfe=function(e){try{return!!e()}catch(e){return!0}},Pfe=!!Object.getOwnPropertySymbols&&!Tfe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ffe&&Ffe<41})),jfe=Pfe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Nfe=ufe("wks"),Ife=rfe.Symbol,Rfe=Ife&&Ife.for,Lfe=jfe?Ife:Ife&&Ife.withoutSetter||xfe,Mfe=function(e){if(!mfe(Nfe,e)||!Pfe&&"string"!=typeof Nfe[e]){var t="Symbol."+e;Pfe&&mfe(Ife,e)?Nfe[e]=Ife[e]:Nfe[e]=jfe&&Rfe?Rfe(t):Lfe(t)}return Nfe[e]},zfe={};zfe[Mfe("toStringTag")]="z";var Ufe="[object z]"===String(zfe),Hfe=!Tfe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),$fe=function(e){return"object"==typeof e?null!==e:Sfe(e)},Vfe=rfe.document,Wfe=$fe(Vfe)&&$fe(Vfe.createElement),qfe=function(e){return Wfe?Vfe.createElement(e):{}},Gfe=!Hfe&&!Tfe((function(){return 7!=Object.defineProperty(qfe("div"),"a",{get:function(){return 7}}).a})),Kfe=rfe.String,Yfe=rfe.TypeError,Xfe=function(e){if($fe(e))return e;throw Yfe(Kfe(e)+" is not an object")},Zfe=Function.prototype.call,Jfe=Zfe.bind?Zfe.bind(Zfe):function(){return Zfe.apply(Zfe,arguments)},Qfe=dfe({}.isPrototypeOf),ede=rfe.Object,tde=jfe?function(e){return"symbol"==typeof e}:function(e){var t=Dfe("Symbol");return Sfe(t)&&Qfe(t.prototype,ede(e))},nde=rfe.String,rde=function(e){try{return nde(e)}catch(e){return"Object"}},ode=rfe.TypeError,ide=function(e){if(Sfe(e))return e;throw ode(rde(e)+" is not a function")},ade=function(e,t){var n=e[t];return null==n?void 0:ide(n)},ude=rfe.TypeError,sde=rfe.TypeError,lde=Mfe("toPrimitive"),cde=function(e){var t=function(e,t){if(!$fe(e)||tde(e))return e;var n,r=ade(e,lde);if(r){if(void 0===t&&(t="default"),n=Jfe(r,e,t),!$fe(n)||tde(n))return n;throw sde("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Sfe(n=e.toString)&&!$fe(r=Jfe(n,e)))return r;if(Sfe(n=e.valueOf)&&!$fe(r=Jfe(n,e)))return r;if("string"!==t&&Sfe(n=e.toString)&&!$fe(r=Jfe(n,e)))return r;throw ude("Can't convert object to primitive value")}(e,t)}(e,"string");return tde(t)?t:t+""},fde=rfe.TypeError,dde=Object.defineProperty,pde={f:Hfe?dde:function(e,t,n){if(Xfe(e),t=cde(t),Xfe(n),Gfe)try{return dde(e,t,n)}catch(e){}if("get"in n||"set"in n)throw fde("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},hde=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},gde=Hfe?function(e,t,n){return pde.f(e,t,hde(1,n))}:function(e,t,n){return e[t]=n,e},vde=dfe(Function.toString);Sfe(afe.inspectSource)||(afe.inspectSource=function(e){return vde(e)});var yde,mde,bde,wde=afe.inspectSource,Ede=rfe.WeakMap,xde=Sfe(Ede)&&/native code/.test(wde(Ede)),Sde=ufe("keys"),Cde=function(e){return Sde[e]||(Sde[e]=xfe(e))},Dde={},Ode=rfe.TypeError,Ade=rfe.WeakMap;if(xde||afe.state){var kde=afe.state||(afe.state=new Ade),Bde=dfe(kde.get),_de=dfe(kde.has),Fde=dfe(kde.set);yde=function(e,t){if(_de(kde,e))throw new Ode("Object already initialized");return t.facade=e,Fde(kde,e,t),t},mde=function(e){return Bde(kde,e)||{}},bde=function(e){return _de(kde,e)}}else{var Tde=Cde("state");Dde[Tde]=!0,yde=function(e,t){if(mfe(e,Tde))throw new Ode("Object already initialized");return t.facade=e,gde(e,Tde,t),t},mde=function(e){return mfe(e,Tde)?e[Tde]:{}},bde=function(e){return mfe(e,Tde)}}var Pde={set:yde,get:mde,has:bde,enforce:function(e){return bde(e)?mde(e):yde(e,{})},getterFor:function(e){return function(t){var n;if(!$fe(t)||(n=mde(t)).type!==e)throw Ode("Incompatible receiver, "+e+" required");return n}}},jde=Function.prototype,Nde=Hfe&&Object.getOwnPropertyDescriptor,Ide=mfe(jde,"name"),Rde={EXISTS:Ide,PROPER:Ide&&"something"===function(){}.name,CONFIGURABLE:Ide&&(!Hfe||Hfe&&Nde(jde,"name").configurable)},Lde=Qce((function(e){var t=Rde.CONFIGURABLE,n=Pde.get,r=Pde.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;Sfe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!mfe(i,"name")||t&&i.name!==f)&&gde(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==rfe?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:gde(e,n,i)):l?e[n]=i:ife(n,i)})(Function.prototype,"toString",(function(){return Sfe(this)&&n(this).source||wde(this)}))})),Mde=dfe({}.toString),zde=dfe("".slice),Ude=function(e){return zde(Mde(e),8,-1)},Hde=Mfe("toStringTag"),$de=rfe.Object,Vde="Arguments"==Ude(function(){return arguments}()),Wde=Ufe?Ude: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=$de(e),Hde))?n:Vde?Ude(t):"Object"==(r=Ude(t))&&Sfe(t.callee)?"Arguments":r},qde=Ufe?{}.toString:function(){return"[object "+Wde(this)+"]"};Ufe||Lde(Object.prototype,"toString",qde,{unsafe:!0});var Gde,Kde={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},Yde=qfe("span").classList,Xde=Yde&&Yde.constructor&&Yde.constructor.prototype,Zde=Xde===Object.prototype?void 0:Xde,Jde=dfe(dfe.bind),Qde=rfe.Object,epe=dfe("".split),tpe=Tfe((function(){return!Qde("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ude(e)?epe(e,""):Qde(e)}:Qde,npe=Math.ceil,rpe=Math.floor,ope=function(e){var t=+e;return t!=t||0===t?0:(t>0?rpe:npe)(t)},ipe=Math.min,ape=function(e){return e>0?ipe(ope(e),9007199254740991):0},upe=function(e){return ape(e.length)},spe=Array.isArray||function(e){return"Array"==Ude(e)},lpe=function(){},cpe=[],fpe=Dfe("Reflect","construct"),dpe=/^\s*(?:class|function)\b/,ppe=dfe(dpe.exec),hpe=!dpe.exec(lpe),gpe=function(e){if(!Sfe(e))return!1;try{return fpe(lpe,cpe,e),!0}catch(e){return!1}},vpe=!fpe||Tfe((function(){var e;return gpe(gpe.call)||!gpe(Object)||!gpe((function(){e=!0}))||e}))?function(e){if(!Sfe(e))return!1;switch(Wde(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return hpe||!!ppe(dpe,wde(e))}:gpe,ype=Mfe("species"),mpe=rfe.Array,bpe=function(e,t){return new(function(e){var t;return spe(e)&&(t=e.constructor,(vpe(t)&&(t===mpe||spe(t.prototype))||$fe(t)&&null===(t=t[ype]))&&(t=void 0)),void 0===t?mpe:t}(e))(0===t?0:t)},wpe=dfe([].push),Epe=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=vfe(s),g=tpe(h),v=function(e,t){return ide(e),void 0===t?e:Jde?Jde(e,t):function(){return e.apply(t,arguments)}}(l,c),y=upe(g),m=0,b=f||bpe,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:wpe(w,d)}else switch(e){case 4:return!1;case 7:wpe(w,d)}return i?-1:r||o?o:w}},xpe=[Epe(0),Epe(1),Epe(2),Epe(3),Epe(4),Epe(5),Epe(6),Epe(7)][0],Spe=(Gde=[].forEach)&&Tfe((function(){Gde.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return xpe(this,e,arguments.length>1?arguments[1]:void 0)},Cpe=function(e){if(e&&e.forEach!==Spe)try{gde(e,"forEach",Spe)}catch(t){e.forEach=Spe}};for(var Dpe in Kde)Kde[Dpe]&&Cpe(rfe[Dpe]&&rfe[Dpe].prototype);Cpe(Zde);var Ope={}.propertyIsEnumerable,Ape=Object.getOwnPropertyDescriptor,kpe={f:Ape&&!Ope.call({1:2},1)?function(e){var t=Ape(this,e);return!!t&&t.enumerable}:Ope},Bpe=function(e){return tpe(hfe(e))},_pe=Object.getOwnPropertyDescriptor,Fpe={f:Hfe?_pe:function(e,t){if(e=Bpe(e),t=cde(t),Gfe)try{return _pe(e,t)}catch(e){}if(mfe(e,t))return hde(!Jfe(kpe.f,e,t),e[t])}},Tpe=Math.max,Ppe=Math.min,jpe=function(e,t){var n=ope(e);return n<0?Tpe(n+t,0):Ppe(n,t)},Npe=function(e){return function(t,n,r){var o,i=Bpe(t),a=upe(i),u=jpe(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}},Ipe=(Npe(!0),Npe(!1)),Rpe=dfe([].push),Lpe=function(e,t){var n,r=Bpe(e),o=0,i=[];for(n in r)!mfe(Dde,n)&&mfe(r,n)&&Rpe(i,n);for(;t.length>o;)mfe(r,n=t[o++])&&(~Ipe(i,n)||Rpe(i,n));return i},Mpe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zpe=Mpe.concat("length","prototype"),Upe={f:Object.getOwnPropertyNames||function(e){return Lpe(e,zpe)}},Hpe={f:Object.getOwnPropertySymbols},$pe=dfe([].concat),Vpe=Dfe("Reflect","ownKeys")||function(e){var t=Upe.f(Xfe(e)),n=Hpe.f;return n?$pe(t,n(e)):t},Wpe=function(e,t){for(var n=Vpe(t),r=pde.f,o=Fpe.f,i=0;i<n.length;i++){var a=n[i];mfe(e,a)||r(e,a,o(t,a))}},qpe=/#|\.prototype\./,Gpe=function(e,t){var n=Ype[Kpe(e)];return n==Zpe||n!=Xpe&&(Sfe(t)?Tfe(t):!!t)},Kpe=Gpe.normalize=function(e){return String(e).replace(qpe,".").toLowerCase()},Ype=Gpe.data={},Xpe=Gpe.NATIVE="N",Zpe=Gpe.POLYFILL="P",Jpe=Gpe,Qpe=Fpe.f,ehe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?rfe:l?rfe[u]||ife(u,{}):(rfe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Qpe(n,r))&&a.value:n[r],!Jpe(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Wpe(i,o)}(e.sham||o&&o.sham)&&gde(i,"sham",!0),Lde(n,r,i,e)}},the=Object.keys||function(e){return Lpe(e,Mpe)},nhe=Object.assign,rhe=Object.defineProperty,ohe=dfe([].concat),ihe=!nhe||Tfe((function(){if(Hfe&&1!==nhe({b:1},nhe(rhe({},"a",{enumerable:!0,get:function(){rhe(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!=nhe({},e)[n]||the(nhe({},t)).join("")!=r}))?function(e,t){for(var n=vfe(e),r=arguments.length,o=1,i=Hpe.f,a=kpe.f;r>o;)for(var u,s=tpe(arguments[o++]),l=i?ohe(the(s),i(s)):the(s),c=l.length,f=0;c>f;)u=l[f++],Hfe&&!Jfe(a,s,u)||(n[u]=s[u]);return n}:nhe;ehe({target:"Object",stat:!0,forced:Object.assign!==ihe},{assign:ihe});var ahe=Qce((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var l=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],l=o.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var l={element:n,language:a,grammar:u,code:n.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),i&&i.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(i&&i.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var E=g.pattern||g,x=r.next,S=s;x!==t.tail&&!(f&&S>=f.reach);S+=x.value.length,x=x.next){var C=x.value;if(t.length>e.length)return;if(!(C instanceof i)){var D,O=1;if(m){if(!(D=a(E,S,e,y)))break;var A=D.index,k=D.index+D[0].length,B=S;for(B+=x.value.length;A>=B;)B+=(x=x.next).value.length;if(S=B-=x.value.length,x.value instanceof i)continue;for(var _=x;_!==t.tail&&(B<k||"string"==typeof _.value);_=_.next)O++,B+=_.value.length;O--,C=e.slice(S,B),D.index-=S}else if(!(D=a(E,0,C,y)))continue;A=D.index;var F=D[0],T=C.slice(0,A),P=C.slice(A+F.length),j=S+C.length;f&&j>f.reach&&(f.reach=j);var N=x.prev;if(T&&(N=l(t,N,T),S+=T.length),c(t,N,O),x=l(t,N,new i(d,v?o.tokenize(F,v):F,b,F)),P&&l(t,x,P),O>1){var I={cause:d+","+h,reach:j};u(e,t,n,x.prev,S,I),f&&I.reach>f.reach&&(f.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=t),void 0!==Jce&&(Jce.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}a(u,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),u.textContent=d.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),d.status>=400?u.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:u.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,y,m]),S={keyword:c,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,D=/"(?:\\.|[^\\"\r\n])*"/.source,O=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[O]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[D]),lookbehind:!0,greedy:!0},{pattern:RegExp(C),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,x]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:S},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:S},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,d,g]),inside:S}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,y]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:S}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,x,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var A=D+"|"+C,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[A]),B=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),_=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,F=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,B]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[_,F]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[_]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[B]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var T=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,T]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[A]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,T]);function R(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,T]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:R(j,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:R(I,N)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:[']|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var u=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){return e.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e}))}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}));var uhe=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function she(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+she(t)}),0)}var lhe,che=rfe.String,fhe=function(e){if("Symbol"===Wde(e))throw TypeError("Cannot convert a Symbol value to a string");return che(e)},dhe=function(){var e=Xfe(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},phe=rfe.RegExp,hhe=Tfe((function(){var e=phe("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ghe=hhe||Tfe((function(){return!phe("a","y").sticky})),vhe={BROKEN_CARET:hhe||Tfe((function(){var e=phe("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:ghe,UNSUPPORTED_Y:hhe},yhe=Hfe?Object.defineProperties:function(e,t){Xfe(e);for(var n,r=Bpe(t),o=the(t),i=o.length,a=0;i>a;)pde.f(e,n=o[a++],r[n]);return e},mhe=Dfe("document","documentElement"),bhe=Cde("IE_PROTO"),whe=function(){},Ehe=function(e){return"<script>"+e+"<\/script>"},xhe=function(e){e.write(Ehe("")),e.close();var t=e.parentWindow.Object;return e=null,t},She=function(){try{lhe=new ActiveXObject("htmlfile")}catch(e){}var e,t;She="undefined"!=typeof document?document.domain&&lhe?xhe(lhe):((t=qfe("iframe")).style.display="none",mhe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ehe("document.F=Object")),e.close(),e.F):xhe(lhe);for(var n=Mpe.length;n--;)delete She.prototype[Mpe[n]];return She()};Dde[bhe]=!0;var Che,Dhe,Ohe=Object.create||function(e,t){var n;return null!==e?(whe.prototype=Xfe(e),n=new whe,whe.prototype=null,n[bhe]=e):n=She(),void 0===t?n:yhe(n,t)},Ahe=rfe.RegExp,khe=Tfe((function(){var e=Ahe(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Bhe=rfe.RegExp,_he=Tfe((function(){var e=Bhe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Fhe=Pde.get,The=ufe("native-string-replace",String.prototype.replace),Phe=RegExp.prototype.exec,jhe=Phe,Nhe=dfe("".charAt),Ihe=dfe("".indexOf),Rhe=dfe("".replace),Lhe=dfe("".slice),Mhe=(Dhe=/b*/g,Jfe(Phe,Che=/a/,"a"),Jfe(Phe,Dhe,"a"),0!==Che.lastIndex||0!==Dhe.lastIndex),zhe=vhe.BROKEN_CARET,Uhe=void 0!==/()??/.exec("")[1];(Mhe||Uhe||zhe||khe||_he)&&(jhe=function(e){var t,n,r,o,i,a,u,s=this,l=Fhe(s),c=fhe(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Jfe(jhe,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=zhe&&s.sticky,h=Jfe(dhe,s),g=s.source,v=0,y=c;if(p&&(h=Rhe(h,"y",""),-1===Ihe(h,"g")&&(h+="g"),y=Lhe(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Nhe(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Uhe&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Mhe&&(r=s.lastIndex),o=Jfe(Phe,p?n:s,y),p?o?(o.input=Lhe(o.input,v),o[0]=Lhe(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Mhe&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Uhe&&o&&o.length>1&&Jfe(The,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=Ohe(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Hhe=jhe;ehe({target:"RegExp",proto:!0,forced:/./.exec!==Hhe},{exec:Hhe});var $he=Function.prototype,Vhe=$he.apply,Whe=$he.bind,qhe=$he.call,Ghe="object"==typeof Reflect&&Reflect.apply||(Whe?qhe.bind(Vhe):function(){return qhe.apply(Vhe,arguments)}),Khe=Mfe("species"),Yhe=RegExp.prototype,Xhe=Mfe("match"),Zhe=rfe.TypeError,Jhe=Mfe("species"),Qhe=dfe("".charAt),ege=dfe("".charCodeAt),tge=dfe("".slice),nge=function(e){return function(t,n){var r,o,i=fhe(hfe(t)),a=ope(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ege(i,a))<55296||r>56319||a+1===u||(o=ege(i,a+1))<56320||o>57343?e?Qhe(i,a):r:e?tge(i,a,a+2):o-56320+(r-55296<<10)+65536}},rge=(nge(!1),nge(!0)),oge=function(e,t,n){return t+(n?rge(e,t).length:1)},ige=rfe.Array,age=Math.max,uge=function(e,t,n){for(var r,o,i,a,u=upe(e),s=jpe(t,u),l=jpe(void 0===n?u:n,u),c=ige(age(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=cde(o))in r?pde.f(r,a,hde(0,i)):r[a]=i;return c.length=f,c},sge=rfe.TypeError,lge=function(e,t){var n=e.exec;if(Sfe(n)){var r=Jfe(n,e,t);return null!==r&&Xfe(r),r}if("RegExp"===Ude(e))return Jfe(Hhe,e,t);throw sge("RegExp#exec called on incompatible receiver")},cge=vhe.UNSUPPORTED_Y,fge=Math.min,dge=[].push,pge=dfe(/./.exec),hge=dfe(dge),gge=dfe("".slice);!function(e,t,n,r){var o=Mfe(e),i=!Tfe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Tfe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Khe]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=dfe(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=fhe(hfe(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!$fe(r=e)||!(void 0!==(o=r[Xhe])?o:"RegExp"==Ude(r)))return Jfe(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=Jfe(Hhe,p,i))&&!((s=p.lastIndex)>d&&(hge(c,gge(i,d,u.index)),u.length>1&&u.index<i.length&&Ghe(dge,c,uge(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&pge(p,"")||hge(c,""):hge(c,gge(i,d)),c.length>a?uge(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Jfe(t,this,e,n)}:t,[function(t,n){var o=hfe(this),i=null==t?void 0:ade(t,e);return i?Jfe(i,t,o,n):Jfe(r,fhe(o),t,n)},function(e,o){var i=Xfe(this),a=fhe(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=Xfe(e).constructor;return void 0===r||null==(n=Xfe(r)[Jhe])?t:function(e){if(vpe(e))return e;throw Zhe(rde(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(cge?"g":"y"),f=new s(cge?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===lge(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=cge?0:h;var v,y=lge(f,cge?gge(a,h):a);if(null===y||(v=fge(ape(f.lastIndex+(cge?h:0)),a.length))===p)h=oge(a,h,l);else{if(hge(g,gge(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(hge(g,y[m]),g.length===d)return g;h=p=v}}return hge(g,gge(a,p)),g}]}(o,""[e],(function(e,t,n,r,o){var a=dfe(e),s=t.exec;return s===Hhe||s===Yhe.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Lde(String.prototype,e,s[0]),Lde(Yhe,o,s[1])}r&&gde(Yhe[o],"sham",!0)}("split",0,!!Tfe((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]})),cge),ehe({global:!0},{globalThis:rfe}),mp&&(hp.fn.attr=mp);var vge=Rde.PROPER,yge=RegExp.prototype,mge=yge.toString,bge=dfe(dhe),wge=Tfe((function(){return"/a/b"!=mge.call({source:"a",flags:"b"})})),Ege=vge&&"toString"!=mge.name;(wge||Ege)&&Lde(RegExp.prototype,"toString",(function(){var e=Xfe(this),t=fhe(e.source),n=e.flags;return"/"+t+"/"+fhe(void 0===n&&Qfe(yge,e)&&!("flags"in yge)?bge(e):n)}),{unsafe:!0});var xge=function(){function e(){this.title=jT("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!af.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};Qf.setNodes(e,n,{match:function(e){return tA.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=tA.getSelectedNodeByType(e,"code");if(null==t)return null;var n=tA.getParentNode(e,t);return af.isElement(n)?"pre"!==n.type?null:t:null},e}(),Sge={renderStyle:function(e,t){var n=e,r=t,o="";return uhe.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=hp(e);if(!af.isElement(t))return t;if("code"!==tA.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new xge},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Cge=/"/g,Dge=dfe("".replace);ehe({target:"String",proto:!0,forced:Tfe((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=fhe(hfe(this)),r="<a",(r+=' name="'+Dge(fhe(t),Cge,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var Oge=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],s=function(e){if(!If.isText(e))return null;var t=tA.getParentNode(null,e);if(t&&"code"===tA.getNodeType(t)){var n=tA.getParentNode(null,t);if(n&&"pre"===tA.getNodeType(n))return t}return null}(i);if(null==s)return u;var l=s.language,c=void 0===l?"":l;if(!c)return u;var f=function(e,t){if(!t)return[];var n=ahe.languages[t];return n?ahe.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var g=h.value,v=d+she(g);"string"!=typeof g&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:v},r)),d=v}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},Age=function(){return(Age=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}).apply(this,arguments)},kge=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Age(Age({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Age(Age({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Age(Age({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Age(Age({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n=e.key,r=e.factory,o=e.config,i=uD(uD({},o),t||{});if(null!=oA[n])throw new Error("Duplicated key '"+n+"' in menu items");oA[n]=r,function(e,t){null!=t&&(rA[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;L_[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){R_.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;yA[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){vA.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){oB.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;aB[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){iB.push(e)}(e)},e.registerModule=function(e){Bge(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function Bge(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 kge.registerMenu(e)})),n&&n.forEach((function(e){return kge.registerRenderElem(e)})),r&&kge.registerRenderStyle(r),o&&o.forEach((function(e){return kge.registerElemToHtml(e)})),i&&kge.registerStyleToHtml(i),a&&a.forEach((function(e){return kge.registerPreParseHtml(e)})),u&&u.forEach((function(e){return kge.registerParseElemHtml(e)})),s&&kge.registerParseStyleHtml(s),l&&kge.registerPlugin(l)}Tq.forEach((function(e){return Bge(e)})),Bge(ZJ),Bge(P6),Bge(tre),Bge(Zce),Bge(Sge);var _ge='<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>',Fge={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},Tge={hoverbarKeys:Age(Age({},Fge),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};kge.setEditorConfig(Age(Age({},Tge),{decorate:Oge}));var Pge={hoverbarKeys:Fge};kge.setSimpleEditorConfig(Age(Age({},Pge),{decorate:Oge}));var jge={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:jT("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:jT("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:jT("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:jT("editor.image"),iconSvg:_ge,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:jT("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"]};kge.setToolbarConfig(jge);var Nge={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:jT("editor.image"),iconSvg:_ge,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function Ige(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)?kge.simpleEditorConfig:kge.editorConfig,c=Age(Age({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return FF({selector:n,config:Age(Age(Age({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:kge.plugins})}function Rge(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?kge.simpleToolbarConfig:kge.toolbarConfig;return function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return LB(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=uD({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new IF(n,i);return cO.set(a,e),fO.set(e,a),a}(n,{selector:t,config:Age(Age({},u),o)})}kge.setSimpleToolbarConfig(Nge)}).call(this,n("yLpj"))}}]);