@wangeditor-next/list-module 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.1.6](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/list-module@1.1.5...@wangeditor-next/list-module@1.1.6) (2024-08-25)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @wangeditor-next/list-module
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.1.5](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/list-module@1.1.4...@wangeditor-next/list-module@1.1.5) (2024-08-03)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @wangeditor-next/list-module
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i18nAddResources as t,DomEditor as e,t as r}from"@wangeditor-next/core";import{Path as n,Editor as o,Text as i,Transforms as u,Range as a}from"slate";import{jsx as c}from"snabbdom";import f,{append as l,attr as s,parent as d}from"dom7";t("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),t("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(t){var e={exports:{}};return t(e,e.exports),e.exports}var y,h,g=function(t){return t&&t.Math==Math&&t},b=g("object"==typeof globalThis&&globalThis)||g("object"==typeof window&&window)||g("object"==typeof self&&self)||g("object"==typeof v&&v)||function(){return this}()||Function("return this")(),m=Function.prototype,w=m.bind,O=m.call,x=w&&w.bind(O),S=w?function(t){return t&&x(O,t)}:function(t){return t&&function(){return O.apply(t,arguments)}},E=function(t){try{return!!t()}catch(t){return!0}},j=S({}.toString),T=S("".slice),A=function(t){return T(j(t),8,-1)},I=b.Object,P=S("".split),k=E((function(){return!I("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?P(t,""):I(t)}:I,L=b.TypeError,R=function(t){if(null==t)throw L("Can't call method on "+t);return t},N=function(t){return k(R(t))},_=Object.defineProperty,M=function(t,e){try{_(b,t,{value:e,configurable:!0,writable:!0})}catch(r){b[t]=e}return e},z=b["__core-js_shared__"]||M("__core-js_shared__",{}),C=p((function(t){(t.exports=function(t,e){return z[t]||(z[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),F=b.Object,B=function(t){return F(R(t))},D=S({}.hasOwnProperty),H=Object.hasOwn||function(t,e){return D(B(t),e)},G=0,$=Math.random(),V=S(1..toString),W=function(t){return"Symbol("+(void 0===t?"":t)+")_"+V(++G+$,36)},U=function(t){return"function"==typeof t},K=function(t){return U(t)?t:void 0},Y=function(t,e){return arguments.length<2?K(b[t]):b[t]&&b[t][e]},X=Y("navigator","userAgent")||"",q=b.process,J=b.Deno,Q=q&&q.versions||J&&J.version,Z=Q&&Q.v8;Z&&(h=(y=Z.split("."))[0]>0&&y[0]<4?1:+(y[0]+y[1])),!h&&X&&(!(y=X.match(/Edge\/(\d+)/))||y[1]>=74)&&(y=X.match(/Chrome\/(\d+)/))&&(h=+y[1]);var tt,et=h,rt=!!Object.getOwnPropertySymbols&&!E((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&et&&et<41})),nt=rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ot=C("wks"),it=b.Symbol,ut=it&&it.for,at=nt?it:it&&it.withoutSetter||W,ct=function(t){if(!H(ot,t)||!rt&&"string"!=typeof ot[t]){var e="Symbol."+t;rt&&H(it,t)?ot[t]=it[t]:ot[t]=nt&&ut?ut(e):at(e)}return ot[t]},ft=function(t){return"object"==typeof t?null!==t:U(t)},lt=b.String,st=b.TypeError,dt=function(t){if(ft(t))return t;throw st(lt(t)+" is not an object")},vt=!E((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),pt=b.document,yt=ft(pt)&&ft(pt.createElement),ht=function(t){return yt?pt.createElement(t):{}},gt=!vt&&!E((function(){return 7!=Object.defineProperty(ht("div"),"a",{get:function(){return 7}}).a})),bt=Function.prototype.call,mt=bt.bind?bt.bind(bt):function(){return bt.apply(bt,arguments)},wt=S({}.isPrototypeOf),Ot=b.Object,xt=nt?function(t){return"symbol"==typeof t}:function(t){var e=Y("Symbol");return U(e)&&wt(e.prototype,Ot(t))},St=b.String,Et=function(t){try{return St(t)}catch(t){return"Object"}},jt=b.TypeError,Tt=function(t){if(U(t))return t;throw jt(Et(t)+" is not a function")},At=function(t,e){var r=t[e];return null==r?void 0:Tt(r)},It=b.TypeError,Pt=b.TypeError,kt=ct("toPrimitive"),Lt=function(t,e){if(!ft(t)||xt(t))return t;var r,n=At(t,kt);if(n){if(void 0===e&&(e="default"),r=mt(n,t,e),!ft(r)||xt(r))return r;throw Pt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&U(r=t.toString)&&!ft(n=mt(r,t)))return n;if(U(r=t.valueOf)&&!ft(n=mt(r,t)))return n;if("string"!==e&&U(r=t.toString)&&!ft(n=mt(r,t)))return n;throw It("Can't convert object to primitive value")}(t,e)},Rt=function(t){var e=Lt(t,"string");return xt(e)?e:e+""},Nt=b.TypeError,_t=Object.defineProperty,Mt={f:vt?_t:function(t,e,r){if(dt(t),e=Rt(e),dt(r),gt)try{return _t(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Nt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},zt=Math.ceil,Ct=Math.floor,Ft=function(t){var e=+t;return e!=e||0===e?0:(e>0?Ct:zt)(e)},Bt=Math.max,Dt=Math.min,Ht=function(t,e){var r=Ft(t);return r<0?Bt(r+e,0):Dt(r,e)},Gt=Math.min,$t=function(t){return t>0?Gt(Ft(t),9007199254740991):0},Vt=function(t){return $t(t.length)},Wt=function(t){return function(e,r,n){var o,i=N(e),u=Vt(i),a=Ht(n,u);if(t&&r!=r){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},Ut={includes:Wt(!0),indexOf:Wt(!1)},Kt={},Yt=Ut.indexOf,Xt=S([].push),qt=function(t,e){var r,n=N(t),o=0,i=[];for(r in n)!H(Kt,r)&&H(n,r)&&Xt(i,r);for(;e.length>o;)H(n,r=e[o++])&&(~Yt(i,r)||Xt(i,r));return i},Jt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qt=Object.keys||function(t){return qt(t,Jt)},Zt=vt?Object.defineProperties:function(t,e){dt(t);for(var r,n=N(e),o=Qt(e),i=o.length,u=0;i>u;)Mt.f(t,r=o[u++],n[r]);return t},te=Y("document","documentElement"),ee=C("keys"),re=function(t){return ee[t]||(ee[t]=W(t))},ne=re("IE_PROTO"),oe=function(){},ie=function(t){return"<script>"+t+"<\/script>"},ue=function(t){t.write(ie("")),t.close();var e=t.parentWindow.Object;return t=null,e},ae=function(){try{tt=new ActiveXObject("htmlfile")}catch(t){}var t,e;ae="undefined"!=typeof document?document.domain&&tt?ue(tt):((e=ht("iframe")).style.display="none",te.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ie("document.F=Object")),t.close(),t.F):ue(tt);for(var r=Jt.length;r--;)delete ae.prototype[Jt[r]];return ae()};Kt[ne]=!0;var ce=Object.create||function(t,e){var r;return null!==t?(oe.prototype=dt(t),r=new oe,oe.prototype=null,r[ne]=t):r=ae(),void 0===e?r:Zt(r,e)},fe=ct("unscopables"),le=Array.prototype;null==le[fe]&&Mt.f(le,fe,{configurable:!0,value:ce(null)});var se=function(t){le[fe][t]=!0},de={},ve=S(Function.toString);U(z.inspectSource)||(z.inspectSource=function(t){return ve(t)});var pe,ye,he,ge=z.inspectSource,be=b.WeakMap,me=U(be)&&/native code/.test(ge(be)),we=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Oe=vt?function(t,e,r){return Mt.f(t,e,we(1,r))}:function(t,e,r){return t[e]=r,t},xe=b.TypeError,Se=b.WeakMap;if(me||z.state){var Ee=z.state||(z.state=new Se),je=S(Ee.get),Te=S(Ee.has),Ae=S(Ee.set);pe=function(t,e){if(Te(Ee,t))throw new xe("Object already initialized");return e.facade=t,Ae(Ee,t,e),e},ye=function(t){return je(Ee,t)||{}},he=function(t){return Te(Ee,t)}}else{var Ie=re("state");Kt[Ie]=!0,pe=function(t,e){if(H(t,Ie))throw new xe("Object already initialized");return e.facade=t,Oe(t,Ie,e),e},ye=function(t){return H(t,Ie)?t[Ie]:{}},he=function(t){return H(t,Ie)}}var Pe,ke,Le,Re={set:pe,get:ye,has:he,enforce:function(t){return he(t)?ye(t):pe(t,{})},getterFor:function(t){return function(e){var r;if(!ft(e)||(r=ye(e)).type!==t)throw xe("Incompatible receiver, "+t+" required");return r}}},Ne={}.propertyIsEnumerable,_e=Object.getOwnPropertyDescriptor,Me={f:_e&&!Ne.call({1:2},1)?function(t){var e=_e(this,t);return!!e&&e.enumerable}:Ne},ze=Object.getOwnPropertyDescriptor,Ce={f:vt?ze:function(t,e){if(t=N(t),e=Rt(e),gt)try{return ze(t,e)}catch(t){}if(H(t,e))return we(!mt(Me.f,t,e),t[e])}},Fe=Function.prototype,Be=vt&&Object.getOwnPropertyDescriptor,De=H(Fe,"name"),He={EXISTS:De,PROPER:De&&"something"===function(){}.name,CONFIGURABLE:De&&(!vt||vt&&Be(Fe,"name").configurable)},Ge=p((function(t){var e=He.CONFIGURABLE,r=Re.get,n=Re.enforce,o=String(String).split("String");(t.exports=function(t,r,i,u){var a,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,l=!!u&&!!u.noTargetGet,s=u&&void 0!==u.name?u.name:r;U(i)&&("Symbol("===String(s).slice(0,7)&&(s="["+String(s).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!H(i,"name")||e&&i.name!==s)&&Oe(i,"name",s),(a=n(i)).source||(a.source=o.join("string"==typeof s?s:""))),t!==b?(c?!l&&t[r]&&(f=!0):delete t[r],f?t[r]=i:Oe(t,r,i)):f?t[r]=i:M(r,i)})(Function.prototype,"toString",(function(){return U(this)&&r(this).source||ge(this)}))})),$e=Jt.concat("length","prototype"),Ve={f:Object.getOwnPropertyNames||function(t){return qt(t,$e)}},We={f:Object.getOwnPropertySymbols},Ue=S([].concat),Ke=Y("Reflect","ownKeys")||function(t){var e=Ve.f(dt(t)),r=We.f;return r?Ue(e,r(t)):e},Ye=function(t,e){for(var r=Ke(e),n=Mt.f,o=Ce.f,i=0;i<r.length;i++){var u=r[i];H(t,u)||n(t,u,o(e,u))}},Xe=/#|\.prototype\./,qe=function(t,e){var r=Qe[Je(t)];return r==tr||r!=Ze&&(U(e)?E(e):!!e)},Je=qe.normalize=function(t){return String(t).replace(Xe,".").toLowerCase()},Qe=qe.data={},Ze=qe.NATIVE="N",tr=qe.POLYFILL="P",er=qe,rr=Ce.f,nr=function(t,e){var r,n,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?b:f?b[a]||M(a,{}):(b[a]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(u=rr(r,n))&&u.value:r[n],!er(c?n:a+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ye(i,o)}(t.sham||o&&o.sham)&&Oe(i,"sham",!0),Ge(r,n,i,t)}},or=!E((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ir=re("IE_PROTO"),ur=b.Object,ar=ur.prototype,cr=or?ur.getPrototypeOf:function(t){var e=B(t);if(H(e,ir))return e[ir];var r=e.constructor;return U(r)&&e instanceof r?r.prototype:e instanceof ur?ar:null},fr=ct("iterator"),lr=!1;[].keys&&("next"in(Le=[].keys())?(ke=cr(cr(Le)))!==Object.prototype&&(Pe=ke):lr=!0);var sr=null==Pe||E((function(){var t={};return Pe[fr].call(t)!==t}));sr&&(Pe={}),U(Pe[fr])||Ge(Pe,fr,(function(){return this}));var dr={IteratorPrototype:Pe,BUGGY_SAFARI_ITERATORS:lr},vr=Mt.f,pr=ct("toStringTag"),yr=function(t,e,r){t&&!H(t=r?t:t.prototype,pr)&&vr(t,pr,{configurable:!0,value:e})},hr=dr.IteratorPrototype,gr=function(){return this},br=b.String,mr=b.TypeError,wr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=S(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return dt(r),function(t){if("object"==typeof t||U(t))return t;throw mr("Can't set "+br(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),Or=He.PROPER,xr=He.CONFIGURABLE,Sr=dr.IteratorPrototype,Er=dr.BUGGY_SAFARI_ITERATORS,jr=ct("iterator"),Tr=function(){return this},Ar=function(t,e,r,n,o,i,u){!function(t,e,r,n){var o=e+" Iterator";t.prototype=ce(hr,{next:we(+!n,r)}),yr(t,o,!1),de[o]=gr}(r,e,n);var a,c,f,l=function(t){if(t===o&&y)return y;if(!Er&&t in v)return v[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},s=e+" Iterator",d=!1,v=t.prototype,p=v[jr]||v["@@iterator"]||o&&v[o],y=!Er&&p||l(o),h="Array"==e&&v.entries||p;if(h&&(a=cr(h.call(new t)))!==Object.prototype&&a.next&&(cr(a)!==Sr&&(wr?wr(a,Sr):U(a[jr])||Ge(a,jr,Tr)),yr(a,s,!0)),Or&&"values"==o&&p&&"values"!==p.name&&(xr?Oe(v,"name","values"):(d=!0,y=function(){return mt(p,this)})),o)if(c={values:l("values"),keys:i?y:l("keys"),entries:l("entries")},u)for(f in c)(Er||d||!(f in v))&&Ge(v,f,c[f]);else nr({target:e,proto:!0,forced:Er||d},c);return v[jr]!==y&&Ge(v,jr,y,{name:o}),de[e]=y,c},Ir=Re.set,Pr=Re.getterFor("Array Iterator"),kr=Ar(Array,"Array",(function(t,e){Ir(this,{type:"Array Iterator",target:N(t),index:0,kind:e})}),(function(){var t=Pr(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");de.Arguments=de.Array,se("keys"),se("values"),se("entries");var Lr={};Lr[ct("toStringTag")]="z";var Rr="[object z]"===String(Lr),Nr=ct("toStringTag"),_r=b.Object,Mr="Arguments"==A(function(){return arguments}()),zr=Rr?A:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=_r(t),Nr))?r:Mr?A(e):"Object"==(n=A(e))&&U(e.callee)?"Arguments":n},Cr=Rr?{}.toString:function(){return"[object "+zr(this)+"]"};Rr||Ge(Object.prototype,"toString",Cr,{unsafe:!0});var Fr=b.String,Br=function(t){if("Symbol"===zr(t))throw TypeError("Cannot convert a Symbol value to a string");return Fr(t)},Dr=S("".charAt),Hr=S("".charCodeAt),Gr=S("".slice),$r=function(t){return function(e,r){var n,o,i=Br(R(e)),u=Ft(r),a=i.length;return u<0||u>=a?t?"":void 0:(n=Hr(i,u))<55296||n>56319||u+1===a||(o=Hr(i,u+1))<56320||o>57343?t?Dr(i,u):n:t?Gr(i,u,u+2):o-56320+(n-55296<<10)+65536}},Vr={codeAt:$r(!1),charAt:$r(!0)},Wr=Vr.charAt,Ur=Re.set,Kr=Re.getterFor("String Iterator");Ar(String,"String",(function(t){Ur(this,{type:"String Iterator",string:Br(t),index:0})}),(function(){var t,e=Kr(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Wr(r,n),e.index+=t.length,{value:t,done:!1})}));var Yr=function(t,e,r){for(var n in e)Ge(t,n,e[n],r);return t},Xr=b.Array,qr=Math.max,Jr=Ve.f,Qr="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Zr=function(t){try{return Jr(t)}catch(t){return function(t,e,r){for(var n,o,i,u,a=Vt(t),c=Ht(e,a),f=Ht(void 0===r?a:r,a),l=Xr(qr(f-c,0)),s=0;c<f;c++,s++)n=l,o=s,i=t[c],u=void 0,(u=Rt(o))in n?Mt.f(n,u,we(0,i)):n[u]=i;return l.length=s,l}(Qr)}},tn={f:function(t){return Qr&&"Window"==A(t)?Zr(t):Jr(N(t))}},en=E((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),rn=Object.isExtensible,nn=E((function(){rn(1)}))||en?function(t){return!!ft(t)&&((!en||"ArrayBuffer"!=A(t))&&(!rn||rn(t)))}:rn,on=!E((function(){return Object.isExtensible(Object.preventExtensions({}))})),un=p((function(t){var e=Mt.f,r=!1,n=W("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}})},u=t.exports={enable:function(){u.enable=function(){},r=!0;var t=Ve.f,e=S([].splice),o={};o[n]=1,t(o).length&&(Ve.f=function(r){for(var o=t(r),i=0,u=o.length;i<u;i++)if(o[i]===n){e(o,i,1);break}return o},nr({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:tn.f}))},fastKey:function(t,e){if(!ft(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!H(t,n)){if(!nn(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!H(t,n)){if(!nn(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return on&&r&&nn(t)&&!H(t,n)&&i(t),t}};Kt[n]=!0})),an=S(S.bind),cn=function(t,e){return Tt(t),void 0===e?t:an?an(t,e):function(){return t.apply(e,arguments)}},fn=ct("iterator"),ln=Array.prototype,sn=ct("iterator"),dn=function(t){if(null!=t)return At(t,sn)||At(t,"@@iterator")||de[zr(t)]},vn=b.TypeError,pn=function(t,e,r){var n,o;dt(t);try{if(!(n=At(t,"return"))){if("throw"===e)throw r;return r}n=mt(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return dt(n),r},yn=b.TypeError,hn=function(t,e){this.stopped=t,this.result=e},gn=hn.prototype,bn=function(t,e,r){var n,o,i,u,a,c,f,l,s=r&&r.that,d=!(!r||!r.AS_ENTRIES),v=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),y=cn(e,s),h=function(t){return n&&pn(n,"normal",t),new hn(!0,t)},g=function(t){return d?(dt(t),p?y(t[0],t[1],h):y(t[0],t[1])):p?y(t,h):y(t)};if(v)n=t;else{if(!(o=dn(t)))throw yn(Et(t)+" is not iterable");if(void 0!==(l=o)&&(de.Array===l||ln[fn]===l)){for(i=0,u=Vt(t);u>i;i++)if((a=g(t[i]))&&wt(gn,a))return a;return new hn(!1)}n=function(t,e){var r=arguments.length<2?dn(t):e;if(Tt(r))return dt(mt(r,t));throw vn(Et(t)+" is not iterable")}(t,o)}for(c=n.next;!(f=mt(c,n)).done;){try{a=g(f.value)}catch(t){pn(n,"throw",t)}if("object"==typeof a&&a&&wt(gn,a))return a}return new hn(!1)},mn=b.TypeError,wn=function(t,e){if(wt(e,t))return t;throw mn("Incorrect invocation")},On=ct("iterator"),xn=!1;try{var Sn=0,En={next:function(){return{done:!!Sn++}},return:function(){xn=!0}};En[On]=function(){return this},Array.from(En,(function(){throw 2}))}catch(t){}var jn=Array.isArray||function(t){return"Array"==A(t)},Tn=function(){},An=[],In=Y("Reflect","construct"),Pn=/^\s*(?:class|function)\b/,kn=S(Pn.exec),Ln=!Pn.exec(Tn),Rn=function(t){if(!U(t))return!1;try{return In(Tn,An,t),!0}catch(t){return!1}},Nn=!In||E((function(){var t;return Rn(Rn.call)||!Rn(Object)||!Rn((function(){t=!0}))||t}))?function(t){if(!U(t))return!1;switch(zr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ln||!!kn(Pn,ge(t))}:Rn,_n=ct("species"),Mn=b.Array,zn=function(t,e){return new(function(t){var e;return jn(t)&&(e=t.constructor,(Nn(e)&&(e===Mn||jn(e.prototype))||ft(e)&&null===(e=e[_n]))&&(e=void 0)),void 0===e?Mn:e}(t))(0===e?0:e)},Cn=S([].push),Fn=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,u=7==t,a=5==t||i;return function(c,f,l,s){for(var d,v,p=B(c),y=k(p),h=cn(f,l),g=Vt(y),b=0,m=s||zn,w=e?m(c,g):r||u?m(c,0):void 0;g>b;b++)if((a||b in y)&&(v=h(d=y[b],b,p),t))if(e)w[b]=v;else if(v)switch(t){case 3:return!0;case 5:return d;case 6:return b;case 2:Cn(w,d)}else switch(t){case 4:return!1;case 7:Cn(w,d)}return i?-1:n||o?o:w}},Bn={forEach:Fn(0),map:Fn(1),filter:Fn(2),some:Fn(3),every:Fn(4),find:Fn(5),findIndex:Fn(6),filterReject:Fn(7)},Dn=un.getWeakData,Hn=Re.set,Gn=Re.getterFor,$n=Bn.find,Vn=Bn.findIndex,Wn=S([].splice),Un=0,Kn=function(t){return t.frozen||(t.frozen=new Yn)},Yn=function(){this.entries=[]},Xn=function(t,e){return $n(t.entries,(function(t){return t[0]===e}))};Yn.prototype={get:function(t){var e=Xn(this,t);if(e)return e[1]},has:function(t){return!!Xn(this,t)},set:function(t,e){var r=Xn(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=Vn(this.entries,(function(e){return e[0]===t}));return~e&&Wn(this.entries,e,1),!!~e}};var qn,Jn={getConstructor:function(t,e,r,n){var o=t((function(t,o){wn(t,i),Hn(t,{type:e,id:Un++,frozen:void 0}),null!=o&&bn(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,u=Gn(e),a=function(t,e,r){var n=u(t),o=Dn(dt(e),!0);return!0===o?Kn(n).set(e,r):o[n.id]=r,t};return Yr(i,{delete:function(t){var e=u(this);if(!ft(t))return!1;var r=Dn(t);return!0===r?Kn(e).delete(t):r&&H(r,e.id)&&delete r[e.id]},has:function(t){var e=u(this);if(!ft(t))return!1;var r=Dn(t);return!0===r?Kn(e).has(t):r&&H(r,e.id)}}),Yr(i,r?{get:function(t){var e=u(this);if(ft(t)){var r=Dn(t);return!0===r?Kn(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},Qn=Re.enforce,Zn=!b.ActiveXObject&&"ActiveXObject"in b,to=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},eo=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=b[t],a=u&&u.prototype,c=u,f={},l=function(t){var e=S(a[t]);Ge(a,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!ft(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!ft(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!ft(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(er(t,!U(u)||!(o||a.forEach&&!E((function(){(new u).entries().next()})))))c=r.getConstructor(e,t,n,i),un.enable();else if(er(t,!0)){var s=new c,d=s[i](o?{}:-0,1)!=s,v=E((function(){s.has(1)})),p=function(t,e){if(!e&&!xn)return!1;var r=!1;try{var n={};n[On]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){new u(t)})),y=!o&&E((function(){for(var t=new u,e=5;e--;)t[i](e,e);return!t.has(-0)}));p||((c=e((function(t,e){wn(t,a);var r=function(t,e,r){var n,o;return wr&&U(n=e.constructor)&&n!==r&&ft(o=n.prototype)&&o!==r.prototype&&wr(t,o),t}(new u,t,c);return null!=e&&bn(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=a,a.constructor=c),(v||y)&&(l("delete"),l("has"),n&&l("get")),(y||d)&&l(i),o&&a.clear&&delete a.clear}return f[t]=c,nr({global:!0,forced:c!=u},f),yr(c,t),o||r.setStrong(c,t,n),c}("WeakMap",to,Jn);if(me&&Zn){qn=Jn.getConstructor(to,"WeakMap",!0),un.enable();var ro=eo.prototype,no=S(ro.delete),oo=S(ro.has),io=S(ro.get),uo=S(ro.set);Yr(ro,{delete:function(t){if(ft(t)&&!nn(t)){var e=Qn(this);return e.frozen||(e.frozen=new qn),no(this,t)||e.frozen.delete(t)}return no(this,t)},has:function(t){if(ft(t)&&!nn(t)){var e=Qn(this);return e.frozen||(e.frozen=new qn),oo(this,t)||e.frozen.has(t)}return oo(this,t)},get:function(t){if(ft(t)&&!nn(t)){var e=Qn(this);return e.frozen||(e.frozen=new qn),oo(this,t)?io(this,t):e.frozen.get(t)}return io(this,t)},set:function(t,e){if(ft(t)&&!nn(t)){var r=Qn(this);r.frozen||(r.frozen=new qn),oo(this,t)?uo(this,t,e):r.frozen.set(t,e)}else uo(this,t,e);return this}})}var ao={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},co=ht("span").classList,fo=co&&co.constructor&&co.constructor.prototype,lo=fo===Object.prototype?void 0:fo,so=ct("iterator"),vo=ct("toStringTag"),po=kr.values,yo=function(t,e){if(t){if(t[so]!==po)try{Oe(t,so,po)}catch(e){t[so]=po}if(t[vo]||Oe(t,vo,e),ao[e])for(var r in kr)if(t[r]!==kr[r])try{Oe(t,r,kr[r])}catch(e){t[r]=kr[r]}}};for(var ho in ao)yo(b[ho]&&b[ho].prototype,ho);yo(lo,"DOMTokenList");var go=new WeakMap;var bo={type:"list-item",renderElem:function(t,r,u){go.set(t,u);var a=t,f=a.level,l=void 0===f?0:f,s=a.ordered,d={margin:"5px 0 5px "+20*l+"px"},v="";if(void 0!==s&&s){var p=function(t,r){var i=r,u=i.type,a=i.level,c=void 0===a?0:a,f=i.ordered,l=void 0!==f&&f,s=1,d=r,v=e.findPath(t,d);if(0===v[0])return 1;for(;v[0]>0;){var p=n.previous(v),y=o.node(t,p);if(null==y)break;var h=y[0],g=h.level,b=void 0===g?0:g,m=h.type,w=h.ordered;if(m!==u)break;if(b<c)break;if(b===c){if(w!==l)break;s++}d=h,v=p}return s}(u,t);v=p+"."}else v=function(t){void 0===t&&(t=0);var e="";switch(t){case 0:e="•";break;case 1:e="◦";break;default:e="▪"}return e}(l);var y=function(t){var e,r=t.children||[],n=r.length;if(0===n)return"";for(var o=0;o<n&&!e;o++){var u=r[o];i.isText(u)&&(e=u)}return null==e?"":e.color||""}(t);return c("div",{style:d},c("span",{contentEditable:!1,style:{marginRight:"0.5em",color:y},"data-w-e-reserve":!0},v),c("span",null,r))}},mo=function(t,e){return mo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},mo(t,e)};function wo(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}mo(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Oo(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function xo(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}function So(t,r,i){for(var u=r.type,a=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(r,["type"]),c=void 0!==i?i:a.level||0,f=e.findPath(t,r),l=f;;){if(0===l.length||0===f[f.length-1])return null;l=n.previous(l);var s=o.node(t,l);if(!s)return null;var d=xo(s,1)[0],v=d.level,p=void 0===v?0:v;if(e.getNodeType(d)!==u)return null;if(p===c)return d}}function Eo(t,e,r){var n=So(t,e,r);return!!n&&n.ordered===e.ordered}function jo(t){return o.nodes(t,{at:t.selection||void 0,match:function(r){return 1===e.findPath(t,r).length}})}"function"==typeof SuppressedError&&SuppressedError;var To=Ut.includes;nr({target:"Array",proto:!0},{includes:function(t){return To(this,t,arguments.length>1?arguments[1]:void 0)}}),se("includes");var Ao,Io,Po=function(){var t=dt(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},ko=b.RegExp,Lo=E((function(){var t=ko("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Ro=Lo||E((function(){return!ko("a","y").sticky})),No={BROKEN_CARET:Lo||E((function(){var t=ko("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Ro,UNSUPPORTED_Y:Lo},_o=b.RegExp,Mo=E((function(){var t=_o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),zo=b.RegExp,Co=E((function(){var t=zo("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Fo=Re.get,Bo=C("native-string-replace",String.prototype.replace),Do=RegExp.prototype.exec,Ho=Do,Go=S("".charAt),$o=S("".indexOf),Vo=S("".replace),Wo=S("".slice),Uo=(Io=/b*/g,mt(Do,Ao=/a/,"a"),mt(Do,Io,"a"),0!==Ao.lastIndex||0!==Io.lastIndex),Ko=No.BROKEN_CARET,Yo=void 0!==/()??/.exec("")[1];(Uo||Yo||Ko||Mo||Co)&&(Ho=function(t){var e,r,n,o,i,u,a,c=this,f=Fo(c),l=Br(t),s=f.raw;if(s)return s.lastIndex=c.lastIndex,e=mt(Ho,s,l),c.lastIndex=s.lastIndex,e;var d=f.groups,v=Ko&&c.sticky,p=mt(Po,c),y=c.source,h=0,g=l;if(v&&(p=Vo(p,"y",""),-1===$o(p,"g")&&(p+="g"),g=Wo(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Go(l,c.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,h++),r=new RegExp("^(?:"+y+")",p)),Yo&&(r=new RegExp("^"+y+"$(?!\\s)",p)),Uo&&(n=c.lastIndex),o=mt(Do,v?r:c,g),v?o?(o.input=Wo(o.input,h),o[0]=Wo(o[0],h),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Uo&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),Yo&&o&&o.length>1&&mt(Bo,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=u=ce(null),i=0;i<d.length;i++)u[(a=d[i])[0]]=o[a[1]];return o});var Xo=Ho;nr({target:"RegExp",proto:!0,forced:/./.exec!==Xo},{exec:Xo});var qo=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(t){var r=this.type;return e.getSelectedNodeByType(t,r)},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){var e=this.getListNode(t);if(null==e)return!1;var r=e.ordered;return(void 0!==r&&r)===this.ordered},t.prototype.isDisabled=function(t){return null==t.selection||!!e.getSelectedElems(t).some((function(e){if(o.isVoid(t,e)&&o.isBlock(t,e))return!0;var r=e.type;return!!["pre","code","table"].includes(r)||void 0}))},t.prototype.exec=function(t,e){this.isActive(t)?u.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):u.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),Jo='<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>',Qo='<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>',Zo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ordered=!1,e.title=r("listModule.unOrderedList"),e.iconSvg=Jo,e}return wo(e,t),e}(qo),ti=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ordered=!0,e.title=r("listModule.orderedList"),e.iconSvg=Qo,e}return wo(e,t),e}(qo),ei={key:"bulletedList",factory:function(){return new Zo}},ri={key:"numberedList",factory:function(){return new ti}};var ni=[];var oi,ii={type:"list-item",elemToHtml:function(t,r){var i="",u="",a=t.ordered,c=void 0!==a&&a?"ol":"ul",f=function(t){var r=go.get(t);if(null==r)return 0;var i=t,u=i.type,a=i.ordered,c=void 0!==a&&a,f=i.level,l=void 0===f?0:f,s=e.findPath(r,t);if(0===s[0])return l+1;var d=n.previous(s),v=o.node(r,d);if(!v)return 0;var p=xo(v,1)[0];if(e.getNodeType(p)!==u)return l+1;var y=p,h=y.ordered,g=void 0!==h&&h,b=y.level,m=void 0===b?0:b;return m<l?l-m:m>l?Eo(r,t)?0:1:m===l?g===c?0:1:0}(t);if(f>0)for(var l=0;l<f;l++)i+="<"+c+">",ni.push(c);var s=function(t){var r=go.get(t);if(null==r)return 0;var i=t,u=i.type,a=i.ordered,c=void 0!==a&&a,f=i.level,l=void 0===f?0:f,s=e.findPath(r,t);if(s[0]===r.children.length-1)return l+1;var d=n.next(s),v=o.node(r,d);if(!v)return 0;var p=xo(v,1)[0];if(e.getNodeType(p)!==u)return l+1;var y=p,h=y.ordered,g=void 0!==h&&h,b=y.level,m=void 0===b?0:b;return m<l?Eo(r,p)?l-m:l-m+1:m>l?0:m===l?g===c?0:1:0}(t);if(s>0)for(l=0;l<s;l++){u+="</"+ni.pop()+">"}return{html:"<li>"+r+"</li>",prefix:i,suffix:u}}},ui=ct("species"),ai=Bn.filter,ci=(oi="filter",et>=51||!E((function(){var t=[];return(t.constructor={})[ui]=function(){return{foo:1}},1!==t[oi](Boolean).foo})));nr({target:"Array",proto:!0,forced:!ci},{filter:function(t){return ai(this,t,arguments.length>1?arguments[1]:void 0)}});var fi=Function.prototype,li=fi.apply,si=fi.bind,di=fi.call,vi="object"==typeof Reflect&&Reflect.apply||(si?di.bind(li):function(){return di.apply(li,arguments)}),pi=ct("species"),yi=RegExp.prototype,hi=Vr.charAt,gi=function(t,e,r){return e+(r?hi(t,e).length:1)},bi=Math.floor,mi=S("".charAt),wi=S("".replace),Oi=S("".slice),xi=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Si=/\$([$&'`]|\d{1,2})/g,Ei=function(t,e,r,n,o,i){var u=r+t.length,a=n.length,c=Si;return void 0!==o&&(o=B(o),c=xi),wi(i,c,(function(i,c){var f;switch(mi(c,0)){case"$":return"$";case"&":return t;case"`":return Oi(e,0,r);case"'":return Oi(e,u);case"<":f=o[Oi(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>a){var s=bi(l/10);return 0===s?i:s<=a?void 0===n[s-1]?mi(c,1):n[s-1]+mi(c,1):i}f=n[l-1]}return void 0===f?"":f}))},ji=b.TypeError,Ti=function(t,e){var r=t.exec;if(U(r)){var n=mt(r,t,e);return null!==n&&dt(n),n}if("RegExp"===A(t))return mt(Xo,t,e);throw ji("RegExp#exec called on incompatible receiver")},Ai=ct("replace"),Ii=Math.max,Pi=Math.min,ki=S([].concat),Li=S([].push),Ri=S("".indexOf),Ni=S("".slice),_i="$0"==="a".replace(/./,"$0"),Mi=!!/./[Ai]&&""===/./[Ai]("a","$0");!function(t,e,r,n){var o=ct(t),i=!E((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),u=i&&!E((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[pi]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!u||r){var a=S(/./[o]),c=e(o,""[t],(function(t,e,r,n,o){var u=S(t),c=e.exec;return c===Xo||c===yi.exec?i&&!o?{done:!0,value:a(e,r,n)}:{done:!0,value:u(r,e,n)}:{done:!1}}));Ge(String.prototype,t,c[0]),Ge(yi,o,c[1])}n&&Oe(yi[o],"sham",!0)}("replace",(function(t,e,r){var n=Mi?"$":"$0";return[function(t,r){var n=R(this),o=null==t?void 0:At(t,Ai);return o?mt(o,t,n,r):mt(e,Br(n),t,r)},function(t,o){var i=dt(this),u=Br(t);if("string"==typeof o&&-1===Ri(o,n)&&-1===Ri(o,"$<")){var a=r(e,i,u,o);if(a.done)return a.value}var c=U(o);c||(o=Br(o));var f=i.global;if(f){var l=i.unicode;i.lastIndex=0}for(var s=[];;){var d=Ti(i,u);if(null===d)break;if(Li(s,d),!f)break;""===Br(d[0])&&(i.lastIndex=gi(u,$t(i.lastIndex),l))}for(var v,p="",y=0,h=0;h<s.length;h++){for(var g=Br((d=s[h])[0]),b=Ii(Pi(Ft(d.index),u.length),0),m=[],w=1;w<d.length;w++)Li(m,void 0===(v=d[w])?v:String(v));var O=d.groups;if(c){var x=ki([g],m,b,u);void 0!==O&&Li(x,O);var S=Br(vi(o,void 0,x))}else S=Ei(g,u,b,m,O,o);b>=y&&(p+=Ni(u,y,b)+S,y=b+g.length)}return p+Ni(u,y)}]}),!!E((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!_i||Mi);var zi=b.TypeError,Ci=function(t,e,r,n,o,i,u,a){for(var c,f,l=o,s=0,d=!!u&&cn(u,a);s<n;){if(s in r){if(c=d?d(r[s],s,e):r[s],i>0&&jn(c))f=Vt(c),l=Ci(t,e,c,f,l,i-1)-1;else{if(l>=9007199254740991)throw zi("Exceed the acceptable array length");t[l]=c}l++}s++}return l},Fi=Ci;function Bi(t){return t.length?t[0].tagName.toLowerCase():""}nr({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=B(this),r=Vt(e),n=zn(e,0);return n.length=Fi(n,e,e,r,0,void 0===t?1:Ft(t)),n}}),se("flat"),nr({global:!0},{globalThis:b}),l&&(f.fn.append=l),s&&(f.fn.attr=s),d&&(f.fn.parent=d);var Di={renderElems:[bo],editorPlugin:function(t){var r=t.deleteBackward,n=t.handleTab,i=t.normalizeNode,c=t.insertBreak,f=t;return f.insertBreak=function(){var r=xo(o.nodes(t,{match:function(t){return e.checkNodeType(t,"list-item")},universal:!0}),1)[0];return r?""!==r[0].children[0].text?c():void u.setNodes(f,{type:"paragraph",ordered:void 0,level:void 0}):c()},f.deleteBackward=function(n){var o=f.selection;if(null!=o)if(a.isExpanded(o))r(n);else{var i=e.getSelectedNodeByType(f,"list-item");if(null!=i)if(0!==o.focus.offset)r(n);else{var c=i,l=c.level,s=void 0===l?0:l,d=c.ordered,v=void 0!==d&&d;if(s>0){var p=So(t,i,s-1);p&&p.ordered!==v?u.setNodes(f,{level:s-1,ordered:!v}):u.setNodes(f,{level:s-1})}else u.setNodes(f,{type:"paragraph",ordered:void 0,level:void 0})}else r(n)}else r(n)},f.handleTab=function(){var t,r,o,i,c=f.selection;if(null!=c){if(a.isCollapsed(c)){var l=e.getSelectedNodeByType(f,"list-item");if(null==l)return void n();if(0===c.focus.offset){var s=l.level,d=void 0===s?0:s;return void u.setNodes(f,{level:d+1})}}if(a.isExpanded(c)){var v=0,p=!1;try{for(var y=Oo(jo(f)),h=y.next();!h.done;h=y.next()){var g=xo(h.value,1)[0];"list-item"===e.getNodeType(g)?v++:p=!0}}catch(e){t={error:e}}finally{try{h&&!h.done&&(r=y.return)&&r.call(y)}finally{if(t)throw t.error}}if(p||v<=1)return void n();try{for(var b=Oo(jo(f)),m=b.next();!m.done;m=b.next()){var w=xo(m.value,2),O=(g=w[0],w[1]),x=g.level;d=void 0===x?0:x;u.setNodes(f,{level:d+1},{at:O})}}catch(t){o={error:t}}finally{try{m&&!m.done&&(i=b.return)&&i.call(b)}finally{if(o)throw o.error}}}else n()}else n()},f.normalizeNode=function(t){var r=xo(t,2),n=r[0],o=r[1],a=e.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||u.unwrapNodes(f,{at:o}),i([n,o])},f},menus:[ei,ri],elemsToHtml:[ii],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,r){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=f(t);0===(e=e.filter((function(t){return!!i.isText(t)||!!r.isInline(t)}))).length&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=function(t){return"ol"===Bi(t.parent())}(n),u=function(t){for(var e=0,r=t.parent(),n=Bi(r);"ul"===n||"ol"===n;)n=Bi(r=r.parent()),e++;return e-1}(n);return{type:"list-item",ordered:o,level:u,children:e}}}]};export{Di as default};
|
|
1
|
+
import{i18nAddResources as t,DomEditor as e,t as r}from"@wangeditor-next/core";import{Path as n,Editor as o,Text as i,Transforms as u,Range as a}from"slate";import{jsx as c}from"snabbdom";import f,{append as l,attr as s,parent as d}from"dom7";t("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),t("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(t){var e={exports:{}};return t(e,e.exports),e.exports}var y,h,g=function(t){return t&&t.Math==Math&&t},b=g("object"==typeof globalThis&&globalThis)||g("object"==typeof window&&window)||g("object"==typeof self&&self)||g("object"==typeof v&&v)||function(){return this}()||Function("return this")(),m=Function.prototype,w=m.bind,x=m.call,O=w&&w.bind(x),S=w?function(t){return t&&O(x,t)}:function(t){return t&&function(){return x.apply(t,arguments)}},E=function(t){try{return!!t()}catch(t){return!0}},T=S({}.toString),j=S("".slice),A=function(t){return j(T(t),8,-1)},I=b.Object,P=S("".split),k=E((function(){return!I("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?P(t,""):I(t)}:I,L=b.TypeError,R=function(t){if(null==t)throw L("Can't call method on "+t);return t},N=function(t){return k(R(t))},M=Object.defineProperty,_=function(t,e){try{M(b,t,{value:e,configurable:!0,writable:!0})}catch(r){b[t]=e}return e},z="__core-js_shared__",C=b[z]||_(z,{}),F=p((function(t){(t.exports=function(t,e){return C[t]||(C[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),B=b.Object,D=function(t){return B(R(t))},H=S({}.hasOwnProperty),G=Object.hasOwn||function(t,e){return H(D(t),e)},$=0,V=Math.random(),W=S(1..toString),U=function(t){return"Symbol("+(void 0===t?"":t)+")_"+W(++$+V,36)},K=function(t){return"function"==typeof t},Y=function(t,e){return arguments.length<2?(r=b[t],K(r)?r:void 0):b[t]&&b[t][e];var r},X=Y("navigator","userAgent")||"",q=b.process,J=b.Deno,Q=q&&q.versions||J&&J.version,Z=Q&&Q.v8;Z&&(h=(y=Z.split("."))[0]>0&&y[0]<4?1:+(y[0]+y[1])),!h&&X&&(!(y=X.match(/Edge\/(\d+)/))||y[1]>=74)&&(y=X.match(/Chrome\/(\d+)/))&&(h=+y[1]);var tt,et=h,rt=!!Object.getOwnPropertySymbols&&!E((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&et&&et<41})),nt=rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ot=F("wks"),it=b.Symbol,ut=it&&it.for,at=nt?it:it&&it.withoutSetter||U,ct=function(t){if(!G(ot,t)||!rt&&"string"!=typeof ot[t]){var e="Symbol."+t;rt&&G(it,t)?ot[t]=it[t]:ot[t]=nt&&ut?ut(e):at(e)}return ot[t]},ft=function(t){return"object"==typeof t?null!==t:K(t)},lt=b.String,st=b.TypeError,dt=function(t){if(ft(t))return t;throw st(lt(t)+" is not an object")},vt=!E((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),pt=b.document,yt=ft(pt)&&ft(pt.createElement),ht=function(t){return yt?pt.createElement(t):{}},gt=!vt&&!E((function(){return 7!=Object.defineProperty(ht("div"),"a",{get:function(){return 7}}).a})),bt=Function.prototype.call,mt=bt.bind?bt.bind(bt):function(){return bt.apply(bt,arguments)},wt=S({}.isPrototypeOf),xt=b.Object,Ot=nt?function(t){return"symbol"==typeof t}:function(t){var e=Y("Symbol");return K(e)&&wt(e.prototype,xt(t))},St=b.String,Et=function(t){try{return St(t)}catch(t){return"Object"}},Tt=b.TypeError,jt=function(t){if(K(t))return t;throw Tt(Et(t)+" is not a function")},At=function(t,e){var r=t[e];return null==r?void 0:jt(r)},It=b.TypeError,Pt=b.TypeError,kt=ct("toPrimitive"),Lt=function(t,e){if(!ft(t)||Ot(t))return t;var r,n=At(t,kt);if(n){if(void 0===e&&(e="default"),r=mt(n,t,e),!ft(r)||Ot(r))return r;throw Pt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&K(r=t.toString)&&!ft(n=mt(r,t)))return n;if(K(r=t.valueOf)&&!ft(n=mt(r,t)))return n;if("string"!==e&&K(r=t.toString)&&!ft(n=mt(r,t)))return n;throw It("Can't convert object to primitive value")}(t,e)},Rt=function(t){var e=Lt(t,"string");return Ot(e)?e:e+""},Nt=b.TypeError,Mt=Object.defineProperty,_t={f:vt?Mt:function(t,e,r){if(dt(t),e=Rt(e),dt(r),gt)try{return Mt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Nt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},zt=Math.ceil,Ct=Math.floor,Ft=function(t){var e=+t;return e!=e||0===e?0:(e>0?Ct:zt)(e)},Bt=Math.max,Dt=Math.min,Ht=function(t,e){var r=Ft(t);return r<0?Bt(r+e,0):Dt(r,e)},Gt=Math.min,$t=function(t){return t>0?Gt(Ft(t),9007199254740991):0},Vt=function(t){return $t(t.length)},Wt=function(t){return function(e,r,n){var o,i=N(e),u=Vt(i),a=Ht(n,u);if(t&&r!=r){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},Ut={includes:Wt(!0),indexOf:Wt(!1)},Kt={},Yt=Ut.indexOf,Xt=S([].push),qt=function(t,e){var r,n=N(t),o=0,i=[];for(r in n)!G(Kt,r)&&G(n,r)&&Xt(i,r);for(;e.length>o;)G(n,r=e[o++])&&(~Yt(i,r)||Xt(i,r));return i},Jt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qt=Object.keys||function(t){return qt(t,Jt)},Zt=vt?Object.defineProperties:function(t,e){dt(t);for(var r,n=N(e),o=Qt(e),i=o.length,u=0;i>u;)_t.f(t,r=o[u++],n[r]);return t},te=Y("document","documentElement"),ee=F("keys"),re=function(t){return ee[t]||(ee[t]=U(t))},ne="prototype",oe="script",ie=re("IE_PROTO"),ue=function(){},ae=function(t){return"<"+oe+">"+t+"</"+oe+">"},ce=function(t){t.write(ae("")),t.close();var e=t.parentWindow.Object;return t=null,e},fe=function(){try{tt=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;fe="undefined"!=typeof document?document.domain&&tt?ce(tt):(e=ht("iframe"),r="java"+oe+":",e.style.display="none",te.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(ae("document.F=Object")),t.close(),t.F):ce(tt);for(var n=Jt.length;n--;)delete fe[ne][Jt[n]];return fe()};Kt[ie]=!0;var le=Object.create||function(t,e){var r;return null!==t?(ue[ne]=dt(t),r=new ue,ue[ne]=null,r[ie]=t):r=fe(),void 0===e?r:Zt(r,e)},se=ct("unscopables"),de=Array.prototype;null==de[se]&&_t.f(de,se,{configurable:!0,value:le(null)});var ve=function(t){de[se][t]=!0},pe={},ye=S(Function.toString);K(C.inspectSource)||(C.inspectSource=function(t){return ye(t)});var he,ge,be,me=C.inspectSource,we=b.WeakMap,xe=K(we)&&/native code/.test(me(we)),Oe=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Se=vt?function(t,e,r){return _t.f(t,e,Oe(1,r))}:function(t,e,r){return t[e]=r,t},Ee="Object already initialized",Te=b.TypeError,je=b.WeakMap;if(xe||C.state){var Ae=C.state||(C.state=new je),Ie=S(Ae.get),Pe=S(Ae.has),ke=S(Ae.set);he=function(t,e){if(Pe(Ae,t))throw new Te(Ee);return e.facade=t,ke(Ae,t,e),e},ge=function(t){return Ie(Ae,t)||{}},be=function(t){return Pe(Ae,t)}}else{var Le=re("state");Kt[Le]=!0,he=function(t,e){if(G(t,Le))throw new Te(Ee);return e.facade=t,Se(t,Le,e),e},ge=function(t){return G(t,Le)?t[Le]:{}},be=function(t){return G(t,Le)}}var Re,Ne,Me,_e={set:he,get:ge,has:be,enforce:function(t){return be(t)?ge(t):he(t,{})},getterFor:function(t){return function(e){var r;if(!ft(e)||(r=ge(e)).type!==t)throw Te("Incompatible receiver, "+t+" required");return r}}},ze={}.propertyIsEnumerable,Ce=Object.getOwnPropertyDescriptor,Fe={f:Ce&&!ze.call({1:2},1)?function(t){var e=Ce(this,t);return!!e&&e.enumerable}:ze},Be=Object.getOwnPropertyDescriptor,De={f:vt?Be:function(t,e){if(t=N(t),e=Rt(e),gt)try{return Be(t,e)}catch(t){}if(G(t,e))return Oe(!mt(Fe.f,t,e),t[e])}},He=Function.prototype,Ge=vt&&Object.getOwnPropertyDescriptor,$e=G(He,"name"),Ve={EXISTS:$e,PROPER:$e&&"something"===function(){}.name,CONFIGURABLE:$e&&(!vt||vt&&Ge(He,"name").configurable)},We=p((function(t){var e=Ve.CONFIGURABLE,r=_e.get,n=_e.enforce,o=String(String).split("String");(t.exports=function(t,r,i,u){var a,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,l=!!u&&!!u.noTargetGet,s=u&&void 0!==u.name?u.name:r;K(i)&&("Symbol("===String(s).slice(0,7)&&(s="["+String(s).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!G(i,"name")||e&&i.name!==s)&&Se(i,"name",s),(a=n(i)).source||(a.source=o.join("string"==typeof s?s:""))),t!==b?(c?!l&&t[r]&&(f=!0):delete t[r],f?t[r]=i:Se(t,r,i)):f?t[r]=i:_(r,i)})(Function.prototype,"toString",(function(){return K(this)&&r(this).source||me(this)}))})),Ue=Jt.concat("length","prototype"),Ke={f:Object.getOwnPropertyNames||function(t){return qt(t,Ue)}},Ye={f:Object.getOwnPropertySymbols},Xe=S([].concat),qe=Y("Reflect","ownKeys")||function(t){var e=Ke.f(dt(t)),r=Ye.f;return r?Xe(e,r(t)):e},Je=function(t,e){for(var r=qe(e),n=_t.f,o=De.f,i=0;i<r.length;i++){var u=r[i];G(t,u)||n(t,u,o(e,u))}},Qe=/#|\.prototype\./,Ze=function(t,e){var r=er[tr(t)];return r==nr||r!=rr&&(K(e)?E(e):!!e)},tr=Ze.normalize=function(t){return String(t).replace(Qe,".").toLowerCase()},er=Ze.data={},rr=Ze.NATIVE="N",nr=Ze.POLYFILL="P",or=Ze,ir=De.f,ur=function(t,e){var r,n,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?b:f?b[a]||_(a,{}):(b[a]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(u=ir(r,n))&&u.value:r[n],!or(c?n:a+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Je(i,o)}(t.sham||o&&o.sham)&&Se(i,"sham",!0),We(r,n,i,t)}},ar=!E((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),cr=re("IE_PROTO"),fr=b.Object,lr=fr.prototype,sr=ar?fr.getPrototypeOf:function(t){var e=D(t);if(G(e,cr))return e[cr];var r=e.constructor;return K(r)&&e instanceof r?r.prototype:e instanceof fr?lr:null},dr=ct("iterator"),vr=!1;[].keys&&("next"in(Me=[].keys())?(Ne=sr(sr(Me)))!==Object.prototype&&(Re=Ne):vr=!0);var pr=null==Re||E((function(){var t={};return Re[dr].call(t)!==t}));pr&&(Re={}),K(Re[dr])||We(Re,dr,(function(){return this}));var yr={IteratorPrototype:Re,BUGGY_SAFARI_ITERATORS:vr},hr=_t.f,gr=ct("toStringTag"),br=function(t,e,r){t&&!G(t=r?t:t.prototype,gr)&&hr(t,gr,{configurable:!0,value:e})},mr=yr.IteratorPrototype,wr=function(){return this},xr=b.String,Or=b.TypeError,Sr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=S(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return dt(r),function(t){if("object"==typeof t||K(t))return t;throw Or("Can't set "+xr(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),Er=Ve.PROPER,Tr=Ve.CONFIGURABLE,jr=yr.IteratorPrototype,Ar=yr.BUGGY_SAFARI_ITERATORS,Ir=ct("iterator"),Pr="keys",kr="values",Lr="entries",Rr=function(){return this},Nr=function(t,e,r,n,o,i,u){!function(t,e,r,n){var o=e+" Iterator";t.prototype=le(mr,{next:Oe(+!n,r)}),br(t,o,!1),pe[o]=wr}(r,e,n);var a,c,f,l=function(t){if(t===o&&y)return y;if(!Ar&&t in v)return v[t];switch(t){case Pr:case kr:case Lr:return function(){return new r(this,t)}}return function(){return new r(this)}},s=e+" Iterator",d=!1,v=t.prototype,p=v[Ir]||v["@@iterator"]||o&&v[o],y=!Ar&&p||l(o),h="Array"==e&&v.entries||p;if(h&&(a=sr(h.call(new t)))!==Object.prototype&&a.next&&(sr(a)!==jr&&(Sr?Sr(a,jr):K(a[Ir])||We(a,Ir,Rr)),br(a,s,!0)),Er&&o==kr&&p&&p.name!==kr&&(Tr?Se(v,"name",kr):(d=!0,y=function(){return mt(p,this)})),o)if(c={values:l(kr),keys:i?y:l(Pr),entries:l(Lr)},u)for(f in c)(Ar||d||!(f in v))&&We(v,f,c[f]);else ur({target:e,proto:!0,forced:Ar||d},c);return v[Ir]!==y&&We(v,Ir,y,{name:o}),pe[e]=y,c},Mr="Array Iterator",_r=_e.set,zr=_e.getterFor(Mr),Cr=Nr(Array,"Array",(function(t,e){_r(this,{type:Mr,target:N(t),index:0,kind:e})}),(function(){var t=zr(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");pe.Arguments=pe.Array,ve("keys"),ve("values"),ve("entries");var Fr={};Fr[ct("toStringTag")]="z";var Br="[object z]"===String(Fr),Dr=ct("toStringTag"),Hr=b.Object,Gr="Arguments"==A(function(){return arguments}()),$r=Br?A:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Hr(t),Dr))?r:Gr?A(e):"Object"==(n=A(e))&&K(e.callee)?"Arguments":n},Vr=Br?{}.toString:function(){return"[object "+$r(this)+"]"};Br||We(Object.prototype,"toString",Vr,{unsafe:!0});var Wr=b.String,Ur=function(t){if("Symbol"===$r(t))throw TypeError("Cannot convert a Symbol value to a string");return Wr(t)},Kr=S("".charAt),Yr=S("".charCodeAt),Xr=S("".slice),qr=function(t){return function(e,r){var n,o,i=Ur(R(e)),u=Ft(r),a=i.length;return u<0||u>=a?t?"":void 0:(n=Yr(i,u))<55296||n>56319||u+1===a||(o=Yr(i,u+1))<56320||o>57343?t?Kr(i,u):n:t?Xr(i,u,u+2):o-56320+(n-55296<<10)+65536}},Jr={codeAt:qr(!1),charAt:qr(!0)},Qr=Jr.charAt,Zr="String Iterator",tn=_e.set,en=_e.getterFor(Zr);Nr(String,"String",(function(t){tn(this,{type:Zr,string:Ur(t),index:0})}),(function(){var t,e=en(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Qr(r,n),e.index+=t.length,{value:t,done:!1})}));var rn=function(t,e,r){for(var n in e)We(t,n,e[n],r);return t},nn=b.Array,on=Math.max,un=Ke.f,an="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],cn=function(t){try{return un(t)}catch(t){return function(t,e,r){for(var n,o,i,u,a=Vt(t),c=Ht(e,a),f=Ht(void 0===r?a:r,a),l=nn(on(f-c,0)),s=0;c<f;c++,s++)n=l,o=s,i=t[c],u=void 0,(u=Rt(o))in n?_t.f(n,u,Oe(0,i)):n[u]=i;return l.length=s,l}(an)}},fn={f:function(t){return an&&"Window"==A(t)?cn(t):un(N(t))}},ln=E((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),sn=Object.isExtensible,dn=E((function(){sn(1)}))||ln?function(t){return!!ft(t)&&((!ln||"ArrayBuffer"!=A(t))&&(!sn||sn(t)))}:sn,vn=!E((function(){return Object.isExtensible(Object.preventExtensions({}))})),pn=p((function(t){var e=_t.f,r=!1,n=U("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}})},u=t.exports={enable:function(){u.enable=function(){},r=!0;var t=Ke.f,e=S([].splice),o={};o[n]=1,t(o).length&&(Ke.f=function(r){for(var o=t(r),i=0,u=o.length;i<u;i++)if(o[i]===n){e(o,i,1);break}return o},ur({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:fn.f}))},fastKey:function(t,e){if(!ft(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!G(t,n)){if(!dn(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!G(t,n)){if(!dn(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return vn&&r&&dn(t)&&!G(t,n)&&i(t),t}};Kt[n]=!0})),yn=S(S.bind),hn=function(t,e){return jt(t),void 0===e?t:yn?yn(t,e):function(){return t.apply(e,arguments)}},gn=ct("iterator"),bn=Array.prototype,mn=ct("iterator"),wn=function(t){if(null!=t)return At(t,mn)||At(t,"@@iterator")||pe[$r(t)]},xn=b.TypeError,On=function(t,e,r){var n,o;dt(t);try{if(!(n=At(t,"return"))){if("throw"===e)throw r;return r}n=mt(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return dt(n),r},Sn=b.TypeError,En=function(t,e){this.stopped=t,this.result=e},Tn=En.prototype,jn=function(t,e,r){var n,o,i,u,a,c,f,l,s=r&&r.that,d=!(!r||!r.AS_ENTRIES),v=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),y=hn(e,s),h=function(t){return n&&On(n,"normal",t),new En(!0,t)},g=function(t){return d?(dt(t),p?y(t[0],t[1],h):y(t[0],t[1])):p?y(t,h):y(t)};if(v)n=t;else{if(!(o=wn(t)))throw Sn(Et(t)+" is not iterable");if(void 0!==(l=o)&&(pe.Array===l||bn[gn]===l)){for(i=0,u=Vt(t);u>i;i++)if((a=g(t[i]))&&wt(Tn,a))return a;return new En(!1)}n=function(t,e){var r=arguments.length<2?wn(t):e;if(jt(r))return dt(mt(r,t));throw xn(Et(t)+" is not iterable")}(t,o)}for(c=n.next;!(f=mt(c,n)).done;){try{a=g(f.value)}catch(t){On(n,"throw",t)}if("object"==typeof a&&a&&wt(Tn,a))return a}return new En(!1)},An=b.TypeError,In=function(t,e){if(wt(e,t))return t;throw An("Incorrect invocation")},Pn=ct("iterator"),kn=!1;try{var Ln=0,Rn={next:function(){return{done:!!Ln++}},return:function(){kn=!0}};Rn[Pn]=function(){return this},Array.from(Rn,(function(){throw 2}))}catch(t){}var Nn=Array.isArray||function(t){return"Array"==A(t)},Mn=function(){},_n=[],zn=Y("Reflect","construct"),Cn=/^\s*(?:class|function)\b/,Fn=S(Cn.exec),Bn=!Cn.exec(Mn),Dn=function(t){if(!K(t))return!1;try{return zn(Mn,_n,t),!0}catch(t){return!1}},Hn=!zn||E((function(){var t;return Dn(Dn.call)||!Dn(Object)||!Dn((function(){t=!0}))||t}))?function(t){if(!K(t))return!1;switch($r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Bn||!!Fn(Cn,me(t))}:Dn,Gn=ct("species"),$n=b.Array,Vn=function(t,e){return new(function(t){var e;return Nn(t)&&(e=t.constructor,(Hn(e)&&(e===$n||Nn(e.prototype))||ft(e)&&null===(e=e[Gn]))&&(e=void 0)),void 0===e?$n:e}(t))(0===e?0:e)},Wn=S([].push),Un=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,u=7==t,a=5==t||i;return function(c,f,l,s){for(var d,v,p=D(c),y=k(p),h=hn(f,l),g=Vt(y),b=0,m=s||Vn,w=e?m(c,g):r||u?m(c,0):void 0;g>b;b++)if((a||b in y)&&(v=h(d=y[b],b,p),t))if(e)w[b]=v;else if(v)switch(t){case 3:return!0;case 5:return d;case 6:return b;case 2:Wn(w,d)}else switch(t){case 4:return!1;case 7:Wn(w,d)}return i?-1:n||o?o:w}},Kn={forEach:Un(0),map:Un(1),filter:Un(2),some:Un(3),every:Un(4),find:Un(5),findIndex:Un(6),filterReject:Un(7)},Yn=pn.getWeakData,Xn=_e.set,qn=_e.getterFor,Jn=Kn.find,Qn=Kn.findIndex,Zn=S([].splice),to=0,eo=function(t){return t.frozen||(t.frozen=new ro)},ro=function(){this.entries=[]},no=function(t,e){return Jn(t.entries,(function(t){return t[0]===e}))};ro.prototype={get:function(t){var e=no(this,t);if(e)return e[1]},has:function(t){return!!no(this,t)},set:function(t,e){var r=no(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=Qn(this.entries,(function(e){return e[0]===t}));return~e&&Zn(this.entries,e,1),!!~e}};var oo,io={getConstructor:function(t,e,r,n){var o=t((function(t,o){In(t,i),Xn(t,{type:e,id:to++,frozen:void 0}),null!=o&&jn(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,u=qn(e),a=function(t,e,r){var n=u(t),o=Yn(dt(e),!0);return!0===o?eo(n).set(e,r):o[n.id]=r,t};return rn(i,{delete:function(t){var e=u(this);if(!ft(t))return!1;var r=Yn(t);return!0===r?eo(e).delete(t):r&&G(r,e.id)&&delete r[e.id]},has:function(t){var e=u(this);if(!ft(t))return!1;var r=Yn(t);return!0===r?eo(e).has(t):r&&G(r,e.id)}}),rn(i,r?{get:function(t){var e=u(this);if(ft(t)){var r=Yn(t);return!0===r?eo(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},uo=_e.enforce,ao=!b.ActiveXObject&&"ActiveXObject"in b,co=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},fo=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=b[t],a=u&&u.prototype,c=u,f={},l=function(t){var e=S(a[t]);We(a,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!ft(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!ft(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!ft(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(or(t,!K(u)||!(o||a.forEach&&!E((function(){(new u).entries().next()})))))c=r.getConstructor(e,t,n,i),pn.enable();else if(or(t,!0)){var s=new c,d=s[i](o?{}:-0,1)!=s,v=E((function(){s.has(1)})),p=function(t,e){if(!e&&!kn)return!1;var r=!1;try{var n={};n[Pn]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){new u(t)})),y=!o&&E((function(){for(var t=new u,e=5;e--;)t[i](e,e);return!t.has(-0)}));p||((c=e((function(t,e){In(t,a);var r=function(t,e,r){var n,o;return Sr&&K(n=e.constructor)&&n!==r&&ft(o=n.prototype)&&o!==r.prototype&&Sr(t,o),t}(new u,t,c);return null!=e&&jn(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=a,a.constructor=c),(v||y)&&(l("delete"),l("has"),n&&l("get")),(y||d)&&l(i),o&&a.clear&&delete a.clear}return f[t]=c,ur({global:!0,forced:c!=u},f),br(c,t),o||r.setStrong(c,t,n),c}("WeakMap",co,io);if(xe&&ao){oo=io.getConstructor(co,"WeakMap",!0),pn.enable();var lo=fo.prototype,so=S(lo.delete),vo=S(lo.has),po=S(lo.get),yo=S(lo.set);rn(lo,{delete:function(t){if(ft(t)&&!dn(t)){var e=uo(this);return e.frozen||(e.frozen=new oo),so(this,t)||e.frozen.delete(t)}return so(this,t)},has:function(t){if(ft(t)&&!dn(t)){var e=uo(this);return e.frozen||(e.frozen=new oo),vo(this,t)||e.frozen.has(t)}return vo(this,t)},get:function(t){if(ft(t)&&!dn(t)){var e=uo(this);return e.frozen||(e.frozen=new oo),vo(this,t)?po(this,t):e.frozen.get(t)}return po(this,t)},set:function(t,e){if(ft(t)&&!dn(t)){var r=uo(this);r.frozen||(r.frozen=new oo),vo(this,t)?yo(this,t,e):r.frozen.set(t,e)}else yo(this,t,e);return this}})}var ho={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},go=ht("span").classList,bo=go&&go.constructor&&go.constructor.prototype,mo=bo===Object.prototype?void 0:bo,wo=ct("iterator"),xo=ct("toStringTag"),Oo=Cr.values,So=function(t,e){if(t){if(t[wo]!==Oo)try{Se(t,wo,Oo)}catch(e){t[wo]=Oo}if(t[xo]||Se(t,xo,e),ho[e])for(var r in Cr)if(t[r]!==Cr[r])try{Se(t,r,Cr[r])}catch(e){t[r]=Cr[r]}}};for(var Eo in ho)So(b[Eo]&&b[Eo].prototype,Eo);So(mo,"DOMTokenList");var To=new WeakMap;var jo={type:"list-item",renderElem:function(t,r,u){To.set(t,u);var a=t,f=a.level,l=void 0===f?0:f,s=a.ordered,d={margin:"5px 0 5px "+20*l+"px"},v="";if(void 0!==s&&s){var p=function(t,r){var i=r,u=i.type,a=i.level,c=void 0===a?0:a,f=i.ordered,l=void 0!==f&&f,s=1,d=r,v=e.findPath(t,d);if(0===v[0])return 1;for(;v[0]>0;){var p=n.previous(v),y=o.node(t,p);if(null==y)break;var h=y[0],g=h.level,b=void 0===g?0:g,m=h.type,w=h.ordered;if(m!==u)break;if(b<c)break;if(b===c){if(w!==l)break;s++}d=h,v=p}return s}(u,t);v=p+"."}else v=function(t){void 0===t&&(t=0);var e="";switch(t){case 0:e="•";break;case 1:e="◦";break;default:e="▪"}return e}(l);var y=function(t){var e,r=t.children||[],n=r.length;if(0===n)return"";for(var o=0;o<n&&!e;o++){var u=r[o];i.isText(u)&&(e=u)}return null==e?"":e.color||""}(t);return c("div",{style:d},c("span",{contentEditable:!1,style:{marginRight:"0.5em",color:y},"data-w-e-reserve":!0},v),c("span",null,r))}},Ao=function(t,e){return Ao=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Ao(t,e)};function Io(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Ao(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Po(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ko(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}function Lo(t,r,i){for(var u=r.type,a=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(r,["type"]),c=void 0!==i?i:a.level||0,f=e.findPath(t,r),l=f;;){if(0===l.length||0===f[f.length-1])return null;l=n.previous(l);var s=o.node(t,l);if(!s)return null;var d=ko(s,1)[0],v=d.level,p=void 0===v?0:v;if(e.getNodeType(d)!==u)return null;if(p===c)return d}}function Ro(t,e,r){var n=Lo(t,e,r);return!!n&&n.ordered===e.ordered}function No(t){return o.nodes(t,{at:t.selection||void 0,match:function(r){return 1===e.findPath(t,r).length}})}"function"==typeof SuppressedError&&SuppressedError;var Mo=Ut.includes;ur({target:"Array",proto:!0},{includes:function(t){return Mo(this,t,arguments.length>1?arguments[1]:void 0)}}),ve("includes");var _o,zo,Co=function(){var t=dt(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Fo=b.RegExp,Bo=E((function(){var t=Fo("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Do=Bo||E((function(){return!Fo("a","y").sticky})),Ho={BROKEN_CARET:Bo||E((function(){var t=Fo("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Do,UNSUPPORTED_Y:Bo},Go=b.RegExp,$o=E((function(){var t=Go(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Vo=b.RegExp,Wo=E((function(){var t=Vo("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Uo=_e.get,Ko=F("native-string-replace",String.prototype.replace),Yo=RegExp.prototype.exec,Xo=Yo,qo=S("".charAt),Jo=S("".indexOf),Qo=S("".replace),Zo=S("".slice),ti=(zo=/b*/g,mt(Yo,_o=/a/,"a"),mt(Yo,zo,"a"),0!==_o.lastIndex||0!==zo.lastIndex),ei=Ho.BROKEN_CARET,ri=void 0!==/()??/.exec("")[1];(ti||ri||ei||$o||Wo)&&(Xo=function(t){var e,r,n,o,i,u,a,c=this,f=Uo(c),l=Ur(t),s=f.raw;if(s)return s.lastIndex=c.lastIndex,e=mt(Xo,s,l),c.lastIndex=s.lastIndex,e;var d=f.groups,v=ei&&c.sticky,p=mt(Co,c),y=c.source,h=0,g=l;if(v&&(p=Qo(p,"y",""),-1===Jo(p,"g")&&(p+="g"),g=Zo(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==qo(l,c.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,h++),r=new RegExp("^(?:"+y+")",p)),ri&&(r=new RegExp("^"+y+"$(?!\\s)",p)),ti&&(n=c.lastIndex),o=mt(Yo,v?r:c,g),v?o?(o.input=Zo(o.input,h),o[0]=Zo(o[0],h),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:ti&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),ri&&o&&o.length>1&&mt(Ko,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=u=le(null),i=0;i<d.length;i++)u[(a=d[i])[0]]=o[a[1]];return o});var ni=Xo;ur({target:"RegExp",proto:!0,forced:/./.exec!==ni},{exec:ni});var oi=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(t){var r=this.type;return e.getSelectedNodeByType(t,r)},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){var e=this.getListNode(t);if(null==e)return!1;var r=e.ordered;return(void 0!==r&&r)===this.ordered},t.prototype.isDisabled=function(t){return null==t.selection||!!e.getSelectedElems(t).some((function(e){if(o.isVoid(t,e)&&o.isBlock(t,e))return!0;var r=e.type;return!!["pre","code","table"].includes(r)||void 0}))},t.prototype.exec=function(t,e){this.isActive(t)?u.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):u.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),ii=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ordered=!1,e.title=r("listModule.unOrderedList"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',e}return Io(e,t),e}(oi),ui=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ordered=!0,e.title=r("listModule.orderedList"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',e}return Io(e,t),e}(oi),ai={key:"bulletedList",factory:function(){return new ii}},ci={key:"numberedList",factory:function(){return new ui}};var fi=[];var li,si={type:"list-item",elemToHtml:function(t,r){var i="",u="",a=t.ordered,c=void 0!==a&&a?"ol":"ul",f=function(t){var r=To.get(t);if(null==r)return 0;var i=t,u=i.type,a=i.ordered,c=void 0!==a&&a,f=i.level,l=void 0===f?0:f,s=e.findPath(r,t);if(0===s[0])return l+1;var d=n.previous(s),v=o.node(r,d);if(!v)return 0;var p=ko(v,1)[0];if(e.getNodeType(p)!==u)return l+1;var y=p,h=y.ordered,g=void 0!==h&&h,b=y.level,m=void 0===b?0:b;return m<l?l-m:m>l?Ro(r,t)?0:1:m===l?g===c?0:1:0}(t);if(f>0)for(var l=0;l<f;l++)i+="<"+c+">",fi.push(c);var s=function(t){var r=To.get(t);if(null==r)return 0;var i=t,u=i.type,a=i.ordered,c=void 0!==a&&a,f=i.level,l=void 0===f?0:f,s=e.findPath(r,t);if(s[0]===r.children.length-1)return l+1;var d=n.next(s),v=o.node(r,d);if(!v)return 0;var p=ko(v,1)[0];if(e.getNodeType(p)!==u)return l+1;var y=p,h=y.ordered,g=void 0!==h&&h,b=y.level,m=void 0===b?0:b;return m<l?Ro(r,p)?l-m:l-m+1:m>l?0:m===l?g===c?0:1:0}(t);if(s>0)for(l=0;l<s;l++){u+="</"+fi.pop()+">"}return{html:"<li>"+r+"</li>",prefix:i,suffix:u}}},di=ct("species"),vi=Kn.filter,pi=(li="filter",et>=51||!E((function(){var t=[];return(t.constructor={})[di]=function(){return{foo:1}},1!==t[li](Boolean).foo})));ur({target:"Array",proto:!0,forced:!pi},{filter:function(t){return vi(this,t,arguments.length>1?arguments[1]:void 0)}});var yi=b.TypeError,hi=function(t,e,r,n,o,i,u,a){for(var c,f,l=o,s=0,d=!!u&&hn(u,a);s<n;){if(s in r){if(c=d?d(r[s],s,e):r[s],i>0&&Nn(c))f=Vt(c),l=hi(t,e,c,f,l,i-1)-1;else{if(l>=9007199254740991)throw yi("Exceed the acceptable array length");t[l]=c}l++}s++}return l},gi=hi;ur({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=D(this),r=Vt(e),n=Vn(e,0);return n.length=gi(n,e,e,r,0,void 0===t?1:Ft(t)),n}}),ve("flat");var bi=Function.prototype,mi=bi.apply,wi=bi.bind,xi=bi.call,Oi="object"==typeof Reflect&&Reflect.apply||(wi?xi.bind(mi):function(){return xi.apply(mi,arguments)}),Si=ct("species"),Ei=RegExp.prototype,Ti=Jr.charAt,ji=function(t,e,r){return e+(r?Ti(t,e).length:1)},Ai=Math.floor,Ii=S("".charAt),Pi=S("".replace),ki=S("".slice),Li=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ri=/\$([$&'`]|\d{1,2})/g,Ni=function(t,e,r,n,o,i){var u=r+t.length,a=n.length,c=Ri;return void 0!==o&&(o=D(o),c=Li),Pi(i,c,(function(i,c){var f;switch(Ii(c,0)){case"$":return"$";case"&":return t;case"`":return ki(e,0,r);case"'":return ki(e,u);case"<":f=o[ki(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>a){var s=Ai(l/10);return 0===s?i:s<=a?void 0===n[s-1]?Ii(c,1):n[s-1]+Ii(c,1):i}f=n[l-1]}return void 0===f?"":f}))},Mi=b.TypeError,_i=function(t,e){var r=t.exec;if(K(r)){var n=mt(r,t,e);return null!==n&&dt(n),n}if("RegExp"===A(t))return mt(ni,t,e);throw Mi("RegExp#exec called on incompatible receiver")},zi=ct("replace"),Ci=Math.max,Fi=Math.min,Bi=S([].concat),Di=S([].push),Hi=S("".indexOf),Gi=S("".slice),$i="$0"==="a".replace(/./,"$0"),Vi=!!/./[zi]&&""===/./[zi]("a","$0");function Wi(t){return t.length?t[0].tagName.toLowerCase():""}!function(t,e,r,n){var o=ct(t),i=!E((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),u=i&&!E((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Si]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!u||r){var a=S(/./[o]),c=e(o,""[t],(function(t,e,r,n,o){var u=S(t),c=e.exec;return c===ni||c===Ei.exec?i&&!o?{done:!0,value:a(e,r,n)}:{done:!0,value:u(r,e,n)}:{done:!1}}));We(String.prototype,t,c[0]),We(Ei,o,c[1])}n&&Se(Ei[o],"sham",!0)}("replace",(function(t,e,r){var n=Vi?"$":"$0";return[function(t,r){var n=R(this),o=null==t?void 0:At(t,zi);return o?mt(o,t,n,r):mt(e,Ur(n),t,r)},function(t,o){var i=dt(this),u=Ur(t);if("string"==typeof o&&-1===Hi(o,n)&&-1===Hi(o,"$<")){var a=r(e,i,u,o);if(a.done)return a.value}var c=K(o);c||(o=Ur(o));var f=i.global;if(f){var l=i.unicode;i.lastIndex=0}for(var s=[];;){var d=_i(i,u);if(null===d)break;if(Di(s,d),!f)break;""===Ur(d[0])&&(i.lastIndex=ji(u,$t(i.lastIndex),l))}for(var v,p="",y=0,h=0;h<s.length;h++){for(var g=Ur((d=s[h])[0]),b=Ci(Fi(Ft(d.index),u.length),0),m=[],w=1;w<d.length;w++)Di(m,void 0===(v=d[w])?v:String(v));var x=d.groups;if(c){var O=Bi([g],m,b,u);void 0!==x&&Di(O,x);var S=Ur(Oi(o,void 0,O))}else S=Ni(g,u,b,m,x,o);b>=y&&(p+=Gi(u,y,b)+S,y=b+g.length)}return p+Gi(u,y)}]}),!!E((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!$i||Vi),ur({global:!0},{globalThis:b}),l&&(f.fn.append=l),s&&(f.fn.attr=s),d&&(f.fn.parent=d);var Ui={renderElems:[jo],editorPlugin:function(t){var r=t.deleteBackward,n=t.handleTab,i=t.normalizeNode,c=t.insertBreak,f=t;return f.insertBreak=function(){var r=ko(o.nodes(t,{match:function(t){return e.checkNodeType(t,"list-item")},universal:!0}),1)[0];return r?""!==r[0].children[0].text?c():void u.setNodes(f,{type:"paragraph",ordered:void 0,level:void 0}):c()},f.deleteBackward=function(n){var o=f.selection;if(null!=o)if(a.isExpanded(o))r(n);else{var i=e.getSelectedNodeByType(f,"list-item");if(null!=i)if(0!==o.focus.offset)r(n);else{var c=i,l=c.level,s=void 0===l?0:l,d=c.ordered,v=void 0!==d&&d;if(s>0){var p=Lo(t,i,s-1);p&&p.ordered!==v?u.setNodes(f,{level:s-1,ordered:!v}):u.setNodes(f,{level:s-1})}else u.setNodes(f,{type:"paragraph",ordered:void 0,level:void 0})}else r(n)}else r(n)},f.handleTab=function(){var t,r,o,i,c=f.selection;if(null!=c){if(a.isCollapsed(c)){var l=e.getSelectedNodeByType(f,"list-item");if(null==l)return void n();if(0===c.focus.offset){var s=l.level,d=void 0===s?0:s;return void u.setNodes(f,{level:d+1})}}if(a.isExpanded(c)){var v=0,p=!1;try{for(var y=Po(No(f)),h=y.next();!h.done;h=y.next()){var g=ko(h.value,1)[0];"list-item"===e.getNodeType(g)?v++:p=!0}}catch(e){t={error:e}}finally{try{h&&!h.done&&(r=y.return)&&r.call(y)}finally{if(t)throw t.error}}if(p||v<=1)return void n();try{for(var b=Po(No(f)),m=b.next();!m.done;m=b.next()){var w=ko(m.value,2),x=(g=w[0],w[1]),O=g.level;d=void 0===O?0:O;u.setNodes(f,{level:d+1},{at:x})}}catch(t){o={error:t}}finally{try{m&&!m.done&&(i=b.return)&&i.call(b)}finally{if(o)throw o.error}}}else n()}else n()},f.normalizeNode=function(t){var r=ko(t,2),n=r[0],o=r[1],a=e.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||u.unwrapNodes(f,{at:o}),i([n,o])},f},menus:[ai,ci],elemsToHtml:[si],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,r){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=f(t);0===(e=e.filter((function(t){return!!i.isText(t)||!!r.isInline(t)}))).length&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=function(t){return"ol"===Wi(t.parent())}(n),u=function(t){for(var e=0,r=t.parent(),n=Wi(r);"ul"===n||"ol"===n;)n=Wi(r=r.parent()),e++;return e-1}(n);return{type:"list-item",ordered:o,level:u,children:e}}}]};export{Ui as default};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|